(function(modules){
var installedModules={};
function __webpack_require__(moduleId){
if(installedModules[moduleId]){
return installedModules[moduleId].exports;
}
var module=installedModules[moduleId]={
i: moduleId,
l: false,
exports: {}
};
modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
module.l=true;
return module.exports;
}
__webpack_require__.m=modules;
__webpack_require__.c=installedModules;
__webpack_require__.d=function(exports, name, getter){
if(!__webpack_require__.o(exports, name)){
Object.defineProperty(exports, name, { enumerable: true, get: getter });
}
};
__webpack_require__.r=function(exports){
if(typeof Symbol!=='undefined'&&Symbol.toStringTag){
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
}
Object.defineProperty(exports, '__esModule', { value: true });
};
__webpack_require__.t=function(value, mode){
if(mode & 1) value=__webpack_require__(value);
if(mode & 8) return value;
if((mode & 4)&&typeof value==='object'&&value&&value.__esModule) return value;
var ns=Object.create(null);
__webpack_require__.r(ns);
Object.defineProperty(ns, 'default', { enumerable: true, value: value });
if(mode & 2&&typeof value!='string') for(var key in value) __webpack_require__.d(ns, key, function(key){ return value[key]; }.bind(null, key));
return ns;
};
__webpack_require__.n=function(module){
var getter=module&&module.__esModule ?
function getDefault(){ return module['default']; } :
function getModuleExports(){ return module; };
__webpack_require__.d(getter, 'a', getter);
return getter;
};
__webpack_require__.o=function(object, property){ return Object.prototype.hasOwnProperty.call(object, property); };
__webpack_require__.p="";
return __webpack_require__(__webpack_require__.s="./src/index.js");
})
({
"../bp/src/profile/components/functions.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"useThrottledEffect\", function(){ return useThrottledEffect; });\n __webpack_require__.d(__webpack_exports__, \"debounce\", function(){ return debounce; });\n __webpack_require__.d(__webpack_exports__, \"validateUrl\", function(){ return validateUrl; });\n __webpack_require__.d(__webpack_exports__, \"validateEmail\", function(){ return validateEmail; });\n __webpack_require__.d(__webpack_exports__, \"CircularProgress\", function(){ return CircularProgress; });\n __webpack_require__.d(__webpack_exports__, \"convertToCSV\", function(){ return convertToCSV; });\n __webpack_require__.d(__webpack_exports__, \"exportCSVFile\", function(){ return exportCSVFile; });\n __webpack_require__.d(__webpack_exports__, \"csvToArray\", function(){ return csvToArray; });\nconst {\n  createElement,\n  useRef,\n  useEffect,\n  Fragment,\n  render\n}=wp.element;\nconst useThrottledEffect=(callback, delay, deps=[])=> {\n  const lastRan=useRef(Date.now());\n  useEffect(()=> {\n    const handler=setTimeout(function (){\n      if(Date.now() - lastRan.current >=delay){\n        callback();\n        lastRan.current=Date.now();\n      }\n    }, delay - (Date.now() - lastRan.current));\n    return ()=> {\n      clearTimeout(handler);\n    };\n  }, [delay, ...deps]);\n};\nconst debounce=(func, wait, immediate)=> {\n  var timeout;\n  return function (){\n    var context=this,\n        args=arguments;\n\n    var later=function (){\n      timeout=null;\n\n      if(!immediate){\n        func.apply(context, args);\n      }\n    };\n\n    var callNow=immediate&&!timeout;\n    clearTimeout(timeout);\n    timeout=setTimeout(later, wait||200);\n\n    if(callNow){\n      func.apply(context, args);\n      console.log('now');\n    }\n  };\n};\nconst validateUrl=value=> {\n  return /^(?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#]\\S*)?$/i.test(value);\n};\nfunction validateEmail(elementValue){\n  var emailPattern=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$/;\n  return emailPattern.test(elementValue);\n}\n\nconst IsJsonString=str=> {\n  try {\n    JSON.parse(str);\n  } catch (e){\n    return false;\n  }\n\n  return true;\n};\n\n __webpack_exports__[\"default\"]=(IsJsonString);\nconst CircularProgress=({\n  progress,\n  size\n})=> {\n  let appliedRadius;\n  let appliedStroke;\n\n  switch (size){\n    case 'xs':\n      appliedRadius=10;\n      appliedStroke=1;\n      break;\n\n    case 'us':\n      appliedRadius=24;\n      appliedStroke=4;\n      break;\n\n    case 'sm':\n      appliedRadius=25;\n      appliedStroke=2.5;\n      break;\n\n    case 'md':\n      appliedRadius=32;\n      appliedStroke=4;\n      break;\n\n    case 'med':\n      appliedRadius=50;\n      appliedStroke=5;\n      break;\n\n    case 'lg':\n      appliedRadius=75;\n      appliedStroke=7.5;\n      break;\n\n    case 'xl':\n      appliedRadius=100;\n      appliedStroke=10;\n      break;\n\n    default:\n      appliedRadius=50;\n      appliedStroke=5;\n  }\n\n  const normalizedRadius=appliedRadius - appliedStroke * 2;\n  const circumference=normalizedRadius * 2 * Math.PI;\n  const strokeDashoffset=circumference - progress / 100 * circumference;\n  return React.createElement(\"div\", {\n    className: \"react-progress-circle\"\n  }, React.createElement(\"svg\", {\n    height: appliedRadius * 2,\n    width: appliedRadius * 2\n  }, React.createElement(\"circle\", {\n    className: \"ReactProgressCircle_circleBackground\",\n    strokeWidth: appliedStroke,\n    style: {\n      strokeDashoffset\n    },\n    r: normalizedRadius,\n    cx: appliedRadius,\n    cy: appliedRadius\n  }), React.createElement(\"circle\", {\n    className: \"ReactProgressCircle_circle\",\n    strokeWidth: appliedStroke,\n    strokeDasharray: circumference + ' ' + circumference,\n    style: {\n      strokeDashoffset\n    },\n    r: normalizedRadius,\n    cx: appliedRadius,\n    cy: appliedRadius\n  })));\n};\nfunction convertToCSV(objArray){\n  var array=typeof objArray!='object' ? JSON.parse(objArray):objArray;\n  var str='';\n\n  for (var i=0; i < array.length; i++){\n    var line='';\n\n    for (var index in array[i]){\n      if(line!='') line +=',';\n      line +=array[i][index];\n    }\n\n    str +=line + '\\r\\n';\n  }\n\n  return str;\n}\nfunction exportCSVFile(headers, items, fileTitle){\n  if(headers){\n    items.unshift(headers);\n  } // Convert Object to JSON\n\n\n  var jsonObject=JSON.stringify(items);\n  var csv=convertToCSV(jsonObject);\n  var exportedFilenmae=fileTitle + '.csv'||false;\n  var blob=new Blob([csv], {\n    type: 'text/csv;charset=utf-8;'\n  });\n\n  if(navigator.msSaveBlob){\n    // IE 10+\n    navigator.msSaveBlob(blob, exportedFilenmae);\n  }else{\n    var link=document.createElement(\"a\");\n\n    if(link.download!==undefined){\n      // feature detection\n      // Browsers that support HTML5 download attribute\n      var url=URL.createObjectURL(blob);\n      link.setAttribute(\"href\", url);\n      link.setAttribute(\"download\", exportedFilenmae);\n      link.style.visibility='hidden';\n      document.body.appendChild(link);\n      link.click();\n      document.body.removeChild(link);\n    }\n  }\n}\nfunction csvToArray(str, delimiter=\",\"){\n  const headers=str.slice(0, str.indexOf(\"\\n\")).split(delimiter);\n  const rows=str.slice(str.indexOf(\"\\n\") + 1).split(\"\\n\");\n  let newArr=[];\n  rows.map(function (row, i){\n    newArr.push([]);\n    const values=row.split(delimiter);\n    const el=headers.reduce(function (object, header, index){\n      newArr[i].push({\n        key: header,\n        value: values[index]\n      });\n      return object;\n    }, {});\n    return el;\n  });\n  return newArr;\n}\n\n//# sourceURL=webpack:///../bp/src/profile/components/functions.js?");
}),
"../bp/src/profile/components/giphy.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _functions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"../bp/src/profile/components/functions.js\");\nconst {\n  createElement,\n  useState,\n  useEffect,\n  Fragment,\n  render\n}=wp.element;\nconst {\n  dispatch,\n  select\n}=wp.data;\n\n\nconst Giphy=props=> {\n  const [isLoading, setIsLoading]=useState(false);\n  const [pagination, setPagination]=useState(false);\n  const [args, setArgs]=useState({\n    s: '',\n    page: 1\n  });\n  const [images, setImages]=useState([]);\n  const [total, setTotal]=useState(0);\n  Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"useThrottledEffect\"])(()=> {\n    console.log(args);\n    setIsLoading(true);\n    let api_url=`${window.vibebp.settings.giphy.endpoints.trending}?api_key=${window.vibebp.settings.giphy.api_key}&limit=10&offset=${images.length}`;\n\n    if(args.s.length > 2){\n      api_url=`${window.vibebp.settings.giphy.endpoints.search}?api_key=${window.vibebp.settings.giphy.api_key}&q=${args.s}&limit=10&offset=${(args.page - 1) * 10}`;\n    }\n\n    fetch(api_url, {\n      method: 'get'\n    }).then(res=> res.json()).then(data=> {\n      if(data.data&&data.data.length){\n        setIsLoading(false);\n        let imgs=[];\n\n        if(pagination){\n          imgs=[...images, ...data.data];\n        }else{\n          setImages([]);\n          imgs=data.data;\n        }\n\n        setImages(imgs);\n        setTotal(data.pagination.total_count);\n        setPagination(false);\n      }\n    });\n  }, 500, [args]);\n  return React.createElement(\"div\", {\n    className: \"gif_wrap\"\n  }, React.createElement(\"div\", {\n    className: \"input_field_wrapper\"\n  }, React.createElement(\"input\", {\n    type: \"text\",\n    placeholder: window.vibebp.translations.search_gif,\n    onChange: e=> {\n      setArgs({ ...args,\n        s: e.target.value,\n        page: 1\n      });\n    }\n  }), React.createElement(\"span\", {\n    className: \"vicon vicon-search\"\n  })), React.createElement(\"div\", {\n    className: \"gif_wrapper\"\n  }, images.length ? images.map((img, i)=> {\n    return React.createElement(\"img\", {\n      src: img.images.preview_gif.url,\n      alt: img.title,\n      title: img.title,\n      onClick: ()=> {\n        props.update('add', img);\n      }\n    });\n  }):''), !isLoading&&total > images.length ? React.createElement(\"a\", {\n    className: \"link\",\n    onClick: ()=> {\n      setPagination(true);\n      setArgs({ ...args,\n        page: args.page + 1\n      });\n    }\n  }, window.vibebp.translations.load_more):React.createElement(\"div\", {\n    class: \"lds-ellipsis\"\n  }, React.createElement(\"div\", null), React.createElement(\"div\", null), React.createElement(\"div\", null), React.createElement(\"div\", null)));\n};\n\n __webpack_exports__[\"default\"]=(Giphy);\n\n//# sourceURL=webpack:///../bp/src/profile/components/giphy.js?");
}),
"./_sass/main.scss":
(function(module, exports, __webpack_require__){
eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack:///./_sass/main.scss?");
}),
"./node_modules/clsx/dist/clsx.m.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nfunction toVal(mix){\n\tvar k, y, str='';\n\n\tif(typeof mix==='string'||typeof mix==='number'){\n\t\tstr +=mix;\n\t}else if(typeof mix==='object'){\n\t\tif(Array.isArray(mix)){\n\t\t\tfor (k=0; k < mix.length; k++){\n\t\t\t\tif(mix[k]){\n\t\t\t\t\tif(y=toVal(mix[k])){\n\t\t\t\t\t\tstr&&(str +=' ');\n\t\t\t\t\t\tstr +=y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\tfor (k in mix){\n\t\t\t\tif(mix[k]){\n\t\t\t\t\tstr&&(str +=' ');\n\t\t\t\t\tstr +=k;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn str;\n}\n\n __webpack_exports__[\"default\"]=(function (){\n\tvar i=0, tmp, x, str='';\n\twhile (i < arguments.length){\n\t\tif(tmp=arguments[i++]){\n\t\t\tif(x=toVal(tmp)){\n\t\t\t\tstr&&(str +=' ');\n\t\t\t\tstr +=x\n\t\t\t}\n\t\t}\n\t}\n\treturn str;\n});\n\n\n//# sourceURL=webpack:///./node_modules/clsx/dist/clsx.m.js?");
}),
"./node_modules/draft-js-alignment-plugin/lib/AlignmentTool/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _draftJsButtons=__webpack_require__( \"./node_modules/draft-js-buttons/lib/index.js\");\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nvar getRelativeParent=function getRelativeParent(element){\n  if(!element){\n    return null;\n  }\n\n  var position=window.getComputedStyle(element).getPropertyValue('position');\n  if(position!=='static'){\n    return element;\n  }\n\n  return getRelativeParent(element.parentElement);\n};\n\nvar AlignmentTool=function (_React$Component){\n  _inherits(AlignmentTool, _React$Component);\n\n  function AlignmentTool(){\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, AlignmentTool);\n\n    for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref=AlignmentTool.__proto__||Object.getPrototypeOf(AlignmentTool)).call.apply(_ref, [this].concat(args))), _this), _this.state={\n      position: {},\n      alignment: null\n    }, _this.onVisibilityChanged=function (visibleBlock){\n      setTimeout(function (){\n        var position=void 0;\n        var boundingRect=_this.props.store.getItem('boundingRect');\n        if(visibleBlock){\n          var relativeParent=getRelativeParent(_this.toolbar.parentElement);\n          var toolbarHeight=_this.toolbar.clientHeight;\n          var relativeRect=relativeParent ? relativeParent.getBoundingClientRect():document.body.getBoundingClientRect();\n          position={\n            top: boundingRect.top - relativeRect.top - toolbarHeight,\n            left: boundingRect.left - relativeRect.left + boundingRect.width / 2,\n            transform: 'translate(-50%) scale(1)',\n            transition: 'transform 0.15s cubic-bezier(.3,1.2,.2,1)'\n          };\n        }else{\n          position={ transform: 'translate(-50%) scale(0)' };\n        }\n        var alignment=_this.props.store.getItem('alignment')||'default';\n        _this.setState({\n          alignment: alignment,\n          position: position\n        });\n      }, 0);\n    }, _this.onAlignmentChange=function (alignment){\n      _this.setState({\n        alignment: alignment\n      });\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(AlignmentTool, [{\n    key: 'componentWillMount',\n    value: function componentWillMount(){\n      this.props.store.subscribeToItem('visibleBlock', this.onVisibilityChanged);\n      this.props.store.subscribeToItem('alignment', this.onAlignmentChange);\n    }\n  }, {\n    key: 'componentWillUnmount',\n    value: function componentWillUnmount(){\n      this.props.store.unsubscribeFromItem('visibleBlock', this.onVisibilityChanged);\n      this.props.store.unsubscribeFromItem('alignment', this.onAlignmentChange);\n    }\n  }, {\n    key: 'render',\n    value: function render(){\n      var _this2=this;\n\n      var defaultButtons=[_draftJsButtons.AlignBlockDefaultButton, _draftJsButtons.AlignBlockLeftButton, _draftJsButtons.AlignBlockCenterButton, _draftJsButtons.AlignBlockRightButton];\n\n      var theme=this.props.theme;\n\n\n      return _react2.default.createElement(\n        'div',\n        {\n          className: theme.alignmentToolStyles.alignmentTool,\n          style: this.state.position,\n          ref: function ref(toolbar){\n            _this2.toolbar=toolbar;\n          }\n        },\n        defaultButtons.map(function (Button, index){\n          return _react2.default.createElement(Button\n          \n          , { key: index,\n            alignment: _this2.state.alignment,\n            setAlignment: _this2.props.store.getItem('setAlignment'),\n            theme: theme.buttonStyles\n          });\n        })\n);\n    }\n  }]);\n\n  return AlignmentTool;\n}(_react2.default.Component);\n\nexports.default=AlignmentTool;\n\n//# sourceURL=webpack:///./node_modules/draft-js-alignment-plugin/lib/AlignmentTool/index.js?");
}),
"./node_modules/draft-js-alignment-plugin/lib/createDecorator.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _reactDom=__webpack_require__( \"./node_modules/react-dom/index.js\");\n\nvar _reactDom2=_interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _objectWithoutProperties(obj, keys){ var target={}; for (var i in obj){ if(keys.indexOf(i) >=0) continue; if(!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i]=obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; }\n\nvar getDisplayName=function getDisplayName(WrappedComponent){\n  var component=WrappedComponent.WrappedComponent||WrappedComponent;\n  return component.displayName||component.name||'Component';\n};\n\nexports.default=function (_ref){\n  var store=_ref.store;\n  return function (WrappedComponent){\n    var _class, _temp2;\n\n    return _temp2=_class=function (_Component){\n      _inherits(BlockAlignmentDecorator, _Component);\n\n      function BlockAlignmentDecorator(){\n        var _ref2;\n\n        var _temp, _this, _ret;\n\n        _classCallCheck(this, BlockAlignmentDecorator);\n\n        for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n          args[_key]=arguments[_key];\n        }\n\n        return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref2=BlockAlignmentDecorator.__proto__||Object.getPrototypeOf(BlockAlignmentDecorator)).call.apply(_ref2, [this].concat(args))), _this), _this.componentDidUpdate=function (){\n          if(_this.props.blockProps.isFocused&&_this.props.blockProps.isCollapsedSelection){\n            // TODO figure out if and how to achieve this without fetching the DOM node\n            // eslint-disable-next-line react/no-find-dom-node\n            var blockNode=_reactDom2.default.findDOMNode(_this);\n            var boundingRect=blockNode.getBoundingClientRect();\n            store.updateItem('setAlignment', _this.props.blockProps.setAlignment);\n            store.updateItem('alignment', _this.props.blockProps.alignment);\n            store.updateItem('boundingRect', boundingRect);\n            store.updateItem('visibleBlock', _this.props.block.getKey());\n            // Only set visibleBlock to null in case it's the current one. This is important\n            // in case the focus directly switches from one block to the other. Then the\n            // Alignment tool should not be hidden, but just moved.\n          }else if(store.getItem('visibleBlock')===_this.props.block.getKey()){\n            store.updateItem('visibleBlock', null);\n          }\n        }, _temp), _possibleConstructorReturn(_this, _ret);\n      }\n\n      _createClass(BlockAlignmentDecorator, [{\n        key: 'componentWillUnmount',\n        value: function componentWillUnmount(){\n          // Set visibleBlock to null if the block is deleted\n          store.updateItem('visibleBlock', null);\n        }\n      }, {\n        key: 'render',\n        value: function render(){\n          var _props=this.props,\n              blockProps=_props.blockProps,\n              style=_props.style,\n              elementProps=_objectWithoutProperties(_props, ['blockProps', 'style']);\n\n          var alignment=blockProps.alignment;\n          var newStyle=style;\n          if(alignment==='left'){\n            newStyle=_extends({}, style, { float: 'left' });\n          }else if(alignment==='right'){\n            newStyle=_extends({}, style, { float: 'right' });\n          }else if(alignment==='center'){\n            newStyle=_extends({}, style, { marginLeft: 'auto', marginRight: 'auto', display: 'block' });\n          }\n\n          return _react2.default.createElement(WrappedComponent, _extends({}, elementProps, {\n            blockProps: blockProps,\n            style: newStyle\n          }));\n        }\n      }]);\n\n      return BlockAlignmentDecorator;\n    }(_react.Component), _class.displayName='Alignment(' + getDisplayName(WrappedComponent) + ')', _class.WrappedComponent=WrappedComponent.WrappedComponent||WrappedComponent, _temp2;\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-alignment-plugin/lib/createDecorator.js?");
}),
"./node_modules/draft-js-alignment-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _createDecorator=__webpack_require__( \"./node_modules/draft-js-alignment-plugin/lib/createDecorator.js\");\n\nvar _createDecorator2=_interopRequireDefault(_createDecorator);\n\nvar _AlignmentTool=__webpack_require__( \"./node_modules/draft-js-alignment-plugin/lib/AlignmentTool/index.js\");\n\nvar _AlignmentTool2=_interopRequireDefault(_AlignmentTool);\n\nvar _createStore=__webpack_require__( \"./node_modules/draft-js-alignment-plugin/lib/utils/createStore.js\");\n\nvar _createStore2=_interopRequireDefault(_createStore);\n\nvar _buttonStyles={\n  \"buttonWrapper\": \"draftJsEmojiPlugin__buttonWrapper__1Dmqh\",\n  \"button\": \"draftJsEmojiPlugin__button__qi1gf\",\n  \"active\": \"draftJsEmojiPlugin__active__3qcpF\"\n};\n\nvar _buttonStyles2=_interopRequireDefault(_buttonStyles);\n\nvar _alignmentToolStyles={\n  \"alignmentTool\": \"draftJsEmojiPlugin__alignmentTool__2mkQr\"\n};\n\nvar _alignmentToolStyles2=_interopRequireDefault(_alignmentToolStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nvar createSetAlignment=function createSetAlignment(contentBlock, _ref){\n  var getEditorState=_ref.getEditorState,\n      setEditorState=_ref.setEditorState;\n  return function (data){\n    var entityKey=contentBlock.getEntityAt(0);\n    if(entityKey){\n      var editorState=getEditorState();\n      var contentState=editorState.getCurrentContent();\n      contentState.mergeEntityData(entityKey, _extends({}, data));\n      setEditorState(_draftJs.EditorState.forceSelection(editorState, editorState.getSelection()));\n    }\n  };\n};\n\nexports.default=function (){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var store=(0, _createStore2.default)({\n    isVisible: false\n  });\n\n  var defaultAlignmentToolTheme={\n    buttonStyles: _buttonStyles2.default,\n    alignmentToolStyles: _alignmentToolStyles2.default\n  };\n\n  var _config$theme=config.theme,\n      theme=_config$theme===undefined ? defaultAlignmentToolTheme:_config$theme;\n\n\n  var DecoratedAlignmentTool=function DecoratedAlignmentTool(props){\n    return _react2.default.createElement(_AlignmentTool2.default, _extends({}, props, { store: store, theme: theme }));\n  };\n\n  return {\n    initialize: function initialize(_ref2){\n      var getReadOnly=_ref2.getReadOnly,\n          getEditorState=_ref2.getEditorState,\n          setEditorState=_ref2.setEditorState;\n\n      store.updateItem('getReadOnly', getReadOnly);\n      store.updateItem('getEditorState', getEditorState);\n      store.updateItem('setEditorState', setEditorState);\n    },\n    decorator: (0, _createDecorator2.default)({ config: config, store: store }),\n    blockRendererFn: function blockRendererFn(contentBlock, _ref3){\n      var getEditorState=_ref3.getEditorState,\n          setEditorState=_ref3.setEditorState;\n\n      var entityKey=contentBlock.getEntityAt(0);\n      var contentState=getEditorState().getCurrentContent();\n      var alignmentData=entityKey ? contentState.getEntity(entityKey).data:{};\n      return {\n        props: {\n          alignment: alignmentData.alignment||'default',\n          setAlignment: createSetAlignment(contentBlock, { getEditorState: getEditorState, setEditorState: setEditorState })\n        }\n      };\n    },\n    AlignmentTool: DecoratedAlignmentTool\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-alignment-plugin/lib/index.js?");
}),
"./node_modules/draft-js-alignment-plugin/lib/utils/createStore.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar createStore=function createStore(initialState){\n  var state=initialState||{};\n  var listeners={};\n\n  var subscribeToItem=function subscribeToItem(key, callback){\n    listeners[key]=listeners[key]||[];\n    listeners[key].push(callback);\n  };\n\n  var unsubscribeFromItem=function unsubscribeFromItem(key, callback){\n    listeners[key]=listeners[key].filter(function (listener){\n      return listener!==callback;\n    });\n  };\n\n  var updateItem=function updateItem(key, item){\n    state=_extends({}, state, _defineProperty({}, key, item));\n    if(listeners[key]){\n      listeners[key].forEach(function (listener){\n        return listener(state[key]);\n      });\n    }\n  };\n\n  var getItem=function getItem(key){\n    return state[key];\n  };\n\n  return {\n    subscribeToItem: subscribeToItem,\n    unsubscribeFromItem: unsubscribeFromItem,\n    updateItem: updateItem,\n    getItem: getItem\n  };\n};\n\nexports.default=createStore;\n\n//# sourceURL=webpack:///./node_modules/draft-js-alignment-plugin/lib/utils/createStore.js?");
}),
"./node_modules/draft-js-buttons/lib/components/AlignBlockCenterButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockAlignmentButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockAlignmentButton.js\");\n\nvar _createBlockAlignmentButton2=_interopRequireDefault(_createBlockAlignmentButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockAlignmentButton2.default)({\n  alignment: 'center',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M3,21 L21,21 L21,19 L3,19 L3,21 Z M3,3 L3,5 L21,5 L21,3 L3,3 Z M5,7 L5,17 L19,17 L19,7 L5,7 Z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/AlignBlockCenterButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/AlignBlockDefaultButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockAlignmentButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockAlignmentButton.js\");\n\nvar _createBlockAlignmentButton2=_interopRequireDefault(_createBlockAlignmentButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockAlignmentButton2.default)({\n  alignment: 'default',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M3,21 L21,21 L21,19 L3,19 L3,21 Z M3,3 L3,5 L21,5 L21,3 L3,3 Z M3,7 L3,17 L17,17 L17,7 L3,7 Z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/AlignBlockDefaultButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/AlignBlockLeftButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockAlignmentButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockAlignmentButton.js\");\n\nvar _createBlockAlignmentButton2=_interopRequireDefault(_createBlockAlignmentButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockAlignmentButton2.default)({\n  alignment: 'left',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M21,15 L15,15 L15,17 L21,17 L21,15 Z M21,7 L15,7 L15,9 L21,9 L21,7 Z M15,13 L21,13 L21,11 L15,11 L15,13 Z M3,21 L21,21 L21,19 L3,19 L3,21 Z M3,3 L3,5 L21,5 L21,3 L3,3 Z M3,7 L3,17 L13,17 L13,7 L3,7 Z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/AlignBlockLeftButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/AlignBlockRightButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockAlignmentButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockAlignmentButton.js\");\n\nvar _createBlockAlignmentButton2=_interopRequireDefault(_createBlockAlignmentButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockAlignmentButton2.default)({\n  alignment: 'right',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M9,15 L3,15 L3,17 L9,17 L9,15 Z M9,7 L3,7 L3,9 L9,9 L9,7 Z M3,13 L9,13 L9,11 L3,11 L3,13 Z M3,21 L21,21 L21,19 L3,19 L3,21 Z M3,3 L3,5 L21,5 L21,3 L3,3 Z M11,7 L11,17 L21,17 L21,7 L11,7 Z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/AlignBlockRightButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/BlockquoteButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockStyleButton2.default)({\n  blockType: 'blockquote',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/BlockquoteButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/BoldButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createInlineStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js\");\n\nvar _createInlineStyleButton2=_interopRequireDefault(_createInlineStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createInlineStyleButton2.default)({\n  style: 'BOLD',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/BoldButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/CodeBlockButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockStyleButton2.default)({\n  blockType: 'code-block',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0V0z', fill: 'none' }),\n    _react2.default.createElement('path', { d: 'M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/CodeBlockButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/CodeButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createInlineStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js\");\n\nvar _createInlineStyleButton2=_interopRequireDefault(_createInlineStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createInlineStyleButton2.default)({\n  style: 'CODE',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0V0z', fill: 'none' }),\n    _react2.default.createElement('path', { d: 'M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/CodeButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/HeadlineOneButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockStyleButton2.default)({\n  blockType: 'header-one',\n  children: 'H1'\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/HeadlineOneButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/HeadlineThreeButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockStyleButton2.default)({\n  blockType: 'header-three',\n  children: 'H3'\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/HeadlineThreeButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/HeadlineTwoButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockStyleButton2.default)({\n  blockType: 'header-two',\n  children: 'H2'\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/HeadlineTwoButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/ItalicButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createInlineStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js\");\n\nvar _createInlineStyleButton2=_interopRequireDefault(_createInlineStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createInlineStyleButton2.default)({\n  style: 'ITALIC',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),\n    _react2.default.createElement('path', { d: 'M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/ItalicButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/OrderedListButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockStyleButton2.default)({\n  blockType: 'ordered-list-item',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/OrderedListButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/SubButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createInlineStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js\");\n\nvar _createInlineStyleButton2=_interopRequireDefault(_createInlineStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createInlineStyleButton2.default)({\n  style: 'SUBSCRIPT',\n  children: _react2.default.createElement(\n    'div',\n    null,\n    'x',\n    _react2.default.createElement(\n      'sub',\n      null,\n      '2'\n)\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/SubButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/SupButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createInlineStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js\");\n\nvar _createInlineStyleButton2=_interopRequireDefault(_createInlineStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createInlineStyleButton2.default)({\n  style: 'SUPERSCRIPT',\n  children: _react2.default.createElement(\n    'div',\n    null,\n    'x',\n    _react2.default.createElement(\n      'sup',\n      null,\n      '2'\n)\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/SupButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/UnderlineButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createInlineStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js\");\n\nvar _createInlineStyleButton2=_interopRequireDefault(_createInlineStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createInlineStyleButton2.default)({\n  style: 'UNDERLINE',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),\n    _react2.default.createElement('path', { d: 'M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/UnderlineButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/components/UnorderedListButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=(0, _createBlockStyleButton2.default)({\n  blockType: 'unordered-list-item',\n  children: _react2.default.createElement(\n    'svg',\n    { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n    _react2.default.createElement('path', { d: 'M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z' }),\n    _react2.default.createElement('path', { d: 'M0 0h24v24H0V0z', fill: 'none' })\n)\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/components/UnorderedListButton/index.js?");
}),
"./node_modules/draft-js-buttons/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.AlignBlockRightButton=exports.AlignBlockLeftButton=exports.AlignBlockCenterButton=exports.AlignBlockDefaultButton=exports.CodeBlockButton=exports.BlockquoteButton=exports.OrderedListButton=exports.UnorderedListButton=exports.HeadlineThreeButton=exports.HeadlineTwoButton=exports.HeadlineOneButton=exports.UnderlineButton=exports.CodeButton=exports.SubButton=exports.SupButton=exports.BoldButton=exports.ItalicButton=exports.createInlineStyleButton=exports.createBlockStyleButton=undefined;\n\nvar _createBlockStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js\");\n\nvar _createBlockStyleButton2=_interopRequireDefault(_createBlockStyleButton);\n\nvar _createInlineStyleButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js\");\n\nvar _createInlineStyleButton2=_interopRequireDefault(_createInlineStyleButton);\n\nvar _ItalicButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/ItalicButton/index.js\");\n\nvar _ItalicButton2=_interopRequireDefault(_ItalicButton);\n\nvar _BoldButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/BoldButton/index.js\");\n\nvar _BoldButton2=_interopRequireDefault(_BoldButton);\n\nvar _CodeButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/CodeButton/index.js\");\n\nvar _CodeButton2=_interopRequireDefault(_CodeButton);\n\nvar _UnderlineButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/UnderlineButton/index.js\");\n\nvar _UnderlineButton2=_interopRequireDefault(_UnderlineButton);\n\nvar _HeadlineOneButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/HeadlineOneButton/index.js\");\n\nvar _HeadlineOneButton2=_interopRequireDefault(_HeadlineOneButton);\n\nvar _HeadlineTwoButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/HeadlineTwoButton/index.js\");\n\nvar _HeadlineTwoButton2=_interopRequireDefault(_HeadlineTwoButton);\n\nvar _HeadlineThreeButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/HeadlineThreeButton/index.js\");\n\nvar _HeadlineThreeButton2=_interopRequireDefault(_HeadlineThreeButton);\n\nvar _UnorderedListButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/UnorderedListButton/index.js\");\n\nvar _UnorderedListButton2=_interopRequireDefault(_UnorderedListButton);\n\nvar _OrderedListButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/OrderedListButton/index.js\");\n\nvar _OrderedListButton2=_interopRequireDefault(_OrderedListButton);\n\nvar _BlockquoteButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/BlockquoteButton/index.js\");\n\nvar _BlockquoteButton2=_interopRequireDefault(_BlockquoteButton);\n\nvar _CodeBlockButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/CodeBlockButton/index.js\");\n\nvar _CodeBlockButton2=_interopRequireDefault(_CodeBlockButton);\n\nvar _AlignBlockDefaultButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/AlignBlockDefaultButton/index.js\");\n\nvar _AlignBlockDefaultButton2=_interopRequireDefault(_AlignBlockDefaultButton);\n\nvar _AlignBlockCenterButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/AlignBlockCenterButton/index.js\");\n\nvar _AlignBlockCenterButton2=_interopRequireDefault(_AlignBlockCenterButton);\n\nvar _AlignBlockLeftButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/AlignBlockLeftButton/index.js\");\n\nvar _AlignBlockLeftButton2=_interopRequireDefault(_AlignBlockLeftButton);\n\nvar _AlignBlockRightButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/AlignBlockRightButton/index.js\");\n\nvar _AlignBlockRightButton2=_interopRequireDefault(_AlignBlockRightButton);\n\nvar _SubButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/SubButton/index.js\");\n\nvar _SubButton2=_interopRequireDefault(_SubButton);\n\nvar _SupButton=__webpack_require__( \"./node_modules/draft-js-buttons/lib/components/SupButton/index.js\");\n\nvar _SupButton2=_interopRequireDefault(_SupButton);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.createBlockStyleButton=_createBlockStyleButton2.default;\nexports.createInlineStyleButton=_createInlineStyleButton2.default;\nexports.ItalicButton=_ItalicButton2.default;\nexports.BoldButton=_BoldButton2.default;\nexports.SupButton=_SupButton2.default;\nexports.SubButton=_SubButton2.default;\nexports.CodeButton=_CodeButton2.default;\nexports.UnderlineButton=_UnderlineButton2.default;\nexports.HeadlineOneButton=_HeadlineOneButton2.default;\nexports.HeadlineTwoButton=_HeadlineTwoButton2.default;\nexports.HeadlineThreeButton=_HeadlineThreeButton2.default;\nexports.UnorderedListButton=_UnorderedListButton2.default;\nexports.OrderedListButton=_OrderedListButton2.default;\nexports.BlockquoteButton=_BlockquoteButton2.default;\nexports.CodeBlockButton=_CodeBlockButton2.default;\nexports.AlignBlockDefaultButton=_AlignBlockDefaultButton2.default;\nexports.AlignBlockCenterButton=_AlignBlockCenterButton2.default;\nexports.AlignBlockLeftButton=_AlignBlockLeftButton2.default;\nexports.AlignBlockRightButton=_AlignBlockRightButton2.default;\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/index.js?");
}),
"./node_modules/draft-js-buttons/lib/utils/createBlockAlignmentButton.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _clsx=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n\nvar _clsx2=_interopRequireDefault(_clsx);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nexports.default=function (_ref){\n  var alignment=_ref.alignment,\n      children=_ref.children;\n  return function (_Component){\n    _inherits(BlockAlignmentButton, _Component);\n\n    function BlockAlignmentButton(){\n      var _ref2;\n\n      var _temp, _this, _ret;\n\n      _classCallCheck(this, BlockAlignmentButton);\n\n      for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n        args[_key]=arguments[_key];\n      }\n\n      return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref2=BlockAlignmentButton.__proto__||Object.getPrototypeOf(BlockAlignmentButton)).call.apply(_ref2, [this].concat(args))), _this), _this.activate=function (event){\n        event.preventDefault();\n        _this.props.setAlignment({ alignment: alignment });\n      }, _this.preventBubblingUp=function (event){\n        event.preventDefault();\n      }, _this.isActive=function (){\n        return _this.props.alignment===alignment;\n      }, _temp), _possibleConstructorReturn(_this, _ret);\n    }\n\n    _createClass(BlockAlignmentButton, [{\n      key: 'render',\n      value: function render(){\n        var theme=this.props.theme;\n\n        var className=this.isActive() ? (0, _clsx2.default)(theme.button, theme.active):theme.button;\n        return _react2.default.createElement(\n          'div',\n          {\n            className: theme.buttonWrapper,\n            onMouseDown: this.preventBubblingUp\n          },\n          _react2.default.createElement('button', {\n            className: className,\n            onClick: this.activate,\n            type: 'button',\n            children: children\n          })\n);\n      }\n    }]);\n\n    return BlockAlignmentButton;\n  }(_react.Component);\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/utils/createBlockAlignmentButton.js?");
}),
"./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _clsx=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n\nvar _clsx2=_interopRequireDefault(_clsx);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nexports.default=function (_ref){\n  var blockType=_ref.blockType,\n      children=_ref.children;\n  return function (_Component){\n    _inherits(BlockStyleButton, _Component);\n\n    function BlockStyleButton(){\n      var _ref2;\n\n      var _temp, _this, _ret;\n\n      _classCallCheck(this, BlockStyleButton);\n\n      for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n        args[_key]=arguments[_key];\n      }\n\n      return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref2=BlockStyleButton.__proto__||Object.getPrototypeOf(BlockStyleButton)).call.apply(_ref2, [this].concat(args))), _this), _this.toggleStyle=function (event){\n        event.preventDefault();\n        _this.props.setEditorState(_draftJs.RichUtils.toggleBlockType(_this.props.getEditorState(), blockType));\n      }, _this.preventBubblingUp=function (event){\n        event.preventDefault();\n      }, _this.blockTypeIsActive=function (){\n        // if the button is rendered before the editor\n        if(!_this.props.getEditorState){\n          return false;\n        }\n\n        var editorState=_this.props.getEditorState();\n        var type=editorState.getCurrentContent().getBlockForKey(editorState.getSelection().getStartKey()).getType();\n        return type===blockType;\n      }, _temp), _possibleConstructorReturn(_this, _ret);\n    }\n\n    _createClass(BlockStyleButton, [{\n      key: 'render',\n      value: function render(){\n        var theme=this.props.theme;\n\n        var className=this.blockTypeIsActive() ? (0, _clsx2.default)(theme.button, theme.active):theme.button;\n        return _react2.default.createElement(\n          'div',\n          {\n            className: theme.buttonWrapper,\n            onMouseDown: this.preventBubblingUp\n          },\n          _react2.default.createElement('button', {\n            className: className,\n            onClick: this.toggleStyle,\n            type: 'button',\n            children: children\n          })\n);\n      }\n    }]);\n\n    return BlockStyleButton;\n  }(_react.Component);\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/utils/createBlockStyleButton.js?");
}),
"./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _clsx=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n\nvar _clsx2=_interopRequireDefault(_clsx);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nexports.default=function (_ref){\n  var style=_ref.style,\n      children=_ref.children;\n  return function (_Component){\n    _inherits(InlineStyleButton, _Component);\n\n    function InlineStyleButton(){\n      var _ref2;\n\n      var _temp, _this, _ret;\n\n      _classCallCheck(this, InlineStyleButton);\n\n      for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n        args[_key]=arguments[_key];\n      }\n\n      return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref2=InlineStyleButton.__proto__||Object.getPrototypeOf(InlineStyleButton)).call.apply(_ref2, [this].concat(args))), _this), _this.toggleStyle=function (event){\n        event.preventDefault();\n        _this.props.setEditorState(_draftJs.RichUtils.toggleInlineStyle(_this.props.getEditorState(), style));\n      }, _this.preventBubblingUp=function (event){\n        event.preventDefault();\n      }, _this.styleIsActive=function (){\n        return _this.props.getEditorState&&_this.props.getEditorState().getCurrentInlineStyle().has(style);\n      }, _temp), _possibleConstructorReturn(_this, _ret);\n    }\n\n    // we check if this.props.getEditorstate is undefined first in case the button is rendered before the editor\n\n\n    _createClass(InlineStyleButton, [{\n      key: 'render',\n      value: function render(){\n        var theme=this.props.theme;\n\n        var className=this.styleIsActive() ? (0, _clsx2.default)(theme.button, theme.active):theme.button;\n        return _react2.default.createElement(\n          'div',\n          {\n            className: theme.buttonWrapper,\n            onMouseDown: this.preventBubblingUp\n          },\n          _react2.default.createElement('button', {\n            className: className,\n            onClick: this.toggleStyle,\n            type: 'button',\n            children: children\n          })\n);\n      }\n    }]);\n\n    return InlineStyleButton;\n  }(_react.Component);\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-buttons/lib/utils/createInlineStyleButton.js?");
}),
"./node_modules/draft-js-drag-n-drop-plugin/lib/constants/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nvar DRAFTJS_BLOCK_KEY=exports.DRAFTJS_BLOCK_KEY='DRAFTJS_BLOCK_KEY';\nvar DRAFTJS_BLOCK_TYPE=exports.DRAFTJS_BLOCK_TYPE='DRAFTJS_BLOCK_TYPE';\n\n//# sourceURL=webpack:///./node_modules/draft-js-drag-n-drop-plugin/lib/constants/index.js?");
}),
"./node_modules/draft-js-drag-n-drop-plugin/lib/createDecorator.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _constants=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/lib/constants/index.js\");\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; }\n\n// Get a component's display name\nvar getDisplayName=function getDisplayName(WrappedComponent){\n  var component=WrappedComponent.WrappedComponent||WrappedComponent;\n  return component.displayName||component.name||'Component';\n};\n\nexports.default=function (_ref){\n  var store=_ref.store;\n  return function (WrappedComponent){\n    var _class, _temp2;\n\n    return _temp2=_class=function (_Component){\n      _inherits(BlockDraggableDecorator, _Component);\n\n      function BlockDraggableDecorator(){\n        var _ref2;\n\n        var _temp, _this, _ret;\n\n        _classCallCheck(this, BlockDraggableDecorator);\n\n        for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n          args[_key]=arguments[_key];\n        }\n\n        return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref2=BlockDraggableDecorator.__proto__||Object.getPrototypeOf(BlockDraggableDecorator)).call.apply(_ref2, [this].concat(args))), _this), _this.startDrag=function (event){\n          event.dataTransfer.dropEffect='move'; // eslint-disable-line no-param-reassign\n          // declare data and give info that its an existing key and a block needs to be moved\n          event.dataTransfer.setData('text', _constants.DRAFTJS_BLOCK_KEY + ':' + _this.props.block.key);\n        }, _temp), _possibleConstructorReturn(_this, _ret);\n      }\n      // eslint-disable-next-line no-redeclare\n\n\n      // Handle start-drag and set dataTransfer data with blockKey\n\n\n      _createClass(BlockDraggableDecorator, [{\n        key: 'render',\n        value: function render(){\n          // If this is rendered before the store is initialized default to read only\n          // NOTE(@mxstbr): Reference issue: draft-js-plugins/draft-js-plugins#926\n          var readOnly=store.getReadOnly ? store.getReadOnly():true;\n          return _react2.default.createElement(WrappedComponent, _extends({}, this.props, {\n            onDragStart: !readOnly ? this.startDrag:undefined\n          }));\n        }\n      }]);\n\n      return BlockDraggableDecorator;\n    }(_react.Component), _class.displayName='BlockDraggable(' + getDisplayName(WrappedComponent) + ')', _class.WrappedComponent=WrappedComponent.WrappedComponent||WrappedComponent, _temp2;\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-drag-n-drop-plugin/lib/createDecorator.js?");
}),
"./node_modules/draft-js-drag-n-drop-plugin/lib/handleDrop.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _addBlock=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/lib/modifiers/addBlock.js\");\n\nvar _addBlock2=_interopRequireDefault(_addBlock);\n\nvar _removeBlock=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/lib/modifiers/removeBlock.js\");\n\nvar _removeBlock2=_interopRequireDefault(_removeBlock);\n\nvar _constants=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/lib/constants/index.js\");\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (selection, dataTransfer, isInternal, _ref){\n  var getEditorState=_ref.getEditorState,\n      setEditorState=_ref.setEditorState;\n\n  var editorState=getEditorState();\n\n  // Get data 'text' (anything else won't move the cursor) and expecting kind of data (text/key)\n  var raw=dataTransfer.data.getData('text');\n  var data=raw ? raw.split(':'):[];\n\n  if(data.length!==2){\n    return undefined;\n  }\n\n  // Existing block dropped\n  if(data[0]===_constants.DRAFTJS_BLOCK_KEY){\n    var blockKey=data[1];\n\n    // Get content, selection, block\n    var contentState=editorState.getCurrentContent();\n    var block=contentState.getBlockForKey(blockKey);\n    var entity=contentState.getEntity(block.getEntityAt(0));\n    var contentStateAfterInsert=(0, _addBlock2.default)(editorState, selection, block.getType(), entity.data, entity.type);\n    var contentStateAfterRemove=(0, _removeBlock2.default)(contentStateAfterInsert, blockKey);\n\n    // force to new selection\n    var newSelection=new _draftJs.SelectionState({\n      anchorKey: blockKey,\n      anchorOffset: 0,\n      focusKey: blockKey,\n      focusOffset: 0\n    });\n    var newState=_draftJs.EditorState.push(editorState, contentStateAfterRemove, 'move-block');\n    setEditorState(_draftJs.EditorState.forceSelection(newState, newSelection));\n  }\n\n  return 'handled';\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-drag-n-drop-plugin/lib/handleDrop.js?");
}),
"./node_modules/draft-js-drag-n-drop-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _handleDrop=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/lib/handleDrop.js\");\n\nvar _handleDrop2=_interopRequireDefault(_handleDrop);\n\nvar _createDecorator=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/lib/createDecorator.js\");\n\nvar _createDecorator2=_interopRequireDefault(_createDecorator);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nvar createBlockDndPlugin=function createBlockDndPlugin(){\n  var store={\n    getReadOnly: undefined\n  };\n  return {\n    initialize: function initialize(_ref){\n      var getReadOnly=_ref.getReadOnly;\n\n      store.getReadOnly=getReadOnly;\n    },\n    decorator: (0, _createDecorator2.default)({ store: store }),\n    // Handle blocks dragged and dropped across the editor\n    handleDrop: _handleDrop2.default\n  };\n};\n\nexports.default=createBlockDndPlugin;\n\n//# sourceURL=webpack:///./node_modules/draft-js-drag-n-drop-plugin/lib/index.js?");
}),
"./node_modules/draft-js-drag-n-drop-plugin/lib/modifiers/addBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nexports.default=function (editorState, selection, type, data, entityType){\n  var text=arguments.length > 5&&arguments[5]!==undefined ? arguments[5]:' ';\n\n  var currentContentState=editorState.getCurrentContent();\n  var currentSelectionState=selection;\n\n  // in case text is selected it is removed and then the block is appended\n  var afterRemovalContentState=_draftJs.Modifier.removeRange(currentContentState, currentSelectionState, 'backward');\n\n  // deciding on the postion to split the text\n  var targetSelection=afterRemovalContentState.getSelectionAfter();\n  var blockKeyForTarget=targetSelection.get('focusKey');\n  var block=currentContentState.getBlockForKey(blockKeyForTarget);\n  var insertionTargetSelection=void 0;\n  var insertionTargetBlock=void 0;\n\n  // In case there are no characters or entity or the selection is at the start it\n  // is safe to insert the block in the current block.\n  // Otherwise a new block is created (the block is always its own block)\n  var isEmptyBlock=block.getLength()===0&&block.getEntityAt(0)===null;\n  var selectedFromStart=currentSelectionState.getStartOffset()===0;\n  if(isEmptyBlock||selectedFromStart){\n    insertionTargetSelection=targetSelection;\n    insertionTargetBlock=afterRemovalContentState;\n  }else{\n    // the only way to insert a new seems to be by splitting an existing in to two\n    insertionTargetBlock=_draftJs.Modifier.splitBlock(afterRemovalContentState, targetSelection);\n\n    // the position to insert our blocks\n    insertionTargetSelection=insertionTargetBlock.getSelectionAfter();\n  }\n\n  // TODO not sure why we need it …\n  var newContentStateAfterSplit=_draftJs.Modifier.setBlockType(insertionTargetBlock, insertionTargetSelection, type);\n\n  // creating a new ContentBlock including the entity with data\n  // Entity will be created with a specific type, if defined, else will fall back to the ContentBlock type\n  var contentStateWithEntity=newContentStateAfterSplit.createEntity(entityType||type, 'IMMUTABLE', _extends({}, data));\n  var entityKey=contentStateWithEntity.getLastCreatedEntityKey();\n  var charData=_draftJs.CharacterMetadata.create({ entity: entityKey });\n\n  var fragmentArray=[new _draftJs.ContentBlock({\n    key: (0, _draftJs.genKey)(),\n    type: type,\n    text: text,\n    characterList: (0, _immutable.List)((0, _immutable.Repeat)(charData, text.length||1)) // eslint-disable-line new-cap\n  }),\n\n  // new contentblock so we can continue wrting right away after inserting the block\n  new _draftJs.ContentBlock({\n    key: (0, _draftJs.genKey)(),\n    type: 'unstyled',\n    text: '',\n    characterList: (0, _immutable.List)() // eslint-disable-line new-cap\n  })];\n\n  // create fragment containing the two content blocks\n  var fragment=_draftJs.BlockMapBuilder.createFromArray(fragmentArray);\n\n  // replace the contentblock we reserved for our insert\n  return _draftJs.Modifier.replaceWithFragment(newContentStateAfterSplit, insertionTargetSelection, fragment);\n};\n\nvar _immutable=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/node_modules/immutable/dist/immutable.js\");\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\n//# sourceURL=webpack:///./node_modules/draft-js-drag-n-drop-plugin/lib/modifiers/addBlock.js?");
}),
"./node_modules/draft-js-drag-n-drop-plugin/lib/modifiers/removeBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nexports.default=function (contentState, blockKey){\n  var afterKey=contentState.getKeyAfter(blockKey);\n  var afterBlock=contentState.getBlockForKey(afterKey);\n  var targetRange=void 0;\n\n  // Only if the following block the last with no text then the whole block\n  // should be removed. Otherwise the block should be reduced to an unstyled block\n  // without any characters.\n  if(afterBlock&&afterBlock.getType()==='unstyled'&&afterBlock.getLength()===0&&afterBlock===contentState.getBlockMap().last()){\n    targetRange=new _draftJs.SelectionState({\n      anchorKey: blockKey,\n      anchorOffset: 0,\n      focusKey: afterKey,\n      focusOffset: 0\n    });\n  }else{\n    targetRange=new _draftJs.SelectionState({\n      anchorKey: blockKey,\n      anchorOffset: 0,\n      focusKey: blockKey,\n      focusOffset: 1\n    });\n  }\n\n  // change the blocktype and remove the characterList entry with the block\n  var newContentState=_draftJs.Modifier.setBlockType(contentState, targetRange, 'unstyled');\n  return _draftJs.Modifier.removeRange(newContentState, targetRange, 'backward');\n};\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\n//# sourceURL=webpack:///./node_modules/draft-js-drag-n-drop-plugin/lib/modifiers/removeBlock.js?");
}),
"./node_modules/draft-js-drag-n-drop-plugin/node_modules/immutable/dist/immutable.js":
(function(module, exports, __webpack_require__){
eval("\n\n(function (global, factory){\n   true ? module.exports=factory() :\n  undefined;\n}(this, function (){ 'use strict';var SLICE$0=Array.prototype.slice;\n\n  function createClass(ctor, superClass){\n    if(superClass){\n      ctor.prototype=Object.create(superClass.prototype);\n    }\n    ctor.prototype.constructor=ctor;\n  }\n\n  function Iterable(value){\n      return isIterable(value) ? value:Seq(value);\n    }\n\n\n  createClass(KeyedIterable, Iterable);\n    function KeyedIterable(value){\n      return isKeyed(value) ? value:KeyedSeq(value);\n    }\n\n\n  createClass(IndexedIterable, Iterable);\n    function IndexedIterable(value){\n      return isIndexed(value) ? value:IndexedSeq(value);\n    }\n\n\n  createClass(SetIterable, Iterable);\n    function SetIterable(value){\n      return isIterable(value)&&!isAssociative(value) ? value:SetSeq(value);\n    }\n\n\n\n  function isIterable(maybeIterable){\n    return !!(maybeIterable&&maybeIterable[IS_ITERABLE_SENTINEL]);\n  }\n\n  function isKeyed(maybeKeyed){\n    return !!(maybeKeyed&&maybeKeyed[IS_KEYED_SENTINEL]);\n  }\n\n  function isIndexed(maybeIndexed){\n    return !!(maybeIndexed&&maybeIndexed[IS_INDEXED_SENTINEL]);\n  }\n\n  function isAssociative(maybeAssociative){\n    return isKeyed(maybeAssociative)||isIndexed(maybeAssociative);\n  }\n\n  function isOrdered(maybeOrdered){\n    return !!(maybeOrdered&&maybeOrdered[IS_ORDERED_SENTINEL]);\n  }\n\n  Iterable.isIterable=isIterable;\n  Iterable.isKeyed=isKeyed;\n  Iterable.isIndexed=isIndexed;\n  Iterable.isAssociative=isAssociative;\n  Iterable.isOrdered=isOrdered;\n\n  Iterable.Keyed=KeyedIterable;\n  Iterable.Indexed=IndexedIterable;\n  Iterable.Set=SetIterable;\n\n\n  var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  // Used for setting prototype methods that IE8 chokes on.\n  var DELETE='delete';\n\n  // Constants describing the size of trie nodes.\n  var SHIFT=5; // Resulted in best performance after ______?\n  var SIZE=1 << SHIFT;\n  var MASK=SIZE - 1;\n\n  // A consistent shared value representing \"not set\" which equals nothing other\n  // than itself, and nothing that could be provided externally.\n  var NOT_SET={};\n\n  // Boolean references, Rough equivalent of `bool &`.\n  var CHANGE_LENGTH={ value: false };\n  var DID_ALTER={ value: false };\n\n  function MakeRef(ref){\n    ref.value=false;\n    return ref;\n  }\n\n  function SetRef(ref){\n    ref&&(ref.value=true);\n  }\n\n  // A function which returns a value representing an \"owner\" for transient writes\n  // to tries. The return value will only ever equal itself, and will not equal\n  // the return of any subsequent call of this function.\n  function OwnerID(){}\n\n  // http://jsperf.com/copy-array-inline\n  function arrCopy(arr, offset){\n    offset=offset||0;\n    var len=Math.max(0, arr.length - offset);\n    var newArr=new Array(len);\n    for (var ii=0; ii < len; ii++){\n      newArr[ii]=arr[ii + offset];\n    }\n    return newArr;\n  }\n\n  function ensureSize(iter){\n    if(iter.size===undefined){\n      iter.size=iter.__iterate(returnTrue);\n    }\n    return iter.size;\n  }\n\n  function wrapIndex(iter, index){\n    // This implements \"is array index\" which the ECMAString spec defines as:\n    //\n    //     A String property name P is an array index if and only if\n    //     ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal\n    //     to 2^32−1.\n    //\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects\n    if(typeof index!=='number'){\n      var uint32Index=index >>> 0; // N >>> 0 is shorthand for ToUint32\n      if('' + uint32Index!==index||uint32Index===4294967295){\n        return NaN;\n      }\n      index=uint32Index;\n    }\n    return index < 0 ? ensureSize(iter) + index:index;\n  }\n\n  function returnTrue(){\n    return true;\n  }\n\n  function wholeSlice(begin, end, size){\n    return (begin===0||(size!==undefined&&begin <=-size))&&\n      (end===undefined||(size!==undefined&&end >=size));\n  }\n\n  function resolveBegin(begin, size){\n    return resolveIndex(begin, size, 0);\n  }\n\n  function resolveEnd(end, size){\n    return resolveIndex(end, size, size);\n  }\n\n  function resolveIndex(index, size, defaultIndex){\n    return index===undefined ?\n      defaultIndex :\n      index < 0 ?\n        Math.max(0, size + index) :\n        size===undefined ?\n          index :\n          Math.min(size, index);\n  }\n\n  \n\n  var ITERATE_KEYS=0;\n  var ITERATE_VALUES=1;\n  var ITERATE_ENTRIES=2;\n\n  var REAL_ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL='@@iterator';\n\n  var ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL;\n\n\n  function Iterator(next){\n      this.next=next;\n    }\n\n    Iterator.prototype.toString=function(){\n      return '[Iterator]';\n    };\n\n\n  Iterator.KEYS=ITERATE_KEYS;\n  Iterator.VALUES=ITERATE_VALUES;\n  Iterator.ENTRIES=ITERATE_ENTRIES;\n\n  Iterator.prototype.inspect=\n  Iterator.prototype.toSource=function (){ return this.toString(); }\n  Iterator.prototype[ITERATOR_SYMBOL]=function (){\n    return this;\n  };\n\n\n  function iteratorValue(type, k, v, iteratorResult){\n    var value=type===0 ? k:type===1 ? v:[k, v];\n    iteratorResult ? (iteratorResult.value=value):(iteratorResult={\n      value: value, done: false\n    });\n    return iteratorResult;\n  }\n\n  function iteratorDone(){\n    return { value: undefined, done: true };\n  }\n\n  function hasIterator(maybeIterable){\n    return !!getIteratorFn(maybeIterable);\n  }\n\n  function isIterator(maybeIterator){\n    return maybeIterator&&typeof maybeIterator.next==='function';\n  }\n\n  function getIterator(iterable){\n    var iteratorFn=getIteratorFn(iterable);\n    return iteratorFn&&iteratorFn.call(iterable);\n  }\n\n  function getIteratorFn(iterable){\n    var iteratorFn=iterable&&(\n      (REAL_ITERATOR_SYMBOL&&iterable[REAL_ITERATOR_SYMBOL])||\n      iterable[FAUX_ITERATOR_SYMBOL]\n);\n    if(typeof iteratorFn==='function'){\n      return iteratorFn;\n    }\n  }\n\n  function isArrayLike(value){\n    return value&&typeof value.length==='number';\n  }\n\n  createClass(Seq, Iterable);\n    function Seq(value){\n      return value===null||value===undefined ? emptySequence() :\n        isIterable(value) ? value.toSeq():seqFromValue(value);\n    }\n\n    Seq.of=function(){\n      return Seq(arguments);\n    };\n\n    Seq.prototype.toSeq=function(){\n      return this;\n    };\n\n    Seq.prototype.toString=function(){\n      return this.__toString('Seq {', '}');\n    };\n\n    Seq.prototype.cacheResult=function(){\n      if(!this._cache&&this.__iterateUncached){\n        this._cache=this.entrySeq().toArray();\n        this.size=this._cache.length;\n      }\n      return this;\n    };\n\n    // abstract __iterateUncached(fn, reverse)\n\n    Seq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, true);\n    };\n\n    // abstract __iteratorUncached(type, reverse)\n\n    Seq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, true);\n    };\n\n\n\n  createClass(KeyedSeq, Seq);\n    function KeyedSeq(value){\n      return value===null||value===undefined ?\n        emptySequence().toKeyedSeq() :\n        isIterable(value) ?\n          (isKeyed(value) ? value.toSeq():value.fromEntrySeq()) :\n          keyedSeqFromValue(value);\n    }\n\n    KeyedSeq.prototype.toKeyedSeq=function(){\n      return this;\n    };\n\n\n\n  createClass(IndexedSeq, Seq);\n    function IndexedSeq(value){\n      return value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value.toIndexedSeq();\n    }\n\n    IndexedSeq.of=function(){\n      return IndexedSeq(arguments);\n    };\n\n    IndexedSeq.prototype.toIndexedSeq=function(){\n      return this;\n    };\n\n    IndexedSeq.prototype.toString=function(){\n      return this.__toString('Seq [', ']');\n    };\n\n    IndexedSeq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, false);\n    };\n\n    IndexedSeq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, false);\n    };\n\n\n\n  createClass(SetSeq, Seq);\n    function SetSeq(value){\n      return (\n        value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value\n).toSetSeq();\n    }\n\n    SetSeq.of=function(){\n      return SetSeq(arguments);\n    };\n\n    SetSeq.prototype.toSetSeq=function(){\n      return this;\n    };\n\n\n\n  Seq.isSeq=isSeq;\n  Seq.Keyed=KeyedSeq;\n  Seq.Set=SetSeq;\n  Seq.Indexed=IndexedSeq;\n\n  var IS_SEQ_SENTINEL='@@__IMMUTABLE_SEQ__@@';\n\n  Seq.prototype[IS_SEQ_SENTINEL]=true;\n\n\n\n  createClass(ArraySeq, IndexedSeq);\n    function ArraySeq(array){\n      this._array=array;\n      this.size=array.length;\n    }\n\n    ArraySeq.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._array[wrapIndex(this, index)]:notSetValue;\n    };\n\n    ArraySeq.prototype.__iterate=function(fn, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(array[reverse ? maxIndex - ii:ii], ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ArraySeq.prototype.__iterator=function(type, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      var ii=0;\n      return new Iterator(function() \n        {return ii > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, ii, array[reverse ? maxIndex - ii++:ii++])}\n);\n    };\n\n\n\n  createClass(ObjectSeq, KeyedSeq);\n    function ObjectSeq(object){\n      var keys=Object.keys(object);\n      this._object=object;\n      this._keys=keys;\n      this.size=keys.length;\n    }\n\n    ObjectSeq.prototype.get=function(key, notSetValue){\n      if(notSetValue!==undefined&&!this.has(key)){\n        return notSetValue;\n      }\n      return this._object[key];\n    };\n\n    ObjectSeq.prototype.has=function(key){\n      return this._object.hasOwnProperty(key);\n    };\n\n    ObjectSeq.prototype.__iterate=function(fn, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        if(fn(object[key], key, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ObjectSeq.prototype.__iterator=function(type, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, key, object[key]);\n      });\n    };\n\n  ObjectSeq.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(IterableSeq, IndexedSeq);\n    function IterableSeq(iterable){\n      this._iterable=iterable;\n      this.size=iterable.length||iterable.size;\n    }\n\n    IterableSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      var iterations=0;\n      if(isIterator(iterator)){\n        var step;\n        while (!(step=iterator.next()).done){\n          if(fn(step.value, iterations++, this)===false){\n            break;\n          }\n        }\n      }\n      return iterations;\n    };\n\n    IterableSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      if(!isIterator(iterator)){\n        return new Iterator(iteratorDone);\n      }\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step:iteratorValue(type, iterations++, step.value);\n      });\n    };\n\n\n\n  createClass(IteratorSeq, IndexedSeq);\n    function IteratorSeq(iterator){\n      this._iterator=iterator;\n      this._iteratorCache=[];\n    }\n\n    IteratorSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      while (iterations < cache.length){\n        if(fn(cache[iterations], iterations++, this)===false){\n          return iterations;\n        }\n      }\n      var step;\n      while (!(step=iterator.next()).done){\n        var val=step.value;\n        cache[iterations]=val;\n        if(fn(val, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n\n    IteratorSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      return new Iterator(function(){\n        if(iterations >=cache.length){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          cache[iterations]=step.value;\n        }\n        return iteratorValue(type, iterations, cache[iterations++]);\n      });\n    };\n\n\n\n\n  // # pragma Helper functions\n\n  function isSeq(maybeSeq){\n    return !!(maybeSeq&&maybeSeq[IS_SEQ_SENTINEL]);\n  }\n\n  var EMPTY_SEQ;\n\n  function emptySequence(){\n    return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]));\n  }\n\n  function keyedSeqFromValue(value){\n    var seq=\n      Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :\n      isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :\n      hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :\n      typeof value==='object' ? new ObjectSeq(value) :\n      undefined;\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of [k, v] entries, '+\n        'or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function indexedSeqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value);\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values: ' + value\n);\n    }\n    return seq;\n  }\n\n  function seqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value)||\n      (typeof value==='object'&&new ObjectSeq(value));\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values, or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function maybeIndexedSeqFromValue(value){\n    return (\n      isArrayLike(value) ? new ArraySeq(value) :\n      isIterator(value) ? new IteratorSeq(value) :\n      hasIterator(value) ? new IterableSeq(value) :\n      undefined\n);\n  }\n\n  function seqIterate(seq, fn, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        if(fn(entry[1], useKeys ? entry[0]:ii, seq)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    }\n    return seq.__iterateUncached(fn, reverse);\n  }\n\n  function seqIterator(seq, type, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, useKeys ? entry[0]:ii - 1, entry[1]);\n      });\n    }\n    return seq.__iteratorUncached(type, reverse);\n  }\n\n  function fromJS(json, converter){\n    return converter ?\n      fromJSWith(converter, json, '', {'': json}) :\n      fromJSDefault(json);\n  }\n\n  function fromJSWith(converter, json, key, parentJSON){\n    if(Array.isArray(json)){\n      return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    if(isPlainObj(json)){\n      return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    return json;\n  }\n\n  function fromJSDefault(json){\n    if(Array.isArray(json)){\n      return IndexedSeq(json).map(fromJSDefault).toList();\n    }\n    if(isPlainObj(json)){\n      return KeyedSeq(json).map(fromJSDefault).toMap();\n    }\n    return json;\n  }\n\n  function isPlainObj(value){\n    return value&&(value.constructor===Object||value.constructor===undefined);\n  }\n\n  \n  function is(valueA, valueB){\n    if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n      return true;\n    }\n    if(!valueA||!valueB){\n      return false;\n    }\n    if(typeof valueA.valueOf==='function'&&\n        typeof valueB.valueOf==='function'){\n      valueA=valueA.valueOf();\n      valueB=valueB.valueOf();\n      if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n        return true;\n      }\n      if(!valueA||!valueB){\n        return false;\n      }\n    }\n    if(typeof valueA.equals==='function'&&\n        typeof valueB.equals==='function'&&\n        valueA.equals(valueB)){\n      return true;\n    }\n    return false;\n  }\n\n  function deepEqual(a, b){\n    if(a===b){\n      return true;\n    }\n\n    if(\n      !isIterable(b)||\n      a.size!==undefined&&b.size!==undefined&&a.size!==b.size||\n      a.__hash!==undefined&&b.__hash!==undefined&&a.__hash!==b.__hash||\n      isKeyed(a)!==isKeyed(b)||\n      isIndexed(a)!==isIndexed(b)||\n      isOrdered(a)!==isOrdered(b)\n){\n      return false;\n    }\n\n    if(a.size===0&&b.size===0){\n      return true;\n    }\n\n    var notAssociative = !isAssociative(a);\n\n    if(isOrdered(a)){\n      var entries=a.entries();\n      return b.every(function(v, k){\n        var entry=entries.next().value;\n        return entry&&is(entry[1], v)&&(notAssociative||is(entry[0], k));\n      })&&entries.next().done;\n    }\n\n    var flipped=false;\n\n    if(a.size===undefined){\n      if(b.size===undefined){\n        if(typeof a.cacheResult==='function'){\n          a.cacheResult();\n        }\n      }else{\n        flipped=true;\n        var _=a;\n        a=b;\n        b=_;\n      }\n    }\n\n    var allEqual=true;\n    var bSize=b.__iterate(function(v, k){\n      if(notAssociative ? !a.has(v) :\n          flipped ? !is(v, a.get(k, NOT_SET)):!is(a.get(k, NOT_SET), v)){\n        allEqual=false;\n        return false;\n      }\n    });\n\n    return allEqual&&a.size===bSize;\n  }\n\n  createClass(Repeat, IndexedSeq);\n\n    function Repeat(value, times){\n      if(!(this instanceof Repeat)){\n        return new Repeat(value, times);\n      }\n      this._value=value;\n      this.size=times===undefined ? Infinity:Math.max(0, times);\n      if(this.size===0){\n        if(EMPTY_REPEAT){\n          return EMPTY_REPEAT;\n        }\n        EMPTY_REPEAT=this;\n      }\n    }\n\n    Repeat.prototype.toString=function(){\n      if(this.size===0){\n        return 'Repeat []';\n      }\n      return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';\n    };\n\n    Repeat.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._value:notSetValue;\n    };\n\n    Repeat.prototype.includes=function(searchValue){\n      return is(this._value, searchValue);\n    };\n\n    Repeat.prototype.slice=function(begin, end){\n      var size=this.size;\n      return wholeSlice(begin, end, size) ? this :\n        new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));\n    };\n\n    Repeat.prototype.reverse=function(){\n      return this;\n    };\n\n    Repeat.prototype.indexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return 0;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.lastIndexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return this.size;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.__iterate=function(fn, reverse){\n      for (var ii=0; ii < this.size; ii++){\n        if(fn(this._value, ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    Repeat.prototype.__iterator=function(type, reverse){var this$0=this;\n      var ii=0;\n      return new Iterator(function() \n        {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value):iteratorDone()}\n);\n    };\n\n    Repeat.prototype.equals=function(other){\n      return other instanceof Repeat ?\n        is(this._value, other._value) :\n        deepEqual(other);\n    };\n\n\n  var EMPTY_REPEAT;\n\n  function invariant(condition, error){\n    if(!condition) throw new Error(error);\n  }\n\n  createClass(Range, IndexedSeq);\n\n    function Range(start, end, step){\n      if(!(this instanceof Range)){\n        return new Range(start, end, step);\n      }\n      invariant(step!==0, 'Cannot step a Range by 0');\n      start=start||0;\n      if(end===undefined){\n        end=Infinity;\n      }\n      step=step===undefined ? 1:Math.abs(step);\n      if(end < start){\n        step=-step;\n      }\n      this._start=start;\n      this._end=end;\n      this._step=step;\n      this.size=Math.max(0, Math.ceil((end - start) / step - 1) + 1);\n      if(this.size===0){\n        if(EMPTY_RANGE){\n          return EMPTY_RANGE;\n        }\n        EMPTY_RANGE=this;\n      }\n    }\n\n    Range.prototype.toString=function(){\n      if(this.size===0){\n        return 'Range []';\n      }\n      return 'Range [ ' +\n        this._start + '...' + this._end +\n        (this._step > 1 ? ' by ' + this._step:'') +\n      ' ]';\n    };\n\n    Range.prototype.get=function(index, notSetValue){\n      return this.has(index) ?\n        this._start + wrapIndex(this, index) * this._step :\n        notSetValue;\n    };\n\n    Range.prototype.includes=function(searchValue){\n      var possibleIndex=(searchValue - this._start) / this._step;\n      return possibleIndex >=0&&\n        possibleIndex < this.size&&\n        possibleIndex===Math.floor(possibleIndex);\n    };\n\n    Range.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      begin=resolveBegin(begin, this.size);\n      end=resolveEnd(end, this.size);\n      if(end <=begin){\n        return new Range(0, 0);\n      }\n      return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);\n    };\n\n    Range.prototype.indexOf=function(searchValue){\n      var offsetValue=searchValue - this._start;\n      if(offsetValue % this._step===0){\n        var index=offsetValue / this._step;\n        if(index >=0&&index < this.size){\n          return index\n        }\n      }\n      return -1;\n    };\n\n    Range.prototype.lastIndexOf=function(searchValue){\n      return this.indexOf(searchValue);\n    };\n\n    Range.prototype.__iterate=function(fn, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(value, ii, this)===false){\n          return ii + 1;\n        }\n        value +=reverse ? -step:step;\n      }\n      return ii;\n    };\n\n    Range.prototype.__iterator=function(type, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      var ii=0;\n      return new Iterator(function(){\n        var v=value;\n        value +=reverse ? -step:step;\n        return ii > maxIndex ? iteratorDone():iteratorValue(type, ii++, v);\n      });\n    };\n\n    Range.prototype.equals=function(other){\n      return other instanceof Range ?\n        this._start===other._start&&\n        this._end===other._end&&\n        this._step===other._step :\n        deepEqual(this, other);\n    };\n\n\n  var EMPTY_RANGE;\n\n  createClass(Collection, Iterable);\n    function Collection(){\n      throw TypeError('Abstract');\n    }\n\n\n  createClass(KeyedCollection, Collection);function KeyedCollection(){}\n\n  createClass(IndexedCollection, Collection);function IndexedCollection(){}\n\n  createClass(SetCollection, Collection);function SetCollection(){}\n\n\n  Collection.Keyed=KeyedCollection;\n  Collection.Indexed=IndexedCollection;\n  Collection.Set=SetCollection;\n\n  var imul=\n    typeof Math.imul==='function'&&Math.imul(0xffffffff, 2)===-2 ?\n    Math.imul :\n    function imul(a, b){\n      a=a | 0; // int\n      b=b | 0; // int\n      var c=a & 0xffff;\n      var d=b & 0xffff;\n      // Shift by 0 fixes the sign on the high part.\n      return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int\n    };\n\n  // v8 has an optimization for storing 31-bit signed numbers.\n  // Values which have either 00 or 11 as the high order bits qualify.\n  // This function drops the highest order bit in a signed number, maintaining\n  // the sign bit.\n  function smi(i32){\n    return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);\n  }\n\n  function hash(o){\n    if(o===false||o===null||o===undefined){\n      return 0;\n    }\n    if(typeof o.valueOf==='function'){\n      o=o.valueOf();\n      if(o===false||o===null||o===undefined){\n        return 0;\n      }\n    }\n    if(o===true){\n      return 1;\n    }\n    var type=typeof o;\n    if(type==='number'){\n      var h=o | 0;\n      if(h!==o){\n        h ^=o * 0xFFFFFFFF;\n      }\n      while (o > 0xFFFFFFFF){\n        o /=0xFFFFFFFF;\n        h ^=o;\n      }\n      return smi(h);\n    }\n    if(type==='string'){\n      return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o):hashString(o);\n    }\n    if(typeof o.hashCode==='function'){\n      return o.hashCode();\n    }\n    if(type==='object'){\n      return hashJSObj(o);\n    }\n    if(typeof o.toString==='function'){\n      return hashString(o.toString());\n    }\n    throw new Error('Value type ' + type + ' cannot be hashed.');\n  }\n\n  function cachedHashString(string){\n    var hash=stringHashCache[string];\n    if(hash===undefined){\n      hash=hashString(string);\n      if(STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE){\n        STRING_HASH_CACHE_SIZE=0;\n        stringHashCache={};\n      }\n      STRING_HASH_CACHE_SIZE++;\n      stringHashCache[string]=hash;\n    }\n    return hash;\n  }\n\n  // http://jsperf.com/hashing-strings\n  function hashString(string){\n    // This is the hash from JVM\n    // The hash code for a string is computed as\n    // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],\n    // where s[i] is the ith character of the string and n is the length of\n    // the string. We \"mod\" the result to make it between 0 (inclusive) and 2^31\n    // (exclusive) by dropping high bits.\n    var hash=0;\n    for (var ii=0; ii < string.length; ii++){\n      hash=31 * hash + string.charCodeAt(ii) | 0;\n    }\n    return smi(hash);\n  }\n\n  function hashJSObj(obj){\n    var hash;\n    if(usingWeakMap){\n      hash=weakMap.get(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=obj[UID_HASH_KEY];\n    if(hash!==undefined){\n      return hash;\n    }\n\n    if(!canDefineProperty){\n      hash=obj.propertyIsEnumerable&&obj.propertyIsEnumerable[UID_HASH_KEY];\n      if(hash!==undefined){\n        return hash;\n      }\n\n      hash=getIENodeHash(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=++objHashUID;\n    if(objHashUID & 0x40000000){\n      objHashUID=0;\n    }\n\n    if(usingWeakMap){\n      weakMap.set(obj, hash);\n    }else if(isExtensible!==undefined&&isExtensible(obj)===false){\n      throw new Error('Non-extensible objects are not allowed as keys.');\n    }else if(canDefineProperty){\n      Object.defineProperty(obj, UID_HASH_KEY, {\n        'enumerable': false,\n        'configurable': false,\n        'writable': false,\n        'value': hash\n      });\n    }else if(obj.propertyIsEnumerable!==undefined&&\n               obj.propertyIsEnumerable===obj.constructor.prototype.propertyIsEnumerable){\n      // Since we can't define a non-enumerable property on the object\n      // we'll hijack one of the less-used non-enumerable properties to\n      // save our hash on it. Since this is a function it will not show up in\n      // `JSON.stringify` which is what we want.\n      obj.propertyIsEnumerable=function(){\n        return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);\n      };\n      obj.propertyIsEnumerable[UID_HASH_KEY]=hash;\n    }else if(obj.nodeType!==undefined){\n      // At this point we couldn't get the IE `uniqueID` to use as a hash\n      // and we couldn't use a non-enumerable property to exploit the\n      // dontEnum bug so we simply add the `UID_HASH_KEY` on the node\n      // itself.\n      obj[UID_HASH_KEY]=hash;\n    }else{\n      throw new Error('Unable to set a non-enumerable property on object.');\n    }\n\n    return hash;\n  }\n\n  // Get references to ES5 object methods.\n  var isExtensible=Object.isExtensible;\n\n  // True if Object.defineProperty works as expected. IE8 fails this test.\n  var canDefineProperty=(function(){\n    try {\n      Object.defineProperty({}, '@', {});\n      return true;\n    } catch (e){\n      return false;\n    }\n  }());\n\n  // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it\n  // and avoid memory leaks from the IE cloneNode bug.\n  function getIENodeHash(node){\n    if(node&&node.nodeType > 0){\n      switch (node.nodeType){\n        case 1: // Element\n          return node.uniqueID;\n        case 9: // Document\n          return node.documentElement&&node.documentElement.uniqueID;\n      }\n    }\n  }\n\n  // If possible, use a WeakMap.\n  var usingWeakMap=typeof WeakMap==='function';\n  var weakMap;\n  if(usingWeakMap){\n    weakMap=new WeakMap();\n  }\n\n  var objHashUID=0;\n\n  var UID_HASH_KEY='__immutablehash__';\n  if(typeof Symbol==='function'){\n    UID_HASH_KEY=Symbol(UID_HASH_KEY);\n  }\n\n  var STRING_HASH_CACHE_MIN_STRLEN=16;\n  var STRING_HASH_CACHE_MAX_SIZE=255;\n  var STRING_HASH_CACHE_SIZE=0;\n  var stringHashCache={};\n\n  function assertNotInfinite(size){\n    invariant(\n      size!==Infinity,\n      'Cannot perform this action with an infinite size.'\n);\n  }\n\n  createClass(Map, KeyedCollection);\n\n    // @pragma Construction\n\n    function Map(value){\n      return value===null||value===undefined ? emptyMap() :\n        isMap(value)&&!isOrdered(value) ? value :\n        emptyMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    Map.prototype.toString=function(){\n      return this.__toString('Map {', '}');\n    };\n\n    // @pragma Access\n\n    Map.prototype.get=function(k, notSetValue){\n      return this._root ?\n        this._root.get(0, undefined, k, notSetValue) :\n        notSetValue;\n    };\n\n    // @pragma Modification\n\n    Map.prototype.set=function(k, v){\n      return updateMap(this, k, v);\n    };\n\n    Map.prototype.setIn=function(keyPath, v){\n      return this.updateIn(keyPath, NOT_SET, function(){return v});\n    };\n\n    Map.prototype.remove=function(k){\n      return updateMap(this, k, NOT_SET);\n    };\n\n    Map.prototype.deleteIn=function(keyPath){\n      return this.updateIn(keyPath, function(){return NOT_SET});\n    };\n\n    Map.prototype.update=function(k, notSetValue, updater){\n      return arguments.length===1 ?\n        k(this) :\n        this.updateIn([k], notSetValue, updater);\n    };\n\n    Map.prototype.updateIn=function(keyPath, notSetValue, updater){\n      if(!updater){\n        updater=notSetValue;\n        notSetValue=undefined;\n      }\n      var updatedValue=updateInDeepMap(\n        this,\n        forceIterator(keyPath),\n        notSetValue,\n        updater\n);\n      return updatedValue===NOT_SET ? undefined:updatedValue;\n    };\n\n    Map.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._root=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyMap();\n    };\n\n    // @pragma Composition\n\n    Map.prototype.merge=function(){\n      return mergeIntoMapWith(this, undefined, arguments);\n    };\n\n    Map.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, merger, iters);\n    };\n\n    Map.prototype.mergeIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.merge==='function' ?\n          m.merge.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.mergeDeep=function(){\n      return mergeIntoMapWith(this, deepMerger, arguments);\n    };\n\n    Map.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, deepMergerWith(merger), iters);\n    };\n\n    Map.prototype.mergeDeepIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.mergeDeep==='function' ?\n          m.mergeDeep.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator));\n    };\n\n    Map.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator, mapper));\n    };\n\n    // @pragma Mutability\n\n    Map.prototype.withMutations=function(fn){\n      var mutable=this.asMutable();\n      fn(mutable);\n      return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID):this;\n    };\n\n    Map.prototype.asMutable=function(){\n      return this.__ownerID ? this:this.__ensureOwner(new OwnerID());\n    };\n\n    Map.prototype.asImmutable=function(){\n      return this.__ensureOwner();\n    };\n\n    Map.prototype.wasAltered=function(){\n      return this.__altered;\n    };\n\n    Map.prototype.__iterator=function(type, reverse){\n      return new MapIterator(this, type, reverse);\n    };\n\n    Map.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      this._root&&this._root.iterate(function(entry){\n        iterations++;\n        return fn(entry[1], entry[0], this$0);\n      }, reverse);\n      return iterations;\n    };\n\n    Map.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeMap(this.size, this._root, ownerID, this.__hash);\n    };\n\n\n  function isMap(maybeMap){\n    return !!(maybeMap&&maybeMap[IS_MAP_SENTINEL]);\n  }\n\n  Map.isMap=isMap;\n\n  var IS_MAP_SENTINEL='@@__IMMUTABLE_MAP__@@';\n\n  var MapPrototype=Map.prototype;\n  MapPrototype[IS_MAP_SENTINEL]=true;\n  MapPrototype[DELETE]=MapPrototype.remove;\n  MapPrototype.removeIn=MapPrototype.deleteIn;\n\n\n  // #pragma Trie Nodes\n\n\n\n    function ArrayMapNode(ownerID, entries){\n      this.ownerID=ownerID;\n      this.entries=entries;\n    }\n\n    ArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    ArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&entries.length===1){\n        return; // undefined\n      }\n\n      if(!exists&&!removed&&entries.length >=MAX_ARRAY_MAP_SIZE){\n        return createNodes(ownerID, entries, key, value);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new ArrayMapNode(ownerID, newEntries);\n    };\n\n\n\n\n    function BitmapIndexedNode(ownerID, bitmap, nodes){\n      this.ownerID=ownerID;\n      this.bitmap=bitmap;\n      this.nodes=nodes;\n    }\n\n    BitmapIndexedNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var bit=(1 << ((shift===0 ? keyHash:keyHash >>> shift) & MASK));\n      var bitmap=this.bitmap;\n      return (bitmap & bit)===0 ? notSetValue :\n        this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);\n    };\n\n    BitmapIndexedNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var keyHashFrag=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var bit=1 << keyHashFrag;\n      var bitmap=this.bitmap;\n      var exists=(bitmap & bit)!==0;\n\n      if(!exists&&value===NOT_SET){\n        return this;\n      }\n\n      var idx=popCount(bitmap & (bit - 1));\n      var nodes=this.nodes;\n      var node=exists ? nodes[idx]:undefined;\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n\n      if(newNode===node){\n        return this;\n      }\n\n      if(!exists&&newNode&&nodes.length >=MAX_BITMAP_INDEXED_SIZE){\n        return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);\n      }\n\n      if(exists&&!newNode&&nodes.length===2&&isLeafNode(nodes[idx ^ 1])){\n        return nodes[idx ^ 1];\n      }\n\n      if(exists&&newNode&&nodes.length===1&&isLeafNode(newNode)){\n        return newNode;\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newBitmap=exists ? newNode ? bitmap:bitmap ^ bit:bitmap | bit;\n      var newNodes=exists ? newNode ?\n        setIn(nodes, idx, newNode, isEditable) :\n        spliceOut(nodes, idx, isEditable) :\n        spliceIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.bitmap=newBitmap;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new BitmapIndexedNode(ownerID, newBitmap, newNodes);\n    };\n\n\n\n\n    function HashArrayMapNode(ownerID, count, nodes){\n      this.ownerID=ownerID;\n      this.count=count;\n      this.nodes=nodes;\n    }\n\n    HashArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var node=this.nodes[idx];\n      return node ? node.get(shift + SHIFT, keyHash, key, notSetValue):notSetValue;\n    };\n\n    HashArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var removed=value===NOT_SET;\n      var nodes=this.nodes;\n      var node=nodes[idx];\n\n      if(removed&&!node){\n        return this;\n      }\n\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n      if(newNode===node){\n        return this;\n      }\n\n      var newCount=this.count;\n      if(!node){\n        newCount++;\n      }else if(!newNode){\n        newCount--;\n        if(newCount < MIN_HASH_ARRAY_MAP_SIZE){\n          return packNodes(ownerID, nodes, newCount, idx);\n        }\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newNodes=setIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.count=newCount;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new HashArrayMapNode(ownerID, newCount, newNodes);\n    };\n\n\n\n\n    function HashCollisionNode(ownerID, keyHash, entries){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entries=entries;\n    }\n\n    HashCollisionNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    HashCollisionNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n\n      var removed=value===NOT_SET;\n\n      if(keyHash!==this.keyHash){\n        if(removed){\n          return this;\n        }\n        SetRef(didAlter);\n        SetRef(didChangeSize);\n        return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);\n      }\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&len===2){\n        return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new HashCollisionNode(ownerID, this.keyHash, newEntries);\n    };\n\n\n\n\n    function ValueNode(ownerID, keyHash, entry){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entry=entry;\n    }\n\n    ValueNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      return is(key, this.entry[0]) ? this.entry[1]:notSetValue;\n    };\n\n    ValueNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n      var keyMatch=is(key, this.entry[0]);\n      if(keyMatch ? value===this.entry[1]:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n\n      if(removed){\n        SetRef(didChangeSize);\n        return; // undefined\n      }\n\n      if(keyMatch){\n        if(ownerID&&ownerID===this.ownerID){\n          this.entry[1]=value;\n          return this;\n        }\n        return new ValueNode(ownerID, this.keyHash, [key, value]);\n      }\n\n      SetRef(didChangeSize);\n      return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);\n    };\n\n\n\n  // #pragma Iterators\n\n  ArrayMapNode.prototype.iterate=\n  HashCollisionNode.prototype.iterate=function (fn, reverse){\n    var entries=this.entries;\n    for (var ii=0, maxIndex=entries.length - 1; ii <=maxIndex; ii++){\n      if(fn(entries[reverse ? maxIndex - ii:ii])===false){\n        return false;\n      }\n    }\n  }\n\n  BitmapIndexedNode.prototype.iterate=\n  HashArrayMapNode.prototype.iterate=function (fn, reverse){\n    var nodes=this.nodes;\n    for (var ii=0, maxIndex=nodes.length - 1; ii <=maxIndex; ii++){\n      var node=nodes[reverse ? maxIndex - ii:ii];\n      if(node&&node.iterate(fn, reverse)===false){\n        return false;\n      }\n    }\n  }\n\n  ValueNode.prototype.iterate=function (fn, reverse){\n    return fn(this.entry);\n  }\n\n  createClass(MapIterator, Iterator);\n\n    function MapIterator(map, type, reverse){\n      this._type=type;\n      this._reverse=reverse;\n      this._stack=map._root&&mapIteratorFrame(map._root);\n    }\n\n    MapIterator.prototype.next=function(){\n      var type=this._type;\n      var stack=this._stack;\n      while (stack){\n        var node=stack.node;\n        var index=stack.index++;\n        var maxIndex;\n        if(node.entry){\n          if(index===0){\n            return mapIteratorValue(type, node.entry);\n          }\n        }else if(node.entries){\n          maxIndex=node.entries.length - 1;\n          if(index <=maxIndex){\n            return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index:index]);\n          }\n        }else{\n          maxIndex=node.nodes.length - 1;\n          if(index <=maxIndex){\n            var subNode=node.nodes[this._reverse ? maxIndex - index:index];\n            if(subNode){\n              if(subNode.entry){\n                return mapIteratorValue(type, subNode.entry);\n              }\n              stack=this._stack=mapIteratorFrame(subNode, stack);\n            }\n            continue;\n          }\n        }\n        stack=this._stack=this._stack.__prev;\n      }\n      return iteratorDone();\n    };\n\n\n  function mapIteratorValue(type, entry){\n    return iteratorValue(type, entry[0], entry[1]);\n  }\n\n  function mapIteratorFrame(node, prev){\n    return {\n      node: node,\n      index: 0,\n      __prev: prev\n    };\n  }\n\n  function makeMap(size, root, ownerID, hash){\n    var map=Object.create(MapPrototype);\n    map.size=size;\n    map._root=root;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_MAP;\n  function emptyMap(){\n    return EMPTY_MAP||(EMPTY_MAP=makeMap(0));\n  }\n\n  function updateMap(map, k, v){\n    var newRoot;\n    var newSize;\n    if(!map._root){\n      if(v===NOT_SET){\n        return map;\n      }\n      newSize=1;\n      newRoot=new ArrayMapNode(map.__ownerID, [[k, v]]);\n    }else{\n      var didChangeSize=MakeRef(CHANGE_LENGTH);\n      var didAlter=MakeRef(DID_ALTER);\n      newRoot=updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);\n      if(!didAlter.value){\n        return map;\n      }\n      newSize=map.size + (didChangeSize.value ? v===NOT_SET ? -1:1 : 0);\n    }\n    if(map.__ownerID){\n      map.size=newSize;\n      map._root=newRoot;\n      map.__hash=undefined;\n      map.__altered=true;\n      return map;\n    }\n    return newRoot ? makeMap(newSize, newRoot):emptyMap();\n  }\n\n  function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n    if(!node){\n      if(value===NOT_SET){\n        return node;\n      }\n      SetRef(didAlter);\n      SetRef(didChangeSize);\n      return new ValueNode(ownerID, keyHash, [key, value]);\n    }\n    return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);\n  }\n\n  function isLeafNode(node){\n    return node.constructor===ValueNode||node.constructor===HashCollisionNode;\n  }\n\n  function mergeIntoNode(node, ownerID, shift, keyHash, entry){\n    if(node.keyHash===keyHash){\n      return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);\n    }\n\n    var idx1=(shift===0 ? node.keyHash:node.keyHash >>> shift) & MASK;\n    var idx2=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n\n    var newNode;\n    var nodes=idx1===idx2 ?\n      [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :\n      ((newNode=new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode]:[newNode, node]);\n\n    return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);\n  }\n\n  function createNodes(ownerID, entries, key, value){\n    if(!ownerID){\n      ownerID=new OwnerID();\n    }\n    var node=new ValueNode(ownerID, hash(key), [key, value]);\n    for (var ii=0; ii < entries.length; ii++){\n      var entry=entries[ii];\n      node=node.update(ownerID, 0, undefined, entry[0], entry[1]);\n    }\n    return node;\n  }\n\n  function packNodes(ownerID, nodes, count, excluding){\n    var bitmap=0;\n    var packedII=0;\n    var packedNodes=new Array(count);\n    for (var ii=0, bit=1, len=nodes.length; ii < len; ii++, bit <<=1){\n      var node=nodes[ii];\n      if(node!==undefined&&ii!==excluding){\n        bitmap |=bit;\n        packedNodes[packedII++]=node;\n      }\n    }\n    return new BitmapIndexedNode(ownerID, bitmap, packedNodes);\n  }\n\n  function expandNodes(ownerID, nodes, bitmap, including, node){\n    var count=0;\n    var expandedNodes=new Array(SIZE);\n    for (var ii=0; bitmap!==0; ii++, bitmap >>>=1){\n      expandedNodes[ii]=bitmap & 1 ? nodes[count++]:undefined;\n    }\n    expandedNodes[including]=node;\n    return new HashArrayMapNode(ownerID, count + 1, expandedNodes);\n  }\n\n  function mergeIntoMapWith(map, merger, iterables){\n    var iters=[];\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=KeyedIterable(value);\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    return mergeIntoCollectionWith(map, merger, iters);\n  }\n\n  function deepMerger(existing, value, key){\n    return existing&&existing.mergeDeep&&isIterable(value) ?\n      existing.mergeDeep(value) :\n      is(existing, value) ? existing:value;\n  }\n\n  function deepMergerWith(merger){\n    return function(existing, value, key){\n      if(existing&&existing.mergeDeepWith&&isIterable(value)){\n        return existing.mergeDeepWith(merger, value);\n      }\n      var nextValue=merger(existing, value, key);\n      return is(existing, nextValue) ? existing:nextValue;\n    };\n  }\n\n  function mergeIntoCollectionWith(collection, merger, iters){\n    iters=iters.filter(function(x){return x.size!==0});\n    if(iters.length===0){\n      return collection;\n    }\n    if(collection.size===0&&!collection.__ownerID&&iters.length===1){\n      return collection.constructor(iters[0]);\n    }\n    return collection.withMutations(function(collection){\n      var mergeIntoMap=merger ?\n        function(value, key){\n          collection.update(key, NOT_SET, function(existing)\n            {return existing===NOT_SET ? value:merger(existing, value, key)}\n);\n        } :\n        function(value, key){\n          collection.set(key, value);\n        }\n      for (var ii=0; ii < iters.length; ii++){\n        iters[ii].forEach(mergeIntoMap);\n      }\n    });\n  }\n\n  function updateInDeepMap(existing, keyPathIter, notSetValue, updater){\n    var isNotSet=existing===NOT_SET;\n    var step=keyPathIter.next();\n    if(step.done){\n      var existingValue=isNotSet ? notSetValue:existing;\n      var newValue=updater(existingValue);\n      return newValue===existingValue ? existing:newValue;\n    }\n    invariant(\n      isNotSet||(existing&&existing.set),\n      'invalid keyPath'\n);\n    var key=step.value;\n    var nextExisting=isNotSet ? NOT_SET:existing.get(key, NOT_SET);\n    var nextUpdated=updateInDeepMap(\n      nextExisting,\n      keyPathIter,\n      notSetValue,\n      updater\n);\n    return nextUpdated===nextExisting ? existing :\n      nextUpdated===NOT_SET ? existing.remove(key) :\n      (isNotSet ? emptyMap():existing).set(key, nextUpdated);\n  }\n\n  function popCount(x){\n    x=x - ((x >> 1) & 0x55555555);\n    x=(x & 0x33333333) + ((x >> 2) & 0x33333333);\n    x=(x + (x >> 4)) & 0x0f0f0f0f;\n    x=x + (x >> 8);\n    x=x + (x >> 16);\n    return x & 0x7f;\n  }\n\n  function setIn(array, idx, val, canEdit){\n    var newArray=canEdit ? array:arrCopy(array);\n    newArray[idx]=val;\n    return newArray;\n  }\n\n  function spliceIn(array, idx, val, canEdit){\n    var newLen=array.length + 1;\n    if(canEdit&&idx + 1===newLen){\n      array[idx]=val;\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        newArray[ii]=val;\n        after=-1;\n      }else{\n        newArray[ii]=array[ii + after];\n      }\n    }\n    return newArray;\n  }\n\n  function spliceOut(array, idx, canEdit){\n    var newLen=array.length - 1;\n    if(canEdit&&idx===newLen){\n      array.pop();\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        after=1;\n      }\n      newArray[ii]=array[ii + after];\n    }\n    return newArray;\n  }\n\n  var MAX_ARRAY_MAP_SIZE=SIZE / 4;\n  var MAX_BITMAP_INDEXED_SIZE=SIZE / 2;\n  var MIN_HASH_ARRAY_MAP_SIZE=SIZE / 4;\n\n  createClass(List, IndexedCollection);\n\n    // @pragma Construction\n\n    function List(value){\n      var empty=emptyList();\n      if(value===null||value===undefined){\n        return empty;\n      }\n      if(isList(value)){\n        return value;\n      }\n      var iter=IndexedIterable(value);\n      var size=iter.size;\n      if(size===0){\n        return empty;\n      }\n      assertNotInfinite(size);\n      if(size > 0&&size < SIZE){\n        return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));\n      }\n      return empty.withMutations(function(list){\n        list.setSize(size);\n        iter.forEach(function(v, i){return list.set(i, v)});\n      });\n    }\n\n    List.of=function(){\n      return this(arguments);\n    };\n\n    List.prototype.toString=function(){\n      return this.__toString('List [', ']');\n    };\n\n    // @pragma Access\n\n    List.prototype.get=function(index, notSetValue){\n      index=wrapIndex(this, index);\n      if(index >=0&&index < this.size){\n        index +=this._origin;\n        var node=listNodeFor(this, index);\n        return node&&node.array[index & MASK];\n      }\n      return notSetValue;\n    };\n\n    // @pragma Modification\n\n    List.prototype.set=function(index, value){\n      return updateList(this, index, value);\n    };\n\n    List.prototype.remove=function(index){\n      return !this.has(index) ? this :\n        index===0 ? this.shift() :\n        index===this.size - 1 ? this.pop() :\n        this.splice(index, 1);\n    };\n\n    List.prototype.insert=function(index, value){\n      return this.splice(index, 0, value);\n    };\n\n    List.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=this._origin=this._capacity=0;\n        this._level=SHIFT;\n        this._root=this._tail=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyList();\n    };\n\n    List.prototype.push=function(){\n      var values=arguments;\n      var oldSize=this.size;\n      return this.withMutations(function(list){\n        setListBounds(list, 0, oldSize + values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(oldSize + ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.pop=function(){\n      return setListBounds(this, 0, -1);\n    };\n\n    List.prototype.unshift=function(){\n      var values=arguments;\n      return this.withMutations(function(list){\n        setListBounds(list, -values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.shift=function(){\n      return setListBounds(this, 1);\n    };\n\n    // @pragma Composition\n\n    List.prototype.merge=function(){\n      return mergeIntoListWith(this, undefined, arguments);\n    };\n\n    List.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, merger, iters);\n    };\n\n    List.prototype.mergeDeep=function(){\n      return mergeIntoListWith(this, deepMerger, arguments);\n    };\n\n    List.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, deepMergerWith(merger), iters);\n    };\n\n    List.prototype.setSize=function(size){\n      return setListBounds(this, 0, size);\n    };\n\n    // @pragma Iteration\n\n    List.prototype.slice=function(begin, end){\n      var size=this.size;\n      if(wholeSlice(begin, end, size)){\n        return this;\n      }\n      return setListBounds(\n        this,\n        resolveBegin(begin, size),\n        resolveEnd(end, size)\n);\n    };\n\n    List.prototype.__iterator=function(type, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      return new Iterator(function(){\n        var value=values();\n        return value===DONE ?\n          iteratorDone() :\n          iteratorValue(type, index++, value);\n      });\n    };\n\n    List.prototype.__iterate=function(fn, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      var value;\n      while ((value=values())!==DONE){\n        if(fn(value, index++, this)===false){\n          break;\n        }\n      }\n      return index;\n    };\n\n    List.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        return this;\n      }\n      return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);\n    };\n\n\n  function isList(maybeList){\n    return !!(maybeList&&maybeList[IS_LIST_SENTINEL]);\n  }\n\n  List.isList=isList;\n\n  var IS_LIST_SENTINEL='@@__IMMUTABLE_LIST__@@';\n\n  var ListPrototype=List.prototype;\n  ListPrototype[IS_LIST_SENTINEL]=true;\n  ListPrototype[DELETE]=ListPrototype.remove;\n  ListPrototype.setIn=MapPrototype.setIn;\n  ListPrototype.deleteIn=\n  ListPrototype.removeIn=MapPrototype.removeIn;\n  ListPrototype.update=MapPrototype.update;\n  ListPrototype.updateIn=MapPrototype.updateIn;\n  ListPrototype.mergeIn=MapPrototype.mergeIn;\n  ListPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  ListPrototype.withMutations=MapPrototype.withMutations;\n  ListPrototype.asMutable=MapPrototype.asMutable;\n  ListPrototype.asImmutable=MapPrototype.asImmutable;\n  ListPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n\n    function VNode(array, ownerID){\n      this.array=array;\n      this.ownerID=ownerID;\n    }\n\n    // TODO: seems like these methods are very similar\n\n    VNode.prototype.removeBefore=function(ownerID, level, index){\n      if(index===level ? 1 << level:false||this.array.length===0){\n        return this;\n      }\n      var originIndex=(index >>> level) & MASK;\n      if(originIndex >=this.array.length){\n        return new VNode([], ownerID);\n      }\n      var removingFirst=originIndex===0;\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[originIndex];\n        newChild=oldChild&&oldChild.removeBefore(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&removingFirst){\n          return this;\n        }\n      }\n      if(removingFirst&&!newChild){\n        return this;\n      }\n      var editable=editableVNode(this, ownerID);\n      if(!removingFirst){\n        for (var ii=0; ii < originIndex; ii++){\n          editable.array[ii]=undefined;\n        }\n      }\n      if(newChild){\n        editable.array[originIndex]=newChild;\n      }\n      return editable;\n    };\n\n    VNode.prototype.removeAfter=function(ownerID, level, index){\n      if(index===(level ? 1 << level:0)||this.array.length===0){\n        return this;\n      }\n      var sizeIndex=((index - 1) >>> level) & MASK;\n      if(sizeIndex >=this.array.length){\n        return this;\n      }\n\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[sizeIndex];\n        newChild=oldChild&&oldChild.removeAfter(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&sizeIndex===this.array.length - 1){\n          return this;\n        }\n      }\n\n      var editable=editableVNode(this, ownerID);\n      editable.array.splice(sizeIndex + 1);\n      if(newChild){\n        editable.array[sizeIndex]=newChild;\n      }\n      return editable;\n    };\n\n\n\n  var DONE={};\n\n  function iterateList(list, reverse){\n    var left=list._origin;\n    var right=list._capacity;\n    var tailPos=getTailOffset(right);\n    var tail=list._tail;\n\n    return iterateNodeOrLeaf(list._root, list._level, 0);\n\n    function iterateNodeOrLeaf(node, level, offset){\n      return level===0 ?\n        iterateLeaf(node, offset) :\n        iterateNode(node, level, offset);\n    }\n\n    function iterateLeaf(node, offset){\n      var array=offset===tailPos ? tail&&tail.array:node&&node.array;\n      var from=offset > left ? 0:left - offset;\n      var to=right - offset;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        if(from===to){\n          return DONE;\n        }\n        var idx=reverse ? --to:from++;\n        return array&&array[idx];\n      };\n    }\n\n    function iterateNode(node, level, offset){\n      var values;\n      var array=node&&node.array;\n      var from=offset > left ? 0:(left - offset) >> level;\n      var to=((right - offset) >> level) + 1;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        do {\n          if(values){\n            var value=values();\n            if(value!==DONE){\n              return value;\n            }\n            values=null;\n          }\n          if(from===to){\n            return DONE;\n          }\n          var idx=reverse ? --to:from++;\n          values=iterateNodeOrLeaf(\n            array&&array[idx], level - SHIFT, offset + (idx << level)\n);\n        } while (true);\n      };\n    }\n  }\n\n  function makeList(origin, capacity, level, root, tail, ownerID, hash){\n    var list=Object.create(ListPrototype);\n    list.size=capacity - origin;\n    list._origin=origin;\n    list._capacity=capacity;\n    list._level=level;\n    list._root=root;\n    list._tail=tail;\n    list.__ownerID=ownerID;\n    list.__hash=hash;\n    list.__altered=false;\n    return list;\n  }\n\n  var EMPTY_LIST;\n  function emptyList(){\n    return EMPTY_LIST||(EMPTY_LIST=makeList(0, 0, SHIFT));\n  }\n\n  function updateList(list, index, value){\n    index=wrapIndex(list, index);\n\n    if(index!==index){\n      return list;\n    }\n\n    if(index >=list.size||index < 0){\n      return list.withMutations(function(list){\n        index < 0 ?\n          setListBounds(list, index).set(0, value) :\n          setListBounds(list, 0, index + 1).set(index, value)\n      });\n    }\n\n    index +=list._origin;\n\n    var newTail=list._tail;\n    var newRoot=list._root;\n    var didAlter=MakeRef(DID_ALTER);\n    if(index >=getTailOffset(list._capacity)){\n      newTail=updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);\n    }else{\n      newRoot=updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);\n    }\n\n    if(!didAlter.value){\n      return list;\n    }\n\n    if(list.__ownerID){\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(list._origin, list._capacity, list._level, newRoot, newTail);\n  }\n\n  function updateVNode(node, ownerID, level, index, value, didAlter){\n    var idx=(index >>> level) & MASK;\n    var nodeHas=node&&idx < node.array.length;\n    if(!nodeHas&&value===undefined){\n      return node;\n    }\n\n    var newNode;\n\n    if(level > 0){\n      var lowerNode=node&&node.array[idx];\n      var newLowerNode=updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);\n      if(newLowerNode===lowerNode){\n        return node;\n      }\n      newNode=editableVNode(node, ownerID);\n      newNode.array[idx]=newLowerNode;\n      return newNode;\n    }\n\n    if(nodeHas&&node.array[idx]===value){\n      return node;\n    }\n\n    SetRef(didAlter);\n\n    newNode=editableVNode(node, ownerID);\n    if(value===undefined&&idx===newNode.array.length - 1){\n      newNode.array.pop();\n    }else{\n      newNode.array[idx]=value;\n    }\n    return newNode;\n  }\n\n  function editableVNode(node, ownerID){\n    if(ownerID&&node&&ownerID===node.ownerID){\n      return node;\n    }\n    return new VNode(node ? node.array.slice():[], ownerID);\n  }\n\n  function listNodeFor(list, rawIndex){\n    if(rawIndex >=getTailOffset(list._capacity)){\n      return list._tail;\n    }\n    if(rawIndex < 1 << (list._level + SHIFT)){\n      var node=list._root;\n      var level=list._level;\n      while (node&&level > 0){\n        node=node.array[(rawIndex >>> level) & MASK];\n        level -=SHIFT;\n      }\n      return node;\n    }\n  }\n\n  function setListBounds(list, begin, end){\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n    var owner=list.__ownerID||new OwnerID();\n    var oldOrigin=list._origin;\n    var oldCapacity=list._capacity;\n    var newOrigin=oldOrigin + begin;\n    var newCapacity=end===undefined ? oldCapacity:end < 0 ? oldCapacity + end:oldOrigin + end;\n    if(newOrigin===oldOrigin&&newCapacity===oldCapacity){\n      return list;\n    }\n\n    // If it's going to end after it starts, it's empty.\n    if(newOrigin >=newCapacity){\n      return list.clear();\n    }\n\n    var newLevel=list._level;\n    var newRoot=list._root;\n\n    // New origin might need creating a higher root.\n    var offsetShift=0;\n    while (newOrigin + offsetShift < 0){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [undefined, newRoot]:[], owner);\n      newLevel +=SHIFT;\n      offsetShift +=1 << newLevel;\n    }\n    if(offsetShift){\n      newOrigin +=offsetShift;\n      oldOrigin +=offsetShift;\n      newCapacity +=offsetShift;\n      oldCapacity +=offsetShift;\n    }\n\n    var oldTailOffset=getTailOffset(oldCapacity);\n    var newTailOffset=getTailOffset(newCapacity);\n\n    // New size might need creating a higher root.\n    while (newTailOffset >=1 << (newLevel + SHIFT)){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [newRoot]:[], owner);\n      newLevel +=SHIFT;\n    }\n\n    // Locate or create the new tail.\n    var oldTail=list._tail;\n    var newTail=newTailOffset < oldTailOffset ?\n      listNodeFor(list, newCapacity - 1) :\n      newTailOffset > oldTailOffset ? new VNode([], owner):oldTail;\n\n    // Merge Tail into tree.\n    if(oldTail&&newTailOffset > oldTailOffset&&newOrigin < oldCapacity&&oldTail.array.length){\n      newRoot=editableVNode(newRoot, owner);\n      var node=newRoot;\n      for (var level=newLevel; level > SHIFT; level -=SHIFT){\n        var idx=(oldTailOffset >>> level) & MASK;\n        node=node.array[idx]=editableVNode(node.array[idx], owner);\n      }\n      node.array[(oldTailOffset >>> SHIFT) & MASK]=oldTail;\n    }\n\n    // If the size has been reduced, there's a chance the tail needs to be trimmed.\n    if(newCapacity < oldCapacity){\n      newTail=newTail&&newTail.removeAfter(owner, 0, newCapacity);\n    }\n\n    // If the new origin is within the tail, then we do not need a root.\n    if(newOrigin >=newTailOffset){\n      newOrigin -=newTailOffset;\n      newCapacity -=newTailOffset;\n      newLevel=SHIFT;\n      newRoot=null;\n      newTail=newTail&&newTail.removeBefore(owner, 0, newOrigin);\n\n    // Otherwise, if the root has been trimmed, garbage collect.\n    }else if(newOrigin > oldOrigin||newTailOffset < oldTailOffset){\n      offsetShift=0;\n\n      // Identify the new top root node of the subtree of the old root.\n      while (newRoot){\n        var beginIndex=(newOrigin >>> newLevel) & MASK;\n        if(beginIndex!==(newTailOffset >>> newLevel) & MASK){\n          break;\n        }\n        if(beginIndex){\n          offsetShift +=(1 << newLevel) * beginIndex;\n        }\n        newLevel -=SHIFT;\n        newRoot=newRoot.array[beginIndex];\n      }\n\n      // Trim the new sides of the new root.\n      if(newRoot&&newOrigin > oldOrigin){\n        newRoot=newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);\n      }\n      if(newRoot&&newTailOffset < oldTailOffset){\n        newRoot=newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);\n      }\n      if(offsetShift){\n        newOrigin -=offsetShift;\n        newCapacity -=offsetShift;\n      }\n    }\n\n    if(list.__ownerID){\n      list.size=newCapacity - newOrigin;\n      list._origin=newOrigin;\n      list._capacity=newCapacity;\n      list._level=newLevel;\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);\n  }\n\n  function mergeIntoListWith(list, merger, iterables){\n    var iters=[];\n    var maxSize=0;\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=IndexedIterable(value);\n      if(iter.size > maxSize){\n        maxSize=iter.size;\n      }\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    if(maxSize > list.size){\n      list=list.setSize(maxSize);\n    }\n    return mergeIntoCollectionWith(list, merger, iters);\n  }\n\n  function getTailOffset(size){\n    return size < SIZE ? 0:(((size - 1) >>> SHIFT) << SHIFT);\n  }\n\n  createClass(OrderedMap, Map);\n\n    // @pragma Construction\n\n    function OrderedMap(value){\n      return value===null||value===undefined ? emptyOrderedMap() :\n        isOrderedMap(value) ? value :\n        emptyOrderedMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    OrderedMap.of=function(){\n      return this(arguments);\n    };\n\n    OrderedMap.prototype.toString=function(){\n      return this.__toString('OrderedMap {', '}');\n    };\n\n    // @pragma Access\n\n    OrderedMap.prototype.get=function(k, notSetValue){\n      var index=this._map.get(k);\n      return index!==undefined ? this._list.get(index)[1]:notSetValue;\n    };\n\n    // @pragma Modification\n\n    OrderedMap.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._map.clear();\n        this._list.clear();\n        return this;\n      }\n      return emptyOrderedMap();\n    };\n\n    OrderedMap.prototype.set=function(k, v){\n      return updateOrderedMap(this, k, v);\n    };\n\n    OrderedMap.prototype.remove=function(k){\n      return updateOrderedMap(this, k, NOT_SET);\n    };\n\n    OrderedMap.prototype.wasAltered=function(){\n      return this._map.wasAltered()||this._list.wasAltered();\n    };\n\n    OrderedMap.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._list.__iterate(\n        function(entry){return entry&&fn(entry[1], entry[0], this$0)},\n        reverse\n);\n    };\n\n    OrderedMap.prototype.__iterator=function(type, reverse){\n      return this._list.fromEntrySeq().__iterator(type, reverse);\n    };\n\n    OrderedMap.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      var newList=this._list.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        this._list=newList;\n        return this;\n      }\n      return makeOrderedMap(newMap, newList, ownerID, this.__hash);\n    };\n\n\n  function isOrderedMap(maybeOrderedMap){\n    return isMap(maybeOrderedMap)&&isOrdered(maybeOrderedMap);\n  }\n\n  OrderedMap.isOrderedMap=isOrderedMap;\n\n  OrderedMap.prototype[IS_ORDERED_SENTINEL]=true;\n  OrderedMap.prototype[DELETE]=OrderedMap.prototype.remove;\n\n\n\n  function makeOrderedMap(map, list, ownerID, hash){\n    var omap=Object.create(OrderedMap.prototype);\n    omap.size=map ? map.size:0;\n    omap._map=map;\n    omap._list=list;\n    omap.__ownerID=ownerID;\n    omap.__hash=hash;\n    return omap;\n  }\n\n  var EMPTY_ORDERED_MAP;\n  function emptyOrderedMap(){\n    return EMPTY_ORDERED_MAP||(EMPTY_ORDERED_MAP=makeOrderedMap(emptyMap(), emptyList()));\n  }\n\n  function updateOrderedMap(omap, k, v){\n    var map=omap._map;\n    var list=omap._list;\n    var i=map.get(k);\n    var has=i!==undefined;\n    var newMap;\n    var newList;\n    if(v===NOT_SET){ // removed\n      if(!has){\n        return omap;\n      }\n      if(list.size >=SIZE&&list.size >=map.size * 2){\n        newList=list.filter(function(entry, idx){return entry!==undefined&&i!==idx});\n        newMap=newList.toKeyedSeq().map(function(entry){return entry[0]}).flip().toMap();\n        if(omap.__ownerID){\n          newMap.__ownerID=newList.__ownerID=omap.__ownerID;\n        }\n      }else{\n        newMap=map.remove(k);\n        newList=i===list.size - 1 ? list.pop():list.set(i, undefined);\n      }\n    }else{\n      if(has){\n        if(v===list.get(i)[1]){\n          return omap;\n        }\n        newMap=map;\n        newList=list.set(i, [k, v]);\n      }else{\n        newMap=map.set(k, list.size);\n        newList=list.set(list.size, [k, v]);\n      }\n    }\n    if(omap.__ownerID){\n      omap.size=newMap.size;\n      omap._map=newMap;\n      omap._list=newList;\n      omap.__hash=undefined;\n      return omap;\n    }\n    return makeOrderedMap(newMap, newList);\n  }\n\n  createClass(ToKeyedSequence, KeyedSeq);\n    function ToKeyedSequence(indexed, useKeys){\n      this._iter=indexed;\n      this._useKeys=useKeys;\n      this.size=indexed.size;\n    }\n\n    ToKeyedSequence.prototype.get=function(key, notSetValue){\n      return this._iter.get(key, notSetValue);\n    };\n\n    ToKeyedSequence.prototype.has=function(key){\n      return this._iter.has(key);\n    };\n\n    ToKeyedSequence.prototype.valueSeq=function(){\n      return this._iter.valueSeq();\n    };\n\n    ToKeyedSequence.prototype.reverse=function(){var this$0=this;\n      var reversedSequence=reverseFactory(this, true);\n      if(!this._useKeys){\n        reversedSequence.valueSeq=function(){return this$0._iter.toSeq().reverse()};\n      }\n      return reversedSequence;\n    };\n\n    ToKeyedSequence.prototype.map=function(mapper, context){var this$0=this;\n      var mappedSequence=mapFactory(this, mapper, context);\n      if(!this._useKeys){\n        mappedSequence.valueSeq=function(){return this$0._iter.toSeq().map(mapper, context)};\n      }\n      return mappedSequence;\n    };\n\n    ToKeyedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var ii;\n      return this._iter.__iterate(\n        this._useKeys ?\n          function(v, k){return fn(v, k, this$0)} :\n          ((ii=reverse ? resolveSize(this):0),\n            function(v){return fn(v, reverse ? --ii:ii++, this$0)}),\n        reverse\n);\n    };\n\n    ToKeyedSequence.prototype.__iterator=function(type, reverse){\n      if(this._useKeys){\n        return this._iter.__iterator(type, reverse);\n      }\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var ii=reverse ? resolveSize(this):0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, reverse ? --ii:ii++, step.value, step);\n      });\n    };\n\n  ToKeyedSequence.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(ToIndexedSequence, IndexedSeq);\n    function ToIndexedSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToIndexedSequence.prototype.includes=function(value){\n      return this._iter.includes(value);\n    };\n\n    ToIndexedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      return this._iter.__iterate(function(v){return fn(v, iterations++, this$0)}, reverse);\n    };\n\n    ToIndexedSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, iterations++, step.value, step)\n      });\n    };\n\n\n\n  createClass(ToSetSequence, SetSeq);\n    function ToSetSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToSetSequence.prototype.has=function(key){\n      return this._iter.includes(key);\n    };\n\n    ToSetSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(v){return fn(v, v, this$0)}, reverse);\n    };\n\n    ToSetSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, step.value, step.value, step);\n      });\n    };\n\n\n\n  createClass(FromEntriesSequence, KeyedSeq);\n    function FromEntriesSequence(entries){\n      this._iter=entries;\n      this.size=entries.size;\n    }\n\n    FromEntriesSequence.prototype.entrySeq=function(){\n      return this._iter.toSeq();\n    };\n\n    FromEntriesSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(entry){\n        // Check if entry exists first so array access doesn't throw for holes\n        // in the parent iteration.\n        if(entry){\n          validateEntry(entry);\n          var indexedIterable=isIterable(entry);\n          return fn(\n            indexedIterable ? entry.get(1):entry[1],\n            indexedIterable ? entry.get(0):entry[0],\n            this$0\n);\n        }\n      }, reverse);\n    };\n\n    FromEntriesSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          // Check if entry exists first so array access doesn't throw for holes\n          // in the parent iteration.\n          if(entry){\n            validateEntry(entry);\n            var indexedIterable=isIterable(entry);\n            return iteratorValue(\n              type,\n              indexedIterable ? entry.get(0):entry[0],\n              indexedIterable ? entry.get(1):entry[1],\n              step\n);\n          }\n        }\n      });\n    };\n\n\n  ToIndexedSequence.prototype.cacheResult=\n  ToKeyedSequence.prototype.cacheResult=\n  ToSetSequence.prototype.cacheResult=\n  FromEntriesSequence.prototype.cacheResult=\n    cacheResultThrough;\n\n\n  function flipFactory(iterable){\n    var flipSequence=makeSequence(iterable);\n    flipSequence._iter=iterable;\n    flipSequence.size=iterable.size;\n    flipSequence.flip=function(){return iterable};\n    flipSequence.reverse=function (){\n      var reversedSequence=iterable.reverse.apply(this); // super.reverse()\n      reversedSequence.flip=function(){return iterable.reverse()};\n      return reversedSequence;\n    };\n    flipSequence.has=function(key){return iterable.includes(key)};\n    flipSequence.includes=function(key){return iterable.has(key)};\n    flipSequence.cacheResult=cacheResultThrough;\n    flipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(k, v, this$0)!==false}, reverse);\n    }\n    flipSequence.__iteratorUncached=function(type, reverse){\n      if(type===ITERATE_ENTRIES){\n        var iterator=iterable.__iterator(type, reverse);\n        return new Iterator(function(){\n          var step=iterator.next();\n          if(!step.done){\n            var k=step.value[0];\n            step.value[0]=step.value[1];\n            step.value[1]=k;\n          }\n          return step;\n        });\n      }\n      return iterable.__iterator(\n        type===ITERATE_VALUES ? ITERATE_KEYS:ITERATE_VALUES,\n        reverse\n);\n    }\n    return flipSequence;\n  }\n\n\n  function mapFactory(iterable, mapper, context){\n    var mappedSequence=makeSequence(iterable);\n    mappedSequence.size=iterable.size;\n    mappedSequence.has=function(key){return iterable.has(key)};\n    mappedSequence.get=function(key, notSetValue){\n      var v=iterable.get(key, NOT_SET);\n      return v===NOT_SET ?\n        notSetValue :\n        mapper.call(context, v, key, iterable);\n    };\n    mappedSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(\n        function(v, k, c){return fn(mapper.call(context, v, k, c), k, this$0)!==false},\n        reverse\n);\n    }\n    mappedSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var key=entry[0];\n        return iteratorValue(\n          type,\n          key,\n          mapper.call(context, entry[1], key, iterable),\n          step\n);\n      });\n    }\n    return mappedSequence;\n  }\n\n\n  function reverseFactory(iterable, useKeys){\n    var reversedSequence=makeSequence(iterable);\n    reversedSequence._iter=iterable;\n    reversedSequence.size=iterable.size;\n    reversedSequence.reverse=function(){return iterable};\n    if(iterable.flip){\n      reversedSequence.flip=function (){\n        var flipSequence=flipFactory(iterable);\n        flipSequence.reverse=function(){return iterable.flip()};\n        return flipSequence;\n      };\n    }\n    reversedSequence.get=function(key, notSetValue) \n      {return iterable.get(useKeys ? key:-1 - key, notSetValue)};\n    reversedSequence.has=function(key)\n      {return iterable.has(useKeys ? key:-1 - key)};\n    reversedSequence.includes=function(value){return iterable.includes(value)};\n    reversedSequence.cacheResult=cacheResultThrough;\n    reversedSequence.__iterate=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(v, k, this$0)}, !reverse);\n    };\n    reversedSequence.__iterator=\n      function(type, reverse){return iterable.__iterator(type, !reverse)};\n    return reversedSequence;\n  }\n\n\n  function filterFactory(iterable, predicate, context, useKeys){\n    var filterSequence=makeSequence(iterable);\n    if(useKeys){\n      filterSequence.has=function(key){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&!!predicate.call(context, v, key, iterable);\n      };\n      filterSequence.get=function(key, notSetValue){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&predicate.call(context, v, key, iterable) ?\n          v:notSetValue;\n      };\n    }\n    filterSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      }, reverse);\n      return iterations;\n    };\n    filterSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          var key=entry[0];\n          var value=entry[1];\n          if(predicate.call(context, value, key, iterable)){\n            return iteratorValue(type, useKeys ? key:iterations++, value, step);\n          }\n        }\n      });\n    }\n    return filterSequence;\n  }\n\n\n  function countByFactory(iterable, grouper, context){\n    var groups=Map().asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        0,\n        function(a){return a + 1}\n);\n    });\n    return groups.asImmutable();\n  }\n\n\n  function groupByFactory(iterable, grouper, context){\n    var isKeyedIter=isKeyed(iterable);\n    var groups=(isOrdered(iterable) ? OrderedMap():Map()).asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        function(a){return (a=a||[], a.push(isKeyedIter ? [k, v]:v), a)}\n);\n    });\n    var coerce=iterableClass(iterable);\n    return groups.map(function(arr){return reify(iterable, coerce(arr))});\n  }\n\n\n  function sliceFactory(iterable, begin, end, useKeys){\n    var originalSize=iterable.size;\n\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n\n    if(wholeSlice(begin, end, originalSize)){\n      return iterable;\n    }\n\n    var resolvedBegin=resolveBegin(begin, originalSize);\n    var resolvedEnd=resolveEnd(end, originalSize);\n\n    // begin or end will be NaN if they were provided as negative numbers and\n    // this iterable's size is unknown. In that case, cache first so there is\n    // a known size and these do not resolve to NaN.\n    if(resolvedBegin!==resolvedBegin||resolvedEnd!==resolvedEnd){\n      return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);\n    }\n\n    // Note: resolvedEnd is undefined when the original sequence's length is\n    // unknown and this slice did not supply an end and should contain all\n    // elements after resolvedBegin.\n    // In that case, resolvedSize will be NaN and sliceSize will remain undefined.\n    var resolvedSize=resolvedEnd - resolvedBegin;\n    var sliceSize;\n    if(resolvedSize===resolvedSize){\n      sliceSize=resolvedSize < 0 ? 0:resolvedSize;\n    }\n\n    var sliceSeq=makeSequence(iterable);\n\n    // If iterable.size is undefined, the size of the realized sliceSeq is\n    // unknown at this point unless the number of items to slice is 0\n    sliceSeq.size=sliceSize===0 ? sliceSize:iterable.size&&sliceSize||undefined;\n\n    if(!useKeys&&isSeq(iterable)&&sliceSize >=0){\n      sliceSeq.get=function (index, notSetValue){\n        index=wrapIndex(this, index);\n        return index >=0&&index < sliceSize ?\n          iterable.get(index + resolvedBegin, notSetValue) :\n          notSetValue;\n      }\n    }\n\n    sliceSeq.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(sliceSize===0){\n        return 0;\n      }\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var skipped=0;\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k){\n        if(!(isSkipping&&(isSkipping=skipped++ < resolvedBegin))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0)!==false&&\n                 iterations!==sliceSize;\n        }\n      });\n      return iterations;\n    };\n\n    sliceSeq.__iteratorUncached=function(type, reverse){\n      if(sliceSize!==0&&reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      // Don't bother instantiating parent iterator if taking 0.\n      var iterator=sliceSize!==0&&iterable.__iterator(type, reverse);\n      var skipped=0;\n      var iterations=0;\n      return new Iterator(function(){\n        while (skipped++ < resolvedBegin){\n          iterator.next();\n        }\n        if(++iterations > sliceSize){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(useKeys||type===ITERATE_VALUES){\n          return step;\n        }else if(type===ITERATE_KEYS){\n          return iteratorValue(type, iterations - 1, undefined, step);\n        }else{\n          return iteratorValue(type, iterations - 1, step.value[1], step);\n        }\n      });\n    }\n\n    return sliceSeq;\n  }\n\n\n  function takeWhileFactory(iterable, predicate, context){\n    var takeSequence=makeSequence(iterable);\n    takeSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterations=0;\n      iterable.__iterate(function(v, k, c) \n        {return predicate.call(context, v, k, c)&&++iterations&&fn(v, k, this$0)}\n);\n      return iterations;\n    };\n    takeSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterating=true;\n      return new Iterator(function(){\n        if(!iterating){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var k=entry[0];\n        var v=entry[1];\n        if(!predicate.call(context, v, k, this$0)){\n          iterating=false;\n          return iteratorDone();\n        }\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return takeSequence;\n  }\n\n\n  function skipWhileFactory(iterable, predicate, context, useKeys){\n    var skipSequence=makeSequence(iterable);\n    skipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(!(isSkipping&&(isSkipping=predicate.call(context, v, k, c)))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      });\n      return iterations;\n    };\n    skipSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var skipping=true;\n      var iterations=0;\n      return new Iterator(function(){\n        var step, k, v;\n        do {\n          step=iterator.next();\n          if(step.done){\n            if(useKeys||type===ITERATE_VALUES){\n              return step;\n            }else if(type===ITERATE_KEYS){\n              return iteratorValue(type, iterations++, undefined, step);\n            }else{\n              return iteratorValue(type, iterations++, step.value[1], step);\n            }\n          }\n          var entry=step.value;\n          k=entry[0];\n          v=entry[1];\n          skipping&&(skipping=predicate.call(context, v, k, this$0));\n        } while (skipping);\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return skipSequence;\n  }\n\n\n  function concatFactory(iterable, values){\n    var isKeyedIterable=isKeyed(iterable);\n    var iters=[iterable].concat(values).map(function(v){\n      if(!isIterable(v)){\n        v=isKeyedIterable ?\n          keyedSeqFromValue(v) :\n          indexedSeqFromValue(Array.isArray(v) ? v:[v]);\n      }else if(isKeyedIterable){\n        v=KeyedIterable(v);\n      }\n      return v;\n    }).filter(function(v){return v.size!==0});\n\n    if(iters.length===0){\n      return iterable;\n    }\n\n    if(iters.length===1){\n      var singleton=iters[0];\n      if(singleton===iterable||\n          isKeyedIterable&&isKeyed(singleton)||\n          isIndexed(iterable)&&isIndexed(singleton)){\n        return singleton;\n      }\n    }\n\n    var concatSeq=new ArraySeq(iters);\n    if(isKeyedIterable){\n      concatSeq=concatSeq.toKeyedSeq();\n    }else if(!isIndexed(iterable)){\n      concatSeq=concatSeq.toSetSeq();\n    }\n    concatSeq=concatSeq.flatten(true);\n    concatSeq.size=iters.reduce(\n      function(sum, seq){\n        if(sum!==undefined){\n          var size=seq.size;\n          if(size!==undefined){\n            return sum + size;\n          }\n        }\n      },\n      0\n);\n    return concatSeq;\n  }\n\n\n  function flattenFactory(iterable, depth, useKeys){\n    var flatSequence=makeSequence(iterable);\n    flatSequence.__iterateUncached=function(fn, reverse){\n      var iterations=0;\n      var stopped=false;\n      function flatDeep(iter, currentDepth){var this$0=this;\n        iter.__iterate(function(v, k){\n          if((!depth||currentDepth < depth)&&isIterable(v)){\n            flatDeep(v, currentDepth + 1);\n          }else if(fn(v, useKeys ? k:iterations++, this$0)===false){\n            stopped=true;\n          }\n          return !stopped;\n        }, reverse);\n      }\n      flatDeep(iterable, 0);\n      return iterations;\n    }\n    flatSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(type, reverse);\n      var stack=[];\n      var iterations=0;\n      return new Iterator(function(){\n        while (iterator){\n          var step=iterator.next();\n          if(step.done!==false){\n            iterator=stack.pop();\n            continue;\n          }\n          var v=step.value;\n          if(type===ITERATE_ENTRIES){\n            v=v[1];\n          }\n          if((!depth||stack.length < depth)&&isIterable(v)){\n            stack.push(iterator);\n            iterator=v.__iterator(type, reverse);\n          }else{\n            return useKeys ? step:iteratorValue(type, iterations++, v, step);\n          }\n        }\n        return iteratorDone();\n      });\n    }\n    return flatSequence;\n  }\n\n\n  function flatMapFactory(iterable, mapper, context){\n    var coerce=iterableClass(iterable);\n    return iterable.toSeq().map(\n      function(v, k){return coerce(mapper.call(context, v, k, iterable))}\n).flatten(true);\n  }\n\n\n  function interposeFactory(iterable, separator){\n    var interposedSequence=makeSequence(iterable);\n    interposedSequence.size=iterable.size&&iterable.size * 2 -1;\n    interposedSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k) \n        {return (!iterations||fn(separator, iterations++, this$0)!==false)&&\n        fn(v, iterations++, this$0)!==false},\n        reverse\n);\n      return iterations;\n    };\n    interposedSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      var step;\n      return new Iterator(function(){\n        if(!step||iterations % 2){\n          step=iterator.next();\n          if(step.done){\n            return step;\n          }\n        }\n        return iterations % 2 ?\n          iteratorValue(type, iterations++, separator) :\n          iteratorValue(type, iterations++, step.value, step);\n      });\n    };\n    return interposedSequence;\n  }\n\n\n  function sortFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    var isKeyedIterable=isKeyed(iterable);\n    var index=0;\n    var entries=iterable.toSeq().map(\n      function(v, k){return [k, v, index++, mapper ? mapper(v, k, iterable):v]}\n).toArray();\n    entries.sort(function(a, b){return comparator(a[3], b[3])||a[2] - b[2]}).forEach(\n      isKeyedIterable ?\n      function(v, i){ entries[i].length=2; } :\n      function(v, i){ entries[i]=v[1]; }\n);\n    return isKeyedIterable ? KeyedSeq(entries) :\n      isIndexed(iterable) ? IndexedSeq(entries) :\n      SetSeq(entries);\n  }\n\n\n  function maxFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    if(mapper){\n      var entry=iterable.toSeq()\n        .map(function(v, k){return [v, mapper(v, k, iterable)]})\n        .reduce(function(a, b){return maxCompare(comparator, a[1], b[1]) ? b:a});\n      return entry&&entry[0];\n    }else{\n      return iterable.reduce(function(a, b){return maxCompare(comparator, a, b) ? b:a});\n    }\n  }\n\n  function maxCompare(comparator, a, b){\n    var comp=comparator(b, a);\n    // b is considered the new max if the comparator declares them equal, but\n    // they are not equal and b is in fact a nullish value.\n    return (comp===0&&b!==a&&(b===undefined||b===null||b!==b))||comp > 0;\n  }\n\n\n  function zipWithFactory(keyIter, zipper, iters){\n    var zipSequence=makeSequence(keyIter);\n    zipSequence.size=new ArraySeq(iters).map(function(i){return i.size}).min();\n    // Note: this a generic base implementation of __iterate in terms of\n    // __iterator which may be more generically useful in the future.\n    zipSequence.__iterate=function(fn, reverse){\n      \n      // indexed:\n      var iterator=this.__iterator(ITERATE_VALUES, reverse);\n      var step;\n      var iterations=0;\n      while (!(step=iterator.next()).done){\n        if(fn(step.value, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n    zipSequence.__iteratorUncached=function(type, reverse){\n      var iterators=iters.map(function(i)\n        {return (i=Iterable(i), getIterator(reverse ? i.reverse():i))}\n);\n      var iterations=0;\n      var isDone=false;\n      return new Iterator(function(){\n        var steps;\n        if(!isDone){\n          steps=iterators.map(function(i){return i.next()});\n          isDone=steps.some(function(s){return s.done});\n        }\n        if(isDone){\n          return iteratorDone();\n        }\n        return iteratorValue(\n          type,\n          iterations++,\n          zipper.apply(null, steps.map(function(s){return s.value}))\n);\n      });\n    };\n    return zipSequence\n  }\n\n\n  // #pragma Helper Functions\n\n  function reify(iter, seq){\n    return isSeq(iter) ? seq:iter.constructor(seq);\n  }\n\n  function validateEntry(entry){\n    if(entry!==Object(entry)){\n      throw new TypeError('Expected [K, V] tuple: ' + entry);\n    }\n  }\n\n  function resolveSize(iter){\n    assertNotInfinite(iter.size);\n    return ensureSize(iter);\n  }\n\n  function iterableClass(iterable){\n    return isKeyed(iterable) ? KeyedIterable :\n      isIndexed(iterable) ? IndexedIterable :\n      SetIterable;\n  }\n\n  function makeSequence(iterable){\n    return Object.create(\n      (\n        isKeyed(iterable) ? KeyedSeq :\n        isIndexed(iterable) ? IndexedSeq :\n        SetSeq\n).prototype\n);\n  }\n\n  function cacheResultThrough(){\n    if(this._iter.cacheResult){\n      this._iter.cacheResult();\n      this.size=this._iter.size;\n      return this;\n    }else{\n      return Seq.prototype.cacheResult.call(this);\n    }\n  }\n\n  function defaultComparator(a, b){\n    return a > b ? 1:a < b ? -1:0;\n  }\n\n  function forceIterator(keyPath){\n    var iter=getIterator(keyPath);\n    if(!iter){\n      // Array might not be iterable in this environment, so we need a fallback\n      // to our wrapped type.\n      if(!isArrayLike(keyPath)){\n        throw new TypeError('Expected iterable or array-like: ' + keyPath);\n      }\n      iter=getIterator(Iterable(keyPath));\n    }\n    return iter;\n  }\n\n  createClass(Record, KeyedCollection);\n\n    function Record(defaultValues, name){\n      var hasInitialized;\n\n      var RecordType=function Record(values){\n        if(values instanceof RecordType){\n          return values;\n        }\n        if(!(this instanceof RecordType)){\n          return new RecordType(values);\n        }\n        if(!hasInitialized){\n          hasInitialized=true;\n          var keys=Object.keys(defaultValues);\n          setProps(RecordTypePrototype, keys);\n          RecordTypePrototype.size=keys.length;\n          RecordTypePrototype._name=name;\n          RecordTypePrototype._keys=keys;\n          RecordTypePrototype._defaultValues=defaultValues;\n        }\n        this._map=Map(values);\n      };\n\n      var RecordTypePrototype=RecordType.prototype=Object.create(RecordPrototype);\n      RecordTypePrototype.constructor=RecordType;\n\n      return RecordType;\n    }\n\n    Record.prototype.toString=function(){\n      return this.__toString(recordName(this) + ' {', '}');\n    };\n\n    // @pragma Access\n\n    Record.prototype.has=function(k){\n      return this._defaultValues.hasOwnProperty(k);\n    };\n\n    Record.prototype.get=function(k, notSetValue){\n      if(!this.has(k)){\n        return notSetValue;\n      }\n      var defaultVal=this._defaultValues[k];\n      return this._map ? this._map.get(k, defaultVal):defaultVal;\n    };\n\n    // @pragma Modification\n\n    Record.prototype.clear=function(){\n      if(this.__ownerID){\n        this._map&&this._map.clear();\n        return this;\n      }\n      var RecordType=this.constructor;\n      return RecordType._empty||(RecordType._empty=makeRecord(this, emptyMap()));\n    };\n\n    Record.prototype.set=function(k, v){\n      if(!this.has(k)){\n        throw new Error('Cannot set unknown key \"' + k + '\" on ' + recordName(this));\n      }\n      var newMap=this._map&&this._map.set(k, v);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.remove=function(k){\n      if(!this.has(k)){\n        return this;\n      }\n      var newMap=this._map&&this._map.remove(k);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Record.prototype.__iterator=function(type, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterator(type, reverse);\n    };\n\n    Record.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterate(fn, reverse);\n    };\n\n    Record.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map&&this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return makeRecord(this, newMap, ownerID);\n    };\n\n\n  var RecordPrototype=Record.prototype;\n  RecordPrototype[DELETE]=RecordPrototype.remove;\n  RecordPrototype.deleteIn=\n  RecordPrototype.removeIn=MapPrototype.removeIn;\n  RecordPrototype.merge=MapPrototype.merge;\n  RecordPrototype.mergeWith=MapPrototype.mergeWith;\n  RecordPrototype.mergeIn=MapPrototype.mergeIn;\n  RecordPrototype.mergeDeep=MapPrototype.mergeDeep;\n  RecordPrototype.mergeDeepWith=MapPrototype.mergeDeepWith;\n  RecordPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  RecordPrototype.setIn=MapPrototype.setIn;\n  RecordPrototype.update=MapPrototype.update;\n  RecordPrototype.updateIn=MapPrototype.updateIn;\n  RecordPrototype.withMutations=MapPrototype.withMutations;\n  RecordPrototype.asMutable=MapPrototype.asMutable;\n  RecordPrototype.asImmutable=MapPrototype.asImmutable;\n\n\n  function makeRecord(likeRecord, map, ownerID){\n    var record=Object.create(Object.getPrototypeOf(likeRecord));\n    record._map=map;\n    record.__ownerID=ownerID;\n    return record;\n  }\n\n  function recordName(record){\n    return record._name||record.constructor.name||'Record';\n  }\n\n  function setProps(prototype, names){\n    try {\n      names.forEach(setProp.bind(undefined, prototype));\n    } catch (error){\n      // Object.defineProperty failed. Probably IE8.\n    }\n  }\n\n  function setProp(prototype, name){\n    Object.defineProperty(prototype, name, {\n      get: function(){\n        return this.get(name);\n      },\n      set: function(value){\n        invariant(this.__ownerID, 'Cannot set on an immutable record.');\n        this.set(name, value);\n      }\n    });\n  }\n\n  createClass(Set, SetCollection);\n\n    // @pragma Construction\n\n    function Set(value){\n      return value===null||value===undefined ? emptySet() :\n        isSet(value)&&!isOrdered(value) ? value :\n        emptySet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    Set.of=function(){\n      return this(arguments);\n    };\n\n    Set.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    Set.prototype.toString=function(){\n      return this.__toString('Set {', '}');\n    };\n\n    // @pragma Access\n\n    Set.prototype.has=function(value){\n      return this._map.has(value);\n    };\n\n    // @pragma Modification\n\n    Set.prototype.add=function(value){\n      return updateSet(this, this._map.set(value, true));\n    };\n\n    Set.prototype.remove=function(value){\n      return updateSet(this, this._map.remove(value));\n    };\n\n    Set.prototype.clear=function(){\n      return updateSet(this, this._map.clear());\n    };\n\n    // @pragma Composition\n\n    Set.prototype.union=function(){var iters=SLICE$0.call(arguments, 0);\n      iters=iters.filter(function(x){return x.size!==0});\n      if(iters.length===0){\n        return this;\n      }\n      if(this.size===0&&!this.__ownerID&&iters.length===1){\n        return this.constructor(iters[0]);\n      }\n      return this.withMutations(function(set){\n        for (var ii=0; ii < iters.length; ii++){\n          SetIterable(iters[ii]).forEach(function(value){return set.add(value)});\n        }\n      });\n    };\n\n    Set.prototype.intersect=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(!iters.every(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.subtract=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(iters.some(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.merge=function(){\n      return this.union.apply(this, arguments);\n    };\n\n    Set.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return this.union.apply(this, iters);\n    };\n\n    Set.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator));\n    };\n\n    Set.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator, mapper));\n    };\n\n    Set.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Set.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._map.__iterate(function(_, k){return fn(k, k, this$0)}, reverse);\n    };\n\n    Set.prototype.__iterator=function(type, reverse){\n      return this._map.map(function(_, k){return k}).__iterator(type, reverse);\n    };\n\n    Set.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return this.__make(newMap, ownerID);\n    };\n\n\n  function isSet(maybeSet){\n    return !!(maybeSet&&maybeSet[IS_SET_SENTINEL]);\n  }\n\n  Set.isSet=isSet;\n\n  var IS_SET_SENTINEL='@@__IMMUTABLE_SET__@@';\n\n  var SetPrototype=Set.prototype;\n  SetPrototype[IS_SET_SENTINEL]=true;\n  SetPrototype[DELETE]=SetPrototype.remove;\n  SetPrototype.mergeDeep=SetPrototype.merge;\n  SetPrototype.mergeDeepWith=SetPrototype.mergeWith;\n  SetPrototype.withMutations=MapPrototype.withMutations;\n  SetPrototype.asMutable=MapPrototype.asMutable;\n  SetPrototype.asImmutable=MapPrototype.asImmutable;\n\n  SetPrototype.__empty=emptySet;\n  SetPrototype.__make=makeSet;\n\n  function updateSet(set, newMap){\n    if(set.__ownerID){\n      set.size=newMap.size;\n      set._map=newMap;\n      return set;\n    }\n    return newMap===set._map ? set :\n      newMap.size===0 ? set.__empty() :\n      set.__make(newMap);\n  }\n\n  function makeSet(map, ownerID){\n    var set=Object.create(SetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_SET;\n  function emptySet(){\n    return EMPTY_SET||(EMPTY_SET=makeSet(emptyMap()));\n  }\n\n  createClass(OrderedSet, Set);\n\n    // @pragma Construction\n\n    function OrderedSet(value){\n      return value===null||value===undefined ? emptyOrderedSet() :\n        isOrderedSet(value) ? value :\n        emptyOrderedSet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    OrderedSet.of=function(){\n      return this(arguments);\n    };\n\n    OrderedSet.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    OrderedSet.prototype.toString=function(){\n      return this.__toString('OrderedSet {', '}');\n    };\n\n\n  function isOrderedSet(maybeOrderedSet){\n    return isSet(maybeOrderedSet)&&isOrdered(maybeOrderedSet);\n  }\n\n  OrderedSet.isOrderedSet=isOrderedSet;\n\n  var OrderedSetPrototype=OrderedSet.prototype;\n  OrderedSetPrototype[IS_ORDERED_SENTINEL]=true;\n\n  OrderedSetPrototype.__empty=emptyOrderedSet;\n  OrderedSetPrototype.__make=makeOrderedSet;\n\n  function makeOrderedSet(map, ownerID){\n    var set=Object.create(OrderedSetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_ORDERED_SET;\n  function emptyOrderedSet(){\n    return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()));\n  }\n\n  createClass(Stack, IndexedCollection);\n\n    // @pragma Construction\n\n    function Stack(value){\n      return value===null||value===undefined ? emptyStack() :\n        isStack(value) ? value :\n        emptyStack().unshiftAll(value);\n    }\n\n    Stack.of=function(){\n      return this(arguments);\n    };\n\n    Stack.prototype.toString=function(){\n      return this.__toString('Stack [', ']');\n    };\n\n    // @pragma Access\n\n    Stack.prototype.get=function(index, notSetValue){\n      var head=this._head;\n      index=wrapIndex(this, index);\n      while (head&&index--){\n        head=head.next;\n      }\n      return head ? head.value:notSetValue;\n    };\n\n    Stack.prototype.peek=function(){\n      return this._head&&this._head.value;\n    };\n\n    // @pragma Modification\n\n    Stack.prototype.push=function(){\n      if(arguments.length===0){\n        return this;\n      }\n      var newSize=this.size + arguments.length;\n      var head=this._head;\n      for (var ii=arguments.length - 1; ii >=0; ii--){\n        head={\n          value: arguments[ii],\n          next: head\n        };\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pushAll=function(iter){\n      iter=IndexedIterable(iter);\n      if(iter.size===0){\n        return this;\n      }\n      assertNotInfinite(iter.size);\n      var newSize=this.size;\n      var head=this._head;\n      iter.reverse().forEach(function(value){\n        newSize++;\n        head={\n          value: value,\n          next: head\n        };\n      });\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pop=function(){\n      return this.slice(1);\n    };\n\n    Stack.prototype.unshift=function(){\n      return this.push.apply(this, arguments);\n    };\n\n    Stack.prototype.unshiftAll=function(iter){\n      return this.pushAll(iter);\n    };\n\n    Stack.prototype.shift=function(){\n      return this.pop.apply(this, arguments);\n    };\n\n    Stack.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._head=undefined;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyStack();\n    };\n\n    Stack.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      var resolvedBegin=resolveBegin(begin, this.size);\n      var resolvedEnd=resolveEnd(end, this.size);\n      if(resolvedEnd!==this.size){\n        // super.slice(begin, end);\n        return IndexedCollection.prototype.slice.call(this, begin, end);\n      }\n      var newSize=this.size - resolvedBegin;\n      var head=this._head;\n      while (resolvedBegin--){\n        head=head.next;\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    // @pragma Mutability\n\n    Stack.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeStack(this.size, this._head, ownerID, this.__hash);\n    };\n\n    // @pragma Iteration\n\n    Stack.prototype.__iterate=function(fn, reverse){\n      if(reverse){\n        return this.reverse().__iterate(fn);\n      }\n      var iterations=0;\n      var node=this._head;\n      while (node){\n        if(fn(node.value, iterations++, this)===false){\n          break;\n        }\n        node=node.next;\n      }\n      return iterations;\n    };\n\n    Stack.prototype.__iterator=function(type, reverse){\n      if(reverse){\n        return this.reverse().__iterator(type);\n      }\n      var iterations=0;\n      var node=this._head;\n      return new Iterator(function(){\n        if(node){\n          var value=node.value;\n          node=node.next;\n          return iteratorValue(type, iterations++, value);\n        }\n        return iteratorDone();\n      });\n    };\n\n\n  function isStack(maybeStack){\n    return !!(maybeStack&&maybeStack[IS_STACK_SENTINEL]);\n  }\n\n  Stack.isStack=isStack;\n\n  var IS_STACK_SENTINEL='@@__IMMUTABLE_STACK__@@';\n\n  var StackPrototype=Stack.prototype;\n  StackPrototype[IS_STACK_SENTINEL]=true;\n  StackPrototype.withMutations=MapPrototype.withMutations;\n  StackPrototype.asMutable=MapPrototype.asMutable;\n  StackPrototype.asImmutable=MapPrototype.asImmutable;\n  StackPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n  function makeStack(size, head, ownerID, hash){\n    var map=Object.create(StackPrototype);\n    map.size=size;\n    map._head=head;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_STACK;\n  function emptyStack(){\n    return EMPTY_STACK||(EMPTY_STACK=makeStack(0));\n  }\n\n  \n  function mixin(ctor, methods){\n    var keyCopier=function(key){ ctor.prototype[key]=methods[key]; };\n    Object.keys(methods).forEach(keyCopier);\n    Object.getOwnPropertySymbols&&\n      Object.getOwnPropertySymbols(methods).forEach(keyCopier);\n    return ctor;\n  }\n\n  Iterable.Iterator=Iterator;\n\n  mixin(Iterable, {\n\n    // ### Conversion to other types\n\n    toArray: function(){\n      assertNotInfinite(this.size);\n      var array=new Array(this.size||0);\n      this.valueSeq().__iterate(function(v, i){ array[i]=v; });\n      return array;\n    },\n\n    toIndexedSeq: function(){\n      return new ToIndexedSequence(this);\n    },\n\n    toJS: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJS==='function' ? value.toJS():value}\n).__toJS();\n    },\n\n    toJSON: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJSON==='function' ? value.toJSON():value}\n).__toJS();\n    },\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, true);\n    },\n\n    toMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Map(this.toKeyedSeq());\n    },\n\n    toObject: function(){\n      assertNotInfinite(this.size);\n      var object={};\n      this.__iterate(function(v, k){ object[k]=v; });\n      return object;\n    },\n\n    toOrderedMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedMap(this.toKeyedSeq());\n    },\n\n    toOrderedSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedSet(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Set(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSetSeq: function(){\n      return new ToSetSequence(this);\n    },\n\n    toSeq: function(){\n      return isIndexed(this) ? this.toIndexedSeq() :\n        isKeyed(this) ? this.toKeyedSeq() :\n        this.toSetSeq();\n    },\n\n    toStack: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Stack(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toList: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return List(isKeyed(this) ? this.valueSeq():this);\n    },\n\n\n    // ### Common JavaScript methods and properties\n\n    toString: function(){\n      return '[Iterable]';\n    },\n\n    __toString: function(head, tail){\n      if(this.size===0){\n        return head + tail;\n      }\n      return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    concat: function(){var values=SLICE$0.call(arguments, 0);\n      return reify(this, concatFactory(this, values));\n    },\n\n    includes: function(searchValue){\n      return this.some(function(value){return is(value, searchValue)});\n    },\n\n    entries: function(){\n      return this.__iterator(ITERATE_ENTRIES);\n    },\n\n    every: function(predicate, context){\n      assertNotInfinite(this.size);\n      var returnValue=true;\n      this.__iterate(function(v, k, c){\n        if(!predicate.call(context, v, k, c)){\n          returnValue=false;\n          return false;\n        }\n      });\n      return returnValue;\n    },\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, true));\n    },\n\n    find: function(predicate, context, notSetValue){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[1]:notSetValue;\n    },\n\n    findEntry: function(predicate, context){\n      var found;\n      this.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          found=[k, v];\n          return false;\n        }\n      });\n      return found;\n    },\n\n    findLastEntry: function(predicate, context){\n      return this.toSeq().reverse().findEntry(predicate, context);\n    },\n\n    forEach: function(sideEffect, context){\n      assertNotInfinite(this.size);\n      return this.__iterate(context ? sideEffect.bind(context):sideEffect);\n    },\n\n    join: function(separator){\n      assertNotInfinite(this.size);\n      separator=separator!==undefined ? '' + separator:',';\n      var joined='';\n      var isFirst=true;\n      this.__iterate(function(v){\n        isFirst ? (isFirst=false):(joined +=separator);\n        joined +=v!==null&&v!==undefined ? v.toString():'';\n      });\n      return joined;\n    },\n\n    keys: function(){\n      return this.__iterator(ITERATE_KEYS);\n    },\n\n    map: function(mapper, context){\n      return reify(this, mapFactory(this, mapper, context));\n    },\n\n    reduce: function(reducer, initialReduction, context){\n      assertNotInfinite(this.size);\n      var reduction;\n      var useFirst;\n      if(arguments.length < 2){\n        useFirst=true;\n      }else{\n        reduction=initialReduction;\n      }\n      this.__iterate(function(v, k, c){\n        if(useFirst){\n          useFirst=false;\n          reduction=v;\n        }else{\n          reduction=reducer.call(context, reduction, v, k, c);\n        }\n      });\n      return reduction;\n    },\n\n    reduceRight: function(reducer, initialReduction, context){\n      var reversed=this.toKeyedSeq().reverse();\n      return reversed.reduce.apply(reversed, arguments);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, true));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, true));\n    },\n\n    some: function(predicate, context){\n      return !this.every(not(predicate), context);\n    },\n\n    sort: function(comparator){\n      return reify(this, sortFactory(this, comparator));\n    },\n\n    values: function(){\n      return this.__iterator(ITERATE_VALUES);\n    },\n\n\n    // ### More sequential methods\n\n    butLast: function(){\n      return this.slice(0, -1);\n    },\n\n    isEmpty: function(){\n      return this.size!==undefined ? this.size===0:!this.some(function(){return true});\n    },\n\n    count: function(predicate, context){\n      return ensureSize(\n        predicate ? this.toSeq().filter(predicate, context):this\n);\n    },\n\n    countBy: function(grouper, context){\n      return countByFactory(this, grouper, context);\n    },\n\n    equals: function(other){\n      return deepEqual(this, other);\n    },\n\n    entrySeq: function(){\n      var iterable=this;\n      if(iterable._cache){\n        // We cache as an entries array, so we can just return the cache!\n        return new ArraySeq(iterable._cache);\n      }\n      var entriesSequence=iterable.toSeq().map(entryMapper).toIndexedSeq();\n      entriesSequence.fromEntrySeq=function(){return iterable.toSeq()};\n      return entriesSequence;\n    },\n\n    filterNot: function(predicate, context){\n      return this.filter(not(predicate), context);\n    },\n\n    findLast: function(predicate, context, notSetValue){\n      return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);\n    },\n\n    first: function(){\n      return this.find(returnTrue);\n    },\n\n    flatMap: function(mapper, context){\n      return reify(this, flatMapFactory(this, mapper, context));\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, true));\n    },\n\n    fromEntrySeq: function(){\n      return new FromEntriesSequence(this);\n    },\n\n    get: function(searchKey, notSetValue){\n      return this.find(function(_, key){return is(key, searchKey)}, undefined, notSetValue);\n    },\n\n    getIn: function(searchKeyPath, notSetValue){\n      var nested=this;\n      // Note: in an ES6 environment, we would prefer:\n      // for (var key of searchKeyPath){\n      var iter=forceIterator(searchKeyPath);\n      var step;\n      while (!(step=iter.next()).done){\n        var key=step.value;\n        nested=nested&&nested.get ? nested.get(key, NOT_SET):NOT_SET;\n        if(nested===NOT_SET){\n          return notSetValue;\n        }\n      }\n      return nested;\n    },\n\n    groupBy: function(grouper, context){\n      return groupByFactory(this, grouper, context);\n    },\n\n    has: function(searchKey){\n      return this.get(searchKey, NOT_SET)!==NOT_SET;\n    },\n\n    hasIn: function(searchKeyPath){\n      return this.getIn(searchKeyPath, NOT_SET)!==NOT_SET;\n    },\n\n    isSubset: function(iter){\n      iter=typeof iter.includes==='function' ? iter:Iterable(iter);\n      return this.every(function(value){return iter.includes(value)});\n    },\n\n    isSuperset: function(iter){\n      iter=typeof iter.isSubset==='function' ? iter:Iterable(iter);\n      return iter.isSubset(this);\n    },\n\n    keySeq: function(){\n      return this.toSeq().map(keyMapper).toIndexedSeq();\n    },\n\n    last: function(){\n      return this.toSeq().reverse().first();\n    },\n\n    max: function(comparator){\n      return maxFactory(this, comparator);\n    },\n\n    maxBy: function(mapper, comparator){\n      return maxFactory(this, comparator, mapper);\n    },\n\n    min: function(comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator);\n    },\n\n    minBy: function(mapper, comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator, mapper);\n    },\n\n    rest: function(){\n      return this.slice(1);\n    },\n\n    skip: function(amount){\n      return this.slice(Math.max(0, amount));\n    },\n\n    skipLast: function(amount){\n      return reify(this, this.toSeq().reverse().skip(amount).reverse());\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, true));\n    },\n\n    skipUntil: function(predicate, context){\n      return this.skipWhile(not(predicate), context);\n    },\n\n    sortBy: function(mapper, comparator){\n      return reify(this, sortFactory(this, comparator, mapper));\n    },\n\n    take: function(amount){\n      return this.slice(0, Math.max(0, amount));\n    },\n\n    takeLast: function(amount){\n      return reify(this, this.toSeq().reverse().take(amount).reverse());\n    },\n\n    takeWhile: function(predicate, context){\n      return reify(this, takeWhileFactory(this, predicate, context));\n    },\n\n    takeUntil: function(predicate, context){\n      return this.takeWhile(not(predicate), context);\n    },\n\n    valueSeq: function(){\n      return this.toIndexedSeq();\n    },\n\n\n    // ### Hashable Object\n\n    hashCode: function(){\n      return this.__hash||(this.__hash=hashIterable(this));\n    }\n\n\n    // ### Internal\n\n    // abstract __iterate(fn, reverse)\n\n    // abstract __iterator(type, reverse)\n  });\n\n  // var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  // var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  // var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  // var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  var IterablePrototype=Iterable.prototype;\n  IterablePrototype[IS_ITERABLE_SENTINEL]=true;\n  IterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.values;\n  IterablePrototype.__toJS=IterablePrototype.toArray;\n  IterablePrototype.__toStringMapper=quoteString;\n  IterablePrototype.inspect=\n  IterablePrototype.toSource=function(){ return this.toString(); };\n  IterablePrototype.chain=IterablePrototype.flatMap;\n  IterablePrototype.contains=IterablePrototype.includes;\n\n  // Temporary warning about using length\n  (function (){\n    try {\n      Object.defineProperty(IterablePrototype, 'length', {\n        get: function (){\n          if(!Iterable.noLengthWarning){\n            var stack;\n            try {\n              throw new Error();\n            } catch (error){\n              stack=error.stack;\n            }\n            if(stack.indexOf('_wrapObject')===-1){\n              console&&console.warn&&console.warn(\n                'iterable.length has been deprecated, '+\n                'use iterable.size or iterable.count(). '+\n                'This warning will become a silent error in a future version. ' +\n                stack\n);\n              return this.size;\n            }\n          }\n        }\n      });\n    } catch (e){}\n  })();\n\n\n\n  mixin(KeyedIterable, {\n\n    // ### More sequential methods\n\n    flip: function(){\n      return reify(this, flipFactory(this));\n    },\n\n    findKey: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry&&entry[0];\n    },\n\n    findLastKey: function(predicate, context){\n      return this.toSeq().reverse().findKey(predicate, context);\n    },\n\n    keyOf: function(searchValue){\n      return this.findKey(function(value){return is(value, searchValue)});\n    },\n\n    lastKeyOf: function(searchValue){\n      return this.findLastKey(function(value){return is(value, searchValue)});\n    },\n\n    mapEntries: function(mapper, context){var this$0=this;\n      var iterations=0;\n      return reify(this,\n        this.toSeq().map(\n          function(v, k){return mapper.call(context, [k, v], iterations++, this$0)}\n).fromEntrySeq()\n);\n    },\n\n    mapKeys: function(mapper, context){var this$0=this;\n      return reify(this,\n        this.toSeq().flip().map(\n          function(k, v){return mapper.call(context, k, v, this$0)}\n).flip()\n);\n    }\n\n  });\n\n  var KeyedIterablePrototype=KeyedIterable.prototype;\n  KeyedIterablePrototype[IS_KEYED_SENTINEL]=true;\n  KeyedIterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.entries;\n  KeyedIterablePrototype.__toJS=IterablePrototype.toObject;\n  KeyedIterablePrototype.__toStringMapper=function(v, k){return JSON.stringify(k) + ': ' + quoteString(v)};\n\n\n\n  mixin(IndexedIterable, {\n\n    // ### Conversion to other types\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, false);\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, false));\n    },\n\n    findIndex: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[0]:-1;\n    },\n\n    indexOf: function(searchValue){\n      var key=this.toKeyedSeq().keyOf(searchValue);\n      return key===undefined ? -1:key;\n    },\n\n    lastIndexOf: function(searchValue){\n      var key=this.toKeyedSeq().reverse().keyOf(searchValue);\n      return key===undefined ? -1:key;\n\n      // var index=\n      // return this.toSeq().reverse().indexOf(searchValue);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, false));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, false));\n    },\n\n    splice: function(index, removeNum ){\n      var numArgs=arguments.length;\n      removeNum=Math.max(removeNum | 0, 0);\n      if(numArgs===0||(numArgs===2&&!removeNum)){\n        return this;\n      }\n      // If index is negative, it should resolve relative to the size of the\n      // collection. However size may be expensive to compute if not cached, so\n      // only call count() if the number is in fact negative.\n      index=resolveBegin(index, index < 0 ? this.count():this.size);\n      var spliced=this.slice(0, index);\n      return reify(\n        this,\n        numArgs===1 ?\n          spliced :\n          spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))\n);\n    },\n\n\n    // ### More collection methods\n\n    findLastIndex: function(predicate, context){\n      var key=this.toKeyedSeq().findLastKey(predicate, context);\n      return key===undefined ? -1:key;\n    },\n\n    first: function(){\n      return this.get(0);\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, false));\n    },\n\n    get: function(index, notSetValue){\n      index=wrapIndex(this, index);\n      return (index < 0||(this.size===Infinity||\n          (this.size!==undefined&&index > this.size))) ?\n        notSetValue :\n        this.find(function(_, key){return key===index}, undefined, notSetValue);\n    },\n\n    has: function(index){\n      index=wrapIndex(this, index);\n      return index >=0&&(this.size!==undefined ?\n        this.size===Infinity||index < this.size :\n        this.indexOf(index)!==-1\n);\n    },\n\n    interpose: function(separator){\n      return reify(this, interposeFactory(this, separator));\n    },\n\n    interleave: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      var zipped=zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);\n      var interleaved=zipped.flatten(true);\n      if(zipped.size){\n        interleaved.size=zipped.size * iterables.length;\n      }\n      return reify(this, interleaved);\n    },\n\n    last: function(){\n      return this.get(-1);\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, false));\n    },\n\n    zip: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      return reify(this, zipWithFactory(this, defaultZipper, iterables));\n    },\n\n    zipWith: function(zipper){\n      var iterables=arrCopy(arguments);\n      iterables[0]=this;\n      return reify(this, zipWithFactory(this, zipper, iterables));\n    }\n\n  });\n\n  IndexedIterable.prototype[IS_INDEXED_SENTINEL]=true;\n  IndexedIterable.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n\n  mixin(SetIterable, {\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    get: function(value, notSetValue){\n      return this.has(value) ? value:notSetValue;\n    },\n\n    includes: function(value){\n      return this.has(value);\n    },\n\n\n    // ### More sequential methods\n\n    keySeq: function(){\n      return this.valueSeq();\n    }\n\n  });\n\n  SetIterable.prototype.has=IterablePrototype.includes;\n\n\n  // Mixin subclasses\n\n  mixin(KeyedSeq, KeyedIterable.prototype);\n  mixin(IndexedSeq, IndexedIterable.prototype);\n  mixin(SetSeq, SetIterable.prototype);\n\n  mixin(KeyedCollection, KeyedIterable.prototype);\n  mixin(IndexedCollection, IndexedIterable.prototype);\n  mixin(SetCollection, SetIterable.prototype);\n\n\n  // #pragma Helper functions\n\n  function keyMapper(v, k){\n    return k;\n  }\n\n  function entryMapper(v, k){\n    return [k, v];\n  }\n\n  function not(predicate){\n    return function(){\n      return !predicate.apply(this, arguments);\n    }\n  }\n\n  function neg(predicate){\n    return function(){\n      return -predicate.apply(this, arguments);\n    }\n  }\n\n  function quoteString(value){\n    return typeof value==='string' ? JSON.stringify(value):value;\n  }\n\n  function defaultZipper(){\n    return arrCopy(arguments);\n  }\n\n  function defaultNegComparator(a, b){\n    return a < b ? 1:a > b ? -1:0;\n  }\n\n  function hashIterable(iterable){\n    if(iterable.size===Infinity){\n      return 0;\n    }\n    var ordered=isOrdered(iterable);\n    var keyed=isKeyed(iterable);\n    var h=ordered ? 1:0;\n    var size=iterable.__iterate(\n      keyed ?\n        ordered ?\n          function(v, k){ h=31 * h + hashMerge(hash(v), hash(k)) | 0; } :\n          function(v, k){ h=h + hashMerge(hash(v), hash(k)) | 0; } :\n        ordered ?\n          function(v){ h=31 * h + hash(v) | 0; } :\n          function(v){ h=h + hash(v) | 0; }\n);\n    return murmurHashOfSize(size, h);\n  }\n\n  function murmurHashOfSize(size, h){\n    h=imul(h, 0xCC9E2D51);\n    h=imul(h << 15 | h >>> -15, 0x1B873593);\n    h=imul(h << 13 | h >>> -13, 5);\n    h=(h + 0xE6546B64 | 0) ^ size;\n    h=imul(h ^ h >>> 16, 0x85EBCA6B);\n    h=imul(h ^ h >>> 13, 0xC2B2AE35);\n    h=smi(h ^ h >>> 16);\n    return h;\n  }\n\n  function hashMerge(a, b){\n    return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int\n  }\n\n  var Immutable={\n\n    Iterable: Iterable,\n\n    Seq: Seq,\n    Collection: Collection,\n    Map: Map,\n    OrderedMap: OrderedMap,\n    List: List,\n    Stack: Stack,\n    Set: Set,\n    OrderedSet: OrderedSet,\n\n    Record: Record,\n    Range: Range,\n    Repeat: Repeat,\n\n    is: is,\n    fromJS: fromJS\n\n  };\n\n  return Immutable;\n\n}));\n\n//# sourceURL=webpack:///./node_modules/draft-js-drag-n-drop-plugin/node_modules/immutable/dist/immutable.js?");
}),
"./node_modules/draft-js-export-html/esm/helpers/combineOrderedStyles.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance\"); }\n\nfunction _iterableToArray(iter){ if(Symbol.iterator in Object(iter)||Object.prototype.toString.call(iter)===\"[object Arguments]\") return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)){ for (var i=0, arr2=new Array(arr.length); i < arr.length; i++){ arr2[i]=arr[i]; } return arr2; }}\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if(enumerableOnly) keys=keys.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(source, true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(source).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i){ var _arr=[]; var _n=true; var _d=false; var _e=undefined; try { for (var _i=arr[Symbol.iterator](), _s; !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nfunction combineOrderedStyles(customMap, defaults){\n  if(customMap==null){\n    return defaults;\n  }\n\n  var _defaults=_slicedToArray(defaults, 2),\n      defaultStyleMap=_defaults[0],\n      defaultStyleOrder=_defaults[1];\n\n  var styleMap=_objectSpread({}, defaultStyleMap);\n\n  var styleOrder=_toConsumableArray(defaultStyleOrder);\n\n  for (var _i2=0, _Object$keys=Object.keys(customMap); _i2 < _Object$keys.length; _i2++){\n    var _styleName=_Object$keys[_i2];\n\n    if(defaultStyleMap.hasOwnProperty(_styleName)){\n      var defaultStyles=defaultStyleMap[_styleName];\n      styleMap[_styleName]=_objectSpread({}, defaultStyles, {}, customMap[_styleName]);\n    }else{\n      styleMap[_styleName]=customMap[_styleName];\n      styleOrder.push(_styleName);\n    }\n  }\n\n  return [styleMap, styleOrder];\n}\n\n __webpack_exports__[\"default\"]=(combineOrderedStyles);\n\n//# sourceURL=webpack:///./node_modules/draft-js-export-html/esm/helpers/combineOrderedStyles.js?");
}),
"./node_modules/draft-js-export-html/esm/helpers/normalizeAttributes.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// Lifted from: https://github.com/facebook/react/blob/master/src/renderers/dom/shared/HTMLDOMPropertyConfig.js\nvar ATTR_NAME_MAP={\n  acceptCharset: 'accept-charset',\n  className: 'class',\n  htmlFor: 'for',\n  httpEquiv: 'http-equiv'\n};\n\nfunction normalizeAttributes(attributes){\n  if(attributes==null){\n    return attributes;\n  }\n\n  var normalized={};\n  var didNormalize=false;\n\n  for (var _i=0, _Object$keys=Object.keys(attributes); _i < _Object$keys.length; _i++){\n    var name=_Object$keys[_i];\n    var newName=name;\n\n    if(ATTR_NAME_MAP.hasOwnProperty(name)){\n      newName=ATTR_NAME_MAP[name];\n      didNormalize=true;\n    }\n\n    normalized[newName]=attributes[name];\n  }\n\n  return didNormalize ? normalized:attributes;\n}\n\n __webpack_exports__[\"default\"]=(normalizeAttributes);\n\n//# sourceURL=webpack:///./node_modules/draft-js-export-html/esm/helpers/normalizeAttributes.js?");
}),
"./node_modules/draft-js-export-html/esm/helpers/styleToCSS.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nvar VENDOR_PREFIX=/^(moz|ms|o|webkit)-/;\nvar NUMERIC_STRING=/^\\d+$/;\nvar UPPERCASE_PATTERN=/([A-Z])/g; // Lifted from:\n// https://github.com/facebook/react/blob/ab4ddf64939aebbbc8d31be1022efd56e834c95c/src/renderers/dom/shared/CSSProperty.js\n\nvar isUnitlessNumber={\n  animationIterationCount: true,\n  borderImageOutset: true,\n  borderImageSlice: true,\n  borderImageWidth: true,\n  boxFlex: true,\n  boxFlexGroup: true,\n  boxOrdinalGroup: true,\n  columnCount: true,\n  flex: true,\n  flexGrow: true,\n  flexPositive: true,\n  flexShrink: true,\n  flexNegative: true,\n  flexOrder: true,\n  gridRow: true,\n  gridRowEnd: true,\n  gridRowSpan: true,\n  gridRowStart: true,\n  gridColumn: true,\n  gridColumnEnd: true,\n  gridColumnSpan: true,\n  gridColumnStart: true,\n  fontWeight: true,\n  lineClamp: true,\n  lineHeight: true,\n  opacity: true,\n  order: true,\n  orphans: true,\n  tabSize: true,\n  widows: true,\n  zIndex: true,\n  zoom: true,\n  // SVG-related properties\n  fillOpacity: true,\n  floodOpacity: true,\n  stopOpacity: true,\n  strokeDasharray: true,\n  strokeDashoffset: true,\n  strokeMiterlimit: true,\n  strokeOpacity: true,\n  strokeWidth: true\n}; // Lifted from: https://github.com/facebook/react/blob/master/src/renderers/dom/shared/CSSPropertyOperations.js\n\nfunction processStyleName(name){\n  return name.replace(UPPERCASE_PATTERN, '-$1').toLowerCase().replace(VENDOR_PREFIX, '-$1-');\n} // Lifted from: https://github.com/facebook/react/blob/master/src/renderers/dom/shared/dangerousStyleValue.js\n\n\nfunction processStyleValue(name, value){\n  var isNumeric;\n\n  if(typeof value==='string'){\n    isNumeric=NUMERIC_STRING.test(value);\n  }else{\n    isNumeric=true;\n    value=String(value);\n  }\n\n  if(!isNumeric||value==='0'||isUnitlessNumber[name]===true){\n    return value;\n  }else{\n    return value + 'px';\n  }\n}\n\nfunction styleToCSS(styleDescr){\n  return Object.keys(styleDescr).map(function (name){\n    var styleValue=processStyleValue(name, styleDescr[name]);\n    var styleName=processStyleName(name);\n    return \"\".concat(styleName, \": \").concat(styleValue);\n  }).join('; ');\n}\n\n __webpack_exports__[\"default\"]=(styleToCSS);\n\n//# sourceURL=webpack:///./node_modules/draft-js-export-html/esm/helpers/styleToCSS.js?");
}),
"./node_modules/draft-js-export-html/esm/main.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _stateToHTML__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js-export-html/esm/stateToHTML.js\");\n __webpack_require__.d(__webpack_exports__, \"stateToHTML\", function(){ return _stateToHTML__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n\n\n//# sourceURL=webpack:///./node_modules/draft-js-export-html/esm/main.js?");
}),
"./node_modules/draft-js-export-html/esm/stateToHTML.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return stateToHTML; });\n var _helpers_combineOrderedStyles__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js-export-html/esm/helpers/combineOrderedStyles.js\");\n var _helpers_normalizeAttributes__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-export-html/esm/helpers/normalizeAttributes.js\");\n var _helpers_styleToCSS__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/draft-js-export-html/esm/helpers/styleToCSS.js\");\n var draft_js_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./node_modules/draft-js-utils/esm/main.js\");\nvar _DEFAULT_STYLE_MAP, _ENTITY_ATTR_MAP, _DATA_TO_ATTR;\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if(enumerableOnly) keys=keys.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(source, true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(source).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i){ var _arr=[]; var _n=true; var _d=false; var _e=undefined; try { for (var _i=arr[Symbol.iterator](), _s; !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }}\n\nfunction _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\n\n\n\n\nvar BOLD=draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"INLINE_STYLE\"].BOLD,\n    CODE=draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"INLINE_STYLE\"].CODE,\n    ITALIC=draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"INLINE_STYLE\"].ITALIC,\n    STRIKETHROUGH=draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"INLINE_STYLE\"].STRIKETHROUGH,\n    UNDERLINE=draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"INLINE_STYLE\"].UNDERLINE;\nvar INDENT='  ';\nvar BREAK='<br>';\nvar DATA_ATTRIBUTE=/^data-([a-z0-9-]+)$/;\nvar DEFAULT_STYLE_MAP=(_DEFAULT_STYLE_MAP={}, _defineProperty(_DEFAULT_STYLE_MAP, BOLD, {\n  element: 'strong'\n}), _defineProperty(_DEFAULT_STYLE_MAP, CODE, {\n  element: 'code'\n}), _defineProperty(_DEFAULT_STYLE_MAP, ITALIC, {\n  element: 'em'\n}), _defineProperty(_DEFAULT_STYLE_MAP, STRIKETHROUGH, {\n  element: 'del'\n}), _defineProperty(_DEFAULT_STYLE_MAP, UNDERLINE, {\n  element: 'u'\n}), _DEFAULT_STYLE_MAP); // Order: inner-most style to outer-most.\n// Examle: <em><strong>foo</strong></em>\n\nvar DEFAULT_STYLE_ORDER=[BOLD, ITALIC, UNDERLINE, STRIKETHROUGH, CODE]; // Map entity data to element attributes.\n\nvar ENTITY_ATTR_MAP=(_ENTITY_ATTR_MAP={}, _defineProperty(_ENTITY_ATTR_MAP, draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"ENTITY_TYPE\"].LINK, {\n  url: 'href',\n  href: 'href',\n  rel: 'rel',\n  target: 'target',\n  title: 'title',\n  className: 'class'\n}), _defineProperty(_ENTITY_ATTR_MAP, draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"ENTITY_TYPE\"].IMAGE, {\n  src: 'src',\n  height: 'height',\n  width: 'width',\n  alt: 'alt',\n  className: 'class'\n}), _ENTITY_ATTR_MAP); // Map entity data to element attributes.\n\nvar DATA_TO_ATTR=(_DATA_TO_ATTR={}, _defineProperty(_DATA_TO_ATTR, draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"ENTITY_TYPE\"].LINK, function (entityType, entity){\n  var attrMap=ENTITY_ATTR_MAP.hasOwnProperty(entityType) ? ENTITY_ATTR_MAP[entityType]:{};\n  var data=entity.getData();\n  var attrs={};\n\n  for (var _i=0, _Object$keys=Object.keys(data); _i < _Object$keys.length; _i++){\n    var dataKey=_Object$keys[_i];\n    var dataValue=data[dataKey];\n\n    if(attrMap.hasOwnProperty(dataKey)){\n      var attrKey=attrMap[dataKey];\n      attrs[attrKey]=dataValue;\n    }else if(DATA_ATTRIBUTE.test(dataKey)){\n      attrs[dataKey]=dataValue;\n    }\n  }\n\n  return attrs;\n}), _defineProperty(_DATA_TO_ATTR, draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"ENTITY_TYPE\"].IMAGE, function (entityType, entity){\n  var attrMap=ENTITY_ATTR_MAP.hasOwnProperty(entityType) ? ENTITY_ATTR_MAP[entityType]:{};\n  var data=entity.getData();\n  var attrs={};\n\n  for (var _i2=0, _Object$keys2=Object.keys(data); _i2 < _Object$keys2.length; _i2++){\n    var dataKey=_Object$keys2[_i2];\n    var dataValue=data[dataKey];\n\n    if(attrMap.hasOwnProperty(dataKey)){\n      var attrKey=attrMap[dataKey];\n      attrs[attrKey]=dataValue;\n    }else if(DATA_ATTRIBUTE.test(dataKey)){\n      attrs[dataKey]=dataValue;\n    }\n  }\n\n  return attrs;\n}), _DATA_TO_ATTR); // The reason this returns an array is because a single block might get wrapped\n// in two tags.\n\nfunction getTags(blockType, defaultBlockTag){\n  switch (blockType){\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].HEADER_ONE:\n      return ['h1'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].HEADER_TWO:\n      return ['h2'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].HEADER_THREE:\n      return ['h3'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].HEADER_FOUR:\n      return ['h4'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].HEADER_FIVE:\n      return ['h5'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].HEADER_SIX:\n      return ['h6'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].UNORDERED_LIST_ITEM:\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].ORDERED_LIST_ITEM:\n      return ['li'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].BLOCKQUOTE:\n      return ['blockquote'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].CODE:\n      return ['pre', 'code'];\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].ATOMIC:\n      return ['figure'];\n\n    default:\n      if(defaultBlockTag===null){\n        return [];\n      }\n\n      return [defaultBlockTag||'p'];\n  }\n}\n\nfunction getWrapperTag(blockType){\n  switch (blockType){\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].UNORDERED_LIST_ITEM:\n      return 'ul';\n\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].ORDERED_LIST_ITEM:\n      return 'ol';\n\n    default:\n      return null;\n  }\n}\n\nvar MarkupGenerator=\n\nfunction (){\n  // These are related to state.\n  // These are related to user-defined options.\n  function MarkupGenerator(contentState, options){\n    _classCallCheck(this, MarkupGenerator);\n\n    _defineProperty(this, \"blocks\", void 0);\n\n    _defineProperty(this, \"contentState\", void 0);\n\n    _defineProperty(this, \"currentBlock\", void 0);\n\n    _defineProperty(this, \"indentLevel\", void 0);\n\n    _defineProperty(this, \"output\", void 0);\n\n    _defineProperty(this, \"totalBlocks\", void 0);\n\n    _defineProperty(this, \"wrapperTag\", void 0);\n\n    _defineProperty(this, \"options\", void 0);\n\n    _defineProperty(this, \"inlineStyles\", void 0);\n\n    _defineProperty(this, \"inlineStyleFn\", void 0);\n\n    _defineProperty(this, \"styleOrder\", void 0);\n\n    if(options==null){\n      options={};\n    }\n\n    this.contentState=contentState;\n    this.options=options;\n\n    var _combineOrderedStyles=Object(_helpers_combineOrderedStyles__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(options.inlineStyles, [DEFAULT_STYLE_MAP, DEFAULT_STYLE_ORDER]),\n        _combineOrderedStyles2=_slicedToArray(_combineOrderedStyles, 2),\n        inlineStyles=_combineOrderedStyles2[0],\n        styleOrder=_combineOrderedStyles2[1];\n\n    this.inlineStyles=inlineStyles;\n    this.inlineStyleFn=options.inlineStyleFn;\n    this.styleOrder=styleOrder;\n  }\n\n  _createClass(MarkupGenerator, [{\n    key: \"generate\",\n    value: function generate(){\n      this.output=[];\n      this.blocks=this.contentState.getBlocksAsArray();\n      this.totalBlocks=this.blocks.length;\n      this.currentBlock=0;\n      this.indentLevel=0;\n      this.wrapperTag=null;\n\n      while (this.currentBlock < this.totalBlocks){\n        this.processBlock();\n      }\n\n      this.closeWrapperTag();\n      return this.output.join('').trim();\n    }\n  }, {\n    key: \"processBlock\",\n    value: function processBlock(){\n      var _this$options=this.options,\n          blockRenderers=_this$options.blockRenderers,\n          defaultBlockTag=_this$options.defaultBlockTag;\n      var block=this.blocks[this.currentBlock];\n      var blockType=block.getType();\n      var newWrapperTag=getWrapperTag(blockType);\n\n      if(this.wrapperTag!==newWrapperTag){\n        if(this.wrapperTag){\n          this.closeWrapperTag();\n        }\n\n        if(newWrapperTag){\n          this.openWrapperTag(newWrapperTag);\n        }\n      }\n\n      this.indent(); // Allow blocks to be rendered using a custom renderer.\n\n      var customRenderer=blockRenderers!=null&&blockRenderers.hasOwnProperty(blockType) ? blockRenderers[blockType]:null;\n      var customRendererOutput=customRenderer ? customRenderer(block):null; // Renderer can return null, which will cause processing to continue as normal.\n\n      if(customRendererOutput!=null){\n        this.output.push(customRendererOutput);\n        this.output.push('\\n');\n        this.currentBlock +=1;\n        return;\n      }\n\n      this.writeStartTag(block, defaultBlockTag);\n      this.output.push(this.renderBlockContent(block)); // Look ahead and see if we will nest list.\n\n      var nextBlock=this.getNextBlock();\n\n      if(canHaveDepth(blockType)&&nextBlock&&nextBlock.getDepth()===block.getDepth() + 1){\n        this.output.push('\\n'); // This is a litle hacky: temporarily stash our current wrapperTag and\n        // render child list(s).\n\n        var thisWrapperTag=this.wrapperTag;\n        this.wrapperTag=null;\n        this.indentLevel +=1;\n        this.currentBlock +=1;\n        this.processBlocksAtDepth(nextBlock.getDepth());\n        this.wrapperTag=thisWrapperTag;\n        this.indentLevel -=1;\n        this.indent();\n      }else{\n        this.currentBlock +=1;\n      }\n\n      this.writeEndTag(block, defaultBlockTag);\n    }\n  }, {\n    key: \"processBlocksAtDepth\",\n    value: function processBlocksAtDepth(depth){\n      var block=this.blocks[this.currentBlock];\n\n      while (block&&block.getDepth()===depth){\n        this.processBlock();\n        block=this.blocks[this.currentBlock];\n      }\n\n      this.closeWrapperTag();\n    }\n  }, {\n    key: \"getNextBlock\",\n    value: function getNextBlock(){\n      return this.blocks[this.currentBlock + 1];\n    }\n  }, {\n    key: \"writeStartTag\",\n    value: function writeStartTag(block, defaultBlockTag){\n      var tags=getTags(block.getType(), defaultBlockTag);\n      var attrString;\n\n      if(this.options.blockStyleFn){\n        var _ref=this.options.blockStyleFn(block)||{},\n            attributes=_ref.attributes,\n            _style=_ref.style; // Normalize `className` -> `class`, etc.\n\n\n        attributes=Object(_helpers_normalizeAttributes__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(attributes);\n\n        if(_style!=null){\n          var styleAttr=Object(_helpers_styleToCSS__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_style);\n          attributes=attributes==null ? {\n            style: styleAttr\n          }:_objectSpread({}, attributes, {\n            style: styleAttr\n          });\n        }\n\n        attrString=stringifyAttrs(attributes);\n      }else{\n        attrString='';\n      }\n\n      var _iteratorNormalCompletion=true;\n      var _didIteratorError=false;\n      var _iteratorError=undefined;\n\n      try {\n        for (var _iterator=tags[Symbol.iterator](), _step; !(_iteratorNormalCompletion=(_step=_iterator.next()).done); _iteratorNormalCompletion=true){\n          var tag=_step.value;\n          this.output.push(\"<\".concat(tag).concat(attrString, \">\"));\n        }\n      } catch (err){\n        _didIteratorError=true;\n        _iteratorError=err;\n      } finally {\n        try {\n          if(!_iteratorNormalCompletion&&_iterator[\"return\"]!=null){\n            _iterator[\"return\"]();\n          }\n        } finally {\n          if(_didIteratorError){\n            throw _iteratorError;\n          }\n        }\n      }\n    }\n  }, {\n    key: \"writeEndTag\",\n    value: function writeEndTag(block, defaultBlockTag){\n      var tags=getTags(block.getType(), defaultBlockTag);\n\n      if(tags.length===1){\n        this.output.push(\"</\".concat(tags[0], \">\\n\"));\n      }else{\n        var output=[];\n        var _iteratorNormalCompletion2=true;\n        var _didIteratorError2=false;\n        var _iteratorError2=undefined;\n\n        try {\n          for (var _iterator2=tags[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done); _iteratorNormalCompletion2=true){\n            var tag=_step2.value;\n            output.unshift(\"</\".concat(tag, \">\"));\n          }\n        } catch (err){\n          _didIteratorError2=true;\n          _iteratorError2=err;\n        } finally {\n          try {\n            if(!_iteratorNormalCompletion2&&_iterator2[\"return\"]!=null){\n              _iterator2[\"return\"]();\n            }\n          } finally {\n            if(_didIteratorError2){\n              throw _iteratorError2;\n            }\n          }\n        }\n\n        this.output.push(output.join('') + '\\n');\n      }\n    }\n  }, {\n    key: \"openWrapperTag\",\n    value: function openWrapperTag(wrapperTag){\n      this.wrapperTag=wrapperTag;\n      this.indent();\n      this.output.push(\"<\".concat(wrapperTag, \">\\n\"));\n      this.indentLevel +=1;\n    }\n  }, {\n    key: \"closeWrapperTag\",\n    value: function closeWrapperTag(){\n      var wrapperTag=this.wrapperTag;\n\n      if(wrapperTag){\n        this.indentLevel -=1;\n        this.indent();\n        this.output.push(\"</\".concat(wrapperTag, \">\\n\"));\n        this.wrapperTag=null;\n      }\n    }\n  }, {\n    key: \"indent\",\n    value: function indent(){\n      this.output.push(INDENT.repeat(this.indentLevel));\n    }\n  }, {\n    key: \"withCustomInlineStyles\",\n    value: function withCustomInlineStyles(content, styleSet){\n      if(!this.inlineStyleFn){\n        return content;\n      }\n\n      var renderConfig=this.inlineStyleFn(styleSet);\n\n      if(!renderConfig){\n        return content;\n      }\n\n      var _renderConfig$element=renderConfig.element,\n          element=_renderConfig$element===void 0 ? 'span':_renderConfig$element,\n          attributes=renderConfig.attributes,\n          style=renderConfig.style;\n      var attrString=stringifyAttrs(_objectSpread({}, attributes, {\n        style: style&&Object(_helpers_styleToCSS__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(style)\n      }));\n      return \"<\".concat(element).concat(attrString, \">\").concat(content, \"</\").concat(element, \">\");\n    }\n  }, {\n    key: \"renderBlockContent\",\n    value: function renderBlockContent(block){\n      var _this=this;\n\n      var blockType=block.getType();\n      var text=block.getText();\n\n      if(text===''){\n        // Prevent element collapse if completely empty.\n        return BREAK;\n      }\n\n      text=this.preserveWhitespace(text);\n      var charMetaList=block.getCharacterList();\n      var entityPieces=Object(draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"getEntityRanges\"])(text, charMetaList);\n      return entityPieces.map(function (_ref2){\n        var _ref3=_slicedToArray(_ref2, 2),\n            entityKey=_ref3[0],\n            stylePieces=_ref3[1];\n\n        var content=stylePieces.map(function (_ref4){\n          var _ref5=_slicedToArray(_ref4, 2),\n              text=_ref5[0],\n              styleSet=_ref5[1];\n\n          var content=encodeContent(text);\n          var _iteratorNormalCompletion3=true;\n          var _didIteratorError3=false;\n          var _iteratorError3=undefined;\n\n          try {\n            for (var _iterator3=_this.styleOrder[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done); _iteratorNormalCompletion3=true){\n              var _styleName=_step3.value;\n\n              // If our block type is CODE then don't wrap inline code elements.\n              if(_styleName===CODE&&blockType===draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].CODE){\n                continue;\n              }\n\n              if(styleSet.has(_styleName)){\n                var _this$inlineStyles$_s=_this.inlineStyles[_styleName],\n                    element=_this$inlineStyles$_s.element,\n                    attributes=_this$inlineStyles$_s.attributes,\n                    _style2=_this$inlineStyles$_s.style;\n\n                if(element==null){\n                  element='span';\n                } // Normalize `className` -> `class`, etc.\n\n\n                attributes=Object(_helpers_normalizeAttributes__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(attributes);\n\n                if(_style2!=null){\n                  var styleAttr=Object(_helpers_styleToCSS__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_style2);\n                  attributes=attributes==null ? {\n                    style: styleAttr\n                  }:_objectSpread({}, attributes, {\n                    style: styleAttr\n                  });\n                }\n\n                var attrString=stringifyAttrs(attributes);\n                content=\"<\".concat(element).concat(attrString, \">\").concat(content, \"</\").concat(element, \">\");\n              }\n            }\n          } catch (err){\n            _didIteratorError3=true;\n            _iteratorError3=err;\n          } finally {\n            try {\n              if(!_iteratorNormalCompletion3&&_iterator3[\"return\"]!=null){\n                _iterator3[\"return\"]();\n              }\n            } finally {\n              if(_didIteratorError3){\n                throw _iteratorError3;\n              }\n            }\n          }\n\n          return _this.withCustomInlineStyles(content, styleSet);\n        }).join('');\n        var entity=entityKey ? _this.contentState.getEntity(entityKey):null; // Note: The `toUpperCase` below is for compatability with some libraries that use lower-case for image blocks.\n\n        var entityType=entity==null ? null:entity.getType().toUpperCase();\n        var entityStyle;\n\n        if(entity!=null&&_this.options.entityStyleFn&&(entityStyle=_this.options.entityStyleFn(entity))){\n          var _entityStyle=entityStyle,\n              element=_entityStyle.element,\n              attributes=_entityStyle.attributes,\n              _style3=_entityStyle.style;\n\n          if(element==null){\n            element='span';\n          } // Normalize `className` -> `class`, etc.\n\n\n          attributes=Object(_helpers_normalizeAttributes__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(attributes);\n\n          if(_style3!=null){\n            var styleAttr=Object(_helpers_styleToCSS__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_style3);\n            attributes=attributes==null ? {\n              style: styleAttr\n            }:_objectSpread({}, attributes, {\n              style: styleAttr\n            });\n          }\n\n          var attrString=stringifyAttrs(attributes);\n          return \"<\".concat(element).concat(attrString, \">\").concat(content, \"</\").concat(element, \">\");\n        }else if(entityType!=null&&entityType===draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"ENTITY_TYPE\"].LINK){\n          var attrs=DATA_TO_ATTR.hasOwnProperty(entityType) ? DATA_TO_ATTR[entityType](entityType, entity):null;\n\n          var _attrString=stringifyAttrs(attrs);\n\n          return \"<a\".concat(_attrString, \">\").concat(content, \"</a>\");\n        }else if(entityType!=null&&entityType===draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"ENTITY_TYPE\"].IMAGE){\n          var _attrs=DATA_TO_ATTR.hasOwnProperty(entityType) ? DATA_TO_ATTR[entityType](entityType, entity):null;\n\n          var _attrString2=stringifyAttrs(_attrs);\n\n          return \"<img\".concat(_attrString2, \"/>\");\n        }else{\n          return content;\n        }\n      }).join('');\n    }\n  }, {\n    key: \"preserveWhitespace\",\n    value: function preserveWhitespace(text){\n      var length=text.length; // Prevent leading/trailing/consecutive whitespace collapse.\n\n      var newText=new Array(length);\n\n      for (var i=0; i < length; i++){\n        if(text[i]===' '&&(i===0||i===length - 1||text[i - 1]===' ')){\n          newText[i]='\\xA0';\n        }else{\n          newText[i]=text[i];\n        }\n      }\n\n      return newText.join('');\n    }\n  }]);\n\n  return MarkupGenerator;\n}();\n\nfunction stringifyAttrs(attrs){\n  if(attrs==null){\n    return '';\n  }\n\n  var parts=[];\n\n  for (var _i3=0, _Object$keys3=Object.keys(attrs); _i3 < _Object$keys3.length; _i3++){\n    var name=_Object$keys3[_i3];\n    var value=attrs[name];\n\n    if(value!=null){\n      parts.push(\" \".concat(name, \"=\\\"\").concat(encodeAttr(value + ''), \"\\\"\"));\n    }\n  }\n\n  return parts.join('');\n}\n\nfunction canHaveDepth(blockType){\n  switch (blockType){\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].UNORDERED_LIST_ITEM:\n    case draft_js_utils__WEBPACK_IMPORTED_MODULE_3__[\"BLOCK_TYPE\"].ORDERED_LIST_ITEM:\n      return true;\n\n    default:\n      return false;\n  }\n}\n\nfunction encodeContent(text){\n  return text.split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;').split('\\xA0').join('&nbsp;').split('\\n').join(BREAK + '\\n');\n}\n\nfunction encodeAttr(text){\n  return text.split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;').split('\"').join('&quot;');\n}\n\nfunction stateToHTML(content, options){\n  return new MarkupGenerator(content, options).generate();\n}\n\n//# sourceURL=webpack:///./node_modules/draft-js-export-html/esm/stateToHTML.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/createDecorator.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _clsx=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n\nvar _clsx2=_interopRequireDefault(_clsx);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; }\n\n// Get a component's display name\nvar getDisplayName=function getDisplayName(WrappedComponent){\n  var component=WrappedComponent.WrappedComponent||WrappedComponent;\n  return component.displayName||component.name||'Component';\n};\n\nexports.default=function (_ref){\n  var theme=_ref.theme,\n      blockKeyStore=_ref.blockKeyStore;\n  return function (WrappedComponent){\n    var _class, _temp2;\n\n    return _temp2=_class=function (_Component){\n      _inherits(BlockFocusDecorator, _Component);\n\n      function BlockFocusDecorator(){\n        var _ref2;\n\n        var _temp, _this, _ret;\n\n        _classCallCheck(this, BlockFocusDecorator);\n\n        for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n          args[_key]=arguments[_key];\n        }\n\n        return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref2=BlockFocusDecorator.__proto__||Object.getPrototypeOf(BlockFocusDecorator)).call.apply(_ref2, [this].concat(args))), _this), _this.onClick=function (evt){\n          evt.preventDefault();\n          if(!_this.props.blockProps.isFocused){\n            _this.props.blockProps.setFocusToBlock();\n          }\n        }, _temp), _possibleConstructorReturn(_this, _ret);\n      }\n\n      _createClass(BlockFocusDecorator, [{\n        key: 'componentDidMount',\n        value: function componentDidMount(){\n          blockKeyStore.add(this.props.block.getKey());\n        }\n      }, {\n        key: 'componentWillUnmount',\n        value: function componentWillUnmount(){\n          blockKeyStore.remove(this.props.block.getKey());\n        }\n      }, {\n        key: 'render',\n        value: function render(){\n          var _props=this.props,\n              blockProps=_props.blockProps,\n              className=_props.className;\n          var isFocused=blockProps.isFocused;\n\n          var combinedClassName=isFocused ? (0, _clsx2.default)(className, theme.focused):(0, _clsx2.default)(className, theme.unfocused);\n          return _react2.default.createElement(WrappedComponent, _extends({}, this.props, {\n            onClick: this.onClick,\n            className: combinedClassName\n          }));\n        }\n      }]);\n\n      return BlockFocusDecorator;\n    }(_react.Component), _class.displayName='BlockFocus(' + getDisplayName(WrappedComponent) + ')', _class.WrappedComponent=WrappedComponent.WrappedComponent||WrappedComponent, _temp2;\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/createDecorator.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _insertNewLine=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/modifiers/insertNewLine.js\");\n\nvar _insertNewLine2=_interopRequireDefault(_insertNewLine);\n\nvar _setSelection=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/modifiers/setSelection.js\");\n\nvar _setSelection2=_interopRequireDefault(_setSelection);\n\nvar _setSelectionToBlock=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/modifiers/setSelectionToBlock.js\");\n\nvar _setSelectionToBlock2=_interopRequireDefault(_setSelectionToBlock);\n\nvar _createDecorator=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/createDecorator.js\");\n\nvar _createDecorator2=_interopRequireDefault(_createDecorator);\n\nvar _createBlockKeyStore=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/utils/createBlockKeyStore.js\");\n\nvar _createBlockKeyStore2=_interopRequireDefault(_createBlockKeyStore);\n\nvar _blockInSelection=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/utils/blockInSelection.js\");\n\nvar _blockInSelection2=_interopRequireDefault(_blockInSelection);\n\nvar _getBlockMapKeys=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/utils/getBlockMapKeys.js\");\n\nvar _getBlockMapKeys2=_interopRequireDefault(_getBlockMapKeys);\n\nvar _removeBlock=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/modifiers/removeBlock.js\");\n\nvar _removeBlock2=_interopRequireDefault(_removeBlock);\n\nvar _style={\n  \"unfocused\": \"draftJsFocusPlugin__unfocused__1Wvrs\",\n  \"focused\": \"draftJsFocusPlugin__focused__3Mksn\"\n};\n\nvar _style2=_interopRequireDefault(_style);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nvar focusableBlockIsSelected=function focusableBlockIsSelected(editorState, blockKeyStore){\n  var selection=editorState.getSelection();\n  if(selection.getAnchorKey()!==selection.getFocusKey()){\n    return false;\n  }\n  var content=editorState.getCurrentContent();\n  var block=content.getBlockForKey(selection.getAnchorKey());\n  return blockKeyStore.includes(block.getKey());\n};\n\nvar deleteCommands=['backspace', 'backspace-word', 'backspace-to-start-of-line', 'delete', 'delete-word', 'delete-to-end-of-block'];\n\nexports.default=function (){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var blockKeyStore=(0, _createBlockKeyStore2.default)({});\n  var theme=config.theme ? config.theme:_style2.default;\n  var lastSelection=void 0;\n  var lastContentState=void 0;\n\n  return {\n    handleReturn: function handleReturn(event, editorState, _ref){\n      var setEditorState=_ref.setEditorState;\n\n      // if a focusable block is selected then overwrite new line behavior to custom\n      if(focusableBlockIsSelected(editorState, blockKeyStore)){\n        setEditorState((0, _insertNewLine2.default)(editorState));\n        return 'handled';\n      }\n      return 'not-handled';\n    },\n\n    handleKeyCommand: function handleKeyCommand (command, editorState, eventTimeStamp, _ref2){\n      var setEditorState=_ref2.setEditorState;\n\n      if(deleteCommands.includes(command)&&focusableBlockIsSelected(editorState, blockKeyStore)){\n        var key=editorState.getSelection().getStartKey();\n        var newEditorState=(0, _removeBlock2.default)(editorState, key);\n        if(newEditorState!==editorState){\n          setEditorState(newEditorState);\n          return 'handled';\n        }\n      }\n      return 'not-handled';\n    },\n\n    onChange: function onChange(editorState){\n      // in case the content changed there is no need to re-render blockRendererFn\n      // since if a block was added it will be rendered anyway and if it was text\n      // then the change was not a pure selection change\n      var contentState=editorState.getCurrentContent();\n      if(!contentState.equals(lastContentState)){\n        lastContentState=contentState;\n        return editorState;\n      }\n      lastContentState=contentState;\n\n      // if the selection didn't change there is no need to re-render\n      var selection=editorState.getSelection();\n      if(lastSelection&&selection.equals(lastSelection)){\n        lastSelection=editorState.getSelection();\n        return editorState;\n      }\n\n      // Note: Only if the previous or current selection contained a focusableBlock a re-render is needed.\n      var focusableBlockKeys=blockKeyStore.getAll();\n      if(lastSelection){\n        var lastBlockMapKeys=(0, _getBlockMapKeys2.default)(contentState, lastSelection.getStartKey(), lastSelection.getEndKey());\n        if(lastBlockMapKeys.some(function (key){\n          return focusableBlockKeys.includes(key);\n        })){\n          lastSelection=selection;\n          // By forcing the selection the editor will trigger the blockRendererFn which is\n          // necessary for the blockProps containing isFocus to be passed down again.\n          return _draftJs.EditorState.forceSelection(editorState, editorState.getSelection());\n        }\n      }\n\n      var currentBlockMapKeys=(0, _getBlockMapKeys2.default)(contentState, selection.getStartKey(), selection.getEndKey());\n      if(currentBlockMapKeys.some(function (key){\n        return focusableBlockKeys.includes(key);\n      })){\n        lastSelection=selection;\n        // By forcing the selection the editor will trigger the blockRendererFn which is\n        // necessary for the blockProps containing isFocus to be passed down again.\n        return _draftJs.EditorState.forceSelection(editorState, editorState.getSelection());\n      }\n\n      return editorState;\n    },\n\n    // TODO edgecase: if one block is selected and the user wants to expand the selection using the shift key\n    keyBindingFn: function keyBindingFn(evt, _ref3){\n      var getEditorState=_ref3.getEditorState,\n          setEditorState=_ref3.setEditorState;\n\n      var editorState=getEditorState();\n      // TODO match by entitiy instead of block type\n      if(focusableBlockIsSelected(editorState, blockKeyStore)){\n        // arrow left\n        if(evt.keyCode===37){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'up', evt);\n        }\n        // arrow right\n        if(evt.keyCode===39){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'down', evt);\n        }\n        // arrow up\n        if(evt.keyCode===38){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'up', event);\n        }\n        // arrow down\n        if(evt.keyCode===40){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'down', event);\n          return;\n        }\n      }\n\n      // Don't manually overwrite in case the shift key is used to avoid breaking\n      // native behaviour that works anyway.\n      if(evt.shiftKey){\n        return;\n      }\n\n      // arrow left\n      if(evt.keyCode===37){\n        // Covering the case to select the before block\n        var selection=editorState.getSelection();\n        var selectionKey=selection.getAnchorKey();\n        var beforeBlock=editorState.getCurrentContent().getBlockBefore(selectionKey);\n        // only if the selection caret is a the left most position\n        if(beforeBlock&&selection.getAnchorOffset()===0&&blockKeyStore.includes(beforeBlock.getKey())){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'up', evt);\n        }\n      }\n\n      // arrow right\n      if(evt.keyCode===39){\n        // Covering the case to select the after block\n        var _selection=editorState.getSelection();\n        var _selectionKey=_selection.getFocusKey();\n        var currentBlock=editorState.getCurrentContent().getBlockForKey(_selectionKey);\n        var afterBlock=editorState.getCurrentContent().getBlockAfter(_selectionKey);\n        var notAtomicAndLastPost=currentBlock.getType()!=='atomic'&&currentBlock.getLength()===_selection.getFocusOffset();\n        if(afterBlock&&notAtomicAndLastPost&&blockKeyStore.includes(afterBlock.getKey())){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'down', evt);\n        }\n      }\n\n      // arrow up\n      if(evt.keyCode===38){\n        // Covering the case to select the before block with arrow up\n        var _selectionKey2=editorState.getSelection().getAnchorKey();\n        var _beforeBlock=editorState.getCurrentContent().getBlockBefore(_selectionKey2);\n        if(_beforeBlock&&blockKeyStore.includes(_beforeBlock.getKey())){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'up', event);\n        }\n      }\n\n      // arrow down\n      if(evt.keyCode===40){\n        // Covering the case to select the after block with arrow down\n        var _selectionKey3=editorState.getSelection().getAnchorKey();\n        var _afterBlock=editorState.getCurrentContent().getBlockAfter(_selectionKey3);\n        if(_afterBlock&&blockKeyStore.includes(_afterBlock.getKey())){\n          (0, _setSelection2.default)(getEditorState, setEditorState, 'down', event);\n        }\n      }\n    },\n\n\n    // Wrap all block-types in block-focus decorator\n    blockRendererFn: function blockRendererFn(contentBlock, _ref4){\n      var getEditorState=_ref4.getEditorState,\n          setEditorState=_ref4.setEditorState;\n\n      // This makes it mandatory to have atomic blocks for focus but also improves performance\n      // since all the selection checks are not necessary.\n      // In case there is a use-case where focus makes sense for none atomic blocks we can add it\n      // in the future.\n      if(contentBlock.getType()!=='atomic'){\n        return undefined;\n      }\n\n      var editorState=getEditorState();\n      var isFocused=(0, _blockInSelection2.default)(editorState, contentBlock.getKey());\n\n      return {\n        props: {\n          isFocused: isFocused,\n          isCollapsedSelection: editorState.getSelection().isCollapsed(),\n          setFocusToBlock: function setFocusToBlock(){\n            (0, _setSelectionToBlock2.default)(getEditorState, setEditorState, contentBlock);\n          }\n        }\n      };\n    },\n\n    decorator: (0, _createDecorator2.default)({ theme: theme, blockKeyStore: blockKeyStore })\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/index.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/modifiers/insertNewLine.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default=insertNewLine;\n\nvar _immutable=__webpack_require__( \"./node_modules/draft-js-focus-plugin/node_modules/immutable/dist/immutable.js\");\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar insertBlockAfterSelection=function insertBlockAfterSelection(contentState, selectionState, newBlock){\n  var targetKey=selectionState.getStartKey();\n  var array=[];\n  contentState.getBlockMap().forEach(function (block, blockKey){\n    array.push(block);\n    if(blockKey!==targetKey) return;\n    array.push(newBlock);\n  });\n  return contentState.merge({\n    blockMap: _draftJs.BlockMapBuilder.createFromArray(array),\n    selectionBefore: selectionState,\n    selectionAfter: selectionState.merge({\n      anchorKey: newBlock.getKey(),\n      anchorOffset: newBlock.getLength(),\n      focusKey: newBlock.getKey(),\n      focusOffset: newBlock.getLength(),\n      isBackward: false\n    })\n  });\n};\n\nfunction insertNewLine(editorState){\n  var contentState=editorState.getCurrentContent();\n  var selectionState=editorState.getSelection();\n  var newLineBlock=new _draftJs.ContentBlock({\n    key: (0, _draftJs.genKey)(),\n    type: 'unstyled',\n    text: '',\n    characterList: (0, _immutable.List)()\n  });\n  var withNewLine=insertBlockAfterSelection(contentState, selectionState, newLineBlock);\n  var newContent=withNewLine.merge({\n    selectionAfter: withNewLine.getSelectionAfter().set('hasFocus', true)\n  });\n  return _draftJs.EditorState.push(editorState, newContent, 'insert-fragment');\n}\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/modifiers/insertNewLine.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/modifiers/removeBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nexports.default=function (editorState, blockKey){\n  var content=editorState.getCurrentContent();\n\n  var beforeKey=content.getKeyBefore(blockKey);\n  var beforeBlock=content.getBlockForKey(beforeKey);\n\n  // Note: if the focused block is the first block then it is reduced to an\n  // unstyled block with no character\n  if(beforeBlock===undefined){\n    var _targetRange=new _draftJs.SelectionState({\n      anchorKey: blockKey,\n      anchorOffset: 0,\n      focusKey: blockKey,\n      focusOffset: 1\n    });\n    // change the blocktype and remove the characterList entry with the sticker\n    content=_draftJs.Modifier.removeRange(content, _targetRange, 'backward');\n    content=_draftJs.Modifier.setBlockType(content, _targetRange, 'unstyled');\n    var _newState=_draftJs.EditorState.push(editorState, content, 'remove-block');\n\n    // force to new selection\n    var _newSelection=new _draftJs.SelectionState({\n      anchorKey: blockKey,\n      anchorOffset: 0,\n      focusKey: blockKey,\n      focusOffset: 0\n    });\n    return _draftJs.EditorState.forceSelection(_newState, _newSelection);\n  }\n\n  var targetRange=new _draftJs.SelectionState({\n    anchorKey: beforeKey,\n    anchorOffset: beforeBlock.getLength(),\n    focusKey: blockKey,\n    focusOffset: 1\n  });\n\n  content=_draftJs.Modifier.removeRange(content, targetRange, 'backward');\n  var newState=_draftJs.EditorState.push(editorState, content, 'remove-block');\n\n  // force to new selection\n  var newSelection=new _draftJs.SelectionState({\n    anchorKey: beforeKey,\n    anchorOffset: beforeBlock.getLength(),\n    focusKey: beforeKey,\n    focusOffset: beforeBlock.getLength()\n  });\n  return _draftJs.EditorState.forceSelection(newState, newSelection);\n};\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/modifiers/removeBlock.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/modifiers/setSelection.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar _DraftOffsetKey2=_interopRequireDefault(_DraftOffsetKey);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\n// Set selection of editor to next/previous block\nexports.default=function (getEditorState, setEditorState, mode, event){\n  var editorState=getEditorState();\n  var selectionKey=editorState.getSelection().getAnchorKey();\n  var newActiveBlock=mode==='up' ? editorState.getCurrentContent().getBlockBefore(selectionKey):editorState.getCurrentContent().getBlockAfter(selectionKey);\n\n  if(newActiveBlock&&newActiveBlock.get('key')===selectionKey){\n    return;\n  }\n\n  if(newActiveBlock){\n    // TODO verify that always a key-0-0 exists\n    var offsetKey=_DraftOffsetKey2.default.encode(newActiveBlock.getKey(), 0, 0);\n    var node=document.querySelectorAll('[data-offset-key=\"' + offsetKey + '\"]')[0];\n    // set the native selection to the node so the caret is not in the text and\n    // the selectionState matches the native selection\n    var selection=window.getSelection();\n    var range=document.createRange();\n    range.setStart(node, 0);\n    range.setEnd(node, 0);\n    selection.removeAllRanges();\n    selection.addRange(range);\n\n    var offset=mode==='up' ? newActiveBlock.getLength():0;\n    event.preventDefault();\n    setEditorState(_draftJs.EditorState.forceSelection(editorState, new _draftJs.SelectionState({\n      anchorKey: newActiveBlock.getKey(),\n      anchorOffset: offset,\n      focusKey: newActiveBlock.getKey(),\n      focusOffset: offset,\n      isBackward: false\n    })));\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/modifiers/setSelection.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/modifiers/setSelectionToBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar _DraftOffsetKey2=_interopRequireDefault(_DraftOffsetKey);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\n// Set selection of editor to next/previous block\nexports.default=function (getEditorState, setEditorState, newActiveBlock){\n  var editorState=getEditorState();\n\n  // TODO verify that always a key-0-0 exists\n  var offsetKey=_DraftOffsetKey2.default.encode(newActiveBlock.getKey(), 0, 0);\n  var node=document.querySelectorAll('[data-offset-key=\"' + offsetKey + '\"]')[0];\n  // set the native selection to the node so the caret is not in the text and\n  // the selectionState matches the native selection\n  var selection=window.getSelection();\n  var range=document.createRange();\n  range.setStart(node, 0);\n  range.setEnd(node, 0);\n  selection.removeAllRanges();\n  selection.addRange(range);\n\n  setEditorState(_draftJs.EditorState.forceSelection(editorState, new _draftJs.SelectionState({\n    anchorKey: newActiveBlock.getKey(),\n    anchorOffset: 0,\n    focusKey: newActiveBlock.getKey(),\n    focusOffset: 0,\n    isBackward: false\n  })));\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/modifiers/setSelectionToBlock.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/utils/blockInSelection.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _getSelectedBlocksMapKeys=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/utils/getSelectedBlocksMapKeys.js\");\n\nvar _getSelectedBlocksMapKeys2=_interopRequireDefault(_getSelectedBlocksMapKeys);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (editorState, blockKey){\n  var selectedBlocksKeys=(0, _getSelectedBlocksMapKeys2.default)(editorState);\n  return selectedBlocksKeys.includes(blockKey);\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/utils/blockInSelection.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/utils/createBlockKeyStore.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _immutable=__webpack_require__( \"./node_modules/draft-js-focus-plugin/node_modules/immutable/dist/immutable.js\");\n\nvar createBlockKeyStore=function createBlockKeyStore(){\n  var keys=(0, _immutable.List)();\n\n  var add=function add(key){\n    keys=keys.push(key);\n    return keys;\n  };\n\n  var remove=function remove(key){\n    keys=keys.filter(function (item){\n      return item!==key;\n    });\n    return keys;\n  };\n\n  return {\n    add: add,\n    remove: remove,\n    includes: function includes(key){\n      return keys.includes(key);\n    },\n    getAll: function getAll(){\n      return keys;\n    }\n  };\n};\n\nexports.default=createBlockKeyStore;\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/utils/createBlockKeyStore.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/utils/getBlockMapKeys.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nexports.default=function (contentState, startKey, endKey){\n  var blockMapKeys=contentState.getBlockMap().keySeq();\n  return blockMapKeys.skipUntil(function (key){\n    return key===startKey;\n  }).takeUntil(function (key){\n    return key===endKey;\n  }).concat([endKey]);\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/utils/getBlockMapKeys.js?");
}),
"./node_modules/draft-js-focus-plugin/lib/utils/getSelectedBlocksMapKeys.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _getBlockMapKeys=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/utils/getBlockMapKeys.js\");\n\nvar _getBlockMapKeys2=_interopRequireDefault(_getBlockMapKeys);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (editorState){\n  var selectionState=editorState.getSelection();\n  var contentState=editorState.getCurrentContent();\n  return (0, _getBlockMapKeys2.default)(contentState, selectionState.getStartKey(), selectionState.getEndKey());\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/lib/utils/getSelectedBlocksMapKeys.js?");
}),
"./node_modules/draft-js-focus-plugin/node_modules/immutable/dist/immutable.js":
(function(module, exports, __webpack_require__){
eval("\n\n(function (global, factory){\n   true ? module.exports=factory() :\n  undefined;\n}(this, function (){ 'use strict';var SLICE$0=Array.prototype.slice;\n\n  function createClass(ctor, superClass){\n    if(superClass){\n      ctor.prototype=Object.create(superClass.prototype);\n    }\n    ctor.prototype.constructor=ctor;\n  }\n\n  function Iterable(value){\n      return isIterable(value) ? value:Seq(value);\n    }\n\n\n  createClass(KeyedIterable, Iterable);\n    function KeyedIterable(value){\n      return isKeyed(value) ? value:KeyedSeq(value);\n    }\n\n\n  createClass(IndexedIterable, Iterable);\n    function IndexedIterable(value){\n      return isIndexed(value) ? value:IndexedSeq(value);\n    }\n\n\n  createClass(SetIterable, Iterable);\n    function SetIterable(value){\n      return isIterable(value)&&!isAssociative(value) ? value:SetSeq(value);\n    }\n\n\n\n  function isIterable(maybeIterable){\n    return !!(maybeIterable&&maybeIterable[IS_ITERABLE_SENTINEL]);\n  }\n\n  function isKeyed(maybeKeyed){\n    return !!(maybeKeyed&&maybeKeyed[IS_KEYED_SENTINEL]);\n  }\n\n  function isIndexed(maybeIndexed){\n    return !!(maybeIndexed&&maybeIndexed[IS_INDEXED_SENTINEL]);\n  }\n\n  function isAssociative(maybeAssociative){\n    return isKeyed(maybeAssociative)||isIndexed(maybeAssociative);\n  }\n\n  function isOrdered(maybeOrdered){\n    return !!(maybeOrdered&&maybeOrdered[IS_ORDERED_SENTINEL]);\n  }\n\n  Iterable.isIterable=isIterable;\n  Iterable.isKeyed=isKeyed;\n  Iterable.isIndexed=isIndexed;\n  Iterable.isAssociative=isAssociative;\n  Iterable.isOrdered=isOrdered;\n\n  Iterable.Keyed=KeyedIterable;\n  Iterable.Indexed=IndexedIterable;\n  Iterable.Set=SetIterable;\n\n\n  var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  // Used for setting prototype methods that IE8 chokes on.\n  var DELETE='delete';\n\n  // Constants describing the size of trie nodes.\n  var SHIFT=5; // Resulted in best performance after ______?\n  var SIZE=1 << SHIFT;\n  var MASK=SIZE - 1;\n\n  // A consistent shared value representing \"not set\" which equals nothing other\n  // than itself, and nothing that could be provided externally.\n  var NOT_SET={};\n\n  // Boolean references, Rough equivalent of `bool &`.\n  var CHANGE_LENGTH={ value: false };\n  var DID_ALTER={ value: false };\n\n  function MakeRef(ref){\n    ref.value=false;\n    return ref;\n  }\n\n  function SetRef(ref){\n    ref&&(ref.value=true);\n  }\n\n  // A function which returns a value representing an \"owner\" for transient writes\n  // to tries. The return value will only ever equal itself, and will not equal\n  // the return of any subsequent call of this function.\n  function OwnerID(){}\n\n  // http://jsperf.com/copy-array-inline\n  function arrCopy(arr, offset){\n    offset=offset||0;\n    var len=Math.max(0, arr.length - offset);\n    var newArr=new Array(len);\n    for (var ii=0; ii < len; ii++){\n      newArr[ii]=arr[ii + offset];\n    }\n    return newArr;\n  }\n\n  function ensureSize(iter){\n    if(iter.size===undefined){\n      iter.size=iter.__iterate(returnTrue);\n    }\n    return iter.size;\n  }\n\n  function wrapIndex(iter, index){\n    // This implements \"is array index\" which the ECMAString spec defines as:\n    //\n    //     A String property name P is an array index if and only if\n    //     ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal\n    //     to 2^32−1.\n    //\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects\n    if(typeof index!=='number'){\n      var uint32Index=index >>> 0; // N >>> 0 is shorthand for ToUint32\n      if('' + uint32Index!==index||uint32Index===4294967295){\n        return NaN;\n      }\n      index=uint32Index;\n    }\n    return index < 0 ? ensureSize(iter) + index:index;\n  }\n\n  function returnTrue(){\n    return true;\n  }\n\n  function wholeSlice(begin, end, size){\n    return (begin===0||(size!==undefined&&begin <=-size))&&\n      (end===undefined||(size!==undefined&&end >=size));\n  }\n\n  function resolveBegin(begin, size){\n    return resolveIndex(begin, size, 0);\n  }\n\n  function resolveEnd(end, size){\n    return resolveIndex(end, size, size);\n  }\n\n  function resolveIndex(index, size, defaultIndex){\n    return index===undefined ?\n      defaultIndex :\n      index < 0 ?\n        Math.max(0, size + index) :\n        size===undefined ?\n          index :\n          Math.min(size, index);\n  }\n\n  \n\n  var ITERATE_KEYS=0;\n  var ITERATE_VALUES=1;\n  var ITERATE_ENTRIES=2;\n\n  var REAL_ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL='@@iterator';\n\n  var ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL;\n\n\n  function Iterator(next){\n      this.next=next;\n    }\n\n    Iterator.prototype.toString=function(){\n      return '[Iterator]';\n    };\n\n\n  Iterator.KEYS=ITERATE_KEYS;\n  Iterator.VALUES=ITERATE_VALUES;\n  Iterator.ENTRIES=ITERATE_ENTRIES;\n\n  Iterator.prototype.inspect=\n  Iterator.prototype.toSource=function (){ return this.toString(); }\n  Iterator.prototype[ITERATOR_SYMBOL]=function (){\n    return this;\n  };\n\n\n  function iteratorValue(type, k, v, iteratorResult){\n    var value=type===0 ? k:type===1 ? v:[k, v];\n    iteratorResult ? (iteratorResult.value=value):(iteratorResult={\n      value: value, done: false\n    });\n    return iteratorResult;\n  }\n\n  function iteratorDone(){\n    return { value: undefined, done: true };\n  }\n\n  function hasIterator(maybeIterable){\n    return !!getIteratorFn(maybeIterable);\n  }\n\n  function isIterator(maybeIterator){\n    return maybeIterator&&typeof maybeIterator.next==='function';\n  }\n\n  function getIterator(iterable){\n    var iteratorFn=getIteratorFn(iterable);\n    return iteratorFn&&iteratorFn.call(iterable);\n  }\n\n  function getIteratorFn(iterable){\n    var iteratorFn=iterable&&(\n      (REAL_ITERATOR_SYMBOL&&iterable[REAL_ITERATOR_SYMBOL])||\n      iterable[FAUX_ITERATOR_SYMBOL]\n);\n    if(typeof iteratorFn==='function'){\n      return iteratorFn;\n    }\n  }\n\n  function isArrayLike(value){\n    return value&&typeof value.length==='number';\n  }\n\n  createClass(Seq, Iterable);\n    function Seq(value){\n      return value===null||value===undefined ? emptySequence() :\n        isIterable(value) ? value.toSeq():seqFromValue(value);\n    }\n\n    Seq.of=function(){\n      return Seq(arguments);\n    };\n\n    Seq.prototype.toSeq=function(){\n      return this;\n    };\n\n    Seq.prototype.toString=function(){\n      return this.__toString('Seq {', '}');\n    };\n\n    Seq.prototype.cacheResult=function(){\n      if(!this._cache&&this.__iterateUncached){\n        this._cache=this.entrySeq().toArray();\n        this.size=this._cache.length;\n      }\n      return this;\n    };\n\n    // abstract __iterateUncached(fn, reverse)\n\n    Seq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, true);\n    };\n\n    // abstract __iteratorUncached(type, reverse)\n\n    Seq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, true);\n    };\n\n\n\n  createClass(KeyedSeq, Seq);\n    function KeyedSeq(value){\n      return value===null||value===undefined ?\n        emptySequence().toKeyedSeq() :\n        isIterable(value) ?\n          (isKeyed(value) ? value.toSeq():value.fromEntrySeq()) :\n          keyedSeqFromValue(value);\n    }\n\n    KeyedSeq.prototype.toKeyedSeq=function(){\n      return this;\n    };\n\n\n\n  createClass(IndexedSeq, Seq);\n    function IndexedSeq(value){\n      return value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value.toIndexedSeq();\n    }\n\n    IndexedSeq.of=function(){\n      return IndexedSeq(arguments);\n    };\n\n    IndexedSeq.prototype.toIndexedSeq=function(){\n      return this;\n    };\n\n    IndexedSeq.prototype.toString=function(){\n      return this.__toString('Seq [', ']');\n    };\n\n    IndexedSeq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, false);\n    };\n\n    IndexedSeq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, false);\n    };\n\n\n\n  createClass(SetSeq, Seq);\n    function SetSeq(value){\n      return (\n        value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value\n).toSetSeq();\n    }\n\n    SetSeq.of=function(){\n      return SetSeq(arguments);\n    };\n\n    SetSeq.prototype.toSetSeq=function(){\n      return this;\n    };\n\n\n\n  Seq.isSeq=isSeq;\n  Seq.Keyed=KeyedSeq;\n  Seq.Set=SetSeq;\n  Seq.Indexed=IndexedSeq;\n\n  var IS_SEQ_SENTINEL='@@__IMMUTABLE_SEQ__@@';\n\n  Seq.prototype[IS_SEQ_SENTINEL]=true;\n\n\n\n  createClass(ArraySeq, IndexedSeq);\n    function ArraySeq(array){\n      this._array=array;\n      this.size=array.length;\n    }\n\n    ArraySeq.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._array[wrapIndex(this, index)]:notSetValue;\n    };\n\n    ArraySeq.prototype.__iterate=function(fn, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(array[reverse ? maxIndex - ii:ii], ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ArraySeq.prototype.__iterator=function(type, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      var ii=0;\n      return new Iterator(function() \n        {return ii > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, ii, array[reverse ? maxIndex - ii++:ii++])}\n);\n    };\n\n\n\n  createClass(ObjectSeq, KeyedSeq);\n    function ObjectSeq(object){\n      var keys=Object.keys(object);\n      this._object=object;\n      this._keys=keys;\n      this.size=keys.length;\n    }\n\n    ObjectSeq.prototype.get=function(key, notSetValue){\n      if(notSetValue!==undefined&&!this.has(key)){\n        return notSetValue;\n      }\n      return this._object[key];\n    };\n\n    ObjectSeq.prototype.has=function(key){\n      return this._object.hasOwnProperty(key);\n    };\n\n    ObjectSeq.prototype.__iterate=function(fn, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        if(fn(object[key], key, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ObjectSeq.prototype.__iterator=function(type, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, key, object[key]);\n      });\n    };\n\n  ObjectSeq.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(IterableSeq, IndexedSeq);\n    function IterableSeq(iterable){\n      this._iterable=iterable;\n      this.size=iterable.length||iterable.size;\n    }\n\n    IterableSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      var iterations=0;\n      if(isIterator(iterator)){\n        var step;\n        while (!(step=iterator.next()).done){\n          if(fn(step.value, iterations++, this)===false){\n            break;\n          }\n        }\n      }\n      return iterations;\n    };\n\n    IterableSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      if(!isIterator(iterator)){\n        return new Iterator(iteratorDone);\n      }\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step:iteratorValue(type, iterations++, step.value);\n      });\n    };\n\n\n\n  createClass(IteratorSeq, IndexedSeq);\n    function IteratorSeq(iterator){\n      this._iterator=iterator;\n      this._iteratorCache=[];\n    }\n\n    IteratorSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      while (iterations < cache.length){\n        if(fn(cache[iterations], iterations++, this)===false){\n          return iterations;\n        }\n      }\n      var step;\n      while (!(step=iterator.next()).done){\n        var val=step.value;\n        cache[iterations]=val;\n        if(fn(val, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n\n    IteratorSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      return new Iterator(function(){\n        if(iterations >=cache.length){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          cache[iterations]=step.value;\n        }\n        return iteratorValue(type, iterations, cache[iterations++]);\n      });\n    };\n\n\n\n\n  // # pragma Helper functions\n\n  function isSeq(maybeSeq){\n    return !!(maybeSeq&&maybeSeq[IS_SEQ_SENTINEL]);\n  }\n\n  var EMPTY_SEQ;\n\n  function emptySequence(){\n    return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]));\n  }\n\n  function keyedSeqFromValue(value){\n    var seq=\n      Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :\n      isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :\n      hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :\n      typeof value==='object' ? new ObjectSeq(value) :\n      undefined;\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of [k, v] entries, '+\n        'or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function indexedSeqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value);\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values: ' + value\n);\n    }\n    return seq;\n  }\n\n  function seqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value)||\n      (typeof value==='object'&&new ObjectSeq(value));\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values, or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function maybeIndexedSeqFromValue(value){\n    return (\n      isArrayLike(value) ? new ArraySeq(value) :\n      isIterator(value) ? new IteratorSeq(value) :\n      hasIterator(value) ? new IterableSeq(value) :\n      undefined\n);\n  }\n\n  function seqIterate(seq, fn, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        if(fn(entry[1], useKeys ? entry[0]:ii, seq)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    }\n    return seq.__iterateUncached(fn, reverse);\n  }\n\n  function seqIterator(seq, type, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, useKeys ? entry[0]:ii - 1, entry[1]);\n      });\n    }\n    return seq.__iteratorUncached(type, reverse);\n  }\n\n  function fromJS(json, converter){\n    return converter ?\n      fromJSWith(converter, json, '', {'': json}) :\n      fromJSDefault(json);\n  }\n\n  function fromJSWith(converter, json, key, parentJSON){\n    if(Array.isArray(json)){\n      return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    if(isPlainObj(json)){\n      return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    return json;\n  }\n\n  function fromJSDefault(json){\n    if(Array.isArray(json)){\n      return IndexedSeq(json).map(fromJSDefault).toList();\n    }\n    if(isPlainObj(json)){\n      return KeyedSeq(json).map(fromJSDefault).toMap();\n    }\n    return json;\n  }\n\n  function isPlainObj(value){\n    return value&&(value.constructor===Object||value.constructor===undefined);\n  }\n\n  \n  function is(valueA, valueB){\n    if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n      return true;\n    }\n    if(!valueA||!valueB){\n      return false;\n    }\n    if(typeof valueA.valueOf==='function'&&\n        typeof valueB.valueOf==='function'){\n      valueA=valueA.valueOf();\n      valueB=valueB.valueOf();\n      if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n        return true;\n      }\n      if(!valueA||!valueB){\n        return false;\n      }\n    }\n    if(typeof valueA.equals==='function'&&\n        typeof valueB.equals==='function'&&\n        valueA.equals(valueB)){\n      return true;\n    }\n    return false;\n  }\n\n  function deepEqual(a, b){\n    if(a===b){\n      return true;\n    }\n\n    if(\n      !isIterable(b)||\n      a.size!==undefined&&b.size!==undefined&&a.size!==b.size||\n      a.__hash!==undefined&&b.__hash!==undefined&&a.__hash!==b.__hash||\n      isKeyed(a)!==isKeyed(b)||\n      isIndexed(a)!==isIndexed(b)||\n      isOrdered(a)!==isOrdered(b)\n){\n      return false;\n    }\n\n    if(a.size===0&&b.size===0){\n      return true;\n    }\n\n    var notAssociative = !isAssociative(a);\n\n    if(isOrdered(a)){\n      var entries=a.entries();\n      return b.every(function(v, k){\n        var entry=entries.next().value;\n        return entry&&is(entry[1], v)&&(notAssociative||is(entry[0], k));\n      })&&entries.next().done;\n    }\n\n    var flipped=false;\n\n    if(a.size===undefined){\n      if(b.size===undefined){\n        if(typeof a.cacheResult==='function'){\n          a.cacheResult();\n        }\n      }else{\n        flipped=true;\n        var _=a;\n        a=b;\n        b=_;\n      }\n    }\n\n    var allEqual=true;\n    var bSize=b.__iterate(function(v, k){\n      if(notAssociative ? !a.has(v) :\n          flipped ? !is(v, a.get(k, NOT_SET)):!is(a.get(k, NOT_SET), v)){\n        allEqual=false;\n        return false;\n      }\n    });\n\n    return allEqual&&a.size===bSize;\n  }\n\n  createClass(Repeat, IndexedSeq);\n\n    function Repeat(value, times){\n      if(!(this instanceof Repeat)){\n        return new Repeat(value, times);\n      }\n      this._value=value;\n      this.size=times===undefined ? Infinity:Math.max(0, times);\n      if(this.size===0){\n        if(EMPTY_REPEAT){\n          return EMPTY_REPEAT;\n        }\n        EMPTY_REPEAT=this;\n      }\n    }\n\n    Repeat.prototype.toString=function(){\n      if(this.size===0){\n        return 'Repeat []';\n      }\n      return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';\n    };\n\n    Repeat.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._value:notSetValue;\n    };\n\n    Repeat.prototype.includes=function(searchValue){\n      return is(this._value, searchValue);\n    };\n\n    Repeat.prototype.slice=function(begin, end){\n      var size=this.size;\n      return wholeSlice(begin, end, size) ? this :\n        new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));\n    };\n\n    Repeat.prototype.reverse=function(){\n      return this;\n    };\n\n    Repeat.prototype.indexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return 0;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.lastIndexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return this.size;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.__iterate=function(fn, reverse){\n      for (var ii=0; ii < this.size; ii++){\n        if(fn(this._value, ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    Repeat.prototype.__iterator=function(type, reverse){var this$0=this;\n      var ii=0;\n      return new Iterator(function() \n        {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value):iteratorDone()}\n);\n    };\n\n    Repeat.prototype.equals=function(other){\n      return other instanceof Repeat ?\n        is(this._value, other._value) :\n        deepEqual(other);\n    };\n\n\n  var EMPTY_REPEAT;\n\n  function invariant(condition, error){\n    if(!condition) throw new Error(error);\n  }\n\n  createClass(Range, IndexedSeq);\n\n    function Range(start, end, step){\n      if(!(this instanceof Range)){\n        return new Range(start, end, step);\n      }\n      invariant(step!==0, 'Cannot step a Range by 0');\n      start=start||0;\n      if(end===undefined){\n        end=Infinity;\n      }\n      step=step===undefined ? 1:Math.abs(step);\n      if(end < start){\n        step=-step;\n      }\n      this._start=start;\n      this._end=end;\n      this._step=step;\n      this.size=Math.max(0, Math.ceil((end - start) / step - 1) + 1);\n      if(this.size===0){\n        if(EMPTY_RANGE){\n          return EMPTY_RANGE;\n        }\n        EMPTY_RANGE=this;\n      }\n    }\n\n    Range.prototype.toString=function(){\n      if(this.size===0){\n        return 'Range []';\n      }\n      return 'Range [ ' +\n        this._start + '...' + this._end +\n        (this._step > 1 ? ' by ' + this._step:'') +\n      ' ]';\n    };\n\n    Range.prototype.get=function(index, notSetValue){\n      return this.has(index) ?\n        this._start + wrapIndex(this, index) * this._step :\n        notSetValue;\n    };\n\n    Range.prototype.includes=function(searchValue){\n      var possibleIndex=(searchValue - this._start) / this._step;\n      return possibleIndex >=0&&\n        possibleIndex < this.size&&\n        possibleIndex===Math.floor(possibleIndex);\n    };\n\n    Range.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      begin=resolveBegin(begin, this.size);\n      end=resolveEnd(end, this.size);\n      if(end <=begin){\n        return new Range(0, 0);\n      }\n      return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);\n    };\n\n    Range.prototype.indexOf=function(searchValue){\n      var offsetValue=searchValue - this._start;\n      if(offsetValue % this._step===0){\n        var index=offsetValue / this._step;\n        if(index >=0&&index < this.size){\n          return index\n        }\n      }\n      return -1;\n    };\n\n    Range.prototype.lastIndexOf=function(searchValue){\n      return this.indexOf(searchValue);\n    };\n\n    Range.prototype.__iterate=function(fn, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(value, ii, this)===false){\n          return ii + 1;\n        }\n        value +=reverse ? -step:step;\n      }\n      return ii;\n    };\n\n    Range.prototype.__iterator=function(type, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      var ii=0;\n      return new Iterator(function(){\n        var v=value;\n        value +=reverse ? -step:step;\n        return ii > maxIndex ? iteratorDone():iteratorValue(type, ii++, v);\n      });\n    };\n\n    Range.prototype.equals=function(other){\n      return other instanceof Range ?\n        this._start===other._start&&\n        this._end===other._end&&\n        this._step===other._step :\n        deepEqual(this, other);\n    };\n\n\n  var EMPTY_RANGE;\n\n  createClass(Collection, Iterable);\n    function Collection(){\n      throw TypeError('Abstract');\n    }\n\n\n  createClass(KeyedCollection, Collection);function KeyedCollection(){}\n\n  createClass(IndexedCollection, Collection);function IndexedCollection(){}\n\n  createClass(SetCollection, Collection);function SetCollection(){}\n\n\n  Collection.Keyed=KeyedCollection;\n  Collection.Indexed=IndexedCollection;\n  Collection.Set=SetCollection;\n\n  var imul=\n    typeof Math.imul==='function'&&Math.imul(0xffffffff, 2)===-2 ?\n    Math.imul :\n    function imul(a, b){\n      a=a | 0; // int\n      b=b | 0; // int\n      var c=a & 0xffff;\n      var d=b & 0xffff;\n      // Shift by 0 fixes the sign on the high part.\n      return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int\n    };\n\n  // v8 has an optimization for storing 31-bit signed numbers.\n  // Values which have either 00 or 11 as the high order bits qualify.\n  // This function drops the highest order bit in a signed number, maintaining\n  // the sign bit.\n  function smi(i32){\n    return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);\n  }\n\n  function hash(o){\n    if(o===false||o===null||o===undefined){\n      return 0;\n    }\n    if(typeof o.valueOf==='function'){\n      o=o.valueOf();\n      if(o===false||o===null||o===undefined){\n        return 0;\n      }\n    }\n    if(o===true){\n      return 1;\n    }\n    var type=typeof o;\n    if(type==='number'){\n      var h=o | 0;\n      if(h!==o){\n        h ^=o * 0xFFFFFFFF;\n      }\n      while (o > 0xFFFFFFFF){\n        o /=0xFFFFFFFF;\n        h ^=o;\n      }\n      return smi(h);\n    }\n    if(type==='string'){\n      return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o):hashString(o);\n    }\n    if(typeof o.hashCode==='function'){\n      return o.hashCode();\n    }\n    if(type==='object'){\n      return hashJSObj(o);\n    }\n    if(typeof o.toString==='function'){\n      return hashString(o.toString());\n    }\n    throw new Error('Value type ' + type + ' cannot be hashed.');\n  }\n\n  function cachedHashString(string){\n    var hash=stringHashCache[string];\n    if(hash===undefined){\n      hash=hashString(string);\n      if(STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE){\n        STRING_HASH_CACHE_SIZE=0;\n        stringHashCache={};\n      }\n      STRING_HASH_CACHE_SIZE++;\n      stringHashCache[string]=hash;\n    }\n    return hash;\n  }\n\n  // http://jsperf.com/hashing-strings\n  function hashString(string){\n    // This is the hash from JVM\n    // The hash code for a string is computed as\n    // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],\n    // where s[i] is the ith character of the string and n is the length of\n    // the string. We \"mod\" the result to make it between 0 (inclusive) and 2^31\n    // (exclusive) by dropping high bits.\n    var hash=0;\n    for (var ii=0; ii < string.length; ii++){\n      hash=31 * hash + string.charCodeAt(ii) | 0;\n    }\n    return smi(hash);\n  }\n\n  function hashJSObj(obj){\n    var hash;\n    if(usingWeakMap){\n      hash=weakMap.get(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=obj[UID_HASH_KEY];\n    if(hash!==undefined){\n      return hash;\n    }\n\n    if(!canDefineProperty){\n      hash=obj.propertyIsEnumerable&&obj.propertyIsEnumerable[UID_HASH_KEY];\n      if(hash!==undefined){\n        return hash;\n      }\n\n      hash=getIENodeHash(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=++objHashUID;\n    if(objHashUID & 0x40000000){\n      objHashUID=0;\n    }\n\n    if(usingWeakMap){\n      weakMap.set(obj, hash);\n    }else if(isExtensible!==undefined&&isExtensible(obj)===false){\n      throw new Error('Non-extensible objects are not allowed as keys.');\n    }else if(canDefineProperty){\n      Object.defineProperty(obj, UID_HASH_KEY, {\n        'enumerable': false,\n        'configurable': false,\n        'writable': false,\n        'value': hash\n      });\n    }else if(obj.propertyIsEnumerable!==undefined&&\n               obj.propertyIsEnumerable===obj.constructor.prototype.propertyIsEnumerable){\n      // Since we can't define a non-enumerable property on the object\n      // we'll hijack one of the less-used non-enumerable properties to\n      // save our hash on it. Since this is a function it will not show up in\n      // `JSON.stringify` which is what we want.\n      obj.propertyIsEnumerable=function(){\n        return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);\n      };\n      obj.propertyIsEnumerable[UID_HASH_KEY]=hash;\n    }else if(obj.nodeType!==undefined){\n      // At this point we couldn't get the IE `uniqueID` to use as a hash\n      // and we couldn't use a non-enumerable property to exploit the\n      // dontEnum bug so we simply add the `UID_HASH_KEY` on the node\n      // itself.\n      obj[UID_HASH_KEY]=hash;\n    }else{\n      throw new Error('Unable to set a non-enumerable property on object.');\n    }\n\n    return hash;\n  }\n\n  // Get references to ES5 object methods.\n  var isExtensible=Object.isExtensible;\n\n  // True if Object.defineProperty works as expected. IE8 fails this test.\n  var canDefineProperty=(function(){\n    try {\n      Object.defineProperty({}, '@', {});\n      return true;\n    } catch (e){\n      return false;\n    }\n  }());\n\n  // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it\n  // and avoid memory leaks from the IE cloneNode bug.\n  function getIENodeHash(node){\n    if(node&&node.nodeType > 0){\n      switch (node.nodeType){\n        case 1: // Element\n          return node.uniqueID;\n        case 9: // Document\n          return node.documentElement&&node.documentElement.uniqueID;\n      }\n    }\n  }\n\n  // If possible, use a WeakMap.\n  var usingWeakMap=typeof WeakMap==='function';\n  var weakMap;\n  if(usingWeakMap){\n    weakMap=new WeakMap();\n  }\n\n  var objHashUID=0;\n\n  var UID_HASH_KEY='__immutablehash__';\n  if(typeof Symbol==='function'){\n    UID_HASH_KEY=Symbol(UID_HASH_KEY);\n  }\n\n  var STRING_HASH_CACHE_MIN_STRLEN=16;\n  var STRING_HASH_CACHE_MAX_SIZE=255;\n  var STRING_HASH_CACHE_SIZE=0;\n  var stringHashCache={};\n\n  function assertNotInfinite(size){\n    invariant(\n      size!==Infinity,\n      'Cannot perform this action with an infinite size.'\n);\n  }\n\n  createClass(Map, KeyedCollection);\n\n    // @pragma Construction\n\n    function Map(value){\n      return value===null||value===undefined ? emptyMap() :\n        isMap(value)&&!isOrdered(value) ? value :\n        emptyMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    Map.prototype.toString=function(){\n      return this.__toString('Map {', '}');\n    };\n\n    // @pragma Access\n\n    Map.prototype.get=function(k, notSetValue){\n      return this._root ?\n        this._root.get(0, undefined, k, notSetValue) :\n        notSetValue;\n    };\n\n    // @pragma Modification\n\n    Map.prototype.set=function(k, v){\n      return updateMap(this, k, v);\n    };\n\n    Map.prototype.setIn=function(keyPath, v){\n      return this.updateIn(keyPath, NOT_SET, function(){return v});\n    };\n\n    Map.prototype.remove=function(k){\n      return updateMap(this, k, NOT_SET);\n    };\n\n    Map.prototype.deleteIn=function(keyPath){\n      return this.updateIn(keyPath, function(){return NOT_SET});\n    };\n\n    Map.prototype.update=function(k, notSetValue, updater){\n      return arguments.length===1 ?\n        k(this) :\n        this.updateIn([k], notSetValue, updater);\n    };\n\n    Map.prototype.updateIn=function(keyPath, notSetValue, updater){\n      if(!updater){\n        updater=notSetValue;\n        notSetValue=undefined;\n      }\n      var updatedValue=updateInDeepMap(\n        this,\n        forceIterator(keyPath),\n        notSetValue,\n        updater\n);\n      return updatedValue===NOT_SET ? undefined:updatedValue;\n    };\n\n    Map.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._root=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyMap();\n    };\n\n    // @pragma Composition\n\n    Map.prototype.merge=function(){\n      return mergeIntoMapWith(this, undefined, arguments);\n    };\n\n    Map.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, merger, iters);\n    };\n\n    Map.prototype.mergeIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.merge==='function' ?\n          m.merge.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.mergeDeep=function(){\n      return mergeIntoMapWith(this, deepMerger, arguments);\n    };\n\n    Map.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, deepMergerWith(merger), iters);\n    };\n\n    Map.prototype.mergeDeepIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.mergeDeep==='function' ?\n          m.mergeDeep.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator));\n    };\n\n    Map.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator, mapper));\n    };\n\n    // @pragma Mutability\n\n    Map.prototype.withMutations=function(fn){\n      var mutable=this.asMutable();\n      fn(mutable);\n      return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID):this;\n    };\n\n    Map.prototype.asMutable=function(){\n      return this.__ownerID ? this:this.__ensureOwner(new OwnerID());\n    };\n\n    Map.prototype.asImmutable=function(){\n      return this.__ensureOwner();\n    };\n\n    Map.prototype.wasAltered=function(){\n      return this.__altered;\n    };\n\n    Map.prototype.__iterator=function(type, reverse){\n      return new MapIterator(this, type, reverse);\n    };\n\n    Map.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      this._root&&this._root.iterate(function(entry){\n        iterations++;\n        return fn(entry[1], entry[0], this$0);\n      }, reverse);\n      return iterations;\n    };\n\n    Map.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeMap(this.size, this._root, ownerID, this.__hash);\n    };\n\n\n  function isMap(maybeMap){\n    return !!(maybeMap&&maybeMap[IS_MAP_SENTINEL]);\n  }\n\n  Map.isMap=isMap;\n\n  var IS_MAP_SENTINEL='@@__IMMUTABLE_MAP__@@';\n\n  var MapPrototype=Map.prototype;\n  MapPrototype[IS_MAP_SENTINEL]=true;\n  MapPrototype[DELETE]=MapPrototype.remove;\n  MapPrototype.removeIn=MapPrototype.deleteIn;\n\n\n  // #pragma Trie Nodes\n\n\n\n    function ArrayMapNode(ownerID, entries){\n      this.ownerID=ownerID;\n      this.entries=entries;\n    }\n\n    ArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    ArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&entries.length===1){\n        return; // undefined\n      }\n\n      if(!exists&&!removed&&entries.length >=MAX_ARRAY_MAP_SIZE){\n        return createNodes(ownerID, entries, key, value);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new ArrayMapNode(ownerID, newEntries);\n    };\n\n\n\n\n    function BitmapIndexedNode(ownerID, bitmap, nodes){\n      this.ownerID=ownerID;\n      this.bitmap=bitmap;\n      this.nodes=nodes;\n    }\n\n    BitmapIndexedNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var bit=(1 << ((shift===0 ? keyHash:keyHash >>> shift) & MASK));\n      var bitmap=this.bitmap;\n      return (bitmap & bit)===0 ? notSetValue :\n        this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);\n    };\n\n    BitmapIndexedNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var keyHashFrag=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var bit=1 << keyHashFrag;\n      var bitmap=this.bitmap;\n      var exists=(bitmap & bit)!==0;\n\n      if(!exists&&value===NOT_SET){\n        return this;\n      }\n\n      var idx=popCount(bitmap & (bit - 1));\n      var nodes=this.nodes;\n      var node=exists ? nodes[idx]:undefined;\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n\n      if(newNode===node){\n        return this;\n      }\n\n      if(!exists&&newNode&&nodes.length >=MAX_BITMAP_INDEXED_SIZE){\n        return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);\n      }\n\n      if(exists&&!newNode&&nodes.length===2&&isLeafNode(nodes[idx ^ 1])){\n        return nodes[idx ^ 1];\n      }\n\n      if(exists&&newNode&&nodes.length===1&&isLeafNode(newNode)){\n        return newNode;\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newBitmap=exists ? newNode ? bitmap:bitmap ^ bit:bitmap | bit;\n      var newNodes=exists ? newNode ?\n        setIn(nodes, idx, newNode, isEditable) :\n        spliceOut(nodes, idx, isEditable) :\n        spliceIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.bitmap=newBitmap;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new BitmapIndexedNode(ownerID, newBitmap, newNodes);\n    };\n\n\n\n\n    function HashArrayMapNode(ownerID, count, nodes){\n      this.ownerID=ownerID;\n      this.count=count;\n      this.nodes=nodes;\n    }\n\n    HashArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var node=this.nodes[idx];\n      return node ? node.get(shift + SHIFT, keyHash, key, notSetValue):notSetValue;\n    };\n\n    HashArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var removed=value===NOT_SET;\n      var nodes=this.nodes;\n      var node=nodes[idx];\n\n      if(removed&&!node){\n        return this;\n      }\n\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n      if(newNode===node){\n        return this;\n      }\n\n      var newCount=this.count;\n      if(!node){\n        newCount++;\n      }else if(!newNode){\n        newCount--;\n        if(newCount < MIN_HASH_ARRAY_MAP_SIZE){\n          return packNodes(ownerID, nodes, newCount, idx);\n        }\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newNodes=setIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.count=newCount;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new HashArrayMapNode(ownerID, newCount, newNodes);\n    };\n\n\n\n\n    function HashCollisionNode(ownerID, keyHash, entries){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entries=entries;\n    }\n\n    HashCollisionNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    HashCollisionNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n\n      var removed=value===NOT_SET;\n\n      if(keyHash!==this.keyHash){\n        if(removed){\n          return this;\n        }\n        SetRef(didAlter);\n        SetRef(didChangeSize);\n        return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);\n      }\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&len===2){\n        return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new HashCollisionNode(ownerID, this.keyHash, newEntries);\n    };\n\n\n\n\n    function ValueNode(ownerID, keyHash, entry){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entry=entry;\n    }\n\n    ValueNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      return is(key, this.entry[0]) ? this.entry[1]:notSetValue;\n    };\n\n    ValueNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n      var keyMatch=is(key, this.entry[0]);\n      if(keyMatch ? value===this.entry[1]:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n\n      if(removed){\n        SetRef(didChangeSize);\n        return; // undefined\n      }\n\n      if(keyMatch){\n        if(ownerID&&ownerID===this.ownerID){\n          this.entry[1]=value;\n          return this;\n        }\n        return new ValueNode(ownerID, this.keyHash, [key, value]);\n      }\n\n      SetRef(didChangeSize);\n      return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);\n    };\n\n\n\n  // #pragma Iterators\n\n  ArrayMapNode.prototype.iterate=\n  HashCollisionNode.prototype.iterate=function (fn, reverse){\n    var entries=this.entries;\n    for (var ii=0, maxIndex=entries.length - 1; ii <=maxIndex; ii++){\n      if(fn(entries[reverse ? maxIndex - ii:ii])===false){\n        return false;\n      }\n    }\n  }\n\n  BitmapIndexedNode.prototype.iterate=\n  HashArrayMapNode.prototype.iterate=function (fn, reverse){\n    var nodes=this.nodes;\n    for (var ii=0, maxIndex=nodes.length - 1; ii <=maxIndex; ii++){\n      var node=nodes[reverse ? maxIndex - ii:ii];\n      if(node&&node.iterate(fn, reverse)===false){\n        return false;\n      }\n    }\n  }\n\n  ValueNode.prototype.iterate=function (fn, reverse){\n    return fn(this.entry);\n  }\n\n  createClass(MapIterator, Iterator);\n\n    function MapIterator(map, type, reverse){\n      this._type=type;\n      this._reverse=reverse;\n      this._stack=map._root&&mapIteratorFrame(map._root);\n    }\n\n    MapIterator.prototype.next=function(){\n      var type=this._type;\n      var stack=this._stack;\n      while (stack){\n        var node=stack.node;\n        var index=stack.index++;\n        var maxIndex;\n        if(node.entry){\n          if(index===0){\n            return mapIteratorValue(type, node.entry);\n          }\n        }else if(node.entries){\n          maxIndex=node.entries.length - 1;\n          if(index <=maxIndex){\n            return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index:index]);\n          }\n        }else{\n          maxIndex=node.nodes.length - 1;\n          if(index <=maxIndex){\n            var subNode=node.nodes[this._reverse ? maxIndex - index:index];\n            if(subNode){\n              if(subNode.entry){\n                return mapIteratorValue(type, subNode.entry);\n              }\n              stack=this._stack=mapIteratorFrame(subNode, stack);\n            }\n            continue;\n          }\n        }\n        stack=this._stack=this._stack.__prev;\n      }\n      return iteratorDone();\n    };\n\n\n  function mapIteratorValue(type, entry){\n    return iteratorValue(type, entry[0], entry[1]);\n  }\n\n  function mapIteratorFrame(node, prev){\n    return {\n      node: node,\n      index: 0,\n      __prev: prev\n    };\n  }\n\n  function makeMap(size, root, ownerID, hash){\n    var map=Object.create(MapPrototype);\n    map.size=size;\n    map._root=root;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_MAP;\n  function emptyMap(){\n    return EMPTY_MAP||(EMPTY_MAP=makeMap(0));\n  }\n\n  function updateMap(map, k, v){\n    var newRoot;\n    var newSize;\n    if(!map._root){\n      if(v===NOT_SET){\n        return map;\n      }\n      newSize=1;\n      newRoot=new ArrayMapNode(map.__ownerID, [[k, v]]);\n    }else{\n      var didChangeSize=MakeRef(CHANGE_LENGTH);\n      var didAlter=MakeRef(DID_ALTER);\n      newRoot=updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);\n      if(!didAlter.value){\n        return map;\n      }\n      newSize=map.size + (didChangeSize.value ? v===NOT_SET ? -1:1 : 0);\n    }\n    if(map.__ownerID){\n      map.size=newSize;\n      map._root=newRoot;\n      map.__hash=undefined;\n      map.__altered=true;\n      return map;\n    }\n    return newRoot ? makeMap(newSize, newRoot):emptyMap();\n  }\n\n  function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n    if(!node){\n      if(value===NOT_SET){\n        return node;\n      }\n      SetRef(didAlter);\n      SetRef(didChangeSize);\n      return new ValueNode(ownerID, keyHash, [key, value]);\n    }\n    return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);\n  }\n\n  function isLeafNode(node){\n    return node.constructor===ValueNode||node.constructor===HashCollisionNode;\n  }\n\n  function mergeIntoNode(node, ownerID, shift, keyHash, entry){\n    if(node.keyHash===keyHash){\n      return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);\n    }\n\n    var idx1=(shift===0 ? node.keyHash:node.keyHash >>> shift) & MASK;\n    var idx2=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n\n    var newNode;\n    var nodes=idx1===idx2 ?\n      [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :\n      ((newNode=new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode]:[newNode, node]);\n\n    return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);\n  }\n\n  function createNodes(ownerID, entries, key, value){\n    if(!ownerID){\n      ownerID=new OwnerID();\n    }\n    var node=new ValueNode(ownerID, hash(key), [key, value]);\n    for (var ii=0; ii < entries.length; ii++){\n      var entry=entries[ii];\n      node=node.update(ownerID, 0, undefined, entry[0], entry[1]);\n    }\n    return node;\n  }\n\n  function packNodes(ownerID, nodes, count, excluding){\n    var bitmap=0;\n    var packedII=0;\n    var packedNodes=new Array(count);\n    for (var ii=0, bit=1, len=nodes.length; ii < len; ii++, bit <<=1){\n      var node=nodes[ii];\n      if(node!==undefined&&ii!==excluding){\n        bitmap |=bit;\n        packedNodes[packedII++]=node;\n      }\n    }\n    return new BitmapIndexedNode(ownerID, bitmap, packedNodes);\n  }\n\n  function expandNodes(ownerID, nodes, bitmap, including, node){\n    var count=0;\n    var expandedNodes=new Array(SIZE);\n    for (var ii=0; bitmap!==0; ii++, bitmap >>>=1){\n      expandedNodes[ii]=bitmap & 1 ? nodes[count++]:undefined;\n    }\n    expandedNodes[including]=node;\n    return new HashArrayMapNode(ownerID, count + 1, expandedNodes);\n  }\n\n  function mergeIntoMapWith(map, merger, iterables){\n    var iters=[];\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=KeyedIterable(value);\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    return mergeIntoCollectionWith(map, merger, iters);\n  }\n\n  function deepMerger(existing, value, key){\n    return existing&&existing.mergeDeep&&isIterable(value) ?\n      existing.mergeDeep(value) :\n      is(existing, value) ? existing:value;\n  }\n\n  function deepMergerWith(merger){\n    return function(existing, value, key){\n      if(existing&&existing.mergeDeepWith&&isIterable(value)){\n        return existing.mergeDeepWith(merger, value);\n      }\n      var nextValue=merger(existing, value, key);\n      return is(existing, nextValue) ? existing:nextValue;\n    };\n  }\n\n  function mergeIntoCollectionWith(collection, merger, iters){\n    iters=iters.filter(function(x){return x.size!==0});\n    if(iters.length===0){\n      return collection;\n    }\n    if(collection.size===0&&!collection.__ownerID&&iters.length===1){\n      return collection.constructor(iters[0]);\n    }\n    return collection.withMutations(function(collection){\n      var mergeIntoMap=merger ?\n        function(value, key){\n          collection.update(key, NOT_SET, function(existing)\n            {return existing===NOT_SET ? value:merger(existing, value, key)}\n);\n        } :\n        function(value, key){\n          collection.set(key, value);\n        }\n      for (var ii=0; ii < iters.length; ii++){\n        iters[ii].forEach(mergeIntoMap);\n      }\n    });\n  }\n\n  function updateInDeepMap(existing, keyPathIter, notSetValue, updater){\n    var isNotSet=existing===NOT_SET;\n    var step=keyPathIter.next();\n    if(step.done){\n      var existingValue=isNotSet ? notSetValue:existing;\n      var newValue=updater(existingValue);\n      return newValue===existingValue ? existing:newValue;\n    }\n    invariant(\n      isNotSet||(existing&&existing.set),\n      'invalid keyPath'\n);\n    var key=step.value;\n    var nextExisting=isNotSet ? NOT_SET:existing.get(key, NOT_SET);\n    var nextUpdated=updateInDeepMap(\n      nextExisting,\n      keyPathIter,\n      notSetValue,\n      updater\n);\n    return nextUpdated===nextExisting ? existing :\n      nextUpdated===NOT_SET ? existing.remove(key) :\n      (isNotSet ? emptyMap():existing).set(key, nextUpdated);\n  }\n\n  function popCount(x){\n    x=x - ((x >> 1) & 0x55555555);\n    x=(x & 0x33333333) + ((x >> 2) & 0x33333333);\n    x=(x + (x >> 4)) & 0x0f0f0f0f;\n    x=x + (x >> 8);\n    x=x + (x >> 16);\n    return x & 0x7f;\n  }\n\n  function setIn(array, idx, val, canEdit){\n    var newArray=canEdit ? array:arrCopy(array);\n    newArray[idx]=val;\n    return newArray;\n  }\n\n  function spliceIn(array, idx, val, canEdit){\n    var newLen=array.length + 1;\n    if(canEdit&&idx + 1===newLen){\n      array[idx]=val;\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        newArray[ii]=val;\n        after=-1;\n      }else{\n        newArray[ii]=array[ii + after];\n      }\n    }\n    return newArray;\n  }\n\n  function spliceOut(array, idx, canEdit){\n    var newLen=array.length - 1;\n    if(canEdit&&idx===newLen){\n      array.pop();\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        after=1;\n      }\n      newArray[ii]=array[ii + after];\n    }\n    return newArray;\n  }\n\n  var MAX_ARRAY_MAP_SIZE=SIZE / 4;\n  var MAX_BITMAP_INDEXED_SIZE=SIZE / 2;\n  var MIN_HASH_ARRAY_MAP_SIZE=SIZE / 4;\n\n  createClass(List, IndexedCollection);\n\n    // @pragma Construction\n\n    function List(value){\n      var empty=emptyList();\n      if(value===null||value===undefined){\n        return empty;\n      }\n      if(isList(value)){\n        return value;\n      }\n      var iter=IndexedIterable(value);\n      var size=iter.size;\n      if(size===0){\n        return empty;\n      }\n      assertNotInfinite(size);\n      if(size > 0&&size < SIZE){\n        return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));\n      }\n      return empty.withMutations(function(list){\n        list.setSize(size);\n        iter.forEach(function(v, i){return list.set(i, v)});\n      });\n    }\n\n    List.of=function(){\n      return this(arguments);\n    };\n\n    List.prototype.toString=function(){\n      return this.__toString('List [', ']');\n    };\n\n    // @pragma Access\n\n    List.prototype.get=function(index, notSetValue){\n      index=wrapIndex(this, index);\n      if(index >=0&&index < this.size){\n        index +=this._origin;\n        var node=listNodeFor(this, index);\n        return node&&node.array[index & MASK];\n      }\n      return notSetValue;\n    };\n\n    // @pragma Modification\n\n    List.prototype.set=function(index, value){\n      return updateList(this, index, value);\n    };\n\n    List.prototype.remove=function(index){\n      return !this.has(index) ? this :\n        index===0 ? this.shift() :\n        index===this.size - 1 ? this.pop() :\n        this.splice(index, 1);\n    };\n\n    List.prototype.insert=function(index, value){\n      return this.splice(index, 0, value);\n    };\n\n    List.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=this._origin=this._capacity=0;\n        this._level=SHIFT;\n        this._root=this._tail=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyList();\n    };\n\n    List.prototype.push=function(){\n      var values=arguments;\n      var oldSize=this.size;\n      return this.withMutations(function(list){\n        setListBounds(list, 0, oldSize + values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(oldSize + ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.pop=function(){\n      return setListBounds(this, 0, -1);\n    };\n\n    List.prototype.unshift=function(){\n      var values=arguments;\n      return this.withMutations(function(list){\n        setListBounds(list, -values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.shift=function(){\n      return setListBounds(this, 1);\n    };\n\n    // @pragma Composition\n\n    List.prototype.merge=function(){\n      return mergeIntoListWith(this, undefined, arguments);\n    };\n\n    List.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, merger, iters);\n    };\n\n    List.prototype.mergeDeep=function(){\n      return mergeIntoListWith(this, deepMerger, arguments);\n    };\n\n    List.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, deepMergerWith(merger), iters);\n    };\n\n    List.prototype.setSize=function(size){\n      return setListBounds(this, 0, size);\n    };\n\n    // @pragma Iteration\n\n    List.prototype.slice=function(begin, end){\n      var size=this.size;\n      if(wholeSlice(begin, end, size)){\n        return this;\n      }\n      return setListBounds(\n        this,\n        resolveBegin(begin, size),\n        resolveEnd(end, size)\n);\n    };\n\n    List.prototype.__iterator=function(type, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      return new Iterator(function(){\n        var value=values();\n        return value===DONE ?\n          iteratorDone() :\n          iteratorValue(type, index++, value);\n      });\n    };\n\n    List.prototype.__iterate=function(fn, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      var value;\n      while ((value=values())!==DONE){\n        if(fn(value, index++, this)===false){\n          break;\n        }\n      }\n      return index;\n    };\n\n    List.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        return this;\n      }\n      return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);\n    };\n\n\n  function isList(maybeList){\n    return !!(maybeList&&maybeList[IS_LIST_SENTINEL]);\n  }\n\n  List.isList=isList;\n\n  var IS_LIST_SENTINEL='@@__IMMUTABLE_LIST__@@';\n\n  var ListPrototype=List.prototype;\n  ListPrototype[IS_LIST_SENTINEL]=true;\n  ListPrototype[DELETE]=ListPrototype.remove;\n  ListPrototype.setIn=MapPrototype.setIn;\n  ListPrototype.deleteIn=\n  ListPrototype.removeIn=MapPrototype.removeIn;\n  ListPrototype.update=MapPrototype.update;\n  ListPrototype.updateIn=MapPrototype.updateIn;\n  ListPrototype.mergeIn=MapPrototype.mergeIn;\n  ListPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  ListPrototype.withMutations=MapPrototype.withMutations;\n  ListPrototype.asMutable=MapPrototype.asMutable;\n  ListPrototype.asImmutable=MapPrototype.asImmutable;\n  ListPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n\n    function VNode(array, ownerID){\n      this.array=array;\n      this.ownerID=ownerID;\n    }\n\n    // TODO: seems like these methods are very similar\n\n    VNode.prototype.removeBefore=function(ownerID, level, index){\n      if(index===level ? 1 << level:false||this.array.length===0){\n        return this;\n      }\n      var originIndex=(index >>> level) & MASK;\n      if(originIndex >=this.array.length){\n        return new VNode([], ownerID);\n      }\n      var removingFirst=originIndex===0;\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[originIndex];\n        newChild=oldChild&&oldChild.removeBefore(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&removingFirst){\n          return this;\n        }\n      }\n      if(removingFirst&&!newChild){\n        return this;\n      }\n      var editable=editableVNode(this, ownerID);\n      if(!removingFirst){\n        for (var ii=0; ii < originIndex; ii++){\n          editable.array[ii]=undefined;\n        }\n      }\n      if(newChild){\n        editable.array[originIndex]=newChild;\n      }\n      return editable;\n    };\n\n    VNode.prototype.removeAfter=function(ownerID, level, index){\n      if(index===(level ? 1 << level:0)||this.array.length===0){\n        return this;\n      }\n      var sizeIndex=((index - 1) >>> level) & MASK;\n      if(sizeIndex >=this.array.length){\n        return this;\n      }\n\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[sizeIndex];\n        newChild=oldChild&&oldChild.removeAfter(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&sizeIndex===this.array.length - 1){\n          return this;\n        }\n      }\n\n      var editable=editableVNode(this, ownerID);\n      editable.array.splice(sizeIndex + 1);\n      if(newChild){\n        editable.array[sizeIndex]=newChild;\n      }\n      return editable;\n    };\n\n\n\n  var DONE={};\n\n  function iterateList(list, reverse){\n    var left=list._origin;\n    var right=list._capacity;\n    var tailPos=getTailOffset(right);\n    var tail=list._tail;\n\n    return iterateNodeOrLeaf(list._root, list._level, 0);\n\n    function iterateNodeOrLeaf(node, level, offset){\n      return level===0 ?\n        iterateLeaf(node, offset) :\n        iterateNode(node, level, offset);\n    }\n\n    function iterateLeaf(node, offset){\n      var array=offset===tailPos ? tail&&tail.array:node&&node.array;\n      var from=offset > left ? 0:left - offset;\n      var to=right - offset;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        if(from===to){\n          return DONE;\n        }\n        var idx=reverse ? --to:from++;\n        return array&&array[idx];\n      };\n    }\n\n    function iterateNode(node, level, offset){\n      var values;\n      var array=node&&node.array;\n      var from=offset > left ? 0:(left - offset) >> level;\n      var to=((right - offset) >> level) + 1;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        do {\n          if(values){\n            var value=values();\n            if(value!==DONE){\n              return value;\n            }\n            values=null;\n          }\n          if(from===to){\n            return DONE;\n          }\n          var idx=reverse ? --to:from++;\n          values=iterateNodeOrLeaf(\n            array&&array[idx], level - SHIFT, offset + (idx << level)\n);\n        } while (true);\n      };\n    }\n  }\n\n  function makeList(origin, capacity, level, root, tail, ownerID, hash){\n    var list=Object.create(ListPrototype);\n    list.size=capacity - origin;\n    list._origin=origin;\n    list._capacity=capacity;\n    list._level=level;\n    list._root=root;\n    list._tail=tail;\n    list.__ownerID=ownerID;\n    list.__hash=hash;\n    list.__altered=false;\n    return list;\n  }\n\n  var EMPTY_LIST;\n  function emptyList(){\n    return EMPTY_LIST||(EMPTY_LIST=makeList(0, 0, SHIFT));\n  }\n\n  function updateList(list, index, value){\n    index=wrapIndex(list, index);\n\n    if(index!==index){\n      return list;\n    }\n\n    if(index >=list.size||index < 0){\n      return list.withMutations(function(list){\n        index < 0 ?\n          setListBounds(list, index).set(0, value) :\n          setListBounds(list, 0, index + 1).set(index, value)\n      });\n    }\n\n    index +=list._origin;\n\n    var newTail=list._tail;\n    var newRoot=list._root;\n    var didAlter=MakeRef(DID_ALTER);\n    if(index >=getTailOffset(list._capacity)){\n      newTail=updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);\n    }else{\n      newRoot=updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);\n    }\n\n    if(!didAlter.value){\n      return list;\n    }\n\n    if(list.__ownerID){\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(list._origin, list._capacity, list._level, newRoot, newTail);\n  }\n\n  function updateVNode(node, ownerID, level, index, value, didAlter){\n    var idx=(index >>> level) & MASK;\n    var nodeHas=node&&idx < node.array.length;\n    if(!nodeHas&&value===undefined){\n      return node;\n    }\n\n    var newNode;\n\n    if(level > 0){\n      var lowerNode=node&&node.array[idx];\n      var newLowerNode=updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);\n      if(newLowerNode===lowerNode){\n        return node;\n      }\n      newNode=editableVNode(node, ownerID);\n      newNode.array[idx]=newLowerNode;\n      return newNode;\n    }\n\n    if(nodeHas&&node.array[idx]===value){\n      return node;\n    }\n\n    SetRef(didAlter);\n\n    newNode=editableVNode(node, ownerID);\n    if(value===undefined&&idx===newNode.array.length - 1){\n      newNode.array.pop();\n    }else{\n      newNode.array[idx]=value;\n    }\n    return newNode;\n  }\n\n  function editableVNode(node, ownerID){\n    if(ownerID&&node&&ownerID===node.ownerID){\n      return node;\n    }\n    return new VNode(node ? node.array.slice():[], ownerID);\n  }\n\n  function listNodeFor(list, rawIndex){\n    if(rawIndex >=getTailOffset(list._capacity)){\n      return list._tail;\n    }\n    if(rawIndex < 1 << (list._level + SHIFT)){\n      var node=list._root;\n      var level=list._level;\n      while (node&&level > 0){\n        node=node.array[(rawIndex >>> level) & MASK];\n        level -=SHIFT;\n      }\n      return node;\n    }\n  }\n\n  function setListBounds(list, begin, end){\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n    var owner=list.__ownerID||new OwnerID();\n    var oldOrigin=list._origin;\n    var oldCapacity=list._capacity;\n    var newOrigin=oldOrigin + begin;\n    var newCapacity=end===undefined ? oldCapacity:end < 0 ? oldCapacity + end:oldOrigin + end;\n    if(newOrigin===oldOrigin&&newCapacity===oldCapacity){\n      return list;\n    }\n\n    // If it's going to end after it starts, it's empty.\n    if(newOrigin >=newCapacity){\n      return list.clear();\n    }\n\n    var newLevel=list._level;\n    var newRoot=list._root;\n\n    // New origin might need creating a higher root.\n    var offsetShift=0;\n    while (newOrigin + offsetShift < 0){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [undefined, newRoot]:[], owner);\n      newLevel +=SHIFT;\n      offsetShift +=1 << newLevel;\n    }\n    if(offsetShift){\n      newOrigin +=offsetShift;\n      oldOrigin +=offsetShift;\n      newCapacity +=offsetShift;\n      oldCapacity +=offsetShift;\n    }\n\n    var oldTailOffset=getTailOffset(oldCapacity);\n    var newTailOffset=getTailOffset(newCapacity);\n\n    // New size might need creating a higher root.\n    while (newTailOffset >=1 << (newLevel + SHIFT)){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [newRoot]:[], owner);\n      newLevel +=SHIFT;\n    }\n\n    // Locate or create the new tail.\n    var oldTail=list._tail;\n    var newTail=newTailOffset < oldTailOffset ?\n      listNodeFor(list, newCapacity - 1) :\n      newTailOffset > oldTailOffset ? new VNode([], owner):oldTail;\n\n    // Merge Tail into tree.\n    if(oldTail&&newTailOffset > oldTailOffset&&newOrigin < oldCapacity&&oldTail.array.length){\n      newRoot=editableVNode(newRoot, owner);\n      var node=newRoot;\n      for (var level=newLevel; level > SHIFT; level -=SHIFT){\n        var idx=(oldTailOffset >>> level) & MASK;\n        node=node.array[idx]=editableVNode(node.array[idx], owner);\n      }\n      node.array[(oldTailOffset >>> SHIFT) & MASK]=oldTail;\n    }\n\n    // If the size has been reduced, there's a chance the tail needs to be trimmed.\n    if(newCapacity < oldCapacity){\n      newTail=newTail&&newTail.removeAfter(owner, 0, newCapacity);\n    }\n\n    // If the new origin is within the tail, then we do not need a root.\n    if(newOrigin >=newTailOffset){\n      newOrigin -=newTailOffset;\n      newCapacity -=newTailOffset;\n      newLevel=SHIFT;\n      newRoot=null;\n      newTail=newTail&&newTail.removeBefore(owner, 0, newOrigin);\n\n    // Otherwise, if the root has been trimmed, garbage collect.\n    }else if(newOrigin > oldOrigin||newTailOffset < oldTailOffset){\n      offsetShift=0;\n\n      // Identify the new top root node of the subtree of the old root.\n      while (newRoot){\n        var beginIndex=(newOrigin >>> newLevel) & MASK;\n        if(beginIndex!==(newTailOffset >>> newLevel) & MASK){\n          break;\n        }\n        if(beginIndex){\n          offsetShift +=(1 << newLevel) * beginIndex;\n        }\n        newLevel -=SHIFT;\n        newRoot=newRoot.array[beginIndex];\n      }\n\n      // Trim the new sides of the new root.\n      if(newRoot&&newOrigin > oldOrigin){\n        newRoot=newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);\n      }\n      if(newRoot&&newTailOffset < oldTailOffset){\n        newRoot=newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);\n      }\n      if(offsetShift){\n        newOrigin -=offsetShift;\n        newCapacity -=offsetShift;\n      }\n    }\n\n    if(list.__ownerID){\n      list.size=newCapacity - newOrigin;\n      list._origin=newOrigin;\n      list._capacity=newCapacity;\n      list._level=newLevel;\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);\n  }\n\n  function mergeIntoListWith(list, merger, iterables){\n    var iters=[];\n    var maxSize=0;\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=IndexedIterable(value);\n      if(iter.size > maxSize){\n        maxSize=iter.size;\n      }\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    if(maxSize > list.size){\n      list=list.setSize(maxSize);\n    }\n    return mergeIntoCollectionWith(list, merger, iters);\n  }\n\n  function getTailOffset(size){\n    return size < SIZE ? 0:(((size - 1) >>> SHIFT) << SHIFT);\n  }\n\n  createClass(OrderedMap, Map);\n\n    // @pragma Construction\n\n    function OrderedMap(value){\n      return value===null||value===undefined ? emptyOrderedMap() :\n        isOrderedMap(value) ? value :\n        emptyOrderedMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    OrderedMap.of=function(){\n      return this(arguments);\n    };\n\n    OrderedMap.prototype.toString=function(){\n      return this.__toString('OrderedMap {', '}');\n    };\n\n    // @pragma Access\n\n    OrderedMap.prototype.get=function(k, notSetValue){\n      var index=this._map.get(k);\n      return index!==undefined ? this._list.get(index)[1]:notSetValue;\n    };\n\n    // @pragma Modification\n\n    OrderedMap.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._map.clear();\n        this._list.clear();\n        return this;\n      }\n      return emptyOrderedMap();\n    };\n\n    OrderedMap.prototype.set=function(k, v){\n      return updateOrderedMap(this, k, v);\n    };\n\n    OrderedMap.prototype.remove=function(k){\n      return updateOrderedMap(this, k, NOT_SET);\n    };\n\n    OrderedMap.prototype.wasAltered=function(){\n      return this._map.wasAltered()||this._list.wasAltered();\n    };\n\n    OrderedMap.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._list.__iterate(\n        function(entry){return entry&&fn(entry[1], entry[0], this$0)},\n        reverse\n);\n    };\n\n    OrderedMap.prototype.__iterator=function(type, reverse){\n      return this._list.fromEntrySeq().__iterator(type, reverse);\n    };\n\n    OrderedMap.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      var newList=this._list.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        this._list=newList;\n        return this;\n      }\n      return makeOrderedMap(newMap, newList, ownerID, this.__hash);\n    };\n\n\n  function isOrderedMap(maybeOrderedMap){\n    return isMap(maybeOrderedMap)&&isOrdered(maybeOrderedMap);\n  }\n\n  OrderedMap.isOrderedMap=isOrderedMap;\n\n  OrderedMap.prototype[IS_ORDERED_SENTINEL]=true;\n  OrderedMap.prototype[DELETE]=OrderedMap.prototype.remove;\n\n\n\n  function makeOrderedMap(map, list, ownerID, hash){\n    var omap=Object.create(OrderedMap.prototype);\n    omap.size=map ? map.size:0;\n    omap._map=map;\n    omap._list=list;\n    omap.__ownerID=ownerID;\n    omap.__hash=hash;\n    return omap;\n  }\n\n  var EMPTY_ORDERED_MAP;\n  function emptyOrderedMap(){\n    return EMPTY_ORDERED_MAP||(EMPTY_ORDERED_MAP=makeOrderedMap(emptyMap(), emptyList()));\n  }\n\n  function updateOrderedMap(omap, k, v){\n    var map=omap._map;\n    var list=omap._list;\n    var i=map.get(k);\n    var has=i!==undefined;\n    var newMap;\n    var newList;\n    if(v===NOT_SET){ // removed\n      if(!has){\n        return omap;\n      }\n      if(list.size >=SIZE&&list.size >=map.size * 2){\n        newList=list.filter(function(entry, idx){return entry!==undefined&&i!==idx});\n        newMap=newList.toKeyedSeq().map(function(entry){return entry[0]}).flip().toMap();\n        if(omap.__ownerID){\n          newMap.__ownerID=newList.__ownerID=omap.__ownerID;\n        }\n      }else{\n        newMap=map.remove(k);\n        newList=i===list.size - 1 ? list.pop():list.set(i, undefined);\n      }\n    }else{\n      if(has){\n        if(v===list.get(i)[1]){\n          return omap;\n        }\n        newMap=map;\n        newList=list.set(i, [k, v]);\n      }else{\n        newMap=map.set(k, list.size);\n        newList=list.set(list.size, [k, v]);\n      }\n    }\n    if(omap.__ownerID){\n      omap.size=newMap.size;\n      omap._map=newMap;\n      omap._list=newList;\n      omap.__hash=undefined;\n      return omap;\n    }\n    return makeOrderedMap(newMap, newList);\n  }\n\n  createClass(ToKeyedSequence, KeyedSeq);\n    function ToKeyedSequence(indexed, useKeys){\n      this._iter=indexed;\n      this._useKeys=useKeys;\n      this.size=indexed.size;\n    }\n\n    ToKeyedSequence.prototype.get=function(key, notSetValue){\n      return this._iter.get(key, notSetValue);\n    };\n\n    ToKeyedSequence.prototype.has=function(key){\n      return this._iter.has(key);\n    };\n\n    ToKeyedSequence.prototype.valueSeq=function(){\n      return this._iter.valueSeq();\n    };\n\n    ToKeyedSequence.prototype.reverse=function(){var this$0=this;\n      var reversedSequence=reverseFactory(this, true);\n      if(!this._useKeys){\n        reversedSequence.valueSeq=function(){return this$0._iter.toSeq().reverse()};\n      }\n      return reversedSequence;\n    };\n\n    ToKeyedSequence.prototype.map=function(mapper, context){var this$0=this;\n      var mappedSequence=mapFactory(this, mapper, context);\n      if(!this._useKeys){\n        mappedSequence.valueSeq=function(){return this$0._iter.toSeq().map(mapper, context)};\n      }\n      return mappedSequence;\n    };\n\n    ToKeyedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var ii;\n      return this._iter.__iterate(\n        this._useKeys ?\n          function(v, k){return fn(v, k, this$0)} :\n          ((ii=reverse ? resolveSize(this):0),\n            function(v){return fn(v, reverse ? --ii:ii++, this$0)}),\n        reverse\n);\n    };\n\n    ToKeyedSequence.prototype.__iterator=function(type, reverse){\n      if(this._useKeys){\n        return this._iter.__iterator(type, reverse);\n      }\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var ii=reverse ? resolveSize(this):0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, reverse ? --ii:ii++, step.value, step);\n      });\n    };\n\n  ToKeyedSequence.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(ToIndexedSequence, IndexedSeq);\n    function ToIndexedSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToIndexedSequence.prototype.includes=function(value){\n      return this._iter.includes(value);\n    };\n\n    ToIndexedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      return this._iter.__iterate(function(v){return fn(v, iterations++, this$0)}, reverse);\n    };\n\n    ToIndexedSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, iterations++, step.value, step)\n      });\n    };\n\n\n\n  createClass(ToSetSequence, SetSeq);\n    function ToSetSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToSetSequence.prototype.has=function(key){\n      return this._iter.includes(key);\n    };\n\n    ToSetSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(v){return fn(v, v, this$0)}, reverse);\n    };\n\n    ToSetSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, step.value, step.value, step);\n      });\n    };\n\n\n\n  createClass(FromEntriesSequence, KeyedSeq);\n    function FromEntriesSequence(entries){\n      this._iter=entries;\n      this.size=entries.size;\n    }\n\n    FromEntriesSequence.prototype.entrySeq=function(){\n      return this._iter.toSeq();\n    };\n\n    FromEntriesSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(entry){\n        // Check if entry exists first so array access doesn't throw for holes\n        // in the parent iteration.\n        if(entry){\n          validateEntry(entry);\n          var indexedIterable=isIterable(entry);\n          return fn(\n            indexedIterable ? entry.get(1):entry[1],\n            indexedIterable ? entry.get(0):entry[0],\n            this$0\n);\n        }\n      }, reverse);\n    };\n\n    FromEntriesSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          // Check if entry exists first so array access doesn't throw for holes\n          // in the parent iteration.\n          if(entry){\n            validateEntry(entry);\n            var indexedIterable=isIterable(entry);\n            return iteratorValue(\n              type,\n              indexedIterable ? entry.get(0):entry[0],\n              indexedIterable ? entry.get(1):entry[1],\n              step\n);\n          }\n        }\n      });\n    };\n\n\n  ToIndexedSequence.prototype.cacheResult=\n  ToKeyedSequence.prototype.cacheResult=\n  ToSetSequence.prototype.cacheResult=\n  FromEntriesSequence.prototype.cacheResult=\n    cacheResultThrough;\n\n\n  function flipFactory(iterable){\n    var flipSequence=makeSequence(iterable);\n    flipSequence._iter=iterable;\n    flipSequence.size=iterable.size;\n    flipSequence.flip=function(){return iterable};\n    flipSequence.reverse=function (){\n      var reversedSequence=iterable.reverse.apply(this); // super.reverse()\n      reversedSequence.flip=function(){return iterable.reverse()};\n      return reversedSequence;\n    };\n    flipSequence.has=function(key){return iterable.includes(key)};\n    flipSequence.includes=function(key){return iterable.has(key)};\n    flipSequence.cacheResult=cacheResultThrough;\n    flipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(k, v, this$0)!==false}, reverse);\n    }\n    flipSequence.__iteratorUncached=function(type, reverse){\n      if(type===ITERATE_ENTRIES){\n        var iterator=iterable.__iterator(type, reverse);\n        return new Iterator(function(){\n          var step=iterator.next();\n          if(!step.done){\n            var k=step.value[0];\n            step.value[0]=step.value[1];\n            step.value[1]=k;\n          }\n          return step;\n        });\n      }\n      return iterable.__iterator(\n        type===ITERATE_VALUES ? ITERATE_KEYS:ITERATE_VALUES,\n        reverse\n);\n    }\n    return flipSequence;\n  }\n\n\n  function mapFactory(iterable, mapper, context){\n    var mappedSequence=makeSequence(iterable);\n    mappedSequence.size=iterable.size;\n    mappedSequence.has=function(key){return iterable.has(key)};\n    mappedSequence.get=function(key, notSetValue){\n      var v=iterable.get(key, NOT_SET);\n      return v===NOT_SET ?\n        notSetValue :\n        mapper.call(context, v, key, iterable);\n    };\n    mappedSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(\n        function(v, k, c){return fn(mapper.call(context, v, k, c), k, this$0)!==false},\n        reverse\n);\n    }\n    mappedSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var key=entry[0];\n        return iteratorValue(\n          type,\n          key,\n          mapper.call(context, entry[1], key, iterable),\n          step\n);\n      });\n    }\n    return mappedSequence;\n  }\n\n\n  function reverseFactory(iterable, useKeys){\n    var reversedSequence=makeSequence(iterable);\n    reversedSequence._iter=iterable;\n    reversedSequence.size=iterable.size;\n    reversedSequence.reverse=function(){return iterable};\n    if(iterable.flip){\n      reversedSequence.flip=function (){\n        var flipSequence=flipFactory(iterable);\n        flipSequence.reverse=function(){return iterable.flip()};\n        return flipSequence;\n      };\n    }\n    reversedSequence.get=function(key, notSetValue) \n      {return iterable.get(useKeys ? key:-1 - key, notSetValue)};\n    reversedSequence.has=function(key)\n      {return iterable.has(useKeys ? key:-1 - key)};\n    reversedSequence.includes=function(value){return iterable.includes(value)};\n    reversedSequence.cacheResult=cacheResultThrough;\n    reversedSequence.__iterate=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(v, k, this$0)}, !reverse);\n    };\n    reversedSequence.__iterator=\n      function(type, reverse){return iterable.__iterator(type, !reverse)};\n    return reversedSequence;\n  }\n\n\n  function filterFactory(iterable, predicate, context, useKeys){\n    var filterSequence=makeSequence(iterable);\n    if(useKeys){\n      filterSequence.has=function(key){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&!!predicate.call(context, v, key, iterable);\n      };\n      filterSequence.get=function(key, notSetValue){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&predicate.call(context, v, key, iterable) ?\n          v:notSetValue;\n      };\n    }\n    filterSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      }, reverse);\n      return iterations;\n    };\n    filterSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          var key=entry[0];\n          var value=entry[1];\n          if(predicate.call(context, value, key, iterable)){\n            return iteratorValue(type, useKeys ? key:iterations++, value, step);\n          }\n        }\n      });\n    }\n    return filterSequence;\n  }\n\n\n  function countByFactory(iterable, grouper, context){\n    var groups=Map().asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        0,\n        function(a){return a + 1}\n);\n    });\n    return groups.asImmutable();\n  }\n\n\n  function groupByFactory(iterable, grouper, context){\n    var isKeyedIter=isKeyed(iterable);\n    var groups=(isOrdered(iterable) ? OrderedMap():Map()).asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        function(a){return (a=a||[], a.push(isKeyedIter ? [k, v]:v), a)}\n);\n    });\n    var coerce=iterableClass(iterable);\n    return groups.map(function(arr){return reify(iterable, coerce(arr))});\n  }\n\n\n  function sliceFactory(iterable, begin, end, useKeys){\n    var originalSize=iterable.size;\n\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n\n    if(wholeSlice(begin, end, originalSize)){\n      return iterable;\n    }\n\n    var resolvedBegin=resolveBegin(begin, originalSize);\n    var resolvedEnd=resolveEnd(end, originalSize);\n\n    // begin or end will be NaN if they were provided as negative numbers and\n    // this iterable's size is unknown. In that case, cache first so there is\n    // a known size and these do not resolve to NaN.\n    if(resolvedBegin!==resolvedBegin||resolvedEnd!==resolvedEnd){\n      return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);\n    }\n\n    // Note: resolvedEnd is undefined when the original sequence's length is\n    // unknown and this slice did not supply an end and should contain all\n    // elements after resolvedBegin.\n    // In that case, resolvedSize will be NaN and sliceSize will remain undefined.\n    var resolvedSize=resolvedEnd - resolvedBegin;\n    var sliceSize;\n    if(resolvedSize===resolvedSize){\n      sliceSize=resolvedSize < 0 ? 0:resolvedSize;\n    }\n\n    var sliceSeq=makeSequence(iterable);\n\n    // If iterable.size is undefined, the size of the realized sliceSeq is\n    // unknown at this point unless the number of items to slice is 0\n    sliceSeq.size=sliceSize===0 ? sliceSize:iterable.size&&sliceSize||undefined;\n\n    if(!useKeys&&isSeq(iterable)&&sliceSize >=0){\n      sliceSeq.get=function (index, notSetValue){\n        index=wrapIndex(this, index);\n        return index >=0&&index < sliceSize ?\n          iterable.get(index + resolvedBegin, notSetValue) :\n          notSetValue;\n      }\n    }\n\n    sliceSeq.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(sliceSize===0){\n        return 0;\n      }\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var skipped=0;\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k){\n        if(!(isSkipping&&(isSkipping=skipped++ < resolvedBegin))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0)!==false&&\n                 iterations!==sliceSize;\n        }\n      });\n      return iterations;\n    };\n\n    sliceSeq.__iteratorUncached=function(type, reverse){\n      if(sliceSize!==0&&reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      // Don't bother instantiating parent iterator if taking 0.\n      var iterator=sliceSize!==0&&iterable.__iterator(type, reverse);\n      var skipped=0;\n      var iterations=0;\n      return new Iterator(function(){\n        while (skipped++ < resolvedBegin){\n          iterator.next();\n        }\n        if(++iterations > sliceSize){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(useKeys||type===ITERATE_VALUES){\n          return step;\n        }else if(type===ITERATE_KEYS){\n          return iteratorValue(type, iterations - 1, undefined, step);\n        }else{\n          return iteratorValue(type, iterations - 1, step.value[1], step);\n        }\n      });\n    }\n\n    return sliceSeq;\n  }\n\n\n  function takeWhileFactory(iterable, predicate, context){\n    var takeSequence=makeSequence(iterable);\n    takeSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterations=0;\n      iterable.__iterate(function(v, k, c) \n        {return predicate.call(context, v, k, c)&&++iterations&&fn(v, k, this$0)}\n);\n      return iterations;\n    };\n    takeSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterating=true;\n      return new Iterator(function(){\n        if(!iterating){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var k=entry[0];\n        var v=entry[1];\n        if(!predicate.call(context, v, k, this$0)){\n          iterating=false;\n          return iteratorDone();\n        }\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return takeSequence;\n  }\n\n\n  function skipWhileFactory(iterable, predicate, context, useKeys){\n    var skipSequence=makeSequence(iterable);\n    skipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(!(isSkipping&&(isSkipping=predicate.call(context, v, k, c)))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      });\n      return iterations;\n    };\n    skipSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var skipping=true;\n      var iterations=0;\n      return new Iterator(function(){\n        var step, k, v;\n        do {\n          step=iterator.next();\n          if(step.done){\n            if(useKeys||type===ITERATE_VALUES){\n              return step;\n            }else if(type===ITERATE_KEYS){\n              return iteratorValue(type, iterations++, undefined, step);\n            }else{\n              return iteratorValue(type, iterations++, step.value[1], step);\n            }\n          }\n          var entry=step.value;\n          k=entry[0];\n          v=entry[1];\n          skipping&&(skipping=predicate.call(context, v, k, this$0));\n        } while (skipping);\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return skipSequence;\n  }\n\n\n  function concatFactory(iterable, values){\n    var isKeyedIterable=isKeyed(iterable);\n    var iters=[iterable].concat(values).map(function(v){\n      if(!isIterable(v)){\n        v=isKeyedIterable ?\n          keyedSeqFromValue(v) :\n          indexedSeqFromValue(Array.isArray(v) ? v:[v]);\n      }else if(isKeyedIterable){\n        v=KeyedIterable(v);\n      }\n      return v;\n    }).filter(function(v){return v.size!==0});\n\n    if(iters.length===0){\n      return iterable;\n    }\n\n    if(iters.length===1){\n      var singleton=iters[0];\n      if(singleton===iterable||\n          isKeyedIterable&&isKeyed(singleton)||\n          isIndexed(iterable)&&isIndexed(singleton)){\n        return singleton;\n      }\n    }\n\n    var concatSeq=new ArraySeq(iters);\n    if(isKeyedIterable){\n      concatSeq=concatSeq.toKeyedSeq();\n    }else if(!isIndexed(iterable)){\n      concatSeq=concatSeq.toSetSeq();\n    }\n    concatSeq=concatSeq.flatten(true);\n    concatSeq.size=iters.reduce(\n      function(sum, seq){\n        if(sum!==undefined){\n          var size=seq.size;\n          if(size!==undefined){\n            return sum + size;\n          }\n        }\n      },\n      0\n);\n    return concatSeq;\n  }\n\n\n  function flattenFactory(iterable, depth, useKeys){\n    var flatSequence=makeSequence(iterable);\n    flatSequence.__iterateUncached=function(fn, reverse){\n      var iterations=0;\n      var stopped=false;\n      function flatDeep(iter, currentDepth){var this$0=this;\n        iter.__iterate(function(v, k){\n          if((!depth||currentDepth < depth)&&isIterable(v)){\n            flatDeep(v, currentDepth + 1);\n          }else if(fn(v, useKeys ? k:iterations++, this$0)===false){\n            stopped=true;\n          }\n          return !stopped;\n        }, reverse);\n      }\n      flatDeep(iterable, 0);\n      return iterations;\n    }\n    flatSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(type, reverse);\n      var stack=[];\n      var iterations=0;\n      return new Iterator(function(){\n        while (iterator){\n          var step=iterator.next();\n          if(step.done!==false){\n            iterator=stack.pop();\n            continue;\n          }\n          var v=step.value;\n          if(type===ITERATE_ENTRIES){\n            v=v[1];\n          }\n          if((!depth||stack.length < depth)&&isIterable(v)){\n            stack.push(iterator);\n            iterator=v.__iterator(type, reverse);\n          }else{\n            return useKeys ? step:iteratorValue(type, iterations++, v, step);\n          }\n        }\n        return iteratorDone();\n      });\n    }\n    return flatSequence;\n  }\n\n\n  function flatMapFactory(iterable, mapper, context){\n    var coerce=iterableClass(iterable);\n    return iterable.toSeq().map(\n      function(v, k){return coerce(mapper.call(context, v, k, iterable))}\n).flatten(true);\n  }\n\n\n  function interposeFactory(iterable, separator){\n    var interposedSequence=makeSequence(iterable);\n    interposedSequence.size=iterable.size&&iterable.size * 2 -1;\n    interposedSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k) \n        {return (!iterations||fn(separator, iterations++, this$0)!==false)&&\n        fn(v, iterations++, this$0)!==false},\n        reverse\n);\n      return iterations;\n    };\n    interposedSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      var step;\n      return new Iterator(function(){\n        if(!step||iterations % 2){\n          step=iterator.next();\n          if(step.done){\n            return step;\n          }\n        }\n        return iterations % 2 ?\n          iteratorValue(type, iterations++, separator) :\n          iteratorValue(type, iterations++, step.value, step);\n      });\n    };\n    return interposedSequence;\n  }\n\n\n  function sortFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    var isKeyedIterable=isKeyed(iterable);\n    var index=0;\n    var entries=iterable.toSeq().map(\n      function(v, k){return [k, v, index++, mapper ? mapper(v, k, iterable):v]}\n).toArray();\n    entries.sort(function(a, b){return comparator(a[3], b[3])||a[2] - b[2]}).forEach(\n      isKeyedIterable ?\n      function(v, i){ entries[i].length=2; } :\n      function(v, i){ entries[i]=v[1]; }\n);\n    return isKeyedIterable ? KeyedSeq(entries) :\n      isIndexed(iterable) ? IndexedSeq(entries) :\n      SetSeq(entries);\n  }\n\n\n  function maxFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    if(mapper){\n      var entry=iterable.toSeq()\n        .map(function(v, k){return [v, mapper(v, k, iterable)]})\n        .reduce(function(a, b){return maxCompare(comparator, a[1], b[1]) ? b:a});\n      return entry&&entry[0];\n    }else{\n      return iterable.reduce(function(a, b){return maxCompare(comparator, a, b) ? b:a});\n    }\n  }\n\n  function maxCompare(comparator, a, b){\n    var comp=comparator(b, a);\n    // b is considered the new max if the comparator declares them equal, but\n    // they are not equal and b is in fact a nullish value.\n    return (comp===0&&b!==a&&(b===undefined||b===null||b!==b))||comp > 0;\n  }\n\n\n  function zipWithFactory(keyIter, zipper, iters){\n    var zipSequence=makeSequence(keyIter);\n    zipSequence.size=new ArraySeq(iters).map(function(i){return i.size}).min();\n    // Note: this a generic base implementation of __iterate in terms of\n    // __iterator which may be more generically useful in the future.\n    zipSequence.__iterate=function(fn, reverse){\n      \n      // indexed:\n      var iterator=this.__iterator(ITERATE_VALUES, reverse);\n      var step;\n      var iterations=0;\n      while (!(step=iterator.next()).done){\n        if(fn(step.value, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n    zipSequence.__iteratorUncached=function(type, reverse){\n      var iterators=iters.map(function(i)\n        {return (i=Iterable(i), getIterator(reverse ? i.reverse():i))}\n);\n      var iterations=0;\n      var isDone=false;\n      return new Iterator(function(){\n        var steps;\n        if(!isDone){\n          steps=iterators.map(function(i){return i.next()});\n          isDone=steps.some(function(s){return s.done});\n        }\n        if(isDone){\n          return iteratorDone();\n        }\n        return iteratorValue(\n          type,\n          iterations++,\n          zipper.apply(null, steps.map(function(s){return s.value}))\n);\n      });\n    };\n    return zipSequence\n  }\n\n\n  // #pragma Helper Functions\n\n  function reify(iter, seq){\n    return isSeq(iter) ? seq:iter.constructor(seq);\n  }\n\n  function validateEntry(entry){\n    if(entry!==Object(entry)){\n      throw new TypeError('Expected [K, V] tuple: ' + entry);\n    }\n  }\n\n  function resolveSize(iter){\n    assertNotInfinite(iter.size);\n    return ensureSize(iter);\n  }\n\n  function iterableClass(iterable){\n    return isKeyed(iterable) ? KeyedIterable :\n      isIndexed(iterable) ? IndexedIterable :\n      SetIterable;\n  }\n\n  function makeSequence(iterable){\n    return Object.create(\n      (\n        isKeyed(iterable) ? KeyedSeq :\n        isIndexed(iterable) ? IndexedSeq :\n        SetSeq\n).prototype\n);\n  }\n\n  function cacheResultThrough(){\n    if(this._iter.cacheResult){\n      this._iter.cacheResult();\n      this.size=this._iter.size;\n      return this;\n    }else{\n      return Seq.prototype.cacheResult.call(this);\n    }\n  }\n\n  function defaultComparator(a, b){\n    return a > b ? 1:a < b ? -1:0;\n  }\n\n  function forceIterator(keyPath){\n    var iter=getIterator(keyPath);\n    if(!iter){\n      // Array might not be iterable in this environment, so we need a fallback\n      // to our wrapped type.\n      if(!isArrayLike(keyPath)){\n        throw new TypeError('Expected iterable or array-like: ' + keyPath);\n      }\n      iter=getIterator(Iterable(keyPath));\n    }\n    return iter;\n  }\n\n  createClass(Record, KeyedCollection);\n\n    function Record(defaultValues, name){\n      var hasInitialized;\n\n      var RecordType=function Record(values){\n        if(values instanceof RecordType){\n          return values;\n        }\n        if(!(this instanceof RecordType)){\n          return new RecordType(values);\n        }\n        if(!hasInitialized){\n          hasInitialized=true;\n          var keys=Object.keys(defaultValues);\n          setProps(RecordTypePrototype, keys);\n          RecordTypePrototype.size=keys.length;\n          RecordTypePrototype._name=name;\n          RecordTypePrototype._keys=keys;\n          RecordTypePrototype._defaultValues=defaultValues;\n        }\n        this._map=Map(values);\n      };\n\n      var RecordTypePrototype=RecordType.prototype=Object.create(RecordPrototype);\n      RecordTypePrototype.constructor=RecordType;\n\n      return RecordType;\n    }\n\n    Record.prototype.toString=function(){\n      return this.__toString(recordName(this) + ' {', '}');\n    };\n\n    // @pragma Access\n\n    Record.prototype.has=function(k){\n      return this._defaultValues.hasOwnProperty(k);\n    };\n\n    Record.prototype.get=function(k, notSetValue){\n      if(!this.has(k)){\n        return notSetValue;\n      }\n      var defaultVal=this._defaultValues[k];\n      return this._map ? this._map.get(k, defaultVal):defaultVal;\n    };\n\n    // @pragma Modification\n\n    Record.prototype.clear=function(){\n      if(this.__ownerID){\n        this._map&&this._map.clear();\n        return this;\n      }\n      var RecordType=this.constructor;\n      return RecordType._empty||(RecordType._empty=makeRecord(this, emptyMap()));\n    };\n\n    Record.prototype.set=function(k, v){\n      if(!this.has(k)){\n        throw new Error('Cannot set unknown key \"' + k + '\" on ' + recordName(this));\n      }\n      var newMap=this._map&&this._map.set(k, v);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.remove=function(k){\n      if(!this.has(k)){\n        return this;\n      }\n      var newMap=this._map&&this._map.remove(k);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Record.prototype.__iterator=function(type, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterator(type, reverse);\n    };\n\n    Record.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterate(fn, reverse);\n    };\n\n    Record.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map&&this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return makeRecord(this, newMap, ownerID);\n    };\n\n\n  var RecordPrototype=Record.prototype;\n  RecordPrototype[DELETE]=RecordPrototype.remove;\n  RecordPrototype.deleteIn=\n  RecordPrototype.removeIn=MapPrototype.removeIn;\n  RecordPrototype.merge=MapPrototype.merge;\n  RecordPrototype.mergeWith=MapPrototype.mergeWith;\n  RecordPrototype.mergeIn=MapPrototype.mergeIn;\n  RecordPrototype.mergeDeep=MapPrototype.mergeDeep;\n  RecordPrototype.mergeDeepWith=MapPrototype.mergeDeepWith;\n  RecordPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  RecordPrototype.setIn=MapPrototype.setIn;\n  RecordPrototype.update=MapPrototype.update;\n  RecordPrototype.updateIn=MapPrototype.updateIn;\n  RecordPrototype.withMutations=MapPrototype.withMutations;\n  RecordPrototype.asMutable=MapPrototype.asMutable;\n  RecordPrototype.asImmutable=MapPrototype.asImmutable;\n\n\n  function makeRecord(likeRecord, map, ownerID){\n    var record=Object.create(Object.getPrototypeOf(likeRecord));\n    record._map=map;\n    record.__ownerID=ownerID;\n    return record;\n  }\n\n  function recordName(record){\n    return record._name||record.constructor.name||'Record';\n  }\n\n  function setProps(prototype, names){\n    try {\n      names.forEach(setProp.bind(undefined, prototype));\n    } catch (error){\n      // Object.defineProperty failed. Probably IE8.\n    }\n  }\n\n  function setProp(prototype, name){\n    Object.defineProperty(prototype, name, {\n      get: function(){\n        return this.get(name);\n      },\n      set: function(value){\n        invariant(this.__ownerID, 'Cannot set on an immutable record.');\n        this.set(name, value);\n      }\n    });\n  }\n\n  createClass(Set, SetCollection);\n\n    // @pragma Construction\n\n    function Set(value){\n      return value===null||value===undefined ? emptySet() :\n        isSet(value)&&!isOrdered(value) ? value :\n        emptySet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    Set.of=function(){\n      return this(arguments);\n    };\n\n    Set.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    Set.prototype.toString=function(){\n      return this.__toString('Set {', '}');\n    };\n\n    // @pragma Access\n\n    Set.prototype.has=function(value){\n      return this._map.has(value);\n    };\n\n    // @pragma Modification\n\n    Set.prototype.add=function(value){\n      return updateSet(this, this._map.set(value, true));\n    };\n\n    Set.prototype.remove=function(value){\n      return updateSet(this, this._map.remove(value));\n    };\n\n    Set.prototype.clear=function(){\n      return updateSet(this, this._map.clear());\n    };\n\n    // @pragma Composition\n\n    Set.prototype.union=function(){var iters=SLICE$0.call(arguments, 0);\n      iters=iters.filter(function(x){return x.size!==0});\n      if(iters.length===0){\n        return this;\n      }\n      if(this.size===0&&!this.__ownerID&&iters.length===1){\n        return this.constructor(iters[0]);\n      }\n      return this.withMutations(function(set){\n        for (var ii=0; ii < iters.length; ii++){\n          SetIterable(iters[ii]).forEach(function(value){return set.add(value)});\n        }\n      });\n    };\n\n    Set.prototype.intersect=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(!iters.every(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.subtract=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(iters.some(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.merge=function(){\n      return this.union.apply(this, arguments);\n    };\n\n    Set.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return this.union.apply(this, iters);\n    };\n\n    Set.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator));\n    };\n\n    Set.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator, mapper));\n    };\n\n    Set.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Set.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._map.__iterate(function(_, k){return fn(k, k, this$0)}, reverse);\n    };\n\n    Set.prototype.__iterator=function(type, reverse){\n      return this._map.map(function(_, k){return k}).__iterator(type, reverse);\n    };\n\n    Set.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return this.__make(newMap, ownerID);\n    };\n\n\n  function isSet(maybeSet){\n    return !!(maybeSet&&maybeSet[IS_SET_SENTINEL]);\n  }\n\n  Set.isSet=isSet;\n\n  var IS_SET_SENTINEL='@@__IMMUTABLE_SET__@@';\n\n  var SetPrototype=Set.prototype;\n  SetPrototype[IS_SET_SENTINEL]=true;\n  SetPrototype[DELETE]=SetPrototype.remove;\n  SetPrototype.mergeDeep=SetPrototype.merge;\n  SetPrototype.mergeDeepWith=SetPrototype.mergeWith;\n  SetPrototype.withMutations=MapPrototype.withMutations;\n  SetPrototype.asMutable=MapPrototype.asMutable;\n  SetPrototype.asImmutable=MapPrototype.asImmutable;\n\n  SetPrototype.__empty=emptySet;\n  SetPrototype.__make=makeSet;\n\n  function updateSet(set, newMap){\n    if(set.__ownerID){\n      set.size=newMap.size;\n      set._map=newMap;\n      return set;\n    }\n    return newMap===set._map ? set :\n      newMap.size===0 ? set.__empty() :\n      set.__make(newMap);\n  }\n\n  function makeSet(map, ownerID){\n    var set=Object.create(SetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_SET;\n  function emptySet(){\n    return EMPTY_SET||(EMPTY_SET=makeSet(emptyMap()));\n  }\n\n  createClass(OrderedSet, Set);\n\n    // @pragma Construction\n\n    function OrderedSet(value){\n      return value===null||value===undefined ? emptyOrderedSet() :\n        isOrderedSet(value) ? value :\n        emptyOrderedSet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    OrderedSet.of=function(){\n      return this(arguments);\n    };\n\n    OrderedSet.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    OrderedSet.prototype.toString=function(){\n      return this.__toString('OrderedSet {', '}');\n    };\n\n\n  function isOrderedSet(maybeOrderedSet){\n    return isSet(maybeOrderedSet)&&isOrdered(maybeOrderedSet);\n  }\n\n  OrderedSet.isOrderedSet=isOrderedSet;\n\n  var OrderedSetPrototype=OrderedSet.prototype;\n  OrderedSetPrototype[IS_ORDERED_SENTINEL]=true;\n\n  OrderedSetPrototype.__empty=emptyOrderedSet;\n  OrderedSetPrototype.__make=makeOrderedSet;\n\n  function makeOrderedSet(map, ownerID){\n    var set=Object.create(OrderedSetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_ORDERED_SET;\n  function emptyOrderedSet(){\n    return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()));\n  }\n\n  createClass(Stack, IndexedCollection);\n\n    // @pragma Construction\n\n    function Stack(value){\n      return value===null||value===undefined ? emptyStack() :\n        isStack(value) ? value :\n        emptyStack().unshiftAll(value);\n    }\n\n    Stack.of=function(){\n      return this(arguments);\n    };\n\n    Stack.prototype.toString=function(){\n      return this.__toString('Stack [', ']');\n    };\n\n    // @pragma Access\n\n    Stack.prototype.get=function(index, notSetValue){\n      var head=this._head;\n      index=wrapIndex(this, index);\n      while (head&&index--){\n        head=head.next;\n      }\n      return head ? head.value:notSetValue;\n    };\n\n    Stack.prototype.peek=function(){\n      return this._head&&this._head.value;\n    };\n\n    // @pragma Modification\n\n    Stack.prototype.push=function(){\n      if(arguments.length===0){\n        return this;\n      }\n      var newSize=this.size + arguments.length;\n      var head=this._head;\n      for (var ii=arguments.length - 1; ii >=0; ii--){\n        head={\n          value: arguments[ii],\n          next: head\n        };\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pushAll=function(iter){\n      iter=IndexedIterable(iter);\n      if(iter.size===0){\n        return this;\n      }\n      assertNotInfinite(iter.size);\n      var newSize=this.size;\n      var head=this._head;\n      iter.reverse().forEach(function(value){\n        newSize++;\n        head={\n          value: value,\n          next: head\n        };\n      });\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pop=function(){\n      return this.slice(1);\n    };\n\n    Stack.prototype.unshift=function(){\n      return this.push.apply(this, arguments);\n    };\n\n    Stack.prototype.unshiftAll=function(iter){\n      return this.pushAll(iter);\n    };\n\n    Stack.prototype.shift=function(){\n      return this.pop.apply(this, arguments);\n    };\n\n    Stack.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._head=undefined;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyStack();\n    };\n\n    Stack.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      var resolvedBegin=resolveBegin(begin, this.size);\n      var resolvedEnd=resolveEnd(end, this.size);\n      if(resolvedEnd!==this.size){\n        // super.slice(begin, end);\n        return IndexedCollection.prototype.slice.call(this, begin, end);\n      }\n      var newSize=this.size - resolvedBegin;\n      var head=this._head;\n      while (resolvedBegin--){\n        head=head.next;\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    // @pragma Mutability\n\n    Stack.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeStack(this.size, this._head, ownerID, this.__hash);\n    };\n\n    // @pragma Iteration\n\n    Stack.prototype.__iterate=function(fn, reverse){\n      if(reverse){\n        return this.reverse().__iterate(fn);\n      }\n      var iterations=0;\n      var node=this._head;\n      while (node){\n        if(fn(node.value, iterations++, this)===false){\n          break;\n        }\n        node=node.next;\n      }\n      return iterations;\n    };\n\n    Stack.prototype.__iterator=function(type, reverse){\n      if(reverse){\n        return this.reverse().__iterator(type);\n      }\n      var iterations=0;\n      var node=this._head;\n      return new Iterator(function(){\n        if(node){\n          var value=node.value;\n          node=node.next;\n          return iteratorValue(type, iterations++, value);\n        }\n        return iteratorDone();\n      });\n    };\n\n\n  function isStack(maybeStack){\n    return !!(maybeStack&&maybeStack[IS_STACK_SENTINEL]);\n  }\n\n  Stack.isStack=isStack;\n\n  var IS_STACK_SENTINEL='@@__IMMUTABLE_STACK__@@';\n\n  var StackPrototype=Stack.prototype;\n  StackPrototype[IS_STACK_SENTINEL]=true;\n  StackPrototype.withMutations=MapPrototype.withMutations;\n  StackPrototype.asMutable=MapPrototype.asMutable;\n  StackPrototype.asImmutable=MapPrototype.asImmutable;\n  StackPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n  function makeStack(size, head, ownerID, hash){\n    var map=Object.create(StackPrototype);\n    map.size=size;\n    map._head=head;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_STACK;\n  function emptyStack(){\n    return EMPTY_STACK||(EMPTY_STACK=makeStack(0));\n  }\n\n  \n  function mixin(ctor, methods){\n    var keyCopier=function(key){ ctor.prototype[key]=methods[key]; };\n    Object.keys(methods).forEach(keyCopier);\n    Object.getOwnPropertySymbols&&\n      Object.getOwnPropertySymbols(methods).forEach(keyCopier);\n    return ctor;\n  }\n\n  Iterable.Iterator=Iterator;\n\n  mixin(Iterable, {\n\n    // ### Conversion to other types\n\n    toArray: function(){\n      assertNotInfinite(this.size);\n      var array=new Array(this.size||0);\n      this.valueSeq().__iterate(function(v, i){ array[i]=v; });\n      return array;\n    },\n\n    toIndexedSeq: function(){\n      return new ToIndexedSequence(this);\n    },\n\n    toJS: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJS==='function' ? value.toJS():value}\n).__toJS();\n    },\n\n    toJSON: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJSON==='function' ? value.toJSON():value}\n).__toJS();\n    },\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, true);\n    },\n\n    toMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Map(this.toKeyedSeq());\n    },\n\n    toObject: function(){\n      assertNotInfinite(this.size);\n      var object={};\n      this.__iterate(function(v, k){ object[k]=v; });\n      return object;\n    },\n\n    toOrderedMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedMap(this.toKeyedSeq());\n    },\n\n    toOrderedSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedSet(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Set(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSetSeq: function(){\n      return new ToSetSequence(this);\n    },\n\n    toSeq: function(){\n      return isIndexed(this) ? this.toIndexedSeq() :\n        isKeyed(this) ? this.toKeyedSeq() :\n        this.toSetSeq();\n    },\n\n    toStack: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Stack(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toList: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return List(isKeyed(this) ? this.valueSeq():this);\n    },\n\n\n    // ### Common JavaScript methods and properties\n\n    toString: function(){\n      return '[Iterable]';\n    },\n\n    __toString: function(head, tail){\n      if(this.size===0){\n        return head + tail;\n      }\n      return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    concat: function(){var values=SLICE$0.call(arguments, 0);\n      return reify(this, concatFactory(this, values));\n    },\n\n    includes: function(searchValue){\n      return this.some(function(value){return is(value, searchValue)});\n    },\n\n    entries: function(){\n      return this.__iterator(ITERATE_ENTRIES);\n    },\n\n    every: function(predicate, context){\n      assertNotInfinite(this.size);\n      var returnValue=true;\n      this.__iterate(function(v, k, c){\n        if(!predicate.call(context, v, k, c)){\n          returnValue=false;\n          return false;\n        }\n      });\n      return returnValue;\n    },\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, true));\n    },\n\n    find: function(predicate, context, notSetValue){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[1]:notSetValue;\n    },\n\n    findEntry: function(predicate, context){\n      var found;\n      this.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          found=[k, v];\n          return false;\n        }\n      });\n      return found;\n    },\n\n    findLastEntry: function(predicate, context){\n      return this.toSeq().reverse().findEntry(predicate, context);\n    },\n\n    forEach: function(sideEffect, context){\n      assertNotInfinite(this.size);\n      return this.__iterate(context ? sideEffect.bind(context):sideEffect);\n    },\n\n    join: function(separator){\n      assertNotInfinite(this.size);\n      separator=separator!==undefined ? '' + separator:',';\n      var joined='';\n      var isFirst=true;\n      this.__iterate(function(v){\n        isFirst ? (isFirst=false):(joined +=separator);\n        joined +=v!==null&&v!==undefined ? v.toString():'';\n      });\n      return joined;\n    },\n\n    keys: function(){\n      return this.__iterator(ITERATE_KEYS);\n    },\n\n    map: function(mapper, context){\n      return reify(this, mapFactory(this, mapper, context));\n    },\n\n    reduce: function(reducer, initialReduction, context){\n      assertNotInfinite(this.size);\n      var reduction;\n      var useFirst;\n      if(arguments.length < 2){\n        useFirst=true;\n      }else{\n        reduction=initialReduction;\n      }\n      this.__iterate(function(v, k, c){\n        if(useFirst){\n          useFirst=false;\n          reduction=v;\n        }else{\n          reduction=reducer.call(context, reduction, v, k, c);\n        }\n      });\n      return reduction;\n    },\n\n    reduceRight: function(reducer, initialReduction, context){\n      var reversed=this.toKeyedSeq().reverse();\n      return reversed.reduce.apply(reversed, arguments);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, true));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, true));\n    },\n\n    some: function(predicate, context){\n      return !this.every(not(predicate), context);\n    },\n\n    sort: function(comparator){\n      return reify(this, sortFactory(this, comparator));\n    },\n\n    values: function(){\n      return this.__iterator(ITERATE_VALUES);\n    },\n\n\n    // ### More sequential methods\n\n    butLast: function(){\n      return this.slice(0, -1);\n    },\n\n    isEmpty: function(){\n      return this.size!==undefined ? this.size===0:!this.some(function(){return true});\n    },\n\n    count: function(predicate, context){\n      return ensureSize(\n        predicate ? this.toSeq().filter(predicate, context):this\n);\n    },\n\n    countBy: function(grouper, context){\n      return countByFactory(this, grouper, context);\n    },\n\n    equals: function(other){\n      return deepEqual(this, other);\n    },\n\n    entrySeq: function(){\n      var iterable=this;\n      if(iterable._cache){\n        // We cache as an entries array, so we can just return the cache!\n        return new ArraySeq(iterable._cache);\n      }\n      var entriesSequence=iterable.toSeq().map(entryMapper).toIndexedSeq();\n      entriesSequence.fromEntrySeq=function(){return iterable.toSeq()};\n      return entriesSequence;\n    },\n\n    filterNot: function(predicate, context){\n      return this.filter(not(predicate), context);\n    },\n\n    findLast: function(predicate, context, notSetValue){\n      return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);\n    },\n\n    first: function(){\n      return this.find(returnTrue);\n    },\n\n    flatMap: function(mapper, context){\n      return reify(this, flatMapFactory(this, mapper, context));\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, true));\n    },\n\n    fromEntrySeq: function(){\n      return new FromEntriesSequence(this);\n    },\n\n    get: function(searchKey, notSetValue){\n      return this.find(function(_, key){return is(key, searchKey)}, undefined, notSetValue);\n    },\n\n    getIn: function(searchKeyPath, notSetValue){\n      var nested=this;\n      // Note: in an ES6 environment, we would prefer:\n      // for (var key of searchKeyPath){\n      var iter=forceIterator(searchKeyPath);\n      var step;\n      while (!(step=iter.next()).done){\n        var key=step.value;\n        nested=nested&&nested.get ? nested.get(key, NOT_SET):NOT_SET;\n        if(nested===NOT_SET){\n          return notSetValue;\n        }\n      }\n      return nested;\n    },\n\n    groupBy: function(grouper, context){\n      return groupByFactory(this, grouper, context);\n    },\n\n    has: function(searchKey){\n      return this.get(searchKey, NOT_SET)!==NOT_SET;\n    },\n\n    hasIn: function(searchKeyPath){\n      return this.getIn(searchKeyPath, NOT_SET)!==NOT_SET;\n    },\n\n    isSubset: function(iter){\n      iter=typeof iter.includes==='function' ? iter:Iterable(iter);\n      return this.every(function(value){return iter.includes(value)});\n    },\n\n    isSuperset: function(iter){\n      iter=typeof iter.isSubset==='function' ? iter:Iterable(iter);\n      return iter.isSubset(this);\n    },\n\n    keySeq: function(){\n      return this.toSeq().map(keyMapper).toIndexedSeq();\n    },\n\n    last: function(){\n      return this.toSeq().reverse().first();\n    },\n\n    max: function(comparator){\n      return maxFactory(this, comparator);\n    },\n\n    maxBy: function(mapper, comparator){\n      return maxFactory(this, comparator, mapper);\n    },\n\n    min: function(comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator);\n    },\n\n    minBy: function(mapper, comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator, mapper);\n    },\n\n    rest: function(){\n      return this.slice(1);\n    },\n\n    skip: function(amount){\n      return this.slice(Math.max(0, amount));\n    },\n\n    skipLast: function(amount){\n      return reify(this, this.toSeq().reverse().skip(amount).reverse());\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, true));\n    },\n\n    skipUntil: function(predicate, context){\n      return this.skipWhile(not(predicate), context);\n    },\n\n    sortBy: function(mapper, comparator){\n      return reify(this, sortFactory(this, comparator, mapper));\n    },\n\n    take: function(amount){\n      return this.slice(0, Math.max(0, amount));\n    },\n\n    takeLast: function(amount){\n      return reify(this, this.toSeq().reverse().take(amount).reverse());\n    },\n\n    takeWhile: function(predicate, context){\n      return reify(this, takeWhileFactory(this, predicate, context));\n    },\n\n    takeUntil: function(predicate, context){\n      return this.takeWhile(not(predicate), context);\n    },\n\n    valueSeq: function(){\n      return this.toIndexedSeq();\n    },\n\n\n    // ### Hashable Object\n\n    hashCode: function(){\n      return this.__hash||(this.__hash=hashIterable(this));\n    }\n\n\n    // ### Internal\n\n    // abstract __iterate(fn, reverse)\n\n    // abstract __iterator(type, reverse)\n  });\n\n  // var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  // var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  // var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  // var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  var IterablePrototype=Iterable.prototype;\n  IterablePrototype[IS_ITERABLE_SENTINEL]=true;\n  IterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.values;\n  IterablePrototype.__toJS=IterablePrototype.toArray;\n  IterablePrototype.__toStringMapper=quoteString;\n  IterablePrototype.inspect=\n  IterablePrototype.toSource=function(){ return this.toString(); };\n  IterablePrototype.chain=IterablePrototype.flatMap;\n  IterablePrototype.contains=IterablePrototype.includes;\n\n  // Temporary warning about using length\n  (function (){\n    try {\n      Object.defineProperty(IterablePrototype, 'length', {\n        get: function (){\n          if(!Iterable.noLengthWarning){\n            var stack;\n            try {\n              throw new Error();\n            } catch (error){\n              stack=error.stack;\n            }\n            if(stack.indexOf('_wrapObject')===-1){\n              console&&console.warn&&console.warn(\n                'iterable.length has been deprecated, '+\n                'use iterable.size or iterable.count(). '+\n                'This warning will become a silent error in a future version. ' +\n                stack\n);\n              return this.size;\n            }\n          }\n        }\n      });\n    } catch (e){}\n  })();\n\n\n\n  mixin(KeyedIterable, {\n\n    // ### More sequential methods\n\n    flip: function(){\n      return reify(this, flipFactory(this));\n    },\n\n    findKey: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry&&entry[0];\n    },\n\n    findLastKey: function(predicate, context){\n      return this.toSeq().reverse().findKey(predicate, context);\n    },\n\n    keyOf: function(searchValue){\n      return this.findKey(function(value){return is(value, searchValue)});\n    },\n\n    lastKeyOf: function(searchValue){\n      return this.findLastKey(function(value){return is(value, searchValue)});\n    },\n\n    mapEntries: function(mapper, context){var this$0=this;\n      var iterations=0;\n      return reify(this,\n        this.toSeq().map(\n          function(v, k){return mapper.call(context, [k, v], iterations++, this$0)}\n).fromEntrySeq()\n);\n    },\n\n    mapKeys: function(mapper, context){var this$0=this;\n      return reify(this,\n        this.toSeq().flip().map(\n          function(k, v){return mapper.call(context, k, v, this$0)}\n).flip()\n);\n    }\n\n  });\n\n  var KeyedIterablePrototype=KeyedIterable.prototype;\n  KeyedIterablePrototype[IS_KEYED_SENTINEL]=true;\n  KeyedIterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.entries;\n  KeyedIterablePrototype.__toJS=IterablePrototype.toObject;\n  KeyedIterablePrototype.__toStringMapper=function(v, k){return JSON.stringify(k) + ': ' + quoteString(v)};\n\n\n\n  mixin(IndexedIterable, {\n\n    // ### Conversion to other types\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, false);\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, false));\n    },\n\n    findIndex: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[0]:-1;\n    },\n\n    indexOf: function(searchValue){\n      var key=this.toKeyedSeq().keyOf(searchValue);\n      return key===undefined ? -1:key;\n    },\n\n    lastIndexOf: function(searchValue){\n      var key=this.toKeyedSeq().reverse().keyOf(searchValue);\n      return key===undefined ? -1:key;\n\n      // var index=\n      // return this.toSeq().reverse().indexOf(searchValue);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, false));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, false));\n    },\n\n    splice: function(index, removeNum ){\n      var numArgs=arguments.length;\n      removeNum=Math.max(removeNum | 0, 0);\n      if(numArgs===0||(numArgs===2&&!removeNum)){\n        return this;\n      }\n      // If index is negative, it should resolve relative to the size of the\n      // collection. However size may be expensive to compute if not cached, so\n      // only call count() if the number is in fact negative.\n      index=resolveBegin(index, index < 0 ? this.count():this.size);\n      var spliced=this.slice(0, index);\n      return reify(\n        this,\n        numArgs===1 ?\n          spliced :\n          spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))\n);\n    },\n\n\n    // ### More collection methods\n\n    findLastIndex: function(predicate, context){\n      var key=this.toKeyedSeq().findLastKey(predicate, context);\n      return key===undefined ? -1:key;\n    },\n\n    first: function(){\n      return this.get(0);\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, false));\n    },\n\n    get: function(index, notSetValue){\n      index=wrapIndex(this, index);\n      return (index < 0||(this.size===Infinity||\n          (this.size!==undefined&&index > this.size))) ?\n        notSetValue :\n        this.find(function(_, key){return key===index}, undefined, notSetValue);\n    },\n\n    has: function(index){\n      index=wrapIndex(this, index);\n      return index >=0&&(this.size!==undefined ?\n        this.size===Infinity||index < this.size :\n        this.indexOf(index)!==-1\n);\n    },\n\n    interpose: function(separator){\n      return reify(this, interposeFactory(this, separator));\n    },\n\n    interleave: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      var zipped=zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);\n      var interleaved=zipped.flatten(true);\n      if(zipped.size){\n        interleaved.size=zipped.size * iterables.length;\n      }\n      return reify(this, interleaved);\n    },\n\n    last: function(){\n      return this.get(-1);\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, false));\n    },\n\n    zip: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      return reify(this, zipWithFactory(this, defaultZipper, iterables));\n    },\n\n    zipWith: function(zipper){\n      var iterables=arrCopy(arguments);\n      iterables[0]=this;\n      return reify(this, zipWithFactory(this, zipper, iterables));\n    }\n\n  });\n\n  IndexedIterable.prototype[IS_INDEXED_SENTINEL]=true;\n  IndexedIterable.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n\n  mixin(SetIterable, {\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    get: function(value, notSetValue){\n      return this.has(value) ? value:notSetValue;\n    },\n\n    includes: function(value){\n      return this.has(value);\n    },\n\n\n    // ### More sequential methods\n\n    keySeq: function(){\n      return this.valueSeq();\n    }\n\n  });\n\n  SetIterable.prototype.has=IterablePrototype.includes;\n\n\n  // Mixin subclasses\n\n  mixin(KeyedSeq, KeyedIterable.prototype);\n  mixin(IndexedSeq, IndexedIterable.prototype);\n  mixin(SetSeq, SetIterable.prototype);\n\n  mixin(KeyedCollection, KeyedIterable.prototype);\n  mixin(IndexedCollection, IndexedIterable.prototype);\n  mixin(SetCollection, SetIterable.prototype);\n\n\n  // #pragma Helper functions\n\n  function keyMapper(v, k){\n    return k;\n  }\n\n  function entryMapper(v, k){\n    return [k, v];\n  }\n\n  function not(predicate){\n    return function(){\n      return !predicate.apply(this, arguments);\n    }\n  }\n\n  function neg(predicate){\n    return function(){\n      return -predicate.apply(this, arguments);\n    }\n  }\n\n  function quoteString(value){\n    return typeof value==='string' ? JSON.stringify(value):value;\n  }\n\n  function defaultZipper(){\n    return arrCopy(arguments);\n  }\n\n  function defaultNegComparator(a, b){\n    return a < b ? 1:a > b ? -1:0;\n  }\n\n  function hashIterable(iterable){\n    if(iterable.size===Infinity){\n      return 0;\n    }\n    var ordered=isOrdered(iterable);\n    var keyed=isKeyed(iterable);\n    var h=ordered ? 1:0;\n    var size=iterable.__iterate(\n      keyed ?\n        ordered ?\n          function(v, k){ h=31 * h + hashMerge(hash(v), hash(k)) | 0; } :\n          function(v, k){ h=h + hashMerge(hash(v), hash(k)) | 0; } :\n        ordered ?\n          function(v){ h=31 * h + hash(v) | 0; } :\n          function(v){ h=h + hash(v) | 0; }\n);\n    return murmurHashOfSize(size, h);\n  }\n\n  function murmurHashOfSize(size, h){\n    h=imul(h, 0xCC9E2D51);\n    h=imul(h << 15 | h >>> -15, 0x1B873593);\n    h=imul(h << 13 | h >>> -13, 5);\n    h=(h + 0xE6546B64 | 0) ^ size;\n    h=imul(h ^ h >>> 16, 0x85EBCA6B);\n    h=imul(h ^ h >>> 13, 0xC2B2AE35);\n    h=smi(h ^ h >>> 16);\n    return h;\n  }\n\n  function hashMerge(a, b){\n    return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int\n  }\n\n  var Immutable={\n\n    Iterable: Iterable,\n\n    Seq: Seq,\n    Collection: Collection,\n    Map: Map,\n    OrderedMap: OrderedMap,\n    List: List,\n    Stack: Stack,\n    Set: Set,\n    OrderedSet: OrderedSet,\n\n    Record: Record,\n    Range: Range,\n    Repeat: Repeat,\n\n    is: is,\n    fromJS: fromJS\n\n  };\n\n  return Immutable;\n\n}));\n\n//# sourceURL=webpack:///./node_modules/draft-js-focus-plugin/node_modules/immutable/dist/immutable.js?");
}),
"./node_modules/draft-js-image-plugin/lib/Image/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _clsx=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n\nvar _clsx2=_interopRequireDefault(_clsx);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _objectWithoutProperties(obj, keys){ var target={}; for (var i in obj){ if(keys.indexOf(i) >=0) continue; if(!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i]=obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; }\n\nvar Image=function (_Component){\n  _inherits(Image, _Component);\n\n  function Image(){\n    _classCallCheck(this, Image);\n\n    return _possibleConstructorReturn(this, (Image.__proto__||Object.getPrototypeOf(Image)).apply(this, arguments));\n  }\n\n  _createClass(Image, [{\n    key: 'render',\n    value: function render(){\n      var _props=this.props,\n          block=_props.block,\n          className=_props.className,\n          _props$theme=_props.theme,\n          theme=_props$theme===undefined ? {}:_props$theme,\n          otherProps=_objectWithoutProperties(_props, ['block', 'className', 'theme']);\n      // leveraging destructuring to omit certain properties from props\n\n\n      var blockProps=otherProps.blockProps,\n          customStyleMap=otherProps.customStyleMap,\n          customStyleFn=otherProps.customStyleFn,\n          decorator=otherProps.decorator,\n          forceSelection=otherProps.forceSelection,\n          offsetKey=otherProps.offsetKey,\n          selection=otherProps.selection,\n          tree=otherProps.tree,\n          contentState=otherProps.contentState,\n          blockStyleFn=otherProps.blockStyleFn,\n          elementProps=_objectWithoutProperties(otherProps, ['blockProps', 'customStyleMap', 'customStyleFn', 'decorator', 'forceSelection', 'offsetKey', 'selection', 'tree', 'contentState', 'blockStyleFn']);\n\n      var combinedClassName=(0, _clsx2.default)(theme.image, className);\n\n      var _contentState$getEnti=contentState.getEntity(block.getEntityAt(0)).getData(),\n          src=_contentState$getEnti.src;\n\n      return _react2.default.createElement('img', _extends({}, elementProps, {\n        src: src,\n        role: 'presentation',\n        className: combinedClassName\n      }));\n    }\n  }]);\n\n  return Image;\n}(_react.Component);\n\nexports.default=Image;\n\n//# sourceURL=webpack:///./node_modules/draft-js-image-plugin/lib/Image/index.js?");
}),
"./node_modules/draft-js-image-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.Image=undefined;\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _addImage=__webpack_require__( \"./node_modules/draft-js-image-plugin/lib/modifiers/addImage.js\");\n\nvar _addImage2=_interopRequireDefault(_addImage);\n\nvar _Image=__webpack_require__( \"./node_modules/draft-js-image-plugin/lib/Image/index.js\");\n\nvar _Image2=_interopRequireDefault(_Image);\n\nvar _imageStyles={\n  \"image\": \"draftJsEmojiPlugin__image__192TI\"\n};\n\nvar _imageStyles2=_interopRequireDefault(_imageStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nvar defaultTheme={\n  image: _imageStyles2.default.image\n};\n\nexports.default=function (){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var theme=config.theme ? config.theme:defaultTheme;\n  var Image=config.imageComponent||_Image2.default;\n  if(config.decorator){\n    Image=config.decorator(Image);\n  }\n  var ThemedImage=function ThemedImage(props){\n    return _react2.default.createElement(Image, _extends({}, props, { theme: theme }));\n  };\n  return {\n    blockRendererFn: function blockRendererFn(block, _ref){\n      var getEditorState=_ref.getEditorState;\n\n      if(block.getType()==='atomic'){\n        var contentState=getEditorState().getCurrentContent();\n        var entity=block.getEntityAt(0);\n        if(!entity) return null;\n        var type=contentState.getEntity(entity).getType();\n        if(type==='IMAGE'||type==='image'){\n          return {\n            component: ThemedImage,\n            editable: false\n          };\n        }\n        return null;\n      }\n\n      return null;\n    },\n    addImage: _addImage2.default\n  };\n};\n\nvar Image=exports.Image=_Image2.default;\n\n//# sourceURL=webpack:///./node_modules/draft-js-image-plugin/lib/index.js?");
}),
"./node_modules/draft-js-image-plugin/lib/modifiers/addImage.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nexports.default=function (editorState, url, extraData){\n  var urlType='IMAGE';\n  var contentState=editorState.getCurrentContent();\n  var contentStateWithEntity=contentState.createEntity(urlType, 'IMMUTABLE', _extends({}, extraData, { src: url }));\n  var entityKey=contentStateWithEntity.getLastCreatedEntityKey();\n  var newEditorState=_draftJs.AtomicBlockUtils.insertAtomicBlock(editorState, entityKey, ' ');\n  return _draftJs.EditorState.forceSelection(newEditorState, newEditorState.getCurrentContent().getSelectionAfter());\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-image-plugin/lib/modifiers/addImage.js?");
}),
"./node_modules/draft-js-inline-toolbar-plugin/lib/components/Separator/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _separatorStyles={\n  \"separator\": \"draftJsToolbar__separator__3U7qt\"\n};\n\nvar _separatorStyles2=_interopRequireDefault(_separatorStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (_ref){\n  var _ref$className=_ref.className,\n      className=_ref$className===undefined ? _separatorStyles2.default.separator:_ref$className;\n  return _react2.default.createElement('div', { className: className });\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-inline-toolbar-plugin/lib/components/Separator/index.js?");
}),
"./node_modules/draft-js-inline-toolbar-plugin/lib/components/Toolbar/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _draftJsButtons=__webpack_require__( \"./node_modules/draft-js-buttons/lib/index.js\");\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nvar Toolbar=function (_React$Component){\n  _inherits(Toolbar, _React$Component);\n\n  function Toolbar(){\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, Toolbar);\n\n    for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref=Toolbar.__proto__||Object.getPrototypeOf(Toolbar)).call.apply(_ref, [this].concat(args))), _this), _this.state={\n      isVisible: false,\n      position: undefined,\n\n      \n      overrideContent: undefined\n    }, _this.onOverrideContent=function (overrideContent){\n      _this.setState({ overrideContent: overrideContent });\n    }, _this.onSelectionChanged=function (){\n      // need to wait a tick for window.getSelection() to be accurate\n      // when focusing editor with already present selection\n      setTimeout(function (){\n        if(!_this.toolbar) return;\n\n        // The editor root should be two levels above the node from\n        // `getEditorRef`. In case this changes in the future, we\n        // attempt to find the node dynamically by traversing upwards.\n        var editorRef=_this.props.store.getItem('getEditorRef')();\n        if(!editorRef) return;\n\n        // This keeps backwards compatibility with React 15\n        var editorRoot=editorRef.refs&&editorRef.refs.editor ? editorRef.refs.editor:editorRef.editor;\n        while (editorRoot.className.indexOf('DraftEditor-root')===-1){\n          editorRoot=editorRoot.parentNode;\n        }\n        var editorRootRect=editorRoot.getBoundingClientRect();\n\n        var selectionRect=(0, _draftJs.getVisibleSelectionRect)(window);\n        if(!selectionRect) return;\n\n        // The toolbar shouldn't be positioned directly on top of the selected text,\n        // but rather with a small offset so the caret doesn't overlap with the text.\n        var extraTopOffset=-5;\n\n        var position={\n          top: editorRoot.offsetTop - _this.toolbar.offsetHeight + (selectionRect.top - editorRootRect.top) + extraTopOffset,\n          left: editorRoot.offsetLeft + (selectionRect.left - editorRootRect.left) + selectionRect.width / 2\n        };\n        _this.setState({ position: position });\n      });\n    }, _this.handleToolbarRef=function (node){\n      _this.toolbar=node;\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(Toolbar, [{\n    key: 'componentWillMount',\n    value: function componentWillMount(){\n      this.props.store.subscribeToItem('selection', this.onSelectionChanged);\n    }\n  }, {\n    key: 'componentWillUnmount',\n    value: function componentWillUnmount(){\n      this.props.store.unsubscribeFromItem('selection', this.onSelectionChanged);\n    }\n\n    \n\n  }, {\n    key: 'getStyle',\n    value: function getStyle(){\n      var store=this.props.store;\n      var _state=this.state,\n          overrideContent=_state.overrideContent,\n          position=_state.position;\n\n      var selection=store.getItem('getEditorState')().getSelection();\n      // overrideContent could for example contain a text input, hence we always show overrideContent\n      // TODO: Test readonly mode and possibly set isVisible to false if the editor is readonly\n      var isVisible = !selection.isCollapsed()&&selection.getHasFocus()||overrideContent;\n      var style=_extends({}, position);\n\n      if(isVisible){\n        style.visibility='visible';\n        style.transform='translate(-50%) scale(1)';\n        style.transition='transform 0.15s cubic-bezier(.3,1.2,.2,1)';\n      }else{\n        style.transform='translate(-50%) scale(0)';\n        style.visibility='hidden';\n      }\n\n      return style;\n    }\n  }, {\n    key: 'render',\n    value: function render(){\n      var _props=this.props,\n          theme=_props.theme,\n          store=_props.store;\n      var OverrideContent=this.state.overrideContent;\n\n      var childrenProps={\n        theme: theme.buttonStyles,\n        getEditorState: store.getItem('getEditorState'),\n        setEditorState: store.getItem('setEditorState'),\n        onOverrideContent: this.onOverrideContent\n      };\n\n      return _react2.default.createElement(\n        'div',\n        {\n          className: theme.toolbarStyles.toolbar,\n          style: this.getStyle(),\n          ref: this.handleToolbarRef\n        },\n        OverrideContent ? _react2.default.createElement(OverrideContent, childrenProps):this.props.children(childrenProps)\n);\n    }\n  }]);\n\n  return Toolbar;\n}(_react2.default.Component);\n\nToolbar.defaultProps={\n  children: function children(externalProps){\n    return (\n      // may be use React.Fragment instead of div to improve perfomance after React 16\n      _react2.default.createElement(\n        'div',\n        null,\n        _react2.default.createElement(_draftJsButtons.ItalicButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.BoldButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.UnderlineButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.CodeButton, externalProps)\n)\n);\n  }\n};\nexports.default=Toolbar;\n\n//# sourceURL=webpack:///./node_modules/draft-js-inline-toolbar-plugin/lib/components/Toolbar/index.js?");
}),
"./node_modules/draft-js-inline-toolbar-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.Separator=undefined;\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createStore=__webpack_require__( \"./node_modules/draft-js-inline-toolbar-plugin/lib/utils/createStore.js\");\n\nvar _createStore2=_interopRequireDefault(_createStore);\n\nvar _Toolbar=__webpack_require__( \"./node_modules/draft-js-inline-toolbar-plugin/lib/components/Toolbar/index.js\");\n\nvar _Toolbar2=_interopRequireDefault(_Toolbar);\n\nvar _Separator=__webpack_require__( \"./node_modules/draft-js-inline-toolbar-plugin/lib/components/Separator/index.js\");\n\nvar _Separator2=_interopRequireDefault(_Separator);\n\nvar _buttonStyles={\n  \"buttonWrapper\": \"draftJsToolbar__buttonWrapper__1Dmqh\",\n  \"button\": \"draftJsToolbar__button__qi1gf\",\n  \"active\": \"draftJsToolbar__active__3qcpF\"\n};\n\nvar _buttonStyles2=_interopRequireDefault(_buttonStyles);\n\nvar _toolbarStyles={\n  \"toolbar\": \"draftJsToolbar__toolbar__dNtBH\"\n};\n\nvar _toolbarStyles2=_interopRequireDefault(_toolbarStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var defaultTheme={ buttonStyles: _buttonStyles2.default, toolbarStyles: _toolbarStyles2.default };\n\n  var store=(0, _createStore2.default)({\n    isVisible: false\n  });\n\n  var _config$theme=config.theme,\n      theme=_config$theme===undefined ? defaultTheme:_config$theme;\n\n\n  var InlineToolbar=function InlineToolbar(props){\n    return _react2.default.createElement(_Toolbar2.default, _extends({}, props, { store: store, theme: theme }));\n  };\n\n  return {\n    initialize: function initialize(_ref){\n      var getEditorState=_ref.getEditorState,\n          setEditorState=_ref.setEditorState,\n          getEditorRef=_ref.getEditorRef;\n\n      store.updateItem('getEditorState', getEditorState);\n      store.updateItem('setEditorState', setEditorState);\n      store.updateItem('getEditorRef', getEditorRef);\n    },\n    // Re-Render the text-toolbar on selection change\n    onChange: function onChange(editorState){\n      store.updateItem('selection', editorState.getSelection());\n      return editorState;\n    },\n    InlineToolbar: InlineToolbar\n  };\n};\n\nexports.Separator=_Separator2.default;\n\n//# sourceURL=webpack:///./node_modules/draft-js-inline-toolbar-plugin/lib/index.js?");
}),
"./node_modules/draft-js-inline-toolbar-plugin/lib/utils/createStore.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar createStore=function createStore(initialState){\n  var state=initialState||{};\n  var listeners={};\n\n  var subscribeToItem=function subscribeToItem(key, callback){\n    listeners[key]=listeners[key]||[];\n    listeners[key].push(callback);\n  };\n\n  var unsubscribeFromItem=function unsubscribeFromItem(key, callback){\n    listeners[key]=listeners[key].filter(function (listener){\n      return listener!==callback;\n    });\n  };\n\n  var updateItem=function updateItem(key, item){\n    state=_extends({}, state, _defineProperty({}, key, item));\n    if(listeners[key]){\n      listeners[key].forEach(function (listener){\n        return listener(state[key]);\n      });\n    }\n  };\n\n  var getItem=function getItem(key){\n    return state[key];\n  };\n\n  return {\n    subscribeToItem: subscribeToItem,\n    unsubscribeFromItem: unsubscribeFromItem,\n    updateItem: updateItem,\n    getItem: getItem\n  };\n};\n\nexports.default=createStore;\n\n//# sourceURL=webpack:///./node_modules/draft-js-inline-toolbar-plugin/lib/utils/createStore.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/MultiDecorator.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _immutable=__webpack_require__( \"./node_modules/draft-js-plugins-editor/node_modules/immutable/dist/immutable.js\");\n\nvar _immutable2=_interopRequireDefault(_immutable);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nvar KEY_SEPARATOR='-';\n\nvar MultiDecorator=function (){\n  function MultiDecorator(decorators){\n    _classCallCheck(this, MultiDecorator);\n\n    this.decorators=_immutable2.default.List(decorators);\n  }\n\n  \n\n\n  _createClass(MultiDecorator, [{\n    key: 'getDecorations',\n    value: function getDecorations(block, contentState){\n      var decorations=new Array(block.getText().length).fill(null);\n\n      this.decorators.forEach(function (decorator, i){\n        var subDecorations=decorator.getDecorations(block, contentState);\n\n        subDecorations.forEach(function (key, offset){\n          if(!key){\n            return;\n          }\n\n          decorations[offset]=i + KEY_SEPARATOR + key;\n        });\n      });\n\n      return _immutable2.default.List(decorations);\n    }\n\n    \n\n  }, {\n    key: 'getComponentForKey',\n    value: function getComponentForKey(key){\n      var decorator=this.getDecoratorForKey(key);\n      return decorator.getComponentForKey(MultiDecorator.getInnerKey(key));\n    }\n\n    \n\n  }, {\n    key: 'getPropsForKey',\n    value: function getPropsForKey(key){\n      var decorator=this.getDecoratorForKey(key);\n      return decorator.getPropsForKey(MultiDecorator.getInnerKey(key));\n    }\n\n    \n\n  }, {\n    key: 'getDecoratorForKey',\n    value: function getDecoratorForKey(key){\n      var parts=key.split(KEY_SEPARATOR);\n      var index=Number(parts[0]);\n\n      return this.decorators.get(index);\n    }\n\n    \n\n  }], [{\n    key: 'getInnerKey',\n    value: function getInnerKey(key){\n      var parts=key.split(KEY_SEPARATOR);\n      return parts.slice(1).join(KEY_SEPARATOR);\n    }\n  }]);\n\n  return MultiDecorator;\n}();\n\nmodule.exports=MultiDecorator;\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/MultiDecorator.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/createCompositeDecorator.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; \n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _immutable=__webpack_require__( \"./node_modules/draft-js-plugins-editor/node_modules/immutable/dist/immutable.js\");\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (decorators, getEditorState, setEditorState){\n  var convertedDecorators=(0, _immutable.List)(decorators).map(function (decorator){\n    var Component=decorator.component;\n    var DecoratedComponent=function DecoratedComponent(props){\n      return _react2.default.createElement(Component, _extends({}, props, { getEditorState: getEditorState, setEditorState: setEditorState }));\n    };\n    return _extends({}, decorator, {\n      component: DecoratedComponent\n    });\n  }).toJS();\n\n  return new _draftJs.CompositeDecorator(convertedDecorators);\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/createCompositeDecorator.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/defaultKeyBindings.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nexports.default={\n  keyBindingFn: function keyBindingFn(event){\n    return (0, _draftJs.getDefaultKeyBinding)(event);\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/defaultKeyBindings.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/defaultKeyCommands.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nexports.default={\n  // handle delete commands\n  handleKeyCommand: function handleKeyCommand (command, editorState, eventTimeStamp, _ref){\n    var setEditorState=_ref.setEditorState;\n\n    var newState=void 0;\n    switch (command){\n      case 'backspace':\n      case 'backspace-word':\n      case 'backspace-to-start-of-line':\n        newState=_draftJs.RichUtils.onBackspace(editorState);\n        break;\n      case 'delete':\n      case 'delete-word':\n      case 'delete-to-end-of-block':\n        newState=_draftJs.RichUtils.onDelete(editorState);\n        break;\n      default:\n        return 'not-handled';\n    }\n\n    if(newState!=null){\n      setEditorState(newState);\n      return 'handled';\n    }\n\n    return 'not-handled';\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/defaultKeyCommands.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _propTypes=__webpack_require__( \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2=_interopRequireDefault(_propTypes);\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _immutable=__webpack_require__( \"./node_modules/draft-js-plugins-editor/node_modules/immutable/dist/immutable.js\");\n\nvar _proxies=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/proxies.js\");\n\nvar _proxies2=_interopRequireDefault(_proxies);\n\nvar _moveSelectionToEnd=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/moveSelectionToEnd.js\");\n\nvar _moveSelectionToEnd2=_interopRequireDefault(_moveSelectionToEnd);\n\nvar _resolveDecorators=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/resolveDecorators.js\");\n\nvar _resolveDecorators2=_interopRequireDefault(_resolveDecorators);\n\nvar _defaultKeyBindings=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/defaultKeyBindings.js\");\n\nvar _defaultKeyBindings2=_interopRequireDefault(_defaultKeyBindings);\n\nvar _defaultKeyCommands=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/defaultKeyCommands.js\");\n\nvar _defaultKeyCommands2=_interopRequireDefault(_defaultKeyCommands);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _objectWithoutProperties(obj, keys){ var target={}; for (var i in obj){ if(keys.indexOf(i) >=0) continue; if(!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i]=obj[i]; } return target; }\n\nfunction _toConsumableArray(arr){ if(Array.isArray(arr)){ for (var i=0, arr2=Array(arr.length); i < arr.length; i++){ arr2[i]=arr[i]; } return arr2; }else{ return Array.from(arr); }}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nvar getDecoratorLength=function getDecoratorLength(obj){\n  var decorators=void 0;\n\n  if(obj.decorators!=null){\n    decorators=obj.decorators;\n  }else if(obj._decorators!=null){\n    decorators=obj._decorators;\n  }\n\n  return decorators.size!=null ? decorators.size:decorators.length;\n};\n\n\n\nvar PluginEditor=function (_Component){\n  _inherits(PluginEditor, _Component);\n\n  function PluginEditor(props){\n    _classCallCheck(this, PluginEditor);\n\n    var _this=_possibleConstructorReturn(this, (PluginEditor.__proto__||Object.getPrototypeOf(PluginEditor)).call(this, props));\n\n    _initialiseProps.call(_this);\n\n    var plugins=[_this.props].concat(_toConsumableArray(_this.resolvePlugins()));\n    plugins.forEach(function (plugin){\n      if(typeof plugin.initialize!=='function') return;\n      plugin.initialize(_this.getPluginMethods());\n    });\n\n    // attach proxy methods like `focus` or `blur`\n    _proxies2.default.forEach(function (method){\n      _this[method]=function (){\n        var _this$editor;\n\n        return (_this$editor=_this.editor)[method].apply(_this$editor, arguments);\n      };\n    });\n\n    _this.state={}; // TODO for Nik: ask ben why this is relevent\n    return _this;\n  }\n\n  _createClass(PluginEditor, [{\n    key: 'componentWillMount',\n    value: function componentWillMount(){\n      var decorator=(0, _resolveDecorators2.default)(this.props, this.getEditorState, this.onChange);\n\n      var editorState=_draftJs.EditorState.set(this.props.editorState, { decorator: decorator });\n      this.onChange((0, _moveSelectionToEnd2.default)(editorState));\n    }\n  }, {\n    key: 'componentWillReceiveProps',\n    value: function componentWillReceiveProps(next){\n      var curr=this.props;\n      var currDec=curr.editorState.getDecorator();\n      var nextDec=next.editorState.getDecorator();\n\n      // If there is not current decorator, there's nothing to carry over to the next editor state\n      if(!currDec) return;\n      // If the current decorator is the same as the new one, don't call onChange to avoid infinite loops\n      if(currDec===nextDec) return;\n      // If the old and the new decorator are the same, but no the same object, also don't call onChange to avoid infinite loops\n      if(currDec&&nextDec&&getDecoratorLength(currDec)===getDecoratorLength(nextDec)) return;\n\n      var editorState=_draftJs.EditorState.set(next.editorState, { decorator: currDec });\n      this.onChange((0, _moveSelectionToEnd2.default)(editorState));\n    }\n  }, {\n    key: 'componentWillUnmount',\n    value: function componentWillUnmount(){\n      var _this2=this;\n\n      this.resolvePlugins().forEach(function (plugin){\n        if(plugin.willUnmount){\n          plugin.willUnmount({\n            getEditorState: _this2.getEditorState,\n            setEditorState: _this2.onChange\n          });\n        }\n      });\n    }\n\n    // Cycle through the plugins, changing the editor state with what the plugins\n    // changed (or didn't)\n\n\n    // TODO further down in render we use readOnly={this.props.readOnly||this.state.readOnly}. Ask Ben why readOnly is here just from the props? Why would plugins use this instead of just taking it from getProps?\n\n  }, {\n    key: 'render',\n    value: function render(){\n      var _this3=this;\n\n      var pluginHooks=this.createPluginHooks();\n      var customStyleMap=this.resolveCustomStyleMap();\n      var accessibilityProps=this.resolveAccessibilityProps();\n      var blockRenderMap=this.resolveblockRenderMap();\n      return _react2.default.createElement(_draftJs.Editor, _extends({}, this.props, accessibilityProps, pluginHooks, {\n        readOnly: this.props.readOnly||this.state.readOnly,\n        customStyleMap: customStyleMap,\n        blockRenderMap: blockRenderMap,\n        onChange: this.onChange,\n        editorState: this.props.editorState,\n        ref: function ref(element){\n          _this3.editor=element;\n        }\n      }));\n    }\n  }]);\n\n  return PluginEditor;\n}(_react.Component);\n\nPluginEditor.propTypes={\n  editorState: _propTypes2.default.object.isRequired,\n  onChange: _propTypes2.default.func.isRequired,\n  plugins: _propTypes2.default.array,\n  defaultKeyBindings: _propTypes2.default.bool,\n  defaultKeyCommands: _propTypes2.default.bool,\n  defaultBlockRenderMap: _propTypes2.default.bool,\n  customStyleMap: _propTypes2.default.object,\n  // eslint-disable-next-line react/no-unused-prop-types\n  decorators: _propTypes2.default.array\n};\nPluginEditor.defaultProps={\n  defaultBlockRenderMap: true,\n  defaultKeyBindings: true,\n  defaultKeyCommands: true,\n  customStyleMap: {},\n  plugins: [],\n  decorators: []\n};\n\nvar _initialiseProps=function _initialiseProps(){\n  var _this4=this;\n\n  this.onChange=function (editorState){\n    var newEditorState=editorState;\n    _this4.resolvePlugins().forEach(function (plugin){\n      if(plugin.onChange){\n        newEditorState=plugin.onChange(newEditorState, _this4.getPluginMethods());\n      }\n    });\n\n    if(_this4.props.onChange){\n      _this4.props.onChange(newEditorState, _this4.getPluginMethods());\n    }\n  };\n\n  this.getPlugins=function (){\n    return _this4.props.plugins.slice(0);\n  };\n\n  this.getProps=function (){\n    return _extends({}, _this4.props);\n  };\n\n  this.getReadOnly=function (){\n    return _this4.props.readOnly;\n  };\n\n  this.setReadOnly=function (readOnly){\n    if(readOnly!==_this4.state.readOnly) _this4.setState({ readOnly: readOnly });\n  };\n\n  this.getEditorRef=function (){\n    return _this4.editor;\n  };\n\n  this.getEditorState=function (){\n    return _this4.props.editorState;\n  };\n\n  this.getPluginMethods=function (){\n    return {\n      getPlugins: _this4.getPlugins,\n      getProps: _this4.getProps,\n      setEditorState: _this4.onChange,\n      getEditorState: _this4.getEditorState,\n      getReadOnly: _this4.getReadOnly,\n      setReadOnly: _this4.setReadOnly,\n      getEditorRef: _this4.getEditorRef\n    };\n  };\n\n  this.createEventHooks=function (methodName, plugins){\n    return function (){\n      for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n        args[_key]=arguments[_key];\n      }\n\n      var newArgs=[].slice.apply(args);\n      newArgs.push(_this4.getPluginMethods());\n\n      return plugins.some(function (plugin){\n        return typeof plugin[methodName]==='function'&&plugin[methodName].apply(plugin, _toConsumableArray(newArgs))===true;\n      });\n    };\n  };\n\n  this.createHandleHooks=function (methodName, plugins){\n    return function (){\n      for (var _len2=arguments.length, args=Array(_len2), _key2=0; _key2 < _len2; _key2++){\n        args[_key2]=arguments[_key2];\n      }\n\n      var newArgs=[].slice.apply(args);\n      newArgs.push(_this4.getPluginMethods());\n\n      return plugins.some(function (plugin){\n        return typeof plugin[methodName]==='function'&&plugin[methodName].apply(plugin, _toConsumableArray(newArgs))==='handled';\n      }) ? 'handled':'not-handled';\n    };\n  };\n\n  this.createFnHooks=function (methodName, plugins){\n    return function (){\n      for (var _len3=arguments.length, args=Array(_len3), _key3=0; _key3 < _len3; _key3++){\n        args[_key3]=arguments[_key3];\n      }\n\n      var newArgs=[].slice.apply(args);\n\n      newArgs.push(_this4.getPluginMethods());\n\n      if(methodName==='blockRendererFn'){\n        var block={ props: {}};\n        plugins.forEach(function (plugin){\n          if(typeof plugin[methodName]!=='function') return;\n          var result=plugin[methodName].apply(plugin, _toConsumableArray(newArgs));\n          if(result!==undefined&&result!==null){\n            var pluginProps=result.props,\n                pluginRest=_objectWithoutProperties(result, ['props']); // eslint-disable-line no-use-before-define\n\n\n            var _block=block,\n                props=_block.props,\n                rest=_objectWithoutProperties(_block, ['props']); // eslint-disable-line no-use-before-define\n\n\n            block=_extends({}, rest, pluginRest, { props: _extends({}, props, pluginProps) });\n          }\n        });\n\n        return block.component ? block:false;\n      }else if(methodName==='blockStyleFn'){\n        var styles=void 0;\n        plugins.forEach(function (plugin){\n          if(typeof plugin[methodName]!=='function') return;\n          var result=plugin[methodName].apply(plugin, _toConsumableArray(newArgs));\n          if(result!==undefined&&result!==null){\n            styles=(styles ? styles + ' ':'') + result;\n          }\n        });\n\n        return styles||'';\n      }\n\n      var result=void 0;\n      var wasHandled=plugins.some(function (plugin){\n        if(typeof plugin[methodName]!=='function') return false;\n        result=plugin[methodName].apply(plugin, _toConsumableArray(newArgs));\n        return result!==undefined;\n      });\n      return wasHandled ? result:false;\n    };\n  };\n\n  this.createPluginHooks=function (){\n    var pluginHooks={};\n    var eventHookKeys=[];\n    var handleHookKeys=[];\n    var fnHookKeys=[];\n    var plugins=[_this4.props].concat(_toConsumableArray(_this4.resolvePlugins()));\n\n    plugins.forEach(function (plugin){\n      Object.keys(plugin).forEach(function (attrName){\n        if(attrName==='onChange') return;\n\n        // if `attrName` has been added as a hook key already, ignore this one\n        if(eventHookKeys.indexOf(attrName)!==-1||fnHookKeys.indexOf(attrName)!==-1) return;\n\n        var isEventHookKey=attrName.indexOf('on')===0;\n        if(isEventHookKey){\n          eventHookKeys.push(attrName);\n          return;\n        }\n\n        var isHandleHookKey=attrName.indexOf('handle')===0;\n        if(isHandleHookKey){\n          handleHookKeys.push(attrName);\n          return;\n        }\n\n        // checks if `attrName` ends with 'Fn'\n        var isFnHookKey=attrName.length - 2===attrName.indexOf('Fn');\n        if(isFnHookKey){\n          fnHookKeys.push(attrName);\n        }\n      });\n    });\n\n    eventHookKeys.forEach(function (attrName){\n      pluginHooks[attrName]=_this4.createEventHooks(attrName, plugins);\n    });\n\n    handleHookKeys.forEach(function (attrName){\n      pluginHooks[attrName]=_this4.createHandleHooks(attrName, plugins);\n    });\n\n    fnHookKeys.forEach(function (attrName){\n      pluginHooks[attrName]=_this4.createFnHooks(attrName, plugins);\n    });\n\n    return pluginHooks;\n  };\n\n  this.resolvePlugins=function (){\n    var plugins=_this4.props.plugins.slice(0);\n    if(_this4.props.defaultKeyBindings===true){\n      plugins.push(_defaultKeyBindings2.default);\n    }\n    if(_this4.props.defaultKeyCommands===true){\n      plugins.push(_defaultKeyCommands2.default);\n    }\n\n    return plugins;\n  };\n\n  this.resolveCustomStyleMap=function (){\n    return _this4.props.plugins.filter(function (plug){\n      return plug.customStyleMap!==undefined;\n    }).map(function (plug){\n      return plug.customStyleMap;\n    }).concat([_this4.props.customStyleMap]).reduce(function (styles, style){\n      return _extends({}, styles, style);\n    }, {});\n  };\n\n  this.resolveblockRenderMap=function (){\n    var blockRenderMap=_this4.props.plugins.filter(function (plug){\n      return plug.blockRenderMap!==undefined;\n    }).reduce(function (maps, plug){\n      return maps.merge(plug.blockRenderMap);\n    }, (0, _immutable.Map)({}));\n    if(_this4.props.defaultBlockRenderMap){\n      blockRenderMap=_draftJs.DefaultDraftBlockRenderMap.merge(blockRenderMap);\n    }\n    if(_this4.props.blockRenderMap){\n      blockRenderMap=blockRenderMap.merge(_this4.props.blockRenderMap);\n    }\n    return blockRenderMap;\n  };\n\n  this.resolveAccessibilityProps=function (){\n    var accessibilityProps={};\n    var plugins=[_this4.props].concat(_toConsumableArray(_this4.resolvePlugins()));\n    plugins.forEach(function (plugin){\n      if(typeof plugin.getAccessibilityProps!=='function') return;\n      var props=plugin.getAccessibilityProps();\n      var popupProps={};\n\n      if(accessibilityProps.ariaHasPopup===undefined){\n        popupProps.ariaHasPopup=props.ariaHasPopup;\n      }else if(props.ariaHasPopup==='true'){\n        popupProps.ariaHasPopup='true';\n      }\n\n      if(accessibilityProps.ariaExpanded===undefined){\n        popupProps.ariaExpanded=props.ariaExpanded;\n      }else if(props.ariaExpanded===true){\n        popupProps.ariaExpanded=true;\n      }\n\n      accessibilityProps=_extends({}, accessibilityProps, props, popupProps);\n    });\n\n    return accessibilityProps;\n  };\n};\n\nexports.default=PluginEditor;\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/index.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/moveSelectionToEnd.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\n\nvar moveSelectionToEnd=function moveSelectionToEnd(editorState){\n  var content=editorState.getCurrentContent();\n  var blockMap=content.getBlockMap();\n\n  var key=blockMap.last().getKey();\n  var length=blockMap.last().getLength();\n\n  var selection=new _draftJs.SelectionState({\n    anchorKey: key,\n    anchorOffset: length,\n    focusKey: key,\n    focusOffset: length\n  });\n\n  return _draftJs.EditorState.acceptSelection(editorState, selection);\n};\n\nexports.default=moveSelectionToEnd;\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/moveSelectionToEnd.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/proxies.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n// the list of available proxies can be found here: https://github.com/facebook/draft-js/blob/master/src/component/base/DraftEditor.react.js#L120\nvar proxies=['focus', 'blur', 'setMode', 'exitCurrentMode', 'restoreEditorDOM', 'setRenderGuard', 'removeRenderGuard', 'setClipboard', 'getClipboard', 'getEditorKey', 'update', 'onDragEnter', 'onDragLeave'];\n\nexports.default=proxies;\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/proxies.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/Editor/resolveDecorators.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _immutable=__webpack_require__( \"./node_modules/draft-js-plugins-editor/node_modules/immutable/dist/immutable.js\");\n\nvar _createCompositeDecorator=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/createCompositeDecorator.js\");\n\nvar _createCompositeDecorator2=_interopRequireDefault(_createCompositeDecorator);\n\nvar _MultiDecorator=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/MultiDecorator.js\");\n\nvar _MultiDecorator2=_interopRequireDefault(_MultiDecorator);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _toConsumableArray(arr){ if(Array.isArray(arr)){ for (var i=0, arr2=Array(arr.length); i < arr.length; i++){ arr2[i]=arr[i]; } return arr2; }else{ return Array.from(arr); }}\n\n// Return true if decorator implements the DraftDecoratorType interface\n// @see https://github.com/facebook/draft-js/blob/master/src/model/decorators/DraftDecoratorType.js\nvar decoratorIsCustom=function decoratorIsCustom(decorator){\n  return typeof decorator.getDecorations==='function'&&typeof decorator.getComponentForKey==='function'&&typeof decorator.getPropsForKey==='function';\n};\n\nvar getDecoratorsFromProps=function getDecoratorsFromProps(_ref){\n  var decorators=_ref.decorators,\n      plugins=_ref.plugins;\n  return (0, _immutable.List)([{ decorators: decorators }].concat(_toConsumableArray(plugins))).filter(function (plugin){\n    return plugin.decorators!==undefined;\n  }).flatMap(function (plugin){\n    return plugin.decorators;\n  });\n};\n\nvar resolveDecorators=function resolveDecorators(props, getEditorState, onChange){\n  var decorators=getDecoratorsFromProps(props);\n  var compositeDecorator=(0, _createCompositeDecorator2.default)(decorators.filter(function (decorator){\n    return !decoratorIsCustom(decorator);\n  }), getEditorState, onChange);\n\n  var customDecorators=decorators.filter(function (decorator){\n    return decoratorIsCustom(decorator);\n  });\n\n  return new _MultiDecorator2.default(customDecorators.push(compositeDecorator));\n};\n\nexports.default=resolveDecorators;\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/Editor/resolveDecorators.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.composeDecorators=exports.createEditorStateWithText=exports.default=undefined;\n\nvar _createEditorStateWithText=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/utils/createEditorStateWithText.js\");\n\nvar _createEditorStateWithText2=_interopRequireDefault(_createEditorStateWithText);\n\nvar _composeDecorators=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/utils/composeDecorators.js\");\n\nvar _composeDecorators2=_interopRequireDefault(_composeDecorators);\n\nvar _Editor=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/Editor/index.js\");\n\nvar _Editor2=_interopRequireDefault(_Editor);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=_Editor2.default;\n\n// eslint-disable-next-line import/no-named-as-default\n\nvar createEditorStateWithText=exports.createEditorStateWithText=_createEditorStateWithText2.default;\nvar composeDecorators=exports.composeDecorators=_composeDecorators2.default;\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/index.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/utils/composeDecorators.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\n// This code originally has been copied from Recompose\n// https://github.com/acdlite/recompose/blob/master/src/packages/recompose/compose.js\nexports.default=function (){\n  for (var _len=arguments.length, funcs=Array(_len), _key=0; _key < _len; _key++){\n    funcs[_key]=arguments[_key];\n  }\n\n  if(funcs.length===0){\n    return function (arg){\n      return arg;\n    };\n  }\n\n  if(funcs.length===1){\n    return funcs[0];\n  }\n\n  var last=funcs[funcs.length - 1];\n  return function (){\n    var result=last.apply(undefined, arguments);\n    for (var i=funcs.length - 2; i >=0; i -=1){\n      var f=funcs[i];\n      result=f(result);\n    }\n    return result;\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/utils/composeDecorators.js?");
}),
"./node_modules/draft-js-plugins-editor/lib/utils/createEditorStateWithText.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nexports.default=function (text){\n  return _draftJs.EditorState.createWithContent(_draftJs.ContentState.createFromText(text));\n}; \n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/lib/utils/createEditorStateWithText.js?");
}),
"./node_modules/draft-js-plugins-editor/node_modules/immutable/dist/immutable.js":
(function(module, exports, __webpack_require__){
eval("\n\n(function (global, factory){\n   true ? module.exports=factory() :\n  undefined;\n}(this, function (){ 'use strict';var SLICE$0=Array.prototype.slice;\n\n  function createClass(ctor, superClass){\n    if(superClass){\n      ctor.prototype=Object.create(superClass.prototype);\n    }\n    ctor.prototype.constructor=ctor;\n  }\n\n  function Iterable(value){\n      return isIterable(value) ? value:Seq(value);\n    }\n\n\n  createClass(KeyedIterable, Iterable);\n    function KeyedIterable(value){\n      return isKeyed(value) ? value:KeyedSeq(value);\n    }\n\n\n  createClass(IndexedIterable, Iterable);\n    function IndexedIterable(value){\n      return isIndexed(value) ? value:IndexedSeq(value);\n    }\n\n\n  createClass(SetIterable, Iterable);\n    function SetIterable(value){\n      return isIterable(value)&&!isAssociative(value) ? value:SetSeq(value);\n    }\n\n\n\n  function isIterable(maybeIterable){\n    return !!(maybeIterable&&maybeIterable[IS_ITERABLE_SENTINEL]);\n  }\n\n  function isKeyed(maybeKeyed){\n    return !!(maybeKeyed&&maybeKeyed[IS_KEYED_SENTINEL]);\n  }\n\n  function isIndexed(maybeIndexed){\n    return !!(maybeIndexed&&maybeIndexed[IS_INDEXED_SENTINEL]);\n  }\n\n  function isAssociative(maybeAssociative){\n    return isKeyed(maybeAssociative)||isIndexed(maybeAssociative);\n  }\n\n  function isOrdered(maybeOrdered){\n    return !!(maybeOrdered&&maybeOrdered[IS_ORDERED_SENTINEL]);\n  }\n\n  Iterable.isIterable=isIterable;\n  Iterable.isKeyed=isKeyed;\n  Iterable.isIndexed=isIndexed;\n  Iterable.isAssociative=isAssociative;\n  Iterable.isOrdered=isOrdered;\n\n  Iterable.Keyed=KeyedIterable;\n  Iterable.Indexed=IndexedIterable;\n  Iterable.Set=SetIterable;\n\n\n  var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  // Used for setting prototype methods that IE8 chokes on.\n  var DELETE='delete';\n\n  // Constants describing the size of trie nodes.\n  var SHIFT=5; // Resulted in best performance after ______?\n  var SIZE=1 << SHIFT;\n  var MASK=SIZE - 1;\n\n  // A consistent shared value representing \"not set\" which equals nothing other\n  // than itself, and nothing that could be provided externally.\n  var NOT_SET={};\n\n  // Boolean references, Rough equivalent of `bool &`.\n  var CHANGE_LENGTH={ value: false };\n  var DID_ALTER={ value: false };\n\n  function MakeRef(ref){\n    ref.value=false;\n    return ref;\n  }\n\n  function SetRef(ref){\n    ref&&(ref.value=true);\n  }\n\n  // A function which returns a value representing an \"owner\" for transient writes\n  // to tries. The return value will only ever equal itself, and will not equal\n  // the return of any subsequent call of this function.\n  function OwnerID(){}\n\n  // http://jsperf.com/copy-array-inline\n  function arrCopy(arr, offset){\n    offset=offset||0;\n    var len=Math.max(0, arr.length - offset);\n    var newArr=new Array(len);\n    for (var ii=0; ii < len; ii++){\n      newArr[ii]=arr[ii + offset];\n    }\n    return newArr;\n  }\n\n  function ensureSize(iter){\n    if(iter.size===undefined){\n      iter.size=iter.__iterate(returnTrue);\n    }\n    return iter.size;\n  }\n\n  function wrapIndex(iter, index){\n    // This implements \"is array index\" which the ECMAString spec defines as:\n    //\n    //     A String property name P is an array index if and only if\n    //     ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal\n    //     to 2^32−1.\n    //\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects\n    if(typeof index!=='number'){\n      var uint32Index=index >>> 0; // N >>> 0 is shorthand for ToUint32\n      if('' + uint32Index!==index||uint32Index===4294967295){\n        return NaN;\n      }\n      index=uint32Index;\n    }\n    return index < 0 ? ensureSize(iter) + index:index;\n  }\n\n  function returnTrue(){\n    return true;\n  }\n\n  function wholeSlice(begin, end, size){\n    return (begin===0||(size!==undefined&&begin <=-size))&&\n      (end===undefined||(size!==undefined&&end >=size));\n  }\n\n  function resolveBegin(begin, size){\n    return resolveIndex(begin, size, 0);\n  }\n\n  function resolveEnd(end, size){\n    return resolveIndex(end, size, size);\n  }\n\n  function resolveIndex(index, size, defaultIndex){\n    return index===undefined ?\n      defaultIndex :\n      index < 0 ?\n        Math.max(0, size + index) :\n        size===undefined ?\n          index :\n          Math.min(size, index);\n  }\n\n  \n\n  var ITERATE_KEYS=0;\n  var ITERATE_VALUES=1;\n  var ITERATE_ENTRIES=2;\n\n  var REAL_ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL='@@iterator';\n\n  var ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL;\n\n\n  function Iterator(next){\n      this.next=next;\n    }\n\n    Iterator.prototype.toString=function(){\n      return '[Iterator]';\n    };\n\n\n  Iterator.KEYS=ITERATE_KEYS;\n  Iterator.VALUES=ITERATE_VALUES;\n  Iterator.ENTRIES=ITERATE_ENTRIES;\n\n  Iterator.prototype.inspect=\n  Iterator.prototype.toSource=function (){ return this.toString(); }\n  Iterator.prototype[ITERATOR_SYMBOL]=function (){\n    return this;\n  };\n\n\n  function iteratorValue(type, k, v, iteratorResult){\n    var value=type===0 ? k:type===1 ? v:[k, v];\n    iteratorResult ? (iteratorResult.value=value):(iteratorResult={\n      value: value, done: false\n    });\n    return iteratorResult;\n  }\n\n  function iteratorDone(){\n    return { value: undefined, done: true };\n  }\n\n  function hasIterator(maybeIterable){\n    return !!getIteratorFn(maybeIterable);\n  }\n\n  function isIterator(maybeIterator){\n    return maybeIterator&&typeof maybeIterator.next==='function';\n  }\n\n  function getIterator(iterable){\n    var iteratorFn=getIteratorFn(iterable);\n    return iteratorFn&&iteratorFn.call(iterable);\n  }\n\n  function getIteratorFn(iterable){\n    var iteratorFn=iterable&&(\n      (REAL_ITERATOR_SYMBOL&&iterable[REAL_ITERATOR_SYMBOL])||\n      iterable[FAUX_ITERATOR_SYMBOL]\n);\n    if(typeof iteratorFn==='function'){\n      return iteratorFn;\n    }\n  }\n\n  function isArrayLike(value){\n    return value&&typeof value.length==='number';\n  }\n\n  createClass(Seq, Iterable);\n    function Seq(value){\n      return value===null||value===undefined ? emptySequence() :\n        isIterable(value) ? value.toSeq():seqFromValue(value);\n    }\n\n    Seq.of=function(){\n      return Seq(arguments);\n    };\n\n    Seq.prototype.toSeq=function(){\n      return this;\n    };\n\n    Seq.prototype.toString=function(){\n      return this.__toString('Seq {', '}');\n    };\n\n    Seq.prototype.cacheResult=function(){\n      if(!this._cache&&this.__iterateUncached){\n        this._cache=this.entrySeq().toArray();\n        this.size=this._cache.length;\n      }\n      return this;\n    };\n\n    // abstract __iterateUncached(fn, reverse)\n\n    Seq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, true);\n    };\n\n    // abstract __iteratorUncached(type, reverse)\n\n    Seq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, true);\n    };\n\n\n\n  createClass(KeyedSeq, Seq);\n    function KeyedSeq(value){\n      return value===null||value===undefined ?\n        emptySequence().toKeyedSeq() :\n        isIterable(value) ?\n          (isKeyed(value) ? value.toSeq():value.fromEntrySeq()) :\n          keyedSeqFromValue(value);\n    }\n\n    KeyedSeq.prototype.toKeyedSeq=function(){\n      return this;\n    };\n\n\n\n  createClass(IndexedSeq, Seq);\n    function IndexedSeq(value){\n      return value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value.toIndexedSeq();\n    }\n\n    IndexedSeq.of=function(){\n      return IndexedSeq(arguments);\n    };\n\n    IndexedSeq.prototype.toIndexedSeq=function(){\n      return this;\n    };\n\n    IndexedSeq.prototype.toString=function(){\n      return this.__toString('Seq [', ']');\n    };\n\n    IndexedSeq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, false);\n    };\n\n    IndexedSeq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, false);\n    };\n\n\n\n  createClass(SetSeq, Seq);\n    function SetSeq(value){\n      return (\n        value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value\n).toSetSeq();\n    }\n\n    SetSeq.of=function(){\n      return SetSeq(arguments);\n    };\n\n    SetSeq.prototype.toSetSeq=function(){\n      return this;\n    };\n\n\n\n  Seq.isSeq=isSeq;\n  Seq.Keyed=KeyedSeq;\n  Seq.Set=SetSeq;\n  Seq.Indexed=IndexedSeq;\n\n  var IS_SEQ_SENTINEL='@@__IMMUTABLE_SEQ__@@';\n\n  Seq.prototype[IS_SEQ_SENTINEL]=true;\n\n\n\n  createClass(ArraySeq, IndexedSeq);\n    function ArraySeq(array){\n      this._array=array;\n      this.size=array.length;\n    }\n\n    ArraySeq.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._array[wrapIndex(this, index)]:notSetValue;\n    };\n\n    ArraySeq.prototype.__iterate=function(fn, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(array[reverse ? maxIndex - ii:ii], ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ArraySeq.prototype.__iterator=function(type, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      var ii=0;\n      return new Iterator(function() \n        {return ii > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, ii, array[reverse ? maxIndex - ii++:ii++])}\n);\n    };\n\n\n\n  createClass(ObjectSeq, KeyedSeq);\n    function ObjectSeq(object){\n      var keys=Object.keys(object);\n      this._object=object;\n      this._keys=keys;\n      this.size=keys.length;\n    }\n\n    ObjectSeq.prototype.get=function(key, notSetValue){\n      if(notSetValue!==undefined&&!this.has(key)){\n        return notSetValue;\n      }\n      return this._object[key];\n    };\n\n    ObjectSeq.prototype.has=function(key){\n      return this._object.hasOwnProperty(key);\n    };\n\n    ObjectSeq.prototype.__iterate=function(fn, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        if(fn(object[key], key, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ObjectSeq.prototype.__iterator=function(type, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, key, object[key]);\n      });\n    };\n\n  ObjectSeq.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(IterableSeq, IndexedSeq);\n    function IterableSeq(iterable){\n      this._iterable=iterable;\n      this.size=iterable.length||iterable.size;\n    }\n\n    IterableSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      var iterations=0;\n      if(isIterator(iterator)){\n        var step;\n        while (!(step=iterator.next()).done){\n          if(fn(step.value, iterations++, this)===false){\n            break;\n          }\n        }\n      }\n      return iterations;\n    };\n\n    IterableSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      if(!isIterator(iterator)){\n        return new Iterator(iteratorDone);\n      }\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step:iteratorValue(type, iterations++, step.value);\n      });\n    };\n\n\n\n  createClass(IteratorSeq, IndexedSeq);\n    function IteratorSeq(iterator){\n      this._iterator=iterator;\n      this._iteratorCache=[];\n    }\n\n    IteratorSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      while (iterations < cache.length){\n        if(fn(cache[iterations], iterations++, this)===false){\n          return iterations;\n        }\n      }\n      var step;\n      while (!(step=iterator.next()).done){\n        var val=step.value;\n        cache[iterations]=val;\n        if(fn(val, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n\n    IteratorSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      return new Iterator(function(){\n        if(iterations >=cache.length){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          cache[iterations]=step.value;\n        }\n        return iteratorValue(type, iterations, cache[iterations++]);\n      });\n    };\n\n\n\n\n  // # pragma Helper functions\n\n  function isSeq(maybeSeq){\n    return !!(maybeSeq&&maybeSeq[IS_SEQ_SENTINEL]);\n  }\n\n  var EMPTY_SEQ;\n\n  function emptySequence(){\n    return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]));\n  }\n\n  function keyedSeqFromValue(value){\n    var seq=\n      Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :\n      isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :\n      hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :\n      typeof value==='object' ? new ObjectSeq(value) :\n      undefined;\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of [k, v] entries, '+\n        'or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function indexedSeqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value);\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values: ' + value\n);\n    }\n    return seq;\n  }\n\n  function seqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value)||\n      (typeof value==='object'&&new ObjectSeq(value));\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values, or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function maybeIndexedSeqFromValue(value){\n    return (\n      isArrayLike(value) ? new ArraySeq(value) :\n      isIterator(value) ? new IteratorSeq(value) :\n      hasIterator(value) ? new IterableSeq(value) :\n      undefined\n);\n  }\n\n  function seqIterate(seq, fn, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        if(fn(entry[1], useKeys ? entry[0]:ii, seq)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    }\n    return seq.__iterateUncached(fn, reverse);\n  }\n\n  function seqIterator(seq, type, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, useKeys ? entry[0]:ii - 1, entry[1]);\n      });\n    }\n    return seq.__iteratorUncached(type, reverse);\n  }\n\n  function fromJS(json, converter){\n    return converter ?\n      fromJSWith(converter, json, '', {'': json}) :\n      fromJSDefault(json);\n  }\n\n  function fromJSWith(converter, json, key, parentJSON){\n    if(Array.isArray(json)){\n      return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    if(isPlainObj(json)){\n      return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    return json;\n  }\n\n  function fromJSDefault(json){\n    if(Array.isArray(json)){\n      return IndexedSeq(json).map(fromJSDefault).toList();\n    }\n    if(isPlainObj(json)){\n      return KeyedSeq(json).map(fromJSDefault).toMap();\n    }\n    return json;\n  }\n\n  function isPlainObj(value){\n    return value&&(value.constructor===Object||value.constructor===undefined);\n  }\n\n  \n  function is(valueA, valueB){\n    if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n      return true;\n    }\n    if(!valueA||!valueB){\n      return false;\n    }\n    if(typeof valueA.valueOf==='function'&&\n        typeof valueB.valueOf==='function'){\n      valueA=valueA.valueOf();\n      valueB=valueB.valueOf();\n      if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n        return true;\n      }\n      if(!valueA||!valueB){\n        return false;\n      }\n    }\n    if(typeof valueA.equals==='function'&&\n        typeof valueB.equals==='function'&&\n        valueA.equals(valueB)){\n      return true;\n    }\n    return false;\n  }\n\n  function deepEqual(a, b){\n    if(a===b){\n      return true;\n    }\n\n    if(\n      !isIterable(b)||\n      a.size!==undefined&&b.size!==undefined&&a.size!==b.size||\n      a.__hash!==undefined&&b.__hash!==undefined&&a.__hash!==b.__hash||\n      isKeyed(a)!==isKeyed(b)||\n      isIndexed(a)!==isIndexed(b)||\n      isOrdered(a)!==isOrdered(b)\n){\n      return false;\n    }\n\n    if(a.size===0&&b.size===0){\n      return true;\n    }\n\n    var notAssociative = !isAssociative(a);\n\n    if(isOrdered(a)){\n      var entries=a.entries();\n      return b.every(function(v, k){\n        var entry=entries.next().value;\n        return entry&&is(entry[1], v)&&(notAssociative||is(entry[0], k));\n      })&&entries.next().done;\n    }\n\n    var flipped=false;\n\n    if(a.size===undefined){\n      if(b.size===undefined){\n        if(typeof a.cacheResult==='function'){\n          a.cacheResult();\n        }\n      }else{\n        flipped=true;\n        var _=a;\n        a=b;\n        b=_;\n      }\n    }\n\n    var allEqual=true;\n    var bSize=b.__iterate(function(v, k){\n      if(notAssociative ? !a.has(v) :\n          flipped ? !is(v, a.get(k, NOT_SET)):!is(a.get(k, NOT_SET), v)){\n        allEqual=false;\n        return false;\n      }\n    });\n\n    return allEqual&&a.size===bSize;\n  }\n\n  createClass(Repeat, IndexedSeq);\n\n    function Repeat(value, times){\n      if(!(this instanceof Repeat)){\n        return new Repeat(value, times);\n      }\n      this._value=value;\n      this.size=times===undefined ? Infinity:Math.max(0, times);\n      if(this.size===0){\n        if(EMPTY_REPEAT){\n          return EMPTY_REPEAT;\n        }\n        EMPTY_REPEAT=this;\n      }\n    }\n\n    Repeat.prototype.toString=function(){\n      if(this.size===0){\n        return 'Repeat []';\n      }\n      return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';\n    };\n\n    Repeat.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._value:notSetValue;\n    };\n\n    Repeat.prototype.includes=function(searchValue){\n      return is(this._value, searchValue);\n    };\n\n    Repeat.prototype.slice=function(begin, end){\n      var size=this.size;\n      return wholeSlice(begin, end, size) ? this :\n        new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));\n    };\n\n    Repeat.prototype.reverse=function(){\n      return this;\n    };\n\n    Repeat.prototype.indexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return 0;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.lastIndexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return this.size;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.__iterate=function(fn, reverse){\n      for (var ii=0; ii < this.size; ii++){\n        if(fn(this._value, ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    Repeat.prototype.__iterator=function(type, reverse){var this$0=this;\n      var ii=0;\n      return new Iterator(function() \n        {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value):iteratorDone()}\n);\n    };\n\n    Repeat.prototype.equals=function(other){\n      return other instanceof Repeat ?\n        is(this._value, other._value) :\n        deepEqual(other);\n    };\n\n\n  var EMPTY_REPEAT;\n\n  function invariant(condition, error){\n    if(!condition) throw new Error(error);\n  }\n\n  createClass(Range, IndexedSeq);\n\n    function Range(start, end, step){\n      if(!(this instanceof Range)){\n        return new Range(start, end, step);\n      }\n      invariant(step!==0, 'Cannot step a Range by 0');\n      start=start||0;\n      if(end===undefined){\n        end=Infinity;\n      }\n      step=step===undefined ? 1:Math.abs(step);\n      if(end < start){\n        step=-step;\n      }\n      this._start=start;\n      this._end=end;\n      this._step=step;\n      this.size=Math.max(0, Math.ceil((end - start) / step - 1) + 1);\n      if(this.size===0){\n        if(EMPTY_RANGE){\n          return EMPTY_RANGE;\n        }\n        EMPTY_RANGE=this;\n      }\n    }\n\n    Range.prototype.toString=function(){\n      if(this.size===0){\n        return 'Range []';\n      }\n      return 'Range [ ' +\n        this._start + '...' + this._end +\n        (this._step > 1 ? ' by ' + this._step:'') +\n      ' ]';\n    };\n\n    Range.prototype.get=function(index, notSetValue){\n      return this.has(index) ?\n        this._start + wrapIndex(this, index) * this._step :\n        notSetValue;\n    };\n\n    Range.prototype.includes=function(searchValue){\n      var possibleIndex=(searchValue - this._start) / this._step;\n      return possibleIndex >=0&&\n        possibleIndex < this.size&&\n        possibleIndex===Math.floor(possibleIndex);\n    };\n\n    Range.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      begin=resolveBegin(begin, this.size);\n      end=resolveEnd(end, this.size);\n      if(end <=begin){\n        return new Range(0, 0);\n      }\n      return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);\n    };\n\n    Range.prototype.indexOf=function(searchValue){\n      var offsetValue=searchValue - this._start;\n      if(offsetValue % this._step===0){\n        var index=offsetValue / this._step;\n        if(index >=0&&index < this.size){\n          return index\n        }\n      }\n      return -1;\n    };\n\n    Range.prototype.lastIndexOf=function(searchValue){\n      return this.indexOf(searchValue);\n    };\n\n    Range.prototype.__iterate=function(fn, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(value, ii, this)===false){\n          return ii + 1;\n        }\n        value +=reverse ? -step:step;\n      }\n      return ii;\n    };\n\n    Range.prototype.__iterator=function(type, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      var ii=0;\n      return new Iterator(function(){\n        var v=value;\n        value +=reverse ? -step:step;\n        return ii > maxIndex ? iteratorDone():iteratorValue(type, ii++, v);\n      });\n    };\n\n    Range.prototype.equals=function(other){\n      return other instanceof Range ?\n        this._start===other._start&&\n        this._end===other._end&&\n        this._step===other._step :\n        deepEqual(this, other);\n    };\n\n\n  var EMPTY_RANGE;\n\n  createClass(Collection, Iterable);\n    function Collection(){\n      throw TypeError('Abstract');\n    }\n\n\n  createClass(KeyedCollection, Collection);function KeyedCollection(){}\n\n  createClass(IndexedCollection, Collection);function IndexedCollection(){}\n\n  createClass(SetCollection, Collection);function SetCollection(){}\n\n\n  Collection.Keyed=KeyedCollection;\n  Collection.Indexed=IndexedCollection;\n  Collection.Set=SetCollection;\n\n  var imul=\n    typeof Math.imul==='function'&&Math.imul(0xffffffff, 2)===-2 ?\n    Math.imul :\n    function imul(a, b){\n      a=a | 0; // int\n      b=b | 0; // int\n      var c=a & 0xffff;\n      var d=b & 0xffff;\n      // Shift by 0 fixes the sign on the high part.\n      return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int\n    };\n\n  // v8 has an optimization for storing 31-bit signed numbers.\n  // Values which have either 00 or 11 as the high order bits qualify.\n  // This function drops the highest order bit in a signed number, maintaining\n  // the sign bit.\n  function smi(i32){\n    return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);\n  }\n\n  function hash(o){\n    if(o===false||o===null||o===undefined){\n      return 0;\n    }\n    if(typeof o.valueOf==='function'){\n      o=o.valueOf();\n      if(o===false||o===null||o===undefined){\n        return 0;\n      }\n    }\n    if(o===true){\n      return 1;\n    }\n    var type=typeof o;\n    if(type==='number'){\n      var h=o | 0;\n      if(h!==o){\n        h ^=o * 0xFFFFFFFF;\n      }\n      while (o > 0xFFFFFFFF){\n        o /=0xFFFFFFFF;\n        h ^=o;\n      }\n      return smi(h);\n    }\n    if(type==='string'){\n      return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o):hashString(o);\n    }\n    if(typeof o.hashCode==='function'){\n      return o.hashCode();\n    }\n    if(type==='object'){\n      return hashJSObj(o);\n    }\n    if(typeof o.toString==='function'){\n      return hashString(o.toString());\n    }\n    throw new Error('Value type ' + type + ' cannot be hashed.');\n  }\n\n  function cachedHashString(string){\n    var hash=stringHashCache[string];\n    if(hash===undefined){\n      hash=hashString(string);\n      if(STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE){\n        STRING_HASH_CACHE_SIZE=0;\n        stringHashCache={};\n      }\n      STRING_HASH_CACHE_SIZE++;\n      stringHashCache[string]=hash;\n    }\n    return hash;\n  }\n\n  // http://jsperf.com/hashing-strings\n  function hashString(string){\n    // This is the hash from JVM\n    // The hash code for a string is computed as\n    // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],\n    // where s[i] is the ith character of the string and n is the length of\n    // the string. We \"mod\" the result to make it between 0 (inclusive) and 2^31\n    // (exclusive) by dropping high bits.\n    var hash=0;\n    for (var ii=0; ii < string.length; ii++){\n      hash=31 * hash + string.charCodeAt(ii) | 0;\n    }\n    return smi(hash);\n  }\n\n  function hashJSObj(obj){\n    var hash;\n    if(usingWeakMap){\n      hash=weakMap.get(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=obj[UID_HASH_KEY];\n    if(hash!==undefined){\n      return hash;\n    }\n\n    if(!canDefineProperty){\n      hash=obj.propertyIsEnumerable&&obj.propertyIsEnumerable[UID_HASH_KEY];\n      if(hash!==undefined){\n        return hash;\n      }\n\n      hash=getIENodeHash(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=++objHashUID;\n    if(objHashUID & 0x40000000){\n      objHashUID=0;\n    }\n\n    if(usingWeakMap){\n      weakMap.set(obj, hash);\n    }else if(isExtensible!==undefined&&isExtensible(obj)===false){\n      throw new Error('Non-extensible objects are not allowed as keys.');\n    }else if(canDefineProperty){\n      Object.defineProperty(obj, UID_HASH_KEY, {\n        'enumerable': false,\n        'configurable': false,\n        'writable': false,\n        'value': hash\n      });\n    }else if(obj.propertyIsEnumerable!==undefined&&\n               obj.propertyIsEnumerable===obj.constructor.prototype.propertyIsEnumerable){\n      // Since we can't define a non-enumerable property on the object\n      // we'll hijack one of the less-used non-enumerable properties to\n      // save our hash on it. Since this is a function it will not show up in\n      // `JSON.stringify` which is what we want.\n      obj.propertyIsEnumerable=function(){\n        return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);\n      };\n      obj.propertyIsEnumerable[UID_HASH_KEY]=hash;\n    }else if(obj.nodeType!==undefined){\n      // At this point we couldn't get the IE `uniqueID` to use as a hash\n      // and we couldn't use a non-enumerable property to exploit the\n      // dontEnum bug so we simply add the `UID_HASH_KEY` on the node\n      // itself.\n      obj[UID_HASH_KEY]=hash;\n    }else{\n      throw new Error('Unable to set a non-enumerable property on object.');\n    }\n\n    return hash;\n  }\n\n  // Get references to ES5 object methods.\n  var isExtensible=Object.isExtensible;\n\n  // True if Object.defineProperty works as expected. IE8 fails this test.\n  var canDefineProperty=(function(){\n    try {\n      Object.defineProperty({}, '@', {});\n      return true;\n    } catch (e){\n      return false;\n    }\n  }());\n\n  // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it\n  // and avoid memory leaks from the IE cloneNode bug.\n  function getIENodeHash(node){\n    if(node&&node.nodeType > 0){\n      switch (node.nodeType){\n        case 1: // Element\n          return node.uniqueID;\n        case 9: // Document\n          return node.documentElement&&node.documentElement.uniqueID;\n      }\n    }\n  }\n\n  // If possible, use a WeakMap.\n  var usingWeakMap=typeof WeakMap==='function';\n  var weakMap;\n  if(usingWeakMap){\n    weakMap=new WeakMap();\n  }\n\n  var objHashUID=0;\n\n  var UID_HASH_KEY='__immutablehash__';\n  if(typeof Symbol==='function'){\n    UID_HASH_KEY=Symbol(UID_HASH_KEY);\n  }\n\n  var STRING_HASH_CACHE_MIN_STRLEN=16;\n  var STRING_HASH_CACHE_MAX_SIZE=255;\n  var STRING_HASH_CACHE_SIZE=0;\n  var stringHashCache={};\n\n  function assertNotInfinite(size){\n    invariant(\n      size!==Infinity,\n      'Cannot perform this action with an infinite size.'\n);\n  }\n\n  createClass(Map, KeyedCollection);\n\n    // @pragma Construction\n\n    function Map(value){\n      return value===null||value===undefined ? emptyMap() :\n        isMap(value)&&!isOrdered(value) ? value :\n        emptyMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    Map.prototype.toString=function(){\n      return this.__toString('Map {', '}');\n    };\n\n    // @pragma Access\n\n    Map.prototype.get=function(k, notSetValue){\n      return this._root ?\n        this._root.get(0, undefined, k, notSetValue) :\n        notSetValue;\n    };\n\n    // @pragma Modification\n\n    Map.prototype.set=function(k, v){\n      return updateMap(this, k, v);\n    };\n\n    Map.prototype.setIn=function(keyPath, v){\n      return this.updateIn(keyPath, NOT_SET, function(){return v});\n    };\n\n    Map.prototype.remove=function(k){\n      return updateMap(this, k, NOT_SET);\n    };\n\n    Map.prototype.deleteIn=function(keyPath){\n      return this.updateIn(keyPath, function(){return NOT_SET});\n    };\n\n    Map.prototype.update=function(k, notSetValue, updater){\n      return arguments.length===1 ?\n        k(this) :\n        this.updateIn([k], notSetValue, updater);\n    };\n\n    Map.prototype.updateIn=function(keyPath, notSetValue, updater){\n      if(!updater){\n        updater=notSetValue;\n        notSetValue=undefined;\n      }\n      var updatedValue=updateInDeepMap(\n        this,\n        forceIterator(keyPath),\n        notSetValue,\n        updater\n);\n      return updatedValue===NOT_SET ? undefined:updatedValue;\n    };\n\n    Map.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._root=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyMap();\n    };\n\n    // @pragma Composition\n\n    Map.prototype.merge=function(){\n      return mergeIntoMapWith(this, undefined, arguments);\n    };\n\n    Map.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, merger, iters);\n    };\n\n    Map.prototype.mergeIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.merge==='function' ?\n          m.merge.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.mergeDeep=function(){\n      return mergeIntoMapWith(this, deepMerger, arguments);\n    };\n\n    Map.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, deepMergerWith(merger), iters);\n    };\n\n    Map.prototype.mergeDeepIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.mergeDeep==='function' ?\n          m.mergeDeep.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator));\n    };\n\n    Map.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator, mapper));\n    };\n\n    // @pragma Mutability\n\n    Map.prototype.withMutations=function(fn){\n      var mutable=this.asMutable();\n      fn(mutable);\n      return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID):this;\n    };\n\n    Map.prototype.asMutable=function(){\n      return this.__ownerID ? this:this.__ensureOwner(new OwnerID());\n    };\n\n    Map.prototype.asImmutable=function(){\n      return this.__ensureOwner();\n    };\n\n    Map.prototype.wasAltered=function(){\n      return this.__altered;\n    };\n\n    Map.prototype.__iterator=function(type, reverse){\n      return new MapIterator(this, type, reverse);\n    };\n\n    Map.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      this._root&&this._root.iterate(function(entry){\n        iterations++;\n        return fn(entry[1], entry[0], this$0);\n      }, reverse);\n      return iterations;\n    };\n\n    Map.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeMap(this.size, this._root, ownerID, this.__hash);\n    };\n\n\n  function isMap(maybeMap){\n    return !!(maybeMap&&maybeMap[IS_MAP_SENTINEL]);\n  }\n\n  Map.isMap=isMap;\n\n  var IS_MAP_SENTINEL='@@__IMMUTABLE_MAP__@@';\n\n  var MapPrototype=Map.prototype;\n  MapPrototype[IS_MAP_SENTINEL]=true;\n  MapPrototype[DELETE]=MapPrototype.remove;\n  MapPrototype.removeIn=MapPrototype.deleteIn;\n\n\n  // #pragma Trie Nodes\n\n\n\n    function ArrayMapNode(ownerID, entries){\n      this.ownerID=ownerID;\n      this.entries=entries;\n    }\n\n    ArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    ArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&entries.length===1){\n        return; // undefined\n      }\n\n      if(!exists&&!removed&&entries.length >=MAX_ARRAY_MAP_SIZE){\n        return createNodes(ownerID, entries, key, value);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new ArrayMapNode(ownerID, newEntries);\n    };\n\n\n\n\n    function BitmapIndexedNode(ownerID, bitmap, nodes){\n      this.ownerID=ownerID;\n      this.bitmap=bitmap;\n      this.nodes=nodes;\n    }\n\n    BitmapIndexedNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var bit=(1 << ((shift===0 ? keyHash:keyHash >>> shift) & MASK));\n      var bitmap=this.bitmap;\n      return (bitmap & bit)===0 ? notSetValue :\n        this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);\n    };\n\n    BitmapIndexedNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var keyHashFrag=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var bit=1 << keyHashFrag;\n      var bitmap=this.bitmap;\n      var exists=(bitmap & bit)!==0;\n\n      if(!exists&&value===NOT_SET){\n        return this;\n      }\n\n      var idx=popCount(bitmap & (bit - 1));\n      var nodes=this.nodes;\n      var node=exists ? nodes[idx]:undefined;\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n\n      if(newNode===node){\n        return this;\n      }\n\n      if(!exists&&newNode&&nodes.length >=MAX_BITMAP_INDEXED_SIZE){\n        return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);\n      }\n\n      if(exists&&!newNode&&nodes.length===2&&isLeafNode(nodes[idx ^ 1])){\n        return nodes[idx ^ 1];\n      }\n\n      if(exists&&newNode&&nodes.length===1&&isLeafNode(newNode)){\n        return newNode;\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newBitmap=exists ? newNode ? bitmap:bitmap ^ bit:bitmap | bit;\n      var newNodes=exists ? newNode ?\n        setIn(nodes, idx, newNode, isEditable) :\n        spliceOut(nodes, idx, isEditable) :\n        spliceIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.bitmap=newBitmap;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new BitmapIndexedNode(ownerID, newBitmap, newNodes);\n    };\n\n\n\n\n    function HashArrayMapNode(ownerID, count, nodes){\n      this.ownerID=ownerID;\n      this.count=count;\n      this.nodes=nodes;\n    }\n\n    HashArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var node=this.nodes[idx];\n      return node ? node.get(shift + SHIFT, keyHash, key, notSetValue):notSetValue;\n    };\n\n    HashArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var removed=value===NOT_SET;\n      var nodes=this.nodes;\n      var node=nodes[idx];\n\n      if(removed&&!node){\n        return this;\n      }\n\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n      if(newNode===node){\n        return this;\n      }\n\n      var newCount=this.count;\n      if(!node){\n        newCount++;\n      }else if(!newNode){\n        newCount--;\n        if(newCount < MIN_HASH_ARRAY_MAP_SIZE){\n          return packNodes(ownerID, nodes, newCount, idx);\n        }\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newNodes=setIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.count=newCount;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new HashArrayMapNode(ownerID, newCount, newNodes);\n    };\n\n\n\n\n    function HashCollisionNode(ownerID, keyHash, entries){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entries=entries;\n    }\n\n    HashCollisionNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    HashCollisionNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n\n      var removed=value===NOT_SET;\n\n      if(keyHash!==this.keyHash){\n        if(removed){\n          return this;\n        }\n        SetRef(didAlter);\n        SetRef(didChangeSize);\n        return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);\n      }\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&len===2){\n        return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new HashCollisionNode(ownerID, this.keyHash, newEntries);\n    };\n\n\n\n\n    function ValueNode(ownerID, keyHash, entry){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entry=entry;\n    }\n\n    ValueNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      return is(key, this.entry[0]) ? this.entry[1]:notSetValue;\n    };\n\n    ValueNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n      var keyMatch=is(key, this.entry[0]);\n      if(keyMatch ? value===this.entry[1]:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n\n      if(removed){\n        SetRef(didChangeSize);\n        return; // undefined\n      }\n\n      if(keyMatch){\n        if(ownerID&&ownerID===this.ownerID){\n          this.entry[1]=value;\n          return this;\n        }\n        return new ValueNode(ownerID, this.keyHash, [key, value]);\n      }\n\n      SetRef(didChangeSize);\n      return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);\n    };\n\n\n\n  // #pragma Iterators\n\n  ArrayMapNode.prototype.iterate=\n  HashCollisionNode.prototype.iterate=function (fn, reverse){\n    var entries=this.entries;\n    for (var ii=0, maxIndex=entries.length - 1; ii <=maxIndex; ii++){\n      if(fn(entries[reverse ? maxIndex - ii:ii])===false){\n        return false;\n      }\n    }\n  }\n\n  BitmapIndexedNode.prototype.iterate=\n  HashArrayMapNode.prototype.iterate=function (fn, reverse){\n    var nodes=this.nodes;\n    for (var ii=0, maxIndex=nodes.length - 1; ii <=maxIndex; ii++){\n      var node=nodes[reverse ? maxIndex - ii:ii];\n      if(node&&node.iterate(fn, reverse)===false){\n        return false;\n      }\n    }\n  }\n\n  ValueNode.prototype.iterate=function (fn, reverse){\n    return fn(this.entry);\n  }\n\n  createClass(MapIterator, Iterator);\n\n    function MapIterator(map, type, reverse){\n      this._type=type;\n      this._reverse=reverse;\n      this._stack=map._root&&mapIteratorFrame(map._root);\n    }\n\n    MapIterator.prototype.next=function(){\n      var type=this._type;\n      var stack=this._stack;\n      while (stack){\n        var node=stack.node;\n        var index=stack.index++;\n        var maxIndex;\n        if(node.entry){\n          if(index===0){\n            return mapIteratorValue(type, node.entry);\n          }\n        }else if(node.entries){\n          maxIndex=node.entries.length - 1;\n          if(index <=maxIndex){\n            return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index:index]);\n          }\n        }else{\n          maxIndex=node.nodes.length - 1;\n          if(index <=maxIndex){\n            var subNode=node.nodes[this._reverse ? maxIndex - index:index];\n            if(subNode){\n              if(subNode.entry){\n                return mapIteratorValue(type, subNode.entry);\n              }\n              stack=this._stack=mapIteratorFrame(subNode, stack);\n            }\n            continue;\n          }\n        }\n        stack=this._stack=this._stack.__prev;\n      }\n      return iteratorDone();\n    };\n\n\n  function mapIteratorValue(type, entry){\n    return iteratorValue(type, entry[0], entry[1]);\n  }\n\n  function mapIteratorFrame(node, prev){\n    return {\n      node: node,\n      index: 0,\n      __prev: prev\n    };\n  }\n\n  function makeMap(size, root, ownerID, hash){\n    var map=Object.create(MapPrototype);\n    map.size=size;\n    map._root=root;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_MAP;\n  function emptyMap(){\n    return EMPTY_MAP||(EMPTY_MAP=makeMap(0));\n  }\n\n  function updateMap(map, k, v){\n    var newRoot;\n    var newSize;\n    if(!map._root){\n      if(v===NOT_SET){\n        return map;\n      }\n      newSize=1;\n      newRoot=new ArrayMapNode(map.__ownerID, [[k, v]]);\n    }else{\n      var didChangeSize=MakeRef(CHANGE_LENGTH);\n      var didAlter=MakeRef(DID_ALTER);\n      newRoot=updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);\n      if(!didAlter.value){\n        return map;\n      }\n      newSize=map.size + (didChangeSize.value ? v===NOT_SET ? -1:1 : 0);\n    }\n    if(map.__ownerID){\n      map.size=newSize;\n      map._root=newRoot;\n      map.__hash=undefined;\n      map.__altered=true;\n      return map;\n    }\n    return newRoot ? makeMap(newSize, newRoot):emptyMap();\n  }\n\n  function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n    if(!node){\n      if(value===NOT_SET){\n        return node;\n      }\n      SetRef(didAlter);\n      SetRef(didChangeSize);\n      return new ValueNode(ownerID, keyHash, [key, value]);\n    }\n    return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);\n  }\n\n  function isLeafNode(node){\n    return node.constructor===ValueNode||node.constructor===HashCollisionNode;\n  }\n\n  function mergeIntoNode(node, ownerID, shift, keyHash, entry){\n    if(node.keyHash===keyHash){\n      return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);\n    }\n\n    var idx1=(shift===0 ? node.keyHash:node.keyHash >>> shift) & MASK;\n    var idx2=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n\n    var newNode;\n    var nodes=idx1===idx2 ?\n      [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :\n      ((newNode=new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode]:[newNode, node]);\n\n    return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);\n  }\n\n  function createNodes(ownerID, entries, key, value){\n    if(!ownerID){\n      ownerID=new OwnerID();\n    }\n    var node=new ValueNode(ownerID, hash(key), [key, value]);\n    for (var ii=0; ii < entries.length; ii++){\n      var entry=entries[ii];\n      node=node.update(ownerID, 0, undefined, entry[0], entry[1]);\n    }\n    return node;\n  }\n\n  function packNodes(ownerID, nodes, count, excluding){\n    var bitmap=0;\n    var packedII=0;\n    var packedNodes=new Array(count);\n    for (var ii=0, bit=1, len=nodes.length; ii < len; ii++, bit <<=1){\n      var node=nodes[ii];\n      if(node!==undefined&&ii!==excluding){\n        bitmap |=bit;\n        packedNodes[packedII++]=node;\n      }\n    }\n    return new BitmapIndexedNode(ownerID, bitmap, packedNodes);\n  }\n\n  function expandNodes(ownerID, nodes, bitmap, including, node){\n    var count=0;\n    var expandedNodes=new Array(SIZE);\n    for (var ii=0; bitmap!==0; ii++, bitmap >>>=1){\n      expandedNodes[ii]=bitmap & 1 ? nodes[count++]:undefined;\n    }\n    expandedNodes[including]=node;\n    return new HashArrayMapNode(ownerID, count + 1, expandedNodes);\n  }\n\n  function mergeIntoMapWith(map, merger, iterables){\n    var iters=[];\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=KeyedIterable(value);\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    return mergeIntoCollectionWith(map, merger, iters);\n  }\n\n  function deepMerger(existing, value, key){\n    return existing&&existing.mergeDeep&&isIterable(value) ?\n      existing.mergeDeep(value) :\n      is(existing, value) ? existing:value;\n  }\n\n  function deepMergerWith(merger){\n    return function(existing, value, key){\n      if(existing&&existing.mergeDeepWith&&isIterable(value)){\n        return existing.mergeDeepWith(merger, value);\n      }\n      var nextValue=merger(existing, value, key);\n      return is(existing, nextValue) ? existing:nextValue;\n    };\n  }\n\n  function mergeIntoCollectionWith(collection, merger, iters){\n    iters=iters.filter(function(x){return x.size!==0});\n    if(iters.length===0){\n      return collection;\n    }\n    if(collection.size===0&&!collection.__ownerID&&iters.length===1){\n      return collection.constructor(iters[0]);\n    }\n    return collection.withMutations(function(collection){\n      var mergeIntoMap=merger ?\n        function(value, key){\n          collection.update(key, NOT_SET, function(existing)\n            {return existing===NOT_SET ? value:merger(existing, value, key)}\n);\n        } :\n        function(value, key){\n          collection.set(key, value);\n        }\n      for (var ii=0; ii < iters.length; ii++){\n        iters[ii].forEach(mergeIntoMap);\n      }\n    });\n  }\n\n  function updateInDeepMap(existing, keyPathIter, notSetValue, updater){\n    var isNotSet=existing===NOT_SET;\n    var step=keyPathIter.next();\n    if(step.done){\n      var existingValue=isNotSet ? notSetValue:existing;\n      var newValue=updater(existingValue);\n      return newValue===existingValue ? existing:newValue;\n    }\n    invariant(\n      isNotSet||(existing&&existing.set),\n      'invalid keyPath'\n);\n    var key=step.value;\n    var nextExisting=isNotSet ? NOT_SET:existing.get(key, NOT_SET);\n    var nextUpdated=updateInDeepMap(\n      nextExisting,\n      keyPathIter,\n      notSetValue,\n      updater\n);\n    return nextUpdated===nextExisting ? existing :\n      nextUpdated===NOT_SET ? existing.remove(key) :\n      (isNotSet ? emptyMap():existing).set(key, nextUpdated);\n  }\n\n  function popCount(x){\n    x=x - ((x >> 1) & 0x55555555);\n    x=(x & 0x33333333) + ((x >> 2) & 0x33333333);\n    x=(x + (x >> 4)) & 0x0f0f0f0f;\n    x=x + (x >> 8);\n    x=x + (x >> 16);\n    return x & 0x7f;\n  }\n\n  function setIn(array, idx, val, canEdit){\n    var newArray=canEdit ? array:arrCopy(array);\n    newArray[idx]=val;\n    return newArray;\n  }\n\n  function spliceIn(array, idx, val, canEdit){\n    var newLen=array.length + 1;\n    if(canEdit&&idx + 1===newLen){\n      array[idx]=val;\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        newArray[ii]=val;\n        after=-1;\n      }else{\n        newArray[ii]=array[ii + after];\n      }\n    }\n    return newArray;\n  }\n\n  function spliceOut(array, idx, canEdit){\n    var newLen=array.length - 1;\n    if(canEdit&&idx===newLen){\n      array.pop();\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        after=1;\n      }\n      newArray[ii]=array[ii + after];\n    }\n    return newArray;\n  }\n\n  var MAX_ARRAY_MAP_SIZE=SIZE / 4;\n  var MAX_BITMAP_INDEXED_SIZE=SIZE / 2;\n  var MIN_HASH_ARRAY_MAP_SIZE=SIZE / 4;\n\n  createClass(List, IndexedCollection);\n\n    // @pragma Construction\n\n    function List(value){\n      var empty=emptyList();\n      if(value===null||value===undefined){\n        return empty;\n      }\n      if(isList(value)){\n        return value;\n      }\n      var iter=IndexedIterable(value);\n      var size=iter.size;\n      if(size===0){\n        return empty;\n      }\n      assertNotInfinite(size);\n      if(size > 0&&size < SIZE){\n        return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));\n      }\n      return empty.withMutations(function(list){\n        list.setSize(size);\n        iter.forEach(function(v, i){return list.set(i, v)});\n      });\n    }\n\n    List.of=function(){\n      return this(arguments);\n    };\n\n    List.prototype.toString=function(){\n      return this.__toString('List [', ']');\n    };\n\n    // @pragma Access\n\n    List.prototype.get=function(index, notSetValue){\n      index=wrapIndex(this, index);\n      if(index >=0&&index < this.size){\n        index +=this._origin;\n        var node=listNodeFor(this, index);\n        return node&&node.array[index & MASK];\n      }\n      return notSetValue;\n    };\n\n    // @pragma Modification\n\n    List.prototype.set=function(index, value){\n      return updateList(this, index, value);\n    };\n\n    List.prototype.remove=function(index){\n      return !this.has(index) ? this :\n        index===0 ? this.shift() :\n        index===this.size - 1 ? this.pop() :\n        this.splice(index, 1);\n    };\n\n    List.prototype.insert=function(index, value){\n      return this.splice(index, 0, value);\n    };\n\n    List.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=this._origin=this._capacity=0;\n        this._level=SHIFT;\n        this._root=this._tail=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyList();\n    };\n\n    List.prototype.push=function(){\n      var values=arguments;\n      var oldSize=this.size;\n      return this.withMutations(function(list){\n        setListBounds(list, 0, oldSize + values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(oldSize + ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.pop=function(){\n      return setListBounds(this, 0, -1);\n    };\n\n    List.prototype.unshift=function(){\n      var values=arguments;\n      return this.withMutations(function(list){\n        setListBounds(list, -values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.shift=function(){\n      return setListBounds(this, 1);\n    };\n\n    // @pragma Composition\n\n    List.prototype.merge=function(){\n      return mergeIntoListWith(this, undefined, arguments);\n    };\n\n    List.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, merger, iters);\n    };\n\n    List.prototype.mergeDeep=function(){\n      return mergeIntoListWith(this, deepMerger, arguments);\n    };\n\n    List.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, deepMergerWith(merger), iters);\n    };\n\n    List.prototype.setSize=function(size){\n      return setListBounds(this, 0, size);\n    };\n\n    // @pragma Iteration\n\n    List.prototype.slice=function(begin, end){\n      var size=this.size;\n      if(wholeSlice(begin, end, size)){\n        return this;\n      }\n      return setListBounds(\n        this,\n        resolveBegin(begin, size),\n        resolveEnd(end, size)\n);\n    };\n\n    List.prototype.__iterator=function(type, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      return new Iterator(function(){\n        var value=values();\n        return value===DONE ?\n          iteratorDone() :\n          iteratorValue(type, index++, value);\n      });\n    };\n\n    List.prototype.__iterate=function(fn, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      var value;\n      while ((value=values())!==DONE){\n        if(fn(value, index++, this)===false){\n          break;\n        }\n      }\n      return index;\n    };\n\n    List.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        return this;\n      }\n      return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);\n    };\n\n\n  function isList(maybeList){\n    return !!(maybeList&&maybeList[IS_LIST_SENTINEL]);\n  }\n\n  List.isList=isList;\n\n  var IS_LIST_SENTINEL='@@__IMMUTABLE_LIST__@@';\n\n  var ListPrototype=List.prototype;\n  ListPrototype[IS_LIST_SENTINEL]=true;\n  ListPrototype[DELETE]=ListPrototype.remove;\n  ListPrototype.setIn=MapPrototype.setIn;\n  ListPrototype.deleteIn=\n  ListPrototype.removeIn=MapPrototype.removeIn;\n  ListPrototype.update=MapPrototype.update;\n  ListPrototype.updateIn=MapPrototype.updateIn;\n  ListPrototype.mergeIn=MapPrototype.mergeIn;\n  ListPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  ListPrototype.withMutations=MapPrototype.withMutations;\n  ListPrototype.asMutable=MapPrototype.asMutable;\n  ListPrototype.asImmutable=MapPrototype.asImmutable;\n  ListPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n\n    function VNode(array, ownerID){\n      this.array=array;\n      this.ownerID=ownerID;\n    }\n\n    // TODO: seems like these methods are very similar\n\n    VNode.prototype.removeBefore=function(ownerID, level, index){\n      if(index===level ? 1 << level:false||this.array.length===0){\n        return this;\n      }\n      var originIndex=(index >>> level) & MASK;\n      if(originIndex >=this.array.length){\n        return new VNode([], ownerID);\n      }\n      var removingFirst=originIndex===0;\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[originIndex];\n        newChild=oldChild&&oldChild.removeBefore(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&removingFirst){\n          return this;\n        }\n      }\n      if(removingFirst&&!newChild){\n        return this;\n      }\n      var editable=editableVNode(this, ownerID);\n      if(!removingFirst){\n        for (var ii=0; ii < originIndex; ii++){\n          editable.array[ii]=undefined;\n        }\n      }\n      if(newChild){\n        editable.array[originIndex]=newChild;\n      }\n      return editable;\n    };\n\n    VNode.prototype.removeAfter=function(ownerID, level, index){\n      if(index===(level ? 1 << level:0)||this.array.length===0){\n        return this;\n      }\n      var sizeIndex=((index - 1) >>> level) & MASK;\n      if(sizeIndex >=this.array.length){\n        return this;\n      }\n\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[sizeIndex];\n        newChild=oldChild&&oldChild.removeAfter(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&sizeIndex===this.array.length - 1){\n          return this;\n        }\n      }\n\n      var editable=editableVNode(this, ownerID);\n      editable.array.splice(sizeIndex + 1);\n      if(newChild){\n        editable.array[sizeIndex]=newChild;\n      }\n      return editable;\n    };\n\n\n\n  var DONE={};\n\n  function iterateList(list, reverse){\n    var left=list._origin;\n    var right=list._capacity;\n    var tailPos=getTailOffset(right);\n    var tail=list._tail;\n\n    return iterateNodeOrLeaf(list._root, list._level, 0);\n\n    function iterateNodeOrLeaf(node, level, offset){\n      return level===0 ?\n        iterateLeaf(node, offset) :\n        iterateNode(node, level, offset);\n    }\n\n    function iterateLeaf(node, offset){\n      var array=offset===tailPos ? tail&&tail.array:node&&node.array;\n      var from=offset > left ? 0:left - offset;\n      var to=right - offset;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        if(from===to){\n          return DONE;\n        }\n        var idx=reverse ? --to:from++;\n        return array&&array[idx];\n      };\n    }\n\n    function iterateNode(node, level, offset){\n      var values;\n      var array=node&&node.array;\n      var from=offset > left ? 0:(left - offset) >> level;\n      var to=((right - offset) >> level) + 1;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        do {\n          if(values){\n            var value=values();\n            if(value!==DONE){\n              return value;\n            }\n            values=null;\n          }\n          if(from===to){\n            return DONE;\n          }\n          var idx=reverse ? --to:from++;\n          values=iterateNodeOrLeaf(\n            array&&array[idx], level - SHIFT, offset + (idx << level)\n);\n        } while (true);\n      };\n    }\n  }\n\n  function makeList(origin, capacity, level, root, tail, ownerID, hash){\n    var list=Object.create(ListPrototype);\n    list.size=capacity - origin;\n    list._origin=origin;\n    list._capacity=capacity;\n    list._level=level;\n    list._root=root;\n    list._tail=tail;\n    list.__ownerID=ownerID;\n    list.__hash=hash;\n    list.__altered=false;\n    return list;\n  }\n\n  var EMPTY_LIST;\n  function emptyList(){\n    return EMPTY_LIST||(EMPTY_LIST=makeList(0, 0, SHIFT));\n  }\n\n  function updateList(list, index, value){\n    index=wrapIndex(list, index);\n\n    if(index!==index){\n      return list;\n    }\n\n    if(index >=list.size||index < 0){\n      return list.withMutations(function(list){\n        index < 0 ?\n          setListBounds(list, index).set(0, value) :\n          setListBounds(list, 0, index + 1).set(index, value)\n      });\n    }\n\n    index +=list._origin;\n\n    var newTail=list._tail;\n    var newRoot=list._root;\n    var didAlter=MakeRef(DID_ALTER);\n    if(index >=getTailOffset(list._capacity)){\n      newTail=updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);\n    }else{\n      newRoot=updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);\n    }\n\n    if(!didAlter.value){\n      return list;\n    }\n\n    if(list.__ownerID){\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(list._origin, list._capacity, list._level, newRoot, newTail);\n  }\n\n  function updateVNode(node, ownerID, level, index, value, didAlter){\n    var idx=(index >>> level) & MASK;\n    var nodeHas=node&&idx < node.array.length;\n    if(!nodeHas&&value===undefined){\n      return node;\n    }\n\n    var newNode;\n\n    if(level > 0){\n      var lowerNode=node&&node.array[idx];\n      var newLowerNode=updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);\n      if(newLowerNode===lowerNode){\n        return node;\n      }\n      newNode=editableVNode(node, ownerID);\n      newNode.array[idx]=newLowerNode;\n      return newNode;\n    }\n\n    if(nodeHas&&node.array[idx]===value){\n      return node;\n    }\n\n    SetRef(didAlter);\n\n    newNode=editableVNode(node, ownerID);\n    if(value===undefined&&idx===newNode.array.length - 1){\n      newNode.array.pop();\n    }else{\n      newNode.array[idx]=value;\n    }\n    return newNode;\n  }\n\n  function editableVNode(node, ownerID){\n    if(ownerID&&node&&ownerID===node.ownerID){\n      return node;\n    }\n    return new VNode(node ? node.array.slice():[], ownerID);\n  }\n\n  function listNodeFor(list, rawIndex){\n    if(rawIndex >=getTailOffset(list._capacity)){\n      return list._tail;\n    }\n    if(rawIndex < 1 << (list._level + SHIFT)){\n      var node=list._root;\n      var level=list._level;\n      while (node&&level > 0){\n        node=node.array[(rawIndex >>> level) & MASK];\n        level -=SHIFT;\n      }\n      return node;\n    }\n  }\n\n  function setListBounds(list, begin, end){\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n    var owner=list.__ownerID||new OwnerID();\n    var oldOrigin=list._origin;\n    var oldCapacity=list._capacity;\n    var newOrigin=oldOrigin + begin;\n    var newCapacity=end===undefined ? oldCapacity:end < 0 ? oldCapacity + end:oldOrigin + end;\n    if(newOrigin===oldOrigin&&newCapacity===oldCapacity){\n      return list;\n    }\n\n    // If it's going to end after it starts, it's empty.\n    if(newOrigin >=newCapacity){\n      return list.clear();\n    }\n\n    var newLevel=list._level;\n    var newRoot=list._root;\n\n    // New origin might need creating a higher root.\n    var offsetShift=0;\n    while (newOrigin + offsetShift < 0){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [undefined, newRoot]:[], owner);\n      newLevel +=SHIFT;\n      offsetShift +=1 << newLevel;\n    }\n    if(offsetShift){\n      newOrigin +=offsetShift;\n      oldOrigin +=offsetShift;\n      newCapacity +=offsetShift;\n      oldCapacity +=offsetShift;\n    }\n\n    var oldTailOffset=getTailOffset(oldCapacity);\n    var newTailOffset=getTailOffset(newCapacity);\n\n    // New size might need creating a higher root.\n    while (newTailOffset >=1 << (newLevel + SHIFT)){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [newRoot]:[], owner);\n      newLevel +=SHIFT;\n    }\n\n    // Locate or create the new tail.\n    var oldTail=list._tail;\n    var newTail=newTailOffset < oldTailOffset ?\n      listNodeFor(list, newCapacity - 1) :\n      newTailOffset > oldTailOffset ? new VNode([], owner):oldTail;\n\n    // Merge Tail into tree.\n    if(oldTail&&newTailOffset > oldTailOffset&&newOrigin < oldCapacity&&oldTail.array.length){\n      newRoot=editableVNode(newRoot, owner);\n      var node=newRoot;\n      for (var level=newLevel; level > SHIFT; level -=SHIFT){\n        var idx=(oldTailOffset >>> level) & MASK;\n        node=node.array[idx]=editableVNode(node.array[idx], owner);\n      }\n      node.array[(oldTailOffset >>> SHIFT) & MASK]=oldTail;\n    }\n\n    // If the size has been reduced, there's a chance the tail needs to be trimmed.\n    if(newCapacity < oldCapacity){\n      newTail=newTail&&newTail.removeAfter(owner, 0, newCapacity);\n    }\n\n    // If the new origin is within the tail, then we do not need a root.\n    if(newOrigin >=newTailOffset){\n      newOrigin -=newTailOffset;\n      newCapacity -=newTailOffset;\n      newLevel=SHIFT;\n      newRoot=null;\n      newTail=newTail&&newTail.removeBefore(owner, 0, newOrigin);\n\n    // Otherwise, if the root has been trimmed, garbage collect.\n    }else if(newOrigin > oldOrigin||newTailOffset < oldTailOffset){\n      offsetShift=0;\n\n      // Identify the new top root node of the subtree of the old root.\n      while (newRoot){\n        var beginIndex=(newOrigin >>> newLevel) & MASK;\n        if(beginIndex!==(newTailOffset >>> newLevel) & MASK){\n          break;\n        }\n        if(beginIndex){\n          offsetShift +=(1 << newLevel) * beginIndex;\n        }\n        newLevel -=SHIFT;\n        newRoot=newRoot.array[beginIndex];\n      }\n\n      // Trim the new sides of the new root.\n      if(newRoot&&newOrigin > oldOrigin){\n        newRoot=newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);\n      }\n      if(newRoot&&newTailOffset < oldTailOffset){\n        newRoot=newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);\n      }\n      if(offsetShift){\n        newOrigin -=offsetShift;\n        newCapacity -=offsetShift;\n      }\n    }\n\n    if(list.__ownerID){\n      list.size=newCapacity - newOrigin;\n      list._origin=newOrigin;\n      list._capacity=newCapacity;\n      list._level=newLevel;\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);\n  }\n\n  function mergeIntoListWith(list, merger, iterables){\n    var iters=[];\n    var maxSize=0;\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=IndexedIterable(value);\n      if(iter.size > maxSize){\n        maxSize=iter.size;\n      }\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    if(maxSize > list.size){\n      list=list.setSize(maxSize);\n    }\n    return mergeIntoCollectionWith(list, merger, iters);\n  }\n\n  function getTailOffset(size){\n    return size < SIZE ? 0:(((size - 1) >>> SHIFT) << SHIFT);\n  }\n\n  createClass(OrderedMap, Map);\n\n    // @pragma Construction\n\n    function OrderedMap(value){\n      return value===null||value===undefined ? emptyOrderedMap() :\n        isOrderedMap(value) ? value :\n        emptyOrderedMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    OrderedMap.of=function(){\n      return this(arguments);\n    };\n\n    OrderedMap.prototype.toString=function(){\n      return this.__toString('OrderedMap {', '}');\n    };\n\n    // @pragma Access\n\n    OrderedMap.prototype.get=function(k, notSetValue){\n      var index=this._map.get(k);\n      return index!==undefined ? this._list.get(index)[1]:notSetValue;\n    };\n\n    // @pragma Modification\n\n    OrderedMap.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._map.clear();\n        this._list.clear();\n        return this;\n      }\n      return emptyOrderedMap();\n    };\n\n    OrderedMap.prototype.set=function(k, v){\n      return updateOrderedMap(this, k, v);\n    };\n\n    OrderedMap.prototype.remove=function(k){\n      return updateOrderedMap(this, k, NOT_SET);\n    };\n\n    OrderedMap.prototype.wasAltered=function(){\n      return this._map.wasAltered()||this._list.wasAltered();\n    };\n\n    OrderedMap.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._list.__iterate(\n        function(entry){return entry&&fn(entry[1], entry[0], this$0)},\n        reverse\n);\n    };\n\n    OrderedMap.prototype.__iterator=function(type, reverse){\n      return this._list.fromEntrySeq().__iterator(type, reverse);\n    };\n\n    OrderedMap.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      var newList=this._list.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        this._list=newList;\n        return this;\n      }\n      return makeOrderedMap(newMap, newList, ownerID, this.__hash);\n    };\n\n\n  function isOrderedMap(maybeOrderedMap){\n    return isMap(maybeOrderedMap)&&isOrdered(maybeOrderedMap);\n  }\n\n  OrderedMap.isOrderedMap=isOrderedMap;\n\n  OrderedMap.prototype[IS_ORDERED_SENTINEL]=true;\n  OrderedMap.prototype[DELETE]=OrderedMap.prototype.remove;\n\n\n\n  function makeOrderedMap(map, list, ownerID, hash){\n    var omap=Object.create(OrderedMap.prototype);\n    omap.size=map ? map.size:0;\n    omap._map=map;\n    omap._list=list;\n    omap.__ownerID=ownerID;\n    omap.__hash=hash;\n    return omap;\n  }\n\n  var EMPTY_ORDERED_MAP;\n  function emptyOrderedMap(){\n    return EMPTY_ORDERED_MAP||(EMPTY_ORDERED_MAP=makeOrderedMap(emptyMap(), emptyList()));\n  }\n\n  function updateOrderedMap(omap, k, v){\n    var map=omap._map;\n    var list=omap._list;\n    var i=map.get(k);\n    var has=i!==undefined;\n    var newMap;\n    var newList;\n    if(v===NOT_SET){ // removed\n      if(!has){\n        return omap;\n      }\n      if(list.size >=SIZE&&list.size >=map.size * 2){\n        newList=list.filter(function(entry, idx){return entry!==undefined&&i!==idx});\n        newMap=newList.toKeyedSeq().map(function(entry){return entry[0]}).flip().toMap();\n        if(omap.__ownerID){\n          newMap.__ownerID=newList.__ownerID=omap.__ownerID;\n        }\n      }else{\n        newMap=map.remove(k);\n        newList=i===list.size - 1 ? list.pop():list.set(i, undefined);\n      }\n    }else{\n      if(has){\n        if(v===list.get(i)[1]){\n          return omap;\n        }\n        newMap=map;\n        newList=list.set(i, [k, v]);\n      }else{\n        newMap=map.set(k, list.size);\n        newList=list.set(list.size, [k, v]);\n      }\n    }\n    if(omap.__ownerID){\n      omap.size=newMap.size;\n      omap._map=newMap;\n      omap._list=newList;\n      omap.__hash=undefined;\n      return omap;\n    }\n    return makeOrderedMap(newMap, newList);\n  }\n\n  createClass(ToKeyedSequence, KeyedSeq);\n    function ToKeyedSequence(indexed, useKeys){\n      this._iter=indexed;\n      this._useKeys=useKeys;\n      this.size=indexed.size;\n    }\n\n    ToKeyedSequence.prototype.get=function(key, notSetValue){\n      return this._iter.get(key, notSetValue);\n    };\n\n    ToKeyedSequence.prototype.has=function(key){\n      return this._iter.has(key);\n    };\n\n    ToKeyedSequence.prototype.valueSeq=function(){\n      return this._iter.valueSeq();\n    };\n\n    ToKeyedSequence.prototype.reverse=function(){var this$0=this;\n      var reversedSequence=reverseFactory(this, true);\n      if(!this._useKeys){\n        reversedSequence.valueSeq=function(){return this$0._iter.toSeq().reverse()};\n      }\n      return reversedSequence;\n    };\n\n    ToKeyedSequence.prototype.map=function(mapper, context){var this$0=this;\n      var mappedSequence=mapFactory(this, mapper, context);\n      if(!this._useKeys){\n        mappedSequence.valueSeq=function(){return this$0._iter.toSeq().map(mapper, context)};\n      }\n      return mappedSequence;\n    };\n\n    ToKeyedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var ii;\n      return this._iter.__iterate(\n        this._useKeys ?\n          function(v, k){return fn(v, k, this$0)} :\n          ((ii=reverse ? resolveSize(this):0),\n            function(v){return fn(v, reverse ? --ii:ii++, this$0)}),\n        reverse\n);\n    };\n\n    ToKeyedSequence.prototype.__iterator=function(type, reverse){\n      if(this._useKeys){\n        return this._iter.__iterator(type, reverse);\n      }\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var ii=reverse ? resolveSize(this):0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, reverse ? --ii:ii++, step.value, step);\n      });\n    };\n\n  ToKeyedSequence.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(ToIndexedSequence, IndexedSeq);\n    function ToIndexedSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToIndexedSequence.prototype.includes=function(value){\n      return this._iter.includes(value);\n    };\n\n    ToIndexedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      return this._iter.__iterate(function(v){return fn(v, iterations++, this$0)}, reverse);\n    };\n\n    ToIndexedSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, iterations++, step.value, step)\n      });\n    };\n\n\n\n  createClass(ToSetSequence, SetSeq);\n    function ToSetSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToSetSequence.prototype.has=function(key){\n      return this._iter.includes(key);\n    };\n\n    ToSetSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(v){return fn(v, v, this$0)}, reverse);\n    };\n\n    ToSetSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, step.value, step.value, step);\n      });\n    };\n\n\n\n  createClass(FromEntriesSequence, KeyedSeq);\n    function FromEntriesSequence(entries){\n      this._iter=entries;\n      this.size=entries.size;\n    }\n\n    FromEntriesSequence.prototype.entrySeq=function(){\n      return this._iter.toSeq();\n    };\n\n    FromEntriesSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(entry){\n        // Check if entry exists first so array access doesn't throw for holes\n        // in the parent iteration.\n        if(entry){\n          validateEntry(entry);\n          var indexedIterable=isIterable(entry);\n          return fn(\n            indexedIterable ? entry.get(1):entry[1],\n            indexedIterable ? entry.get(0):entry[0],\n            this$0\n);\n        }\n      }, reverse);\n    };\n\n    FromEntriesSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          // Check if entry exists first so array access doesn't throw for holes\n          // in the parent iteration.\n          if(entry){\n            validateEntry(entry);\n            var indexedIterable=isIterable(entry);\n            return iteratorValue(\n              type,\n              indexedIterable ? entry.get(0):entry[0],\n              indexedIterable ? entry.get(1):entry[1],\n              step\n);\n          }\n        }\n      });\n    };\n\n\n  ToIndexedSequence.prototype.cacheResult=\n  ToKeyedSequence.prototype.cacheResult=\n  ToSetSequence.prototype.cacheResult=\n  FromEntriesSequence.prototype.cacheResult=\n    cacheResultThrough;\n\n\n  function flipFactory(iterable){\n    var flipSequence=makeSequence(iterable);\n    flipSequence._iter=iterable;\n    flipSequence.size=iterable.size;\n    flipSequence.flip=function(){return iterable};\n    flipSequence.reverse=function (){\n      var reversedSequence=iterable.reverse.apply(this); // super.reverse()\n      reversedSequence.flip=function(){return iterable.reverse()};\n      return reversedSequence;\n    };\n    flipSequence.has=function(key){return iterable.includes(key)};\n    flipSequence.includes=function(key){return iterable.has(key)};\n    flipSequence.cacheResult=cacheResultThrough;\n    flipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(k, v, this$0)!==false}, reverse);\n    }\n    flipSequence.__iteratorUncached=function(type, reverse){\n      if(type===ITERATE_ENTRIES){\n        var iterator=iterable.__iterator(type, reverse);\n        return new Iterator(function(){\n          var step=iterator.next();\n          if(!step.done){\n            var k=step.value[0];\n            step.value[0]=step.value[1];\n            step.value[1]=k;\n          }\n          return step;\n        });\n      }\n      return iterable.__iterator(\n        type===ITERATE_VALUES ? ITERATE_KEYS:ITERATE_VALUES,\n        reverse\n);\n    }\n    return flipSequence;\n  }\n\n\n  function mapFactory(iterable, mapper, context){\n    var mappedSequence=makeSequence(iterable);\n    mappedSequence.size=iterable.size;\n    mappedSequence.has=function(key){return iterable.has(key)};\n    mappedSequence.get=function(key, notSetValue){\n      var v=iterable.get(key, NOT_SET);\n      return v===NOT_SET ?\n        notSetValue :\n        mapper.call(context, v, key, iterable);\n    };\n    mappedSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(\n        function(v, k, c){return fn(mapper.call(context, v, k, c), k, this$0)!==false},\n        reverse\n);\n    }\n    mappedSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var key=entry[0];\n        return iteratorValue(\n          type,\n          key,\n          mapper.call(context, entry[1], key, iterable),\n          step\n);\n      });\n    }\n    return mappedSequence;\n  }\n\n\n  function reverseFactory(iterable, useKeys){\n    var reversedSequence=makeSequence(iterable);\n    reversedSequence._iter=iterable;\n    reversedSequence.size=iterable.size;\n    reversedSequence.reverse=function(){return iterable};\n    if(iterable.flip){\n      reversedSequence.flip=function (){\n        var flipSequence=flipFactory(iterable);\n        flipSequence.reverse=function(){return iterable.flip()};\n        return flipSequence;\n      };\n    }\n    reversedSequence.get=function(key, notSetValue) \n      {return iterable.get(useKeys ? key:-1 - key, notSetValue)};\n    reversedSequence.has=function(key)\n      {return iterable.has(useKeys ? key:-1 - key)};\n    reversedSequence.includes=function(value){return iterable.includes(value)};\n    reversedSequence.cacheResult=cacheResultThrough;\n    reversedSequence.__iterate=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(v, k, this$0)}, !reverse);\n    };\n    reversedSequence.__iterator=\n      function(type, reverse){return iterable.__iterator(type, !reverse)};\n    return reversedSequence;\n  }\n\n\n  function filterFactory(iterable, predicate, context, useKeys){\n    var filterSequence=makeSequence(iterable);\n    if(useKeys){\n      filterSequence.has=function(key){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&!!predicate.call(context, v, key, iterable);\n      };\n      filterSequence.get=function(key, notSetValue){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&predicate.call(context, v, key, iterable) ?\n          v:notSetValue;\n      };\n    }\n    filterSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      }, reverse);\n      return iterations;\n    };\n    filterSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          var key=entry[0];\n          var value=entry[1];\n          if(predicate.call(context, value, key, iterable)){\n            return iteratorValue(type, useKeys ? key:iterations++, value, step);\n          }\n        }\n      });\n    }\n    return filterSequence;\n  }\n\n\n  function countByFactory(iterable, grouper, context){\n    var groups=Map().asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        0,\n        function(a){return a + 1}\n);\n    });\n    return groups.asImmutable();\n  }\n\n\n  function groupByFactory(iterable, grouper, context){\n    var isKeyedIter=isKeyed(iterable);\n    var groups=(isOrdered(iterable) ? OrderedMap():Map()).asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        function(a){return (a=a||[], a.push(isKeyedIter ? [k, v]:v), a)}\n);\n    });\n    var coerce=iterableClass(iterable);\n    return groups.map(function(arr){return reify(iterable, coerce(arr))});\n  }\n\n\n  function sliceFactory(iterable, begin, end, useKeys){\n    var originalSize=iterable.size;\n\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n\n    if(wholeSlice(begin, end, originalSize)){\n      return iterable;\n    }\n\n    var resolvedBegin=resolveBegin(begin, originalSize);\n    var resolvedEnd=resolveEnd(end, originalSize);\n\n    // begin or end will be NaN if they were provided as negative numbers and\n    // this iterable's size is unknown. In that case, cache first so there is\n    // a known size and these do not resolve to NaN.\n    if(resolvedBegin!==resolvedBegin||resolvedEnd!==resolvedEnd){\n      return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);\n    }\n\n    // Note: resolvedEnd is undefined when the original sequence's length is\n    // unknown and this slice did not supply an end and should contain all\n    // elements after resolvedBegin.\n    // In that case, resolvedSize will be NaN and sliceSize will remain undefined.\n    var resolvedSize=resolvedEnd - resolvedBegin;\n    var sliceSize;\n    if(resolvedSize===resolvedSize){\n      sliceSize=resolvedSize < 0 ? 0:resolvedSize;\n    }\n\n    var sliceSeq=makeSequence(iterable);\n\n    // If iterable.size is undefined, the size of the realized sliceSeq is\n    // unknown at this point unless the number of items to slice is 0\n    sliceSeq.size=sliceSize===0 ? sliceSize:iterable.size&&sliceSize||undefined;\n\n    if(!useKeys&&isSeq(iterable)&&sliceSize >=0){\n      sliceSeq.get=function (index, notSetValue){\n        index=wrapIndex(this, index);\n        return index >=0&&index < sliceSize ?\n          iterable.get(index + resolvedBegin, notSetValue) :\n          notSetValue;\n      }\n    }\n\n    sliceSeq.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(sliceSize===0){\n        return 0;\n      }\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var skipped=0;\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k){\n        if(!(isSkipping&&(isSkipping=skipped++ < resolvedBegin))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0)!==false&&\n                 iterations!==sliceSize;\n        }\n      });\n      return iterations;\n    };\n\n    sliceSeq.__iteratorUncached=function(type, reverse){\n      if(sliceSize!==0&&reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      // Don't bother instantiating parent iterator if taking 0.\n      var iterator=sliceSize!==0&&iterable.__iterator(type, reverse);\n      var skipped=0;\n      var iterations=0;\n      return new Iterator(function(){\n        while (skipped++ < resolvedBegin){\n          iterator.next();\n        }\n        if(++iterations > sliceSize){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(useKeys||type===ITERATE_VALUES){\n          return step;\n        }else if(type===ITERATE_KEYS){\n          return iteratorValue(type, iterations - 1, undefined, step);\n        }else{\n          return iteratorValue(type, iterations - 1, step.value[1], step);\n        }\n      });\n    }\n\n    return sliceSeq;\n  }\n\n\n  function takeWhileFactory(iterable, predicate, context){\n    var takeSequence=makeSequence(iterable);\n    takeSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterations=0;\n      iterable.__iterate(function(v, k, c) \n        {return predicate.call(context, v, k, c)&&++iterations&&fn(v, k, this$0)}\n);\n      return iterations;\n    };\n    takeSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterating=true;\n      return new Iterator(function(){\n        if(!iterating){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var k=entry[0];\n        var v=entry[1];\n        if(!predicate.call(context, v, k, this$0)){\n          iterating=false;\n          return iteratorDone();\n        }\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return takeSequence;\n  }\n\n\n  function skipWhileFactory(iterable, predicate, context, useKeys){\n    var skipSequence=makeSequence(iterable);\n    skipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(!(isSkipping&&(isSkipping=predicate.call(context, v, k, c)))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      });\n      return iterations;\n    };\n    skipSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var skipping=true;\n      var iterations=0;\n      return new Iterator(function(){\n        var step, k, v;\n        do {\n          step=iterator.next();\n          if(step.done){\n            if(useKeys||type===ITERATE_VALUES){\n              return step;\n            }else if(type===ITERATE_KEYS){\n              return iteratorValue(type, iterations++, undefined, step);\n            }else{\n              return iteratorValue(type, iterations++, step.value[1], step);\n            }\n          }\n          var entry=step.value;\n          k=entry[0];\n          v=entry[1];\n          skipping&&(skipping=predicate.call(context, v, k, this$0));\n        } while (skipping);\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return skipSequence;\n  }\n\n\n  function concatFactory(iterable, values){\n    var isKeyedIterable=isKeyed(iterable);\n    var iters=[iterable].concat(values).map(function(v){\n      if(!isIterable(v)){\n        v=isKeyedIterable ?\n          keyedSeqFromValue(v) :\n          indexedSeqFromValue(Array.isArray(v) ? v:[v]);\n      }else if(isKeyedIterable){\n        v=KeyedIterable(v);\n      }\n      return v;\n    }).filter(function(v){return v.size!==0});\n\n    if(iters.length===0){\n      return iterable;\n    }\n\n    if(iters.length===1){\n      var singleton=iters[0];\n      if(singleton===iterable||\n          isKeyedIterable&&isKeyed(singleton)||\n          isIndexed(iterable)&&isIndexed(singleton)){\n        return singleton;\n      }\n    }\n\n    var concatSeq=new ArraySeq(iters);\n    if(isKeyedIterable){\n      concatSeq=concatSeq.toKeyedSeq();\n    }else if(!isIndexed(iterable)){\n      concatSeq=concatSeq.toSetSeq();\n    }\n    concatSeq=concatSeq.flatten(true);\n    concatSeq.size=iters.reduce(\n      function(sum, seq){\n        if(sum!==undefined){\n          var size=seq.size;\n          if(size!==undefined){\n            return sum + size;\n          }\n        }\n      },\n      0\n);\n    return concatSeq;\n  }\n\n\n  function flattenFactory(iterable, depth, useKeys){\n    var flatSequence=makeSequence(iterable);\n    flatSequence.__iterateUncached=function(fn, reverse){\n      var iterations=0;\n      var stopped=false;\n      function flatDeep(iter, currentDepth){var this$0=this;\n        iter.__iterate(function(v, k){\n          if((!depth||currentDepth < depth)&&isIterable(v)){\n            flatDeep(v, currentDepth + 1);\n          }else if(fn(v, useKeys ? k:iterations++, this$0)===false){\n            stopped=true;\n          }\n          return !stopped;\n        }, reverse);\n      }\n      flatDeep(iterable, 0);\n      return iterations;\n    }\n    flatSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(type, reverse);\n      var stack=[];\n      var iterations=0;\n      return new Iterator(function(){\n        while (iterator){\n          var step=iterator.next();\n          if(step.done!==false){\n            iterator=stack.pop();\n            continue;\n          }\n          var v=step.value;\n          if(type===ITERATE_ENTRIES){\n            v=v[1];\n          }\n          if((!depth||stack.length < depth)&&isIterable(v)){\n            stack.push(iterator);\n            iterator=v.__iterator(type, reverse);\n          }else{\n            return useKeys ? step:iteratorValue(type, iterations++, v, step);\n          }\n        }\n        return iteratorDone();\n      });\n    }\n    return flatSequence;\n  }\n\n\n  function flatMapFactory(iterable, mapper, context){\n    var coerce=iterableClass(iterable);\n    return iterable.toSeq().map(\n      function(v, k){return coerce(mapper.call(context, v, k, iterable))}\n).flatten(true);\n  }\n\n\n  function interposeFactory(iterable, separator){\n    var interposedSequence=makeSequence(iterable);\n    interposedSequence.size=iterable.size&&iterable.size * 2 -1;\n    interposedSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k) \n        {return (!iterations||fn(separator, iterations++, this$0)!==false)&&\n        fn(v, iterations++, this$0)!==false},\n        reverse\n);\n      return iterations;\n    };\n    interposedSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      var step;\n      return new Iterator(function(){\n        if(!step||iterations % 2){\n          step=iterator.next();\n          if(step.done){\n            return step;\n          }\n        }\n        return iterations % 2 ?\n          iteratorValue(type, iterations++, separator) :\n          iteratorValue(type, iterations++, step.value, step);\n      });\n    };\n    return interposedSequence;\n  }\n\n\n  function sortFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    var isKeyedIterable=isKeyed(iterable);\n    var index=0;\n    var entries=iterable.toSeq().map(\n      function(v, k){return [k, v, index++, mapper ? mapper(v, k, iterable):v]}\n).toArray();\n    entries.sort(function(a, b){return comparator(a[3], b[3])||a[2] - b[2]}).forEach(\n      isKeyedIterable ?\n      function(v, i){ entries[i].length=2; } :\n      function(v, i){ entries[i]=v[1]; }\n);\n    return isKeyedIterable ? KeyedSeq(entries) :\n      isIndexed(iterable) ? IndexedSeq(entries) :\n      SetSeq(entries);\n  }\n\n\n  function maxFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    if(mapper){\n      var entry=iterable.toSeq()\n        .map(function(v, k){return [v, mapper(v, k, iterable)]})\n        .reduce(function(a, b){return maxCompare(comparator, a[1], b[1]) ? b:a});\n      return entry&&entry[0];\n    }else{\n      return iterable.reduce(function(a, b){return maxCompare(comparator, a, b) ? b:a});\n    }\n  }\n\n  function maxCompare(comparator, a, b){\n    var comp=comparator(b, a);\n    // b is considered the new max if the comparator declares them equal, but\n    // they are not equal and b is in fact a nullish value.\n    return (comp===0&&b!==a&&(b===undefined||b===null||b!==b))||comp > 0;\n  }\n\n\n  function zipWithFactory(keyIter, zipper, iters){\n    var zipSequence=makeSequence(keyIter);\n    zipSequence.size=new ArraySeq(iters).map(function(i){return i.size}).min();\n    // Note: this a generic base implementation of __iterate in terms of\n    // __iterator which may be more generically useful in the future.\n    zipSequence.__iterate=function(fn, reverse){\n      \n      // indexed:\n      var iterator=this.__iterator(ITERATE_VALUES, reverse);\n      var step;\n      var iterations=0;\n      while (!(step=iterator.next()).done){\n        if(fn(step.value, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n    zipSequence.__iteratorUncached=function(type, reverse){\n      var iterators=iters.map(function(i)\n        {return (i=Iterable(i), getIterator(reverse ? i.reverse():i))}\n);\n      var iterations=0;\n      var isDone=false;\n      return new Iterator(function(){\n        var steps;\n        if(!isDone){\n          steps=iterators.map(function(i){return i.next()});\n          isDone=steps.some(function(s){return s.done});\n        }\n        if(isDone){\n          return iteratorDone();\n        }\n        return iteratorValue(\n          type,\n          iterations++,\n          zipper.apply(null, steps.map(function(s){return s.value}))\n);\n      });\n    };\n    return zipSequence\n  }\n\n\n  // #pragma Helper Functions\n\n  function reify(iter, seq){\n    return isSeq(iter) ? seq:iter.constructor(seq);\n  }\n\n  function validateEntry(entry){\n    if(entry!==Object(entry)){\n      throw new TypeError('Expected [K, V] tuple: ' + entry);\n    }\n  }\n\n  function resolveSize(iter){\n    assertNotInfinite(iter.size);\n    return ensureSize(iter);\n  }\n\n  function iterableClass(iterable){\n    return isKeyed(iterable) ? KeyedIterable :\n      isIndexed(iterable) ? IndexedIterable :\n      SetIterable;\n  }\n\n  function makeSequence(iterable){\n    return Object.create(\n      (\n        isKeyed(iterable) ? KeyedSeq :\n        isIndexed(iterable) ? IndexedSeq :\n        SetSeq\n).prototype\n);\n  }\n\n  function cacheResultThrough(){\n    if(this._iter.cacheResult){\n      this._iter.cacheResult();\n      this.size=this._iter.size;\n      return this;\n    }else{\n      return Seq.prototype.cacheResult.call(this);\n    }\n  }\n\n  function defaultComparator(a, b){\n    return a > b ? 1:a < b ? -1:0;\n  }\n\n  function forceIterator(keyPath){\n    var iter=getIterator(keyPath);\n    if(!iter){\n      // Array might not be iterable in this environment, so we need a fallback\n      // to our wrapped type.\n      if(!isArrayLike(keyPath)){\n        throw new TypeError('Expected iterable or array-like: ' + keyPath);\n      }\n      iter=getIterator(Iterable(keyPath));\n    }\n    return iter;\n  }\n\n  createClass(Record, KeyedCollection);\n\n    function Record(defaultValues, name){\n      var hasInitialized;\n\n      var RecordType=function Record(values){\n        if(values instanceof RecordType){\n          return values;\n        }\n        if(!(this instanceof RecordType)){\n          return new RecordType(values);\n        }\n        if(!hasInitialized){\n          hasInitialized=true;\n          var keys=Object.keys(defaultValues);\n          setProps(RecordTypePrototype, keys);\n          RecordTypePrototype.size=keys.length;\n          RecordTypePrototype._name=name;\n          RecordTypePrototype._keys=keys;\n          RecordTypePrototype._defaultValues=defaultValues;\n        }\n        this._map=Map(values);\n      };\n\n      var RecordTypePrototype=RecordType.prototype=Object.create(RecordPrototype);\n      RecordTypePrototype.constructor=RecordType;\n\n      return RecordType;\n    }\n\n    Record.prototype.toString=function(){\n      return this.__toString(recordName(this) + ' {', '}');\n    };\n\n    // @pragma Access\n\n    Record.prototype.has=function(k){\n      return this._defaultValues.hasOwnProperty(k);\n    };\n\n    Record.prototype.get=function(k, notSetValue){\n      if(!this.has(k)){\n        return notSetValue;\n      }\n      var defaultVal=this._defaultValues[k];\n      return this._map ? this._map.get(k, defaultVal):defaultVal;\n    };\n\n    // @pragma Modification\n\n    Record.prototype.clear=function(){\n      if(this.__ownerID){\n        this._map&&this._map.clear();\n        return this;\n      }\n      var RecordType=this.constructor;\n      return RecordType._empty||(RecordType._empty=makeRecord(this, emptyMap()));\n    };\n\n    Record.prototype.set=function(k, v){\n      if(!this.has(k)){\n        throw new Error('Cannot set unknown key \"' + k + '\" on ' + recordName(this));\n      }\n      var newMap=this._map&&this._map.set(k, v);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.remove=function(k){\n      if(!this.has(k)){\n        return this;\n      }\n      var newMap=this._map&&this._map.remove(k);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Record.prototype.__iterator=function(type, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterator(type, reverse);\n    };\n\n    Record.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterate(fn, reverse);\n    };\n\n    Record.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map&&this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return makeRecord(this, newMap, ownerID);\n    };\n\n\n  var RecordPrototype=Record.prototype;\n  RecordPrototype[DELETE]=RecordPrototype.remove;\n  RecordPrototype.deleteIn=\n  RecordPrototype.removeIn=MapPrototype.removeIn;\n  RecordPrototype.merge=MapPrototype.merge;\n  RecordPrototype.mergeWith=MapPrototype.mergeWith;\n  RecordPrototype.mergeIn=MapPrototype.mergeIn;\n  RecordPrototype.mergeDeep=MapPrototype.mergeDeep;\n  RecordPrototype.mergeDeepWith=MapPrototype.mergeDeepWith;\n  RecordPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  RecordPrototype.setIn=MapPrototype.setIn;\n  RecordPrototype.update=MapPrototype.update;\n  RecordPrototype.updateIn=MapPrototype.updateIn;\n  RecordPrototype.withMutations=MapPrototype.withMutations;\n  RecordPrototype.asMutable=MapPrototype.asMutable;\n  RecordPrototype.asImmutable=MapPrototype.asImmutable;\n\n\n  function makeRecord(likeRecord, map, ownerID){\n    var record=Object.create(Object.getPrototypeOf(likeRecord));\n    record._map=map;\n    record.__ownerID=ownerID;\n    return record;\n  }\n\n  function recordName(record){\n    return record._name||record.constructor.name||'Record';\n  }\n\n  function setProps(prototype, names){\n    try {\n      names.forEach(setProp.bind(undefined, prototype));\n    } catch (error){\n      // Object.defineProperty failed. Probably IE8.\n    }\n  }\n\n  function setProp(prototype, name){\n    Object.defineProperty(prototype, name, {\n      get: function(){\n        return this.get(name);\n      },\n      set: function(value){\n        invariant(this.__ownerID, 'Cannot set on an immutable record.');\n        this.set(name, value);\n      }\n    });\n  }\n\n  createClass(Set, SetCollection);\n\n    // @pragma Construction\n\n    function Set(value){\n      return value===null||value===undefined ? emptySet() :\n        isSet(value)&&!isOrdered(value) ? value :\n        emptySet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    Set.of=function(){\n      return this(arguments);\n    };\n\n    Set.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    Set.prototype.toString=function(){\n      return this.__toString('Set {', '}');\n    };\n\n    // @pragma Access\n\n    Set.prototype.has=function(value){\n      return this._map.has(value);\n    };\n\n    // @pragma Modification\n\n    Set.prototype.add=function(value){\n      return updateSet(this, this._map.set(value, true));\n    };\n\n    Set.prototype.remove=function(value){\n      return updateSet(this, this._map.remove(value));\n    };\n\n    Set.prototype.clear=function(){\n      return updateSet(this, this._map.clear());\n    };\n\n    // @pragma Composition\n\n    Set.prototype.union=function(){var iters=SLICE$0.call(arguments, 0);\n      iters=iters.filter(function(x){return x.size!==0});\n      if(iters.length===0){\n        return this;\n      }\n      if(this.size===0&&!this.__ownerID&&iters.length===1){\n        return this.constructor(iters[0]);\n      }\n      return this.withMutations(function(set){\n        for (var ii=0; ii < iters.length; ii++){\n          SetIterable(iters[ii]).forEach(function(value){return set.add(value)});\n        }\n      });\n    };\n\n    Set.prototype.intersect=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(!iters.every(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.subtract=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(iters.some(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.merge=function(){\n      return this.union.apply(this, arguments);\n    };\n\n    Set.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return this.union.apply(this, iters);\n    };\n\n    Set.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator));\n    };\n\n    Set.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator, mapper));\n    };\n\n    Set.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Set.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._map.__iterate(function(_, k){return fn(k, k, this$0)}, reverse);\n    };\n\n    Set.prototype.__iterator=function(type, reverse){\n      return this._map.map(function(_, k){return k}).__iterator(type, reverse);\n    };\n\n    Set.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return this.__make(newMap, ownerID);\n    };\n\n\n  function isSet(maybeSet){\n    return !!(maybeSet&&maybeSet[IS_SET_SENTINEL]);\n  }\n\n  Set.isSet=isSet;\n\n  var IS_SET_SENTINEL='@@__IMMUTABLE_SET__@@';\n\n  var SetPrototype=Set.prototype;\n  SetPrototype[IS_SET_SENTINEL]=true;\n  SetPrototype[DELETE]=SetPrototype.remove;\n  SetPrototype.mergeDeep=SetPrototype.merge;\n  SetPrototype.mergeDeepWith=SetPrototype.mergeWith;\n  SetPrototype.withMutations=MapPrototype.withMutations;\n  SetPrototype.asMutable=MapPrototype.asMutable;\n  SetPrototype.asImmutable=MapPrototype.asImmutable;\n\n  SetPrototype.__empty=emptySet;\n  SetPrototype.__make=makeSet;\n\n  function updateSet(set, newMap){\n    if(set.__ownerID){\n      set.size=newMap.size;\n      set._map=newMap;\n      return set;\n    }\n    return newMap===set._map ? set :\n      newMap.size===0 ? set.__empty() :\n      set.__make(newMap);\n  }\n\n  function makeSet(map, ownerID){\n    var set=Object.create(SetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_SET;\n  function emptySet(){\n    return EMPTY_SET||(EMPTY_SET=makeSet(emptyMap()));\n  }\n\n  createClass(OrderedSet, Set);\n\n    // @pragma Construction\n\n    function OrderedSet(value){\n      return value===null||value===undefined ? emptyOrderedSet() :\n        isOrderedSet(value) ? value :\n        emptyOrderedSet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    OrderedSet.of=function(){\n      return this(arguments);\n    };\n\n    OrderedSet.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    OrderedSet.prototype.toString=function(){\n      return this.__toString('OrderedSet {', '}');\n    };\n\n\n  function isOrderedSet(maybeOrderedSet){\n    return isSet(maybeOrderedSet)&&isOrdered(maybeOrderedSet);\n  }\n\n  OrderedSet.isOrderedSet=isOrderedSet;\n\n  var OrderedSetPrototype=OrderedSet.prototype;\n  OrderedSetPrototype[IS_ORDERED_SENTINEL]=true;\n\n  OrderedSetPrototype.__empty=emptyOrderedSet;\n  OrderedSetPrototype.__make=makeOrderedSet;\n\n  function makeOrderedSet(map, ownerID){\n    var set=Object.create(OrderedSetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_ORDERED_SET;\n  function emptyOrderedSet(){\n    return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()));\n  }\n\n  createClass(Stack, IndexedCollection);\n\n    // @pragma Construction\n\n    function Stack(value){\n      return value===null||value===undefined ? emptyStack() :\n        isStack(value) ? value :\n        emptyStack().unshiftAll(value);\n    }\n\n    Stack.of=function(){\n      return this(arguments);\n    };\n\n    Stack.prototype.toString=function(){\n      return this.__toString('Stack [', ']');\n    };\n\n    // @pragma Access\n\n    Stack.prototype.get=function(index, notSetValue){\n      var head=this._head;\n      index=wrapIndex(this, index);\n      while (head&&index--){\n        head=head.next;\n      }\n      return head ? head.value:notSetValue;\n    };\n\n    Stack.prototype.peek=function(){\n      return this._head&&this._head.value;\n    };\n\n    // @pragma Modification\n\n    Stack.prototype.push=function(){\n      if(arguments.length===0){\n        return this;\n      }\n      var newSize=this.size + arguments.length;\n      var head=this._head;\n      for (var ii=arguments.length - 1; ii >=0; ii--){\n        head={\n          value: arguments[ii],\n          next: head\n        };\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pushAll=function(iter){\n      iter=IndexedIterable(iter);\n      if(iter.size===0){\n        return this;\n      }\n      assertNotInfinite(iter.size);\n      var newSize=this.size;\n      var head=this._head;\n      iter.reverse().forEach(function(value){\n        newSize++;\n        head={\n          value: value,\n          next: head\n        };\n      });\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pop=function(){\n      return this.slice(1);\n    };\n\n    Stack.prototype.unshift=function(){\n      return this.push.apply(this, arguments);\n    };\n\n    Stack.prototype.unshiftAll=function(iter){\n      return this.pushAll(iter);\n    };\n\n    Stack.prototype.shift=function(){\n      return this.pop.apply(this, arguments);\n    };\n\n    Stack.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._head=undefined;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyStack();\n    };\n\n    Stack.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      var resolvedBegin=resolveBegin(begin, this.size);\n      var resolvedEnd=resolveEnd(end, this.size);\n      if(resolvedEnd!==this.size){\n        // super.slice(begin, end);\n        return IndexedCollection.prototype.slice.call(this, begin, end);\n      }\n      var newSize=this.size - resolvedBegin;\n      var head=this._head;\n      while (resolvedBegin--){\n        head=head.next;\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    // @pragma Mutability\n\n    Stack.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeStack(this.size, this._head, ownerID, this.__hash);\n    };\n\n    // @pragma Iteration\n\n    Stack.prototype.__iterate=function(fn, reverse){\n      if(reverse){\n        return this.reverse().__iterate(fn);\n      }\n      var iterations=0;\n      var node=this._head;\n      while (node){\n        if(fn(node.value, iterations++, this)===false){\n          break;\n        }\n        node=node.next;\n      }\n      return iterations;\n    };\n\n    Stack.prototype.__iterator=function(type, reverse){\n      if(reverse){\n        return this.reverse().__iterator(type);\n      }\n      var iterations=0;\n      var node=this._head;\n      return new Iterator(function(){\n        if(node){\n          var value=node.value;\n          node=node.next;\n          return iteratorValue(type, iterations++, value);\n        }\n        return iteratorDone();\n      });\n    };\n\n\n  function isStack(maybeStack){\n    return !!(maybeStack&&maybeStack[IS_STACK_SENTINEL]);\n  }\n\n  Stack.isStack=isStack;\n\n  var IS_STACK_SENTINEL='@@__IMMUTABLE_STACK__@@';\n\n  var StackPrototype=Stack.prototype;\n  StackPrototype[IS_STACK_SENTINEL]=true;\n  StackPrototype.withMutations=MapPrototype.withMutations;\n  StackPrototype.asMutable=MapPrototype.asMutable;\n  StackPrototype.asImmutable=MapPrototype.asImmutable;\n  StackPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n  function makeStack(size, head, ownerID, hash){\n    var map=Object.create(StackPrototype);\n    map.size=size;\n    map._head=head;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_STACK;\n  function emptyStack(){\n    return EMPTY_STACK||(EMPTY_STACK=makeStack(0));\n  }\n\n  \n  function mixin(ctor, methods){\n    var keyCopier=function(key){ ctor.prototype[key]=methods[key]; };\n    Object.keys(methods).forEach(keyCopier);\n    Object.getOwnPropertySymbols&&\n      Object.getOwnPropertySymbols(methods).forEach(keyCopier);\n    return ctor;\n  }\n\n  Iterable.Iterator=Iterator;\n\n  mixin(Iterable, {\n\n    // ### Conversion to other types\n\n    toArray: function(){\n      assertNotInfinite(this.size);\n      var array=new Array(this.size||0);\n      this.valueSeq().__iterate(function(v, i){ array[i]=v; });\n      return array;\n    },\n\n    toIndexedSeq: function(){\n      return new ToIndexedSequence(this);\n    },\n\n    toJS: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJS==='function' ? value.toJS():value}\n).__toJS();\n    },\n\n    toJSON: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJSON==='function' ? value.toJSON():value}\n).__toJS();\n    },\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, true);\n    },\n\n    toMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Map(this.toKeyedSeq());\n    },\n\n    toObject: function(){\n      assertNotInfinite(this.size);\n      var object={};\n      this.__iterate(function(v, k){ object[k]=v; });\n      return object;\n    },\n\n    toOrderedMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedMap(this.toKeyedSeq());\n    },\n\n    toOrderedSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedSet(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Set(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSetSeq: function(){\n      return new ToSetSequence(this);\n    },\n\n    toSeq: function(){\n      return isIndexed(this) ? this.toIndexedSeq() :\n        isKeyed(this) ? this.toKeyedSeq() :\n        this.toSetSeq();\n    },\n\n    toStack: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Stack(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toList: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return List(isKeyed(this) ? this.valueSeq():this);\n    },\n\n\n    // ### Common JavaScript methods and properties\n\n    toString: function(){\n      return '[Iterable]';\n    },\n\n    __toString: function(head, tail){\n      if(this.size===0){\n        return head + tail;\n      }\n      return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    concat: function(){var values=SLICE$0.call(arguments, 0);\n      return reify(this, concatFactory(this, values));\n    },\n\n    includes: function(searchValue){\n      return this.some(function(value){return is(value, searchValue)});\n    },\n\n    entries: function(){\n      return this.__iterator(ITERATE_ENTRIES);\n    },\n\n    every: function(predicate, context){\n      assertNotInfinite(this.size);\n      var returnValue=true;\n      this.__iterate(function(v, k, c){\n        if(!predicate.call(context, v, k, c)){\n          returnValue=false;\n          return false;\n        }\n      });\n      return returnValue;\n    },\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, true));\n    },\n\n    find: function(predicate, context, notSetValue){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[1]:notSetValue;\n    },\n\n    findEntry: function(predicate, context){\n      var found;\n      this.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          found=[k, v];\n          return false;\n        }\n      });\n      return found;\n    },\n\n    findLastEntry: function(predicate, context){\n      return this.toSeq().reverse().findEntry(predicate, context);\n    },\n\n    forEach: function(sideEffect, context){\n      assertNotInfinite(this.size);\n      return this.__iterate(context ? sideEffect.bind(context):sideEffect);\n    },\n\n    join: function(separator){\n      assertNotInfinite(this.size);\n      separator=separator!==undefined ? '' + separator:',';\n      var joined='';\n      var isFirst=true;\n      this.__iterate(function(v){\n        isFirst ? (isFirst=false):(joined +=separator);\n        joined +=v!==null&&v!==undefined ? v.toString():'';\n      });\n      return joined;\n    },\n\n    keys: function(){\n      return this.__iterator(ITERATE_KEYS);\n    },\n\n    map: function(mapper, context){\n      return reify(this, mapFactory(this, mapper, context));\n    },\n\n    reduce: function(reducer, initialReduction, context){\n      assertNotInfinite(this.size);\n      var reduction;\n      var useFirst;\n      if(arguments.length < 2){\n        useFirst=true;\n      }else{\n        reduction=initialReduction;\n      }\n      this.__iterate(function(v, k, c){\n        if(useFirst){\n          useFirst=false;\n          reduction=v;\n        }else{\n          reduction=reducer.call(context, reduction, v, k, c);\n        }\n      });\n      return reduction;\n    },\n\n    reduceRight: function(reducer, initialReduction, context){\n      var reversed=this.toKeyedSeq().reverse();\n      return reversed.reduce.apply(reversed, arguments);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, true));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, true));\n    },\n\n    some: function(predicate, context){\n      return !this.every(not(predicate), context);\n    },\n\n    sort: function(comparator){\n      return reify(this, sortFactory(this, comparator));\n    },\n\n    values: function(){\n      return this.__iterator(ITERATE_VALUES);\n    },\n\n\n    // ### More sequential methods\n\n    butLast: function(){\n      return this.slice(0, -1);\n    },\n\n    isEmpty: function(){\n      return this.size!==undefined ? this.size===0:!this.some(function(){return true});\n    },\n\n    count: function(predicate, context){\n      return ensureSize(\n        predicate ? this.toSeq().filter(predicate, context):this\n);\n    },\n\n    countBy: function(grouper, context){\n      return countByFactory(this, grouper, context);\n    },\n\n    equals: function(other){\n      return deepEqual(this, other);\n    },\n\n    entrySeq: function(){\n      var iterable=this;\n      if(iterable._cache){\n        // We cache as an entries array, so we can just return the cache!\n        return new ArraySeq(iterable._cache);\n      }\n      var entriesSequence=iterable.toSeq().map(entryMapper).toIndexedSeq();\n      entriesSequence.fromEntrySeq=function(){return iterable.toSeq()};\n      return entriesSequence;\n    },\n\n    filterNot: function(predicate, context){\n      return this.filter(not(predicate), context);\n    },\n\n    findLast: function(predicate, context, notSetValue){\n      return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);\n    },\n\n    first: function(){\n      return this.find(returnTrue);\n    },\n\n    flatMap: function(mapper, context){\n      return reify(this, flatMapFactory(this, mapper, context));\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, true));\n    },\n\n    fromEntrySeq: function(){\n      return new FromEntriesSequence(this);\n    },\n\n    get: function(searchKey, notSetValue){\n      return this.find(function(_, key){return is(key, searchKey)}, undefined, notSetValue);\n    },\n\n    getIn: function(searchKeyPath, notSetValue){\n      var nested=this;\n      // Note: in an ES6 environment, we would prefer:\n      // for (var key of searchKeyPath){\n      var iter=forceIterator(searchKeyPath);\n      var step;\n      while (!(step=iter.next()).done){\n        var key=step.value;\n        nested=nested&&nested.get ? nested.get(key, NOT_SET):NOT_SET;\n        if(nested===NOT_SET){\n          return notSetValue;\n        }\n      }\n      return nested;\n    },\n\n    groupBy: function(grouper, context){\n      return groupByFactory(this, grouper, context);\n    },\n\n    has: function(searchKey){\n      return this.get(searchKey, NOT_SET)!==NOT_SET;\n    },\n\n    hasIn: function(searchKeyPath){\n      return this.getIn(searchKeyPath, NOT_SET)!==NOT_SET;\n    },\n\n    isSubset: function(iter){\n      iter=typeof iter.includes==='function' ? iter:Iterable(iter);\n      return this.every(function(value){return iter.includes(value)});\n    },\n\n    isSuperset: function(iter){\n      iter=typeof iter.isSubset==='function' ? iter:Iterable(iter);\n      return iter.isSubset(this);\n    },\n\n    keySeq: function(){\n      return this.toSeq().map(keyMapper).toIndexedSeq();\n    },\n\n    last: function(){\n      return this.toSeq().reverse().first();\n    },\n\n    max: function(comparator){\n      return maxFactory(this, comparator);\n    },\n\n    maxBy: function(mapper, comparator){\n      return maxFactory(this, comparator, mapper);\n    },\n\n    min: function(comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator);\n    },\n\n    minBy: function(mapper, comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator, mapper);\n    },\n\n    rest: function(){\n      return this.slice(1);\n    },\n\n    skip: function(amount){\n      return this.slice(Math.max(0, amount));\n    },\n\n    skipLast: function(amount){\n      return reify(this, this.toSeq().reverse().skip(amount).reverse());\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, true));\n    },\n\n    skipUntil: function(predicate, context){\n      return this.skipWhile(not(predicate), context);\n    },\n\n    sortBy: function(mapper, comparator){\n      return reify(this, sortFactory(this, comparator, mapper));\n    },\n\n    take: function(amount){\n      return this.slice(0, Math.max(0, amount));\n    },\n\n    takeLast: function(amount){\n      return reify(this, this.toSeq().reverse().take(amount).reverse());\n    },\n\n    takeWhile: function(predicate, context){\n      return reify(this, takeWhileFactory(this, predicate, context));\n    },\n\n    takeUntil: function(predicate, context){\n      return this.takeWhile(not(predicate), context);\n    },\n\n    valueSeq: function(){\n      return this.toIndexedSeq();\n    },\n\n\n    // ### Hashable Object\n\n    hashCode: function(){\n      return this.__hash||(this.__hash=hashIterable(this));\n    }\n\n\n    // ### Internal\n\n    // abstract __iterate(fn, reverse)\n\n    // abstract __iterator(type, reverse)\n  });\n\n  // var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  // var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  // var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  // var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  var IterablePrototype=Iterable.prototype;\n  IterablePrototype[IS_ITERABLE_SENTINEL]=true;\n  IterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.values;\n  IterablePrototype.__toJS=IterablePrototype.toArray;\n  IterablePrototype.__toStringMapper=quoteString;\n  IterablePrototype.inspect=\n  IterablePrototype.toSource=function(){ return this.toString(); };\n  IterablePrototype.chain=IterablePrototype.flatMap;\n  IterablePrototype.contains=IterablePrototype.includes;\n\n  // Temporary warning about using length\n  (function (){\n    try {\n      Object.defineProperty(IterablePrototype, 'length', {\n        get: function (){\n          if(!Iterable.noLengthWarning){\n            var stack;\n            try {\n              throw new Error();\n            } catch (error){\n              stack=error.stack;\n            }\n            if(stack.indexOf('_wrapObject')===-1){\n              console&&console.warn&&console.warn(\n                'iterable.length has been deprecated, '+\n                'use iterable.size or iterable.count(). '+\n                'This warning will become a silent error in a future version. ' +\n                stack\n);\n              return this.size;\n            }\n          }\n        }\n      });\n    } catch (e){}\n  })();\n\n\n\n  mixin(KeyedIterable, {\n\n    // ### More sequential methods\n\n    flip: function(){\n      return reify(this, flipFactory(this));\n    },\n\n    findKey: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry&&entry[0];\n    },\n\n    findLastKey: function(predicate, context){\n      return this.toSeq().reverse().findKey(predicate, context);\n    },\n\n    keyOf: function(searchValue){\n      return this.findKey(function(value){return is(value, searchValue)});\n    },\n\n    lastKeyOf: function(searchValue){\n      return this.findLastKey(function(value){return is(value, searchValue)});\n    },\n\n    mapEntries: function(mapper, context){var this$0=this;\n      var iterations=0;\n      return reify(this,\n        this.toSeq().map(\n          function(v, k){return mapper.call(context, [k, v], iterations++, this$0)}\n).fromEntrySeq()\n);\n    },\n\n    mapKeys: function(mapper, context){var this$0=this;\n      return reify(this,\n        this.toSeq().flip().map(\n          function(k, v){return mapper.call(context, k, v, this$0)}\n).flip()\n);\n    }\n\n  });\n\n  var KeyedIterablePrototype=KeyedIterable.prototype;\n  KeyedIterablePrototype[IS_KEYED_SENTINEL]=true;\n  KeyedIterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.entries;\n  KeyedIterablePrototype.__toJS=IterablePrototype.toObject;\n  KeyedIterablePrototype.__toStringMapper=function(v, k){return JSON.stringify(k) + ': ' + quoteString(v)};\n\n\n\n  mixin(IndexedIterable, {\n\n    // ### Conversion to other types\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, false);\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, false));\n    },\n\n    findIndex: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[0]:-1;\n    },\n\n    indexOf: function(searchValue){\n      var key=this.toKeyedSeq().keyOf(searchValue);\n      return key===undefined ? -1:key;\n    },\n\n    lastIndexOf: function(searchValue){\n      var key=this.toKeyedSeq().reverse().keyOf(searchValue);\n      return key===undefined ? -1:key;\n\n      // var index=\n      // return this.toSeq().reverse().indexOf(searchValue);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, false));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, false));\n    },\n\n    splice: function(index, removeNum ){\n      var numArgs=arguments.length;\n      removeNum=Math.max(removeNum | 0, 0);\n      if(numArgs===0||(numArgs===2&&!removeNum)){\n        return this;\n      }\n      // If index is negative, it should resolve relative to the size of the\n      // collection. However size may be expensive to compute if not cached, so\n      // only call count() if the number is in fact negative.\n      index=resolveBegin(index, index < 0 ? this.count():this.size);\n      var spliced=this.slice(0, index);\n      return reify(\n        this,\n        numArgs===1 ?\n          spliced :\n          spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))\n);\n    },\n\n\n    // ### More collection methods\n\n    findLastIndex: function(predicate, context){\n      var key=this.toKeyedSeq().findLastKey(predicate, context);\n      return key===undefined ? -1:key;\n    },\n\n    first: function(){\n      return this.get(0);\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, false));\n    },\n\n    get: function(index, notSetValue){\n      index=wrapIndex(this, index);\n      return (index < 0||(this.size===Infinity||\n          (this.size!==undefined&&index > this.size))) ?\n        notSetValue :\n        this.find(function(_, key){return key===index}, undefined, notSetValue);\n    },\n\n    has: function(index){\n      index=wrapIndex(this, index);\n      return index >=0&&(this.size!==undefined ?\n        this.size===Infinity||index < this.size :\n        this.indexOf(index)!==-1\n);\n    },\n\n    interpose: function(separator){\n      return reify(this, interposeFactory(this, separator));\n    },\n\n    interleave: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      var zipped=zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);\n      var interleaved=zipped.flatten(true);\n      if(zipped.size){\n        interleaved.size=zipped.size * iterables.length;\n      }\n      return reify(this, interleaved);\n    },\n\n    last: function(){\n      return this.get(-1);\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, false));\n    },\n\n    zip: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      return reify(this, zipWithFactory(this, defaultZipper, iterables));\n    },\n\n    zipWith: function(zipper){\n      var iterables=arrCopy(arguments);\n      iterables[0]=this;\n      return reify(this, zipWithFactory(this, zipper, iterables));\n    }\n\n  });\n\n  IndexedIterable.prototype[IS_INDEXED_SENTINEL]=true;\n  IndexedIterable.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n\n  mixin(SetIterable, {\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    get: function(value, notSetValue){\n      return this.has(value) ? value:notSetValue;\n    },\n\n    includes: function(value){\n      return this.has(value);\n    },\n\n\n    // ### More sequential methods\n\n    keySeq: function(){\n      return this.valueSeq();\n    }\n\n  });\n\n  SetIterable.prototype.has=IterablePrototype.includes;\n\n\n  // Mixin subclasses\n\n  mixin(KeyedSeq, KeyedIterable.prototype);\n  mixin(IndexedSeq, IndexedIterable.prototype);\n  mixin(SetSeq, SetIterable.prototype);\n\n  mixin(KeyedCollection, KeyedIterable.prototype);\n  mixin(IndexedCollection, IndexedIterable.prototype);\n  mixin(SetCollection, SetIterable.prototype);\n\n\n  // #pragma Helper functions\n\n  function keyMapper(v, k){\n    return k;\n  }\n\n  function entryMapper(v, k){\n    return [k, v];\n  }\n\n  function not(predicate){\n    return function(){\n      return !predicate.apply(this, arguments);\n    }\n  }\n\n  function neg(predicate){\n    return function(){\n      return -predicate.apply(this, arguments);\n    }\n  }\n\n  function quoteString(value){\n    return typeof value==='string' ? JSON.stringify(value):value;\n  }\n\n  function defaultZipper(){\n    return arrCopy(arguments);\n  }\n\n  function defaultNegComparator(a, b){\n    return a < b ? 1:a > b ? -1:0;\n  }\n\n  function hashIterable(iterable){\n    if(iterable.size===Infinity){\n      return 0;\n    }\n    var ordered=isOrdered(iterable);\n    var keyed=isKeyed(iterable);\n    var h=ordered ? 1:0;\n    var size=iterable.__iterate(\n      keyed ?\n        ordered ?\n          function(v, k){ h=31 * h + hashMerge(hash(v), hash(k)) | 0; } :\n          function(v, k){ h=h + hashMerge(hash(v), hash(k)) | 0; } :\n        ordered ?\n          function(v){ h=31 * h + hash(v) | 0; } :\n          function(v){ h=h + hash(v) | 0; }\n);\n    return murmurHashOfSize(size, h);\n  }\n\n  function murmurHashOfSize(size, h){\n    h=imul(h, 0xCC9E2D51);\n    h=imul(h << 15 | h >>> -15, 0x1B873593);\n    h=imul(h << 13 | h >>> -13, 5);\n    h=(h + 0xE6546B64 | 0) ^ size;\n    h=imul(h ^ h >>> 16, 0x85EBCA6B);\n    h=imul(h ^ h >>> 13, 0xC2B2AE35);\n    h=smi(h ^ h >>> 16);\n    return h;\n  }\n\n  function hashMerge(a, b){\n    return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int\n  }\n\n  var Immutable={\n\n    Iterable: Iterable,\n\n    Seq: Seq,\n    Collection: Collection,\n    Map: Map,\n    OrderedMap: OrderedMap,\n    List: List,\n    Stack: Stack,\n    Set: Set,\n    OrderedSet: OrderedSet,\n\n    Record: Record,\n    Range: Range,\n    Repeat: Repeat,\n\n    is: is,\n    fromJS: fromJS\n\n  };\n\n  return Immutable;\n\n}));\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-editor/node_modules/immutable/dist/immutable.js?");
}),
"./node_modules/draft-js-plugins-utils/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nexports.default={\n  createLinkAtSelection: function createLinkAtSelection(editorState, url){\n    var contentState=editorState.getCurrentContent().createEntity('LINK', 'MUTABLE', { url });\n    var entityKey=contentState.getLastCreatedEntityKey();\n    var withLink=_draftJs.RichUtils.toggleLink(editorState, editorState.getSelection(), entityKey);\n    return _draftJs.EditorState.forceSelection(withLink, editorState.getSelection());\n  },\n  removeLinkAtSelection: function removeLinkAtSelection(editorState){\n    var selection=editorState.getSelection();\n    return _draftJs.RichUtils.toggleLink(editorState, selection, null);\n  },\n  createTipAtSelection: function createTipAtSelection(editorState, title){\n    var contentState=editorState.getCurrentContent().createEntity('TOOLTIP', 'MUTABLE', { title });\n    var entityKey=contentState.getLastCreatedEntityKey();\n    var withLink=_draftJs.RichUtils.toggleLink(editorState, editorState.getSelection(), entityKey);\n    return _draftJs.EditorState.forceSelection(withLink, editorState.getSelection());\n  },\n  removeTipAtSelection: function removeTipAtSelection(editorState){\n    var selection=editorState.getSelection();\n    return _draftJs.RichUtils.toggleLink(editorState, selection, null);\n  },\n  createHighlightAtSelection: function createHighlightAtSelection(editorState, highlight){\n    console.log('highlight',highlight);\n    var contentState=editorState.getCurrentContent().createEntity('HIGHLIGHT', 'MUTABLE', { highlight });\n    var entityKey=contentState.getLastCreatedEntityKey();\n    var withLink=_draftJs.RichUtils.toggleLink(editorState, editorState.getSelection(), entityKey);\n    return _draftJs.EditorState.forceSelection(withLink, editorState.getSelection());\n  },\n  removeHighlightAtSelection: function removeHighlightAtSelection(editorState){\n    var selection=editorState.getSelection();\n    return _draftJs.RichUtils.toggleLink(editorState, selection, null);\n  },\n  getCurrentEntityKey: function getCurrentEntityKey(editorState){\n    var selection=editorState.getSelection();\n    var anchorKey=selection.getAnchorKey();\n    var contentState=editorState.getCurrentContent();\n    var anchorBlock=contentState.getBlockForKey(anchorKey);\n    var offset=selection.anchorOffset;\n    var index=selection.isBackward ? offset - 1:offset;\n    return anchorBlock.getEntityAt(index);\n  },\n  getCurrentEntity: function getCurrentEntity(editorState){\n    var contentState=editorState.getCurrentContent();\n    var entityKey=this.getCurrentEntityKey(editorState);\n    return entityKey ? contentState.getEntity(entityKey):null;\n  },\n  hasEntity: function hasEntity(editorState, entityType){\n    var entity=this.getCurrentEntity(editorState);\n    return entity&&entity.getType()===entityType;\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-plugins-utils/lib/index.js?");
}),
"./node_modules/draft-js-resizeable-plugin/lib/createDecorator.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _reactDom=__webpack_require__( \"./node_modules/react-dom/index.js\");\n\nvar _reactDom2=_interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _objectWithoutProperties(obj, keys){ var target={}; for (var i in obj){ if(keys.indexOf(i) >=0) continue; if(!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i]=obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; }\n\nvar getDisplayName=function getDisplayName(WrappedComponent){\n  var component=WrappedComponent.WrappedComponent||WrappedComponent;\n  return component.displayName||component.name||'Component';\n};\n\nvar round=function round(x, steps){\n  return Math.ceil(x / steps) * steps;\n};\n\nexports.default=function (_ref){\n  var config=_ref.config,\n      store=_ref.store;\n  return function (WrappedComponent){\n    var _class, _temp2;\n\n    return _temp2=_class=function (_Component){\n      _inherits(BlockResizeableDecorator, _Component);\n\n      function BlockResizeableDecorator(){\n        var _ref2;\n\n        var _temp, _this, _ret;\n\n        _classCallCheck(this, BlockResizeableDecorator);\n\n        for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n          args[_key]=arguments[_key];\n        }\n\n        return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref2=BlockResizeableDecorator.__proto__||Object.getPrototypeOf(BlockResizeableDecorator)).call.apply(_ref2, [this].concat(args))), _this), _this.state={\n          hoverPosition: {},\n          clicked: false\n        }, _this.setEntityData=function (data){\n          _this.props.blockProps.setResizeData(data);\n        }, _this.mouseLeave=function (){\n          if(!_this.state.clicked){\n            _this.setState({ hoverPosition: {}});\n          }\n        }, _this.mouseMove=function (evt){\n          var _this$props=_this.props,\n              vertical=_this$props.vertical,\n              horizontal=_this$props.horizontal;\n\n\n          var hoverPosition=_this.state.hoverPosition;\n          var tolerance=6;\n          // TODO figure out if and how to achieve this without fetching the DOM node\n          // eslint-disable-next-line react/no-find-dom-node\n          var pane=_reactDom2.default.findDOMNode(_this);\n          var b=pane.getBoundingClientRect();\n          var x=evt.clientX - b.left;\n          var y=evt.clientY - b.top;\n\n          var isTop=vertical&&vertical!=='auto' ? y < tolerance:false;\n          var isLeft=horizontal ? x < tolerance:false;\n          var isRight=horizontal ? x >=b.width - tolerance:false;\n          var isBottom=vertical&&vertical!=='auto' ? y >=b.height - tolerance&&y < b.height:false;\n\n          var canResize=isTop||isLeft||isRight||isBottom;\n\n          var newHoverPosition={\n            isTop: isTop, isLeft: isLeft, isRight: isRight, isBottom: isBottom, canResize: canResize\n          };\n          var hasNewHoverPositions=Object.keys(newHoverPosition).filter(function (key){\n            return hoverPosition[key]!==newHoverPosition[key];\n          });\n\n          if(hasNewHoverPositions.length){\n            _this.setState({ hoverPosition: newHoverPosition });\n          }\n        }, _this.mouseDown=function (event){\n          // No mouse-hover-position data? Nothing to resize!\n          if(!_this.state.hoverPosition.canResize){\n            return;\n          }\n\n          event.preventDefault();\n          var _this$props2=_this.props,\n              resizeSteps=_this$props2.resizeSteps,\n              vertical=_this$props2.vertical,\n              horizontal=_this$props2.horizontal;\n          var hoverPosition=_this.state.hoverPosition;\n          var isTop=hoverPosition.isTop,\n              isLeft=hoverPosition.isLeft,\n              isRight=hoverPosition.isRight,\n              isBottom=hoverPosition.isBottom;\n\n          // TODO figure out how to achieve this without fetching the DOM node\n          // eslint-disable-next-line react/no-find-dom-node\n\n          var pane=_reactDom2.default.findDOMNode(_this);\n          var startX=event.clientX;\n          var startY=event.clientY;\n          var startWidth=parseInt(document.defaultView.getComputedStyle(pane).width, 10);\n          var startHeight=parseInt(document.defaultView.getComputedStyle(pane).height, 10);\n\n          // Do the actual drag operation\n          var doDrag=function doDrag(dragEvent){\n            var width=startWidth + (isLeft ? startX - dragEvent.clientX:dragEvent.clientX - startX);\n            var height=startHeight + dragEvent.clientY - startY;\n\n            var editorComp=store.getEditorRef();\n            // this keeps backwards-compatibility with react 15\n            var editorNode=editorComp.refs.editor ? editorComp.refs.editor:editorComp.editor;\n\n            width=Math.min(editorNode.clientWidth, width);\n            height=Math.min(editorNode.clientHeight, height);\n\n            var widthPerc=100 / editorNode.clientWidth * width;\n            var heightPerc=100 / editorNode.clientHeight * height;\n\n            var newState={};\n            if((isLeft||isRight)&&horizontal==='relative'){\n              newState.width=resizeSteps ? round(widthPerc, resizeSteps):widthPerc;\n            }else if((isLeft||isRight)&&horizontal==='absolute'){\n              newState.width=resizeSteps ? round(width, resizeSteps):width;\n            }\n\n            if((isTop||isBottom)&&vertical==='relative'){\n              newState.height=resizeSteps ? round(heightPerc, resizeSteps):heightPerc;\n            }else if((isTop||isBottom)&&vertical==='absolute'){\n              newState.height=resizeSteps ? round(height, resizeSteps):height;\n            }\n\n            dragEvent.preventDefault();\n\n            _this.setState(newState);\n          };\n\n          // Finished dragging\n          var stopDrag=function stopDrag(){\n            // TODO clean up event listeners\n            document.removeEventListener('mousemove', doDrag, false);\n            document.removeEventListener('mouseup', stopDrag, false);\n\n            var _this$state=_this.state,\n                width=_this$state.width,\n                height=_this$state.height;\n\n            _this.setState({ clicked: false });\n            _this.setEntityData({ width: width, height: height });\n          };\n\n          // TODO clean up event listeners\n          document.addEventListener('mousemove', doDrag, false);\n          document.addEventListener('mouseup', stopDrag, false);\n\n          _this.setState({ clicked: true });\n        }, _temp), _possibleConstructorReturn(_this, _ret);\n      }\n\n      // used to save the hoverPosition so it can be leveraged to determine if a\n      // drag should happen on mousedown\n\n\n      // used to save the hoverPosition so it can be leveraged to determine if a\n      // drag should happen on mousedown\n\n\n      // Handle mousedown for resizing\n\n\n      _createClass(BlockResizeableDecorator, [{\n        key: 'render',\n        value: function render(){\n          var _this2=this;\n\n          var _props=this.props,\n              blockProps=_props.blockProps,\n              vertical=_props.vertical,\n              horizontal=_props.horizontal,\n              style=_props.style,\n              resizeSteps=_props.resizeSteps,\n              elementProps=_objectWithoutProperties(_props, ['blockProps', 'vertical', 'horizontal', 'style', 'resizeSteps']);\n\n          var _state=this.state,\n              width=_state.width,\n              height=_state.height,\n              hoverPosition=_state.hoverPosition;\n          var isTop=hoverPosition.isTop,\n              isLeft=hoverPosition.isLeft,\n              isRight=hoverPosition.isRight,\n              isBottom=hoverPosition.isBottom;\n\n\n          var styles=_extends({ position: 'relative' }, style);\n\n          if(horizontal==='auto'){\n            styles.width='auto';\n          }else if(horizontal==='relative'){\n            styles.width=(width||blockProps.resizeData.width||40) + '%';\n          }else if(horizontal==='absolute'){\n            styles.width=(width||blockProps.resizeData.width||40) + 'px';\n          }\n\n          if(vertical==='auto'){\n            styles.height='auto';\n          }else if(vertical==='relative'){\n            styles.height=(height||blockProps.resizeData.height||40) + '%';\n          }else if(vertical==='absolute'){\n            styles.height=(height||blockProps.resizeData.height||40) + 'px';\n          }\n\n          // Handle cursor\n          if(isRight&&isBottom||isLeft&&isTop){\n            styles.cursor='nwse-resize';\n          }else if(isRight&&isTop||isBottom&&isLeft){\n            styles.cursor='nesw-resize';\n          }else if(isRight||isLeft){\n            styles.cursor='ew-resize';\n          }else if(isBottom||isTop){\n            styles.cursor='ns-resize';\n          }else{\n            styles.cursor='default';\n          }\n\n          var interactionProps=store.getReadOnly() ? {}:{\n            onMouseDown: this.mouseDown,\n            onMouseMove: this.mouseMove,\n            onMouseLeave: this.mouseLeave\n          };\n\n          return _react2.default.createElement(WrappedComponent, _extends({}, elementProps, interactionProps, {\n            blockProps: blockProps,\n            ref: function ref(element){\n              _this2.wrapper=element;\n            },\n            style: styles\n          }));\n        }\n      }]);\n\n      return BlockResizeableDecorator;\n    }(_react.Component), _class.displayName='Resizable(' + getDisplayName(WrappedComponent) + ')', _class.WrappedComponent=WrappedComponent.WrappedComponent||WrappedComponent, _class.defaultProps=_extends({\n      horizontal: 'relative',\n      vertical: false,\n      resizeSteps: 1\n    }, config), _temp2;\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-resizeable-plugin/lib/createDecorator.js?");
}),
"./node_modules/draft-js-resizeable-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _draftJs=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n\nvar _createDecorator=__webpack_require__( \"./node_modules/draft-js-resizeable-plugin/lib/createDecorator.js\");\n\nvar _createDecorator2=_interopRequireDefault(_createDecorator);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nvar createSetResizeData=function createSetResizeData(contentBlock, _ref){\n  var getEditorState=_ref.getEditorState,\n      setEditorState=_ref.setEditorState;\n  return function (data){\n    var entityKey=contentBlock.getEntityAt(0);\n    if(entityKey){\n      var editorState=getEditorState();\n      var contentState=editorState.getCurrentContent();\n      contentState.mergeEntityData(entityKey, _extends({}, data));\n      setEditorState(_draftJs.EditorState.forceSelection(editorState, editorState.getSelection()));\n    }\n  };\n};\n\nexports.default=function (config){\n  var store={\n    getEditorRef: undefined,\n    getReadOnly: undefined,\n    getEditorState: undefined,\n    setEditorState: undefined\n  };\n  return {\n    initialize: function initialize(_ref2){\n      var getEditorRef=_ref2.getEditorRef,\n          getReadOnly=_ref2.getReadOnly,\n          getEditorState=_ref2.getEditorState,\n          setEditorState=_ref2.setEditorState;\n\n      store.getReadOnly=getReadOnly;\n      store.getEditorRef=getEditorRef;\n      store.getEditorState=getEditorState;\n      store.setEditorState=setEditorState;\n    },\n    decorator: (0, _createDecorator2.default)({ config: config, store: store }),\n    blockRendererFn: function blockRendererFn(contentBlock, _ref3){\n      var getEditorState=_ref3.getEditorState,\n          setEditorState=_ref3.setEditorState;\n\n      var entityKey=contentBlock.getEntityAt(0);\n      var contentState=getEditorState().getCurrentContent();\n      var resizeData=entityKey ? contentState.getEntity(entityKey).data:{};\n      return {\n        props: {\n          resizeData: resizeData,\n          setResizeData: createSetResizeData(contentBlock, { getEditorState: getEditorState, setEditorState: setEditorState })\n        }\n      };\n    }\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-resizeable-plugin/lib/index.js?");
}),
"./node_modules/draft-js-side-toolbar-plugin/lib/components/BlockTypeSelect/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _propTypes=__webpack_require__( \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2=_interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nvar BlockTypeSelect=function (_React$Component){\n  _inherits(BlockTypeSelect, _React$Component);\n\n  function BlockTypeSelect(){\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, BlockTypeSelect);\n\n    for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref=BlockTypeSelect.__proto__||Object.getPrototypeOf(BlockTypeSelect)).call.apply(_ref, [this].concat(args))), _this), _this.state={\n      style: {\n        transform: 'translate(-50%) scale(0)'\n      }\n    }, _this.onMouseEnter=function (){\n      _this.setState({\n        style: {\n          transform: 'translate(-50%) scale(1)',\n          transition: 'transform 0.15s cubic-bezier(.3,1.2,.2,1)'\n        }\n      });\n    }, _this.onMouseLeave=function (){\n      _this.setState({\n        style: {\n          transform: 'translate(-50%) scale(0)'\n        }\n      });\n    }, _this.onMouseDown=function (clickEvent){\n      clickEvent.preventDefault();\n      clickEvent.stopPropagation();\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(BlockTypeSelect, [{\n    key: 'render',\n    value: function render(){\n      var _props=this.props,\n          theme=_props.theme,\n          getEditorState=_props.getEditorState,\n          setEditorState=_props.setEditorState;\n\n      return _react2.default.createElement(\n        'div',\n        {\n          onMouseEnter: this.onMouseEnter,\n          onMouseLeave: this.onMouseLeave,\n          onMouseDown: this.onMouseDown\n        },\n        _react2.default.createElement(\n          'div',\n          { className: theme.blockTypeSelectStyles.blockType },\n          _react2.default.createElement(\n            'svg',\n            { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n            _react2.default.createElement('path', { d: 'M0 0h24v24H0z', fill: 'none' }),\n            _react2.default.createElement('path', { d: 'M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z' })\n)\n),\n        _react2.default.createElement('div', { className: theme.blockTypeSelectStyles.spacer }),\n        _react2.default.createElement(\n          'div',\n          { className: theme.blockTypeSelectStyles.popup, style: this.state.style },\n          this.props.children({\n            getEditorState: getEditorState,\n            setEditorState: setEditorState,\n            theme: theme.buttonStyles\n          })\n)\n);\n    }\n  }]);\n\n  return BlockTypeSelect;\n}(_react2.default.Component);\n\nBlockTypeSelect.propTypes={\n  children: _propTypes2.default.func\n};\n\nexports.default=BlockTypeSelect;\n\n//# sourceURL=webpack:///./node_modules/draft-js-side-toolbar-plugin/lib/components/BlockTypeSelect/index.js?");
}),
"./node_modules/draft-js-side-toolbar-plugin/lib/components/Toolbar/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _propTypes=__webpack_require__( \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2=_interopRequireDefault(_propTypes);\n\nvar _DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar _DraftOffsetKey2=_interopRequireDefault(_DraftOffsetKey);\n\nvar _draftJsButtons=__webpack_require__( \"./node_modules/draft-js-buttons/lib/index.js\");\n\nvar _BlockTypeSelect=__webpack_require__( \"./node_modules/draft-js-side-toolbar-plugin/lib/components/BlockTypeSelect/index.js\");\n\nvar _BlockTypeSelect2=_interopRequireDefault(_BlockTypeSelect);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nvar Toolbar=function (_React$Component){\n  _inherits(Toolbar, _React$Component);\n\n  function Toolbar(){\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, Toolbar);\n\n    for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref=Toolbar.__proto__||Object.getPrototypeOf(Toolbar)).call.apply(_ref, [this].concat(args))), _this), _this.state={\n      position: {\n        transform: 'scale(0)'\n      }\n    }, _this.onEditorStateChange=function (editorState){\n      var selection=editorState.getSelection();\n      if(!selection.getHasFocus()){\n        _this.setState({\n          position: {\n            transform: 'scale(0)'\n          }\n        });\n        return;\n      }\n\n      var currentContent=editorState.getCurrentContent();\n      var currentBlock=currentContent.getBlockForKey(selection.getStartKey());\n      // TODO verify that always a key-0-0 exists\n      var offsetKey=_DraftOffsetKey2.default.encode(currentBlock.getKey(), 0, 0);\n      // Note: need to wait on tick to make sure the DOM node has been create by Draft.js\n      setTimeout(function (){\n        var node=document.querySelectorAll('[data-offset-key=\"' + offsetKey + '\"]')[0];\n\n        // The editor root should be two levels above the node from\n        // `getEditorRef`. In case this changes in the future, we\n        // attempt to find the node dynamically by traversing upwards.\n        var editorRef=_this.props.store.getItem('getEditorRef')();\n        if(!editorRef) return;\n\n        // this keeps backwards-compatibility with react 15\n        var editorRoot=editorRef.refs&&editorRef.refs.editor ? editorRef.refs.editor:editorRef.editor;\n        while (editorRoot.className.indexOf('DraftEditor-root')===-1){\n          editorRoot=editorRoot.parentNode;\n        }\n\n        var position={\n          top: node.offsetTop + editorRoot.offsetTop,\n          transform: 'scale(1)',\n          transition: 'transform 0.15s cubic-bezier(.3,1.2,.2,1)'\n        };\n        // TODO: remove the hard code(width for the hover element)\n        if(_this.props.position==='right'){\n          // eslint-disable-next-line no-mixed-operators\n          position.left=editorRoot.offsetLeft + editorRoot.offsetWidth + 80 - 36;\n        }else{\n          position.left=editorRoot.offsetLeft - 80;\n        }\n\n        _this.setState({\n          position: position\n        });\n      }, 0);\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(Toolbar, [{\n    key: 'componentDidMount',\n    value: function componentDidMount(){\n      this.props.store.subscribeToItem('editorState', this.onEditorStateChange);\n    }\n  }, {\n    key: 'componentWillUnmount',\n    value: function componentWillUnmount(){\n      this.props.store.unsubscribeFromItem('editorState', this.onEditorStateChange);\n    }\n  }, {\n    key: 'render',\n    value: function render(){\n      var _props=this.props,\n          theme=_props.theme,\n          store=_props.store;\n\n\n      return _react2.default.createElement(\n        'div',\n        {\n          className: theme.toolbarStyles.wrapper,\n          style: this.state.position\n        },\n        _react2.default.createElement(\n          _BlockTypeSelect2.default,\n          {\n            getEditorState: store.getItem('getEditorState'),\n            setEditorState: store.getItem('setEditorState'),\n            theme: theme\n          },\n          this.props.children\n)\n);\n    }\n  }]);\n\n  return Toolbar;\n}(_react2.default.Component);\n\nToolbar.defaultProps={\n  children: function children(externalProps){\n    return (\n      // may be use React.Fragment instead of div to improve perfomance after React 16\n      _react2.default.createElement(\n        'div',\n        null,\n        _react2.default.createElement(_draftJsButtons.HeadlineOneButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.HeadlineTwoButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.BlockquoteButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.CodeBlockButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.UnorderedListButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.OrderedListButton, externalProps)\n)\n);\n  }\n};\n\n\nToolbar.propTypes={\n  children: _propTypes2.default.func\n};\n\nexports.default=Toolbar;\n\n//# sourceURL=webpack:///./node_modules/draft-js-side-toolbar-plugin/lib/components/Toolbar/index.js?");
}),
"./node_modules/draft-js-side-toolbar-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createStore=__webpack_require__( \"./node_modules/draft-js-side-toolbar-plugin/lib/utils/createStore.js\");\n\nvar _createStore2=_interopRequireDefault(_createStore);\n\nvar _Toolbar=__webpack_require__( \"./node_modules/draft-js-side-toolbar-plugin/lib/components/Toolbar/index.js\");\n\nvar _Toolbar2=_interopRequireDefault(_Toolbar);\n\nvar _buttonStyles={\n  \"buttonWrapper\": \"draftJsToolbar__buttonWrapper__1Dmqh\",\n  \"button\": \"draftJsToolbar__button__qi1gf\",\n  \"active\": \"draftJsToolbar__active__3qcpF\",\n  \"separator\": \"draftJsToolbar__separator__3M3L7\"\n};\n\nvar _buttonStyles2=_interopRequireDefault(_buttonStyles);\n\nvar _blockTypeSelectStyles={\n  \"blockType\": \"draftJsToolbar__blockType__27Jwn\",\n  \"spacer\": \"draftJsToolbar__spacer__2Os2z\",\n  \"popup\": \"draftJsToolbar__popup__GHzbY\"\n};\n\nvar _blockTypeSelectStyles2=_interopRequireDefault(_blockTypeSelectStyles);\n\nvar _toolbarStyles={\n  \"wrapper\": \"draftJsToolbar__wrapper__9NZgg\"\n};\n\nvar _toolbarStyles2=_interopRequireDefault(_toolbarStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var defaultPostion='left';\n\n  var defaultTheme={ buttonStyles: _buttonStyles2.default, blockTypeSelectStyles: _blockTypeSelectStyles2.default, toolbarStyles: _toolbarStyles2.default };\n\n  var store=(0, _createStore2.default)({\n    isVisible: false\n  });\n\n  var _config$position=config.position,\n      position=_config$position===undefined ? defaultPostion:_config$position,\n      _config$theme=config.theme,\n      theme=_config$theme===undefined ? defaultTheme:_config$theme;\n\n\n  var SideToolbar=function SideToolbar(props){\n    return _react2.default.createElement(_Toolbar2.default, _extends({}, props, { store: store, theme: theme, position: position }));\n  };\n\n  return {\n    initialize: function initialize(_ref){\n      var setEditorState=_ref.setEditorState,\n          getEditorState=_ref.getEditorState,\n          getEditorRef=_ref.getEditorRef;\n\n      store.updateItem('getEditorState', getEditorState);\n      store.updateItem('setEditorState', setEditorState);\n      store.updateItem('getEditorRef', getEditorRef);\n    },\n    // Re-Render the toolbar on every change\n    onChange: function onChange(editorState){\n      store.updateItem('editorState', editorState);\n      return editorState;\n    },\n    SideToolbar: SideToolbar\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-side-toolbar-plugin/lib/index.js?");
}),
"./node_modules/draft-js-side-toolbar-plugin/lib/utils/createStore.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar createStore=function createStore(initialState){\n  var state=initialState||{};\n  var listeners={};\n\n  var subscribeToItem=function subscribeToItem(key, callback){\n    listeners[key]=listeners[key]||[];\n    listeners[key].push(callback);\n  };\n\n  var unsubscribeFromItem=function unsubscribeFromItem(key, callback){\n    listeners[key]=listeners[key].filter(function (listener){\n      return listener!==callback;\n    });\n  };\n\n  var updateItem=function updateItem(key, item){\n    state=_extends({}, state, _defineProperty({}, key, item));\n    if(listeners[key]){\n      listeners[key].forEach(function (listener){\n        return listener(state[key]);\n      });\n    }\n  };\n\n  var getItem=function getItem(key){\n    return state[key];\n  };\n\n  return {\n    subscribeToItem: subscribeToItem,\n    unsubscribeFromItem: unsubscribeFromItem,\n    updateItem: updateItem,\n    getItem: getItem\n  };\n};\n\nexports.default=createStore;\n\n//# sourceURL=webpack:///./node_modules/draft-js-side-toolbar-plugin/lib/utils/createStore.js?");
}),
"./node_modules/draft-js-static-toolbar-plugin/lib/components/Separator/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _separatorStyles={\n  \"separator\": \"draftJsToolbar__separator__3U7qt\"\n};\n\nvar _separatorStyles2=_interopRequireDefault(_separatorStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (_ref){\n  var _ref$className=_ref.className,\n      className=_ref$className===undefined ? _separatorStyles2.default.separator:_ref$className;\n  return _react2.default.createElement('div', { className: className });\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-static-toolbar-plugin/lib/components/Separator/index.js?");
}),
"./node_modules/draft-js-static-toolbar-plugin/lib/components/Toolbar/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _draftJsButtons=__webpack_require__( \"./node_modules/draft-js-buttons/lib/index.js\");\n\nvar _propTypes=__webpack_require__( \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2=_interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; } \n\n\nvar Toolbar=function (_React$Component){\n  _inherits(Toolbar, _React$Component);\n\n  function Toolbar(){\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, Toolbar);\n\n    for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref=Toolbar.__proto__||Object.getPrototypeOf(Toolbar)).call.apply(_ref, [this].concat(args))), _this), _this.state={\n      \n      overrideContent: undefined\n\n      // componentWillMount(){\n      //   this.props.store.subscribeToItem('selection', ()=> this.forceUpdate());\n      // }\n\n      // componentWillUnmount(){\n      //   this.props.store.unsubscribeFromItem('selection', ()=> this.forceUpdate());\n      // }\n\n      \n    }, _this.onOverrideContent=function (overrideContent){\n      return _this.setState({ overrideContent: overrideContent });\n    }, _this.renderDefaultButtons=function (externalProps){\n      return _react2.default.createElement(\n        'div',\n        null,\n        _react2.default.createElement(_draftJsButtons.ItalicButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.BoldButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.UnderlineButton, externalProps),\n        _react2.default.createElement(_draftJsButtons.CodeButton, externalProps)\n);\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(Toolbar, [{\n    key: 'render',\n    value: function render(){\n      var _props=this.props,\n          theme=_props.theme,\n          store=_props.store;\n      var OverrideContent=this.state.overrideContent;\n\n      var childrenProps={\n        theme: theme.buttonStyles,\n        getEditorState: store.getItem('getEditorState'),\n        setEditorState: store.getItem('setEditorState'),\n        onOverrideContent: this.onOverrideContent\n      };\n\n      return _react2.default.createElement(\n        'div',\n        {\n          className: theme.toolbarStyles.toolbar\n        },\n        OverrideContent ? _react2.default.createElement(OverrideContent, childrenProps):(this.props.children||this.renderDefaultButtons)(childrenProps)\n);\n    }\n  }]);\n\n  return Toolbar;\n}(_react2.default.Component);\n\nToolbar.propTypes={\n  children: _propTypes2.default.func\n};\n\nexports.default=Toolbar;\n\n//# sourceURL=webpack:///./node_modules/draft-js-static-toolbar-plugin/lib/components/Toolbar/index.js?");
}),
"./node_modules/draft-js-static-toolbar-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.Separator=undefined;\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _createStore=__webpack_require__( \"./node_modules/draft-js-static-toolbar-plugin/lib/utils/createStore.js\");\n\nvar _createStore2=_interopRequireDefault(_createStore);\n\nvar _Toolbar=__webpack_require__( \"./node_modules/draft-js-static-toolbar-plugin/lib/components/Toolbar/index.js\");\n\nvar _Toolbar2=_interopRequireDefault(_Toolbar);\n\nvar _Separator=__webpack_require__( \"./node_modules/draft-js-static-toolbar-plugin/lib/components/Separator/index.js\");\n\nvar _Separator2=_interopRequireDefault(_Separator);\n\nvar _buttonStyles={\n  \"buttonWrapper\": \"draftJsToolbar__buttonWrapper__1Dmqh\",\n  \"button\": \"draftJsToolbar__button__qi1gf\",\n  \"active\": \"draftJsToolbar__active__3qcpF\"\n};\n\nvar _buttonStyles2=_interopRequireDefault(_buttonStyles);\n\nvar _toolbarStyles={\n  \"toolbar\": \"draftJsToolbar__toolbar__dNtBH\"\n};\n\nvar _toolbarStyles2=_interopRequireDefault(_toolbarStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var defaultTheme={ buttonStyles: _buttonStyles2.default, toolbarStyles: _toolbarStyles2.default };\n\n  var store=(0, _createStore2.default)({});\n\n  var _config$theme=config.theme,\n      theme=_config$theme===undefined ? defaultTheme:_config$theme;\n\n\n  var StaticToolbar=function StaticToolbar(props){\n    return _react2.default.createElement(_Toolbar2.default, _extends({}, props, { store: store, theme: theme }));\n  };\n\n  return {\n    initialize: function initialize(_ref){\n      var getEditorState=_ref.getEditorState,\n          setEditorState=_ref.setEditorState;\n\n      store.updateItem('getEditorState', getEditorState);\n      store.updateItem('setEditorState', setEditorState);\n    },\n\n    // Re-Render the text-toolbar on selection change\n    onChange: function onChange(editorState){\n      store.updateItem('selection', editorState.getSelection());\n      return editorState;\n    },\n    Toolbar: StaticToolbar\n  };\n};\n\nexports.Separator=_Separator2.default;\n\n//# sourceURL=webpack:///./node_modules/draft-js-static-toolbar-plugin/lib/index.js?");
}),
"./node_modules/draft-js-static-toolbar-plugin/lib/utils/createStore.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar createStore=function createStore(initialState){\n  var state=initialState||{};\n  var listeners={};\n\n  var subscribeToItem=function subscribeToItem(key, callback){\n    listeners[key]=listeners[key]||[];\n    listeners[key].push(callback);\n  };\n\n  var unsubscribeFromItem=function unsubscribeFromItem(key, callback){\n    listeners[key]=listeners[key].filter(function (listener){\n      return listener!==callback;\n    });\n  };\n\n  var updateItem=function updateItem(key, item){\n    state=_extends({}, state, _defineProperty({}, key, item));\n    if(listeners[key]){\n      listeners[key].forEach(function (listener){\n        return listener(state[key]);\n      });\n    }\n  };\n\n  var getItem=function getItem(key){\n    return state[key];\n  };\n\n  return {\n    subscribeToItem: subscribeToItem,\n    unsubscribeFromItem: unsubscribeFromItem,\n    updateItem: updateItem,\n    getItem: getItem\n  };\n};\n\nexports.default=createStore;\n\n//# sourceURL=webpack:///./node_modules/draft-js-static-toolbar-plugin/lib/utils/createStore.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/components/Tip/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _propTypes=__webpack_require__( \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2=_interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nvar propTypes={\n  className: _propTypes2.default.string,\n  children: _propTypes2.default.node.isRequired,\n  entityKey: _propTypes2.default.string,\n  getEditorState: _propTypes2.default.func.isRequired\n};\n\nvar Tip=function Tip(_ref){\n  var children=_ref.children,\n      className=_ref.className,\n      entityKey=_ref.entityKey,\n      getEditorState=_ref.getEditorState;\n\n  var entity=getEditorState().getCurrentContent().getEntity(entityKey);\n  var entityData=entity ? entity.get('data'):undefined;\n  var title=entityData&&entityData.title||undefined;\n  return _react2.default.createElement(\n    'span',\n    {\n      className: 'tip',\n      title: title\n    },\n    children\n);\n};\n\nTip.propTypes=propTypes;\nexports.default=Tip;\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/components/Tip/index.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/components/TipButton/AddTipForm.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _propTypes=__webpack_require__( \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2=_interopRequireDefault(_propTypes);\n\nvar _clsx=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n\nvar _clsx2=_interopRequireDefault(_clsx);\n\nvar _draftJsPluginsUtils=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n\nvar _draftJsPluginsUtils2=_interopRequireDefault(_draftJsPluginsUtils);\n\nvar _URLUtils=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/utils/URLUtils.js\");\n\nvar _URLUtils2=_interopRequireDefault(_URLUtils);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; }\n\nvar AddTipForm=function (_Component){\n  _inherits(AddTipForm, _Component);\n\n  function AddTipForm(){\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, AddTipForm);\n\n    for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref=AddTipForm.__proto__||Object.getPrototypeOf(AddTipForm)).call.apply(_ref, [this].concat(args))), _this), _this.state={\n      value: '',\n      isInvalid: false\n    }, _this.onRef=function (node){\n      _this.input=node;\n    }, _this.onChange=function (_ref2){\n      var value=_ref2.target.value;\n\n      var nextState={ value: value };\n      if(_this.state.isInvalid&&_URLUtils2.default.isUrl(_URLUtils2.default.normalizeUrl(value))){\n        nextState.isInvalid=false;\n      }else{\n        nextState.isInvalid=false;\n      }\n      _this.setState(nextState);\n    }, _this.onClose=function (){\n      return _this.props.onOverrideContent(undefined);\n    }, _this.onKeyDown=function (e){\n      if(e.key==='Enter'){\n        e.preventDefault();\n        _this.submit();\n      }else if(e.key==='Escape'){\n        e.preventDefault();\n        _this.onClose();\n      }\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(AddTipForm, [{\n    key: 'componentDidMount',\n    value: function componentDidMount(){\n      this.input.focus();\n    }\n  }, {\n    key: 'submit',\n    value: function submit(){\n      var _props=this.props,\n          getEditorState=_props.getEditorState,\n          setEditorState=_props.setEditorState;\n      var tip=this.state.value;\n\n      setEditorState(_draftJsPluginsUtils2.default.createTipAtSelection(getEditorState(),tip));\n      this.input.blur();\n      this.onClose();\n    }\n  }, {\n    key: 'render',\n    value: function render(){\n      var _props2=this.props,\n          theme=_props2.theme,\n          placeholder=_props2.placeholder;\n      var _state=this.state,\n          value=_state.value,\n          isInvalid=_state.isInvalid;\n\n      var className=isInvalid ? (0, _clsx2.default)(theme.input, theme.inputInvalid):theme.input;\n\n      return _react2.default.createElement('input', {\n        className: className,\n        onBlur: this.onClose,\n        onChange: this.onChange,\n        onKeyDown: this.onKeyDown,\n        placeholder: placeholder,\n        ref: this.onRef,\n        type: 'text',\n        value: value\n      });\n    }\n  }]);\n\n  return AddTipForm;\n}(_react.Component);\n\nAddTipForm.propTypes={\n  getEditorState: _propTypes2.default.func.isRequired,\n  setEditorState: _propTypes2.default.func.isRequired,\n  onOverrideContent: _propTypes2.default.func.isRequired,\n  theme: _propTypes2.default.object.isRequired,\n  placeholder: _propTypes2.default.string\n};\nAddTipForm.defaultProps={\n  placeholder: 'Enter a Tip and press enter'\n};\nexports.default=AddTipForm;\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/components/TipButton/AddTipForm.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/components/TipButton/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _createClass=function (){ function defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }} return function (Constructor, protoProps, staticProps){ if(protoProps) defineProperties(Constructor.prototype, protoProps); if(staticProps) defineProperties(Constructor, staticProps); return Constructor; };}();\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _propTypes=__webpack_require__( \"./node_modules/prop-types/index.js\");\n\nvar _propTypes2=_interopRequireDefault(_propTypes);\n\nvar _clsx=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n\nvar _clsx2=_interopRequireDefault(_clsx);\n\nvar _draftJsPluginsUtils=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n\nvar _draftJsPluginsUtils2=_interopRequireDefault(_draftJsPluginsUtils);\n\nvar _AddTipForm=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/components/TipButton/AddTipForm.js\");\n\nvar _AddTipForm2=_interopRequireDefault(_AddTipForm);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _possibleConstructorReturn(self, call){ if(!self){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call&&(typeof call===\"object\"||typeof call===\"function\") ? call:self; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true }});if(superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass):subClass.__proto__=superClass; }\n\nvar TipButton=function (_Component){\n  _inherits(TipButton, _Component);\n\n  function TipButton(){\n    var _ref;\n\n    var _temp, _this, _ret;\n\n    _classCallCheck(this, TipButton);\n\n    for (var _len=arguments.length, args=Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    return _ret=(_temp=(_this=_possibleConstructorReturn(this, (_ref=TipButton.__proto__||Object.getPrototypeOf(TipButton)).call.apply(_ref, [this].concat(args))), _this), _this.onMouseDown=function (event){\n      event.preventDefault();\n    }, _this.onAddTipClick=function (e){\n      e.preventDefault();\n      e.stopPropagation();\n      var _this$props=_this.props,\n          ownTheme=_this$props.ownTheme,\n          placeholder=_this$props.placeholder,\n          onOverrideContent=_this$props.onOverrideContent;\n\n      var content=function content(props){\n        return _react2.default.createElement(_AddTipForm2.default, _extends({}, props, { placeholder: placeholder, theme: ownTheme }));\n      };\n      onOverrideContent(content);\n    }, _temp), _possibleConstructorReturn(_this, _ret);\n  }\n\n  _createClass(TipButton, [{\n    key: 'render',\n    value: function render(){\n      var _props=this.props,\n          theme=_props.theme,\n          onRemoveTipAtSelection=_props.onRemoveTipAtSelection;\n\n      var hasTipSelected=_draftJsPluginsUtils2.default.hasEntity(this.props.store.getEditorState(), 'TOOLTIP');\n      var className=hasTipSelected ? (0, _clsx2.default)(theme.button, theme.active):theme.button;\n\n      return _react2.default.createElement(\n        'div',\n        {\n          className: theme.buttonWrapper,\n          onMouseDown: this.onMouseDown\n        },\n        _react2.default.createElement(\n          'button',\n          {\n            className: className,\n            onClick: hasTipSelected ? onRemoveTipAtSelection:this.onAddTipClick,\n            type: 'button'\n          }, \n          _react2.default.createElement(\n            'svg',\n            { height: '24', viewBox: '0 0 24 24', width: '24', xmlns: 'http://www.w3.org/2000/svg' },\n            _react2.default.createElement('path', { d: 'M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1',fill: 'none',stroke:'currentColor'}),\n            _react2.default.createElement('polygon', { points: '12 15 17 21 7 21 12 15' })\n)\n)\n);\n    }\n  }]);\n\n  return TipButton;\n}(_react.Component);\n\nTipButton.propTypes={\n  placeholder: _propTypes2.default.string,\n  store: _propTypes2.default.object.isRequired,\n  ownTheme: _propTypes2.default.object.isRequired,\n  onRemoveTipAtSelection: _propTypes2.default.func.isRequired\n};\nexports.default=TipButton;\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/components/TipButton/index.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; };\n\nvar _react=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar _react2=_interopRequireDefault(_react);\n\nvar _draftJsPluginsUtils=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n\nvar _draftJsPluginsUtils2=_interopRequireDefault(_draftJsPluginsUtils);\n\nvar _Tip=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/components/Tip/index.js\");\n\nvar _Tip2=_interopRequireDefault(_Tip);\n\nvar _TipButton=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/components/TipButton/index.js\");\n\nvar _TipButton2=_interopRequireDefault(_TipButton);\n\nvar _linkStrategy=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/tipStrategy.js\");\n\nvar _linkStrategy2=_interopRequireDefault(_linkStrategy);\n\nvar _linkStyles={\n  \"input\": \"draftJsMentionPlugin__input__1Wxng\",\n  \"inputInvalid\": \"draftJsMentionPlugin__inputInvalid__X9hHv\",\n  \"link\": \"draftJsMentionPlugin__link__TQHAX\"\n};\n\nvar _linkStyles2=_interopRequireDefault(_linkStyles);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default=function (){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var defaultTheme=_linkStyles2.default;\n\n  var _config$theme=config.theme,\n      theme=_config$theme===undefined ? defaultTheme:_config$theme,\n      placeholder=config.placeholder,\n      Tip=config.Tip,\n      linkTarget=config.linkTarget;\n\n\n  var store={\n    getEditorState: undefined,\n    setEditorState: undefined\n  };\n\n  var DecoratedDefaultTip=function DecoratedDefaultTip(props){\n    return _react2.default.createElement(_Tip2.default, _extends({}, props, { className: theme.link, target: linkTarget }));\n  };\n\n  var DecoratedTipButton=function DecoratedTipButton(props){\n    return _react2.default.createElement(_TipButton2.default, _extends({}, props, {\n      ownTheme: theme,\n      store: store,\n      placeholder: placeholder,\n      onRemoveTipAtSelection: function onRemoveTipAtSelection(){\n        return store.setEditorState(_draftJsPluginsUtils2.default.removeTipAtSelection(store.getEditorState()));\n      }\n    }));\n  };\n  \n  return {\n    initialize: function initialize(_ref){\n      var getEditorState=_ref.getEditorState,\n          setEditorState=_ref.setEditorState;\n\n      store.getEditorState=getEditorState;\n      store.setEditorState=setEditorState;\n    },\n\n    decorators: [{\n      strategy: _linkStrategy2.default,\n      matchesEntityType: _linkStrategy.matchesEntityType,\n      component: Tip||DecoratedDefaultTip\n    }],\n\n    TipButton: DecoratedTipButton\n  };\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/index.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/tipStrategy.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default=strategy;\nvar matchesEntityType=exports.matchesEntityType=function matchesEntityType(type){\n  return type==='TOOLTIP';\n};\n\nfunction strategy(contentBlock, cb, contentState){\n  if(!contentState) return;\n  contentBlock.findEntityRanges(function (character){\n    var entityKey=character.getEntity();\n    return entityKey!==null&&matchesEntityType(contentState.getEntity(entityKey).getType());\n  }, cb);\n}\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/tipStrategy.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/utils/URLUtils.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _prependHttp=__webpack_require__( \"./node_modules/prepend-http/index.js\");\n\nvar _prependHttp2=_interopRequireDefault(_prependHttp);\n\nvar _urlRegex=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/utils/urlRegex.js\");\n\nvar _urlRegex2=_interopRequireDefault(_urlRegex);\n\nvar _mailRegex=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/utils/mailRegex.js\");\n\nvar _mailRegex2=_interopRequireDefault(_mailRegex);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nexports.default={\n  isUrl: function isUrl(text){\n    return (0, _urlRegex2.default)().test(text);\n  },\n  isMail: function isMail(text){\n    return (0, _mailRegex2.default)().test(text);\n  },\n  normaliseMail: function normaliseMail(email){\n    if(email.toLowerCase().startsWith('mailto:')){\n      return email;\n    }\n    return 'mailto:' + email;\n  },\n  normalizeUrl: function normalizeUrl(url){\n    return (0, _prependHttp2.default)(url);\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/utils/URLUtils.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/utils/mailRegex.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nexports.default=function (){\n  return (/^((mailto:[^<>()/[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@(([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{2,})$/i\n);\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/utils/mailRegex.js?");
}),
"./node_modules/draft-js-tooltip-plugin/lib/utils/urlRegex.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _tlds=__webpack_require__( \"./node_modules/tlds/index.json\");\n\nvar _tlds2=_interopRequireDefault(_tlds);\n\nfunction _interopRequireDefault(obj){ return obj&&obj.__esModule ? obj:{ default: obj };}\n\nvar v4='(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}'; \n\n\nvar v6seg='[0-9a-fA-F]{1,4}';\nvar v6=('\\n(\\n(?:' + v6seg + ':){7}(?:' + v6seg + '|:)|                                // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\\n(?:' + v6seg + ':){6}(?:' + v4 + '|:' + v6seg + '|:)|                         // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\\n(?:' + v6seg + ':){5}(?::' + v4 + '|(:' + v6seg + '){1,2}|:)|                 // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\\n(?:' + v6seg + ':){4}(?:(:' + v6seg + '){0,1}:' + v4 + '|(:' + v6seg + '){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\\n(?:' + v6seg + ':){3}(?:(:' + v6seg + '){0,2}:' + v4 + '|(:' + v6seg + '){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\\n(?:' + v6seg + ':){2}(?:(:' + v6seg + '){0,3}:' + v4 + '|(:' + v6seg + '){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\\n(?:' + v6seg + ':){1}(?:(:' + v6seg + '){0,4}:' + v4 + '|(:' + v6seg + '){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\\n(?::((?::' + v6seg + '){0,5}:' + v4 + '|(?::' + v6seg + '){1,7}|:))           // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\\n)(%[0-9a-zA-Z]{1,})?                                           // %eth0            %1\\n').replace(/\\s*\\/\\/.*$/gm, '').replace(/\\n/g, '').trim();\n\nvar ipRegex=function ipRegex(opts){\n  return opts&&opts.exact ? new RegExp('(?:^' + v4 + '$)|(?:^' + v6 + '$)'):new RegExp('(?:' + v4 + ')|(?:' + v6 + ')', 'g');\n};\n\nipRegex.v4=function (opts){\n  return opts&&opts.exact ? new RegExp('^' + v4 + '$'):new RegExp(v4, 'g');\n};\nipRegex.v6=function (opts){\n  return opts&&opts.exact ? new RegExp('^' + v6 + '$'):new RegExp(v6, 'g');\n};\n\nexports.default=function (_opts){\n  var opts=Object.assign({ strict: true }, _opts);\n  var protocol='(?:(?:[a-z]+:)?//)' + (opts.strict ? '':'?');\n  var auth='(?:\\\\S+(?::\\\\S*)?@)?';\n  var ip=ipRegex.v4().source;\n  var host='(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)';\n  var domain='(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*';\n  var tld='(?:\\\\.' + (opts.strict ? '(?:[a-z\\\\u00a1-\\\\uffff]{2,})':'(?:' + _tlds2.default.sort(function (a, b){\n    return b.length - a.length;\n  }).join('|') + ')') + ')\\\\.?';\n  var port='(?::\\\\d{2,5})?';\n  var path='(?:[/?#][^\\\\s\"]*)?';\n  var regex='(?:' + protocol + '|www\\\\.)' + auth + '(?:localhost|' + ip + '|' + host + domain + tld + ')' + port + path;\n\n  return opts.exact ? new RegExp('(?:^' + regex + '$)', 'i'):new RegExp(regex, 'ig');\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js-tooltip-plugin/lib/utils/urlRegex.js?");
}),
"./node_modules/draft-js-utils/esm/Constants.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"BLOCK_TYPE\", function(){ return BLOCK_TYPE; });\n __webpack_require__.d(__webpack_exports__, \"ENTITY_TYPE\", function(){ return ENTITY_TYPE; });\n __webpack_require__.d(__webpack_exports__, \"INLINE_STYLE\", function(){ return INLINE_STYLE; });\nvar BLOCK_TYPE={\n  // This is used to represent a normal text block (paragraph).\n  UNSTYLED: 'unstyled',\n  HEADER_ONE: 'header-one',\n  HEADER_TWO: 'header-two',\n  HEADER_THREE: 'header-three',\n  HEADER_FOUR: 'header-four',\n  HEADER_FIVE: 'header-five',\n  HEADER_SIX: 'header-six',\n  UNORDERED_LIST_ITEM: 'unordered-list-item',\n  ORDERED_LIST_ITEM: 'ordered-list-item',\n  BLOCKQUOTE: 'blockquote',\n  PULLQUOTE: 'pullquote',\n  CODE: 'code-block',\n  ATOMIC: 'atomic'\n};\nvar ENTITY_TYPE={\n  LINK: 'LINK',\n  IMAGE: 'IMAGE',\n  EMBED: 'embed'\n};\nvar INLINE_STYLE={\n  BOLD: 'BOLD',\n  CODE: 'CODE',\n  ITALIC: 'ITALIC',\n  STRIKETHROUGH: 'STRIKETHROUGH',\n  UNDERLINE: 'UNDERLINE'\n};\n __webpack_exports__[\"default\"]=({\n  BLOCK_TYPE: BLOCK_TYPE,\n  ENTITY_TYPE: ENTITY_TYPE,\n  INLINE_STYLE: INLINE_STYLE\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-utils/esm/Constants.js?");
}),
"./node_modules/draft-js-utils/esm/callModifierForSelectedBlocks.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n var _getSelectedBlocks__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-utils/esm/getSelectedBlocks.js\");\n\n\n\n\n __webpack_exports__[\"default\"]=(function (editorState, modifier){\n  for (var _len=arguments.length, args=new Array(_len > 2 ? _len - 2:0), _key=2; _key < _len; _key++){\n    args[_key - 2]=arguments[_key];\n  }\n\n  var contentState=editorState.getCurrentContent();\n  var currentSelection=editorState.getSelection();\n  var startKey=currentSelection.getStartKey();\n  var endKey=currentSelection.getEndKey();\n  var startOffset=currentSelection.getStartOffset();\n  var endOffset=currentSelection.getEndOffset();\n  var isSameBlock=startKey===endKey;\n  var selectedBlocks=Object(_getSelectedBlocks__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(contentState, startKey, endKey);\n  var finalEditorState=editorState;\n  selectedBlocks.forEach(function (block){\n    var currentBlockKey=block.getKey();\n    var selectionStart=startOffset;\n    var selectionEnd=endOffset;\n\n    if(currentBlockKey===startKey){\n      selectionStart=startOffset;\n      selectionEnd=isSameBlock ? endOffset:block.getText().length;\n    }else if(currentBlockKey===endKey){\n      selectionStart=isSameBlock ? startOffset:0;\n      selectionEnd=endOffset;\n    }else{\n      selectionStart=0;\n      selectionEnd=block.getText().length;\n    }\n\n    var selection=new draft_js__WEBPACK_IMPORTED_MODULE_0__[\"SelectionState\"]({\n      anchorKey: currentBlockKey,\n      anchorOffset: selectionStart,\n      focusKey: currentBlockKey,\n      focusOffset: selectionEnd\n    });\n    finalEditorState=modifier.apply(void 0, [finalEditorState, selection].concat(args));\n  });\n  return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].forceSelection(finalEditorState, currentSelection);\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-utils/esm/callModifierForSelectedBlocks.js?");
}),
"./node_modules/draft-js-utils/esm/getEntityRanges.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"EMPTY_SET\", function(){ return EMPTY_SET; });\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return getEntityRanges; });\n var immutable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/immutable/dist/immutable.js\");\n var immutable__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(immutable__WEBPACK_IMPORTED_MODULE_0__);\n\nvar EMPTY_SET=new immutable__WEBPACK_IMPORTED_MODULE_0__[\"OrderedSet\"]();\nfunction getEntityRanges(text, charMetaList){\n  var charEntity=null;\n  var prevCharEntity=null;\n  var ranges=[];\n  var rangeStart=0;\n\n  for (var i=0, len=text.length; i < len; i++){\n    prevCharEntity=charEntity;\n    var meta=charMetaList.get(i);\n    charEntity=meta ? meta.getEntity():null;\n\n    if(i > 0&&charEntity!==prevCharEntity){\n      ranges.push([prevCharEntity, getStyleRanges(text.slice(rangeStart, i), charMetaList.slice(rangeStart, i))]);\n      rangeStart=i;\n    }\n  }\n\n  ranges.push([charEntity, getStyleRanges(text.slice(rangeStart), charMetaList.slice(rangeStart))]);\n  return ranges;\n}\n\nfunction getStyleRanges(text, charMetaList){\n  var charStyle=EMPTY_SET;\n  var prevCharStyle=EMPTY_SET;\n  var ranges=[];\n  var rangeStart=0;\n\n  for (var i=0, len=text.length; i < len; i++){\n    prevCharStyle=charStyle;\n    var meta=charMetaList.get(i);\n    charStyle=meta ? meta.getStyle():EMPTY_SET;\n\n    if(i > 0&&!Object(immutable__WEBPACK_IMPORTED_MODULE_0__[\"is\"])(charStyle, prevCharStyle)){\n      ranges.push([text.slice(rangeStart, i), prevCharStyle]);\n      rangeStart=i;\n    }\n  }\n\n  ranges.push([text.slice(rangeStart), charStyle]);\n  return ranges;\n}\n\n//# sourceURL=webpack:///./node_modules/draft-js-utils/esm/getEntityRanges.js?");
}),
"./node_modules/draft-js-utils/esm/getSelectedBlocks.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n\n __webpack_exports__[\"default\"]=(function (contentState, anchorKey, focusKey){\n  var isSameBlock=anchorKey===focusKey;\n  var startingBlock=contentState.getBlockForKey(anchorKey);\n\n  if(!startingBlock){\n    return [];\n  }\n\n  var selectedBlocks=[startingBlock];\n\n  if(!isSameBlock){\n    var blockKey=anchorKey;\n\n    while (blockKey!==focusKey){\n      var nextBlock=contentState.getBlockAfter(blockKey);\n\n      if(!nextBlock){\n        selectedBlocks=[];\n        break;\n      }\n\n      selectedBlocks.push(nextBlock);\n      blockKey=nextBlock.getKey();\n    }\n  }\n\n  return selectedBlocks;\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-utils/esm/getSelectedBlocks.js?");
}),
"./node_modules/draft-js-utils/esm/main.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _Constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js-utils/esm/Constants.js\");\n __webpack_require__.d(__webpack_exports__, \"BLOCK_TYPE\", function(){ return _Constants__WEBPACK_IMPORTED_MODULE_0__[\"BLOCK_TYPE\"]; });\n\n __webpack_require__.d(__webpack_exports__, \"ENTITY_TYPE\", function(){ return _Constants__WEBPACK_IMPORTED_MODULE_0__[\"ENTITY_TYPE\"]; });\n\n __webpack_require__.d(__webpack_exports__, \"INLINE_STYLE\", function(){ return _Constants__WEBPACK_IMPORTED_MODULE_0__[\"INLINE_STYLE\"]; });\n\n __webpack_require__.d(__webpack_exports__, \"Constants\", function(){ return _Constants__WEBPACK_IMPORTED_MODULE_0__[\"default\"]; });\n\n var _getEntityRanges__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-utils/esm/getEntityRanges.js\");\n __webpack_require__.d(__webpack_exports__, \"getEntityRanges\", function(){ return _getEntityRanges__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n var _getSelectedBlocks__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/draft-js-utils/esm/getSelectedBlocks.js\");\n __webpack_require__.d(__webpack_exports__, \"getSelectedBlocks\", function(){ return _getSelectedBlocks__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n var _selectionContainsEntity__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./node_modules/draft-js-utils/esm/selectionContainsEntity.js\");\n __webpack_require__.d(__webpack_exports__, \"selectionContainsEntity\", function(){ return _selectionContainsEntity__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n var _callModifierForSelectedBlocks__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./node_modules/draft-js-utils/esm/callModifierForSelectedBlocks.js\");\n __webpack_require__.d(__webpack_exports__, \"callModifierForSelectedBlocks\", function(){ return _callModifierForSelectedBlocks__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n\n\n\n\n\n\n\n//# sourceURL=webpack:///./node_modules/draft-js-utils/esm/main.js?");
}),
"./node_modules/draft-js-utils/esm/selectionContainsEntity.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _getSelectedBlocks__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js-utils/esm/getSelectedBlocks.js\");\n\n __webpack_exports__[\"default\"]=(function (strategy){\n  return function (editorState, selection){\n    var contentState=editorState.getCurrentContent();\n    var currentSelection=selection||editorState.getSelection();\n    var startKey=currentSelection.getStartKey();\n    var endKey=currentSelection.getEndKey();\n    var startOffset=currentSelection.getStartOffset();\n    var endOffset=currentSelection.getEndOffset();\n    var isSameBlock=startKey===endKey;\n    var selectedBlocks=Object(_getSelectedBlocks__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(contentState, startKey, endKey);\n    var entityFound=false; // We have to shift the offset to not get false positives when selecting\n    // a character just before or after an entity\n\n    var finalStartOffset=startOffset + 1;\n    var finalEndOffset=endOffset - 1;\n    selectedBlocks.forEach(function (block){\n      strategy(block, function (start, end){\n        if(entityFound){\n          return;\n        }\n\n        var blockKey=block.getKey();\n\n        if(isSameBlock&&(end < finalStartOffset||start > finalEndOffset)){\n          return;\n        }else if(blockKey===startKey&&end < finalStartOffset){\n          return;\n        }else if(blockKey===endKey&&start > finalEndOffset){\n          return;\n        }\n\n        entityFound=true;\n      }, contentState);\n    });\n    return entityFound;\n  };\n});\n\n//# sourceURL=webpack:///./node_modules/draft-js-utils/esm/selectionContainsEntity.js?");
}),
"./node_modules/draft-js/lib/AtomicBlockUtils.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar BlockMapBuilder=__webpack_require__( \"./node_modules/draft-js/lib/BlockMapBuilder.js\");\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar ContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlock.js\");\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar moveBlockInContentState=__webpack_require__( \"./node_modules/draft-js/lib/moveBlockInContentState.js\");\n\nvar experimentalTreeDataSupport=gkx('draft_tree_data_support');\nvar ContentBlockRecord=experimentalTreeDataSupport ? ContentBlockNode:ContentBlock;\nvar List=Immutable.List,\n    Repeat=Immutable.Repeat;\nvar AtomicBlockUtils={\n  insertAtomicBlock: function insertAtomicBlock(editorState, entityKey, character){\n    var contentState=editorState.getCurrentContent();\n    var selectionState=editorState.getSelection();\n    var afterRemoval=DraftModifier.removeRange(contentState, selectionState, 'backward');\n    var targetSelection=afterRemoval.getSelectionAfter();\n    var afterSplit=DraftModifier.splitBlock(afterRemoval, targetSelection);\n    var insertionTarget=afterSplit.getSelectionAfter();\n    var asAtomicBlock=DraftModifier.setBlockType(afterSplit, insertionTarget, 'atomic');\n    var charData=CharacterMetadata.create({\n      entity: entityKey\n    });\n    var atomicBlockConfig={\n      key: generateRandomKey(),\n      type: 'atomic',\n      text: character,\n      characterList: List(Repeat(charData, character.length))\n    };\n    var atomicDividerBlockConfig={\n      key: generateRandomKey(),\n      type: 'unstyled'\n    };\n\n    if(experimentalTreeDataSupport){\n      atomicBlockConfig=_objectSpread({}, atomicBlockConfig, {\n        nextSibling: atomicDividerBlockConfig.key\n      });\n      atomicDividerBlockConfig=_objectSpread({}, atomicDividerBlockConfig, {\n        prevSibling: atomicBlockConfig.key\n      });\n    }\n\n    var fragmentArray=[new ContentBlockRecord(atomicBlockConfig), new ContentBlockRecord(atomicDividerBlockConfig)];\n    var fragment=BlockMapBuilder.createFromArray(fragmentArray);\n    var withAtomicBlock=DraftModifier.replaceWithFragment(asAtomicBlock, insertionTarget, fragment);\n    var newContent=withAtomicBlock.merge({\n      selectionBefore: selectionState,\n      selectionAfter: withAtomicBlock.getSelectionAfter().set('hasFocus', true)\n    });\n    return EditorState.push(editorState, newContent, 'insert-fragment');\n  },\n  moveAtomicBlock: function moveAtomicBlock(editorState, atomicBlock, targetRange, insertionMode){\n    var contentState=editorState.getCurrentContent();\n    var selectionState=editorState.getSelection();\n    var withMovedAtomicBlock;\n\n    if(insertionMode==='before'||insertionMode==='after'){\n      var targetBlock=contentState.getBlockForKey(insertionMode==='before' ? targetRange.getStartKey():targetRange.getEndKey());\n      withMovedAtomicBlock=moveBlockInContentState(contentState, atomicBlock, targetBlock, insertionMode);\n    }else{\n      var afterRemoval=DraftModifier.removeRange(contentState, targetRange, 'backward');\n      var selectionAfterRemoval=afterRemoval.getSelectionAfter();\n\n      var _targetBlock=afterRemoval.getBlockForKey(selectionAfterRemoval.getFocusKey());\n\n      if(selectionAfterRemoval.getStartOffset()===0){\n        withMovedAtomicBlock=moveBlockInContentState(afterRemoval, atomicBlock, _targetBlock, 'before');\n      }else if(selectionAfterRemoval.getEndOffset()===_targetBlock.getLength()){\n        withMovedAtomicBlock=moveBlockInContentState(afterRemoval, atomicBlock, _targetBlock, 'after');\n      }else{\n        var afterSplit=DraftModifier.splitBlock(afterRemoval, selectionAfterRemoval);\n        var selectionAfterSplit=afterSplit.getSelectionAfter();\n\n        var _targetBlock2=afterSplit.getBlockForKey(selectionAfterSplit.getFocusKey());\n\n        withMovedAtomicBlock=moveBlockInContentState(afterSplit, atomicBlock, _targetBlock2, 'before');\n      }\n    }\n\n    var newContent=withMovedAtomicBlock.merge({\n      selectionBefore: selectionState,\n      selectionAfter: withMovedAtomicBlock.getSelectionAfter().set('hasFocus', true)\n    });\n    return EditorState.push(editorState, newContent, 'move-block');\n  }\n};\nmodule.exports=AtomicBlockUtils;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/AtomicBlockUtils.js?");
}),
"./node_modules/draft-js/lib/BlockMapBuilder.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar OrderedMap=Immutable.OrderedMap;\nvar BlockMapBuilder={\n  createFromArray: function createFromArray(blocks){\n    return OrderedMap(blocks.map(function (block){\n      return [block.getKey(), block];\n    }));\n  }\n};\nmodule.exports=BlockMapBuilder;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/BlockMapBuilder.js?");
}),
"./node_modules/draft-js/lib/BlockTree.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded){ if(source==null) return {}; var target={}; var sourceKeys=Object.keys(source); var key, i; for (i=0; i < sourceKeys.length; i++){ key=sourceKeys[i]; if(excluded.indexOf(key) >=0) continue; target[key]=source[key]; } return target; }\n\nvar findRangesImmutable=__webpack_require__( \"./node_modules/draft-js/lib/findRangesImmutable.js\");\n\nvar getOwnObjectValues=__webpack_require__( \"./node_modules/draft-js/lib/getOwnObjectValues.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar List=Immutable.List,\n    Repeat=Immutable.Repeat,\n    Record=Immutable.Record;\n\nvar returnTrue=function returnTrue(){\n  return true;\n};\n\nvar defaultLeafRange={\n  start: null,\n  end: null\n};\nvar LeafRange=Record(defaultLeafRange);\nvar defaultDecoratorRange={\n  start: null,\n  end: null,\n  decoratorKey: null,\n  leaves: null\n};\nvar DecoratorRange=Record(defaultDecoratorRange);\nvar BlockTree={\n  \n  generate: function generate(contentState, block, decorator){\n    var textLength=block.getLength();\n\n    if(!textLength){\n      return List.of(new DecoratorRange({\n        start: 0,\n        end: 0,\n        decoratorKey: null,\n        leaves: List.of(new LeafRange({\n          start: 0,\n          end: 0\n        }))\n      }));\n    }\n\n    var leafSets=[];\n    var decorations=decorator ? decorator.getDecorations(block, contentState):List(Repeat(null, textLength));\n    var chars=block.getCharacterList();\n    findRangesImmutable(decorations, areEqual, returnTrue, function (start, end){\n      leafSets.push(new DecoratorRange({\n        start: start,\n        end: end,\n        decoratorKey: decorations.get(start),\n        leaves: generateLeaves(chars.slice(start, end).toList(), start)\n      }));\n    });\n    return List(leafSets);\n  },\n  fromJS: function fromJS(_ref){\n    var leaves=_ref.leaves,\n        other=_objectWithoutPropertiesLoose(_ref, [\"leaves\"]);\n\n    return new DecoratorRange(_objectSpread({}, other, {\n      leaves: leaves!=null ? List(Array.isArray(leaves) ? leaves:getOwnObjectValues(leaves)).map(function (leaf){\n        return LeafRange(leaf);\n      }):null\n    }));\n  }\n};\n\n\nfunction generateLeaves(characters, offset){\n  var leaves=[];\n  var inlineStyles=characters.map(function (c){\n    return c.getStyle();\n  }).toList();\n  findRangesImmutable(inlineStyles, areEqual, returnTrue, function (start, end){\n    leaves.push(new LeafRange({\n      start: start + offset,\n      end: end + offset\n    }));\n  });\n  return List(leaves);\n}\n\nfunction areEqual(a, b){\n  return a===b;\n}\n\nmodule.exports=BlockTree;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/BlockTree.js?");
}),
"./node_modules/draft-js/lib/CharacterMetadata.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar _require=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\"),\n    Map=_require.Map,\n    OrderedSet=_require.OrderedSet,\n    Record=_require.Record; // Immutable.map is typed such that the value for every key in the map\n// must be the same type\n\n\nvar EMPTY_SET=OrderedSet();\nvar defaultRecord={\n  style: EMPTY_SET,\n  entity: null\n};\nvar CharacterMetadataRecord=Record(defaultRecord);\n\nvar CharacterMetadata=function (_CharacterMetadataRec){\n  _inheritsLoose(CharacterMetadata, _CharacterMetadataRec);\n\n  function CharacterMetadata(){\n    return _CharacterMetadataRec.apply(this, arguments)||this;\n  }\n\n  var _proto=CharacterMetadata.prototype;\n\n  _proto.getStyle=function getStyle(){\n    return this.get('style');\n  };\n\n  _proto.getEntity=function getEntity(){\n    return this.get('entity');\n  };\n\n  _proto.hasStyle=function hasStyle(style){\n    return this.getStyle().includes(style);\n  };\n\n  CharacterMetadata.applyStyle=function applyStyle(record, style){\n    var withStyle=record.set('style', record.getStyle().add(style));\n    return CharacterMetadata.create(withStyle);\n  };\n\n  CharacterMetadata.removeStyle=function removeStyle(record, style){\n    var withoutStyle=record.set('style', record.getStyle().remove(style));\n    return CharacterMetadata.create(withoutStyle);\n  };\n\n  CharacterMetadata.applyEntity=function applyEntity(record, entityKey){\n    var withEntity=record.getEntity()===entityKey ? record:record.set('entity', entityKey);\n    return CharacterMetadata.create(withEntity);\n  }\n  \n  ;\n\n  CharacterMetadata.create=function create(config){\n    if(!config){\n      return EMPTY;\n    }\n\n    var defaultConfig={\n      style: EMPTY_SET,\n      entity: null\n    }; // Fill in unspecified properties, if necessary.\n\n    var configMap=Map(defaultConfig).merge(config);\n    var existing=pool.get(configMap);\n\n    if(existing){\n      return existing;\n    }\n\n    var newCharacter=new CharacterMetadata(configMap);\n    pool=pool.set(configMap, newCharacter);\n    return newCharacter;\n  };\n\n  CharacterMetadata.fromJS=function fromJS(_ref){\n    var style=_ref.style,\n        entity=_ref.entity;\n    return new CharacterMetadata({\n      style: Array.isArray(style) ? OrderedSet(style):style,\n      entity: Array.isArray(entity) ? OrderedSet(entity):entity\n    });\n  };\n\n  return CharacterMetadata;\n}(CharacterMetadataRecord);\n\nvar EMPTY=new CharacterMetadata();\nvar pool=Map([[Map(defaultRecord), EMPTY]]);\nCharacterMetadata.EMPTY=EMPTY;\nmodule.exports=CharacterMetadata;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/CharacterMetadata.js?");
}),
"./node_modules/draft-js/lib/CompositeDraftDecorator.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar List=Immutable.List;\nvar DELIMITER='.';\n\n\nvar CompositeDraftDecorator=function (){\n  function CompositeDraftDecorator(decorators){\n    _defineProperty(this, \"_decorators\", void 0);\n\n    // Copy the decorator array, since we use this array order to determine\n    // precedence of decoration matching. If the array is mutated externally,\n    // we don't want to be affected here.\n    this._decorators=decorators.slice();\n  }\n\n  var _proto=CompositeDraftDecorator.prototype;\n\n  _proto.getDecorations=function getDecorations(block, contentState){\n    var decorations=Array(block.getText().length).fill(null);\n\n    this._decorators.forEach(function (\n    \n    decorator,\n    \n    ii){\n      var counter=0;\n      var strategy=decorator.strategy;\n\n      var callback=function callback(\n      \n      start,\n      \n      end){\n        // Find out if any of our matching range is already occupied\n        // by another decorator. If so, discard the match. Otherwise, store\n        // the component key for rendering.\n        if(canOccupySlice(decorations, start, end)){\n          occupySlice(decorations, start, end, ii + DELIMITER + counter);\n          counter++;\n        }\n      };\n\n      strategy(block, callback, contentState);\n    });\n\n    return List(decorations);\n  };\n\n  _proto.getComponentForKey=function getComponentForKey(key){\n    var componentKey=parseInt(key.split(DELIMITER)[0], 10);\n    return this._decorators[componentKey].component;\n  };\n\n  _proto.getPropsForKey=function getPropsForKey(key){\n    var componentKey=parseInt(key.split(DELIMITER)[0], 10);\n    return this._decorators[componentKey].props;\n  };\n\n  return CompositeDraftDecorator;\n}();\n\n\n\nfunction canOccupySlice(decorations, start, end){\n  for (var ii=start; ii < end; ii++){\n    if(decorations[ii]!=null){\n      return false;\n    }\n  }\n\n  return true;\n}\n\n\n\nfunction occupySlice(targetArr, start, end, componentKey){\n  for (var ii=start; ii < end; ii++){\n    targetArr[ii]=componentKey;\n  }\n}\n\nmodule.exports=CompositeDraftDecorator;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/CompositeDraftDecorator.js?");
}),
"./node_modules/draft-js/lib/ContentBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar findRangesImmutable=__webpack_require__( \"./node_modules/draft-js/lib/findRangesImmutable.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar List=Immutable.List,\n    Map=Immutable.Map,\n    OrderedSet=Immutable.OrderedSet,\n    Record=Immutable.Record,\n    Repeat=Immutable.Repeat;\nvar EMPTY_SET=OrderedSet();\nvar defaultRecord={\n  key: '',\n  type: 'unstyled',\n  text: '',\n  characterList: List(),\n  depth: 0,\n  data: Map()\n};\nvar ContentBlockRecord=Record(defaultRecord);\n\nvar decorateCharacterList=function decorateCharacterList(config){\n  if(!config){\n    return config;\n  }\n\n  var characterList=config.characterList,\n      text=config.text;\n\n  if(text&&!characterList){\n    config.characterList=List(Repeat(CharacterMetadata.EMPTY, text.length));\n  }\n\n  return config;\n};\n\nvar ContentBlock=function (_ContentBlockRecord){\n  _inheritsLoose(ContentBlock, _ContentBlockRecord);\n\n  function ContentBlock(config){\n    return _ContentBlockRecord.call(this, decorateCharacterList(config))||this;\n  }\n\n  var _proto=ContentBlock.prototype;\n\n  _proto.getKey=function getKey(){\n    return this.get('key');\n  };\n\n  _proto.getType=function getType(){\n    return this.get('type');\n  };\n\n  _proto.getText=function getText(){\n    return this.get('text');\n  };\n\n  _proto.getCharacterList=function getCharacterList(){\n    return this.get('characterList');\n  };\n\n  _proto.getLength=function getLength(){\n    return this.getText().length;\n  };\n\n  _proto.getDepth=function getDepth(){\n    return this.get('depth');\n  };\n\n  _proto.getData=function getData(){\n    return this.get('data');\n  };\n\n  _proto.getInlineStyleAt=function getInlineStyleAt(offset){\n    var character=this.getCharacterList().get(offset);\n    return character ? character.getStyle():EMPTY_SET;\n  };\n\n  _proto.getEntityAt=function getEntityAt(offset){\n    var character=this.getCharacterList().get(offset);\n    return character ? character.getEntity():null;\n  }\n  \n  ;\n\n  _proto.findStyleRanges=function findStyleRanges(filterFn, callback){\n    findRangesImmutable(this.getCharacterList(), haveEqualStyle, filterFn, callback);\n  }\n  \n  ;\n\n  _proto.findEntityRanges=function findEntityRanges(filterFn, callback){\n    findRangesImmutable(this.getCharacterList(), haveEqualEntity, filterFn, callback);\n  };\n\n  return ContentBlock;\n}(ContentBlockRecord);\n\nfunction haveEqualStyle(charA, charB){\n  return charA.getStyle()===charB.getStyle();\n}\n\nfunction haveEqualEntity(charA, charB){\n  return charA.getEntity()===charB.getEntity();\n}\n\nmodule.exports=ContentBlock;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/ContentBlock.js?");
}),
"./node_modules/draft-js/lib/ContentBlockNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar findRangesImmutable=__webpack_require__( \"./node_modules/draft-js/lib/findRangesImmutable.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar List=Immutable.List,\n    Map=Immutable.Map,\n    OrderedSet=Immutable.OrderedSet,\n    Record=Immutable.Record,\n    Repeat=Immutable.Repeat;\nvar EMPTY_SET=OrderedSet();\nvar defaultRecord={\n  parent: null,\n  characterList: List(),\n  data: Map(),\n  depth: 0,\n  key: '',\n  text: '',\n  type: 'unstyled',\n  children: List(),\n  prevSibling: null,\n  nextSibling: null\n};\n\nvar haveEqualStyle=function haveEqualStyle(charA, charB){\n  return charA.getStyle()===charB.getStyle();\n};\n\nvar haveEqualEntity=function haveEqualEntity(charA, charB){\n  return charA.getEntity()===charB.getEntity();\n};\n\nvar decorateCharacterList=function decorateCharacterList(config){\n  if(!config){\n    return config;\n  }\n\n  var characterList=config.characterList,\n      text=config.text;\n\n  if(text&&!characterList){\n    config.characterList=List(Repeat(CharacterMetadata.EMPTY, text.length));\n  }\n\n  return config;\n};\n\nvar ContentBlockNode=function (_ref){\n  _inheritsLoose(ContentBlockNode, _ref);\n\n  function ContentBlockNode(){\n    var props=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:defaultRecord;\n\n    \n    return _ref.call(this, decorateCharacterList(props))||this;\n  }\n\n  var _proto=ContentBlockNode.prototype;\n\n  _proto.getKey=function getKey(){\n    return this.get('key');\n  };\n\n  _proto.getType=function getType(){\n    return this.get('type');\n  };\n\n  _proto.getText=function getText(){\n    return this.get('text');\n  };\n\n  _proto.getCharacterList=function getCharacterList(){\n    return this.get('characterList');\n  };\n\n  _proto.getLength=function getLength(){\n    return this.getText().length;\n  };\n\n  _proto.getDepth=function getDepth(){\n    return this.get('depth');\n  };\n\n  _proto.getData=function getData(){\n    return this.get('data');\n  };\n\n  _proto.getInlineStyleAt=function getInlineStyleAt(offset){\n    var character=this.getCharacterList().get(offset);\n    return character ? character.getStyle():EMPTY_SET;\n  };\n\n  _proto.getEntityAt=function getEntityAt(offset){\n    var character=this.getCharacterList().get(offset);\n    return character ? character.getEntity():null;\n  };\n\n  _proto.getChildKeys=function getChildKeys(){\n    return this.get('children');\n  };\n\n  _proto.getParentKey=function getParentKey(){\n    return this.get('parent');\n  };\n\n  _proto.getPrevSiblingKey=function getPrevSiblingKey(){\n    return this.get('prevSibling');\n  };\n\n  _proto.getNextSiblingKey=function getNextSiblingKey(){\n    return this.get('nextSibling');\n  };\n\n  _proto.findStyleRanges=function findStyleRanges(filterFn, callback){\n    findRangesImmutable(this.getCharacterList(), haveEqualStyle, filterFn, callback);\n  };\n\n  _proto.findEntityRanges=function findEntityRanges(filterFn, callback){\n    findRangesImmutable(this.getCharacterList(), haveEqualEntity, filterFn, callback);\n  };\n\n  return ContentBlockNode;\n}(Record(defaultRecord));\n\nmodule.exports=ContentBlockNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/ContentBlockNode.js?");
}),
"./node_modules/draft-js/lib/ContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar BlockMapBuilder=__webpack_require__( \"./node_modules/draft-js/lib/BlockMapBuilder.js\");\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar ContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlock.js\");\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar DraftEntity=__webpack_require__( \"./node_modules/draft-js/lib/DraftEntity.js\");\n\nvar SelectionState=__webpack_require__( \"./node_modules/draft-js/lib/SelectionState.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar getOwnObjectValues=__webpack_require__( \"./node_modules/draft-js/lib/getOwnObjectValues.js\");\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar sanitizeDraftText=__webpack_require__( \"./node_modules/draft-js/lib/sanitizeDraftText.js\");\n\nvar List=Immutable.List,\n    Record=Immutable.Record,\n    Repeat=Immutable.Repeat,\n    ImmutableMap=Immutable.Map,\n    OrderedMap=Immutable.OrderedMap;\nvar defaultRecord={\n  entityMap: null,\n  blockMap: null,\n  selectionBefore: null,\n  selectionAfter: null\n};\nvar ContentStateRecord=Record(defaultRecord);\n\n\nvar ContentBlockNodeRecord=gkx('draft_tree_data_support') ? ContentBlockNode:ContentBlock;\n\nvar ContentState=function (_ContentStateRecord){\n  _inheritsLoose(ContentState, _ContentStateRecord);\n\n  function ContentState(){\n    return _ContentStateRecord.apply(this, arguments)||this;\n  }\n\n  var _proto=ContentState.prototype;\n\n  _proto.getEntityMap=function getEntityMap(){\n    // TODO: update this when we fully remove DraftEntity\n    return DraftEntity;\n  };\n\n  _proto.getBlockMap=function getBlockMap(){\n    return this.get('blockMap');\n  };\n\n  _proto.getSelectionBefore=function getSelectionBefore(){\n    return this.get('selectionBefore');\n  };\n\n  _proto.getSelectionAfter=function getSelectionAfter(){\n    return this.get('selectionAfter');\n  };\n\n  _proto.getBlockForKey=function getBlockForKey(key){\n    var block=this.getBlockMap().get(key);\n    return block;\n  };\n\n  _proto.getKeyBefore=function getKeyBefore(key){\n    return this.getBlockMap().reverse().keySeq().skipUntil(function (v){\n      return v===key;\n    }).skip(1).first();\n  };\n\n  _proto.getKeyAfter=function getKeyAfter(key){\n    return this.getBlockMap().keySeq().skipUntil(function (v){\n      return v===key;\n    }).skip(1).first();\n  };\n\n  _proto.getBlockAfter=function getBlockAfter(key){\n    return this.getBlockMap().skipUntil(function (_, k){\n      return k===key;\n    }).skip(1).first();\n  };\n\n  _proto.getBlockBefore=function getBlockBefore(key){\n    return this.getBlockMap().reverse().skipUntil(function (_, k){\n      return k===key;\n    }).skip(1).first();\n  };\n\n  _proto.getBlocksAsArray=function getBlocksAsArray(){\n    return this.getBlockMap().toArray();\n  };\n\n  _proto.getFirstBlock=function getFirstBlock(){\n    return this.getBlockMap().first();\n  };\n\n  _proto.getLastBlock=function getLastBlock(){\n    return this.getBlockMap().last();\n  };\n\n  _proto.getPlainText=function getPlainText(delimiter){\n    return this.getBlockMap().map(function (block){\n      return block ? block.getText():'';\n    }).join(delimiter||'\\n');\n  };\n\n  _proto.getLastCreatedEntityKey=function getLastCreatedEntityKey(){\n    // TODO: update this when we fully remove DraftEntity\n    return DraftEntity.__getLastCreatedEntityKey();\n  };\n\n  _proto.hasText=function hasText(){\n    var blockMap=this.getBlockMap();\n    return blockMap.size > 1||// make sure that there are no zero width space chars\n    escape(blockMap.first().getText()).replace(/%u200B/g, '').length > 0;\n  };\n\n  _proto.createEntity=function createEntity(type, mutability, data){\n    // TODO: update this when we fully remove DraftEntity\n    DraftEntity.__create(type, mutability, data);\n\n    return this;\n  };\n\n  _proto.mergeEntityData=function mergeEntityData(key, toMerge){\n    // TODO: update this when we fully remove DraftEntity\n    DraftEntity.__mergeData(key, toMerge);\n\n    return this;\n  };\n\n  _proto.replaceEntityData=function replaceEntityData(key, newData){\n    // TODO: update this when we fully remove DraftEntity\n    DraftEntity.__replaceData(key, newData);\n\n    return this;\n  };\n\n  _proto.addEntity=function addEntity(instance){\n    // TODO: update this when we fully remove DraftEntity\n    DraftEntity.__add(instance);\n\n    return this;\n  };\n\n  _proto.getEntity=function getEntity(key){\n    // TODO: update this when we fully remove DraftEntity\n    return DraftEntity.__get(key);\n  };\n\n  _proto.getAllEntities=function getAllEntities(){\n    return DraftEntity.__getAll();\n  };\n\n  _proto.loadWithEntities=function loadWithEntities(entities){\n    return DraftEntity.__loadWithEntities(entities);\n  };\n\n  ContentState.createFromBlockArray=function createFromBlockArray(// TODO: update flow type when we completely deprecate the old entity API\n  blocks, entityMap){\n    // TODO: remove this when we completely deprecate the old entity API\n    var theBlocks=Array.isArray(blocks) ? blocks:blocks.contentBlocks;\n    var blockMap=BlockMapBuilder.createFromArray(theBlocks);\n    var selectionState=blockMap.isEmpty() ? new SelectionState():SelectionState.createEmpty(blockMap.first().getKey());\n    return new ContentState({\n      blockMap: blockMap,\n      entityMap: entityMap||DraftEntity,\n      selectionBefore: selectionState,\n      selectionAfter: selectionState\n    });\n  };\n\n  ContentState.createFromText=function createFromText(text){\n    var delimiter=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:/\\r\\n?|\\n/g;\n    var strings=text.split(delimiter);\n    var blocks=strings.map(function (block){\n      block=sanitizeDraftText(block);\n      return new ContentBlockNodeRecord({\n        key: generateRandomKey(),\n        text: block,\n        type: 'unstyled',\n        characterList: List(Repeat(CharacterMetadata.EMPTY, block.length))\n      });\n    });\n    return ContentState.createFromBlockArray(blocks);\n  };\n\n  ContentState.fromJS=function fromJS(state){\n    return new ContentState(_objectSpread({}, state, {\n      blockMap: OrderedMap(state.blockMap).map(ContentState.createContentBlockFromJS),\n      selectionBefore: new SelectionState(state.selectionBefore),\n      selectionAfter: new SelectionState(state.selectionAfter)\n    }));\n  };\n\n  ContentState.createContentBlockFromJS=function createContentBlockFromJS(block){\n    var characterList=block.characterList;\n    return new ContentBlockNodeRecord(_objectSpread({}, block, {\n      data: ImmutableMap(block.data),\n      characterList: characterList!=null ? List((Array.isArray(characterList) ? characterList:getOwnObjectValues(characterList)).map(function (c){\n        return CharacterMetadata.fromJS(c);\n      })):undefined\n    }));\n  };\n\n  return ContentState;\n}(ContentStateRecord);\n\nmodule.exports=ContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/ContentState.js?");
}),
"./node_modules/draft-js/lib/ContentStateInlineStyle.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar _require=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\"),\n    Map=_require.Map;\n\nvar ContentStateInlineStyle={\n  add: function add(contentState, selectionState, inlineStyle){\n    return modifyInlineStyle(contentState, selectionState, inlineStyle, true);\n  },\n  remove: function remove(contentState, selectionState, inlineStyle){\n    return modifyInlineStyle(contentState, selectionState, inlineStyle, false);\n  }\n};\n\nfunction modifyInlineStyle(contentState, selectionState, inlineStyle, addOrRemove){\n  var blockMap=contentState.getBlockMap();\n  var startKey=selectionState.getStartKey();\n  var startOffset=selectionState.getStartOffset();\n  var endKey=selectionState.getEndKey();\n  var endOffset=selectionState.getEndOffset();\n  var newBlocks=blockMap.skipUntil(function (_, k){\n    return k===startKey;\n  }).takeUntil(function (_, k){\n    return k===endKey;\n  }).concat(Map([[endKey, blockMap.get(endKey)]])).map(function (block, blockKey){\n    var sliceStart;\n    var sliceEnd;\n\n    if(startKey===endKey){\n      sliceStart=startOffset;\n      sliceEnd=endOffset;\n    }else{\n      sliceStart=blockKey===startKey ? startOffset:0;\n      sliceEnd=blockKey===endKey ? endOffset:block.getLength();\n    }\n\n    var chars=block.getCharacterList();\n    var current;\n\n    while (sliceStart < sliceEnd){\n      current=chars.get(sliceStart);\n      chars=chars.set(sliceStart, addOrRemove ? CharacterMetadata.applyStyle(current, inlineStyle):CharacterMetadata.removeStyle(current, inlineStyle));\n      sliceStart++;\n    }\n\n    return block.set('characterList', chars);\n  });\n  return contentState.merge({\n    blockMap: blockMap.merge(newBlocks),\n    selectionBefore: selectionState,\n    selectionAfter: selectionState\n  });\n}\n\nmodule.exports=ContentStateInlineStyle;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/ContentStateInlineStyle.js?");
}),
"./node_modules/draft-js/lib/DOMObserver.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar findAncestorOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/findAncestorOffsetKey.js\");\n\nvar getWindowForNode=__webpack_require__( \"./node_modules/draft-js/lib/getWindowForNode.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar Map=Immutable.Map;\n// Heavily based on Prosemirror's DOMObserver https://github.com/ProseMirror/prosemirror-view/blob/master/src/domobserver.js\nvar DOM_OBSERVER_OPTIONS={\n  subtree: true,\n  characterData: true,\n  childList: true,\n  characterDataOldValue: false,\n  attributes: false\n}; // IE11 has very broken mutation observers, so we also listen to DOMCharacterDataModified\n\nvar USE_CHAR_DATA=UserAgent.isBrowser('IE <=11');\n\nvar DOMObserver=function (){\n  function DOMObserver(container){\n    var _this=this;\n\n    _defineProperty(this, \"observer\", void 0);\n\n    _defineProperty(this, \"container\", void 0);\n\n    _defineProperty(this, \"mutations\", void 0);\n\n    _defineProperty(this, \"onCharData\", void 0);\n\n    this.container=container;\n    this.mutations=Map();\n    var containerWindow=getWindowForNode(container);\n\n    if(containerWindow.MutationObserver&&!USE_CHAR_DATA){\n      this.observer=new containerWindow.MutationObserver(function (mutations){\n        return _this.registerMutations(mutations);\n      });\n    }else{\n      this.onCharData=function (e){\n        !(e.target instanceof Node) ?  true ? invariant(false, 'Expected target to be an instance of Node'):undefined:void 0;\n\n        _this.registerMutation({\n          type: 'characterData',\n          target: e.target\n        });\n      };\n    }\n  }\n\n  var _proto=DOMObserver.prototype;\n\n  _proto.start=function start(){\n    if(this.observer){\n      this.observer.observe(this.container, DOM_OBSERVER_OPTIONS);\n    }else{\n      \n      this.container.addEventListener('DOMCharacterDataModified', this.onCharData);\n    }\n  };\n\n  _proto.stopAndFlushMutations=function stopAndFlushMutations(){\n    var observer=this.observer;\n\n    if(observer){\n      this.registerMutations(observer.takeRecords());\n      observer.disconnect();\n    }else{\n      \n      this.container.removeEventListener('DOMCharacterDataModified', this.onCharData);\n    }\n\n    var mutations=this.mutations;\n    this.mutations=Map();\n    return mutations;\n  };\n\n  _proto.registerMutations=function registerMutations(mutations){\n    for (var i=0; i < mutations.length; i++){\n      this.registerMutation(mutations[i]);\n    }\n  };\n\n  _proto.getMutationTextContent=function getMutationTextContent(mutation){\n    var type=mutation.type,\n        target=mutation.target,\n        removedNodes=mutation.removedNodes;\n\n    if(type==='characterData'){\n      // When `textContent` is '', there is a race condition that makes\n      // getting the offsetKey from the target not possible.\n      // These events are also followed by a `childList`, which is the one\n      // we are able to retrieve the offsetKey and apply the '' text.\n      if(target.textContent!==''){\n        // IE 11 considers the enter keypress that concludes the composition\n        // as an input char. This strips that newline character so the draft\n        // state does not receive spurious newlines.\n        if(USE_CHAR_DATA){\n          return target.textContent.replace('\\n', '');\n        }\n\n        return target.textContent;\n      }\n    }else if(type==='childList'){\n      if(removedNodes&&removedNodes.length){\n        // `characterData` events won't happen or are ignored when\n        // removing the last character of a leaf node, what happens\n        // instead is a `childList` event with a `removedNodes` array.\n        // For this case the textContent should be '' and\n        // `DraftModifier.replaceText` will make sure the content is\n        // updated properly.\n        return '';\n      }else if(target.textContent!==''){\n        // Typing Chinese in an empty block in MS Edge results in a\n        // `childList` event with non-empty textContent.\n        // See https://github.com/facebook/draft-js/issues/2082\n        return target.textContent;\n      }\n    }\n\n    return null;\n  };\n\n  _proto.registerMutation=function registerMutation(mutation){\n    var textContent=this.getMutationTextContent(mutation);\n\n    if(textContent!=null){\n      var offsetKey=nullthrows(findAncestorOffsetKey(mutation.target));\n      this.mutations=this.mutations.set(offsetKey, textContent);\n    }\n  };\n\n  return DOMObserver;\n}();\n\nmodule.exports=DOMObserver;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DOMObserver.js?");
}),
"./node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar cx=__webpack_require__( \"./node_modules/fbjs/lib/cx.js\");\n\nvar _require=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\"),\n    Map=_require.Map;\n\nvar UL_WRAP=React.createElement(\"ul\", {\n  className: cx('public/DraftStyleDefault/ul')\n});\nvar OL_WRAP=React.createElement(\"ol\", {\n  className: cx('public/DraftStyleDefault/ol')\n});\nvar PRE_WRAP=React.createElement(\"pre\", {\n  className: cx('public/DraftStyleDefault/pre')\n});\nvar DefaultDraftBlockRenderMap=Map({\n  'header-one': {\n    element: 'h1'\n  },\n  'header-two': {\n    element: 'h2'\n  },\n  'header-three': {\n    element: 'h3'\n  },\n  'header-four': {\n    element: 'h4'\n  },\n  'header-five': {\n    element: 'h5'\n  },\n  'header-six': {\n    element: 'h6'\n  },\n  section: {\n    element: 'section'\n  },\n  article: {\n    element: 'article'\n  },\n  'unordered-list-item': {\n    element: 'li',\n    wrapper: UL_WRAP\n  },\n  'ordered-list-item': {\n    element: 'li',\n    wrapper: OL_WRAP\n  },\n  blockquote: {\n    element: 'blockquote'\n  },\n  atomic: {\n    element: 'figure'\n  },\n  'code-block': {\n    element: 'pre',\n    wrapper: PRE_WRAP\n  },\n  unstyled: {\n    element: 'div',\n    aliasedElements: ['p']\n  }\n});\nmodule.exports=DefaultDraftBlockRenderMap;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js?");
}),
"./node_modules/draft-js/lib/DefaultDraftInlineStyle.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nmodule.exports={\n  BOLD: {\n    fontWeight: 'bold'\n  },\n  CODE: {\n    fontFamily: 'monospace',\n    wordWrap: 'break-word'\n  },\n  ITALIC: {\n    fontStyle: 'italic'\n  },\n  STRIKETHROUGH: {\n    textDecoration: 'line-through'\n  },\n  UNDERLINE: {\n    textDecoration: 'underline'\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DefaultDraftInlineStyle.js?");
}),
"./node_modules/draft-js/lib/Draft.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar AtomicBlockUtils=__webpack_require__( \"./node_modules/draft-js/lib/AtomicBlockUtils.js\");\n\nvar BlockMapBuilder=__webpack_require__( \"./node_modules/draft-js/lib/BlockMapBuilder.js\");\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar CompositeDraftDecorator=__webpack_require__( \"./node_modules/draft-js/lib/CompositeDraftDecorator.js\");\n\nvar ContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlock.js\");\n\nvar ContentState=__webpack_require__( \"./node_modules/draft-js/lib/ContentState.js\");\n\nvar DefaultDraftBlockRenderMap=__webpack_require__( \"./node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js\");\n\nvar DefaultDraftInlineStyle=__webpack_require__( \"./node_modules/draft-js/lib/DefaultDraftInlineStyle.js\");\n\nvar DraftEditor=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditor.react.js\");\n\nvar DraftEditorBlock=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorBlock.react.js\");\n\nvar DraftEntity=__webpack_require__( \"./node_modules/draft-js/lib/DraftEntity.js\");\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar DraftEntityInstance=__webpack_require__( \"./node_modules/draft-js/lib/DraftEntityInstance.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar KeyBindingUtil=__webpack_require__( \"./node_modules/draft-js/lib/KeyBindingUtil.js\");\n\nvar RawDraftContentState=__webpack_require__( \"./node_modules/draft-js/lib/RawDraftContentState.js\");\n\nvar RichTextEditorUtil=__webpack_require__( \"./node_modules/draft-js/lib/RichTextEditorUtil.js\");\n\nvar SelectionState=__webpack_require__( \"./node_modules/draft-js/lib/SelectionState.js\");\n\nvar convertFromDraftStateToRaw=__webpack_require__( \"./node_modules/draft-js/lib/convertFromDraftStateToRaw.js\");\n\nvar convertFromRawToDraftState=__webpack_require__( \"./node_modules/draft-js/lib/convertFromRawToDraftState.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar getDefaultKeyBinding=__webpack_require__( \"./node_modules/draft-js/lib/getDefaultKeyBinding.js\");\n\nvar getVisibleSelectionRect=__webpack_require__( \"./node_modules/draft-js/lib/getVisibleSelectionRect.js\");\n\nvar convertFromHTML=__webpack_require__( \"./node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js\");\n\nvar DraftPublic={\n  Editor: DraftEditor,\n  EditorBlock: DraftEditorBlock,\n  EditorState: EditorState,\n  CompositeDecorator: CompositeDraftDecorator,\n  Entity: DraftEntity,\n  EntityInstance: DraftEntityInstance,\n  BlockMapBuilder: BlockMapBuilder,\n  CharacterMetadata: CharacterMetadata,\n  ContentBlock: ContentBlock,\n  ContentState: ContentState,\n  RawDraftContentState: RawDraftContentState,\n  SelectionState: SelectionState,\n  AtomicBlockUtils: AtomicBlockUtils,\n  KeyBindingUtil: KeyBindingUtil,\n  Modifier: DraftModifier,\n  RichUtils: RichTextEditorUtil,\n  DefaultDraftBlockRenderMap: DefaultDraftBlockRenderMap,\n  DefaultDraftInlineStyle: DefaultDraftInlineStyle,\n  convertFromHTML: convertFromHTML,\n  convertFromRaw: convertFromRawToDraftState,\n  convertToRaw: convertFromDraftStateToRaw,\n  genKey: generateRandomKey,\n  getDefaultKeyBinding: getDefaultKeyBinding,\n  getVisibleSelectionRect: getVisibleSelectionRect\n};\nmodule.exports=DraftPublic;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/Draft.js?");
}),
"./node_modules/draft-js/lib/DraftEditor.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("(function(global){\n\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nfunction _extends(){ _extends=_assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar DefaultDraftBlockRenderMap=__webpack_require__( \"./node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js\");\n\nvar DefaultDraftInlineStyle=__webpack_require__( \"./node_modules/draft-js/lib/DefaultDraftInlineStyle.js\");\n\nvar DraftEditorCompositionHandler=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorCompositionHandler.js\");\n\nvar DraftEditorContents=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorContents.react.js\");\n\nvar DraftEditorDragHandler=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorDragHandler.js\");\n\nvar DraftEditorEditHandler=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorEditHandler.js\");\n\nvar flushControlled=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorFlushControlled.js\");\n\nvar DraftEditorPlaceholder=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorPlaceholder.react.js\");\n\nvar DraftEffects=__webpack_require__( \"./node_modules/draft-js/lib/DraftEffects.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar Scroll=__webpack_require__( \"./node_modules/fbjs/lib/Scroll.js\");\n\nvar Style=__webpack_require__( \"./node_modules/fbjs/lib/Style.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar cx=__webpack_require__( \"./node_modules/fbjs/lib/cx.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar getDefaultKeyBinding=__webpack_require__( \"./node_modules/draft-js/lib/getDefaultKeyBinding.js\");\n\nvar getScrollPosition=__webpack_require__( \"./node_modules/fbjs/lib/getScrollPosition.js\");\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isHTMLElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLElement.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar isIE=UserAgent.isBrowser('IE'); // IE does not support the `input` event on contentEditable, so we can't\n// observe spellcheck behavior.\n\nvar allowSpellCheck = !isIE; // Define a set of handler objects to correspond to each possible `mode`\n// of editor behavior.\n\nvar handlerMap={\n  edit: DraftEditorEditHandler,\n  composite: DraftEditorCompositionHandler,\n  drag: DraftEditorDragHandler,\n  cut: null,\n  render: null\n};\nvar didInitODS=false;\n\nvar UpdateDraftEditorFlags=function (_React$Component){\n  _inheritsLoose(UpdateDraftEditorFlags, _React$Component);\n\n  function UpdateDraftEditorFlags(){\n    return _React$Component.apply(this, arguments)||this;\n  }\n\n  var _proto=UpdateDraftEditorFlags.prototype;\n\n  _proto.render=function render(){\n    return null;\n  };\n\n  _proto.componentDidMount=function componentDidMount(){\n    this._update();\n  };\n\n  _proto.componentDidUpdate=function componentDidUpdate(){\n    this._update();\n  };\n\n  _proto._update=function _update(){\n    var editor=this.props.editor;\n    \n\n    editor._latestEditorState=this.props.editorState;\n    \n\n    editor._blockSelectEvents=true;\n  };\n\n  return UpdateDraftEditorFlags;\n}(React.Component);\n\n\n\nvar DraftEditor=function (_React$Component2){\n  _inheritsLoose(DraftEditor, _React$Component2);\n\n  \n  function DraftEditor(props){\n    var _this;\n\n    _this=_React$Component2.call(this, props)||this;\n\n    _defineProperty(_assertThisInitialized(_this), \"_blockSelectEvents\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_clipboard\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_handler\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_dragCount\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_internalDrag\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_editorKey\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_placeholderAccessibilityID\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_latestEditorState\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_latestCommittedEditorState\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_pendingStateFromBeforeInput\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onBeforeInput\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onBlur\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onCharacterData\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onCompositionEnd\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onCompositionStart\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onCopy\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onCut\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onDragEnd\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onDragOver\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onDragStart\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onDrop\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onInput\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onFocus\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onKeyDown\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onKeyPress\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onKeyUp\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onMouseDown\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onMouseUp\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onPaste\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_onSelect\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"editor\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"editorContainer\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"focus\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"blur\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"setMode\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"exitCurrentMode\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"restoreEditorDOM\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"setClipboard\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"getClipboard\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"getEditorKey\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"update\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"onDragEnter\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"onDragLeave\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_handleEditorContainerRef\", function (node){\n      _this.editorContainer=node; // Instead of having a direct ref on the child, we'll grab it here.\n      // This is safe as long as the rendered structure is static (which it is).\n      // This lets the child support ref={props.editorRef} without merging refs.\n\n      _this.editor=node!==null ? node.firstChild:null;\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"focus\", function (scrollPosition){\n      var editorState=_this.props.editorState;\n      var alreadyHasFocus=editorState.getSelection().getHasFocus();\n      var editorNode=_this.editor;\n\n      if(!editorNode){\n        // once in a while people call 'focus' in a setTimeout, and the node has\n        // been deleted, so it can be null in that case.\n        return;\n      }\n\n      var scrollParent=Style.getScrollParent(editorNode);\n\n      var _ref=scrollPosition||getScrollPosition(scrollParent),\n          x=_ref.x,\n          y=_ref.y;\n\n      !isHTMLElement(editorNode) ?  true ? invariant(false, 'editorNode is not an HTMLElement'):undefined:void 0;\n      editorNode.focus(); // Restore scroll position\n\n      if(scrollParent===window){\n        window.scrollTo(x, y);\n      }else{\n        Scroll.setTop(scrollParent, y);\n      } // On Chrome and Safari, calling focus on contenteditable focuses the\n      // cursor at the first character. This is something you don't expect when\n      // you're clicking on an input element but not directly on a character.\n      // Put the cursor back where it was before the blur.\n\n\n      if(!alreadyHasFocus){\n        _this.update(EditorState.forceSelection(editorState, editorState.getSelection()));\n      }\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"blur\", function (){\n      var editorNode=_this.editor;\n\n      if(!editorNode){\n        return;\n      }\n\n      !isHTMLElement(editorNode) ?  true ? invariant(false, 'editorNode is not an HTMLElement'):undefined:void 0;\n      editorNode.blur();\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"setMode\", function (mode){\n      var _this$props=_this.props,\n          onPaste=_this$props.onPaste,\n          onCut=_this$props.onCut,\n          onCopy=_this$props.onCopy;\n\n      var editHandler=_objectSpread({}, handlerMap.edit);\n\n      if(onPaste){\n        \n        editHandler.onPaste=onPaste;\n      }\n\n      if(onCut){\n        editHandler.onCut=onCut;\n      }\n\n      if(onCopy){\n        editHandler.onCopy=onCopy;\n      }\n\n      var handler=_objectSpread({}, handlerMap, {\n        edit: editHandler\n      });\n\n      _this._handler=handler[mode];\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"exitCurrentMode\", function (){\n      _this.setMode('edit');\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"restoreEditorDOM\", function (scrollPosition){\n      _this.setState({\n        contentsKey: _this.state.contentsKey + 1\n      }, function (){\n        _this.focus(scrollPosition);\n      });\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"setClipboard\", function (clipboard){\n      _this._clipboard=clipboard;\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"getClipboard\", function (){\n      return _this._clipboard;\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"update\", function (editorState){\n      _this._latestEditorState=editorState;\n\n      _this.props.onChange(editorState);\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onDragEnter\", function (){\n      _this._dragCount++;\n    });\n\n    _defineProperty(_assertThisInitialized(_this), \"onDragLeave\", function (){\n      _this._dragCount--;\n\n      if(_this._dragCount===0){\n        _this.exitCurrentMode();\n      }\n    });\n\n    _this._blockSelectEvents=false;\n    _this._clipboard=null;\n    _this._handler=null;\n    _this._dragCount=0;\n    _this._editorKey=props.editorKey||generateRandomKey();\n    _this._placeholderAccessibilityID='placeholder-' + _this._editorKey;\n    _this._latestEditorState=props.editorState;\n    _this._latestCommittedEditorState=props.editorState;\n    _this._onBeforeInput=_this._buildHandler('onBeforeInput');\n    _this._onBlur=_this._buildHandler('onBlur');\n    _this._onCharacterData=_this._buildHandler('onCharacterData');\n    _this._onCompositionEnd=_this._buildHandler('onCompositionEnd');\n    _this._onCompositionStart=_this._buildHandler('onCompositionStart');\n    _this._onCopy=_this._buildHandler('onCopy');\n    _this._onCut=_this._buildHandler('onCut');\n    _this._onDragEnd=_this._buildHandler('onDragEnd');\n    _this._onDragOver=_this._buildHandler('onDragOver');\n    _this._onDragStart=_this._buildHandler('onDragStart');\n    _this._onDrop=_this._buildHandler('onDrop');\n    _this._onInput=_this._buildHandler('onInput');\n    _this._onFocus=_this._buildHandler('onFocus');\n    _this._onKeyDown=_this._buildHandler('onKeyDown');\n    _this._onKeyPress=_this._buildHandler('onKeyPress');\n    _this._onKeyUp=_this._buildHandler('onKeyUp');\n    _this._onMouseDown=_this._buildHandler('onMouseDown');\n    _this._onMouseUp=_this._buildHandler('onMouseUp');\n    _this._onPaste=_this._buildHandler('onPaste');\n    _this._onSelect=_this._buildHandler('onSelect');\n\n    _this.getEditorKey=function (){\n      return _this._editorKey;\n    };\n\n    if(true){\n      ['onDownArrow', 'onEscape', 'onLeftArrow', 'onRightArrow', 'onTab', 'onUpArrow'].forEach(function (propName){\n        if(props.hasOwnProperty(propName)){\n          // eslint-disable-next-line no-console\n          console.warn(\"Supplying an `\".concat(propName, \"` prop to `DraftEditor` has \") + 'been deprecated. If your handler needs access to the keyboard ' + 'event, supply a custom `keyBindingFn` prop that falls back to ' + 'the default one (eg. https://is.gd/wHKQ3W).');\n        }\n      });\n    } // See `restoreEditorDOM()`.\n\n\n    _this.state={\n      contentsKey: 0\n    };\n    return _this;\n  }\n  \n\n\n  var _proto2=DraftEditor.prototype;\n\n  _proto2._buildHandler=function _buildHandler(eventName){\n    var _this2=this;\n\n    // Wrap event handlers in `flushControlled`. In sync mode, this is\n    // effectively a no-op. In async mode, this ensures all updates scheduled\n    // inside the handler are flushed before React yields to the browser.\n    return function (e){\n      if(!_this2.props.readOnly){\n        var method=_this2._handler&&_this2._handler[eventName];\n\n        if(method){\n          if(flushControlled){\n            flushControlled(function (){\n              return method(_this2, e);\n            });\n          }else{\n            method(_this2, e);\n          }\n        }\n      }\n    };\n  };\n\n  _proto2._showPlaceholder=function _showPlaceholder(){\n    return !!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText();\n  };\n\n  _proto2._renderPlaceholder=function _renderPlaceholder(){\n    if(this._showPlaceholder()){\n      var placeHolderProps={\n        text: nullthrows(this.props.placeholder),\n        editorState: this.props.editorState,\n        textAlignment: this.props.textAlignment,\n        accessibilityID: this._placeholderAccessibilityID\n      };\n      \n\n      return React.createElement(DraftEditorPlaceholder, placeHolderProps);\n    }\n\n    return null;\n  }\n  \n  ;\n\n  _proto2._renderARIADescribedBy=function _renderARIADescribedBy(){\n    var describedBy=this.props.ariaDescribedBy||'';\n    var placeholderID=this._showPlaceholder() ? this._placeholderAccessibilityID:'';\n    return describedBy.replace('{{editor_id_placeholder}}', placeholderID)||undefined;\n  };\n\n  _proto2.render=function render(){\n    var _this$props2=this.props,\n        blockRenderMap=_this$props2.blockRenderMap,\n        blockRendererFn=_this$props2.blockRendererFn,\n        blockStyleFn=_this$props2.blockStyleFn,\n        customStyleFn=_this$props2.customStyleFn,\n        customStyleMap=_this$props2.customStyleMap,\n        editorState=_this$props2.editorState,\n        preventScroll=_this$props2.preventScroll,\n        readOnly=_this$props2.readOnly,\n        textAlignment=_this$props2.textAlignment,\n        textDirectionality=_this$props2.textDirectionality;\n    var rootClass=cx({\n      'DraftEditor/root': true,\n      'DraftEditor/alignLeft': textAlignment==='left',\n      'DraftEditor/alignRight': textAlignment==='right',\n      'DraftEditor/alignCenter': textAlignment==='center'\n    });\n    var contentStyle={\n      outline: 'none',\n      // fix parent-draggable Safari bug. #1326\n      userSelect: 'text',\n      WebkitUserSelect: 'text',\n      whiteSpace: 'pre-wrap',\n      wordWrap: 'break-word'\n    }; // The aria-expanded and aria-haspopup properties should only be rendered\n    // for a combobox.\n\n    \n\n    var ariaRole=this.props.role||'textbox';\n    var ariaExpanded=ariaRole==='combobox' ? !!this.props.ariaExpanded:null;\n    var editorContentsProps={\n      blockRenderMap: blockRenderMap,\n      blockRendererFn: blockRendererFn,\n      blockStyleFn: blockStyleFn,\n      customStyleMap: _objectSpread({}, DefaultDraftInlineStyle, customStyleMap),\n      customStyleFn: customStyleFn,\n      editorKey: this._editorKey,\n      editorState: editorState,\n      preventScroll: preventScroll,\n      textDirectionality: textDirectionality\n    };\n    return React.createElement(\"div\", {\n      className: rootClass\n    }, this._renderPlaceholder(), React.createElement(\"div\", {\n      className: cx('DraftEditor/editorContainer'),\n      ref: this._handleEditorContainerRef\n    }, React.createElement(\"div\", {\n      \"aria-activedescendant\": readOnly ? null:this.props.ariaActiveDescendantID,\n      \"aria-autocomplete\": readOnly ? null:this.props.ariaAutoComplete,\n      \"aria-controls\": readOnly ? null:this.props.ariaControls,\n      \"aria-describedby\": this._renderARIADescribedBy(),\n      \"aria-expanded\": readOnly ? null:ariaExpanded,\n      \"aria-label\": this.props.ariaLabel,\n      \"aria-labelledby\": this.props.ariaLabelledBy,\n      \"aria-multiline\": this.props.ariaMultiline,\n      \"aria-owns\": readOnly ? null:this.props.ariaOwneeID,\n      autoCapitalize: this.props.autoCapitalize,\n      autoComplete: this.props.autoComplete,\n      autoCorrect: this.props.autoCorrect,\n      className: cx({\n        // Chrome's built-in translation feature mutates the DOM in ways\n        // that Draft doesn't expect (ex: adding <font> tags inside\n        // DraftEditorLeaf spans) and causes problems. We add notranslate\n        // here which makes its autotranslation skip over this subtree.\n        notranslate: !readOnly,\n        'public/DraftEditor/content': true\n      }),\n      contentEditable: !readOnly,\n      \"data-testid\": this.props.webDriverTestID,\n      onBeforeInput: this._onBeforeInput,\n      onBlur: this._onBlur,\n      onCompositionEnd: this._onCompositionEnd,\n      onCompositionStart: this._onCompositionStart,\n      onCopy: this._onCopy,\n      onCut: this._onCut,\n      onDragEnd: this._onDragEnd,\n      onDragEnter: this.onDragEnter,\n      onDragLeave: this.onDragLeave,\n      onDragOver: this._onDragOver,\n      onDragStart: this._onDragStart,\n      onDrop: this._onDrop,\n      onFocus: this._onFocus,\n      onInput: this._onInput,\n      onKeyDown: this._onKeyDown,\n      onKeyPress: this._onKeyPress,\n      onKeyUp: this._onKeyUp,\n      onMouseUp: this._onMouseUp,\n      onPaste: this._onPaste,\n      onSelect: this._onSelect,\n      ref: this.props.editorRef,\n      role: readOnly ? null:ariaRole,\n      spellCheck: allowSpellCheck&&this.props.spellCheck,\n      style: contentStyle,\n      suppressContentEditableWarning: true,\n      tabIndex: this.props.tabIndex\n    }, React.createElement(UpdateDraftEditorFlags, {\n      editor: this,\n      editorState: editorState\n    }), React.createElement(DraftEditorContents, _extends({}, editorContentsProps, {\n      key: 'contents' + this.state.contentsKey\n    })))));\n  };\n\n  _proto2.componentDidMount=function componentDidMount(){\n    this._blockSelectEvents=false;\n\n    if(!didInitODS&&gkx('draft_ods_enabled')){\n      didInitODS=true;\n      DraftEffects.initODS();\n    }\n\n    this.setMode('edit');\n    \n\n    if(isIE){\n      // editor can be null after mounting\n      // https://stackoverflow.com/questions/44074747/componentdidmount-called-before-ref-callback\n      if(!this.editor){\n        global.execCommand ('AutoUrlDetect', false, false);\n      }else{\n        this.editor.ownerDocument.execCommand ('AutoUrlDetect', false, false);\n      }\n    }\n  };\n\n  _proto2.componentDidUpdate=function componentDidUpdate(){\n    this._blockSelectEvents=false;\n    this._latestEditorState=this.props.editorState;\n    this._latestCommittedEditorState=this.props.editorState;\n  }\n  \n  ;\n\n  return DraftEditor;\n}(React.Component);\n\n_defineProperty(DraftEditor, \"defaultProps\", {\n  ariaDescribedBy: '{{editor_id_placeholder}}',\n  blockRenderMap: DefaultDraftBlockRenderMap,\n  blockRendererFn: function blockRendererFn(){\n    return null;\n  },\n  blockStyleFn: function blockStyleFn(){\n    return '';\n  },\n  keyBindingFn: getDefaultKeyBinding,\n  readOnly: false,\n  spellCheck: false,\n  stripPastedStyles: false\n});\n\nmodule.exports=DraftEditor;\n}.call(this, __webpack_require__( \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditor.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorBlock.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nfunction _extends(){ _extends=_assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar DraftEditorLeaf=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorLeaf.react.js\");\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar Scroll=__webpack_require__( \"./node_modules/fbjs/lib/Scroll.js\");\n\nvar Style=__webpack_require__( \"./node_modules/fbjs/lib/Style.js\");\n\nvar UnicodeBidi=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidi.js\");\n\nvar UnicodeBidiDirection=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidiDirection.js\");\n\nvar cx=__webpack_require__( \"./node_modules/fbjs/lib/cx.js\");\n\nvar getElementPosition=__webpack_require__( \"./node_modules/fbjs/lib/getElementPosition.js\");\n\nvar getScrollPosition=__webpack_require__( \"./node_modules/fbjs/lib/getScrollPosition.js\");\n\nvar getViewportDimensions=__webpack_require__( \"./node_modules/fbjs/lib/getViewportDimensions.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isHTMLElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLElement.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar SCROLL_BUFFER=10;\n\n\nvar isBlockOnSelectionEdge=function isBlockOnSelectionEdge(selection, key){\n  return selection.getAnchorKey()===key||selection.getFocusKey()===key;\n};\n\n\n\nvar DraftEditorBlock=function (_React$Component){\n  _inheritsLoose(DraftEditorBlock, _React$Component);\n\n  function DraftEditorBlock(){\n    var _this;\n\n    for (var _len=arguments.length, args=new Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    _this=_React$Component.call.apply(_React$Component, [this].concat(args))||this;\n\n    _defineProperty(_assertThisInitialized(_this), \"_node\", void 0);\n\n    return _this;\n  }\n\n  var _proto=DraftEditorBlock.prototype;\n\n  _proto.shouldComponentUpdate=function shouldComponentUpdate(nextProps){\n    return this.props.block!==nextProps.block||this.props.tree!==nextProps.tree||this.props.direction!==nextProps.direction||isBlockOnSelectionEdge(nextProps.selection, nextProps.block.getKey())&&nextProps.forceSelection;\n  }\n  \n  ;\n\n  _proto.componentDidMount=function componentDidMount(){\n    if(this.props.preventScroll){\n      return;\n    }\n\n    var selection=this.props.selection;\n    var endKey=selection.getEndKey();\n\n    if(!selection.getHasFocus()||endKey!==this.props.block.getKey()){\n      return;\n    }\n\n    var blockNode=this._node;\n\n    if(blockNode==null){\n      return;\n    }\n\n    var scrollParent=Style.getScrollParent(blockNode);\n    var scrollPosition=getScrollPosition(scrollParent);\n    var scrollDelta;\n\n    if(scrollParent===window){\n      var nodePosition=getElementPosition(blockNode);\n      var nodeBottom=nodePosition.y + nodePosition.height;\n      var viewportHeight=getViewportDimensions().height;\n      scrollDelta=nodeBottom - viewportHeight;\n\n      if(scrollDelta > 0){\n        window.scrollTo(scrollPosition.x, scrollPosition.y + scrollDelta + SCROLL_BUFFER);\n      }\n    }else{\n      !isHTMLElement(blockNode) ?  true ? invariant(false, 'blockNode is not an HTMLElement'):undefined:void 0;\n      var blockBottom=blockNode.offsetHeight + blockNode.offsetTop;\n      var pOffset=scrollParent.offsetTop + scrollParent.offsetHeight;\n      var scrollBottom=pOffset + scrollPosition.y;\n      scrollDelta=blockBottom - scrollBottom;\n\n      if(scrollDelta > 0){\n        Scroll.setTop(scrollParent, Scroll.getTop(scrollParent) + scrollDelta + SCROLL_BUFFER);\n      }\n    }\n  };\n\n  _proto._renderChildren=function _renderChildren(){\n    var _this2=this;\n\n    var block=this.props.block;\n    var blockKey=block.getKey();\n    var text=block.getText();\n    var lastLeafSet=this.props.tree.size - 1;\n    var hasSelection=isBlockOnSelectionEdge(this.props.selection, blockKey);\n    return this.props.tree.map(function (leafSet, ii){\n      var leavesForLeafSet=leafSet.get('leaves'); // T44088704\n\n      if(leavesForLeafSet.size===0){\n        return null;\n      }\n\n      var lastLeaf=leavesForLeafSet.size - 1;\n      var leaves=leavesForLeafSet.map(function (leaf, jj){\n        var offsetKey=DraftOffsetKey.encode(blockKey, ii, jj);\n        var start=leaf.get('start');\n        var end=leaf.get('end');\n        return React.createElement(DraftEditorLeaf, {\n          key: offsetKey,\n          offsetKey: offsetKey,\n          block: block,\n          start: start,\n          selection: hasSelection ? _this2.props.selection:null,\n          forceSelection: _this2.props.forceSelection,\n          text: text.slice(start, end),\n          styleSet: block.getInlineStyleAt(start),\n          customStyleMap: _this2.props.customStyleMap,\n          customStyleFn: _this2.props.customStyleFn,\n          isLast: ii===lastLeafSet&&jj===lastLeaf\n        });\n      }).toArray();\n      var decoratorKey=leafSet.get('decoratorKey');\n\n      if(decoratorKey==null){\n        return leaves;\n      }\n\n      if(!_this2.props.decorator){\n        return leaves;\n      }\n\n      var decorator=nullthrows(_this2.props.decorator);\n      var DecoratorComponent=decorator.getComponentForKey(decoratorKey);\n\n      if(!DecoratorComponent){\n        return leaves;\n      }\n\n      var decoratorProps=decorator.getPropsForKey(decoratorKey);\n      var decoratorOffsetKey=DraftOffsetKey.encode(blockKey, ii, 0);\n      var start=leavesForLeafSet.first().get('start');\n      var end=leavesForLeafSet.last().get('end');\n      var decoratedText=text.slice(start, end);\n      var entityKey=block.getEntityAt(leafSet.get('start')); // Resetting dir to the same value on a child node makes Chrome/Firefox\n      // confused on cursor movement. See http://jsfiddle.net/d157kLck/3/\n\n      var dir=UnicodeBidiDirection.getHTMLDirIfDifferent(UnicodeBidi.getDirection(decoratedText), _this2.props.direction);\n      var commonProps={\n        contentState: _this2.props.contentState,\n        decoratedText: decoratedText,\n        dir: dir,\n        start: start,\n        end: end,\n        blockKey: blockKey,\n        entityKey: entityKey,\n        offsetKey: decoratorOffsetKey\n      };\n      return React.createElement(DecoratorComponent, _extends({}, decoratorProps, commonProps, {\n        key: decoratorOffsetKey\n      }), leaves);\n    }).toArray();\n  };\n\n  _proto.render=function render(){\n    var _this3=this;\n\n    var _this$props=this.props,\n        direction=_this$props.direction,\n        offsetKey=_this$props.offsetKey;\n    var className=cx({\n      'public/DraftStyleDefault/block': true,\n      'public/DraftStyleDefault/ltr': direction==='LTR',\n      'public/DraftStyleDefault/rtl': direction==='RTL'\n    });\n    return React.createElement(\"div\", {\n      \"data-offset-key\": offsetKey,\n      className: className,\n      ref: function ref(_ref){\n        return _this3._node=_ref;\n      }\n    }, this._renderChildren());\n  };\n\n  return DraftEditorBlock;\n}(React.Component);\n\nmodule.exports=DraftEditorBlock;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorBlock.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorBlockNode.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nfunction _extends(){ _extends=_assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar DraftEditorNode=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorNode.react.js\");\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar Scroll=__webpack_require__( \"./node_modules/fbjs/lib/Scroll.js\");\n\nvar Style=__webpack_require__( \"./node_modules/fbjs/lib/Style.js\");\n\nvar getElementPosition=__webpack_require__( \"./node_modules/fbjs/lib/getElementPosition.js\");\n\nvar getScrollPosition=__webpack_require__( \"./node_modules/fbjs/lib/getScrollPosition.js\");\n\nvar getViewportDimensions=__webpack_require__( \"./node_modules/fbjs/lib/getViewportDimensions.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isHTMLElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLElement.js\");\n\nvar SCROLL_BUFFER=10;\nvar List=Immutable.List; // we should harden up the bellow flow types to make them more strict\n\n\nvar isBlockOnSelectionEdge=function isBlockOnSelectionEdge(selection, key){\n  return selection.getAnchorKey()===key||selection.getFocusKey()===key;\n};\n\n\n\nvar shouldNotAddWrapperElement=function shouldNotAddWrapperElement(block, contentState){\n  var nextSiblingKey=block.getNextSiblingKey();\n  return nextSiblingKey ? contentState.getBlockForKey(nextSiblingKey).getType()===block.getType():false;\n};\n\nvar applyWrapperElementToSiblings=function applyWrapperElementToSiblings(wrapperTemplate, Element, nodes){\n  var wrappedSiblings=[]; // we check back until we find a sibling that does not have same wrapper\n\n  var _iteratorNormalCompletion=true;\n  var _didIteratorError=false;\n  var _iteratorError=undefined;\n\n  try {\n    for (var _iterator=nodes.reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion=(_step=_iterator.next()).done); _iteratorNormalCompletion=true){\n      var sibling=_step.value;\n\n      if(sibling.type!==Element){\n        break;\n      }\n\n      wrappedSiblings.push(sibling);\n    } // we now should remove from acc the wrappedSiblings and add them back under same wrap\n\n  } catch (err){\n    _didIteratorError=true;\n    _iteratorError=err;\n  } finally {\n    try {\n      if(!_iteratorNormalCompletion&&_iterator[\"return\"]!=null){\n        _iterator[\"return\"]();\n      }\n    } finally {\n      if(_didIteratorError){\n        throw _iteratorError;\n      }\n    }\n  }\n\n  nodes.splice(nodes.indexOf(wrappedSiblings[0]), wrappedSiblings.length + 1);\n  var childrenIs=wrappedSiblings.reverse();\n  var key=childrenIs[0].key;\n  nodes.push(React.cloneElement(wrapperTemplate, {\n    key: \"\".concat(key, \"-wrap\"),\n    'data-offset-key': DraftOffsetKey.encode(key, 0, 0)\n  }, childrenIs));\n  return nodes;\n};\n\nvar getDraftRenderConfig=function getDraftRenderConfig(block, blockRenderMap){\n  var configForType=blockRenderMap.get(block.getType())||blockRenderMap.get('unstyled');\n  var wrapperTemplate=configForType.wrapper;\n  var Element=configForType.element||blockRenderMap.get('unstyled').element;\n  return {\n    Element: Element,\n    wrapperTemplate: wrapperTemplate\n  };\n};\n\nvar getCustomRenderConfig=function getCustomRenderConfig(block, blockRendererFn){\n  var customRenderer=blockRendererFn(block);\n\n  if(!customRenderer){\n    return {};\n  }\n\n  var CustomComponent=customRenderer.component,\n      customProps=customRenderer.props,\n      customEditable=customRenderer.editable;\n  return {\n    CustomComponent: CustomComponent,\n    customProps: customProps,\n    customEditable: customEditable\n  };\n};\n\nvar getElementPropsConfig=function getElementPropsConfig(block, editorKey, offsetKey, blockStyleFn, customConfig, ref){\n  var elementProps={\n    'data-block': true,\n    'data-editor': editorKey,\n    'data-offset-key': offsetKey,\n    key: block.getKey(),\n    ref: ref\n  };\n  var customClass=blockStyleFn(block);\n\n  if(customClass){\n    elementProps.className=customClass;\n  }\n\n  if(customConfig.customEditable!==undefined){\n    elementProps=_objectSpread({}, elementProps, {\n      contentEditable: customConfig.customEditable,\n      suppressContentEditableWarning: true\n    });\n  }\n\n  return elementProps;\n};\n\nvar DraftEditorBlockNode=function (_React$Component){\n  _inheritsLoose(DraftEditorBlockNode, _React$Component);\n\n  function DraftEditorBlockNode(){\n    var _this;\n\n    for (var _len=arguments.length, args=new Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    _this=_React$Component.call.apply(_React$Component, [this].concat(args))||this;\n\n    _defineProperty(_assertThisInitialized(_this), \"wrapperRef\", React.createRef());\n\n    return _this;\n  }\n\n  var _proto=DraftEditorBlockNode.prototype;\n\n  _proto.shouldComponentUpdate=function shouldComponentUpdate(nextProps){\n    var _this$props=this.props,\n        block=_this$props.block,\n        direction=_this$props.direction,\n        tree=_this$props.tree;\n    var isContainerNode = !block.getChildKeys().isEmpty();\n    var blockHasChanged=block!==nextProps.block||tree!==nextProps.tree||direction!==nextProps.direction||isBlockOnSelectionEdge(nextProps.selection, nextProps.block.getKey())&&nextProps.forceSelection; // if we have children at this stage we always re-render container nodes\n    // else if its a root node we avoid re-rendering by checking for block updates\n\n    return isContainerNode||blockHasChanged;\n  }\n  \n  ;\n\n  _proto.componentDidMount=function componentDidMount(){\n    var selection=this.props.selection;\n    var endKey=selection.getEndKey();\n\n    if(!selection.getHasFocus()||endKey!==this.props.block.getKey()){\n      return;\n    }\n\n    var blockNode=this.wrapperRef.current;\n\n    if(!blockNode){\n      // This Block Node was rendered without a wrapper element.\n      return;\n    }\n\n    var scrollParent=Style.getScrollParent(blockNode);\n    var scrollPosition=getScrollPosition(scrollParent);\n    var scrollDelta;\n\n    if(scrollParent===window){\n      var nodePosition=getElementPosition(blockNode);\n      var nodeBottom=nodePosition.y + nodePosition.height;\n      var viewportHeight=getViewportDimensions().height;\n      scrollDelta=nodeBottom - viewportHeight;\n\n      if(scrollDelta > 0){\n        window.scrollTo(scrollPosition.x, scrollPosition.y + scrollDelta + SCROLL_BUFFER);\n      }\n    }else{\n      !isHTMLElement(blockNode) ?  true ? invariant(false, 'blockNode is not an HTMLElement'):undefined:void 0;\n      var htmlBlockNode=blockNode;\n      var blockBottom=htmlBlockNode.offsetHeight + htmlBlockNode.offsetTop;\n      var scrollBottom=scrollParent.offsetHeight + scrollPosition.y;\n      scrollDelta=blockBottom - scrollBottom;\n\n      if(scrollDelta > 0){\n        Scroll.setTop(scrollParent, Scroll.getTop(scrollParent) + scrollDelta + SCROLL_BUFFER);\n      }\n    }\n  };\n\n  _proto.render=function render(){\n    var _this2=this;\n\n    var _this$props2=this.props,\n        block=_this$props2.block,\n        blockRenderMap=_this$props2.blockRenderMap,\n        blockRendererFn=_this$props2.blockRendererFn,\n        blockStyleFn=_this$props2.blockStyleFn,\n        contentState=_this$props2.contentState,\n        decorator=_this$props2.decorator,\n        editorKey=_this$props2.editorKey,\n        editorState=_this$props2.editorState,\n        customStyleFn=_this$props2.customStyleFn,\n        customStyleMap=_this$props2.customStyleMap,\n        direction=_this$props2.direction,\n        forceSelection=_this$props2.forceSelection,\n        selection=_this$props2.selection,\n        tree=_this$props2.tree;\n    var children=null;\n\n    if(block.children.size){\n      children=block.children.reduce(function (acc, key){\n        var offsetKey=DraftOffsetKey.encode(key, 0, 0);\n        var child=contentState.getBlockForKey(key);\n        var customConfig=getCustomRenderConfig(child, blockRendererFn);\n        var Component=customConfig.CustomComponent||DraftEditorBlockNode;\n\n        var _getDraftRenderConfig=getDraftRenderConfig(child, blockRenderMap),\n            Element=_getDraftRenderConfig.Element,\n            wrapperTemplate=_getDraftRenderConfig.wrapperTemplate;\n\n        var elementProps=getElementPropsConfig(child, editorKey, offsetKey, blockStyleFn, customConfig, null);\n\n        var childProps=_objectSpread({}, _this2.props, {\n          tree: editorState.getBlockTree(key),\n          blockProps: customConfig.customProps,\n          offsetKey: offsetKey,\n          block: child\n        });\n\n        acc.push(React.createElement(Element, elementProps, React.createElement(Component, childProps)));\n\n        if(!wrapperTemplate||shouldNotAddWrapperElement(child, contentState)){\n          return acc;\n        } // if we are here it means we are the last block\n        // that has a wrapperTemplate so we should wrap itself\n        // and all other previous siblings that share the same wrapper\n\n\n        applyWrapperElementToSiblings(wrapperTemplate, Element, acc);\n        return acc;\n      }, []);\n    }\n\n    var blockKey=block.getKey();\n    var offsetKey=DraftOffsetKey.encode(blockKey, 0, 0);\n    var customConfig=getCustomRenderConfig(block, blockRendererFn);\n    var Component=customConfig.CustomComponent;\n    var blockNode=Component!=null ? React.createElement(Component, _extends({}, this.props, {\n      tree: editorState.getBlockTree(blockKey),\n      blockProps: customConfig.customProps,\n      offsetKey: offsetKey,\n      block: block\n    })):React.createElement(DraftEditorNode, {\n      block: block,\n      children: children,\n      contentState: contentState,\n      customStyleFn: customStyleFn,\n      customStyleMap: customStyleMap,\n      decorator: decorator,\n      direction: direction,\n      forceSelection: forceSelection,\n      hasSelection: isBlockOnSelectionEdge(selection, blockKey),\n      selection: selection,\n      tree: tree\n    });\n\n    if(block.getParentKey()){\n      return blockNode;\n    }\n\n    var _getDraftRenderConfig2=getDraftRenderConfig(block, blockRenderMap),\n        Element=_getDraftRenderConfig2.Element;\n\n    var elementProps=getElementPropsConfig(block, editorKey, offsetKey, blockStyleFn, customConfig, this.wrapperRef); // root block nodes needs to be wrapped\n\n    return React.createElement(Element, elementProps, blockNode);\n  };\n\n  return DraftEditorBlockNode;\n}(React.Component);\n\nmodule.exports=DraftEditorBlockNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorBlockNode.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorCompositionHandler.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DOMObserver=__webpack_require__( \"./node_modules/draft-js/lib/DOMObserver.js\");\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar Keys=__webpack_require__( \"./node_modules/fbjs/lib/Keys.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar editOnSelect=__webpack_require__( \"./node_modules/draft-js/lib/editOnSelect.js\");\n\nvar getContentEditableContainer=__webpack_require__( \"./node_modules/draft-js/lib/getContentEditableContainer.js\");\n\nvar getDraftEditorSelection=__webpack_require__( \"./node_modules/draft-js/lib/getDraftEditorSelection.js\");\n\nvar getEntityKeyForSelection=__webpack_require__( \"./node_modules/draft-js/lib/getEntityKeyForSelection.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar isIE=UserAgent.isBrowser('IE');\n\n\nvar RESOLVE_DELAY=20;\n\n\nvar resolved=false;\nvar stillComposing=false;\nvar domObserver=null;\n\nfunction startDOMObserver(editor){\n  if(!domObserver){\n    domObserver=new DOMObserver(getContentEditableContainer(editor));\n    domObserver.start();\n  }\n}\n\nvar DraftEditorCompositionHandler={\n  \n  onCompositionStart: function onCompositionStart(editor){\n    stillComposing=true;\n    startDOMObserver(editor);\n  },\n\n  \n  onCompositionEnd: function onCompositionEnd(editor){\n    resolved=false;\n    stillComposing=false;\n    setTimeout(function (){\n      if(!resolved){\n        DraftEditorCompositionHandler.resolveComposition(editor);\n      }\n    }, RESOLVE_DELAY);\n  },\n  onSelect: editOnSelect,\n\n  \n  onKeyDown: function onKeyDown(editor, e){\n    if(!stillComposing){\n      // If a keydown event is received after compositionend but before the\n      // 20ms timer expires (ex: type option-E then backspace, or type A then\n      // backspace in 2-Set Korean), we should immediately resolve the\n      // composition and reinterpret the key press in edit mode.\n      DraftEditorCompositionHandler.resolveComposition(editor);\n\n      editor._onKeyDown(e);\n\n      return;\n    }\n\n    if(e.which===Keys.RIGHT||e.which===Keys.LEFT){\n      e.preventDefault();\n    }\n  },\n\n  \n  onKeyPress: function onKeyPress(_editor, e){\n    if(e.which===Keys.RETURN){\n      e.preventDefault();\n    }\n  },\n\n  \n  resolveComposition: function resolveComposition(editor){\n    if(stillComposing){\n      return;\n    }\n\n    var mutations=nullthrows(domObserver).stopAndFlushMutations();\n    domObserver=null;\n    resolved=true;\n    var editorState=EditorState.set(editor._latestEditorState, {\n      inCompositionMode: false\n    });\n    editor.exitCurrentMode();\n\n    if(!mutations.size){\n      editor.update(editorState);\n      return;\n    } // TODO, check if Facebook still needs this flag or if it could be removed.\n    // Since there can be multiple mutations providing a `composedChars` doesn't\n    // apply well on this new model.\n    // if(\n    //   gkx('draft_handlebeforeinput_composed_text')&&\n    //   editor.props.handleBeforeInput&&\n    //   isEventHandled(\n    //     editor.props.handleBeforeInput(\n    //       composedChars,\n    //       editorState,\n    //       event.timeStamp,\n    //),\n    //)\n    //){\n    //   return;\n    // }\n\n\n    var contentState=editorState.getCurrentContent();\n    mutations.forEach(function (composedChars, offsetKey){\n      var _DraftOffsetKey$decod=DraftOffsetKey.decode(offsetKey),\n          blockKey=_DraftOffsetKey$decod.blockKey,\n          decoratorKey=_DraftOffsetKey$decod.decoratorKey,\n          leafKey=_DraftOffsetKey$decod.leafKey;\n\n      var _editorState$getBlock=editorState.getBlockTree(blockKey).getIn([decoratorKey, 'leaves', leafKey]),\n          start=_editorState$getBlock.start,\n          end=_editorState$getBlock.end;\n\n      var replacementRange=editorState.getSelection().merge({\n        anchorKey: blockKey,\n        focusKey: blockKey,\n        anchorOffset: start,\n        focusOffset: end,\n        isBackward: false\n      });\n      var entityKey=getEntityKeyForSelection(contentState, replacementRange);\n      var currentStyle=contentState.getBlockForKey(blockKey).getInlineStyleAt(start);\n      contentState=DraftModifier.replaceText(contentState, replacementRange, composedChars, currentStyle, entityKey); // We need to update the editorState so the leaf node ranges are properly\n      // updated and multiple mutations are correctly applied.\n\n      editorState=EditorState.set(editorState, {\n        currentContent: contentState\n      });\n    });// When we apply the text changes to the ContentState, the selection always\n    // goes to the end of the field, but it should just stay where it is\n    // after compositionEnd.\n\n    var documentSelection=getDraftEditorSelection(editorState, getContentEditableContainer(editor));\n    var compositionEndSelectionState=documentSelection.selectionState;\n    editor.restoreEditorDOM(); // See:\n    // - https://github.com/facebook/draft-js/issues/2093\n    // - https://github.com/facebook/draft-js/pull/2094\n    // Apply this fix only in IE for now. We can test it in\n    // other browsers in the future to ensure no regressions\n\n    var editorStateWithUpdatedSelection=isIE ? EditorState.forceSelection(editorState, compositionEndSelectionState):EditorState.acceptSelection(editorState, compositionEndSelectionState);\n    editor.update(EditorState.push(editorStateWithUpdatedSelection, contentState, 'insert-characters'));\n  }\n};\nmodule.exports=DraftEditorCompositionHandler;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorCompositionHandler.js?");
}),
"./node_modules/draft-js/lib/DraftEditorContents-core.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nfunction _extends(){ _extends=_assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar DraftEditorBlock=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorBlock.react.js\");\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar cx=__webpack_require__( \"./node_modules/fbjs/lib/cx.js\");\n\nvar joinClasses=__webpack_require__( \"./node_modules/fbjs/lib/joinClasses.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\n\nvar getListItemClasses=function getListItemClasses(type, depth, shouldResetCount, direction){\n  return cx({\n    'public/DraftStyleDefault/unorderedListItem': type==='unordered-list-item',\n    'public/DraftStyleDefault/orderedListItem': type==='ordered-list-item',\n    'public/DraftStyleDefault/reset': shouldResetCount,\n    'public/DraftStyleDefault/depth0': depth===0,\n    'public/DraftStyleDefault/depth1': depth===1,\n    'public/DraftStyleDefault/depth2': depth===2,\n    'public/DraftStyleDefault/depth3': depth===3,\n    'public/DraftStyleDefault/depth4': depth >=4,\n    'public/DraftStyleDefault/listLTR': direction==='LTR',\n    'public/DraftStyleDefault/listRTL': direction==='RTL'\n  });\n};\n\n\n\nvar DraftEditorContents=function (_React$Component){\n  _inheritsLoose(DraftEditorContents, _React$Component);\n\n  function DraftEditorContents(){\n    return _React$Component.apply(this, arguments)||this;\n  }\n\n  var _proto=DraftEditorContents.prototype;\n\n  _proto.shouldComponentUpdate=function shouldComponentUpdate(nextProps){\n    var prevEditorState=this.props.editorState;\n    var nextEditorState=nextProps.editorState;\n    var prevDirectionMap=prevEditorState.getDirectionMap();\n    var nextDirectionMap=nextEditorState.getDirectionMap(); // Text direction has changed for one or more blocks. We must re-render.\n\n    if(prevDirectionMap!==nextDirectionMap){\n      return true;\n    }\n\n    var didHaveFocus=prevEditorState.getSelection().getHasFocus();\n    var nowHasFocus=nextEditorState.getSelection().getHasFocus();\n\n    if(didHaveFocus!==nowHasFocus){\n      return true;\n    }\n\n    var nextNativeContent=nextEditorState.getNativelyRenderedContent();\n    var wasComposing=prevEditorState.isInCompositionMode();\n    var nowComposing=nextEditorState.isInCompositionMode(); // If the state is unchanged or we're currently rendering a natively\n    // rendered state, there's nothing new to be done.\n\n    if(prevEditorState===nextEditorState||nextNativeContent!==null&&nextEditorState.getCurrentContent()===nextNativeContent||wasComposing&&nowComposing){\n      return false;\n    }\n\n    var prevContent=prevEditorState.getCurrentContent();\n    var nextContent=nextEditorState.getCurrentContent();\n    var prevDecorator=prevEditorState.getDecorator();\n    var nextDecorator=nextEditorState.getDecorator();\n    return wasComposing!==nowComposing||prevContent!==nextContent||prevDecorator!==nextDecorator||nextEditorState.mustForceSelection();\n  };\n\n  _proto.render=function render(){\n    var _this$props=this.props,\n        blockRenderMap=_this$props.blockRenderMap,\n        blockRendererFn=_this$props.blockRendererFn,\n        blockStyleFn=_this$props.blockStyleFn,\n        customStyleMap=_this$props.customStyleMap,\n        customStyleFn=_this$props.customStyleFn,\n        editorState=_this$props.editorState,\n        editorKey=_this$props.editorKey,\n        preventScroll=_this$props.preventScroll,\n        textDirectionality=_this$props.textDirectionality;\n    var content=editorState.getCurrentContent();\n    var selection=editorState.getSelection();\n    var forceSelection=editorState.mustForceSelection();\n    var decorator=editorState.getDecorator();\n    var directionMap=nullthrows(editorState.getDirectionMap());\n    var blocksAsArray=content.getBlocksAsArray();\n    var processedBlocks=[];\n    var currentDepth=null;\n    var lastWrapperTemplate=null;\n\n    for (var ii=0; ii < blocksAsArray.length; ii++){\n      var _block=blocksAsArray[ii];\n\n      var key=_block.getKey();\n\n      var blockType=_block.getType();\n\n      var customRenderer=blockRendererFn(_block);\n      var CustomComponent=void 0,\n          customProps=void 0,\n          customEditable=void 0;\n\n      if(customRenderer){\n        CustomComponent=customRenderer.component;\n        customProps=customRenderer.props;\n        customEditable=customRenderer.editable;\n      }\n\n      var direction=textDirectionality ? textDirectionality:directionMap.get(key);\n      var offsetKey=DraftOffsetKey.encode(key, 0, 0);\n      var componentProps={\n        contentState: content,\n        block: _block,\n        blockProps: customProps,\n        blockStyleFn: blockStyleFn,\n        customStyleMap: customStyleMap,\n        customStyleFn: customStyleFn,\n        decorator: decorator,\n        direction: direction,\n        forceSelection: forceSelection,\n        offsetKey: offsetKey,\n        preventScroll: preventScroll,\n        selection: selection,\n        tree: editorState.getBlockTree(key)\n      };\n      var configForType=blockRenderMap.get(blockType)||blockRenderMap.get('unstyled');\n      var wrapperTemplate=configForType.wrapper;\n      var Element=configForType.element||blockRenderMap.get('unstyled').element;\n\n      var depth=_block.getDepth();\n\n      var _className='';\n\n      if(blockStyleFn){\n        _className=blockStyleFn(_block);\n      } // List items are special snowflakes, since we handle nesting and\n      // counters manually.\n\n\n      if(Element==='li'){\n        var shouldResetCount=lastWrapperTemplate!==wrapperTemplate||currentDepth===null||depth > currentDepth;\n        _className=joinClasses(_className, getListItemClasses(blockType, depth, shouldResetCount, direction));\n      }\n\n      var Component=CustomComponent||DraftEditorBlock;\n      var childProps={\n        className: _className,\n        'data-block': true,\n        'data-editor': editorKey,\n        'data-offset-key': offsetKey,\n        key: key\n      };\n\n      if(customEditable!==undefined){\n        childProps=_objectSpread({}, childProps, {\n          contentEditable: customEditable,\n          suppressContentEditableWarning: true\n        });\n      }\n\n      var child=React.createElement(Element, childProps,\n      \n      React.createElement(Component, _extends({}, componentProps, {\n        key: key\n      })));\n      processedBlocks.push({\n        block: child,\n        wrapperTemplate: wrapperTemplate,\n        key: key,\n        offsetKey: offsetKey\n      });\n\n      if(wrapperTemplate){\n        currentDepth=_block.getDepth();\n      }else{\n        currentDepth=null;\n      }\n\n      lastWrapperTemplate=wrapperTemplate;\n    } // Group contiguous runs of blocks that have the same wrapperTemplate\n\n\n    var outputBlocks=[];\n\n    for (var _ii=0; _ii < processedBlocks.length;){\n      var info=processedBlocks[_ii];\n\n      if(info.wrapperTemplate){\n        var blocks=[];\n\n        do {\n          blocks.push(processedBlocks[_ii].block);\n          _ii++;\n        } while (_ii < processedBlocks.length&&processedBlocks[_ii].wrapperTemplate===info.wrapperTemplate);\n\n        var wrapperElement=React.cloneElement(info.wrapperTemplate, {\n          key: info.key + '-wrap',\n          'data-offset-key': info.offsetKey\n        }, blocks);\n        outputBlocks.push(wrapperElement);\n      }else{\n        outputBlocks.push(info.block);\n        _ii++;\n      }\n    }\n\n    return React.createElement(\"div\", {\n      \"data-contents\": \"true\"\n    }, outputBlocks);\n  };\n\n  return DraftEditorContents;\n}(React.Component);\n\nmodule.exports=DraftEditorContents;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorContents-core.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorContents.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar experimentalTreeDataSupport=gkx('draft_tree_data_support');\nmodule.exports=experimentalTreeDataSupport ? __webpack_require__( \"./node_modules/draft-js/lib/DraftEditorContentsExperimental.react.js\"):__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorContents-core.react.js\");\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorContents.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorContentsExperimental.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nfunction _extends(){ _extends=_assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar DraftEditorBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorBlockNode.react.js\");\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\n\nvar DraftEditorContentsExperimental=function (_React$Component){\n  _inheritsLoose(DraftEditorContentsExperimental, _React$Component);\n\n  function DraftEditorContentsExperimental(){\n    return _React$Component.apply(this, arguments)||this;\n  }\n\n  var _proto=DraftEditorContentsExperimental.prototype;\n\n  _proto.shouldComponentUpdate=function shouldComponentUpdate(nextProps){\n    var prevEditorState=this.props.editorState;\n    var nextEditorState=nextProps.editorState;\n    var prevDirectionMap=prevEditorState.getDirectionMap();\n    var nextDirectionMap=nextEditorState.getDirectionMap(); // Text direction has changed for one or more blocks. We must re-render.\n\n    if(prevDirectionMap!==nextDirectionMap){\n      return true;\n    }\n\n    var didHaveFocus=prevEditorState.getSelection().getHasFocus();\n    var nowHasFocus=nextEditorState.getSelection().getHasFocus();\n\n    if(didHaveFocus!==nowHasFocus){\n      return true;\n    }\n\n    var nextNativeContent=nextEditorState.getNativelyRenderedContent();\n    var wasComposing=prevEditorState.isInCompositionMode();\n    var nowComposing=nextEditorState.isInCompositionMode(); // If the state is unchanged or we're currently rendering a natively\n    // rendered state, there's nothing new to be done.\n\n    if(prevEditorState===nextEditorState||nextNativeContent!==null&&nextEditorState.getCurrentContent()===nextNativeContent||wasComposing&&nowComposing){\n      return false;\n    }\n\n    var prevContent=prevEditorState.getCurrentContent();\n    var nextContent=nextEditorState.getCurrentContent();\n    var prevDecorator=prevEditorState.getDecorator();\n    var nextDecorator=nextEditorState.getDecorator();\n    return wasComposing!==nowComposing||prevContent!==nextContent||prevDecorator!==nextDecorator||nextEditorState.mustForceSelection();\n  };\n\n  _proto.render=function render(){\n    var _this$props=this.props,\n        blockRenderMap=_this$props.blockRenderMap,\n        blockRendererFn=_this$props.blockRendererFn,\n        blockStyleFn=_this$props.blockStyleFn,\n        customStyleMap=_this$props.customStyleMap,\n        customStyleFn=_this$props.customStyleFn,\n        editorState=_this$props.editorState,\n        editorKey=_this$props.editorKey,\n        textDirectionality=_this$props.textDirectionality;\n    var content=editorState.getCurrentContent();\n    var selection=editorState.getSelection();\n    var forceSelection=editorState.mustForceSelection();\n    var decorator=editorState.getDecorator();\n    var directionMap=nullthrows(editorState.getDirectionMap());\n    var blocksAsArray=content.getBlocksAsArray();\n    var rootBlock=blocksAsArray[0];\n    var processedBlocks=[];\n    var nodeBlock=rootBlock;\n\n    while (nodeBlock){\n      var blockKey=nodeBlock.getKey();\n      var blockProps={\n        blockRenderMap: blockRenderMap,\n        blockRendererFn: blockRendererFn,\n        blockStyleFn: blockStyleFn,\n        contentState: content,\n        customStyleFn: customStyleFn,\n        customStyleMap: customStyleMap,\n        decorator: decorator,\n        editorKey: editorKey,\n        editorState: editorState,\n        forceSelection: forceSelection,\n        selection: selection,\n        block: nodeBlock,\n        direction: textDirectionality ? textDirectionality:directionMap.get(blockKey),\n        tree: editorState.getBlockTree(blockKey)\n      };\n      var configForType=blockRenderMap.get(nodeBlock.getType())||blockRenderMap.get('unstyled');\n      var wrapperTemplate=configForType.wrapper;\n      processedBlocks.push({\n        \n        block: React.createElement(DraftEditorBlockNode, _extends({\n          key: blockKey\n        }, blockProps)),\n        wrapperTemplate: wrapperTemplate,\n        key: blockKey,\n        offsetKey: DraftOffsetKey.encode(blockKey, 0, 0)\n      });\n      var nextBlockKey=nodeBlock.getNextSiblingKey();\n      nodeBlock=nextBlockKey ? content.getBlockForKey(nextBlockKey):null;\n    } // Group contiguous runs of blocks that have the same wrapperTemplate\n\n\n    var outputBlocks=[];\n\n    for (var ii=0; ii < processedBlocks.length;){\n      var info=processedBlocks[ii];\n\n      if(info.wrapperTemplate){\n        var blocks=[];\n\n        do {\n          blocks.push(processedBlocks[ii].block);\n          ii++;\n        } while (ii < processedBlocks.length&&processedBlocks[ii].wrapperTemplate===info.wrapperTemplate);\n\n        var wrapperElement=React.cloneElement(info.wrapperTemplate, {\n          key: info.key + '-wrap',\n          'data-offset-key': info.offsetKey\n        }, blocks);\n        outputBlocks.push(wrapperElement);\n      }else{\n        outputBlocks.push(info.block);\n        ii++;\n      }\n    }\n\n    return React.createElement(\"div\", {\n      \"data-contents\": \"true\"\n    }, outputBlocks);\n  };\n\n  return DraftEditorContentsExperimental;\n}(React.Component);\n\nmodule.exports=DraftEditorContentsExperimental;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorContentsExperimental.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorDecoratedLeaves.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nfunction _extends(){ _extends=_assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar UnicodeBidi=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidi.js\");\n\nvar UnicodeBidiDirection=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidiDirection.js\");\n\nvar DraftEditorDecoratedLeaves=function (_React$Component){\n  _inheritsLoose(DraftEditorDecoratedLeaves, _React$Component);\n\n  function DraftEditorDecoratedLeaves(){\n    return _React$Component.apply(this, arguments)||this;\n  }\n\n  var _proto=DraftEditorDecoratedLeaves.prototype;\n\n  _proto.render=function render(){\n    var _this$props=this.props,\n        block=_this$props.block,\n        children=_this$props.children,\n        contentState=_this$props.contentState,\n        decorator=_this$props.decorator,\n        decoratorKey=_this$props.decoratorKey,\n        direction=_this$props.direction,\n        leafSet=_this$props.leafSet,\n        text=_this$props.text;\n    var blockKey=block.getKey();\n    var leavesForLeafSet=leafSet.get('leaves');\n    var DecoratorComponent=decorator.getComponentForKey(decoratorKey);\n    var decoratorProps=decorator.getPropsForKey(decoratorKey);\n    var decoratorOffsetKey=DraftOffsetKey.encode(blockKey, parseInt(decoratorKey, 10), 0);\n    var decoratedText=text.slice(leavesForLeafSet.first().get('start'), leavesForLeafSet.last().get('end')); // Resetting dir to the same value on a child node makes Chrome/Firefox\n    // confused on cursor movement. See http://jsfiddle.net/d157kLck/3/\n\n    var dir=UnicodeBidiDirection.getHTMLDirIfDifferent(UnicodeBidi.getDirection(decoratedText), direction);\n    return React.createElement(DecoratorComponent, _extends({}, decoratorProps, {\n      contentState: contentState,\n      decoratedText: decoratedText,\n      dir: dir,\n      key: decoratorOffsetKey,\n      entityKey: block.getEntityAt(leafSet.get('start')),\n      offsetKey: decoratorOffsetKey\n    }), children);\n  };\n\n  return DraftEditorDecoratedLeaves;\n}(React.Component);\n\nmodule.exports=DraftEditorDecoratedLeaves;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorDecoratedLeaves.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorDragHandler.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DataTransfer=__webpack_require__( \"./node_modules/fbjs/lib/DataTransfer.js\");\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar findAncestorOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/findAncestorOffsetKey.js\");\n\nvar getCorrectDocumentFromNode=__webpack_require__( \"./node_modules/draft-js/lib/getCorrectDocumentFromNode.js\");\n\nvar getTextContentFromFiles=__webpack_require__( \"./node_modules/draft-js/lib/getTextContentFromFiles.js\");\n\nvar getUpdatedSelectionState=__webpack_require__( \"./node_modules/draft-js/lib/getUpdatedSelectionState.js\");\n\nvar getWindowForNode=__webpack_require__( \"./node_modules/draft-js/lib/getWindowForNode.js\");\n\nvar isEventHandled=__webpack_require__( \"./node_modules/draft-js/lib/isEventHandled.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\n\n\nfunction getSelectionForEvent(event, editorState){\n  var node=null;\n  var offset=null;\n  var eventTargetDocument=getCorrectDocumentFromNode(event.currentTarget);\n  \n\n  if(typeof eventTargetDocument.caretRangeFromPoint==='function'){\n    \n    var dropRange=eventTargetDocument.caretRangeFromPoint(event.x, event.y);\n    node=dropRange.startContainer;\n    offset=dropRange.startOffset;\n  }else if(event.rangeParent){\n    node=event.rangeParent;\n    offset=event.rangeOffset;\n  }else{\n    return null;\n  }\n\n  node=nullthrows(node);\n  offset=nullthrows(offset);\n  var offsetKey=nullthrows(findAncestorOffsetKey(node));\n  return getUpdatedSelectionState(editorState, offsetKey, offset, offsetKey, offset);\n}\n\nvar DraftEditorDragHandler={\n  \n  onDragEnd: function onDragEnd(editor){\n    editor.exitCurrentMode();\n    endDrag(editor);\n  },\n\n  \n  onDrop: function onDrop(editor, e){\n    var data=new DataTransfer(e.nativeEvent.dataTransfer);\n    var editorState=editor._latestEditorState;\n    var dropSelection=getSelectionForEvent(e.nativeEvent, editorState);\n    e.preventDefault();\n    editor._dragCount=0;\n    editor.exitCurrentMode();\n\n    if(dropSelection==null){\n      return;\n    }\n\n    var files=data.getFiles();\n\n    if(files.length > 0){\n      if(editor.props.handleDroppedFiles&&isEventHandled(editor.props.handleDroppedFiles(dropSelection, files))){\n        return;\n      }\n      \n\n\n      getTextContentFromFiles(files, function (fileText){\n        fileText&&editor.update(insertTextAtSelection(editorState, dropSelection, fileText));\n      });\n      return;\n    }\n\n    var dragType=editor._internalDrag ? 'internal':'external';\n\n    if(editor.props.handleDrop&&isEventHandled(editor.props.handleDrop(dropSelection, data, dragType))){// handled\n    }else if(editor._internalDrag){\n      editor.update(moveText(editorState, dropSelection));\n    }else{\n      editor.update(insertTextAtSelection(editorState, dropSelection, data.getText()));\n    }\n\n    endDrag(editor);\n  }\n};\n\nfunction endDrag(editor){\n  editor._internalDrag=false; // Fix issue #1383\n  // Prior to React v16.5.0 onDrop breaks onSelect event:\n  // https://github.com/facebook/react/issues/11379.\n  // Dispatching a mouseup event on DOM node will make it go back to normal.\n\n  var editorNode=editor.editorContainer;\n\n  if(editorNode){\n    var mouseUpEvent=new MouseEvent('mouseup', {\n      view: getWindowForNode(editorNode),\n      bubbles: true,\n      cancelable: true\n    });\n    editorNode.dispatchEvent(mouseUpEvent);\n  }\n}\n\nfunction moveText(editorState, targetSelection){\n  var newContentState=DraftModifier.moveText(editorState.getCurrentContent(), editorState.getSelection(), targetSelection);\n  return EditorState.push(editorState, newContentState, 'insert-fragment');\n}\n\n\n\nfunction insertTextAtSelection(editorState, selection, text){\n  var newContentState=DraftModifier.insertText(editorState.getCurrentContent(), selection, text, editorState.getCurrentInlineStyle());\n  return EditorState.push(editorState, newContentState, 'insert-fragment');\n}\n\nmodule.exports=DraftEditorDragHandler;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorDragHandler.js?");
}),
"./node_modules/draft-js/lib/DraftEditorEditHandler.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar onBeforeInput=__webpack_require__( \"./node_modules/draft-js/lib/editOnBeforeInput.js\");\n\nvar onBlur=__webpack_require__( \"./node_modules/draft-js/lib/editOnBlur.js\");\n\nvar onCompositionStart=__webpack_require__( \"./node_modules/draft-js/lib/editOnCompositionStart.js\");\n\nvar onCopy=__webpack_require__( \"./node_modules/draft-js/lib/editOnCopy.js\");\n\nvar onCut=__webpack_require__( \"./node_modules/draft-js/lib/editOnCut.js\");\n\nvar onDragOver=__webpack_require__( \"./node_modules/draft-js/lib/editOnDragOver.js\");\n\nvar onDragStart=__webpack_require__( \"./node_modules/draft-js/lib/editOnDragStart.js\");\n\nvar onFocus=__webpack_require__( \"./node_modules/draft-js/lib/editOnFocus.js\");\n\nvar onInput=__webpack_require__( \"./node_modules/draft-js/lib/editOnInput.js\");\n\nvar onKeyDown=__webpack_require__( \"./node_modules/draft-js/lib/editOnKeyDown.js\");\n\nvar onPaste=__webpack_require__( \"./node_modules/draft-js/lib/editOnPaste.js\");\n\nvar onSelect=__webpack_require__( \"./node_modules/draft-js/lib/editOnSelect.js\");\n\nvar isChrome=UserAgent.isBrowser('Chrome');\nvar isFirefox=UserAgent.isBrowser('Firefox');\nvar selectionHandler=isChrome||isFirefox ? onSelect:function (e){};\nvar DraftEditorEditHandler={\n  onBeforeInput: onBeforeInput,\n  onBlur: onBlur,\n  onCompositionStart: onCompositionStart,\n  onCopy: onCopy,\n  onCut: onCut,\n  onDragOver: onDragOver,\n  onDragStart: onDragStart,\n  onFocus: onFocus,\n  onInput: onInput,\n  onKeyDown: onKeyDown,\n  onPaste: onPaste,\n  onSelect: onSelect,\n  // In certain cases, contenteditable on chrome does not fire the onSelect\n  // event, causing problems with cursor positioning. Therefore, the selection\n  // state update handler is added to more events to ensure that the selection\n  // state is always synced with the actual cursor positions.\n  onMouseUp: selectionHandler,\n  onKeyUp: selectionHandler\n};\nmodule.exports=DraftEditorEditHandler;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorEditHandler.js?");
}),
"./node_modules/draft-js/lib/DraftEditorFlushControlled.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar ReactDOMComet=__webpack_require__( \"./node_modules/react-dom/index.js\");\n\nvar flushControlled=ReactDOMComet.unstable_flushControlled;\nmodule.exports=flushControlled;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorFlushControlled.js?");
}),
"./node_modules/draft-js/lib/DraftEditorLeaf.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar DraftEditorTextNode=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorTextNode.react.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isHTMLBRElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLBRElement.js\");\n\nvar setDraftEditorSelection=__webpack_require__( \"./node_modules/draft-js/lib/setDraftEditorSelection.js\").setDraftEditorSelection;\n\n\nvar DraftEditorLeaf=function (_React$Component){\n  _inheritsLoose(DraftEditorLeaf, _React$Component);\n\n  function DraftEditorLeaf(){\n    var _this;\n\n    for (var _len=arguments.length, args=new Array(_len), _key=0; _key < _len; _key++){\n      args[_key]=arguments[_key];\n    }\n\n    _this=_React$Component.call.apply(_React$Component, [this].concat(args))||this;\n\n    _defineProperty(_assertThisInitialized(_this), \"leaf\", void 0);\n\n    return _this;\n  }\n\n  var _proto=DraftEditorLeaf.prototype;\n\n  _proto._setSelection=function _setSelection(){\n    var selection=this.props.selection; // If selection state is irrelevant to the parent block, no-op.\n\n    if(selection==null||!selection.getHasFocus()){\n      return;\n    }\n\n    var _this$props=this.props,\n        block=_this$props.block,\n        start=_this$props.start,\n        text=_this$props.text;\n    var blockKey=block.getKey();\n    var end=start + text.length;\n\n    if(!selection.hasEdgeWithin(blockKey, start, end)){\n      return;\n    } // Determine the appropriate target node for selection. If the child\n    // is not a text node, it is a <br /> spacer. In this case, use the\n    // <span> itself as the selection target.\n\n\n    var node=this.leaf;\n    !node ?  true ? invariant(false, 'Missing node'):undefined:void 0;\n    var child=node.firstChild;\n    !child ?  true ? invariant(false, 'Missing child'):undefined:void 0;\n    var targetNode;\n\n    if(child.nodeType===Node.TEXT_NODE){\n      targetNode=child;\n    }else if(isHTMLBRElement(child)){\n      targetNode=node;\n    }else{\n      targetNode=child.firstChild;\n      !targetNode ?  true ? invariant(false, 'Missing targetNode'):undefined:void 0;\n    }\n\n    setDraftEditorSelection(selection, targetNode, blockKey, start, end);\n  };\n\n  _proto.shouldComponentUpdate=function shouldComponentUpdate(nextProps){\n    var leafNode=this.leaf;\n    !leafNode ?  true ? invariant(false, 'Missing leafNode'):undefined:void 0;\n    var shouldUpdate=leafNode.textContent!==nextProps.text||nextProps.styleSet!==this.props.styleSet||nextProps.forceSelection;\n    return shouldUpdate;\n  };\n\n  _proto.componentDidUpdate=function componentDidUpdate(){\n    this._setSelection();\n  };\n\n  _proto.componentDidMount=function componentDidMount(){\n    this._setSelection();\n  };\n\n  _proto.render=function render(){\n    var _this2=this;\n\n    var block=this.props.block;\n    var text=this.props.text; // If the leaf is at the end of its block and ends in a soft newline, append\n    // an extra line feed character. Browsers collapse trailing newline\n    // characters, which leaves the cursor in the wrong place after a\n    // shift+enter. The extra character repairs this.\n\n    if(text.endsWith('\\n')&&this.props.isLast){\n      text +='\\n';\n    }\n\n    var _this$props2=this.props,\n        customStyleMap=_this$props2.customStyleMap,\n        customStyleFn=_this$props2.customStyleFn,\n        offsetKey=_this$props2.offsetKey,\n        styleSet=_this$props2.styleSet;\n    var styleObj=styleSet.reduce(function (map, styleName){\n      var mergedStyles={};\n      var style=customStyleMap[styleName];\n\n      if(style!==undefined&&map.textDecoration!==style.textDecoration){\n        // .trim() is necessary for IE9/10/11 and Edge\n        mergedStyles.textDecoration=[map.textDecoration, style.textDecoration].join(' ').trim();\n      }\n\n      return _assign(map, style, mergedStyles);\n    }, {});\n\n    if(customStyleFn){\n      var newStyles=customStyleFn(styleSet, block);\n      styleObj=_assign(styleObj, newStyles);\n    }\n\n    return React.createElement(\"span\", {\n      \"data-offset-key\": offsetKey,\n      ref: function ref(_ref){\n        return _this2.leaf=_ref;\n      },\n      style: styleObj\n    }, React.createElement(DraftEditorTextNode, null, text));\n  };\n\n  return DraftEditorLeaf;\n}(React.Component);\n\nmodule.exports=DraftEditorLeaf;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorLeaf.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorNode.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar DraftEditorDecoratedLeaves=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorDecoratedLeaves.react.js\");\n\nvar DraftEditorLeaf=__webpack_require__( \"./node_modules/draft-js/lib/DraftEditorLeaf.react.js\");\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar cx=__webpack_require__( \"./node_modules/fbjs/lib/cx.js\");\n\nvar List=Immutable.List;\n\nvar DraftEditorNode=function (_React$Component){\n  _inheritsLoose(DraftEditorNode, _React$Component);\n\n  function DraftEditorNode(){\n    return _React$Component.apply(this, arguments)||this;\n  }\n\n  var _proto=DraftEditorNode.prototype;\n\n  _proto.render=function render(){\n    var _this$props=this.props,\n        block=_this$props.block,\n        contentState=_this$props.contentState,\n        customStyleFn=_this$props.customStyleFn,\n        customStyleMap=_this$props.customStyleMap,\n        decorator=_this$props.decorator,\n        direction=_this$props.direction,\n        forceSelection=_this$props.forceSelection,\n        hasSelection=_this$props.hasSelection,\n        selection=_this$props.selection,\n        tree=_this$props.tree;\n    var blockKey=block.getKey();\n    var text=block.getText();\n    var lastLeafSet=tree.size - 1;\n    var children=this.props.children||tree.map(function (leafSet, ii){\n      var decoratorKey=leafSet.get('decoratorKey');\n      var leavesForLeafSet=leafSet.get('leaves');\n      var lastLeaf=leavesForLeafSet.size - 1;\n      var Leaves=leavesForLeafSet.map(function (leaf, jj){\n        var offsetKey=DraftOffsetKey.encode(blockKey, ii, jj);\n        var start=leaf.get('start');\n        var end=leaf.get('end');\n        return React.createElement(DraftEditorLeaf, {\n          key: offsetKey,\n          offsetKey: offsetKey,\n          block: block,\n          start: start,\n          selection: hasSelection ? selection:null,\n          forceSelection: forceSelection,\n          text: text.slice(start, end),\n          styleSet: block.getInlineStyleAt(start),\n          customStyleMap: customStyleMap,\n          customStyleFn: customStyleFn,\n          isLast: decoratorKey===lastLeafSet&&jj===lastLeaf\n        });\n      }).toArray();\n\n      if(!decoratorKey||!decorator){\n        return Leaves;\n      }\n\n      return React.createElement(DraftEditorDecoratedLeaves, {\n        block: block,\n        children: Leaves,\n        contentState: contentState,\n        decorator: decorator,\n        decoratorKey: decoratorKey,\n        direction: direction,\n        leafSet: leafSet,\n        text: text,\n        key: ii\n      });\n    }).toArray();\n    return React.createElement(\"div\", {\n      \"data-offset-key\": DraftOffsetKey.encode(blockKey, 0, 0),\n      className: cx({\n        'public/DraftStyleDefault/block': true,\n        'public/DraftStyleDefault/ltr': direction==='LTR',\n        'public/DraftStyleDefault/rtl': direction==='RTL'\n      })\n    }, children);\n  };\n\n  return DraftEditorNode;\n}(React.Component);\n\nmodule.exports=DraftEditorNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorNode.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorPlaceholder.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar cx=__webpack_require__( \"./node_modules/fbjs/lib/cx.js\");\n\n\nvar DraftEditorPlaceholder=function (_React$Component){\n  _inheritsLoose(DraftEditorPlaceholder, _React$Component);\n\n  function DraftEditorPlaceholder(){\n    return _React$Component.apply(this, arguments)||this;\n  }\n\n  var _proto=DraftEditorPlaceholder.prototype;\n\n  _proto.shouldComponentUpdate=function shouldComponentUpdate(nextProps){\n    return this.props.text!==nextProps.text||this.props.editorState.getSelection().getHasFocus()!==nextProps.editorState.getSelection().getHasFocus();\n  };\n\n  _proto.render=function render(){\n    var hasFocus=this.props.editorState.getSelection().getHasFocus();\n    var className=cx({\n      'public/DraftEditorPlaceholder/root': true,\n      'public/DraftEditorPlaceholder/hasFocus': hasFocus\n    });\n    var contentStyle={\n      whiteSpace: 'pre-wrap'\n    };\n    return React.createElement(\"div\", {\n      className: className\n    }, React.createElement(\"div\", {\n      className: cx('public/DraftEditorPlaceholder/inner'),\n      id: this.props.accessibilityID,\n      style: contentStyle\n    }, this.props.text));\n  };\n\n  return DraftEditorPlaceholder;\n}(React.Component);\n\nmodule.exports=DraftEditorPlaceholder;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorPlaceholder.react.js?");
}),
"./node_modules/draft-js/lib/DraftEditorTextNode.react.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isElement=__webpack_require__( \"./node_modules/draft-js/lib/isElement.js\"); // In IE, spans with <br> tags render as two newlines. By rendering a span\n// with only a newline character, we can be sure to render a single line.\n\n\nvar useNewlineChar=UserAgent.isBrowser('IE <=11');\n\n\nfunction isNewline(node){\n  return useNewlineChar ? node.textContent==='\\n':node.tagName==='BR';\n}\n\n\n\nvar NEWLINE_A=function NEWLINE_A(ref){\n  return useNewlineChar ? React.createElement(\"span\", {\n    key: \"A\",\n    \"data-text\": \"true\",\n    ref: ref\n  }, '\\n'):React.createElement(\"br\", {\n    key: \"A\",\n    \"data-text\": \"true\",\n    ref: ref\n  });\n};\n\nvar NEWLINE_B=function NEWLINE_B(ref){\n  return useNewlineChar ? React.createElement(\"span\", {\n    key: \"B\",\n    \"data-text\": \"true\",\n    ref: ref\n  }, '\\n'):React.createElement(\"br\", {\n    key: \"B\",\n    \"data-text\": \"true\",\n    ref: ref\n  });\n};\n\n\nvar DraftEditorTextNode=function (_React$Component){\n  _inheritsLoose(DraftEditorTextNode, _React$Component);\n\n  function DraftEditorTextNode(props){\n    var _this;\n\n    _this=_React$Component.call(this, props)||this; // By flipping this flag, we also keep flipping keys which forces\n    // React to remount this node every time it rerenders.\n\n    _defineProperty(_assertThisInitialized(_this), \"_forceFlag\", void 0);\n\n    _defineProperty(_assertThisInitialized(_this), \"_node\", void 0);\n\n    _this._forceFlag=false;\n    return _this;\n  }\n\n  var _proto=DraftEditorTextNode.prototype;\n\n  _proto.shouldComponentUpdate=function shouldComponentUpdate(nextProps){\n    var node=this._node;\n    var shouldBeNewline=nextProps.children==='';\n    !isElement(node) ?  true ? invariant(false, 'node is not an Element'):undefined:void 0;\n    var elementNode=node;\n\n    if(shouldBeNewline){\n      return !isNewline(elementNode);\n    }\n\n    return elementNode.textContent!==nextProps.children;\n  };\n\n  _proto.componentDidMount=function componentDidMount(){\n    this._forceFlag = !this._forceFlag;\n  };\n\n  _proto.componentDidUpdate=function componentDidUpdate(){\n    this._forceFlag = !this._forceFlag;\n  };\n\n  _proto.render=function render(){\n    var _this2=this;\n\n    if(this.props.children===''){\n      return this._forceFlag ? NEWLINE_A(function (ref){\n        return _this2._node=ref;\n      }):NEWLINE_B(function (ref){\n        return _this2._node=ref;\n      });\n    }\n\n    return React.createElement(\"span\", {\n      key: this._forceFlag ? 'A':'B',\n      \"data-text\": \"true\",\n      ref: function ref(_ref){\n        return _this2._node=_ref;\n      }\n    }, this.props.children);\n  };\n\n  return DraftEditorTextNode;\n}(React.Component);\n\nmodule.exports=DraftEditorTextNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEditorTextNode.react.js?");
}),
"./node_modules/draft-js/lib/DraftEffects.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nmodule.exports={\n  initODS: function initODS(){},\n  handleExtensionCausedError: function handleExtensionCausedError(){}\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEffects.js?");
}),
"./node_modules/draft-js/lib/DraftEntity.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\n\nvar DraftEntityInstance=__webpack_require__( \"./node_modules/draft-js/lib/DraftEntityInstance.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar uuid=__webpack_require__( \"./node_modules/draft-js/lib/uuid.js\");\n\nvar Map=Immutable.Map;\nvar instances=Map();\nvar instanceKey=uuid();\n\n\nfunction logWarning(oldMethodCall, newMethodCall){\n  console.warn('WARNING: ' + oldMethodCall + ' will be deprecated soon!\\nPlease use \"' + newMethodCall + '\" instead.');\n}\n\n\nvar DraftEntity={\n  \n  getLastCreatedEntityKey: function getLastCreatedEntityKey(){\n    logWarning('DraftEntity.getLastCreatedEntityKey', 'contentState.getLastCreatedEntityKey');\n    return DraftEntity.__getLastCreatedEntityKey();\n  },\n\n  \n  create: function create(type, mutability, data){\n    logWarning('DraftEntity.create', 'contentState.createEntity');\n    return DraftEntity.__create(type, mutability, data);\n  },\n\n  \n  add: function add(instance){\n    logWarning('DraftEntity.add', 'contentState.addEntity');\n    return DraftEntity.__add(instance);\n  },\n\n  \n  get: function get(key){\n    logWarning('DraftEntity.get', 'contentState.getEntity');\n    return DraftEntity.__get(key);\n  },\n\n  \n  __getAll: function __getAll(){\n    return instances;\n  },\n\n  \n  __loadWithEntities: function __loadWithEntities(entities){\n    instances=entities;\n    instanceKey=uuid();\n  },\n\n  \n  mergeData: function mergeData(key, toMerge){\n    logWarning('DraftEntity.mergeData', 'contentState.mergeEntityData');\n    return DraftEntity.__mergeData(key, toMerge);\n  },\n\n  \n  replaceData: function replaceData(key, newData){\n    logWarning('DraftEntity.replaceData', 'contentState.replaceEntityData');\n    return DraftEntity.__replaceData(key, newData);\n  },\n  // ***********************************WARNING******************************\n  // --- the above public API will be deprecated in the next version of Draft!\n  // The methods below this line are private - don't call them directly.\n\n  \n  __getLastCreatedEntityKey: function __getLastCreatedEntityKey(){\n    return instanceKey;\n  },\n\n  \n  __create: function __create(type, mutability, data){\n    return DraftEntity.__add(new DraftEntityInstance({\n      type: type,\n      mutability: mutability,\n      data: data||{}\n    }));\n  },\n\n  \n  __add: function __add(instance){\n    instanceKey=uuid();\n    instances=instances.set(instanceKey, instance);\n    return instanceKey;\n  },\n\n  \n  __get: function __get(key){\n    var instance=instances.get(key);\n    !!!instance ?  true ? invariant(false, 'Unknown DraftEntity key: %s.', key):undefined:void 0;\n    return instance;\n  },\n\n  \n  __mergeData: function __mergeData(key, toMerge){\n    var instance=DraftEntity.__get(key);\n\n    var newData=_objectSpread({}, instance.getData(), toMerge);\n\n    var newInstance=instance.set('data', newData);\n    instances=instances.set(key, newInstance);\n    return newInstance;\n  },\n\n  \n  __replaceData: function __replaceData(key, newData){\n    var instance=DraftEntity.__get(key);\n\n    var newInstance=instance.set('data', newData);\n    instances=instances.set(key, newInstance);\n    return newInstance;\n  }\n};\nmodule.exports=DraftEntity;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEntity.js?");
}),
"./node_modules/draft-js/lib/DraftEntityInstance.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar Record=Immutable.Record;\nvar DraftEntityInstanceRecord=Record({\n  type: 'TOKEN',\n  mutability: 'IMMUTABLE',\n  data: Object\n});\n\n\nvar DraftEntityInstance=function (_DraftEntityInstanceR){\n  _inheritsLoose(DraftEntityInstance, _DraftEntityInstanceR);\n\n  function DraftEntityInstance(){\n    return _DraftEntityInstanceR.apply(this, arguments)||this;\n  }\n\n  var _proto=DraftEntityInstance.prototype;\n\n  _proto.getType=function getType(){\n    return this.get('type');\n  };\n\n  _proto.getMutability=function getMutability(){\n    return this.get('mutability');\n  };\n\n  _proto.getData=function getData(){\n    return this.get('data');\n  };\n\n  return DraftEntityInstance;\n}(DraftEntityInstanceRecord);\n\nmodule.exports=DraftEntityInstance;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEntityInstance.js?");
}),
"./node_modules/draft-js/lib/DraftEntitySegments.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nvar DraftEntitySegments={\n  getRemovalRange: function getRemovalRange(selectionStart, selectionEnd, text, entityStart, direction){\n    var segments=text.split(' ');\n    segments=segments.map(function (\n    \n    segment,\n    \n    ii){\n      if(direction==='forward'){\n        if(ii > 0){\n          return ' ' + segment;\n        }\n      }else if(ii < segments.length - 1){\n        return segment + ' ';\n      }\n\n      return segment;\n    });\n    var segmentStart=entityStart;\n    var segmentEnd;\n    var segment;\n    var removalStart=null;\n    var removalEnd=null;\n\n    for (var jj=0; jj < segments.length; jj++){\n      segment=segments[jj];\n      segmentEnd=segmentStart + segment.length; // Our selection overlaps this segment.\n\n      if(selectionStart < segmentEnd&&segmentStart < selectionEnd){\n        if(removalStart!==null){\n          removalEnd=segmentEnd;\n        }else{\n          removalStart=segmentStart;\n          removalEnd=segmentEnd;\n        }\n      }else if(removalStart!==null){\n        break;\n      }\n\n      segmentStart=segmentEnd;\n    }\n\n    var entityEnd=entityStart + text.length;\n    var atStart=removalStart===entityStart;\n    var atEnd=removalEnd===entityEnd;\n\n    if(!atStart&&atEnd||atStart&&!atEnd){\n      if(direction==='forward'){\n        if(removalEnd!==entityEnd){\n          removalEnd++;\n        }\n      }else if(removalStart!==entityStart){\n        removalStart--;\n      }\n    }\n\n    return {\n      start: removalStart,\n      end: removalEnd\n    };\n  }\n};\nmodule.exports=DraftEntitySegments;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftEntitySegments.js?");
}),
"./node_modules/draft-js/lib/DraftJsDebugLogging.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nmodule.exports={\n  logBlockedSelectionEvent: function logBlockedSelectionEvent(){\n    return null;\n  },\n  logSelectionStateFailure: function logSelectionStateFailure(){\n    return null;\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftJsDebugLogging.js?");
}),
"./node_modules/draft-js/lib/DraftModifier.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar ContentStateInlineStyle=__webpack_require__( \"./node_modules/draft-js/lib/ContentStateInlineStyle.js\");\n\nvar applyEntityToContentState=__webpack_require__( \"./node_modules/draft-js/lib/applyEntityToContentState.js\");\n\nvar getCharacterRemovalRange=__webpack_require__( \"./node_modules/draft-js/lib/getCharacterRemovalRange.js\");\n\nvar getContentStateFragment=__webpack_require__( \"./node_modules/draft-js/lib/getContentStateFragment.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar insertFragmentIntoContentState=__webpack_require__( \"./node_modules/draft-js/lib/insertFragmentIntoContentState.js\");\n\nvar insertTextIntoContentState=__webpack_require__( \"./node_modules/draft-js/lib/insertTextIntoContentState.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar modifyBlockForContentState=__webpack_require__( \"./node_modules/draft-js/lib/modifyBlockForContentState.js\");\n\nvar removeEntitiesAtEdges=__webpack_require__( \"./node_modules/draft-js/lib/removeEntitiesAtEdges.js\");\n\nvar removeRangeFromContentState=__webpack_require__( \"./node_modules/draft-js/lib/removeRangeFromContentState.js\");\n\nvar splitBlockInContentState=__webpack_require__( \"./node_modules/draft-js/lib/splitBlockInContentState.js\");\n\nvar OrderedSet=Immutable.OrderedSet;\n\n\nvar DraftModifier={\n  replaceText: function replaceText(contentState, rangeToReplace, text, inlineStyle, entityKey){\n    var withoutEntities=removeEntitiesAtEdges(contentState, rangeToReplace);\n    var withoutText=removeRangeFromContentState(withoutEntities, rangeToReplace);\n    var character=CharacterMetadata.create({\n      style: inlineStyle||OrderedSet(),\n      entity: entityKey||null\n    });\n    return insertTextIntoContentState(withoutText, withoutText.getSelectionAfter(), text, character);\n  },\n  insertText: function insertText(contentState, targetRange, text, inlineStyle, entityKey){\n    !targetRange.isCollapsed() ?  true ? invariant(false, 'Target range must be collapsed for `insertText`.'):undefined:void 0;\n    return DraftModifier.replaceText(contentState, targetRange, text, inlineStyle, entityKey);\n  },\n  moveText: function moveText(contentState, removalRange, targetRange){\n    var movedFragment=getContentStateFragment(contentState, removalRange);\n    var afterRemoval=DraftModifier.removeRange(contentState, removalRange, 'backward');\n    return DraftModifier.replaceWithFragment(afterRemoval, targetRange, movedFragment);\n  },\n  replaceWithFragment: function replaceWithFragment(contentState, targetRange, fragment){\n    var mergeBlockData=arguments.length > 3&&arguments[3]!==undefined ? arguments[3]:'REPLACE_WITH_NEW_DATA';\n    var withoutEntities=removeEntitiesAtEdges(contentState, targetRange);\n    var withoutText=removeRangeFromContentState(withoutEntities, targetRange);\n    return insertFragmentIntoContentState(withoutText, withoutText.getSelectionAfter(), fragment, mergeBlockData);\n  },\n  removeRange: function removeRange(contentState, rangeToRemove, removalDirection){\n    var startKey, endKey, startBlock, endBlock;\n\n    if(rangeToRemove.getIsBackward()){\n      rangeToRemove=rangeToRemove.merge({\n        anchorKey: rangeToRemove.getFocusKey(),\n        anchorOffset: rangeToRemove.getFocusOffset(),\n        focusKey: rangeToRemove.getAnchorKey(),\n        focusOffset: rangeToRemove.getAnchorOffset(),\n        isBackward: false\n      });\n    }\n\n    startKey=rangeToRemove.getAnchorKey();\n    endKey=rangeToRemove.getFocusKey();\n    startBlock=contentState.getBlockForKey(startKey);\n    endBlock=contentState.getBlockForKey(endKey);\n    var startOffset=rangeToRemove.getStartOffset();\n    var endOffset=rangeToRemove.getEndOffset();\n    var startEntityKey=startBlock.getEntityAt(startOffset);\n    var endEntityKey=endBlock.getEntityAt(endOffset - 1); // Check whether the selection state overlaps with a single entity.\n    // If so, try to remove the appropriate substring of the entity text.\n\n    if(startKey===endKey){\n      if(startEntityKey&&startEntityKey===endEntityKey){\n        var adjustedRemovalRange=getCharacterRemovalRange(contentState.getEntityMap(), startBlock, endBlock, rangeToRemove, removalDirection);\n        return removeRangeFromContentState(contentState, adjustedRemovalRange);\n      }\n    }\n\n    var withoutEntities=removeEntitiesAtEdges(contentState, rangeToRemove);\n    return removeRangeFromContentState(withoutEntities, rangeToRemove);\n  },\n  splitBlock: function splitBlock(contentState, selectionState){\n    var withoutEntities=removeEntitiesAtEdges(contentState, selectionState);\n    var withoutText=removeRangeFromContentState(withoutEntities, selectionState);\n    return splitBlockInContentState(withoutText, withoutText.getSelectionAfter());\n  },\n  applyInlineStyle: function applyInlineStyle(contentState, selectionState, inlineStyle){\n    return ContentStateInlineStyle.add(contentState, selectionState, inlineStyle);\n  },\n  removeInlineStyle: function removeInlineStyle(contentState, selectionState, inlineStyle){\n    return ContentStateInlineStyle.remove(contentState, selectionState, inlineStyle);\n  },\n  setBlockType: function setBlockType(contentState, selectionState, blockType){\n    return modifyBlockForContentState(contentState, selectionState, function (block){\n      return block.merge({\n        type: blockType,\n        depth: 0\n      });\n    });\n  },\n  setBlockData: function setBlockData(contentState, selectionState, blockData){\n    return modifyBlockForContentState(contentState, selectionState, function (block){\n      return block.merge({\n        data: blockData\n      });\n    });\n  },\n  mergeBlockData: function mergeBlockData(contentState, selectionState, blockData){\n    return modifyBlockForContentState(contentState, selectionState, function (block){\n      return block.merge({\n        data: block.getData().merge(blockData)\n      });\n    });\n  },\n  applyEntity: function applyEntity(contentState, selectionState, entityKey){\n    var withoutEntities=removeEntitiesAtEdges(contentState, selectionState);\n    return applyEntityToContentState(withoutEntities, selectionState, entityKey);\n  }\n};\nmodule.exports=DraftModifier;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftModifier.js?");
}),
"./node_modules/draft-js/lib/DraftOffsetKey.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar KEY_DELIMITER='-';\nvar DraftOffsetKey={\n  encode: function encode(blockKey, decoratorKey, leafKey){\n    return blockKey + KEY_DELIMITER + decoratorKey + KEY_DELIMITER + leafKey;\n  },\n  decode: function decode(offsetKey){\n    // Extracts the last two parts of offsetKey and captures the rest in blockKeyParts\n    var _offsetKey$split$reve=offsetKey.split(KEY_DELIMITER).reverse(),\n        leafKey=_offsetKey$split$reve[0],\n        decoratorKey=_offsetKey$split$reve[1],\n        blockKeyParts=_offsetKey$split$reve.slice(2);\n\n    return {\n      // Recomposes the parts of blockKey after reversing them\n      blockKey: blockKeyParts.reverse().join(KEY_DELIMITER),\n      decoratorKey: parseInt(decoratorKey, 10),\n      leafKey: parseInt(leafKey, 10)\n    };\n  }\n};\nmodule.exports=DraftOffsetKey;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftOffsetKey.js?");
}),
"./node_modules/draft-js/lib/DraftPasteProcessor.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar ContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlock.js\");\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar convertFromHTMLToContentBlocks=__webpack_require__( \"./node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar getSafeBodyFromHTML=__webpack_require__( \"./node_modules/draft-js/lib/getSafeBodyFromHTML.js\");\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar sanitizeDraftText=__webpack_require__( \"./node_modules/draft-js/lib/sanitizeDraftText.js\");\n\nvar List=Immutable.List,\n    Repeat=Immutable.Repeat;\nvar experimentalTreeDataSupport=gkx('draft_tree_data_support');\nvar ContentBlockRecord=experimentalTreeDataSupport ? ContentBlockNode:ContentBlock;\nvar DraftPasteProcessor={\n  processHTML: function processHTML(html, blockRenderMap){\n    return convertFromHTMLToContentBlocks(html, getSafeBodyFromHTML, blockRenderMap);\n  },\n  processText: function processText(textBlocks, character, type){\n    return textBlocks.reduce(function (acc, textLine, index){\n      textLine=sanitizeDraftText(textLine);\n      var key=generateRandomKey();\n      var blockNodeConfig={\n        key: key,\n        type: type,\n        text: textLine,\n        characterList: List(Repeat(character, textLine.length))\n      }; // next block updates previous block\n\n      if(experimentalTreeDataSupport&&index!==0){\n        var prevSiblingIndex=index - 1; // update previous block\n\n        var previousBlock=acc[prevSiblingIndex]=acc[prevSiblingIndex].merge({\n          nextSibling: key\n        });\n        blockNodeConfig=_objectSpread({}, blockNodeConfig, {\n          prevSibling: previousBlock.getKey()\n        });\n      }\n\n      acc.push(new ContentBlockRecord(blockNodeConfig));\n      return acc;\n    }, []);\n  }\n};\nmodule.exports=DraftPasteProcessor;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftPasteProcessor.js?");
}),
"./node_modules/draft-js/lib/DraftRemovableWord.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar TokenizeUtil=__webpack_require__( \"./node_modules/fbjs/lib/TokenizeUtil.js\");\n\nvar punctuation=TokenizeUtil.getPunctuation(); // The apostrophe and curly single quotes behave in a curious way: when\n// surrounded on both sides by word characters, they behave as word chars; when\n// either neighbor is punctuation or an end of the string, they behave as\n// punctuation.\n\nvar CHAMELEON_CHARS=\"['\\u2018\\u2019]\"; // Remove the underscore, which should count as part of the removable word. The\n// \"chameleon chars\" also count as punctuation in this regex.\n\nvar WHITESPACE_AND_PUNCTUATION='\\\\s|(?![_])' + punctuation;\nvar DELETE_STRING='^' + '(?:' + WHITESPACE_AND_PUNCTUATION + ')*' + '(?:' + CHAMELEON_CHARS + '|(?!' + WHITESPACE_AND_PUNCTUATION + ').)*' + '(?:(?!' + WHITESPACE_AND_PUNCTUATION + ').)';\nvar DELETE_REGEX=new RegExp(DELETE_STRING);\nvar BACKSPACE_STRING='(?:(?!' + WHITESPACE_AND_PUNCTUATION + ').)' + '(?:' + CHAMELEON_CHARS + '|(?!' + WHITESPACE_AND_PUNCTUATION + ').)*' + '(?:' + WHITESPACE_AND_PUNCTUATION + ')*' + '$';\nvar BACKSPACE_REGEX=new RegExp(BACKSPACE_STRING);\n\nfunction getRemovableWord(text, isBackward){\n  var matches=isBackward ? BACKSPACE_REGEX.exec(text):DELETE_REGEX.exec(text);\n  return matches ? matches[0]:text;\n}\n\nvar DraftRemovableWord={\n  getBackward: function getBackward(text){\n    return getRemovableWord(text, true);\n  },\n  getForward: function getForward(text){\n    return getRemovableWord(text, false);\n  }\n};\nmodule.exports=DraftRemovableWord;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftRemovableWord.js?");
}),
"./node_modules/draft-js/lib/DraftStringKey.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftStringKey={\n  stringify: function stringify(key){\n    return '_' + String(key);\n  },\n  unstringify: function unstringify(key){\n    return key.slice(1);\n  }\n};\nmodule.exports=DraftStringKey;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftStringKey.js?");
}),
"./node_modules/draft-js/lib/DraftTreeAdapter.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar traverseInDepthOrder=function traverseInDepthOrder(blocks, fn){\n  var stack=[].concat(blocks).reverse();\n\n  while (stack.length){\n    var _block=stack.pop();\n\n    fn(_block);\n    var children=_block.children;\n    !Array.isArray(children) ?  true ? invariant(false, 'Invalid tree raw block'):undefined:void 0;\n    stack=stack.concat([].concat(children.reverse()));\n  }\n};\n\nvar isListBlock=function isListBlock(block){\n  if(!(block&&block.type)){\n    return false;\n  }\n\n  var type=block.type;\n  return type==='unordered-list-item'||type==='ordered-list-item';\n};\n\nvar addDepthToChildren=function addDepthToChildren(block){\n  if(Array.isArray(block.children)){\n    block.children=block.children.map(function (child){\n      return child.type===block.type ? _objectSpread({}, child, {\n        depth: (block.depth||0) + 1\n      }):child;\n    });\n  }\n};\n\n\n\nvar DraftTreeAdapter={\n  \n  fromRawTreeStateToRawState: function fromRawTreeStateToRawState(draftTreeState){\n    var blocks=draftTreeState.blocks;\n    var transformedBlocks=[];\n    !Array.isArray(blocks) ?  true ? invariant(false, 'Invalid raw state'):undefined:void 0;\n\n    if(!Array.isArray(blocks)||!blocks.length){\n      return draftTreeState;\n    }\n\n    traverseInDepthOrder(blocks, function (block){\n      var newBlock=_objectSpread({}, block);\n\n      if(isListBlock(block)){\n        newBlock.depth=newBlock.depth||0;\n        addDepthToChildren(block); // if it's a non-leaf node, we don't do anything else\n\n        if(block.children!=null&&block.children.length > 0){\n          return;\n        }\n      }\n\n      delete newBlock.children;\n      transformedBlocks.push(newBlock);\n    });\n    draftTreeState.blocks=transformedBlocks;\n    return _objectSpread({}, draftTreeState, {\n      blocks: transformedBlocks\n    });\n  },\n\n  \n  fromRawStateToRawTreeState: function fromRawStateToRawTreeState(draftState){\n    var transformedBlocks=[];\n    var parentStack=[];\n    draftState.blocks.forEach(function (block){\n      var isList=isListBlock(block);\n      var depth=block.depth||0;\n\n      var treeBlock=_objectSpread({}, block, {\n        children: []\n      });\n\n      if(!isList){\n        transformedBlocks.push(treeBlock);\n        return;\n      }\n\n      var lastParent=parentStack[0]; // block is non-nested & there are no nested blocks, directly push block\n\n      if(lastParent==null&&depth===0){\n        transformedBlocks.push(treeBlock); // block is first nested block or previous nested block is at a lower level\n      }else if(lastParent==null||lastParent.depth < depth - 1){\n        // create new parent block\n        var newParent={\n          key: generateRandomKey(),\n          text: '',\n          depth: depth - 1,\n          type: block.type,\n          children: [],\n          entityRanges: [],\n          inlineStyleRanges: []\n        };\n        parentStack.unshift(newParent);\n\n        if(depth===1){\n          // add as a root-level block\n          transformedBlocks.push(newParent);\n        }else if(lastParent!=null){\n          // depth > 1=> also add as previous parent's child\n          lastParent.children.push(newParent);\n        }\n\n        newParent.children.push(treeBlock);\n      }else if(lastParent.depth===depth - 1){\n        // add as child of last parent\n        lastParent.children.push(treeBlock);\n      }else{\n        // pop out parents at levels above this one from the parent stack\n        while (lastParent!=null&&lastParent.depth >=depth){\n          parentStack.shift();\n          lastParent=parentStack[0];\n        }\n\n        if(depth > 0){\n          lastParent.children.push(treeBlock);\n        }else{\n          transformedBlocks.push(treeBlock);\n        }\n      }\n    });\n    return _objectSpread({}, draftState, {\n      blocks: transformedBlocks\n    });\n  }\n};\nmodule.exports=DraftTreeAdapter;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftTreeAdapter.js?");
}),
"./node_modules/draft-js/lib/DraftTreeInvariants.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar warning=__webpack_require__( \"./node_modules/fbjs/lib/warning.js\");\n\nvar DraftTreeInvariants={\n  \n  isValidBlock: function isValidBlock(block, blockMap){\n    var key=block.getKey(); // is its parent's child\n\n    var parentKey=block.getParentKey();\n\n    if(parentKey!=null){\n      var parent=blockMap.get(parentKey);\n\n      if(!parent.getChildKeys().includes(key)){\n         true ? warning(true, 'Tree is missing parent -> child pointer on %s', key):undefined;\n        return false;\n      }\n    } // is its children's parent\n\n\n    var children=block.getChildKeys().map(function (k){\n      return blockMap.get(k);\n    });\n\n    if(!children.every(function (c){\n      return c.getParentKey()===key;\n    })){\n       true ? warning(true, 'Tree is missing child -> parent pointer on %s', key):undefined;\n      return false;\n    } // is its previous sibling's next sibling\n\n\n    var prevSiblingKey=block.getPrevSiblingKey();\n\n    if(prevSiblingKey!=null){\n      var prevSibling=blockMap.get(prevSiblingKey);\n\n      if(prevSibling.getNextSiblingKey()!==key){\n         true ? warning(true, \"Tree is missing nextSibling pointer on %s's prevSibling\", key):undefined;\n        return false;\n      }\n    } // is its next sibling's previous sibling\n\n\n    var nextSiblingKey=block.getNextSiblingKey();\n\n    if(nextSiblingKey!=null){\n      var nextSibling=blockMap.get(nextSiblingKey);\n\n      if(nextSibling.getPrevSiblingKey()!==key){\n         true ? warning(true, \"Tree is missing prevSibling pointer on %s's nextSibling\", key):undefined;\n        return false;\n      }\n    } // no 2-node cycles\n\n\n    if(nextSiblingKey!==null&&prevSiblingKey!==null){\n      if(prevSiblingKey===nextSiblingKey){\n         true ? warning(true, 'Tree has a two-node cycle at %s', key):undefined;\n        return false;\n      }\n    } // if it's a leaf node, it has text but no children\n\n\n    if(block.text!=''){\n      if(block.getChildKeys().size > 0){\n         true ? warning(true, 'Leaf node %s has children', key):undefined;\n        return false;\n      }\n    }\n\n    return true;\n  },\n\n  \n  isConnectedTree: function isConnectedTree(blockMap){\n    // exactly one node has no previous sibling + no parent\n    var eligibleFirstNodes=blockMap.toArray().filter(function (block){\n      return block.getParentKey()==null&&block.getPrevSiblingKey()==null;\n    });\n\n    if(eligibleFirstNodes.length!==1){\n       true ? warning(true, 'Tree is not connected. More or less than one first node'):undefined;\n      return false;\n    }\n\n    var firstNode=eligibleFirstNodes.shift();\n    var nodesSeen=0;\n    var currentKey=firstNode.getKey();\n    var visitedStack=[];\n\n    while (currentKey!=null){\n      var currentNode=blockMap.get(currentKey);\n      var childKeys=currentNode.getChildKeys();\n      var nextSiblingKey=currentNode.getNextSiblingKey(); // if the node has children, add parent's next sibling to stack and go to children\n\n      if(childKeys.size > 0){\n        if(nextSiblingKey!=null){\n          visitedStack.unshift(nextSiblingKey);\n        }\n\n        var children=childKeys.map(function (k){\n          return blockMap.get(k);\n        });\n\n        var _firstNode=children.find(function (block){\n          return block.getPrevSiblingKey()==null;\n        });\n\n        if(_firstNode==null){\n           true ? warning(true, '%s has no first child', currentKey):undefined;\n          return false;\n        }\n\n        currentKey=_firstNode.getKey(); // TODO(T32490138): Deal with multi-node cycles here\n      }else{\n        if(currentNode.getNextSiblingKey()!=null){\n          currentKey=currentNode.getNextSiblingKey();\n        }else{\n          currentKey=visitedStack.shift();\n        }\n      }\n\n      nodesSeen++;\n    }\n\n    if(nodesSeen!==blockMap.size){\n       true ? warning(true, 'Tree is not connected. %s nodes were seen instead of %s', nodesSeen, blockMap.size):undefined;\n      return false;\n    }\n\n    return true;\n  },\n\n  \n  isValidTree: function isValidTree(blockMap){\n    var _this=this;\n\n    var blocks=blockMap.toArray();\n\n    if(!blocks.every(function (block){\n      return _this.isValidBlock(block, blockMap);\n    })){\n      return false;\n    }\n\n    return this.isConnectedTree(blockMap);\n  }\n};\nmodule.exports=DraftTreeInvariants;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/DraftTreeInvariants.js?");
}),
"./node_modules/draft-js/lib/EditorBidiService.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UnicodeBidiService=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidiService.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar OrderedMap=Immutable.OrderedMap;\nvar bidiService;\nvar EditorBidiService={\n  getDirectionMap: function getDirectionMap(content, prevBidiMap){\n    if(!bidiService){\n      bidiService=new UnicodeBidiService();\n    }else{\n      bidiService.reset();\n    }\n\n    var blockMap=content.getBlockMap();\n    var nextBidi=blockMap.valueSeq().map(function (block){\n      return nullthrows(bidiService).getDirection(block.getText());\n    });\n    var bidiMap=OrderedMap(blockMap.keySeq().zip(nextBidi));\n\n    if(prevBidiMap!=null&&Immutable.is(prevBidiMap, bidiMap)){\n      return prevBidiMap;\n    }\n\n    return bidiMap;\n  }\n};\nmodule.exports=EditorBidiService;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/EditorBidiService.js?");
}),
"./node_modules/draft-js/lib/EditorState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar BlockTree=__webpack_require__( \"./node_modules/draft-js/lib/BlockTree.js\");\n\nvar ContentState=__webpack_require__( \"./node_modules/draft-js/lib/ContentState.js\");\n\nvar EditorBidiService=__webpack_require__( \"./node_modules/draft-js/lib/EditorBidiService.js\");\n\nvar SelectionState=__webpack_require__( \"./node_modules/draft-js/lib/SelectionState.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar OrderedSet=Immutable.OrderedSet,\n    Record=Immutable.Record,\n    Stack=Immutable.Stack,\n    OrderedMap=Immutable.OrderedMap,\n    List=Immutable.List; // When configuring an editor, the user can chose to provide or not provide\n// basically all keys. `currentContent` varies, so this type doesn't include it.\n// (See the types defined below.)\n\nvar defaultRecord={\n  allowUndo: true,\n  currentContent: null,\n  decorator: null,\n  directionMap: null,\n  forceSelection: false,\n  inCompositionMode: false,\n  inlineStyleOverride: null,\n  lastChangeType: null,\n  nativelyRenderedContent: null,\n  redoStack: Stack(),\n  selection: null,\n  treeMap: null,\n  undoStack: Stack()\n};\nvar EditorStateRecord=Record(defaultRecord);\n\nvar EditorState=function (){\n  EditorState.createEmpty=function createEmpty(decorator){\n    return this.createWithText('', decorator);\n  };\n\n  EditorState.createWithText=function createWithText(text, decorator){\n    return EditorState.createWithContent(ContentState.createFromText(text), decorator);\n  };\n\n  EditorState.createWithContent=function createWithContent(contentState, decorator){\n    if(contentState.getBlockMap().count()===0){\n      return EditorState.createEmpty(decorator);\n    }\n\n    var firstKey=contentState.getBlockMap().first().getKey();\n    return EditorState.create({\n      currentContent: contentState,\n      undoStack: Stack(),\n      redoStack: Stack(),\n      decorator: decorator||null,\n      selection: SelectionState.createEmpty(firstKey)\n    });\n  };\n\n  EditorState.create=function create(config){\n    var currentContent=config.currentContent,\n        decorator=config.decorator;\n\n    var recordConfig=_objectSpread({}, config, {\n      treeMap: generateNewTreeMap(currentContent, decorator),\n      directionMap: EditorBidiService.getDirectionMap(currentContent)\n    });\n\n    return new EditorState(new EditorStateRecord(recordConfig));\n  };\n\n  EditorState.fromJS=function fromJS(config){\n    return new EditorState(new EditorStateRecord(_objectSpread({}, config, {\n      directionMap: config.directionMap!=null ? OrderedMap(config.directionMap):config.directionMap,\n      inlineStyleOverride: config.inlineStyleOverride!=null ? OrderedSet(config.inlineStyleOverride):config.inlineStyleOverride,\n      nativelyRenderedContent: config.nativelyRenderedContent!=null ? ContentState.fromJS(config.nativelyRenderedContent):config.nativelyRenderedContent,\n      redoStack: config.redoStack!=null ? Stack(config.redoStack.map(function (v){\n        return ContentState.fromJS(v);\n      })):config.redoStack,\n      selection: config.selection!=null ? new SelectionState(config.selection):config.selection,\n      treeMap: config.treeMap!=null ? OrderedMap(config.treeMap).map(function (v){\n        return List(v).map(function (v){\n          return BlockTree.fromJS(v);\n        });\n      }):config.treeMap,\n      undoStack: config.undoStack!=null ? Stack(config.undoStack.map(function (v){\n        return ContentState.fromJS(v);\n      })):config.undoStack,\n      currentContent: ContentState.fromJS(config.currentContent)\n    })));\n  };\n\n  EditorState.set=function set(editorState, put){\n    var map=editorState.getImmutable().withMutations(function (state){\n      var existingDecorator=state.get('decorator');\n      var decorator=existingDecorator;\n\n      if(put.decorator===null){\n        decorator=null;\n      }else if(put.decorator){\n        decorator=put.decorator;\n      }\n\n      var newContent=put.currentContent||editorState.getCurrentContent();\n\n      if(decorator!==existingDecorator){\n        var treeMap=state.get('treeMap');\n        var newTreeMap;\n\n        if(decorator&&existingDecorator){\n          newTreeMap=regenerateTreeForNewDecorator(newContent, newContent.getBlockMap(), treeMap, decorator, existingDecorator);\n        }else{\n          newTreeMap=generateNewTreeMap(newContent, decorator);\n        }\n\n        state.merge({\n          decorator: decorator,\n          treeMap: newTreeMap,\n          nativelyRenderedContent: null\n        });\n        return;\n      }\n\n      var existingContent=editorState.getCurrentContent();\n\n      if(newContent!==existingContent){\n        state.set('treeMap', regenerateTreeForNewBlocks(editorState, newContent.getBlockMap(), newContent.getEntityMap(), decorator));\n      }\n\n      state.merge(put);\n    });\n    return new EditorState(map);\n  };\n\n  var _proto=EditorState.prototype;\n\n  _proto.toJS=function toJS(){\n    return this.getImmutable().toJS();\n  };\n\n  _proto.getAllowUndo=function getAllowUndo(){\n    return this.getImmutable().get('allowUndo');\n  };\n\n  _proto.getCurrentContent=function getCurrentContent(){\n    return this.getImmutable().get('currentContent');\n  };\n\n  _proto.getUndoStack=function getUndoStack(){\n    return this.getImmutable().get('undoStack');\n  };\n\n  _proto.getRedoStack=function getRedoStack(){\n    return this.getImmutable().get('redoStack');\n  };\n\n  _proto.getSelection=function getSelection(){\n    return this.getImmutable().get('selection');\n  };\n\n  _proto.getDecorator=function getDecorator(){\n    return this.getImmutable().get('decorator');\n  };\n\n  _proto.isInCompositionMode=function isInCompositionMode(){\n    return this.getImmutable().get('inCompositionMode');\n  };\n\n  _proto.mustForceSelection=function mustForceSelection(){\n    return this.getImmutable().get('forceSelection');\n  };\n\n  _proto.getNativelyRenderedContent=function getNativelyRenderedContent(){\n    return this.getImmutable().get('nativelyRenderedContent');\n  };\n\n  _proto.getLastChangeType=function getLastChangeType(){\n    return this.getImmutable().get('lastChangeType');\n  }\n  \n  ;\n\n  _proto.getInlineStyleOverride=function getInlineStyleOverride(){\n    return this.getImmutable().get('inlineStyleOverride');\n  };\n\n  EditorState.setInlineStyleOverride=function setInlineStyleOverride(editorState, inlineStyleOverride){\n    return EditorState.set(editorState, {\n      inlineStyleOverride: inlineStyleOverride\n    });\n  }\n  \n  ;\n\n  _proto.getCurrentInlineStyle=function getCurrentInlineStyle(){\n    var override=this.getInlineStyleOverride();\n\n    if(override!=null){\n      return override;\n    }\n\n    var content=this.getCurrentContent();\n    var selection=this.getSelection();\n\n    if(selection.isCollapsed()){\n      return getInlineStyleForCollapsedSelection(content, selection);\n    }\n\n    return getInlineStyleForNonCollapsedSelection(content, selection);\n  };\n\n  _proto.getBlockTree=function getBlockTree(blockKey){\n    return this.getImmutable().getIn(['treeMap', blockKey]);\n  };\n\n  _proto.isSelectionAtStartOfContent=function isSelectionAtStartOfContent(){\n    var firstKey=this.getCurrentContent().getBlockMap().first().getKey();\n    return this.getSelection().hasEdgeWithin(firstKey, 0, 0);\n  };\n\n  _proto.isSelectionAtEndOfContent=function isSelectionAtEndOfContent(){\n    var content=this.getCurrentContent();\n    var blockMap=content.getBlockMap();\n    var last=blockMap.last();\n    var end=last.getLength();\n    return this.getSelection().hasEdgeWithin(last.getKey(), end, end);\n  };\n\n  _proto.getDirectionMap=function getDirectionMap(){\n    return this.getImmutable().get('directionMap');\n  }\n  \n  ;\n\n  EditorState.acceptSelection=function acceptSelection(editorState, selection){\n    return updateSelection(editorState, selection, false);\n  }\n  \n  ;\n\n  EditorState.forceSelection=function forceSelection(editorState, selection){\n    if(!selection.getHasFocus()){\n      selection=selection.set('hasFocus', true);\n    }\n\n    return updateSelection(editorState, selection, true);\n  }\n  \n  ;\n\n  EditorState.moveSelectionToEnd=function moveSelectionToEnd(editorState){\n    var content=editorState.getCurrentContent();\n    var lastBlock=content.getLastBlock();\n    var lastKey=lastBlock.getKey();\n    var length=lastBlock.getLength();\n    return EditorState.acceptSelection(editorState, new SelectionState({\n      anchorKey: lastKey,\n      anchorOffset: length,\n      focusKey: lastKey,\n      focusOffset: length,\n      isBackward: false\n    }));\n  }\n  \n  ;\n\n  EditorState.moveFocusToEnd=function moveFocusToEnd(editorState){\n    var afterSelectionMove=EditorState.moveSelectionToEnd(editorState);\n    return EditorState.forceSelection(afterSelectionMove, afterSelectionMove.getSelection());\n  }\n  \n  ;\n\n  EditorState.push=function push(editorState, contentState, changeType){\n    var forceSelection=arguments.length > 3&&arguments[3]!==undefined ? arguments[3]:true;\n\n    if(editorState.getCurrentContent()===contentState){\n      return editorState;\n    }\n\n    var directionMap=EditorBidiService.getDirectionMap(contentState, editorState.getDirectionMap());\n\n    if(!editorState.getAllowUndo()){\n      return EditorState.set(editorState, {\n        currentContent: contentState,\n        directionMap: directionMap,\n        lastChangeType: changeType,\n        selection: contentState.getSelectionAfter(),\n        forceSelection: forceSelection,\n        inlineStyleOverride: null\n      });\n    }\n\n    var selection=editorState.getSelection();\n    var currentContent=editorState.getCurrentContent();\n    var undoStack=editorState.getUndoStack();\n    var newContent=contentState;\n\n    if(selection!==currentContent.getSelectionAfter()||mustBecomeBoundary(editorState, changeType)){\n      undoStack=undoStack.push(currentContent);\n      newContent=newContent.set('selectionBefore', selection);\n    }else if(changeType==='insert-characters'||changeType==='backspace-character'||changeType==='delete-character'){\n      // Preserve the previous selection.\n      newContent=newContent.set('selectionBefore', currentContent.getSelectionBefore());\n    }\n\n    var inlineStyleOverride=editorState.getInlineStyleOverride(); // Don't discard inline style overrides for the following change types:\n\n    var overrideChangeTypes=['adjust-depth', 'change-block-type', 'split-block'];\n\n    if(overrideChangeTypes.indexOf(changeType)===-1){\n      inlineStyleOverride=null;\n    }\n\n    var editorStateChanges={\n      currentContent: newContent,\n      directionMap: directionMap,\n      undoStack: undoStack,\n      redoStack: Stack(),\n      lastChangeType: changeType,\n      selection: contentState.getSelectionAfter(),\n      forceSelection: forceSelection,\n      inlineStyleOverride: inlineStyleOverride\n    };\n    return EditorState.set(editorState, editorStateChanges);\n  }\n  \n  ;\n\n  EditorState.undo=function undo(editorState){\n    if(!editorState.getAllowUndo()){\n      return editorState;\n    }\n\n    var undoStack=editorState.getUndoStack();\n    var newCurrentContent=undoStack.peek();\n\n    if(!newCurrentContent){\n      return editorState;\n    }\n\n    var currentContent=editorState.getCurrentContent();\n    var directionMap=EditorBidiService.getDirectionMap(newCurrentContent, editorState.getDirectionMap());\n    return EditorState.set(editorState, {\n      currentContent: newCurrentContent,\n      directionMap: directionMap,\n      undoStack: undoStack.shift(),\n      redoStack: editorState.getRedoStack().push(currentContent),\n      forceSelection: true,\n      inlineStyleOverride: null,\n      lastChangeType: 'undo',\n      nativelyRenderedContent: null,\n      selection: currentContent.getSelectionBefore()\n    });\n  }\n  \n  ;\n\n  EditorState.redo=function redo(editorState){\n    if(!editorState.getAllowUndo()){\n      return editorState;\n    }\n\n    var redoStack=editorState.getRedoStack();\n    var newCurrentContent=redoStack.peek();\n\n    if(!newCurrentContent){\n      return editorState;\n    }\n\n    var currentContent=editorState.getCurrentContent();\n    var directionMap=EditorBidiService.getDirectionMap(newCurrentContent, editorState.getDirectionMap());\n    return EditorState.set(editorState, {\n      currentContent: newCurrentContent,\n      directionMap: directionMap,\n      undoStack: editorState.getUndoStack().push(currentContent),\n      redoStack: redoStack.shift(),\n      forceSelection: true,\n      inlineStyleOverride: null,\n      lastChangeType: 'redo',\n      nativelyRenderedContent: null,\n      selection: newCurrentContent.getSelectionAfter()\n    });\n  }\n  \n  ;\n\n  function EditorState(immutable){\n    _defineProperty(this, \"_immutable\", void 0);\n\n    this._immutable=immutable;\n  }\n  \n\n\n  _proto.getImmutable=function getImmutable(){\n    return this._immutable;\n  };\n\n  return EditorState;\n}();\n\n\n\nfunction updateSelection(editorState, selection, forceSelection){\n  return EditorState.set(editorState, {\n    selection: selection,\n    forceSelection: forceSelection,\n    nativelyRenderedContent: null,\n    inlineStyleOverride: null\n  });\n}\n\n\n\nfunction generateNewTreeMap(contentState, decorator){\n  return contentState.getBlockMap().map(function (block){\n    return BlockTree.generate(contentState, block, decorator);\n  }).toOrderedMap();\n}\n\n\n\nfunction regenerateTreeForNewBlocks(editorState, newBlockMap, newEntityMap, decorator){\n  var contentState=editorState.getCurrentContent().set('entityMap', newEntityMap);\n  var prevBlockMap=contentState.getBlockMap();\n  var prevTreeMap=editorState.getImmutable().get('treeMap');\n  return prevTreeMap.merge(newBlockMap.toSeq().filter(function (block, key){\n    return block!==prevBlockMap.get(key);\n  }).map(function (block){\n    return BlockTree.generate(contentState, block, decorator);\n  }));\n}\n\n\n\nfunction regenerateTreeForNewDecorator(content, blockMap, previousTreeMap, decorator, existingDecorator){\n  return previousTreeMap.merge(blockMap.toSeq().filter(function (block){\n    return decorator.getDecorations(block, content)!==existingDecorator.getDecorations(block, content);\n  }).map(function (block){\n    return BlockTree.generate(content, block, decorator);\n  }));\n}\n\n\n\nfunction mustBecomeBoundary(editorState, changeType){\n  var lastChangeType=editorState.getLastChangeType();\n  return changeType!==lastChangeType||changeType!=='insert-characters'&&changeType!=='backspace-character'&&changeType!=='delete-character';\n}\n\nfunction getInlineStyleForCollapsedSelection(content, selection){\n  var startKey=selection.getStartKey();\n  var startOffset=selection.getStartOffset();\n  var startBlock=content.getBlockForKey(startKey); // If the cursor is not at the start of the block, look backward to\n  // preserve the style of the preceding character.\n\n  if(startOffset > 0){\n    return startBlock.getInlineStyleAt(startOffset - 1);\n  } // The caret is at position zero in this block. If the block has any\n  // text at all, use the style of the first character.\n\n\n  if(startBlock.getLength()){\n    return startBlock.getInlineStyleAt(0);\n  } // Otherwise, look upward in the document to find the closest character.\n\n\n  return lookUpwardForInlineStyle(content, startKey);\n}\n\nfunction getInlineStyleForNonCollapsedSelection(content, selection){\n  var startKey=selection.getStartKey();\n  var startOffset=selection.getStartOffset();\n  var startBlock=content.getBlockForKey(startKey); // If there is a character just inside the selection, use its style.\n\n  if(startOffset < startBlock.getLength()){\n    return startBlock.getInlineStyleAt(startOffset);\n  } // Check if the selection at the end of a non-empty block. Use the last\n  // style in the block.\n\n\n  if(startOffset > 0){\n    return startBlock.getInlineStyleAt(startOffset - 1);\n  } // Otherwise, look upward in the document to find the closest character.\n\n\n  return lookUpwardForInlineStyle(content, startKey);\n}\n\nfunction lookUpwardForInlineStyle(content, fromKey){\n  var lastNonEmpty=content.getBlockMap().reverse().skipUntil(function (_, k){\n    return k===fromKey;\n  }).skip(1).skipUntil(function (block, _){\n    return block.getLength();\n  }).first();\n\n  if(lastNonEmpty){\n    return lastNonEmpty.getInlineStyleAt(lastNonEmpty.getLength() - 1);\n  }\n\n  return OrderedSet();\n}\n\nmodule.exports=EditorState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/EditorState.js?");
}),
"./node_modules/draft-js/lib/KeyBindingUtil.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar isSoftNewlineEvent=__webpack_require__( \"./node_modules/draft-js/lib/isSoftNewlineEvent.js\");\n\nvar isOSX=UserAgent.isPlatform('Mac OS X');\nvar KeyBindingUtil={\n  \n  isCtrlKeyCommand: function isCtrlKeyCommand (e){\n    return !!e.ctrlKey&&!e.altKey;\n  },\n  isOptionKeyCommand: function isOptionKeyCommand (e){\n    return isOSX&&e.altKey;\n  },\n  usesMacOSHeuristics: function usesMacOSHeuristics(){\n    return isOSX;\n  },\n  hasCommandModifier: function hasCommandModifier(e){\n    return isOSX ? !!e.metaKey&&!e.altKey:KeyBindingUtil.isCtrlKeyCommand (e);\n  },\n  isSoftNewlineEvent: isSoftNewlineEvent\n};\nmodule.exports=KeyBindingUtil;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/KeyBindingUtil.js?");
}),
"./node_modules/draft-js/lib/RawDraftContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/RawDraftContentState.js?");
}),
"./node_modules/draft-js/lib/RichTextEditorUtil.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar adjustBlockDepthForContentState=__webpack_require__( \"./node_modules/draft-js/lib/adjustBlockDepthForContentState.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar RichTextEditorUtil={\n  currentBlockContainsLink: function currentBlockContainsLink(editorState){\n    var selection=editorState.getSelection();\n    var contentState=editorState.getCurrentContent();\n    var entityMap=contentState.getEntityMap();\n    return contentState.getBlockForKey(selection.getAnchorKey()).getCharacterList().slice(selection.getStartOffset(), selection.getEndOffset()).some(function (v){\n      var entity=v.getEntity();\n      return !!entity&&entityMap.__get(entity).getType()==='LINK';\n    });\n  },\n  getCurrentBlockType: function getCurrentBlockType(editorState){\n    var selection=editorState.getSelection();\n    return editorState.getCurrentContent().getBlockForKey(selection.getStartKey()).getType();\n  },\n  getDataObjectForLinkURL: function getDataObjectForLinkURL(uri){\n    return {\n      url: uri.toString()\n    };\n  },\n  handleKeyCommand: function handleKeyCommand (editorState, command, eventTimeStamp){\n    switch (command){\n      case 'bold':\n        return RichTextEditorUtil.toggleInlineStyle(editorState, 'BOLD');\n\n      case 'italic':\n        return RichTextEditorUtil.toggleInlineStyle(editorState, 'ITALIC');\n\n      case 'underline':\n        return RichTextEditorUtil.toggleInlineStyle(editorState, 'UNDERLINE');\n\n      case 'code':\n        return RichTextEditorUtil.toggleCode(editorState);\n\n      case 'backspace':\n      case 'backspace-word':\n      case 'backspace-to-start-of-line':\n        return RichTextEditorUtil.onBackspace(editorState);\n\n      case 'delete':\n      case 'delete-word':\n      case 'delete-to-end-of-block':\n        return RichTextEditorUtil.onDelete(editorState);\n\n      default:\n        // they may have custom editor commands; ignore those\n        return null;\n    }\n  },\n  insertSoftNewline: function insertSoftNewline(editorState){\n    var contentState=DraftModifier.insertText(editorState.getCurrentContent(), editorState.getSelection(), '\\n', editorState.getCurrentInlineStyle(), null);\n    var newEditorState=EditorState.push(editorState, contentState, 'insert-characters');\n    return EditorState.forceSelection(newEditorState, contentState.getSelectionAfter());\n  },\n\n  \n  onBackspace: function onBackspace(editorState){\n    var selection=editorState.getSelection();\n\n    if(!selection.isCollapsed()||selection.getAnchorOffset()||selection.getFocusOffset()){\n      return null;\n    } // First, try to remove a preceding atomic block.\n\n\n    var content=editorState.getCurrentContent();\n    var startKey=selection.getStartKey();\n    var blockBefore=content.getBlockBefore(startKey);\n\n    if(blockBefore&&blockBefore.getType()==='atomic'){\n      var blockMap=content.getBlockMap()[\"delete\"](blockBefore.getKey());\n      var withoutAtomicBlock=content.merge({\n        blockMap: blockMap,\n        selectionAfter: selection\n      });\n\n      if(withoutAtomicBlock!==content){\n        return EditorState.push(editorState, withoutAtomicBlock, 'remove-range');\n      }\n    } // If that doesn't succeed, try to remove the current block style.\n\n\n    var withoutBlockStyle=RichTextEditorUtil.tryToRemoveBlockStyle(editorState);\n\n    if(withoutBlockStyle){\n      return EditorState.push(editorState, withoutBlockStyle, 'change-block-type');\n    }\n\n    return null;\n  },\n  onDelete: function onDelete(editorState){\n    var selection=editorState.getSelection();\n\n    if(!selection.isCollapsed()){\n      return null;\n    }\n\n    var content=editorState.getCurrentContent();\n    var startKey=selection.getStartKey();\n    var block=content.getBlockForKey(startKey);\n    var length=block.getLength(); // The cursor is somewhere within the text. Behave normally.\n\n    if(selection.getStartOffset() < length){\n      return null;\n    }\n\n    var blockAfter=content.getBlockAfter(startKey);\n\n    if(!blockAfter||blockAfter.getType()!=='atomic'){\n      return null;\n    }\n\n    var atomicBlockTarget=selection.merge({\n      focusKey: blockAfter.getKey(),\n      focusOffset: blockAfter.getLength()\n    });\n    var withoutAtomicBlock=DraftModifier.removeRange(content, atomicBlockTarget, 'forward');\n\n    if(withoutAtomicBlock!==content){\n      return EditorState.push(editorState, withoutAtomicBlock, 'remove-range');\n    }\n\n    return null;\n  },\n  onTab: function onTab(event, editorState, maxDepth){\n    var selection=editorState.getSelection();\n    var key=selection.getAnchorKey();\n\n    if(key!==selection.getFocusKey()){\n      return editorState;\n    }\n\n    var content=editorState.getCurrentContent();\n    var block=content.getBlockForKey(key);\n    var type=block.getType();\n\n    if(type!=='unordered-list-item'&&type!=='ordered-list-item'){\n      return editorState;\n    }\n\n    event.preventDefault();\n    var depth=block.getDepth();\n\n    if(!event.shiftKey&&depth===maxDepth){\n      return editorState;\n    }\n\n    var withAdjustment=adjustBlockDepthForContentState(content, selection, event.shiftKey ? -1:1, maxDepth);\n    return EditorState.push(editorState, withAdjustment, 'adjust-depth');\n  },\n  toggleBlockType: function toggleBlockType(editorState, blockType){\n    var selection=editorState.getSelection();\n    var startKey=selection.getStartKey();\n    var endKey=selection.getEndKey();\n    var content=editorState.getCurrentContent();\n    var target=selection; // Triple-click can lead to a selection that includes offset 0 of the\n    // following block. The `SelectionState` for this case is accurate, but\n    // we should avoid toggling block type for the trailing block because it\n    // is a confusing interaction.\n\n    if(startKey!==endKey&&selection.getEndOffset()===0){\n      var blockBefore=nullthrows(content.getBlockBefore(endKey));\n      endKey=blockBefore.getKey();\n      target=target.merge({\n        anchorKey: startKey,\n        anchorOffset: selection.getStartOffset(),\n        focusKey: endKey,\n        focusOffset: blockBefore.getLength(),\n        isBackward: false\n      });\n    }\n\n    var hasAtomicBlock=content.getBlockMap().skipWhile(function (_, k){\n      return k!==startKey;\n    }).reverse().skipWhile(function (_, k){\n      return k!==endKey;\n    }).some(function (v){\n      return v.getType()==='atomic';\n    });\n\n    if(hasAtomicBlock){\n      return editorState;\n    }\n\n    var typeToSet=content.getBlockForKey(startKey).getType()===blockType ? 'unstyled':blockType;\n    return EditorState.push(editorState, DraftModifier.setBlockType(content, target, typeToSet), 'change-block-type');\n  },\n  toggleCode: function toggleCode(editorState){\n    var selection=editorState.getSelection();\n    var anchorKey=selection.getAnchorKey();\n    var focusKey=selection.getFocusKey();\n\n    if(selection.isCollapsed()||anchorKey!==focusKey){\n      return RichTextEditorUtil.toggleBlockType(editorState, 'code-block');\n    }\n\n    return RichTextEditorUtil.toggleInlineStyle(editorState, 'CODE');\n  },\n\n  \n  toggleInlineStyle: function toggleInlineStyle(editorState, inlineStyle){\n    var selection=editorState.getSelection();\n    var currentStyle=editorState.getCurrentInlineStyle(); // If the selection is collapsed, toggle the specified style on or off and\n    // set the result as the new inline style override. This will then be\n    // used as the inline style for the next character to be inserted.\n\n    if(selection.isCollapsed()){\n      return EditorState.setInlineStyleOverride(editorState, currentStyle.has(inlineStyle) ? currentStyle.remove(inlineStyle):currentStyle.add(inlineStyle));\n    } // If characters are selected, immediately apply or remove the\n    // inline style on the document state itself.\n\n\n    var content=editorState.getCurrentContent();\n    var newContent; // If the style is already present for the selection range, remove it.\n    // Otherwise, apply it.\n\n    if(currentStyle.has(inlineStyle)){\n      newContent=DraftModifier.removeInlineStyle(content, selection, inlineStyle);\n    }else{\n      newContent=DraftModifier.applyInlineStyle(content, selection, inlineStyle);\n    }\n\n    return EditorState.push(editorState, newContent, 'change-inline-style');\n  },\n  toggleLink: function toggleLink(editorState, targetSelection, entityKey){\n    var withoutLink=DraftModifier.applyEntity(editorState.getCurrentContent(), targetSelection, entityKey);\n    return EditorState.push(editorState, withoutLink, 'apply-entity');\n  },\n\n  \n  tryToRemoveBlockStyle: function tryToRemoveBlockStyle(editorState){\n    var selection=editorState.getSelection();\n    var offset=selection.getAnchorOffset();\n\n    if(selection.isCollapsed()&&offset===0){\n      var key=selection.getAnchorKey();\n      var content=editorState.getCurrentContent();\n      var block=content.getBlockForKey(key);\n      var type=block.getType();\n      var blockBefore=content.getBlockBefore(key);\n\n      if(type==='code-block'&&blockBefore&&blockBefore.getType()==='code-block'&&blockBefore.getLength()!==0){\n        return null;\n      }\n\n      if(type!=='unstyled'){\n        return DraftModifier.setBlockType(content, selection, 'unstyled');\n      }\n    }\n\n    return null;\n  }\n};\nmodule.exports=RichTextEditorUtil;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/RichTextEditorUtil.js?");
}),
"./node_modules/draft-js/lib/SecondaryClipboard.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar getContentStateFragment=__webpack_require__( \"./node_modules/draft-js/lib/getContentStateFragment.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar clipboard=null;\n\n\nvar SecondaryClipboard={\n  cut: function cut(editorState){\n    var content=editorState.getCurrentContent();\n    var selection=editorState.getSelection();\n    var targetRange=null;\n\n    if(selection.isCollapsed()){\n      var anchorKey=selection.getAnchorKey();\n      var blockEnd=content.getBlockForKey(anchorKey).getLength();\n\n      if(blockEnd===selection.getAnchorOffset()){\n        var keyAfter=content.getKeyAfter(anchorKey);\n\n        if(keyAfter==null){\n          return editorState;\n        }\n\n        targetRange=selection.set('focusKey', keyAfter).set('focusOffset', 0);\n      }else{\n        targetRange=selection.set('focusOffset', blockEnd);\n      }\n    }else{\n      targetRange=selection;\n    }\n\n    targetRange=nullthrows(targetRange); // TODO: This should actually append to the current state when doing\n    // successive ^K commands without any other cursor movement\n\n    clipboard=getContentStateFragment(content, targetRange);\n    var afterRemoval=DraftModifier.removeRange(content, targetRange, 'forward');\n\n    if(afterRemoval===content){\n      return editorState;\n    }\n\n    return EditorState.push(editorState, afterRemoval, 'remove-range');\n  },\n  paste: function paste(editorState){\n    if(!clipboard){\n      return editorState;\n    }\n\n    var newContent=DraftModifier.replaceWithFragment(editorState.getCurrentContent(), editorState.getSelection(), clipboard);\n    return EditorState.push(editorState, newContent, 'insert-fragment');\n  }\n};\nmodule.exports=SecondaryClipboard;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/SecondaryClipboard.js?");
}),
"./node_modules/draft-js/lib/SelectionState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _inheritsLoose(subClass, superClass){ subClass.prototype=Object.create(superClass.prototype); subClass.prototype.constructor=subClass; subClass.__proto__=superClass; }\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar Record=Immutable.Record;\nvar defaultRecord={\n  anchorKey: '',\n  anchorOffset: 0,\n  focusKey: '',\n  focusOffset: 0,\n  isBackward: false,\n  hasFocus: false\n};\n\n\nvar SelectionStateRecord=Record(defaultRecord);\n\nvar SelectionState=function (_SelectionStateRecord){\n  _inheritsLoose(SelectionState, _SelectionStateRecord);\n\n  function SelectionState(){\n    return _SelectionStateRecord.apply(this, arguments)||this;\n  }\n\n  var _proto=SelectionState.prototype;\n\n  _proto.serialize=function serialize(){\n    return 'Anchor: ' + this.getAnchorKey() + ':' + this.getAnchorOffset() + ', ' + 'Focus: ' + this.getFocusKey() + ':' + this.getFocusOffset() + ', ' + 'Is Backward: ' + String(this.getIsBackward()) + ', ' + 'Has Focus: ' + String(this.getHasFocus());\n  };\n\n  _proto.getAnchorKey=function getAnchorKey(){\n    return this.get('anchorKey');\n  };\n\n  _proto.getAnchorOffset=function getAnchorOffset(){\n    return this.get('anchorOffset');\n  };\n\n  _proto.getFocusKey=function getFocusKey(){\n    return this.get('focusKey');\n  };\n\n  _proto.getFocusOffset=function getFocusOffset(){\n    return this.get('focusOffset');\n  };\n\n  _proto.getIsBackward=function getIsBackward(){\n    return this.get('isBackward');\n  };\n\n  _proto.getHasFocus=function getHasFocus(){\n    return this.get('hasFocus');\n  }\n  \n  ;\n\n  _proto.hasEdgeWithin=function hasEdgeWithin(blockKey, start, end){\n    var anchorKey=this.getAnchorKey();\n    var focusKey=this.getFocusKey();\n\n    if(anchorKey===focusKey&&anchorKey===blockKey){\n      var selectionStart=this.getStartOffset();\n      var selectionEnd=this.getEndOffset();\n      return start <=selectionStart&&selectionStart <=end||// selectionStart is between start and end, or\n      start <=selectionEnd&&selectionEnd <=end // selectionEnd is between start and end\n      ;\n    }\n\n    if(blockKey!==anchorKey&&blockKey!==focusKey){\n      return false;\n    }\n\n    var offsetToCheck=blockKey===anchorKey ? this.getAnchorOffset():this.getFocusOffset();\n    return start <=offsetToCheck&&end >=offsetToCheck;\n  };\n\n  _proto.isCollapsed=function isCollapsed(){\n    return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset();\n  };\n\n  _proto.getStartKey=function getStartKey(){\n    return this.getIsBackward() ? this.getFocusKey():this.getAnchorKey();\n  };\n\n  _proto.getStartOffset=function getStartOffset(){\n    return this.getIsBackward() ? this.getFocusOffset():this.getAnchorOffset();\n  };\n\n  _proto.getEndKey=function getEndKey(){\n    return this.getIsBackward() ? this.getAnchorKey():this.getFocusKey();\n  };\n\n  _proto.getEndOffset=function getEndOffset(){\n    return this.getIsBackward() ? this.getAnchorOffset():this.getFocusOffset();\n  };\n\n  SelectionState.createEmpty=function createEmpty(key){\n    return new SelectionState({\n      anchorKey: key,\n      anchorOffset: 0,\n      focusKey: key,\n      focusOffset: 0,\n      isBackward: false,\n      hasFocus: false\n    });\n  };\n\n  return SelectionState;\n}(SelectionStateRecord);\n\nmodule.exports=SelectionState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/SelectionState.js?");
}),
"./node_modules/draft-js/lib/adjustBlockDepthForContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction adjustBlockDepthForContentState(contentState, selectionState, adjustment, maxDepth){\n  var startKey=selectionState.getStartKey();\n  var endKey=selectionState.getEndKey();\n  var blockMap=contentState.getBlockMap();\n  var blocks=blockMap.toSeq().skipUntil(function (_, k){\n    return k===startKey;\n  }).takeUntil(function (_, k){\n    return k===endKey;\n  }).concat([[endKey, blockMap.get(endKey)]]).map(function (block){\n    var depth=block.getDepth() + adjustment;\n    depth=Math.max(0, Math.min(depth, maxDepth));\n    return block.set('depth', depth);\n  });\n  blockMap=blockMap.merge(blocks);\n  return contentState.merge({\n    blockMap: blockMap,\n    selectionBefore: selectionState,\n    selectionAfter: selectionState\n  });\n}\n\nmodule.exports=adjustBlockDepthForContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/adjustBlockDepthForContentState.js?");
}),
"./node_modules/draft-js/lib/applyEntityToContentBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nfunction applyEntityToContentBlock(contentBlock, startArg, end, entityKey){\n  var start=startArg;\n  var characterList=contentBlock.getCharacterList();\n\n  while (start < end){\n    characterList=characterList.set(start, CharacterMetadata.applyEntity(characterList.get(start), entityKey));\n    start++;\n  }\n\n  return contentBlock.set('characterList', characterList);\n}\n\nmodule.exports=applyEntityToContentBlock;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/applyEntityToContentBlock.js?");
}),
"./node_modules/draft-js/lib/applyEntityToContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar applyEntityToContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/applyEntityToContentBlock.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nfunction applyEntityToContentState(contentState, selectionState, entityKey){\n  var blockMap=contentState.getBlockMap();\n  var startKey=selectionState.getStartKey();\n  var startOffset=selectionState.getStartOffset();\n  var endKey=selectionState.getEndKey();\n  var endOffset=selectionState.getEndOffset();\n  var newBlocks=blockMap.skipUntil(function (_, k){\n    return k===startKey;\n  }).takeUntil(function (_, k){\n    return k===endKey;\n  }).toOrderedMap().merge(Immutable.OrderedMap([[endKey, blockMap.get(endKey)]])).map(function (block, blockKey){\n    var sliceStart=blockKey===startKey ? startOffset:0;\n    var sliceEnd=blockKey===endKey ? endOffset:block.getLength();\n    return applyEntityToContentBlock(block, sliceStart, sliceEnd, entityKey);\n  });\n  return contentState.merge({\n    blockMap: blockMap.merge(newBlocks),\n    selectionBefore: selectionState,\n    selectionAfter: selectionState\n  });\n}\n\nmodule.exports=applyEntityToContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/applyEntityToContentState.js?");
}),
"./node_modules/draft-js/lib/convertFromDraftStateToRaw.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar ContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlock.js\");\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar DraftStringKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftStringKey.js\");\n\nvar encodeEntityRanges=__webpack_require__( \"./node_modules/draft-js/lib/encodeEntityRanges.js\");\n\nvar encodeInlineStyleRanges=__webpack_require__( \"./node_modules/draft-js/lib/encodeInlineStyleRanges.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar createRawBlock=function createRawBlock(block, entityStorageMap){\n  return {\n    key: block.getKey(),\n    text: block.getText(),\n    type: block.getType(),\n    depth: block.getDepth(),\n    inlineStyleRanges: encodeInlineStyleRanges(block),\n    entityRanges: encodeEntityRanges(block, entityStorageMap),\n    data: block.getData().toObject()\n  };\n};\n\nvar insertRawBlock=function insertRawBlock(block, entityMap, rawBlocks, blockCacheRef){\n  if(block instanceof ContentBlock){\n    rawBlocks.push(createRawBlock(block, entityMap));\n    return;\n  }\n\n  !(block instanceof ContentBlockNode) ?  true ? invariant(false, 'block is not a BlockNode'):undefined:void 0;\n  var parentKey=block.getParentKey();\n\n  var rawBlock=blockCacheRef[block.getKey()]=_objectSpread({}, createRawBlock(block, entityMap), {\n    children: []\n  });\n\n  if(parentKey){\n    blockCacheRef[parentKey].children.push(rawBlock);\n    return;\n  }\n\n  rawBlocks.push(rawBlock);\n};\n\nvar encodeRawBlocks=function encodeRawBlocks(contentState, rawState){\n  var entityMap=rawState.entityMap;\n  var rawBlocks=[];\n  var blockCacheRef={};\n  var entityCacheRef={};\n  var entityStorageKey=0;\n  contentState.getBlockMap().forEach(function (block){\n    block.findEntityRanges(function (character){\n      return character.getEntity()!==null;\n    }, function (start){\n      var entityKey=block.getEntityAt(start); // Stringify to maintain order of otherwise numeric keys.\n\n      var stringifiedEntityKey=DraftStringKey.stringify(entityKey); // This makes this function resilient to two entities\n      // erroneously having the same key\n\n      if(entityCacheRef[stringifiedEntityKey]){\n        return;\n      }\n\n      entityCacheRef[stringifiedEntityKey]=entityKey; // we need the `any` casting here since this is a temporary state\n      // where we will later on flip the entity map and populate it with\n      // real entity, at this stage we just need to map back the entity\n      // key used by the BlockNode\n\n      entityMap[stringifiedEntityKey]=\"\".concat(entityStorageKey);\n      entityStorageKey++;\n    });\n    insertRawBlock(block, entityMap, rawBlocks, blockCacheRef);\n  });\n  return {\n    blocks: rawBlocks,\n    entityMap: entityMap\n  };\n}; // Flip storage map so that our storage keys map to global\n// DraftEntity keys.\n\n\nvar encodeRawEntityMap=function encodeRawEntityMap(contentState, rawState){\n  var blocks=rawState.blocks,\n      entityMap=rawState.entityMap;\n  var rawEntityMap={};\n  Object.keys(entityMap).forEach(function (key, index){\n    var entity=contentState.getEntity(DraftStringKey.unstringify(key));\n    rawEntityMap[index]={\n      type: entity.getType(),\n      mutability: entity.getMutability(),\n      data: entity.getData()\n    };\n  });\n  return {\n    blocks: blocks,\n    entityMap: rawEntityMap\n  };\n};\n\nvar convertFromDraftStateToRaw=function convertFromDraftStateToRaw(contentState){\n  var rawDraftContentState={\n    entityMap: {},\n    blocks: []\n  }; // add blocks\n\n  rawDraftContentState=encodeRawBlocks(contentState, rawDraftContentState); // add entities\n\n  rawDraftContentState=encodeRawEntityMap(contentState, rawDraftContentState);\n  return rawDraftContentState;\n};\n\nmodule.exports=convertFromDraftStateToRaw;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/convertFromDraftStateToRaw.js?");
}),
"./node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _knownListItemDepthCl;\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar ContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlock.js\");\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar DefaultDraftBlockRenderMap=__webpack_require__( \"./node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js\");\n\nvar DraftEntity=__webpack_require__( \"./node_modules/draft-js/lib/DraftEntity.js\");\n\nvar URI=__webpack_require__( \"./node_modules/fbjs/lib/URI.js\");\n\nvar cx=__webpack_require__( \"./node_modules/fbjs/lib/cx.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar getSafeBodyFromHTML=__webpack_require__( \"./node_modules/draft-js/lib/getSafeBodyFromHTML.js\");\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar _require=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\"),\n    List=_require.List,\n    Map=_require.Map,\n    OrderedSet=_require.OrderedSet;\n\nvar isHTMLAnchorElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLAnchorElement.js\");\n\nvar isHTMLBRElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLBRElement.js\");\n\nvar isHTMLElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLElement.js\");\n\nvar isHTMLImageElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLImageElement.js\");\n\nvar experimentalTreeDataSupport=gkx('draft_tree_data_support');\nvar NBSP='&nbsp;';\nvar SPACE=' '; // used for replacing characters in HTML\n\nvar REGEX_CR=new RegExp('\\r', 'g');\nvar REGEX_LF=new RegExp('\\n', 'g');\nvar REGEX_LEADING_LF=new RegExp('^\\n', 'g');\nvar REGEX_NBSP=new RegExp(NBSP, 'g');\nvar REGEX_CARRIAGE=new RegExp('&#13;?', 'g');\nvar REGEX_ZWS=new RegExp('&#8203;?', 'g'); // https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight\n\nvar boldValues=['bold', 'bolder', '500', '600', '700', '800', '900'];\nvar notBoldValues=['light', 'lighter', 'normal', '100', '200', '300', '400'];\nvar anchorAttr=['className', 'href', 'rel', 'target', 'title'];\nvar imgAttr=['alt', 'className', 'height', 'src', 'width'];\nvar knownListItemDepthClasses=(_knownListItemDepthCl={}, _defineProperty(_knownListItemDepthCl, cx('public/DraftStyleDefault/depth0'), 0), _defineProperty(_knownListItemDepthCl, cx('public/DraftStyleDefault/depth1'), 1), _defineProperty(_knownListItemDepthCl, cx('public/DraftStyleDefault/depth2'), 2), _defineProperty(_knownListItemDepthCl, cx('public/DraftStyleDefault/depth3'), 3), _defineProperty(_knownListItemDepthCl, cx('public/DraftStyleDefault/depth4'), 4), _knownListItemDepthCl);\nvar HTMLTagToRawInlineStyleMap=Map({\n  b: 'BOLD',\n  code: 'CODE',\n  del: 'STRIKETHROUGH',\n  em: 'ITALIC',\n  i: 'ITALIC',\n  s: 'STRIKETHROUGH',\n  strike: 'STRIKETHROUGH',\n  strong: 'BOLD',\n  u: 'UNDERLINE',\n  mark: 'HIGHLIGHT'\n});\n\n\nvar buildBlockTypeMap=function buildBlockTypeMap(blockRenderMap){\n  var blockTypeMap={};\n  blockRenderMap.mapKeys(function (blockType, desc){\n    var elements=[desc.element];\n\n    if(desc.aliasedElements!==undefined){\n      elements.push.apply(elements, desc.aliasedElements);\n    }\n\n    elements.forEach(function (element){\n      if(blockTypeMap[element]===undefined){\n        blockTypeMap[element]=blockType;\n      }else if(typeof blockTypeMap[element]==='string'){\n        blockTypeMap[element]=[blockTypeMap[element], blockType];\n      }else{\n        blockTypeMap[element].push(blockType);\n      }\n    });\n  });\n  return Map(blockTypeMap);\n};\n\nvar detectInlineStyle=function detectInlineStyle(node){\n  if(isHTMLElement(node)){\n    var element=node; // Currently only used to detect preformatted inline code\n\n    if(element.style.fontFamily.includes('monospace')){\n      return 'CODE';\n    }\n  }\n\n  return null;\n};\n\n\n\nvar getListItemDepth=function getListItemDepth(node){\n  var depth=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:0;\n  Object.keys(knownListItemDepthClasses).some(function (depthClass){\n    if(node.classList.contains(depthClass)){\n      depth=knownListItemDepthClasses[depthClass];\n    }\n  });\n  return depth;\n};\n\n\n\nvar isValidAnchor=function isValidAnchor(node){\n  if(!isHTMLAnchorElement(node)){\n    return false;\n  }\n\n  var anchorNode=node;\n\n  if(!anchorNode.href||anchorNode.protocol!=='http:'&&anchorNode.protocol!=='https:'&&anchorNode.protocol!=='mailto:'&&anchorNode.protocol!=='tel:'){\n    return false;\n  }\n\n  try {\n    // Just checking whether we can actually create a URI\n    var _=new URI(anchorNode.href);\n\n    return true; // We need our catch statements to have arguments, else\n    // UglifyJS (which we use for our OSS builds) will crash.\n    // eslint-disable-next-line fb-www/no-unused-catch-bindings\n  } catch (_){\n    return false;\n  }\n};\n\n\n\nvar isValidImage=function isValidImage(node){\n  if(!isHTMLImageElement(node)){\n    return false;\n  }\n\n  var imageNode=node;\n  return !!(imageNode.attributes.getNamedItem('src')&&imageNode.attributes.getNamedItem('src').value);\n};\n\n\n\nvar styleFromNodeAttributes=function styleFromNodeAttributes(node, style){\n  if(!isHTMLElement(node)){\n    return style;\n  }\n\n  var htmlElement=node;\n  var fontWeight=htmlElement.style.fontWeight;\n  var fontStyle=htmlElement.style.fontStyle;\n  var textDecoration=htmlElement.style.textDecoration;\n  return style.withMutations(function (style){\n    if(boldValues.indexOf(fontWeight) >=0){\n      style.add('BOLD');\n    }else if(notBoldValues.indexOf(fontWeight) >=0){\n      style.remove('BOLD');\n    }\n\n    if(fontStyle==='italic'){\n      style.add('ITALIC');\n    }else if(fontStyle==='normal'){\n      style.remove('ITALIC');\n    }\n\n    if(textDecoration==='underline'){\n      style.add('UNDERLINE');\n    }\n\n    if(textDecoration==='line-through'){\n      style.add('STRIKETHROUGH');\n    }\n\n    if(textDecoration==='none'){\n      style.remove('UNDERLINE');\n      style.remove('STRIKETHROUGH');\n    }\n  });\n};\n\n\n\nvar isListNode=function isListNode(nodeName){\n  return nodeName==='ul'||nodeName==='ol';\n};\n\n\n\n\nvar ContentBlocksBuilder=function (){\n  // Most of the method in the class depend on the state of the content builder\n  // (i.e. currentBlockType, currentDepth, currentEntity etc.). Though it may\n  // be confusing at first, it made the code simpler than the alternative which\n  // is to pass those values around in every call.\n  // The following attributes are used to accumulate text and styles\n  // as we are walking the HTML node tree.\n  // Describes the future ContentState as a tree of content blocks\n  // The content blocks generated from the blockConfigs\n  // Entity map use to store links and images found in the HTML nodes\n  // Map HTML tags to draftjs block types and disambiguation function\n  function ContentBlocksBuilder(blockTypeMap, disambiguate){\n    _defineProperty(this, \"characterList\", List());\n\n    _defineProperty(this, \"currentBlockType\", 'unstyled');\n\n    _defineProperty(this, \"currentDepth\", 0);\n\n    _defineProperty(this, \"currentEntity\", null);\n\n    _defineProperty(this, \"currentText\", '');\n\n    _defineProperty(this, \"wrapper\", null);\n\n    _defineProperty(this, \"blockConfigs\", []);\n\n    _defineProperty(this, \"contentBlocks\", []);\n\n    _defineProperty(this, \"entityMap\", DraftEntity);\n\n    _defineProperty(this, \"blockTypeMap\", void 0);\n\n    _defineProperty(this, \"disambiguate\", void 0);\n\n    this.clear();\n    this.blockTypeMap=blockTypeMap;\n    this.disambiguate=disambiguate;\n  }\n  \n\n\n  var _proto=ContentBlocksBuilder.prototype;\n\n  _proto.clear=function clear(){\n    this.characterList=List();\n    this.blockConfigs=[];\n    this.currentBlockType='unstyled';\n    this.currentDepth=0;\n    this.currentEntity=null;\n    this.currentText='';\n    this.entityMap=DraftEntity;\n    this.wrapper=null;\n    this.contentBlocks=[];\n  }\n  \n  ;\n\n  _proto.addDOMNode=function addDOMNode(node){\n    var _this$blockConfigs;\n\n    this.contentBlocks=[];\n    this.currentDepth=0; // Converts the HTML node to block config\n\n    (_this$blockConfigs=this.blockConfigs).push.apply(_this$blockConfigs, this._toBlockConfigs([node], OrderedSet())); // There might be some left over text in the builder's\n    // internal state, if so make a ContentBlock out of it.\n\n\n    this._trimCurrentText();\n\n    if(this.currentText!==''){\n      this.blockConfigs.push(this._makeBlockConfig());\n    } // for chaining\n\n\n    return this;\n  }\n  \n  ;\n\n  _proto.getContentBlocks=function getContentBlocks(){\n    if(this.contentBlocks.length===0){\n      if(experimentalTreeDataSupport){\n        this._toContentBlocks(this.blockConfigs);\n      }else{\n        this._toFlatContentBlocks(this.blockConfigs);\n      }\n    }\n\n    return {\n      contentBlocks: this.contentBlocks,\n      entityMap: this.entityMap\n    };\n  } // ***********************************WARNING******************************\n  // The methods below this line are private - don't call them directly.\n\n  \n  ;\n\n  _proto._makeBlockConfig=function _makeBlockConfig(){\n    var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n    var key=config.key||generateRandomKey();\n\n    var block=_objectSpread({\n      key: key,\n      type: this.currentBlockType,\n      text: this.currentText,\n      characterList: this.characterList,\n      depth: this.currentDepth,\n      parent: null,\n      children: List(),\n      prevSibling: null,\n      nextSibling: null,\n      childConfigs: []\n    }, config);\n\n    this.characterList=List();\n    this.currentBlockType='unstyled';\n    this.currentText='';\n    return block;\n  }\n  \n  ;\n\n  _proto._toBlockConfigs=function _toBlockConfigs(nodes, style){\n    var blockConfigs=[];\n\n    for (var i=0; i < nodes.length; i++){\n      var node=nodes[i];\n      var nodeName=node.nodeName.toLowerCase();\n\n      if(nodeName==='body'||isListNode(nodeName)){\n        // body, ol and ul are 'block' type nodes so create a block config\n        // with the text accumulated so far (if any)\n        this._trimCurrentText();\n\n        if(this.currentText!==''){\n          blockConfigs.push(this._makeBlockConfig());\n        } // body, ol and ul nodes are ignored, but their children are inlined in\n        // the parent block config.\n\n\n        var wasCurrentDepth=this.currentDepth;\n        var wasWrapper=this.wrapper;\n\n        if(isListNode(nodeName)){\n          this.wrapper=nodeName;\n\n          if(isListNode(wasWrapper)){\n            this.currentDepth++;\n          }\n        }\n\n        blockConfigs.push.apply(blockConfigs, this._toBlockConfigs(Array.from(node.childNodes), style));\n        this.currentDepth=wasCurrentDepth;\n        this.wrapper=wasWrapper;\n        continue;\n      }\n\n      var blockType=this.blockTypeMap.get(nodeName);\n\n      if(blockType!==undefined){\n        // 'block' type node means we need to create a block config\n        // with the text accumulated so far (if any)\n        this._trimCurrentText();\n\n        if(this.currentText!==''){\n          blockConfigs.push(this._makeBlockConfig());\n        }\n\n        var _wasCurrentDepth=this.currentDepth;\n        var _wasWrapper=this.wrapper;\n        this.wrapper=nodeName==='pre' ? 'pre':this.wrapper;\n\n        if(typeof blockType!=='string'){\n          blockType=this.disambiguate(nodeName, this.wrapper)||blockType[0]||'unstyled';\n        }\n\n        if(!experimentalTreeDataSupport&&isHTMLElement(node)&&(blockType==='unordered-list-item'||blockType==='ordered-list-item')){\n          var htmlElement=node;\n          this.currentDepth=getListItemDepth(htmlElement, this.currentDepth);\n        }\n\n        var key=generateRandomKey();\n\n        var childConfigs=this._toBlockConfigs(Array.from(node.childNodes), style);\n\n        this._trimCurrentText();\n\n        blockConfigs.push(this._makeBlockConfig({\n          key: key,\n          childConfigs: childConfigs,\n          type: blockType\n        }));\n        this.currentDepth=_wasCurrentDepth;\n        this.wrapper=_wasWrapper;\n        continue;\n      }\n\n      if(nodeName==='#text'){\n        this._addTextNode(node, style);\n\n        continue;\n      }\n\n      if(nodeName==='br'){\n        this._addBreakNode(node, style);\n\n        continue;\n      }\n\n      if(isValidImage(node)){\n        this._addImgNode(node, style);\n\n        continue;\n      }\n\n      if(isValidAnchor(node)){\n        this._addAnchorNode(node, blockConfigs, style);\n\n        continue;\n      }\n\n      var newStyle=style;\n\n      if(HTMLTagToRawInlineStyleMap.has(nodeName)){\n        newStyle=newStyle.add(HTMLTagToRawInlineStyleMap.get(nodeName));\n      }\n\n      newStyle=styleFromNodeAttributes(node, newStyle);\n      var inlineStyle=detectInlineStyle(node);\n\n      if(inlineStyle!=null){\n        newStyle=newStyle.add(inlineStyle);\n      }\n\n      blockConfigs.push.apply(blockConfigs, this._toBlockConfigs(Array.from(node.childNodes), newStyle));\n    }\n\n    return blockConfigs;\n  }\n  \n  ;\n\n  _proto._appendText=function _appendText(text, style){\n    var _this$characterList;\n\n    this.currentText +=text;\n    var characterMetadata=CharacterMetadata.create({\n      style: style,\n      entity: this.currentEntity\n    });\n    this.characterList=(_this$characterList=this.characterList).push.apply(_this$characterList, Array(text.length).fill(characterMetadata));\n  }\n  \n  ;\n\n  _proto._trimCurrentText=function _trimCurrentText(){\n    var l=this.currentText.length;\n    var begin=l - this.currentText.trimLeft().length;\n    var end=this.currentText.trimRight().length; // We should not trim whitespaces for which an entity is defined.\n\n    var entity=this.characterList.findEntry(function (characterMetadata){\n      return characterMetadata.getEntity()!==null;\n    });\n    begin=entity!==undefined ? Math.min(begin, entity[0]):begin;\n    entity=this.characterList.reverse().findEntry(function (characterMetadata){\n      return characterMetadata.getEntity()!==null;\n    });\n    end=entity!==undefined ? Math.max(end, l - entity[0]):end;\n\n    if(begin > end){\n      this.currentText='';\n      this.characterList=List();\n    }else{\n      this.currentText=this.currentText.slice(begin, end);\n      this.characterList=this.characterList.slice(begin, end);\n    }\n  }\n  \n  ;\n\n  _proto._addTextNode=function _addTextNode(node, style){\n    var text=node.textContent;\n    var trimmedText=text.trim(); // If we are not in a pre block and the trimmed content is empty,\n    // normalize to a single space.\n\n    if(trimmedText===''&&this.wrapper!=='pre'){\n      text=' ';\n    }\n\n    if(this.wrapper!=='pre'){\n      // Trim leading line feed, which is invisible in HTML\n      text=text.replace(REGEX_LEADING_LF, ''); // Can't use empty string because MSWord\n\n      text=text.replace(REGEX_LF, SPACE);\n    }\n\n    this._appendText(text, style);\n  };\n\n  _proto._addBreakNode=function _addBreakNode(node, style){\n    if(!isHTMLBRElement(node)){\n      return;\n    }\n\n    this._appendText('\\n', style);\n  }\n  \n  ;\n\n  _proto._addImgNode=function _addImgNode(node, style){\n    if(!isHTMLImageElement(node)){\n      return;\n    }\n\n    var image=node;\n    var entityConfig={};\n    imgAttr.forEach(function (attr){\n      var imageAttribute=image.getAttribute(attr);\n\n      if(imageAttribute){\n        entityConfig[attr]=imageAttribute;\n      }\n    });// TODO: T15530363 update this when we remove DraftEntity entirely\n\n    this.currentEntity=this.entityMap.__create('IMAGE', 'IMMUTABLE', entityConfig); // The child text node cannot just have a space or return as content (since\n    // we strip those out), unless the image is for presentation only.\n    // See https://github.com/facebook/draft-js/issues/231 for some context.\n\n    if(gkx('draftjs_fix_paste_for_img')){\n      if(image.getAttribute('role')!=='presentation'){\n        this._appendText(\"\\uD83D\\uDCF7\", style);\n      }\n    }else{\n      this._appendText(\"\\uD83D\\uDCF7\", style);\n    }\n\n    this.currentEntity=null;\n  }\n  \n  ;\n\n  _proto._addAnchorNode=function _addAnchorNode(node, blockConfigs, style){\n    // The check has already been made by isValidAnchor but\n    // we have to do it again to keep flow happy.\n    if(!isHTMLAnchorElement(node)){\n      return;\n    }\n\n    var anchor=node;\n    var entityConfig={};\n    anchorAttr.forEach(function (attr){\n      var anchorAttribute=anchor.getAttribute(attr);\n\n      if(anchorAttribute){\n        entityConfig[attr]=anchorAttribute;\n      }\n    });\n    entityConfig.url=new URI(anchor.href).toString(); // TODO: T15530363 update this when we remove DraftEntity completely\n\n    this.currentEntity=this.entityMap.__create('LINK', 'MUTABLE', entityConfig||{});\n    blockConfigs.push.apply(blockConfigs, this._toBlockConfigs(Array.from(node.childNodes), style));\n    this.currentEntity=null;\n  }\n  \n  ;\n\n  _proto._toContentBlocks=function _toContentBlocks(blockConfigs){\n    var parent=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:null;\n    var l=blockConfigs.length - 1;\n\n    for (var i=0; i <=l; i++){\n      var config=blockConfigs[i];\n      config.parent=parent;\n      config.prevSibling=i > 0 ? blockConfigs[i - 1].key:null;\n      config.nextSibling=i < l ? blockConfigs[i + 1].key:null;\n      config.children=List(config.childConfigs.map(function (child){\n        return child.key;\n      }));\n      this.contentBlocks.push(new ContentBlockNode(_objectSpread({}, config)));\n\n      this._toContentBlocks(config.childConfigs, config.key);\n    }\n  }\n  \n  ;\n\n  _proto._hoistContainersInBlockConfigs=function _hoistContainersInBlockConfigs(blockConfigs){\n    var _this=this;\n\n    var hoisted=List(blockConfigs).flatMap(function (blockConfig){\n      // Don't mess with useful blocks\n      if(blockConfig.type!=='unstyled'||blockConfig.text!==''){\n        return [blockConfig];\n      }\n\n      return _this._hoistContainersInBlockConfigs(blockConfig.childConfigs);\n    });\n    return hoisted;\n  } // ***********************************************************************\n  // The two methods below are used for backward compatibility when\n  // experimentalTreeDataSupport is disabled.\n\n  \n  ;\n\n  _proto._toFlatContentBlocks=function _toFlatContentBlocks(blockConfigs){\n    var _this2=this;\n\n    var cleanConfigs=this._hoistContainersInBlockConfigs(blockConfigs);\n\n    cleanConfigs.forEach(function (config){\n      var _this2$_extractTextFr=_this2._extractTextFromBlockConfigs(config.childConfigs),\n          text=_this2$_extractTextFr.text,\n          characterList=_this2$_extractTextFr.characterList;\n\n      _this2.contentBlocks.push(new ContentBlock(_objectSpread({}, config, {\n        text: config.text + text,\n        characterList: config.characterList.concat(characterList)\n      })));\n    });\n  }\n  \n  ;\n\n  _proto._extractTextFromBlockConfigs=function _extractTextFromBlockConfigs(blockConfigs){\n    var l=blockConfigs.length - 1;\n    var text='';\n    var characterList=List();\n\n    for (var i=0; i <=l; i++){\n      var config=blockConfigs[i];\n      text +=config.text;\n      characterList=characterList.concat(config.characterList);\n\n      if(text!==''&&config.type!=='unstyled'){\n        text +='\\n';\n        characterList=characterList.push(characterList.last());\n      }\n\n      var children=this._extractTextFromBlockConfigs(config.childConfigs);\n\n      text +=children.text;\n      characterList=characterList.concat(children.characterList);\n    }\n\n    return {\n      text: text,\n      characterList: characterList\n    };\n  };\n\n  return ContentBlocksBuilder;\n}();\n\n\n\nvar convertFromHTMLToContentBlocks=function convertFromHTMLToContentBlocks(html){\n  var DOMBuilder=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:getSafeBodyFromHTML;\n  var blockRenderMap=arguments.length > 2&&arguments[2]!==undefined ? arguments[2]:DefaultDraftBlockRenderMap;\n  // Be ABSOLUTELY SURE that the dom builder you pass here won't execute\n  // arbitrary code in whatever environment you're running this in. For an\n  // example of how we try to do this in-browser, see getSafeBodyFromHTML.\n  // Remove funky characters from the HTML string\n  html=html.trim().replace(REGEX_CR, '').replace(REGEX_NBSP, SPACE).replace(REGEX_CARRIAGE, '').replace(REGEX_ZWS, ''); // Build a DOM tree out of the HTML string\n\n  var safeBody=DOMBuilder(html);\n\n  if(!safeBody){\n    return null;\n  } // Build a BlockTypeMap out of the BlockRenderMap\n\n\n  var blockTypeMap=buildBlockTypeMap(blockRenderMap); // Select the proper block type for the cases where the blockRenderMap\n  // uses multiple block types for the same html tag.\n\n  var disambiguate=function disambiguate(tag, wrapper){\n    if(tag==='li'){\n      return wrapper==='ol' ? 'ordered-list-item':'unordered-list-item';\n    }\n\n    return null;\n  };\n\n  return new ContentBlocksBuilder(blockTypeMap, disambiguate).addDOMNode(safeBody).getContentBlocks();\n};\n\nmodule.exports=convertFromHTMLToContentBlocks;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js?");
}),
"./node_modules/draft-js/lib/convertFromRawToDraftState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; var ownKeys=Object.keys(source); if(typeof Object.getOwnPropertySymbols==='function'){ ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym){ return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key){ _defineProperty(target, key, source[key]); });} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar ContentBlock=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlock.js\");\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar ContentState=__webpack_require__( \"./node_modules/draft-js/lib/ContentState.js\");\n\nvar DraftEntity=__webpack_require__( \"./node_modules/draft-js/lib/DraftEntity.js\");\n\nvar DraftTreeAdapter=__webpack_require__( \"./node_modules/draft-js/lib/DraftTreeAdapter.js\");\n\nvar DraftTreeInvariants=__webpack_require__( \"./node_modules/draft-js/lib/DraftTreeInvariants.js\");\n\nvar SelectionState=__webpack_require__( \"./node_modules/draft-js/lib/SelectionState.js\");\n\nvar createCharacterList=__webpack_require__( \"./node_modules/draft-js/lib/createCharacterList.js\");\n\nvar decodeEntityRanges=__webpack_require__( \"./node_modules/draft-js/lib/decodeEntityRanges.js\");\n\nvar decodeInlineStyleRanges=__webpack_require__( \"./node_modules/draft-js/lib/decodeInlineStyleRanges.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar experimentalTreeDataSupport=gkx('draft_tree_data_support');\nvar List=Immutable.List,\n    Map=Immutable.Map,\n    OrderedMap=Immutable.OrderedMap;\n\nvar decodeBlockNodeConfig=function decodeBlockNodeConfig(block, entityMap){\n  var key=block.key,\n      type=block.type,\n      data=block.data,\n      text=block.text,\n      depth=block.depth;\n  var blockNodeConfig={\n    text: text,\n    depth: depth||0,\n    type: type||'unstyled',\n    key: key||generateRandomKey(),\n    data: Map(data),\n    characterList: decodeCharacterList(block, entityMap)\n  };\n  return blockNodeConfig;\n};\n\nvar decodeCharacterList=function decodeCharacterList(block, entityMap){\n  var text=block.text,\n      rawEntityRanges=block.entityRanges,\n      rawInlineStyleRanges=block.inlineStyleRanges;\n  var entityRanges=rawEntityRanges||[];\n  var inlineStyleRanges=rawInlineStyleRanges||[]; // Translate entity range keys to the DraftEntity map.\n\n  return createCharacterList(decodeInlineStyleRanges(text, inlineStyleRanges), decodeEntityRanges(text, entityRanges.filter(function (range){\n    return entityMap.hasOwnProperty(range.key);\n  }).map(function (range){\n    return _objectSpread({}, range, {\n      key: entityMap[range.key]\n    });\n  })));\n};\n\nvar addKeyIfMissing=function addKeyIfMissing(block){\n  return _objectSpread({}, block, {\n    key: block.key||generateRandomKey()\n  });\n};\n\n\n\nvar updateNodeStack=function updateNodeStack(stack, nodes, parentRef){\n  var nodesWithParentRef=nodes.map(function (block){\n    return _objectSpread({}, block, {\n      parentRef: parentRef\n    });\n  });// since we pop nodes from the stack we need to insert them in reverse\n\n  return stack.concat(nodesWithParentRef.reverse());\n};\n\n\n\nvar decodeContentBlockNodes=function decodeContentBlockNodes(blocks, entityMap){\n  return blocks // ensure children have valid keys to enable sibling links\n  .map(addKeyIfMissing).reduce(function (blockMap, block, index){\n    !Array.isArray(block.children) ?  true ? invariant(false, 'invalid RawDraftContentBlock can not be converted to ContentBlockNode'):undefined:void 0; // ensure children have valid keys to enable sibling links\n\n    var children=block.children.map(addKeyIfMissing); // root level nodes\n\n    var contentBlockNode=new ContentBlockNode(_objectSpread({}, decodeBlockNodeConfig(block, entityMap), {\n      prevSibling: index===0 ? null:blocks[index - 1].key,\n      nextSibling: index===blocks.length - 1 ? null:blocks[index + 1].key,\n      children: List(children.map(function (child){\n        return child.key;\n      }))\n    })); // push root node to blockMap\n\n    blockMap=blockMap.set(contentBlockNode.getKey(), contentBlockNode); // this stack is used to ensure we visit all nodes respecting depth ordering\n\n    var stack=updateNodeStack([], children, contentBlockNode); // start computing children nodes\n\n    while (stack.length > 0){\n      // we pop from the stack and start processing this node\n      var node=stack.pop(); // parentRef already points to a converted ContentBlockNode\n\n      var parentRef=node.parentRef;\n      var siblings=parentRef.getChildKeys();\n\n      var _index=siblings.indexOf(node.key);\n\n      var isValidBlock=Array.isArray(node.children);\n\n      if(!isValidBlock){\n        !isValidBlock ?  true ? invariant(false, 'invalid RawDraftContentBlock can not be converted to ContentBlockNode'):undefined:void 0;\n        break;\n      } // ensure children have valid keys to enable sibling links\n\n\n      var _children=node.children.map(addKeyIfMissing);\n\n      var _contentBlockNode=new ContentBlockNode(_objectSpread({}, decodeBlockNodeConfig(node, entityMap), {\n        parent: parentRef.getKey(),\n        children: List(_children.map(function (child){\n          return child.key;\n        })),\n        prevSibling: _index===0 ? null:siblings.get(_index - 1),\n        nextSibling: _index===siblings.size - 1 ? null:siblings.get(_index + 1)\n      })); // push node to blockMap\n\n\n      blockMap=blockMap.set(_contentBlockNode.getKey(), _contentBlockNode); // this stack is used to ensure we visit all nodes respecting depth ordering\n\n      stack=updateNodeStack(stack, _children, _contentBlockNode);\n    }\n\n    return blockMap;\n  }, OrderedMap());\n};\n\nvar decodeContentBlocks=function decodeContentBlocks(blocks, entityMap){\n  return OrderedMap(blocks.map(function (block){\n    var contentBlock=new ContentBlock(decodeBlockNodeConfig(block, entityMap));\n    return [contentBlock.getKey(), contentBlock];\n  }));\n};\n\nvar decodeRawBlocks=function decodeRawBlocks(rawState, entityMap){\n  var isTreeRawBlock=rawState.blocks.find(function (block){\n    return Array.isArray(block.children)&&block.children.length > 0;\n  });\n  var rawBlocks=experimentalTreeDataSupport&&!isTreeRawBlock ? DraftTreeAdapter.fromRawStateToRawTreeState(rawState).blocks:rawState.blocks;\n\n  if(!experimentalTreeDataSupport){\n    return decodeContentBlocks(isTreeRawBlock ? DraftTreeAdapter.fromRawTreeStateToRawState(rawState).blocks:rawBlocks, entityMap);\n  }\n\n  var blockMap=decodeContentBlockNodes(rawBlocks, entityMap); // in dev mode, check that the tree invariants are met\n\n  if(true){\n    !DraftTreeInvariants.isValidTree(blockMap) ?  true ? invariant(false, 'Should be a valid tree'):undefined:void 0;\n  }\n\n  return blockMap;\n};\n\nvar decodeRawEntityMap=function decodeRawEntityMap(rawState){\n  var rawEntityMap=rawState.entityMap;\n  var entityMap={}; // TODO: Update this once we completely remove DraftEntity\n\n  Object.keys(rawEntityMap).forEach(function (rawEntityKey){\n    var _rawEntityMap$rawEnti=rawEntityMap[rawEntityKey],\n        type=_rawEntityMap$rawEnti.type,\n        mutability=_rawEntityMap$rawEnti.mutability,\n        data=_rawEntityMap$rawEnti.data; // get the key reference to created entity\n\n    entityMap[rawEntityKey]=DraftEntity.__create(type, mutability, data||{});\n  });\n  return entityMap;\n};\n\nvar convertFromRawToDraftState=function convertFromRawToDraftState(rawState){\n  !Array.isArray(rawState.blocks) ?  true ? invariant(false, 'invalid RawDraftContentState'):undefined:void 0; // decode entities\n\n  var entityMap=decodeRawEntityMap(rawState); // decode blockMap\n\n  var blockMap=decodeRawBlocks(rawState, entityMap); // create initial selection\n\n  var selectionState=blockMap.isEmpty() ? new SelectionState():SelectionState.createEmpty(blockMap.first().getKey());\n  return new ContentState({\n    blockMap: blockMap,\n    entityMap: entityMap,\n    selectionBefore: selectionState,\n    selectionAfter: selectionState\n  });\n};\n\nmodule.exports=convertFromRawToDraftState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/convertFromRawToDraftState.js?");
}),
"./node_modules/draft-js/lib/createCharacterList.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar List=Immutable.List;\n\nfunction createCharacterList(inlineStyles, entities){\n  var characterArray=inlineStyles.map(function (style, ii){\n    var entity=entities[ii];\n    return CharacterMetadata.create({\n      style: style,\n      entity: entity\n    });\n  });\n  return List(characterArray);\n}\n\nmodule.exports=createCharacterList;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/createCharacterList.js?");
}),
"./node_modules/draft-js/lib/decodeEntityRanges.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UnicodeUtils=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeUtils.js\");\n\nvar substr=UnicodeUtils.substr;\n\n\nfunction decodeEntityRanges(text, ranges){\n  var entities=Array(text.length).fill(null);\n\n  if(ranges){\n    ranges.forEach(function (range){\n      // Using Unicode-enabled substrings converted to JavaScript lengths,\n      // fill the output array with entity keys.\n      var start=substr(text, 0, range.offset).length;\n      var end=start + substr(text, range.offset, range.length).length;\n\n      for (var ii=start; ii < end; ii++){\n        entities[ii]=range.key;\n      }\n    });\n  }\n\n  return entities;\n}\n\nmodule.exports=decodeEntityRanges;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/decodeEntityRanges.js?");
}),
"./node_modules/draft-js/lib/decodeInlineStyleRanges.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UnicodeUtils=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeUtils.js\");\n\nvar _require=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\"),\n    OrderedSet=_require.OrderedSet;\n\nvar substr=UnicodeUtils.substr;\nvar EMPTY_SET=OrderedSet();\n\n\nfunction decodeInlineStyleRanges(text, ranges){\n  var styles=Array(text.length).fill(EMPTY_SET);\n\n  if(ranges){\n    ranges.forEach(function (range){\n      var cursor=substr(text, 0, range.offset).length;\n      var end=cursor + substr(text, range.offset, range.length).length;\n\n      while (cursor < end){\n        styles[cursor]=styles[cursor].add(range.style);\n        cursor++;\n      }\n    });\n  }\n\n  return styles;\n}\n\nmodule.exports=decodeInlineStyleRanges;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/decodeInlineStyleRanges.js?");
}),
"./node_modules/draft-js/lib/draftKeyUtils.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction notEmptyKey(key){\n  return key!=null&&key!='';\n}\n\nmodule.exports={\n  notEmptyKey: notEmptyKey\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/draftKeyUtils.js?");
}),
"./node_modules/draft-js/lib/editOnBeforeInput.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar getEntityKeyForSelection=__webpack_require__( \"./node_modules/draft-js/lib/getEntityKeyForSelection.js\");\n\nvar isEventHandled=__webpack_require__( \"./node_modules/draft-js/lib/isEventHandled.js\");\n\nvar isSelectionAtLeafStart=__webpack_require__( \"./node_modules/draft-js/lib/isSelectionAtLeafStart.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar setImmediate=__webpack_require__( \"./node_modules/fbjs/lib/setImmediate.js\"); // When nothing is focused, Firefox regards two characters, `'` and `/`, as\n// commands that should open and focus the \"quickfind\" search bar. This should\n// *never* happen while a contenteditable is focused, but as of v28, it\n// sometimes does, even when the keypress event target is the contenteditable.\n// This breaks the input. Special case these characters to ensure that when\n// they are typed, we prevent default on the event to make sure not to\n// trigger quickfind.\n\n\nvar FF_QUICKFIND_CHAR=\"'\";\nvar FF_QUICKFIND_LINK_CHAR='/';\nvar isFirefox=UserAgent.isBrowser('Firefox');\n\nfunction mustPreventDefaultForCharacter(character){\n  return isFirefox&&(character==FF_QUICKFIND_CHAR||character==FF_QUICKFIND_LINK_CHAR);\n}\n\n\n\nfunction replaceText(editorState, text, inlineStyle, entityKey, forceSelection){\n  var contentState=DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), text, inlineStyle, entityKey);\n  return EditorState.push(editorState, contentState, 'insert-characters', forceSelection);\n}\n\n\n\nfunction editOnBeforeInput(editor, e){\n  if(editor._pendingStateFromBeforeInput!==undefined){\n    editor.update(editor._pendingStateFromBeforeInput);\n    editor._pendingStateFromBeforeInput=undefined;\n  }\n\n  var editorState=editor._latestEditorState;\n  var chars=e.data; // In some cases (ex: IE ideographic space insertion) no character data\n  // is provided. There's nothing to do when this happens.\n\n  if(!chars){\n    return;\n  } // Allow the top-level component to handle the insertion manually. This is\n  // useful when triggering interesting behaviors for a character insertion,\n  // Simple examples: replacing a raw text ':)' with a smile emoji or image\n  // decorator, or setting a block to be a list item after typing '- ' at the\n  // start of the block.\n\n\n  if(editor.props.handleBeforeInput&&isEventHandled(editor.props.handleBeforeInput(chars, editorState, e.timeStamp))){\n    e.preventDefault();\n    return;\n  } // If selection is collapsed, conditionally allow native behavior. This\n  // reduces re-renders and preserves spellcheck highlighting. If the selection\n  // is not collapsed, we will re-render.\n\n\n  var selection=editorState.getSelection();\n  var selectionStart=selection.getStartOffset();\n  var anchorKey=selection.getAnchorKey();\n\n  if(!selection.isCollapsed()){\n    e.preventDefault();\n    editor.update(replaceText(editorState, chars, editorState.getCurrentInlineStyle(), getEntityKeyForSelection(editorState.getCurrentContent(), editorState.getSelection()), true));\n    return;\n  }\n\n  var newEditorState=replaceText(editorState, chars, editorState.getCurrentInlineStyle(), getEntityKeyForSelection(editorState.getCurrentContent(), editorState.getSelection()), false); // Bunch of different cases follow where we need to prevent native insertion.\n\n  var mustPreventNative=false;\n\n  if(!mustPreventNative){\n    // Browsers tend to insert text in weird places in the DOM when typing at\n    // the start of a leaf, so we'll handle it ourselves.\n    mustPreventNative=isSelectionAtLeafStart(editor._latestCommittedEditorState);\n  }\n\n  if(!mustPreventNative){\n    // Let's say we have a decorator that highlights hashtags. In many cases\n    // we need to prevent native behavior and rerender ourselves --\n    // particularly, any case *except* where the inserted characters end up\n    // anywhere except exactly where you put them.\n    //\n    // Using [] to denote a decorated leaf, some examples:\n    //\n    // 1. 'hi #' and append 'f'\n    // desired rendering: 'hi [#f]'\n    // native rendering would be: 'hi #f' (incorrect)\n    //\n    // 2. 'x [#foo]' and insert '#' before 'f'\n    // desired rendering: 'x #[#foo]'\n    // native rendering would be: 'x [##foo]' (incorrect)\n    //\n    // 3. '[#foobar]' and insert ' ' between 'foo' and 'bar'\n    // desired rendering: '[#foo] bar'\n    // native rendering would be: '[#foo bar]' (incorrect)\n    //\n    // 4. '[#foo]' and delete '#' [won't use this beforeinput codepath though]\n    // desired rendering: 'foo'\n    // native rendering would be: '[foo]' (incorrect)\n    //\n    // 5. '[#foo]' and append 'b'\n    // desired rendering: '[#foob]'\n    // native rendering would be: '[#foob]'\n    // (native insertion here would be ok for decorators like simple spans,\n    // but not more complex decorators. To be safe, we need to prevent it.)\n    //\n    // It is safe to allow native insertion if and only if the full list of\n    // decorator ranges matches what we expect native insertion to give, and\n    // the range lengths have not changed. We don't need to compare the content\n    // because the only possible mutation to consider here is inserting plain\n    // text and decorators can't affect text content.\n    var oldBlockTree=editorState.getBlockTree(anchorKey);\n    var newBlockTree=newEditorState.getBlockTree(anchorKey);\n    mustPreventNative=oldBlockTree.size!==newBlockTree.size||oldBlockTree.zip(newBlockTree).some(function (_ref){\n      var oldLeafSet=_ref[0],\n          newLeafSet=_ref[1];\n      // selectionStart is guaranteed to be selectionEnd here\n      var oldStart=oldLeafSet.get('start');\n      var adjustedStart=oldStart + (oldStart >=selectionStart ? chars.length:0);\n      var oldEnd=oldLeafSet.get('end');\n      var adjustedEnd=oldEnd + (oldEnd >=selectionStart ? chars.length:0);\n      var newStart=newLeafSet.get('start');\n      var newEnd=newLeafSet.get('end');\n      var newDecoratorKey=newLeafSet.get('decoratorKey');\n      return (// Different decorators\n        oldLeafSet.get('decoratorKey')!==newDecoratorKey||// Different number of inline styles\n        oldLeafSet.get('leaves').size!==newLeafSet.get('leaves').size||// Different effective decorator position\n        adjustedStart!==newStart||adjustedEnd!==newEnd||// Decorator already existed and its length changed\n        newDecoratorKey!=null&&newEnd - newStart!==oldEnd - oldStart\n);\n    });\n  }\n\n  if(!mustPreventNative){\n    mustPreventNative=mustPreventDefaultForCharacter(chars);\n  }\n\n  if(!mustPreventNative){\n    mustPreventNative=nullthrows(newEditorState.getDirectionMap()).get(anchorKey)!==nullthrows(editorState.getDirectionMap()).get(anchorKey);\n  }\n\n  if(mustPreventNative){\n    e.preventDefault();\n    newEditorState=EditorState.set(newEditorState, {\n      forceSelection: true\n    });\n    editor.update(newEditorState);\n    return;\n  } // We made it all the way! Let the browser do its thing and insert the char.\n\n\n  newEditorState=EditorState.set(newEditorState, {\n    nativelyRenderedContent: newEditorState.getCurrentContent()\n  });// The native event is allowed to occur. To allow user onChange handlers to\n  // change the inserted text, we wait until the text is actually inserted\n  // before we actually update our state. That way when we rerender, the text\n  // we see in the DOM will already have been inserted properly.\n\n  editor._pendingStateFromBeforeInput=newEditorState;\n  setImmediate(function (){\n    if(editor._pendingStateFromBeforeInput!==undefined){\n      editor.update(editor._pendingStateFromBeforeInput);\n      editor._pendingStateFromBeforeInput=undefined;\n    }\n  });\n}\n\nmodule.exports=editOnBeforeInput;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnBeforeInput.js?");
}),
"./node_modules/draft-js/lib/editOnBlur.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar containsNode=__webpack_require__( \"./node_modules/fbjs/lib/containsNode.js\");\n\nvar getActiveElement=__webpack_require__( \"./node_modules/fbjs/lib/getActiveElement.js\");\n\nfunction editOnBlur(editor, e){\n  // In a contentEditable element, when you select a range and then click\n  // another active element, this does trigger a `blur` event but will not\n  // remove the DOM selection from the contenteditable.\n  // This is consistent across all browsers, but we prefer that the editor\n  // behave like a textarea, where a `blur` event clears the DOM selection.\n  // We therefore force the issue to be certain, checking whether the active\n  // element is `body` to force it when blurring occurs within the window (as\n  // opposed to clicking to another tab or window).\n  var ownerDocument=e.currentTarget.ownerDocument;\n\n  if(// This ESLint rule conflicts with `sketchy-null-bool` flow check\n  // eslint-disable-next-line no-extra-boolean-cast\n  !Boolean(editor.props.preserveSelectionOnBlur)&&getActiveElement(ownerDocument)===ownerDocument.body){\n    var _selection=ownerDocument.defaultView.getSelection();\n\n    var editorNode=editor.editor;\n\n    if(_selection.rangeCount===1&&containsNode(editorNode, _selection.anchorNode)&&containsNode(editorNode, _selection.focusNode)){\n      _selection.removeAllRanges();\n    }\n  }\n\n  var editorState=editor._latestEditorState;\n  var currentSelection=editorState.getSelection();\n\n  if(!currentSelection.getHasFocus()){\n    return;\n  }\n\n  var selection=currentSelection.set('hasFocus', false);\n  editor.props.onBlur&&editor.props.onBlur(e);\n  editor.update(EditorState.acceptSelection(editorState, selection));\n}\n\nmodule.exports=editOnBlur;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnBlur.js?");
}),
"./node_modules/draft-js/lib/editOnCompositionStart.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\n\n\nfunction editOnCompositionStart(editor, e){\n  editor.setMode('composite');\n  editor.update(EditorState.set(editor._latestEditorState, {\n    inCompositionMode: true\n  })); // Allow composition handler to interpret the compositionstart event\n\n  editor._onCompositionStart(e);\n}\n\nmodule.exports=editOnCompositionStart;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnCompositionStart.js?");
}),
"./node_modules/draft-js/lib/editOnCopy.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getFragmentFromSelection=__webpack_require__( \"./node_modules/draft-js/lib/getFragmentFromSelection.js\");\n\n\n\nfunction editOnCopy(editor, e){\n  var editorState=editor._latestEditorState;\n  var selection=editorState.getSelection(); // No selection, so there's nothing to copy.\n\n  if(selection.isCollapsed()){\n    e.preventDefault();\n    return;\n  }\n\n  editor.setClipboard(getFragmentFromSelection(editor._latestEditorState));\n}\n\nmodule.exports=editOnCopy;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnCopy.js?");
}),
"./node_modules/draft-js/lib/editOnCut.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar Style=__webpack_require__( \"./node_modules/fbjs/lib/Style.js\");\n\nvar getFragmentFromSelection=__webpack_require__( \"./node_modules/draft-js/lib/getFragmentFromSelection.js\");\n\nvar getScrollPosition=__webpack_require__( \"./node_modules/fbjs/lib/getScrollPosition.js\");\n\nvar isNode=__webpack_require__( \"./node_modules/draft-js/lib/isInstanceOfNode.js\");\n\n\n\nfunction editOnCut(editor, e){\n  var editorState=editor._latestEditorState;\n  var selection=editorState.getSelection();\n  var element=e.target;\n  var scrollPosition; // No selection, so there's nothing to cut.\n\n  if(selection.isCollapsed()){\n    e.preventDefault();\n    return;\n  } // Track the current scroll position so that it can be forced back in place\n  // after the editor regains control of the DOM.\n\n\n  if(isNode(element)){\n    var node=element;\n    scrollPosition=getScrollPosition(Style.getScrollParent(node));\n  }\n\n  var fragment=getFragmentFromSelection(editorState);\n  editor.setClipboard(fragment); // Set `cut` mode to disable all event handling temporarily.\n\n  editor.setMode('cut'); // Let native `cut` behavior occur, then recover control.\n\n  setTimeout(function (){\n    editor.restoreEditorDOM(scrollPosition);\n    editor.exitCurrentMode();\n    editor.update(removeFragment(editorState));\n  }, 0);\n}\n\nfunction removeFragment(editorState){\n  var newContent=DraftModifier.removeRange(editorState.getCurrentContent(), editorState.getSelection(), 'forward');\n  return EditorState.push(editorState, newContent, 'remove-range');\n}\n\nmodule.exports=editOnCut;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnCut.js?");
}),
"./node_modules/draft-js/lib/editOnDragOver.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction editOnDragOver(editor, e){\n  editor.setMode('drag');\n  e.preventDefault();\n}\n\nmodule.exports=editOnDragOver;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnDragOver.js?");
}),
"./node_modules/draft-js/lib/editOnDragStart.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction editOnDragStart(editor){\n  editor._internalDrag=true;\n  editor.setMode('drag');\n}\n\nmodule.exports=editOnDragStart;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnDragStart.js?");
}),
"./node_modules/draft-js/lib/editOnFocus.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nfunction editOnFocus(editor, e){\n  var editorState=editor._latestEditorState;\n  var currentSelection=editorState.getSelection();\n\n  if(currentSelection.getHasFocus()){\n    return;\n  }\n\n  var selection=currentSelection.set('hasFocus', true);\n  editor.props.onFocus&&editor.props.onFocus(e); // When the tab containing this text editor is hidden and the user does a\n  // find-in-page in a _different_ tab, Chrome on Mac likes to forget what the\n  // selection was right after sending this focus event and (if you let it)\n  // moves the cursor back to the beginning of the editor, so we force the\n  // selection here instead of simply accepting it in order to preserve the\n  // old cursor position. See https://crbug.com/540004.\n  // But it looks like this is fixed in Chrome 60.0.3081.0.\n  // Other browsers also don't have this bug, so we prefer to acceptSelection\n  // when possible, to ensure that unfocusing and refocusing a Draft editor\n  // doesn't preserve the selection, matching how textareas work.\n\n  if(UserAgent.isBrowser('Chrome < 60.0.3081.0')){\n    editor.update(EditorState.forceSelection(editorState, selection));\n  }else{\n    editor.update(EditorState.acceptSelection(editorState, selection));\n  }\n}\n\nmodule.exports=editOnFocus;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnFocus.js?");
}),
"./node_modules/draft-js/lib/editOnInput.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar _require=__webpack_require__( \"./node_modules/draft-js/lib/draftKeyUtils.js\"),\n    notEmptyKey=_require.notEmptyKey;\n\nvar findAncestorOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/findAncestorOffsetKey.js\");\n\nvar keyCommandPlainBackspace=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandPlainBackspace.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nvar isGecko=UserAgent.isEngine('Gecko');\nvar DOUBLE_NEWLINE='\\n\\n';\n\nfunction onInputType(inputType, editorState){\n  switch (inputType){\n    case 'deleteContentBackward':\n      return keyCommandPlainBackspace(editorState);\n  }\n\n  return editorState;\n}\n\n\n\nfunction editOnInput(editor, e){\n  if(editor._pendingStateFromBeforeInput!==undefined){\n    editor.update(editor._pendingStateFromBeforeInput);\n    editor._pendingStateFromBeforeInput=undefined;\n  } // at this point editor is not null for sure (after input)\n\n\n  var castedEditorElement=editor.editor;\n  var domSelection=castedEditorElement.ownerDocument.defaultView.getSelection();\n  var anchorNode=domSelection.anchorNode,\n      isCollapsed=domSelection.isCollapsed;\n  var isNotTextOrElementNode=(anchorNode===null||anchorNode===void 0 ? void 0:anchorNode.nodeType)!==Node.TEXT_NODE&&(anchorNode===null||anchorNode===void 0 ? void 0:anchorNode.nodeType)!==Node.ELEMENT_NODE;\n\n  if(anchorNode==null||isNotTextOrElementNode){\n    // TODO: (t16149272) figure out context for this change\n    return;\n  }\n\n  if(anchorNode.nodeType===Node.TEXT_NODE&&(anchorNode.previousSibling!==null||anchorNode.nextSibling!==null)){\n    // When typing at the beginning of a visual line, Chrome splits the text\n    // nodes into two. Why? No one knows. This commit is suspicious:\n    // https://chromium.googlesource.com/chromium/src/+/a3b600981286b135632371477f902214c55a1724\n    // To work around, we'll merge the sibling text nodes back into this one.\n    var span=anchorNode.parentNode;\n\n    if(span==null){\n      // Handle null-parent case.\n      return;\n    }\n\n    anchorNode.nodeValue=span.textContent;\n\n    for (var child=span.firstChild; child!=null; child=child.nextSibling){\n      if(child!==anchorNode){\n        span.removeChild(child);\n      }\n    }\n  }\n\n  var domText=anchorNode.textContent;\n  var editorState=editor._latestEditorState;\n  var offsetKey=nullthrows(findAncestorOffsetKey(anchorNode));\n\n  var _DraftOffsetKey$decod=DraftOffsetKey.decode(offsetKey),\n      blockKey=_DraftOffsetKey$decod.blockKey,\n      decoratorKey=_DraftOffsetKey$decod.decoratorKey,\n      leafKey=_DraftOffsetKey$decod.leafKey;\n\n  var _editorState$getBlock=editorState.getBlockTree(blockKey).getIn([decoratorKey, 'leaves', leafKey]),\n      start=_editorState$getBlock.start,\n      end=_editorState$getBlock.end;\n\n  var content=editorState.getCurrentContent();\n  var block=content.getBlockForKey(blockKey);\n  var modelText=block.getText().slice(start, end); // Special-case soft newlines here. If the DOM text ends in a soft newline,\n  // we will have manually inserted an extra soft newline in DraftEditorLeaf.\n  // We want to remove this extra newline for the purpose of our comparison\n  // of DOM and model text.\n\n  if(domText.endsWith(DOUBLE_NEWLINE)){\n    domText=domText.slice(0, -1);\n  } // No change -- the DOM is up to date. Nothing to do here.\n\n\n  if(domText===modelText){\n    // This can be buggy for some Android keyboards because they don't fire\n    // standard onkeydown/pressed events and only fired editOnInput\n    // so domText is already changed by the browser and ends up being equal\n    // to modelText unexpectedly.\n    // Newest versions of Android support the dom-inputevent-inputtype\n    // and we can use the `inputType` to properly apply the state changes.\n\n    \n    var inputType=e.nativeEvent.inputType;\n\n    if(inputType){\n      var newEditorState=onInputType(inputType, editorState);\n\n      if(newEditorState!==editorState){\n        editor.restoreEditorDOM();\n        editor.update(newEditorState);\n        return;\n      }\n    }\n\n    return;\n  }\n\n  var selection=editorState.getSelection(); // We'll replace the entire leaf with the text content of the target.\n\n  var targetRange=selection.merge({\n    anchorOffset: start,\n    focusOffset: end,\n    isBackward: false\n  });\n  var entityKey=block.getEntityAt(start);\n  var entity=notEmptyKey(entityKey) ? content.getEntity(entityKey):null;\n  var entityType=entity!=null ? entity.getMutability():null;\n  var preserveEntity=entityType==='MUTABLE'; // Immutable or segmented entities cannot properly be handled by the\n  // default browser undo, so we have to use a different change type to\n  // force using our internal undo method instead of falling through to the\n  // native browser undo.\n\n  var changeType=preserveEntity ? 'spellcheck-change':'apply-entity';\n  var newContent=DraftModifier.replaceText(content, targetRange, domText, block.getInlineStyleAt(start), preserveEntity ? block.getEntityAt(start):null);\n  var anchorOffset, focusOffset, startOffset, endOffset;\n\n  if(isGecko){\n    // Firefox selection does not change while the context menu is open, so\n    // we preserve the anchor and focus values of the DOM selection.\n    anchorOffset=domSelection.anchorOffset;\n    focusOffset=domSelection.focusOffset;\n    startOffset=start + Math.min(anchorOffset, focusOffset);\n    endOffset=startOffset + Math.abs(anchorOffset - focusOffset);\n    anchorOffset=startOffset;\n    focusOffset=endOffset;\n  }else{\n    // Browsers other than Firefox may adjust DOM selection while the context\n    // menu is open, and Safari autocorrect is prone to providing an inaccurate\n    // DOM selection. Don't trust it. Instead, use our existing SelectionState\n    // and adjust it based on the number of characters changed during the\n    // mutation.\n    var charDelta=domText.length - modelText.length;\n    startOffset=selection.getStartOffset();\n    endOffset=selection.getEndOffset();\n    anchorOffset=isCollapsed ? endOffset + charDelta:startOffset;\n    focusOffset=endOffset + charDelta;\n  } // Segmented entities are completely or partially removed when their\n  // text content changes. For this case we do not want any text to be selected\n  // after the change, so we are not merging the selection.\n\n\n  var contentWithAdjustedDOMSelection=newContent.merge({\n    selectionBefore: content.getSelectionAfter(),\n    selectionAfter: selection.merge({\n      anchorOffset: anchorOffset,\n      focusOffset: focusOffset\n    })\n  });\n  editor.update(EditorState.push(editorState, contentWithAdjustedDOMSelection, changeType));\n}\n\nmodule.exports=editOnInput;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnInput.js?");
}),
"./node_modules/draft-js/lib/editOnKeyDown.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar KeyBindingUtil=__webpack_require__( \"./node_modules/draft-js/lib/KeyBindingUtil.js\");\n\nvar Keys=__webpack_require__( \"./node_modules/fbjs/lib/Keys.js\");\n\nvar SecondaryClipboard=__webpack_require__( \"./node_modules/draft-js/lib/SecondaryClipboard.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar isEventHandled=__webpack_require__( \"./node_modules/draft-js/lib/isEventHandled.js\");\n\nvar keyCommandBackspaceToStartOfLine=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandBackspaceToStartOfLine.js\");\n\nvar keyCommandBackspaceWord=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandBackspaceWord.js\");\n\nvar keyCommandDeleteWord=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandDeleteWord.js\");\n\nvar keyCommandInsertNewline=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandInsertNewline.js\");\n\nvar keyCommandMoveSelectionToEndOfBlock=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandMoveSelectionToEndOfBlock.js\");\n\nvar keyCommandMoveSelectionToStartOfBlock=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandMoveSelectionToStartOfBlock.js\");\n\nvar keyCommandPlainBackspace=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandPlainBackspace.js\");\n\nvar keyCommandPlainDelete=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandPlainDelete.js\");\n\nvar keyCommandTransposeCharacters=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandTransposeCharacters.js\");\n\nvar keyCommandUndo=__webpack_require__( \"./node_modules/draft-js/lib/keyCommandUndo.js\");\n\nvar isOptionKeyCommand=KeyBindingUtil.isOptionKeyCommand;\nvar isChrome=UserAgent.isBrowser('Chrome');\n\n\nfunction onKeyCommand (command, editorState, e){\n  switch (command){\n    case 'redo':\n      return EditorState.redo(editorState);\n\n    case 'delete':\n      return keyCommandPlainDelete(editorState);\n\n    case 'delete-word':\n      return keyCommandDeleteWord(editorState);\n\n    case 'backspace':\n      return keyCommandPlainBackspace(editorState);\n\n    case 'backspace-word':\n      return keyCommandBackspaceWord(editorState);\n\n    case 'backspace-to-start-of-line':\n      return keyCommandBackspaceToStartOfLine(editorState, e);\n\n    case 'split-block':\n      return keyCommandInsertNewline(editorState);\n\n    case 'transpose-characters':\n      return keyCommandTransposeCharacters(editorState);\n\n    case 'move-selection-to-start-of-block':\n      return keyCommandMoveSelectionToStartOfBlock(editorState);\n\n    case 'move-selection-to-end-of-block':\n      return keyCommandMoveSelectionToEndOfBlock(editorState);\n\n    case 'secondary-cut':\n      return SecondaryClipboard.cut(editorState);\n\n    case 'secondary-paste':\n      return SecondaryClipboard.paste(editorState);\n\n    default:\n      return editorState;\n  }\n}\n\n\n\nfunction editOnKeyDown(editor, e){\n  var keyCode=e.which;\n  var editorState=editor._latestEditorState;\n\n  function callDeprecatedHandler(handlerName){\n    var deprecatedHandler=editor.props[handlerName];\n\n    if(deprecatedHandler){\n      deprecatedHandler(e);\n      return true;\n    }else{\n      return false;\n    }\n  }\n\n  switch (keyCode){\n    case Keys.RETURN:\n      e.preventDefault(); // The top-level component may manually handle newline insertion. If\n      // no special handling is performed, fall through to command handling.\n\n      if(editor.props.handleReturn&&isEventHandled(editor.props.handleReturn(e, editorState))){\n        return;\n      }\n\n      break;\n\n    case Keys.ESC:\n      e.preventDefault();\n\n      if(callDeprecatedHandler('onEscape')){\n        return;\n      }\n\n      break;\n\n    case Keys.TAB:\n      if(callDeprecatedHandler('onTab')){\n        return;\n      }\n\n      break;\n\n    case Keys.UP:\n      if(callDeprecatedHandler('onUpArrow')){\n        return;\n      }\n\n      break;\n\n    case Keys.RIGHT:\n      if(callDeprecatedHandler('onRightArrow')){\n        return;\n      }\n\n      break;\n\n    case Keys.DOWN:\n      if(callDeprecatedHandler('onDownArrow')){\n        return;\n      }\n\n      break;\n\n    case Keys.LEFT:\n      if(callDeprecatedHandler('onLeftArrow')){\n        return;\n      }\n\n      break;\n\n    case Keys.SPACE:\n      // Prevent Chrome on OSX behavior where option + space scrolls.\n      if(isChrome&&isOptionKeyCommand (e)){\n        e.preventDefault();\n      }\n\n  }\n\n  var command=editor.props.keyBindingFn(e); // If no command is specified, allow keydown event to continue.\n\n  if(command==null||command===''){\n    if(keyCode===Keys.SPACE&&isChrome&&isOptionKeyCommand (e)){\n      // The default keydown event has already been prevented in order to stop\n      // Chrome from scrolling. Insert a nbsp into the editor as OSX would for\n      // other browsers.\n      var contentState=DraftModifier.replaceText(editorState.getCurrentContent(), editorState.getSelection(), \"\\xA0\");\n      editor.update(EditorState.push(editorState, contentState, 'insert-characters'));\n    }\n\n    return;\n  }\n\n  if(command==='undo'){\n    // Since undo requires some special updating behavior to keep the editor\n    // in sync, handle it separately.\n    keyCommandUndo(e, editorState, editor.update);\n    return;\n  } // At this point, we know that we're handling a command of some kind, so\n  // we don't want to insert a character following the keydown.\n\n\n  e.preventDefault(); // Allow components higher up the tree to handle the command first.\n\n  if(editor.props.handleKeyCommand&&isEventHandled(editor.props.handleKeyCommand (command, editorState, e.timeStamp))){\n    return;\n  }\n\n  var newState=onKeyCommand (command, editorState, e);\n\n  if(newState!==editorState){\n    editor.update(newState);\n  }\n}\n\nmodule.exports=editOnKeyDown;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnKeyDown.js?");
}),
"./node_modules/draft-js/lib/editOnPaste.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar BlockMapBuilder=__webpack_require__( \"./node_modules/draft-js/lib/BlockMapBuilder.js\");\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar DataTransfer=__webpack_require__( \"./node_modules/fbjs/lib/DataTransfer.js\");\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar DraftPasteProcessor=__webpack_require__( \"./node_modules/draft-js/lib/DraftPasteProcessor.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar RichTextEditorUtil=__webpack_require__( \"./node_modules/draft-js/lib/RichTextEditorUtil.js\");\n\nvar getEntityKeyForSelection=__webpack_require__( \"./node_modules/draft-js/lib/getEntityKeyForSelection.js\");\n\nvar getTextContentFromFiles=__webpack_require__( \"./node_modules/draft-js/lib/getTextContentFromFiles.js\");\n\nvar isEventHandled=__webpack_require__( \"./node_modules/draft-js/lib/isEventHandled.js\");\n\nvar splitTextIntoTextBlocks=__webpack_require__( \"./node_modules/draft-js/lib/splitTextIntoTextBlocks.js\");\n\n\n\nfunction editOnPaste(editor, e){\n  e.preventDefault();\n  var data=new DataTransfer(e.clipboardData); // Get files, unless this is likely to be a string the user wants inline.\n\n  if(!data.isRichText()){\n    var files=data.getFiles();\n    var defaultFileText=data.getText();\n\n    if(files.length > 0){\n      // Allow customized paste handling for images, etc. Otherwise, fall\n      // through to insert text contents into the editor.\n      if(editor.props.handlePastedFiles&&isEventHandled(editor.props.handlePastedFiles(files))){\n        return;\n      }\n      \n\n\n      getTextContentFromFiles(files, function (\n      \n      fileText){\n        fileText=fileText||defaultFileText;\n\n        if(!fileText){\n          return;\n        }\n\n        var editorState=editor._latestEditorState;\n        var blocks=splitTextIntoTextBlocks(fileText);\n        var character=CharacterMetadata.create({\n          style: editorState.getCurrentInlineStyle(),\n          entity: getEntityKeyForSelection(editorState.getCurrentContent(), editorState.getSelection())\n        });\n        var currentBlockType=RichTextEditorUtil.getCurrentBlockType(editorState);\n        var text=DraftPasteProcessor.processText(blocks, character, currentBlockType);\n        var fragment=BlockMapBuilder.createFromArray(text);\n        var withInsertedText=DraftModifier.replaceWithFragment(editorState.getCurrentContent(), editorState.getSelection(), fragment);\n        editor.update(EditorState.push(editorState, withInsertedText, 'insert-fragment'));\n      });\n      return;\n    }\n  }\n\n  var textBlocks=[];\n  var text=data.getText();\n  var html=data.getHTML();\n  var editorState=editor._latestEditorState;\n\n  if(editor.props.formatPastedText){\n    var _editor$props$formatP=editor.props.formatPastedText(text, html),\n        formattedText=_editor$props$formatP.text,\n        formattedHtml=_editor$props$formatP.html;\n\n    text=formattedText;\n    html=formattedHtml;\n  }\n\n  if(editor.props.handlePastedText&&isEventHandled(editor.props.handlePastedText(text, html, editorState))){\n    return;\n  }\n\n  if(text){\n    textBlocks=splitTextIntoTextBlocks(text);\n  }\n\n  if(!editor.props.stripPastedStyles){\n    // If the text from the paste event is rich content that matches what we\n    // already have on the internal clipboard, assume that we should just use\n    // the clipboard fragment for the paste. This will allow us to preserve\n    // styling and entities, if any are present. Note that newlines are\n    // stripped during comparison -- this is because copy/paste within the\n    // editor in Firefox and IE will not include empty lines. The resulting\n    // paste will preserve the newlines correctly.\n    var internalClipboard=editor.getClipboard();\n\n    if(!editor.props.formatPastedText&&data.isRichText()&&internalClipboard){\n      var _html;\n\n      if(// If the editorKey is present in the pasted HTML, it should be safe to\n      // assume this is an internal paste.\n      ((_html=html)===null||_html===void 0 ? void 0:_html.indexOf(editor.getEditorKey()))!==-1||// The copy may have been made within a single block, in which case the\n      // editor key won't be part of the paste. In this case, just check\n      // whether the pasted text matches the internal clipboard.\n      textBlocks.length===1&&internalClipboard.size===1&&internalClipboard.first().getText()===text){\n        editor.update(insertFragment(editor._latestEditorState, internalClipboard));\n        return;\n      }\n    }else if(internalClipboard&&data.types.includes('com.apple.webarchive')&&!data.types.includes('text/html')&&areTextBlocksAndClipboardEqual(textBlocks, internalClipboard)){\n      // Safari does not properly store text/html in some cases.\n      // Use the internalClipboard if present and equal to what is on\n      // the clipboard. See https://bugs.webkit.org/show_bug.cgi?id=19893.\n      editor.update(insertFragment(editor._latestEditorState, internalClipboard));\n      return;\n    } // If there is html paste data, try to parse that.\n\n\n    if(html){\n      var htmlFragment=DraftPasteProcessor.processHTML(html, editor.props.blockRenderMap);\n\n      if(htmlFragment){\n        var contentBlocks=htmlFragment.contentBlocks,\n            entityMap=htmlFragment.entityMap;\n\n        if(contentBlocks){\n          var htmlMap=BlockMapBuilder.createFromArray(contentBlocks);\n          editor.update(insertFragment(editor._latestEditorState, htmlMap, entityMap));\n          return;\n        }\n      }\n    } // Otherwise, create a new fragment from our pasted text. Also\n    // empty the internal clipboard, since it's no longer valid.\n\n\n    editor.setClipboard(null);\n  }\n\n  if(textBlocks.length){\n    var character=CharacterMetadata.create({\n      style: editorState.getCurrentInlineStyle(),\n      entity: getEntityKeyForSelection(editorState.getCurrentContent(), editorState.getSelection())\n    });\n    var currentBlockType=RichTextEditorUtil.getCurrentBlockType(editorState);\n    var textFragment=DraftPasteProcessor.processText(textBlocks, character, currentBlockType);\n    var textMap=BlockMapBuilder.createFromArray(textFragment);\n    editor.update(insertFragment(editor._latestEditorState, textMap));\n  }\n}\n\nfunction insertFragment(editorState, fragment, entityMap){\n  var newContent=DraftModifier.replaceWithFragment(editorState.getCurrentContent(), editorState.getSelection(), fragment); // TODO: merge the entity map once we stop using DraftEntity\n  // like this:\n  // const mergedEntityMap=newContent.getEntityMap().merge(entityMap);\n\n  return EditorState.push(editorState, newContent.set('entityMap', entityMap), 'insert-fragment');\n}\n\nfunction areTextBlocksAndClipboardEqual(textBlocks, blockMap){\n  return textBlocks.length===blockMap.size&&blockMap.valueSeq().every(function (block, ii){\n    return block.getText()===textBlocks[ii];\n  });\n}\n\nmodule.exports=editOnPaste;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnPaste.js?");
}),
"./node_modules/draft-js/lib/editOnSelect.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftJsDebugLogging=__webpack_require__( \"./node_modules/draft-js/lib/DraftJsDebugLogging.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar getContentEditableContainer=__webpack_require__( \"./node_modules/draft-js/lib/getContentEditableContainer.js\");\n\nvar getDraftEditorSelection=__webpack_require__( \"./node_modules/draft-js/lib/getDraftEditorSelection.js\");\n\nfunction editOnSelect(editor){\n  if(editor._blockSelectEvents||editor._latestEditorState!==editor.props.editorState){\n    if(editor._blockSelectEvents){\n      var _editorState=editor.props.editorState;\n\n      var selectionState=_editorState.getSelection();\n\n      DraftJsDebugLogging.logBlockedSelectionEvent({\n        // For now I don't think we need any other info\n        anonymizedDom: 'N/A',\n        extraParams: JSON.stringify({\n          stacktrace: new Error().stack\n        }),\n        selectionState: JSON.stringify(selectionState.toJS())\n      });\n    }\n\n    return;\n  }\n\n  var editorState=editor.props.editorState;\n  var documentSelection=getDraftEditorSelection(editorState, getContentEditableContainer(editor));\n  var updatedSelectionState=documentSelection.selectionState;\n\n  if(updatedSelectionState!==editorState.getSelection()){\n    if(documentSelection.needsRecovery){\n      editorState=EditorState.forceSelection(editorState, updatedSelectionState);\n    }else{\n      editorState=EditorState.acceptSelection(editorState, updatedSelectionState);\n    }\n\n    editor.update(editorState);\n  }\n}\n\nmodule.exports=editOnSelect;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/editOnSelect.js?");
}),
"./node_modules/draft-js/lib/encodeEntityRanges.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftStringKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftStringKey.js\");\n\nvar UnicodeUtils=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeUtils.js\");\n\nvar strlen=UnicodeUtils.strlen;\n\n\nfunction encodeEntityRanges(block, storageMap){\n  var encoded=[];\n  block.findEntityRanges(function (character){\n    return !!character.getEntity();\n  }, function (\n  \n  start,\n  \n  end){\n    var text=block.getText();\n    var key=block.getEntityAt(start);\n    encoded.push({\n      offset: strlen(text.slice(0, start)),\n      length: strlen(text.slice(start, end)),\n      // Encode the key as a number for range storage.\n      key: Number(storageMap[DraftStringKey.stringify(key)])\n    });\n  });\n  return encoded;\n}\n\nmodule.exports=encodeEntityRanges;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/encodeEntityRanges.js?");
}),
"./node_modules/draft-js/lib/encodeInlineStyleRanges.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UnicodeUtils=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeUtils.js\");\n\nvar findRangesImmutable=__webpack_require__( \"./node_modules/draft-js/lib/findRangesImmutable.js\");\n\nvar areEqual=function areEqual(a, b){\n  return a===b;\n};\n\nvar isTruthy=function isTruthy(a){\n  return !!a;\n};\n\nvar EMPTY_ARRAY=[];\n\n\nfunction getEncodedInlinesForType(block, styleList, styleToEncode){\n  var ranges=[]; // Obtain an array with ranges for only the specified style.\n\n  var filteredInlines=styleList.map(function (style){\n    return style.has(styleToEncode);\n  }).toList();\n  findRangesImmutable(filteredInlines, areEqual, // We only want to keep ranges with nonzero style values.\n  isTruthy, function (start, end){\n    var text=block.getText();\n    ranges.push({\n      offset: UnicodeUtils.strlen(text.slice(0, start)),\n      length: UnicodeUtils.strlen(text.slice(start, end)),\n      style: styleToEncode\n    });\n  });\n  return ranges;\n}\n\n\n\nfunction encodeInlineStyleRanges(block){\n  var styleList=block.getCharacterList().map(function (c){\n    return c.getStyle();\n  }).toList();\n  var ranges=styleList.flatten().toSet().map(function (style){\n    return getEncodedInlinesForType(block, styleList, style);\n  });\n  return Array.prototype.concat.apply(EMPTY_ARRAY, ranges.toJS());\n}\n\nmodule.exports=encodeInlineStyleRanges;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/encodeInlineStyleRanges.js?");
}),
"./node_modules/draft-js/lib/expandRangeToStartOfLine.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UnicodeUtils=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeUtils.js\");\n\nvar getCorrectDocumentFromNode=__webpack_require__( \"./node_modules/draft-js/lib/getCorrectDocumentFromNode.js\");\n\nvar getRangeClientRects=__webpack_require__( \"./node_modules/draft-js/lib/getRangeClientRects.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\n\n\nfunction getLineHeightPx(element){\n  var computed=getComputedStyle(element);\n  var correctDocument=getCorrectDocumentFromNode(element);\n  var div=correctDocument.createElement('div');\n  div.style.fontFamily=computed.fontFamily;\n  div.style.fontSize=computed.fontSize;\n  div.style.fontStyle=computed.fontStyle;\n  div.style.fontWeight=computed.fontWeight;\n  div.style.lineHeight=computed.lineHeight;\n  div.style.position='absolute';\n  div.textContent='M';\n  var documentBody=correctDocument.body;\n  !documentBody ?  true ? invariant(false, 'Missing document.body'):undefined:void 0; // forced layout here\n\n  documentBody.appendChild(div);\n  var rect=div.getBoundingClientRect();\n  documentBody.removeChild(div);\n  return rect.height;\n}\n\n\n\nfunction areRectsOnOneLine(rects, lineHeight){\n  var minTop=Infinity;\n  var minBottom=Infinity;\n  var maxTop=-Infinity;\n  var maxBottom=-Infinity;\n\n  for (var ii=0; ii < rects.length; ii++){\n    var rect=rects[ii];\n\n    if(rect.width===0||rect.width===1){\n      // When a range starts or ends a soft wrap, many browsers (Chrome, IE,\n      // Safari) include an empty rect on the previous or next line. When the\n      // text lies in a container whose position is not integral (e.g., from\n      // margin: auto), Safari makes these empty rects have width 1 (instead of\n      // 0). Having one-pixel-wide characters seems unlikely (and most browsers\n      // report widths in subpixel precision anyway) so it's relatively safe to\n      // skip over them.\n      continue;\n    }\n\n    minTop=Math.min(minTop, rect.top);\n    minBottom=Math.min(minBottom, rect.bottom);\n    maxTop=Math.max(maxTop, rect.top);\n    maxBottom=Math.max(maxBottom, rect.bottom);\n  }\n\n  return maxTop <=minBottom&&maxTop - minTop < lineHeight&&maxBottom - minBottom < lineHeight;\n}\n\n\n\nfunction getNodeLength(node){\n  // http://www.w3.org/TR/dom/#concept-node-length\n  switch (node.nodeType){\n    case Node.DOCUMENT_TYPE_NODE:\n      return 0;\n\n    case Node.TEXT_NODE:\n    case Node.PROCESSING_INSTRUCTION_NODE:\n    case Node.COMMENT_NODE:\n      return node.length;\n\n    default:\n      return node.childNodes.length;\n  }\n}\n\n\n\nfunction expandRangeToStartOfLine(range){\n  !range.collapsed ?  true ? invariant(false, 'expandRangeToStartOfLine: Provided range is not collapsed.'):undefined:void 0;\n  range=range.cloneRange();\n  var containingElement=range.startContainer;\n\n  if(containingElement.nodeType!==1){\n    containingElement=containingElement.parentNode;\n  }\n\n  var lineHeight=getLineHeightPx(containingElement); // Imagine our text looks like:\n  //   <div><span>once upon a time, there was a <em>boy\n  //   who lived</em> </span><q><strong>under^ the\n  //   stairs</strong> in a small closet.</q></div>\n  // where the caret represents the cursor. First, we crawl up the tree until\n  // the range spans multiple lines (setting the start point to before\n  // \"<strong>\", then before \"<div>\"), then at each level we do a search to\n  // find the latest point which is still on a previous line. We'll find that\n  // the break point is inside the span, then inside the <em>, then in its text\n  // node child, the actual break point before \"who\".\n\n  var bestContainer=range.endContainer;\n  var bestOffset=range.endOffset;\n  range.setStart(range.startContainer, 0);\n\n  while (areRectsOnOneLine(getRangeClientRects(range), lineHeight)){\n    bestContainer=range.startContainer;\n    bestOffset=range.startOffset;\n    !bestContainer.parentNode ?  true ? invariant(false, 'Found unexpected detached subtree when traversing.'):undefined:void 0;\n    range.setStartBefore(bestContainer);\n\n    if(bestContainer.nodeType===1&&getComputedStyle(bestContainer).display!=='inline'){\n      // The start of the line is never in a different block-level container.\n      break;\n    }\n  } // In the above example, range now spans from \"<div>\" to \"under\",\n  // bestContainer is <div>, and bestOffset is 1 (index of <q> inside <div>)].\n  // Picking out which child to recurse into here is a special case since we\n  // don't want to check past <q> -- once we find that the final range starts\n  // in <span>, we can look at all of its children (and all of their children)\n  // to find the break point.\n  // At all times, (bestContainer, bestOffset) is the latest single-line start\n  // point that we know of.\n\n\n  var currentContainer=bestContainer;\n  var maxIndexToConsider=bestOffset - 1;\n\n  do {\n    var nodeValue=currentContainer.nodeValue;\n    var ii=maxIndexToConsider;\n\n    for (; ii >=0; ii--){\n      if(nodeValue!=null&&ii > 0&&UnicodeUtils.isSurrogatePair(nodeValue, ii - 1)){\n        // We're in the middle of a surrogate pair -- skip over so we never\n        // return a range with an endpoint in the middle of a code point.\n        continue;\n      }\n\n      range.setStart(currentContainer, ii);\n\n      if(areRectsOnOneLine(getRangeClientRects(range), lineHeight)){\n        bestContainer=currentContainer;\n        bestOffset=ii;\n      }else{\n        break;\n      }\n    }\n\n    if(ii===-1||currentContainer.childNodes.length===0){\n      // If ii===-1, then (bestContainer, bestOffset), which is equal to\n      // (currentContainer, 0), was a single-line start point but a start\n      // point before currentContainer wasn't, so the line break seems to\n      // have occurred immediately after currentContainer's start tag\n      //\n      // If currentContainer.childNodes.length===0, we're already at a\n      // terminal node (e.g., text node) and should return our current best.\n      break;\n    }\n\n    currentContainer=currentContainer.childNodes[ii];\n    maxIndexToConsider=getNodeLength(currentContainer);\n  } while (true);\n\n  range.setStart(bestContainer, bestOffset);\n  return range;\n}\n\nmodule.exports=expandRangeToStartOfLine;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/expandRangeToStartOfLine.js?");
}),
"./node_modules/draft-js/lib/findAncestorOffsetKey.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getCorrectDocumentFromNode=__webpack_require__( \"./node_modules/draft-js/lib/getCorrectDocumentFromNode.js\");\n\nvar getSelectionOffsetKeyForNode=__webpack_require__( \"./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js\");\n\n\n\nfunction findAncestorOffsetKey(node){\n  var searchNode=node;\n\n  while (searchNode&&searchNode!==getCorrectDocumentFromNode(node).documentElement){\n    var key=getSelectionOffsetKeyForNode(searchNode);\n\n    if(key!=null){\n      return key;\n    }\n\n    searchNode=searchNode.parentNode;\n  }\n\n  return null;\n}\n\nmodule.exports=findAncestorOffsetKey;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/findAncestorOffsetKey.js?");
}),
"./node_modules/draft-js/lib/findRangesImmutable.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction findRangesImmutable(haystack, areEqualFn, filterFn, foundFn){\n  if(!haystack.size){\n    return;\n  }\n\n  var cursor=0;\n  haystack.reduce(function (value, nextValue, nextIndex){\n    if(!areEqualFn(value, nextValue)){\n      if(filterFn(value)){\n        foundFn(cursor, nextIndex);\n      }\n\n      cursor=nextIndex;\n    }\n\n    return nextValue;\n  });\n  filterFn(haystack.last())&&foundFn(cursor, haystack.count());\n}\n\nmodule.exports=findRangesImmutable;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/findRangesImmutable.js?");
}),
"./node_modules/draft-js/lib/generateRandomKey.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar seenKeys={};\nvar MULTIPLIER=Math.pow(2, 24);\n\nfunction generateRandomKey(){\n  var key;\n\n  while (key===undefined||seenKeys.hasOwnProperty(key)||!isNaN(+key)){\n    key=Math.floor(Math.random() * MULTIPLIER).toString(32);\n  }\n\n  seenKeys[key]=true;\n  return key;\n}\n\nmodule.exports=generateRandomKey;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/generateRandomKey.js?");
}),
"./node_modules/draft-js/lib/getCharacterRemovalRange.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftEntitySegments=__webpack_require__( \"./node_modules/draft-js/lib/DraftEntitySegments.js\");\n\nvar getRangesForDraftEntity=__webpack_require__( \"./node_modules/draft-js/lib/getRangesForDraftEntity.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\n\n\nfunction getCharacterRemovalRange(entityMap, startBlock, endBlock, selectionState, direction){\n  var start=selectionState.getStartOffset();\n  var end=selectionState.getEndOffset();\n  var startEntityKey=startBlock.getEntityAt(start);\n  var endEntityKey=endBlock.getEntityAt(end - 1);\n\n  if(!startEntityKey&&!endEntityKey){\n    return selectionState;\n  }\n\n  var newSelectionState=selectionState;\n\n  if(startEntityKey&&startEntityKey===endEntityKey){\n    newSelectionState=getEntityRemovalRange(entityMap, startBlock, newSelectionState, direction, startEntityKey, true, true);\n  }else if(startEntityKey&&endEntityKey){\n    var startSelectionState=getEntityRemovalRange(entityMap, startBlock, newSelectionState, direction, startEntityKey, false, true);\n    var endSelectionState=getEntityRemovalRange(entityMap, endBlock, newSelectionState, direction, endEntityKey, false, false);\n    newSelectionState=newSelectionState.merge({\n      anchorOffset: startSelectionState.getAnchorOffset(),\n      focusOffset: endSelectionState.getFocusOffset(),\n      isBackward: false\n    });\n  }else if(startEntityKey){\n    var _startSelectionState=getEntityRemovalRange(entityMap, startBlock, newSelectionState, direction, startEntityKey, false, true);\n\n    newSelectionState=newSelectionState.merge({\n      anchorOffset: _startSelectionState.getStartOffset(),\n      isBackward: false\n    });\n  }else if(endEntityKey){\n    var _endSelectionState=getEntityRemovalRange(entityMap, endBlock, newSelectionState, direction, endEntityKey, false, false);\n\n    newSelectionState=newSelectionState.merge({\n      focusOffset: _endSelectionState.getEndOffset(),\n      isBackward: false\n    });\n  }\n\n  return newSelectionState;\n}\n\nfunction getEntityRemovalRange(entityMap, block, selectionState, direction, entityKey, isEntireSelectionWithinEntity, isEntityAtStart){\n  var start=selectionState.getStartOffset();\n  var end=selectionState.getEndOffset();\n\n  var entity=entityMap.__get(entityKey);\n\n  var mutability=entity.getMutability();\n  var sideToConsider=isEntityAtStart ? start:end; // `MUTABLE` entities can just have the specified range of text removed\n  // directly. No adjustments are needed.\n\n  if(mutability==='MUTABLE'){\n    return selectionState;\n  } // Find the entity range that overlaps with our removal range.\n\n\n  var entityRanges=getRangesForDraftEntity(block, entityKey).filter(function (range){\n    return sideToConsider <=range.end&&sideToConsider >=range.start;\n  });\n  !(entityRanges.length==1) ?  true ? invariant(false, 'There should only be one entity range within this removal range.'):undefined:void 0;\n  var entityRange=entityRanges[0]; // For `IMMUTABLE` entity types, we will remove the entire entity range.\n\n  if(mutability==='IMMUTABLE'){\n    return selectionState.merge({\n      anchorOffset: entityRange.start,\n      focusOffset: entityRange.end,\n      isBackward: false\n    });\n  } // For `SEGMENTED` entity types, determine the appropriate segment to\n  // remove.\n\n\n  if(!isEntireSelectionWithinEntity){\n    if(isEntityAtStart){\n      end=entityRange.end;\n    }else{\n      start=entityRange.start;\n    }\n  }\n\n  var removalRange=DraftEntitySegments.getRemovalRange(start, end, block.getText().slice(entityRange.start, entityRange.end), entityRange.start, direction);\n  return selectionState.merge({\n    anchorOffset: removalRange.start,\n    focusOffset: removalRange.end,\n    isBackward: false\n  });\n}\n\nmodule.exports=getCharacterRemovalRange;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getCharacterRemovalRange.js?");
}),
"./node_modules/draft-js/lib/getContentEditableContainer.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isHTMLElement=__webpack_require__( \"./node_modules/draft-js/lib/isHTMLElement.js\");\n\nfunction getContentEditableContainer(editor){\n  var editorNode=editor.editorContainer;\n  !editorNode ?  true ? invariant(false, 'Missing editorNode'):undefined:void 0;\n  !isHTMLElement(editorNode.firstChild) ?  true ? invariant(false, 'editorNode.firstChild is not an HTMLElement'):undefined:void 0;\n  var htmlElement=editorNode.firstChild;\n  return htmlElement;\n}\n\nmodule.exports=getContentEditableContainer;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getContentEditableContainer.js?");
}),
"./node_modules/draft-js/lib/getContentStateFragment.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar randomizeBlockMapKeys=__webpack_require__( \"./node_modules/draft-js/lib/randomizeBlockMapKeys.js\");\n\nvar removeEntitiesAtEdges=__webpack_require__( \"./node_modules/draft-js/lib/removeEntitiesAtEdges.js\");\n\nvar getContentStateFragment=function getContentStateFragment(contentState, selectionState){\n  var startKey=selectionState.getStartKey();\n  var startOffset=selectionState.getStartOffset();\n  var endKey=selectionState.getEndKey();\n  var endOffset=selectionState.getEndOffset(); // Edge entities should be stripped to ensure that we don't preserve\n  // invalid partial entities when the fragment is reused. We do, however,\n  // preserve entities that are entirely within the selection range.\n\n  var contentWithoutEdgeEntities=removeEntitiesAtEdges(contentState, selectionState);\n  var blockMap=contentWithoutEdgeEntities.getBlockMap();\n  var blockKeys=blockMap.keySeq();\n  var startIndex=blockKeys.indexOf(startKey);\n  var endIndex=blockKeys.indexOf(endKey) + 1;\n  return randomizeBlockMapKeys(blockMap.slice(startIndex, endIndex).map(function (block, blockKey){\n    var text=block.getText();\n    var chars=block.getCharacterList();\n\n    if(startKey===endKey){\n      return block.merge({\n        text: text.slice(startOffset, endOffset),\n        characterList: chars.slice(startOffset, endOffset)\n      });\n    }\n\n    if(blockKey===startKey){\n      return block.merge({\n        text: text.slice(startOffset),\n        characterList: chars.slice(startOffset)\n      });\n    }\n\n    if(blockKey===endKey){\n      return block.merge({\n        text: text.slice(0, endOffset),\n        characterList: chars.slice(0, endOffset)\n      });\n    }\n\n    return block;\n  }));\n};\n\nmodule.exports=getContentStateFragment;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getContentStateFragment.js?");
}),
"./node_modules/draft-js/lib/getCorrectDocumentFromNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction getCorrectDocumentFromNode(node){\n  if(!node||!node.ownerDocument){\n    return document;\n  }\n\n  return node.ownerDocument;\n}\n\nmodule.exports=getCorrectDocumentFromNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getCorrectDocumentFromNode.js?");
}),
"./node_modules/draft-js/lib/getDefaultKeyBinding.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar KeyBindingUtil=__webpack_require__( \"./node_modules/draft-js/lib/KeyBindingUtil.js\");\n\nvar Keys=__webpack_require__( \"./node_modules/fbjs/lib/Keys.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar isOSX=UserAgent.isPlatform('Mac OS X'); // Firefox on OSX had a bug resulting in navigation instead of cursor movement.\n// This bug was fixed in Firefox 29. Feature detection is virtually impossible\n// so we just check the version number. See #342765.\n\nvar shouldFixFirefoxMovement=isOSX&&UserAgent.isBrowser('Firefox < 29');\nvar hasCommandModifier=KeyBindingUtil.hasCommandModifier,\n    isCtrlKeyCommand=KeyBindingUtil.isCtrlKeyCommand;\n\nfunction shouldRemoveWord(e){\n  return isOSX&&e.altKey||isCtrlKeyCommand (e);\n}\n\n\n\nfunction getZCommand (e){\n  if(!hasCommandModifier(e)){\n    return null;\n  }\n\n  return e.shiftKey ? 'redo':'undo';\n}\n\nfunction getDeleteCommand (e){\n  // Allow default \"cut\" behavior for PCs on Shift + Delete.\n  if(!isOSX&&e.shiftKey){\n    return null;\n  }\n\n  return shouldRemoveWord(e) ? 'delete-word':'delete';\n}\n\nfunction getBackspaceCommand (e){\n  if(hasCommandModifier(e)&&isOSX){\n    return 'backspace-to-start-of-line';\n  }\n\n  return shouldRemoveWord(e) ? 'backspace-word':'backspace';\n}\n\n\n\nfunction getDefaultKeyBinding(e){\n  switch (e.keyCode){\n    case 66:\n      // B\n      return hasCommandModifier(e) ? 'bold':null;\n\n    case 68:\n      // D\n      return isCtrlKeyCommand (e) ? 'delete':null;\n\n    case 72:\n      // H\n      return isCtrlKeyCommand (e) ? 'backspace':null;\n\n    case 73:\n      // I\n      return hasCommandModifier(e) ? 'italic':null;\n\n    case 74:\n      // J\n      return hasCommandModifier(e) ? 'code':null;\n\n    case 75:\n      // K\n      return isOSX&&isCtrlKeyCommand (e) ? 'secondary-cut':null;\n\n    case 77:\n      // M\n      return isCtrlKeyCommand (e) ? 'split-block':null;\n\n    case 79:\n      // O\n      return isCtrlKeyCommand (e) ? 'split-block':null;\n\n    case 84:\n      // T\n      return isOSX&&isCtrlKeyCommand (e) ? 'transpose-characters':null;\n\n    case 85:\n      // U\n      return hasCommandModifier(e) ? 'underline':null;\n\n    case 87:\n      // W\n      return isOSX&&isCtrlKeyCommand (e) ? 'backspace-word':null;\n\n    case 89:\n      // Y\n      if(isCtrlKeyCommand (e)){\n        return isOSX ? 'secondary-paste':'redo';\n      }\n\n      return null;\n\n    case 90:\n      // Z\n      return getZCommand (e)||null;\n\n    case Keys.RETURN:\n      return 'split-block';\n\n    case Keys.DELETE:\n      return getDeleteCommand (e);\n\n    case Keys.BACKSPACE:\n      return getBackspaceCommand (e);\n    // LEFT/RIGHT handlers serve as a workaround for a Firefox bug.\n\n    case Keys.LEFT:\n      return shouldFixFirefoxMovement&&hasCommandModifier(e) ? 'move-selection-to-start-of-block':null;\n\n    case Keys.RIGHT:\n      return shouldFixFirefoxMovement&&hasCommandModifier(e) ? 'move-selection-to-end-of-block':null;\n\n    default:\n      return null;\n  }\n}\n\nmodule.exports=getDefaultKeyBinding;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getDefaultKeyBinding.js?");
}),
"./node_modules/draft-js/lib/getDraftEditorSelection.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getDraftEditorSelectionWithNodes=__webpack_require__( \"./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js\");\n\n\n\nfunction getDraftEditorSelection(editorState, root){\n  var selection=root.ownerDocument.defaultView.getSelection();\n  var anchorNode=selection.anchorNode,\n      anchorOffset=selection.anchorOffset,\n      focusNode=selection.focusNode,\n      focusOffset=selection.focusOffset,\n      rangeCount=selection.rangeCount;\n\n  if(// No active selection.\n  rangeCount===0||// No selection, ever. As in, the user hasn't selected anything since\n  // opening the document.\n  anchorNode==null||focusNode==null){\n    return {\n      selectionState: editorState.getSelection().set('hasFocus', false),\n      needsRecovery: false\n    };\n  }\n\n  return getDraftEditorSelectionWithNodes(editorState, root, anchorNode, anchorOffset, focusNode, focusOffset);\n}\n\nmodule.exports=getDraftEditorSelection;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getDraftEditorSelection.js?");
}),
"./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar findAncestorOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/findAncestorOffsetKey.js\");\n\nvar getSelectionOffsetKeyForNode=__webpack_require__( \"./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js\");\n\nvar getUpdatedSelectionState=__webpack_require__( \"./node_modules/draft-js/lib/getUpdatedSelectionState.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isElement=__webpack_require__( \"./node_modules/draft-js/lib/isElement.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\n\nfunction getDraftEditorSelectionWithNodes(editorState, root, anchorNode, anchorOffset, focusNode, focusOffset){\n  var anchorIsTextNode=anchorNode.nodeType===Node.TEXT_NODE;\n  var focusIsTextNode=focusNode.nodeType===Node.TEXT_NODE; // If the selection range lies only on text nodes, the task is simple.\n  // Find the nearest offset-aware elements and use the\n  // offset values supplied by the selection range.\n\n  if(anchorIsTextNode&&focusIsTextNode){\n    return {\n      selectionState: getUpdatedSelectionState(editorState, nullthrows(findAncestorOffsetKey(anchorNode)), anchorOffset, nullthrows(findAncestorOffsetKey(focusNode)), focusOffset),\n      needsRecovery: false\n    };\n  }\n\n  var anchorPoint=null;\n  var focusPoint=null;\n  var needsRecovery=true; // An element is selected. Convert this selection range into leaf offset\n  // keys and offset values for consumption at the component level. This\n  // is common in Firefox, where select-all and triple click behavior leads\n  // to entire elements being selected.\n  //\n  // Note that we use the `needsRecovery` parameter in the callback here. This\n  // is because when certain elements are selected, the behavior for subsequent\n  // cursor movement (e.g. via arrow keys) is uncertain and may not match\n  // expectations at the component level. For example, if an entire <div> is\n  // selected and the user presses the right arrow, Firefox keeps the selection\n  // on the <div>. If we allow subsequent keypresses to insert characters\n  // natively, they will be inserted into a browser-created text node to the\n  // right of that <div>. This is obviously undesirable.\n  //\n  // With the `needsRecovery` flag, we inform the caller that it is responsible\n  // for manually setting the selection state on the rendered document to\n  // ensure proper selection state maintenance.\n\n  if(anchorIsTextNode){\n    anchorPoint={\n      key: nullthrows(findAncestorOffsetKey(anchorNode)),\n      offset: anchorOffset\n    };\n    focusPoint=getPointForNonTextNode(root, focusNode, focusOffset);\n  }else if(focusIsTextNode){\n    focusPoint={\n      key: nullthrows(findAncestorOffsetKey(focusNode)),\n      offset: focusOffset\n    };\n    anchorPoint=getPointForNonTextNode(root, anchorNode, anchorOffset);\n  }else{\n    anchorPoint=getPointForNonTextNode(root, anchorNode, anchorOffset);\n    focusPoint=getPointForNonTextNode(root, focusNode, focusOffset); // If the selection is collapsed on an empty block, don't force recovery.\n    // This way, on arrow key selection changes, the browser can move the\n    // cursor from a non-zero offset on one block, through empty blocks,\n    // to a matching non-zero offset on other text blocks.\n\n    if(anchorNode===focusNode&&anchorOffset===focusOffset){\n      needsRecovery = !!anchorNode.firstChild&&anchorNode.firstChild.nodeName!=='BR';\n    }\n  }\n\n  return {\n    selectionState: getUpdatedSelectionState(editorState, anchorPoint.key, anchorPoint.offset, focusPoint.key, focusPoint.offset),\n    needsRecovery: needsRecovery\n  };\n}\n\n\n\nfunction getFirstLeaf(node){\n  while (node.firstChild&&(// data-blocks has no offset\n  isElement(node.firstChild)&&node.firstChild.getAttribute('data-blocks')==='true'||getSelectionOffsetKeyForNode(node.firstChild))){\n    node=node.firstChild;\n  }\n\n  return node;\n}\n\n\n\nfunction getLastLeaf(node){\n  while (node.lastChild&&(// data-blocks has no offset\n  isElement(node.lastChild)&&node.lastChild.getAttribute('data-blocks')==='true'||getSelectionOffsetKeyForNode(node.lastChild))){\n    node=node.lastChild;\n  }\n\n  return node;\n}\n\nfunction getPointForNonTextNode(editorRoot, startNode, childOffset){\n  var node=startNode;\n  var offsetKey=findAncestorOffsetKey(node);\n  !(offsetKey!=null||editorRoot&&(editorRoot===node||editorRoot.firstChild===node)) ?  true ? invariant(false, 'Unknown node in selection range.'):undefined:void 0; // If the editorRoot is the selection, step downward into the content\n  // wrapper.\n\n  if(editorRoot===node){\n    node=node.firstChild;\n    !isElement(node) ?  true ? invariant(false, 'Invalid DraftEditorContents node.'):undefined:void 0;\n    var castedNode=node; // assignment only added for flow :/\n    // otherwise it throws in line 200 saying that node can be null or undefined\n\n    node=castedNode;\n    !(node.getAttribute('data-contents')==='true') ?  true ? invariant(false, 'Invalid DraftEditorContents structure.'):undefined:void 0;\n\n    if(childOffset > 0){\n      childOffset=node.childNodes.length;\n    }\n  } // If the child offset is zero and we have an offset key, we're done.\n  // If there's no offset key because the entire editor is selected,\n  // find the leftmost (\"first\") leaf in the tree and use that as the offset\n  // key.\n\n\n  if(childOffset===0){\n    var key=null;\n\n    if(offsetKey!=null){\n      key=offsetKey;\n    }else{\n      var firstLeaf=getFirstLeaf(node);\n      key=nullthrows(getSelectionOffsetKeyForNode(firstLeaf));\n    }\n\n    return {\n      key: key,\n      offset: 0\n    };\n  }\n\n  var nodeBeforeCursor=node.childNodes[childOffset - 1];\n  var leafKey=null;\n  var textLength=null;\n\n  if(!getSelectionOffsetKeyForNode(nodeBeforeCursor)){\n    // Our target node may be a leaf or a text node, in which case we're\n    // already where we want to be and can just use the child's length as\n    // our offset.\n    leafKey=nullthrows(offsetKey);\n    textLength=getTextContentLength(nodeBeforeCursor);\n  }else{\n    // Otherwise, we'll look at the child to the left of the cursor and find\n    // the last leaf node in its subtree.\n    var lastLeaf=getLastLeaf(nodeBeforeCursor);\n    leafKey=nullthrows(getSelectionOffsetKeyForNode(lastLeaf));\n    textLength=getTextContentLength(lastLeaf);\n  }\n\n  return {\n    key: leafKey,\n    offset: textLength\n  };\n}\n\n\n\nfunction getTextContentLength(node){\n  var textContent=node.textContent;\n  return textContent==='\\n' ? 0:textContent.length;\n}\n\nmodule.exports=getDraftEditorSelectionWithNodes;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js?");
}),
"./node_modules/draft-js/lib/getEntityKeyForSelection.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _require=__webpack_require__( \"./node_modules/draft-js/lib/draftKeyUtils.js\"),\n    notEmptyKey=_require.notEmptyKey;\n\n\n\nfunction getEntityKeyForSelection(contentState, targetSelection){\n  var entityKey;\n\n  if(targetSelection.isCollapsed()){\n    var key=targetSelection.getAnchorKey();\n    var offset=targetSelection.getAnchorOffset();\n\n    if(offset > 0){\n      entityKey=contentState.getBlockForKey(key).getEntityAt(offset - 1);\n\n      if(entityKey!==contentState.getBlockForKey(key).getEntityAt(offset)){\n        return null;\n      }\n\n      return filterKey(contentState.getEntityMap(), entityKey);\n    }\n\n    return null;\n  }\n\n  var startKey=targetSelection.getStartKey();\n  var startOffset=targetSelection.getStartOffset();\n  var startBlock=contentState.getBlockForKey(startKey);\n  entityKey=startOffset===startBlock.getLength() ? null:startBlock.getEntityAt(startOffset);\n  return filterKey(contentState.getEntityMap(), entityKey);\n}\n\n\n\nfunction filterKey(entityMap, entityKey){\n  if(notEmptyKey(entityKey)){\n    var entity=entityMap.__get(entityKey);\n\n    return entity.getMutability()==='MUTABLE' ? entityKey:null;\n  }\n\n  return null;\n}\n\nmodule.exports=getEntityKeyForSelection;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getEntityKeyForSelection.js?");
}),
"./node_modules/draft-js/lib/getFragmentFromSelection.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getContentStateFragment=__webpack_require__( \"./node_modules/draft-js/lib/getContentStateFragment.js\");\n\nfunction getFragmentFromSelection(editorState){\n  var selectionState=editorState.getSelection();\n\n  if(selectionState.isCollapsed()){\n    return null;\n  }\n\n  return getContentStateFragment(editorState.getCurrentContent(), selectionState);\n}\n\nmodule.exports=getFragmentFromSelection;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getFragmentFromSelection.js?");
}),
"./node_modules/draft-js/lib/getNextDelimiterBlockKey.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar getNextDelimiterBlockKey=function getNextDelimiterBlockKey(block, blockMap){\n  var isExperimentalTreeBlock=block instanceof ContentBlockNode;\n\n  if(!isExperimentalTreeBlock){\n    return null;\n  }\n\n  var nextSiblingKey=block.getNextSiblingKey();\n\n  if(nextSiblingKey){\n    return nextSiblingKey;\n  }\n\n  var parent=block.getParentKey();\n\n  if(!parent){\n    return null;\n  }\n\n  var nextNonDescendantBlock=blockMap.get(parent);\n\n  while (nextNonDescendantBlock&&!nextNonDescendantBlock.getNextSiblingKey()){\n    var parentKey=nextNonDescendantBlock.getParentKey();\n    nextNonDescendantBlock=parentKey ? blockMap.get(parentKey):null;\n  }\n\n  if(!nextNonDescendantBlock){\n    return null;\n  }\n\n  return nextNonDescendantBlock.getNextSiblingKey();\n};\n\nmodule.exports=getNextDelimiterBlockKey;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getNextDelimiterBlockKey.js?");
}),
"./node_modules/draft-js/lib/getOwnObjectValues.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nfunction getOwnObjectValues(obj){\n  return Object.keys(obj).map(function (key){\n    return obj[key];\n  });\n}\n\nmodule.exports=getOwnObjectValues;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getOwnObjectValues.js?");
}),
"./node_modules/draft-js/lib/getRangeBoundingClientRect.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getRangeClientRects=__webpack_require__( \"./node_modules/draft-js/lib/getRangeClientRects.js\");\n\n\nfunction getRangeBoundingClientRect(range){\n  // \"Return a DOMRect object describing the smallest rectangle that includes\n  // the first rectangle in list and all of the remaining rectangles of which\n  // the height or width is not zero.\"\n  // http://www.w3.org/TR/cssom-view/#dom-range-getboundingclientrect\n  var rects=getRangeClientRects(range);\n  var top=0;\n  var right=0;\n  var bottom=0;\n  var left=0;\n\n  if(rects.length){\n    // If the first rectangle has 0 width, we use the second, this is needed\n    // because Chrome renders a 0 width rectangle when the selection contains\n    // a line break.\n    if(rects.length > 1&&rects[0].width===0){\n      var _rects$=rects[1];\n      top=_rects$.top;\n      right=_rects$.right;\n      bottom=_rects$.bottom;\n      left=_rects$.left;\n    }else{\n      var _rects$2=rects[0];\n      top=_rects$2.top;\n      right=_rects$2.right;\n      bottom=_rects$2.bottom;\n      left=_rects$2.left;\n    }\n\n    for (var ii=1; ii < rects.length; ii++){\n      var rect=rects[ii];\n\n      if(rect.height!==0&&rect.width!==0){\n        top=Math.min(top, rect.top);\n        right=Math.max(right, rect.right);\n        bottom=Math.max(bottom, rect.bottom);\n        left=Math.min(left, rect.left);\n      }\n    }\n  }\n\n  return {\n    top: top,\n    right: right,\n    bottom: bottom,\n    left: left,\n    width: right - left,\n    height: bottom - top\n  };\n}\n\nmodule.exports=getRangeBoundingClientRect;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getRangeBoundingClientRect.js?");
}),
"./node_modules/draft-js/lib/getRangeClientRects.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isChrome=UserAgent.isBrowser('Chrome'); // In Chrome, the client rects will include the entire bounds of all nodes that\n// begin (have a start tag) within the selection, even if the selection does\n// not overlap the entire node. To resolve this, we split the range at each\n// start tag and join the client rects together.\n// https://code.google.com/p/chromium/issues/detail?id=324437\n\n\n\nfunction getRangeClientRectsChrome(range){\n  var tempRange=range.cloneRange();\n  var clientRects=[];\n\n  for (var ancestor=range.endContainer; ancestor!=null; ancestor=ancestor.parentNode){\n    // If we've climbed up to the common ancestor, we can now use the\n    // original start point and stop climbing the tree.\n    var atCommonAncestor=ancestor===range.commonAncestorContainer;\n\n    if(atCommonAncestor){\n      tempRange.setStart(range.startContainer, range.startOffset);\n    }else{\n      tempRange.setStart(tempRange.endContainer, 0);\n    }\n\n    var rects=Array.from(tempRange.getClientRects());\n    clientRects.push(rects);\n\n    if(atCommonAncestor){\n      var _ref;\n\n      clientRects.reverse();\n      return (_ref=[]).concat.apply(_ref, clientRects);\n    }\n\n    tempRange.setEndBefore(ancestor);\n  }\n\n   true ?  true ? invariant(false, 'Found an unexpected detached subtree when getting range client rects.'):undefined:undefined;\n}\n\n\n\n\n\nvar getRangeClientRects=isChrome ? getRangeClientRectsChrome:function (range){\n  return Array.from(range.getClientRects());\n};\nmodule.exports=getRangeClientRects;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getRangeClientRects.js?");
}),
"./node_modules/draft-js/lib/getRangesForDraftEntity.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\n\n\nfunction getRangesForDraftEntity(block, key){\n  var ranges=[];\n  block.findEntityRanges(function (c){\n    return c.getEntity()===key;\n  }, function (start, end){\n    ranges.push({\n      start: start,\n      end: end\n    });\n  });\n  !!!ranges.length ?  true ? invariant(false, 'Entity key not found in this range.'):undefined:void 0;\n  return ranges;\n}\n\nmodule.exports=getRangesForDraftEntity;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getRangesForDraftEntity.js?");
}),
"./node_modules/draft-js/lib/getSafeBodyFromHTML.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isOldIE=UserAgent.isBrowser('IE <=9'); // Provides a dom node that will not execute scripts\n// https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation.createHTMLDocument\n// https://developer.mozilla.org/en-US/Add-ons/Code_snippets/HTML_to_DOM\n\nfunction getSafeBodyFromHTML(html){\n  var doc;\n  var root=null; // Provides a safe context\n\n  if(!isOldIE&&document.implementation&&document.implementation.createHTMLDocument){\n    doc=document.implementation.createHTMLDocument('foo');\n    !doc.documentElement ?  true ? invariant(false, 'Missing doc.documentElement'):undefined:void 0;\n    doc.documentElement.innerHTML=html;\n    root=doc.getElementsByTagName('body')[0];\n  }\n\n  return root;\n}\n\nmodule.exports=getSafeBodyFromHTML;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getSafeBodyFromHTML.js?");
}),
"./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nvar isElement=__webpack_require__( \"./node_modules/draft-js/lib/isElement.js\");\n\nfunction getSelectionOffsetKeyForNode(node){\n  if(isElement(node)){\n    var castedNode=node;\n    var offsetKey=castedNode.getAttribute('data-offset-key');\n\n    if(offsetKey){\n      return offsetKey;\n    }\n\n    for (var ii=0; ii < castedNode.childNodes.length; ii++){\n      var childOffsetKey=getSelectionOffsetKeyForNode(castedNode.childNodes[ii]);\n\n      if(childOffsetKey){\n        return childOffsetKey;\n      }\n    }\n  }\n\n  return null;\n}\n\nmodule.exports=getSelectionOffsetKeyForNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getSelectionOffsetKeyForNode.js?");
}),
"./node_modules/draft-js/lib/getTextContentFromFiles.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("(function(global){\n\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar TEXT_CLIPPING_REGEX=/\\.textClipping$/;\nvar TEXT_TYPES={\n  'text/plain': true,\n  'text/html': true,\n  'text/rtf': true\n}; // Somewhat arbitrary upper bound on text size. Let's not lock up the browser.\n\nvar TEXT_SIZE_UPPER_BOUND=5000;\n\n\nfunction getTextContentFromFiles(files, callback){\n  var readCount=0;\n  var results=[];\n  files.forEach(function (\n  \n  file){\n    readFile(file, function (\n    \n    text){\n      readCount++;\n      text&&results.push(text.slice(0, TEXT_SIZE_UPPER_BOUND));\n\n      if(readCount==files.length){\n        callback(results.join('\\r'));\n      }\n    });\n  });\n}\n\n\n\nfunction readFile(file, callback){\n  if(!global.FileReader||file.type&&!(file.type in TEXT_TYPES)){\n    callback('');\n    return;\n  }\n\n  if(file.type===''){\n    var _contents=''; // Special-case text clippings, which have an empty type but include\n    // `.textClipping` in the file name. `readAsText` results in an empty\n    // string for text clippings, so we force the file name to serve\n    // as the text value for the file.\n\n    if(TEXT_CLIPPING_REGEX.test(file.name)){\n      _contents=file.name.replace(TEXT_CLIPPING_REGEX, '');\n    }\n\n    callback(_contents);\n    return;\n  }\n\n  var reader=new FileReader();\n\n  reader.onload=function (){\n    var result=reader.result;\n    !(typeof result==='string') ?  true ? invariant(false, 'We should be calling \"FileReader.readAsText\" which returns a string'):undefined:void 0;\n    callback(result);\n  };\n\n  reader.onerror=function (){\n    callback('');\n  };\n\n  reader.readAsText(file);\n}\n\nmodule.exports=getTextContentFromFiles;\n}.call(this, __webpack_require__( \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getTextContentFromFiles.js?");
}),
"./node_modules/draft-js/lib/getUpdatedSelectionState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftOffsetKey=__webpack_require__( \"./node_modules/draft-js/lib/DraftOffsetKey.js\");\n\nvar nullthrows=__webpack_require__( \"./node_modules/fbjs/lib/nullthrows.js\");\n\nfunction getUpdatedSelectionState(editorState, anchorKey, anchorOffset, focusKey, focusOffset){\n  var selection=nullthrows(editorState.getSelection());\n\n  if(!anchorKey||!focusKey){\n    // If we cannot make sense of the updated selection state, stick to the current one.\n    if(true){\n      \n      console.warn('Invalid selection state.', arguments, editorState.toJS());\n    }\n\n    return selection;\n  }\n\n  var anchorPath=DraftOffsetKey.decode(anchorKey);\n  var anchorBlockKey=anchorPath.blockKey;\n  var anchorLeafBlockTree=editorState.getBlockTree(anchorBlockKey);\n  var anchorLeaf=anchorLeafBlockTree&&anchorLeafBlockTree.getIn([anchorPath.decoratorKey, 'leaves', anchorPath.leafKey]);\n  var focusPath=DraftOffsetKey.decode(focusKey);\n  var focusBlockKey=focusPath.blockKey;\n  var focusLeafBlockTree=editorState.getBlockTree(focusBlockKey);\n  var focusLeaf=focusLeafBlockTree&&focusLeafBlockTree.getIn([focusPath.decoratorKey, 'leaves', focusPath.leafKey]);\n\n  if(!anchorLeaf||!focusLeaf){\n    // If we cannot make sense of the updated selection state, stick to the current one.\n    if(true){\n      \n      console.warn('Invalid selection state.', arguments, editorState.toJS());\n    }\n\n    return selection;\n  }\n\n  var anchorLeafStart=anchorLeaf.get('start');\n  var focusLeafStart=focusLeaf.get('start');\n  var anchorBlockOffset=anchorLeaf ? anchorLeafStart + anchorOffset:null;\n  var focusBlockOffset=focusLeaf ? focusLeafStart + focusOffset:null;\n  var areEqual=selection.getAnchorKey()===anchorBlockKey&&selection.getAnchorOffset()===anchorBlockOffset&&selection.getFocusKey()===focusBlockKey&&selection.getFocusOffset()===focusBlockOffset;\n\n  if(areEqual){\n    return selection;\n  }\n\n  var isBackward=false;\n\n  if(anchorBlockKey===focusBlockKey){\n    var anchorLeafEnd=anchorLeaf.get('end');\n    var focusLeafEnd=focusLeaf.get('end');\n\n    if(focusLeafStart===anchorLeafStart&&focusLeafEnd===anchorLeafEnd){\n      isBackward=focusOffset < anchorOffset;\n    }else{\n      isBackward=focusLeafStart < anchorLeafStart;\n    }\n  }else{\n    var startKey=editorState.getCurrentContent().getBlockMap().keySeq().skipUntil(function (v){\n      return v===anchorBlockKey||v===focusBlockKey;\n    }).first();\n    isBackward=startKey===focusBlockKey;\n  }\n\n  return selection.merge({\n    anchorKey: anchorBlockKey,\n    anchorOffset: anchorBlockOffset,\n    focusKey: focusBlockKey,\n    focusOffset: focusBlockOffset,\n    isBackward: isBackward\n  });\n}\n\nmodule.exports=getUpdatedSelectionState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getUpdatedSelectionState.js?");
}),
"./node_modules/draft-js/lib/getVisibleSelectionRect.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getRangeBoundingClientRect=__webpack_require__( \"./node_modules/draft-js/lib/getRangeBoundingClientRect.js\");\n\n\n\nfunction getVisibleSelectionRect(global){\n  var selection=global.getSelection();\n\n  if(!selection.rangeCount){\n    return null;\n  }\n\n  var range=selection.getRangeAt(0);\n  var boundingRect=getRangeBoundingClientRect(range);\n  var top=boundingRect.top,\n      right=boundingRect.right,\n      bottom=boundingRect.bottom,\n      left=boundingRect.left; // When a re-render leads to a node being removed, the DOM selection will\n  // temporarily be placed on an ancestor node, which leads to an invalid\n  // bounding rect. Discard this state.\n\n  if(top===0&&right===0&&bottom===0&&left===0){\n    return null;\n  }\n\n  return boundingRect;\n}\n\nmodule.exports=getVisibleSelectionRect;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getVisibleSelectionRect.js?");
}),
"./node_modules/draft-js/lib/getWindowForNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction getWindowForNode(node){\n  if(!node||!node.ownerDocument||!node.ownerDocument.defaultView){\n    return window;\n  }\n\n  return node.ownerDocument.defaultView;\n}\n\nmodule.exports=getWindowForNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/getWindowForNode.js?");
}),
"./node_modules/draft-js/lib/gkx.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nmodule.exports=function (name){\n  if(typeof window!=='undefined'&&window.__DRAFT_GKX){\n    return !!window.__DRAFT_GKX[name];\n  }\n\n  return false;\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/gkx.js?");
}),
"./node_modules/draft-js/lib/insertFragmentIntoContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar BlockMapBuilder=__webpack_require__( \"./node_modules/draft-js/lib/BlockMapBuilder.js\");\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar insertIntoList=__webpack_require__( \"./node_modules/draft-js/lib/insertIntoList.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar randomizeBlockMapKeys=__webpack_require__( \"./node_modules/draft-js/lib/randomizeBlockMapKeys.js\");\n\nvar List=Immutable.List;\n\nvar updateExistingBlock=function updateExistingBlock(contentState, selectionState, blockMap, fragmentBlock, targetKey, targetOffset){\n  var mergeBlockData=arguments.length > 6&&arguments[6]!==undefined ? arguments[6]:'REPLACE_WITH_NEW_DATA';\n  var targetBlock=blockMap.get(targetKey);\n  var text=targetBlock.getText();\n  var chars=targetBlock.getCharacterList();\n  var finalKey=targetKey;\n  var finalOffset=targetOffset + fragmentBlock.getText().length;\n  var data=null;\n\n  switch (mergeBlockData){\n    case 'MERGE_OLD_DATA_TO_NEW_DATA':\n      data=fragmentBlock.getData().merge(targetBlock.getData());\n      break;\n\n    case 'REPLACE_WITH_NEW_DATA':\n      data=fragmentBlock.getData();\n      break;\n  }\n\n  var type=targetBlock.getType();\n\n  if(text&&type==='unstyled'){\n    type=fragmentBlock.getType();\n  }\n\n  var newBlock=targetBlock.merge({\n    text: text.slice(0, targetOffset) + fragmentBlock.getText() + text.slice(targetOffset),\n    characterList: insertIntoList(chars, fragmentBlock.getCharacterList(), targetOffset),\n    type: type,\n    data: data\n  });\n  return contentState.merge({\n    blockMap: blockMap.set(targetKey, newBlock),\n    selectionBefore: selectionState,\n    selectionAfter: selectionState.merge({\n      anchorKey: finalKey,\n      anchorOffset: finalOffset,\n      focusKey: finalKey,\n      focusOffset: finalOffset,\n      isBackward: false\n    })\n  });\n};\n\n\n\nvar updateHead=function updateHead(block, targetOffset, fragment){\n  var text=block.getText();\n  var chars=block.getCharacterList(); // Modify head portion of block.\n\n  var headText=text.slice(0, targetOffset);\n  var headCharacters=chars.slice(0, targetOffset);\n  var appendToHead=fragment.first();\n  return block.merge({\n    text: headText + appendToHead.getText(),\n    characterList: headCharacters.concat(appendToHead.getCharacterList()),\n    type: headText ? block.getType():appendToHead.getType(),\n    data: appendToHead.getData()\n  });\n};\n\n\n\nvar updateTail=function updateTail(block, targetOffset, fragment){\n  // Modify tail portion of block.\n  var text=block.getText();\n  var chars=block.getCharacterList(); // Modify head portion of block.\n\n  var blockSize=text.length;\n  var tailText=text.slice(targetOffset, blockSize);\n  var tailCharacters=chars.slice(targetOffset, blockSize);\n  var prependToTail=fragment.last();\n  return prependToTail.merge({\n    text: prependToTail.getText() + tailText,\n    characterList: prependToTail.getCharacterList().concat(tailCharacters),\n    data: prependToTail.getData()\n  });\n};\n\nvar getRootBlocks=function getRootBlocks(block, blockMap){\n  var headKey=block.getKey();\n  var rootBlock=block;\n  var rootBlocks=[]; // sometimes the fragment head block will not be part of the blockMap itself this can happen when\n  // the fragment head is used to update the target block, however when this does not happen we need\n  // to make sure that we include it on the rootBlocks since the first block of a fragment is always a\n  // fragment root block\n\n  if(blockMap.get(headKey)){\n    rootBlocks.push(headKey);\n  }\n\n  while (rootBlock&&rootBlock.getNextSiblingKey()){\n    var lastSiblingKey=rootBlock.getNextSiblingKey();\n\n    if(!lastSiblingKey){\n      break;\n    }\n\n    rootBlocks.push(lastSiblingKey);\n    rootBlock=blockMap.get(lastSiblingKey);\n  }\n\n  return rootBlocks;\n};\n\nvar updateBlockMapLinks=function updateBlockMapLinks(blockMap, originalBlockMap, targetBlock, fragmentHeadBlock){\n  return blockMap.withMutations(function (blockMapState){\n    var targetKey=targetBlock.getKey();\n    var headKey=fragmentHeadBlock.getKey();\n    var targetNextKey=targetBlock.getNextSiblingKey();\n    var targetParentKey=targetBlock.getParentKey();\n    var fragmentRootBlocks=getRootBlocks(fragmentHeadBlock, blockMap);\n    var lastRootFragmentBlockKey=fragmentRootBlocks[fragmentRootBlocks.length - 1];\n\n    if(blockMapState.get(headKey)){\n      // update the fragment head when it is part of the blockMap otherwise\n      blockMapState.setIn([targetKey, 'nextSibling'], headKey);\n      blockMapState.setIn([headKey, 'prevSibling'], targetKey);\n    }else{\n      // update the target block that had the fragment head contents merged into it\n      blockMapState.setIn([targetKey, 'nextSibling'], fragmentHeadBlock.getNextSiblingKey());\n      blockMapState.setIn([fragmentHeadBlock.getNextSiblingKey(), 'prevSibling'], targetKey);\n    } // update the last root block fragment\n\n\n    blockMapState.setIn([lastRootFragmentBlockKey, 'nextSibling'], targetNextKey); // update the original target next block\n\n    if(targetNextKey){\n      blockMapState.setIn([targetNextKey, 'prevSibling'], lastRootFragmentBlockKey);\n    } // update fragment parent links\n\n\n    fragmentRootBlocks.forEach(function (blockKey){\n      return blockMapState.setIn([blockKey, 'parent'], targetParentKey);\n    });// update targetBlock parent child links\n\n    if(targetParentKey){\n      var targetParent=blockMap.get(targetParentKey);\n      var originalTargetParentChildKeys=targetParent.getChildKeys();\n      var targetBlockIndex=originalTargetParentChildKeys.indexOf(targetKey);\n      var insertionIndex=targetBlockIndex + 1;\n      var newChildrenKeysArray=originalTargetParentChildKeys.toArray(); // insert fragment children\n\n      newChildrenKeysArray.splice.apply(newChildrenKeysArray, [insertionIndex, 0].concat(fragmentRootBlocks));\n      blockMapState.setIn([targetParentKey, 'children'], List(newChildrenKeysArray));\n    }\n  });\n};\n\nvar insertFragment=function insertFragment(contentState, selectionState, blockMap, fragment, targetKey, targetOffset){\n  var isTreeBasedBlockMap=blockMap.first() instanceof ContentBlockNode;\n  var newBlockArr=[];\n  var fragmentSize=fragment.size;\n  var target=blockMap.get(targetKey);\n  var head=fragment.first();\n  var tail=fragment.last();\n  var finalOffset=tail.getLength();\n  var finalKey=tail.getKey();\n  var shouldNotUpdateFromFragmentBlock=isTreeBasedBlockMap&&(!target.getChildKeys().isEmpty()||!head.getChildKeys().isEmpty());\n  blockMap.forEach(function (block, blockKey){\n    if(blockKey!==targetKey){\n      newBlockArr.push(block);\n      return;\n    }\n\n    if(shouldNotUpdateFromFragmentBlock){\n      newBlockArr.push(block);\n    }else{\n      newBlockArr.push(updateHead(block, targetOffset, fragment));\n    } // Insert fragment blocks after the head and before the tail.\n\n\n    fragment // when we are updating the target block with the head fragment block we skip the first fragment\n    // head since its contents have already been merged with the target block otherwise we include\n    // the whole fragment\n    .slice(shouldNotUpdateFromFragmentBlock ? 0:1, fragmentSize - 1).forEach(function (fragmentBlock){\n      return newBlockArr.push(fragmentBlock);\n    });// update tail\n\n    newBlockArr.push(updateTail(block, targetOffset, fragment));\n  });\n  var updatedBlockMap=BlockMapBuilder.createFromArray(newBlockArr);\n\n  if(isTreeBasedBlockMap){\n    updatedBlockMap=updateBlockMapLinks(updatedBlockMap, blockMap, target, head);\n  }\n\n  return contentState.merge({\n    blockMap: updatedBlockMap,\n    selectionBefore: selectionState,\n    selectionAfter: selectionState.merge({\n      anchorKey: finalKey,\n      anchorOffset: finalOffset,\n      focusKey: finalKey,\n      focusOffset: finalOffset,\n      isBackward: false\n    })\n  });\n};\n\nvar insertFragmentIntoContentState=function insertFragmentIntoContentState(contentState, selectionState, fragmentBlockMap){\n  var mergeBlockData=arguments.length > 3&&arguments[3]!==undefined ? arguments[3]:'REPLACE_WITH_NEW_DATA';\n  !selectionState.isCollapsed() ?  true ? invariant(false, '`insertFragment` should only be called with a collapsed selection state.'):undefined:void 0;\n  var blockMap=contentState.getBlockMap();\n  var fragment=randomizeBlockMapKeys(fragmentBlockMap);\n  var targetKey=selectionState.getStartKey();\n  var targetOffset=selectionState.getStartOffset();\n  var targetBlock=blockMap.get(targetKey);\n\n  if(targetBlock instanceof ContentBlockNode){\n    !targetBlock.getChildKeys().isEmpty() ?  true ? invariant(false, '`insertFragment` should not be called when a container node is selected.'):undefined:void 0;\n  } // When we insert a fragment with a single block we simply update the target block\n  // with the contents of the inserted fragment block\n\n\n  if(fragment.size===1){\n    return updateExistingBlock(contentState, selectionState, blockMap, fragment.first(), targetKey, targetOffset, mergeBlockData);\n  }\n\n  return insertFragment(contentState, selectionState, blockMap, fragment, targetKey, targetOffset);\n};\n\nmodule.exports=insertFragmentIntoContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/insertFragmentIntoContentState.js?");
}),
"./node_modules/draft-js/lib/insertIntoList.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction insertIntoList(targetListArg, toInsert, offset){\n  var targetList=targetListArg;\n\n  if(offset===targetList.count()){\n    toInsert.forEach(function (c){\n      targetList=targetList.push(c);\n    });\n  }else if(offset===0){\n    toInsert.reverse().forEach(function (c){\n      targetList=targetList.unshift(c);\n    });\n  }else{\n    var head=targetList.slice(0, offset);\n    var tail=targetList.slice(offset);\n    targetList=head.concat(toInsert, tail).toList();\n  }\n\n  return targetList;\n}\n\nmodule.exports=insertIntoList;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/insertIntoList.js?");
}),
"./node_modules/draft-js/lib/insertTextIntoContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar insertIntoList=__webpack_require__( \"./node_modules/draft-js/lib/insertIntoList.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar Repeat=Immutable.Repeat;\n\nfunction insertTextIntoContentState(contentState, selectionState, text, characterMetadata){\n  !selectionState.isCollapsed() ?  true ? invariant(false, '`insertText` should only be called with a collapsed range.'):undefined:void 0;\n  var len=null;\n\n  if(text!=null){\n    len=text.length;\n  }\n\n  if(len==null||len===0){\n    return contentState;\n  }\n\n  var blockMap=contentState.getBlockMap();\n  var key=selectionState.getStartKey();\n  var offset=selectionState.getStartOffset();\n  var block=blockMap.get(key);\n  var blockText=block.getText();\n  var newBlock=block.merge({\n    text: blockText.slice(0, offset) + text + blockText.slice(offset, block.getLength()),\n    characterList: insertIntoList(block.getCharacterList(), Repeat(characterMetadata, len).toList(), offset)\n  });\n  var newOffset=offset + len;\n  return contentState.merge({\n    blockMap: blockMap.set(key, newBlock),\n    selectionAfter: selectionState.merge({\n      anchorOffset: newOffset,\n      focusOffset: newOffset\n    })\n  });\n}\n\nmodule.exports=insertTextIntoContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/insertTextIntoContentState.js?");
}),
"./node_modules/draft-js/lib/isElement.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction isElement(node){\n  if(!node||!node.ownerDocument){\n    return false;\n  }\n\n  return node.nodeType===Node.ELEMENT_NODE;\n}\n\nmodule.exports=isElement;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isElement.js?");
}),
"./node_modules/draft-js/lib/isEventHandled.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction isEventHandled(value){\n  return value==='handled'||value===true;\n}\n\nmodule.exports=isEventHandled;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isEventHandled.js?");
}),
"./node_modules/draft-js/lib/isHTMLAnchorElement.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar isElement=__webpack_require__( \"./node_modules/draft-js/lib/isElement.js\");\n\nfunction isHTMLAnchorElement(node){\n  if(!node||!node.ownerDocument){\n    return false;\n  }\n\n  return isElement(node)&&node.nodeName==='A';\n}\n\nmodule.exports=isHTMLAnchorElement;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isHTMLAnchorElement.js?");
}),
"./node_modules/draft-js/lib/isHTMLBRElement.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar isElement=__webpack_require__( \"./node_modules/draft-js/lib/isElement.js\");\n\nfunction isHTMLBRElement(node){\n  if(!node||!node.ownerDocument){\n    return false;\n  }\n\n  return isElement(node)&&node.nodeName==='BR';\n}\n\nmodule.exports=isHTMLBRElement;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isHTMLBRElement.js?");
}),
"./node_modules/draft-js/lib/isHTMLElement.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction isHTMLElement(node){\n  if(!node||!node.ownerDocument){\n    return false;\n  }\n\n  if(!node.ownerDocument.defaultView){\n    return node instanceof HTMLElement;\n  }\n\n  if(node instanceof node.ownerDocument.defaultView.HTMLElement){\n    return true;\n  }\n\n  return false;\n}\n\nmodule.exports=isHTMLElement;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isHTMLElement.js?");
}),
"./node_modules/draft-js/lib/isHTMLImageElement.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar isElement=__webpack_require__( \"./node_modules/draft-js/lib/isElement.js\");\n\nfunction isHTMLImageElement(node){\n  if(!node||!node.ownerDocument){\n    return false;\n  }\n\n  return isElement(node)&&node.nodeName==='IMG';\n}\n\nmodule.exports=isHTMLImageElement;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isHTMLImageElement.js?");
}),
"./node_modules/draft-js/lib/isInstanceOfNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction isInstanceOfNode(target){\n  // we changed the name because of having duplicate module provider (fbjs)\n  if(!target||!('ownerDocument' in target)){\n    return false;\n  }\n\n  if('ownerDocument' in target){\n    var node=target;\n\n    if(!node.ownerDocument.defaultView){\n      return node instanceof Node;\n    }\n\n    if(node instanceof node.ownerDocument.defaultView.Node){\n      return true;\n    }\n  }\n\n  return false;\n}\n\nmodule.exports=isInstanceOfNode;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isInstanceOfNode.js?");
}),
"./node_modules/draft-js/lib/isSelectionAtLeafStart.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction isSelectionAtLeafStart(editorState){\n  var selection=editorState.getSelection();\n  var anchorKey=selection.getAnchorKey();\n  var blockTree=editorState.getBlockTree(anchorKey);\n  var offset=selection.getStartOffset();\n  var isAtStart=false;\n  blockTree.some(function (leafSet){\n    if(offset===leafSet.get('start')){\n      isAtStart=true;\n      return true;\n    }\n\n    if(offset < leafSet.get('end')){\n      return leafSet.get('leaves').some(function (leaf){\n        var leafStart=leaf.get('start');\n\n        if(offset===leafStart){\n          isAtStart=true;\n          return true;\n        }\n\n        return false;\n      });\n    }\n\n    return false;\n  });\n  return isAtStart;\n}\n\nmodule.exports=isSelectionAtLeafStart;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isSelectionAtLeafStart.js?");
}),
"./node_modules/draft-js/lib/isSoftNewlineEvent.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar Keys=__webpack_require__( \"./node_modules/fbjs/lib/Keys.js\");\n\nfunction isSoftNewlineEvent(e){\n  return e.which===Keys.RETURN&&(e.getModifierState('Shift')||e.getModifierState('Alt')||e.getModifierState('Control'));\n}\n\nmodule.exports=isSoftNewlineEvent;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/isSoftNewlineEvent.js?");
}),
"./node_modules/draft-js/lib/keyCommandBackspaceToStartOfLine.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar expandRangeToStartOfLine=__webpack_require__( \"./node_modules/draft-js/lib/expandRangeToStartOfLine.js\");\n\nvar getDraftEditorSelectionWithNodes=__webpack_require__( \"./node_modules/draft-js/lib/getDraftEditorSelectionWithNodes.js\");\n\nvar moveSelectionBackward=__webpack_require__( \"./node_modules/draft-js/lib/moveSelectionBackward.js\");\n\nvar removeTextWithStrategy=__webpack_require__( \"./node_modules/draft-js/lib/removeTextWithStrategy.js\");\n\nfunction keyCommandBackspaceToStartOfLine(editorState, e){\n  var afterRemoval=removeTextWithStrategy(editorState, function (strategyState){\n    var selection=strategyState.getSelection();\n\n    if(selection.isCollapsed()&&selection.getAnchorOffset()===0){\n      return moveSelectionBackward(strategyState, 1);\n    }\n\n    var ownerDocument=e.currentTarget.ownerDocument;\n    var domSelection=ownerDocument.defaultView.getSelection(); // getRangeAt can technically throw if there's no selection, but we know\n    // there is one here because text editor has focus (the cursor is a\n    // selection of length 0). Therefore, we don't need to wrap this in a\n    // try-catch block.\n\n    var range=domSelection.getRangeAt(0);\n    range=expandRangeToStartOfLine(range);\n    return getDraftEditorSelectionWithNodes(strategyState, null, range.endContainer, range.endOffset, range.startContainer, range.startOffset).selectionState;\n  }, 'backward');\n\n  if(afterRemoval===editorState.getCurrentContent()){\n    return editorState;\n  }\n\n  return EditorState.push(editorState, afterRemoval, 'remove-range');\n}\n\nmodule.exports=keyCommandBackspaceToStartOfLine;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandBackspaceToStartOfLine.js?");
}),
"./node_modules/draft-js/lib/keyCommandBackspaceWord.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftRemovableWord=__webpack_require__( \"./node_modules/draft-js/lib/DraftRemovableWord.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar moveSelectionBackward=__webpack_require__( \"./node_modules/draft-js/lib/moveSelectionBackward.js\");\n\nvar removeTextWithStrategy=__webpack_require__( \"./node_modules/draft-js/lib/removeTextWithStrategy.js\");\n\n\n\nfunction keyCommandBackspaceWord(editorState){\n  var afterRemoval=removeTextWithStrategy(editorState, function (strategyState){\n    var selection=strategyState.getSelection();\n    var offset=selection.getStartOffset(); // If there are no words before the cursor, remove the preceding newline.\n\n    if(offset===0){\n      return moveSelectionBackward(strategyState, 1);\n    }\n\n    var key=selection.getStartKey();\n    var content=strategyState.getCurrentContent();\n    var text=content.getBlockForKey(key).getText().slice(0, offset);\n    var toRemove=DraftRemovableWord.getBackward(text);\n    return moveSelectionBackward(strategyState, toRemove.length||1);\n  }, 'backward');\n\n  if(afterRemoval===editorState.getCurrentContent()){\n    return editorState;\n  }\n\n  return EditorState.push(editorState, afterRemoval, 'remove-range');\n}\n\nmodule.exports=keyCommandBackspaceWord;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandBackspaceWord.js?");
}),
"./node_modules/draft-js/lib/keyCommandDeleteWord.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftRemovableWord=__webpack_require__( \"./node_modules/draft-js/lib/DraftRemovableWord.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar moveSelectionForward=__webpack_require__( \"./node_modules/draft-js/lib/moveSelectionForward.js\");\n\nvar removeTextWithStrategy=__webpack_require__( \"./node_modules/draft-js/lib/removeTextWithStrategy.js\");\n\n\n\nfunction keyCommandDeleteWord(editorState){\n  var afterRemoval=removeTextWithStrategy(editorState, function (strategyState){\n    var selection=strategyState.getSelection();\n    var offset=selection.getStartOffset();\n    var key=selection.getStartKey();\n    var content=strategyState.getCurrentContent();\n    var text=content.getBlockForKey(key).getText().slice(offset);\n    var toRemove=DraftRemovableWord.getForward(text); // If there are no words in front of the cursor, remove the newline.\n\n    return moveSelectionForward(strategyState, toRemove.length||1);\n  }, 'forward');\n\n  if(afterRemoval===editorState.getCurrentContent()){\n    return editorState;\n  }\n\n  return EditorState.push(editorState, afterRemoval, 'remove-range');\n}\n\nmodule.exports=keyCommandDeleteWord;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandDeleteWord.js?");
}),
"./node_modules/draft-js/lib/keyCommandInsertNewline.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nfunction keyCommandInsertNewline(editorState){\n  var contentState=DraftModifier.splitBlock(editorState.getCurrentContent(), editorState.getSelection());\n  return EditorState.push(editorState, contentState, 'split-block');\n}\n\nmodule.exports=keyCommandInsertNewline;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandInsertNewline.js?");
}),
"./node_modules/draft-js/lib/keyCommandMoveSelectionToEndOfBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\n\n\nfunction keyCommandMoveSelectionToEndOfBlock(editorState){\n  var selection=editorState.getSelection();\n  var endKey=selection.getEndKey();\n  var content=editorState.getCurrentContent();\n  var textLength=content.getBlockForKey(endKey).getLength();\n  return EditorState.set(editorState, {\n    selection: selection.merge({\n      anchorKey: endKey,\n      anchorOffset: textLength,\n      focusKey: endKey,\n      focusOffset: textLength,\n      isBackward: false\n    }),\n    forceSelection: true\n  });\n}\n\nmodule.exports=keyCommandMoveSelectionToEndOfBlock;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandMoveSelectionToEndOfBlock.js?");
}),
"./node_modules/draft-js/lib/keyCommandMoveSelectionToStartOfBlock.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\n\n\nfunction keyCommandMoveSelectionToStartOfBlock(editorState){\n  var selection=editorState.getSelection();\n  var startKey=selection.getStartKey();\n  return EditorState.set(editorState, {\n    selection: selection.merge({\n      anchorKey: startKey,\n      anchorOffset: 0,\n      focusKey: startKey,\n      focusOffset: 0,\n      isBackward: false\n    }),\n    forceSelection: true\n  });\n}\n\nmodule.exports=keyCommandMoveSelectionToStartOfBlock;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandMoveSelectionToStartOfBlock.js?");
}),
"./node_modules/draft-js/lib/keyCommandPlainBackspace.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar UnicodeUtils=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeUtils.js\");\n\nvar moveSelectionBackward=__webpack_require__( \"./node_modules/draft-js/lib/moveSelectionBackward.js\");\n\nvar removeTextWithStrategy=__webpack_require__( \"./node_modules/draft-js/lib/removeTextWithStrategy.js\");\n\n\n\nfunction keyCommandPlainBackspace(editorState){\n  var afterRemoval=removeTextWithStrategy(editorState, function (strategyState){\n    var selection=strategyState.getSelection();\n    var content=strategyState.getCurrentContent();\n    var key=selection.getAnchorKey();\n    var offset=selection.getAnchorOffset();\n    var charBehind=content.getBlockForKey(key).getText()[offset - 1];\n    return moveSelectionBackward(strategyState, charBehind ? UnicodeUtils.getUTF16Length(charBehind, 0):1);\n  }, 'backward');\n\n  if(afterRemoval===editorState.getCurrentContent()){\n    return editorState;\n  }\n\n  var selection=editorState.getSelection();\n  return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'backspace-character':'remove-range');\n}\n\nmodule.exports=keyCommandPlainBackspace;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandPlainBackspace.js?");
}),
"./node_modules/draft-js/lib/keyCommandPlainDelete.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar UnicodeUtils=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeUtils.js\");\n\nvar moveSelectionForward=__webpack_require__( \"./node_modules/draft-js/lib/moveSelectionForward.js\");\n\nvar removeTextWithStrategy=__webpack_require__( \"./node_modules/draft-js/lib/removeTextWithStrategy.js\");\n\n\n\nfunction keyCommandPlainDelete(editorState){\n  var afterRemoval=removeTextWithStrategy(editorState, function (strategyState){\n    var selection=strategyState.getSelection();\n    var content=strategyState.getCurrentContent();\n    var key=selection.getAnchorKey();\n    var offset=selection.getAnchorOffset();\n    var charAhead=content.getBlockForKey(key).getText()[offset];\n    return moveSelectionForward(strategyState, charAhead ? UnicodeUtils.getUTF16Length(charAhead, 0):1);\n  }, 'forward');\n\n  if(afterRemoval===editorState.getCurrentContent()){\n    return editorState;\n  }\n\n  var selection=editorState.getSelection();\n  return EditorState.push(editorState, afterRemoval.set('selectionBefore', selection), selection.isCollapsed() ? 'delete-character':'remove-range');\n}\n\nmodule.exports=keyCommandPlainDelete;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandPlainDelete.js?");
}),
"./node_modules/draft-js/lib/keyCommandTransposeCharacters.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nvar getContentStateFragment=__webpack_require__( \"./node_modules/draft-js/lib/getContentStateFragment.js\");\n\n\n\nfunction keyCommandTransposeCharacters(editorState){\n  var selection=editorState.getSelection();\n\n  if(!selection.isCollapsed()){\n    return editorState;\n  }\n\n  var offset=selection.getAnchorOffset();\n\n  if(offset===0){\n    return editorState;\n  }\n\n  var blockKey=selection.getAnchorKey();\n  var content=editorState.getCurrentContent();\n  var block=content.getBlockForKey(blockKey);\n  var length=block.getLength(); // Nothing to transpose if there aren't two characters.\n\n  if(length <=1){\n    return editorState;\n  }\n\n  var removalRange;\n  var finalSelection;\n\n  if(offset===length){\n    // The cursor is at the end of the block. Swap the last two characters.\n    removalRange=selection.set('anchorOffset', offset - 1);\n    finalSelection=selection;\n  }else{\n    removalRange=selection.set('focusOffset', offset + 1);\n    finalSelection=removalRange.set('anchorOffset', offset + 1);\n  } // Extract the character to move as a fragment. This preserves its\n  // styling and entity, if any.\n\n\n  var movedFragment=getContentStateFragment(content, removalRange);\n  var afterRemoval=DraftModifier.removeRange(content, removalRange, 'backward'); // After the removal, the insertion target is one character back.\n\n  var selectionAfter=afterRemoval.getSelectionAfter();\n  var targetOffset=selectionAfter.getAnchorOffset() - 1;\n  var targetRange=selectionAfter.merge({\n    anchorOffset: targetOffset,\n    focusOffset: targetOffset\n  });\n  var afterInsert=DraftModifier.replaceWithFragment(afterRemoval, targetRange, movedFragment);\n  var newEditorState=EditorState.push(editorState, afterInsert, 'insert-fragment');\n  return EditorState.acceptSelection(newEditorState, finalSelection);\n}\n\nmodule.exports=keyCommandTransposeCharacters;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandTransposeCharacters.js?");
}),
"./node_modules/draft-js/lib/keyCommandUndo.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar EditorState=__webpack_require__( \"./node_modules/draft-js/lib/EditorState.js\");\n\nfunction keyCommandUndo(e, editorState, updateFn){\n  var undoneState=EditorState.undo(editorState); // If the last change to occur was a spellcheck change, allow the undo\n  // event to fall through to the browser. This allows the browser to record\n  // the unwanted change, which should soon lead it to learn not to suggest\n  // the correction again.\n\n  if(editorState.getLastChangeType()==='spellcheck-change'){\n    var nativelyRenderedContent=undoneState.getCurrentContent();\n    updateFn(EditorState.set(undoneState, {\n      nativelyRenderedContent: nativelyRenderedContent\n    }));\n    return;\n  } // Otheriwse, manage the undo behavior manually.\n\n\n  e.preventDefault();\n\n  if(!editorState.getNativelyRenderedContent()){\n    updateFn(undoneState);\n    return;\n  } // Trigger a re-render with the current content state to ensure that the\n  // component tree has up-to-date props for comparison.\n\n\n  updateFn(EditorState.set(editorState, {\n    nativelyRenderedContent: null\n  })); // Wait to ensure that the re-render has occurred before performing\n  // the undo action.\n\n  setTimeout(function (){\n    updateFn(undoneState);\n  }, 0);\n}\n\nmodule.exports=keyCommandUndo;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/keyCommandUndo.js?");
}),
"./node_modules/draft-js/lib/modifyBlockForContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar Map=Immutable.Map;\n\nfunction modifyBlockForContentState(contentState, selectionState, operation){\n  var startKey=selectionState.getStartKey();\n  var endKey=selectionState.getEndKey();\n  var blockMap=contentState.getBlockMap();\n  var newBlocks=blockMap.toSeq().skipUntil(function (_, k){\n    return k===startKey;\n  }).takeUntil(function (_, k){\n    return k===endKey;\n  }).concat(Map([[endKey, blockMap.get(endKey)]])).map(operation);\n  return contentState.merge({\n    blockMap: blockMap.merge(newBlocks),\n    selectionBefore: selectionState,\n    selectionAfter: selectionState\n  });\n}\n\nmodule.exports=modifyBlockForContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/modifyBlockForContentState.js?");
}),
"./node_modules/draft-js/lib/moveBlockInContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar getNextDelimiterBlockKey=__webpack_require__( \"./node_modules/draft-js/lib/getNextDelimiterBlockKey.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar OrderedMap=Immutable.OrderedMap,\n    List=Immutable.List;\n\nvar transformBlock=function transformBlock(key, blockMap, func){\n  if(!key){\n    return;\n  }\n\n  var block=blockMap.get(key);\n\n  if(!block){\n    return;\n  }\n\n  blockMap.set(key, func(block));\n};\n\nvar updateBlockMapLinks=function updateBlockMapLinks(blockMap, originalBlockToBeMoved, originalTargetBlock, insertionMode, isExperimentalTreeBlock){\n  if(!isExperimentalTreeBlock){\n    return blockMap;\n  } // possible values of 'insertionMode' are: 'after', 'before'\n\n\n  var isInsertedAfterTarget=insertionMode==='after';\n  var originalBlockKey=originalBlockToBeMoved.getKey();\n  var originalTargetKey=originalTargetBlock.getKey();\n  var originalParentKey=originalBlockToBeMoved.getParentKey();\n  var originalNextSiblingKey=originalBlockToBeMoved.getNextSiblingKey();\n  var originalPrevSiblingKey=originalBlockToBeMoved.getPrevSiblingKey();\n  var newParentKey=originalTargetBlock.getParentKey();\n  var newNextSiblingKey=isInsertedAfterTarget ? originalTargetBlock.getNextSiblingKey():originalTargetKey;\n  var newPrevSiblingKey=isInsertedAfterTarget ? originalTargetKey:originalTargetBlock.getPrevSiblingKey();\n  return blockMap.withMutations(function (blocks){\n    // update old parent\n    transformBlock(originalParentKey, blocks, function (block){\n      var parentChildrenList=block.getChildKeys();\n      return block.merge({\n        children: parentChildrenList[\"delete\"](parentChildrenList.indexOf(originalBlockKey))\n      });\n    });// update old prev\n\n    transformBlock(originalPrevSiblingKey, blocks, function (block){\n      return block.merge({\n        nextSibling: originalNextSiblingKey\n      });\n    });// update old next\n\n    transformBlock(originalNextSiblingKey, blocks, function (block){\n      return block.merge({\n        prevSibling: originalPrevSiblingKey\n      });\n    });// update new next\n\n    transformBlock(newNextSiblingKey, blocks, function (block){\n      return block.merge({\n        prevSibling: originalBlockKey\n      });\n    });// update new prev\n\n    transformBlock(newPrevSiblingKey, blocks, function (block){\n      return block.merge({\n        nextSibling: originalBlockKey\n      });\n    });// update new parent\n\n    transformBlock(newParentKey, blocks, function (block){\n      var newParentChildrenList=block.getChildKeys();\n      var targetBlockIndex=newParentChildrenList.indexOf(originalTargetKey);\n      var insertionIndex=isInsertedAfterTarget ? targetBlockIndex + 1:targetBlockIndex!==0 ? targetBlockIndex - 1:0;\n      var newChildrenArray=newParentChildrenList.toArray();\n      newChildrenArray.splice(insertionIndex, 0, originalBlockKey);\n      return block.merge({\n        children: List(newChildrenArray)\n      });\n    });// update block\n\n    transformBlock(originalBlockKey, blocks, function (block){\n      return block.merge({\n        nextSibling: newNextSiblingKey,\n        prevSibling: newPrevSiblingKey,\n        parent: newParentKey\n      });\n    });\n  });\n};\n\nvar moveBlockInContentState=function moveBlockInContentState(contentState, blockToBeMoved, targetBlock, insertionMode){\n  !(insertionMode!=='replace') ?  true ? invariant(false, 'Replacing blocks is not supported.'):undefined:void 0;\n  var targetKey=targetBlock.getKey();\n  var blockKey=blockToBeMoved.getKey();\n  !(blockKey!==targetKey) ?  true ? invariant(false, 'Block cannot be moved next to itself.'):undefined:void 0;\n  var blockMap=contentState.getBlockMap();\n  var isExperimentalTreeBlock=blockToBeMoved instanceof ContentBlockNode;\n  var blocksToBeMoved=[blockToBeMoved];\n  var blockMapWithoutBlocksToBeMoved=blockMap[\"delete\"](blockKey);\n\n  if(isExperimentalTreeBlock){\n    blocksToBeMoved=[];\n    blockMapWithoutBlocksToBeMoved=blockMap.withMutations(function (blocks){\n      var nextSiblingKey=blockToBeMoved.getNextSiblingKey();\n      var nextDelimiterBlockKey=getNextDelimiterBlockKey(blockToBeMoved, blocks);\n      blocks.toSeq().skipUntil(function (block){\n        return block.getKey()===blockKey;\n      }).takeWhile(function (block){\n        var key=block.getKey();\n        var isBlockToBeMoved=key===blockKey;\n        var hasNextSiblingAndIsNotNextSibling=nextSiblingKey&&key!==nextSiblingKey;\n        var doesNotHaveNextSiblingAndIsNotDelimiter = !nextSiblingKey&&block.getParentKey()&&(!nextDelimiterBlockKey||key!==nextDelimiterBlockKey);\n        return !!(isBlockToBeMoved||hasNextSiblingAndIsNotNextSibling||doesNotHaveNextSiblingAndIsNotDelimiter);\n      }).forEach(function (block){\n        blocksToBeMoved.push(block);\n        blocks[\"delete\"](block.getKey());\n      });\n    });\n  }\n\n  var blocksBefore=blockMapWithoutBlocksToBeMoved.toSeq().takeUntil(function (v){\n    return v===targetBlock;\n  });\n  var blocksAfter=blockMapWithoutBlocksToBeMoved.toSeq().skipUntil(function (v){\n    return v===targetBlock;\n  }).skip(1);\n  var slicedBlocks=blocksToBeMoved.map(function (block){\n    return [block.getKey(), block];\n  });\n  var newBlocks=OrderedMap();\n\n  if(insertionMode==='before'){\n    var blockBefore=contentState.getBlockBefore(targetKey);\n    !(!blockBefore||blockBefore.getKey()!==blockToBeMoved.getKey()) ?  true ? invariant(false, 'Block cannot be moved next to itself.'):undefined:void 0;\n    newBlocks=blocksBefore.concat([].concat(slicedBlocks, [[targetKey, targetBlock]]), blocksAfter).toOrderedMap();\n  }else if(insertionMode==='after'){\n    var blockAfter=contentState.getBlockAfter(targetKey);\n    !(!blockAfter||blockAfter.getKey()!==blockKey) ?  true ? invariant(false, 'Block cannot be moved next to itself.'):undefined:void 0;\n    newBlocks=blocksBefore.concat([[targetKey, targetBlock]].concat(slicedBlocks), blocksAfter).toOrderedMap();\n  }\n\n  return contentState.merge({\n    blockMap: updateBlockMapLinks(newBlocks, blockToBeMoved, targetBlock, insertionMode, isExperimentalTreeBlock),\n    selectionBefore: contentState.getSelectionAfter(),\n    selectionAfter: contentState.getSelectionAfter().merge({\n      anchorKey: blockKey,\n      focusKey: blockKey\n    })\n  });\n};\n\nmodule.exports=moveBlockInContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/moveBlockInContentState.js?");
}),
"./node_modules/draft-js/lib/moveSelectionBackward.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar warning=__webpack_require__( \"./node_modules/fbjs/lib/warning.js\");\n\n\n\nfunction moveSelectionBackward(editorState, maxDistance){\n  var selection=editorState.getSelection(); // Should eventually make this an invariant\n\n   true ? warning(selection.isCollapsed(), 'moveSelectionBackward should only be called with a collapsed SelectionState'):undefined;\n  var content=editorState.getCurrentContent();\n  var key=selection.getStartKey();\n  var offset=selection.getStartOffset();\n  var focusKey=key;\n  var focusOffset=0;\n\n  if(maxDistance > offset){\n    var keyBefore=content.getKeyBefore(key);\n\n    if(keyBefore==null){\n      focusKey=key;\n    }else{\n      focusKey=keyBefore;\n      var blockBefore=content.getBlockForKey(keyBefore);\n      focusOffset=blockBefore.getText().length;\n    }\n  }else{\n    focusOffset=offset - maxDistance;\n  }\n\n  return selection.merge({\n    focusKey: focusKey,\n    focusOffset: focusOffset,\n    isBackward: true\n  });\n}\n\nmodule.exports=moveSelectionBackward;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/moveSelectionBackward.js?");
}),
"./node_modules/draft-js/lib/moveSelectionForward.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar warning=__webpack_require__( \"./node_modules/fbjs/lib/warning.js\");\n\n\n\nfunction moveSelectionForward(editorState, maxDistance){\n  var selection=editorState.getSelection(); // Should eventually make this an invariant\n\n   true ? warning(selection.isCollapsed(), 'moveSelectionForward should only be called with a collapsed SelectionState'):undefined;\n  var key=selection.getStartKey();\n  var offset=selection.getStartOffset();\n  var content=editorState.getCurrentContent();\n  var focusKey=key;\n  var focusOffset;\n  var block=content.getBlockForKey(key);\n\n  if(maxDistance > block.getText().length - offset){\n    focusKey=content.getKeyAfter(key);\n    focusOffset=0;\n  }else{\n    focusOffset=offset + maxDistance;\n  }\n\n  return selection.merge({\n    focusKey: focusKey,\n    focusOffset: focusOffset\n  });\n}\n\nmodule.exports=moveSelectionForward;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/moveSelectionForward.js?");
}),
"./node_modules/draft-js/lib/randomizeBlockMapKeys.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar OrderedMap=Immutable.OrderedMap;\n\nvar randomizeContentBlockNodeKeys=function randomizeContentBlockNodeKeys(blockMap){\n  var newKeysRef={}; // we keep track of root blocks in order to update subsequent sibling links\n\n  var lastRootBlock;\n  return OrderedMap(blockMap.withMutations(function (blockMapState){\n    blockMapState.forEach(function (block, index){\n      var oldKey=block.getKey();\n      var nextKey=block.getNextSiblingKey();\n      var prevKey=block.getPrevSiblingKey();\n      var childrenKeys=block.getChildKeys();\n      var parentKey=block.getParentKey(); // new key that we will use to build linking\n\n      var key=generateRandomKey(); // we will add it here to re-use it later\n\n      newKeysRef[oldKey]=key;\n\n      if(nextKey){\n        var nextBlock=blockMapState.get(nextKey);\n\n        if(nextBlock){\n          blockMapState.setIn([nextKey, 'prevSibling'], key);\n        }else{\n          // this can happen when generating random keys for fragments\n          blockMapState.setIn([oldKey, 'nextSibling'], null);\n        }\n      }\n\n      if(prevKey){\n        var prevBlock=blockMapState.get(prevKey);\n\n        if(prevBlock){\n          blockMapState.setIn([prevKey, 'nextSibling'], key);\n        }else{\n          // this can happen when generating random keys for fragments\n          blockMapState.setIn([oldKey, 'prevSibling'], null);\n        }\n      }\n\n      if(parentKey&&blockMapState.get(parentKey)){\n        var parentBlock=blockMapState.get(parentKey);\n        var parentChildrenList=parentBlock.getChildKeys();\n        blockMapState.setIn([parentKey, 'children'], parentChildrenList.set(parentChildrenList.indexOf(block.getKey()), key));\n      }else{\n        // blocks will then be treated as root block nodes\n        blockMapState.setIn([oldKey, 'parent'], null);\n\n        if(lastRootBlock){\n          blockMapState.setIn([lastRootBlock.getKey(), 'nextSibling'], key);\n          blockMapState.setIn([oldKey, 'prevSibling'], newKeysRef[lastRootBlock.getKey()]);\n        }\n\n        lastRootBlock=blockMapState.get(oldKey);\n      }\n\n      childrenKeys.forEach(function (childKey){\n        var childBlock=blockMapState.get(childKey);\n\n        if(childBlock){\n          blockMapState.setIn([childKey, 'parent'], key);\n        }else{\n          blockMapState.setIn([oldKey, 'children'], block.getChildKeys().filter(function (child){\n            return child!==childKey;\n          }));\n        }\n      });\n    });\n  }).toArray().map(function (block){\n    return [newKeysRef[block.getKey()], block.set('key', newKeysRef[block.getKey()])];\n  }));\n};\n\nvar randomizeContentBlockKeys=function randomizeContentBlockKeys(blockMap){\n  return OrderedMap(blockMap.toArray().map(function (block){\n    var key=generateRandomKey();\n    return [key, block.set('key', key)];\n  }));\n};\n\nvar randomizeBlockMapKeys=function randomizeBlockMapKeys(blockMap){\n  var isTreeBasedBlockMap=blockMap.first() instanceof ContentBlockNode;\n\n  if(!isTreeBasedBlockMap){\n    return randomizeContentBlockKeys(blockMap);\n  }\n\n  return randomizeContentBlockNodeKeys(blockMap);\n};\n\nmodule.exports=randomizeBlockMapKeys;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/randomizeBlockMapKeys.js?");
}),
"./node_modules/draft-js/lib/removeEntitiesAtEdges.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar CharacterMetadata=__webpack_require__( \"./node_modules/draft-js/lib/CharacterMetadata.js\");\n\nvar findRangesImmutable=__webpack_require__( \"./node_modules/draft-js/lib/findRangesImmutable.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nfunction removeEntitiesAtEdges(contentState, selectionState){\n  var blockMap=contentState.getBlockMap();\n  var entityMap=contentState.getEntityMap();\n  var updatedBlocks={};\n  var startKey=selectionState.getStartKey();\n  var startOffset=selectionState.getStartOffset();\n  var startBlock=blockMap.get(startKey);\n  var updatedStart=removeForBlock(entityMap, startBlock, startOffset);\n\n  if(updatedStart!==startBlock){\n    updatedBlocks[startKey]=updatedStart;\n  }\n\n  var endKey=selectionState.getEndKey();\n  var endOffset=selectionState.getEndOffset();\n  var endBlock=blockMap.get(endKey);\n\n  if(startKey===endKey){\n    endBlock=updatedStart;\n  }\n\n  var updatedEnd=removeForBlock(entityMap, endBlock, endOffset);\n\n  if(updatedEnd!==endBlock){\n    updatedBlocks[endKey]=updatedEnd;\n  }\n\n  if(!Object.keys(updatedBlocks).length){\n    return contentState.set('selectionAfter', selectionState);\n  }\n\n  return contentState.merge({\n    blockMap: blockMap.merge(updatedBlocks),\n    selectionAfter: selectionState\n  });\n}\n\n\n\nfunction getRemovalRange(characters, entityKey, offset){\n  var removalRange; // Iterates through a list looking for ranges of matching items\n  // based on the 'isEqual' callback.\n  // Then instead of returning the result, call the 'found' callback\n  // with each range.\n  // Then filters those ranges based on the 'filter' callback\n  //\n  // Here we use it to find ranges of characters with the same entity key.\n\n  findRangesImmutable(characters, // the list to iterate through\n  function (a, b){\n    return a.getEntity()===b.getEntity();\n  }, // 'isEqual' callback\n  function (element){\n    return element.getEntity()===entityKey;\n  }, // 'filter' callback\n  function (start, end){\n    // 'found' callback\n    if(start <=offset&&end >=offset){\n      // this entity overlaps the offset index\n      removalRange={\n        start: start,\n        end: end\n      };\n    }\n  });\n  !(typeof removalRange==='object') ?  true ? invariant(false, 'Removal range must exist within character list.'):undefined:void 0;\n  return removalRange;\n}\n\nfunction removeForBlock(entityMap, block, offset){\n  var chars=block.getCharacterList();\n  var charBefore=offset > 0 ? chars.get(offset - 1):undefined;\n  var charAfter=offset < chars.count() ? chars.get(offset):undefined;\n  var entityBeforeCursor=charBefore ? charBefore.getEntity():undefined;\n  var entityAfterCursor=charAfter ? charAfter.getEntity():undefined;\n\n  if(entityAfterCursor&&entityAfterCursor===entityBeforeCursor){\n    var entity=entityMap.__get(entityAfterCursor);\n\n    if(entity.getMutability()!=='MUTABLE'){\n      var _getRemovalRange=getRemovalRange(chars, entityAfterCursor, offset),\n          start=_getRemovalRange.start,\n          end=_getRemovalRange.end;\n\n      var current;\n\n      while (start < end){\n        current=chars.get(start);\n        chars=chars.set(start, CharacterMetadata.applyEntity(current, null));\n        start++;\n      }\n\n      return block.set('characterList', chars);\n    }\n  }\n\n  return block;\n}\n\nmodule.exports=removeEntitiesAtEdges;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/removeEntitiesAtEdges.js?");
}),
"./node_modules/draft-js/lib/removeRangeFromContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar getNextDelimiterBlockKey=__webpack_require__( \"./node_modules/draft-js/lib/getNextDelimiterBlockKey.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar List=Immutable.List,\n    Map=Immutable.Map;\n\nvar transformBlock=function transformBlock(key, blockMap, func){\n  if(!key){\n    return;\n  }\n\n  var block=blockMap.get(key);\n\n  if(!block){\n    return;\n  }\n\n  blockMap.set(key, func(block));\n};\n\n\n\nvar getAncestorsKeys=function getAncestorsKeys(blockKey, blockMap){\n  var parents=[];\n\n  if(!blockKey){\n    return parents;\n  }\n\n  var blockNode=blockMap.get(blockKey);\n\n  while (blockNode&&blockNode.getParentKey()){\n    var parentKey=blockNode.getParentKey();\n\n    if(parentKey){\n      parents.push(parentKey);\n    }\n\n    blockNode=parentKey ? blockMap.get(parentKey):null;\n  }\n\n  return parents;\n};\n\n\n\nvar getNextDelimitersBlockKeys=function getNextDelimitersBlockKeys(block, blockMap){\n  var nextDelimiters=[];\n\n  if(!block){\n    return nextDelimiters;\n  }\n\n  var nextDelimiter=getNextDelimiterBlockKey(block, blockMap);\n\n  while (nextDelimiter&&blockMap.get(nextDelimiter)){\n    var _block=blockMap.get(nextDelimiter);\n\n    nextDelimiters.push(nextDelimiter); // we do not need to keep checking all root node siblings, just the first occurance\n\n    nextDelimiter=_block.getParentKey() ? getNextDelimiterBlockKey(_block, blockMap):null;\n  }\n\n  return nextDelimiters;\n};\n\nvar getNextValidSibling=function getNextValidSibling(block, blockMap, originalBlockMap){\n  if(!block){\n    return null;\n  } // note that we need to make sure we refer to the original block since this\n  // function is called within a withMutations\n\n\n  var nextValidSiblingKey=originalBlockMap.get(block.getKey()).getNextSiblingKey();\n\n  while (nextValidSiblingKey&&!blockMap.get(nextValidSiblingKey)){\n    nextValidSiblingKey=originalBlockMap.get(nextValidSiblingKey).getNextSiblingKey()||null;\n  }\n\n  return nextValidSiblingKey;\n};\n\nvar getPrevValidSibling=function getPrevValidSibling(block, blockMap, originalBlockMap){\n  if(!block){\n    return null;\n  } // note that we need to make sure we refer to the original block since this\n  // function is called within a withMutations\n\n\n  var prevValidSiblingKey=originalBlockMap.get(block.getKey()).getPrevSiblingKey();\n\n  while (prevValidSiblingKey&&!blockMap.get(prevValidSiblingKey)){\n    prevValidSiblingKey=originalBlockMap.get(prevValidSiblingKey).getPrevSiblingKey()||null;\n  }\n\n  return prevValidSiblingKey;\n};\n\nvar updateBlockMapLinks=function updateBlockMapLinks(blockMap, startBlock, endBlock, originalBlockMap){\n  return blockMap.withMutations(function (blocks){\n    // update start block if its retained\n    transformBlock(startBlock.getKey(), blocks, function (block){\n      return block.merge({\n        nextSibling: getNextValidSibling(block, blocks, originalBlockMap),\n        prevSibling: getPrevValidSibling(block, blocks, originalBlockMap)\n      });\n    });// update endblock if its retained\n\n    transformBlock(endBlock.getKey(), blocks, function (block){\n      return block.merge({\n        nextSibling: getNextValidSibling(block, blocks, originalBlockMap),\n        prevSibling: getPrevValidSibling(block, blocks, originalBlockMap)\n      });\n    });// update start block parent ancestors\n\n    getAncestorsKeys(startBlock.getKey(), originalBlockMap).forEach(function (parentKey){\n      return transformBlock(parentKey, blocks, function (block){\n        return block.merge({\n          children: block.getChildKeys().filter(function (key){\n            return blocks.get(key);\n          }),\n          nextSibling: getNextValidSibling(block, blocks, originalBlockMap),\n          prevSibling: getPrevValidSibling(block, blocks, originalBlockMap)\n        });\n      });\n    });// update start block next - can only happen if startBlock==endBlock\n\n    transformBlock(startBlock.getNextSiblingKey(), blocks, function (block){\n      return block.merge({\n        prevSibling: startBlock.getPrevSiblingKey()\n      });\n    });// update start block prev\n\n    transformBlock(startBlock.getPrevSiblingKey(), blocks, function (block){\n      return block.merge({\n        nextSibling: getNextValidSibling(block, blocks, originalBlockMap)\n      });\n    });// update end block next\n\n    transformBlock(endBlock.getNextSiblingKey(), blocks, function (block){\n      return block.merge({\n        prevSibling: getPrevValidSibling(block, blocks, originalBlockMap)\n      });\n    });// update end block prev\n\n    transformBlock(endBlock.getPrevSiblingKey(), blocks, function (block){\n      return block.merge({\n        nextSibling: endBlock.getNextSiblingKey()\n      });\n    });// update end block parent ancestors\n\n    getAncestorsKeys(endBlock.getKey(), originalBlockMap).forEach(function (parentKey){\n      transformBlock(parentKey, blocks, function (block){\n        return block.merge({\n          children: block.getChildKeys().filter(function (key){\n            return blocks.get(key);\n          }),\n          nextSibling: getNextValidSibling(block, blocks, originalBlockMap),\n          prevSibling: getPrevValidSibling(block, blocks, originalBlockMap)\n        });\n      });\n    });// update next delimiters all the way to a root delimiter\n\n    getNextDelimitersBlockKeys(endBlock, originalBlockMap).forEach(function (delimiterKey){\n      return transformBlock(delimiterKey, blocks, function (block){\n        return block.merge({\n          nextSibling: getNextValidSibling(block, blocks, originalBlockMap),\n          prevSibling: getPrevValidSibling(block, blocks, originalBlockMap)\n        });\n      });\n    });// if parent (startBlock) was deleted\n\n    if(blockMap.get(startBlock.getKey())==null&&blockMap.get(endBlock.getKey())!=null&&endBlock.getParentKey()===startBlock.getKey()&&endBlock.getPrevSiblingKey()==null){\n      var prevSiblingKey=startBlock.getPrevSiblingKey(); // endBlock becomes next sibling of parent's prevSibling\n\n      transformBlock(endBlock.getKey(), blocks, function (block){\n        return block.merge({\n          prevSibling: prevSiblingKey\n        });\n      });\n      transformBlock(prevSiblingKey, blocks, function (block){\n        return block.merge({\n          nextSibling: endBlock.getKey()\n        });\n      });// Update parent for previous parent's children, and children for that parent\n\n      var prevSibling=prevSiblingKey ? blockMap.get(prevSiblingKey):null;\n      var newParentKey=prevSibling ? prevSibling.getParentKey():null;\n      startBlock.getChildKeys().forEach(function (childKey){\n        transformBlock(childKey, blocks, function (block){\n          return block.merge({\n            parent: newParentKey // set to null if there is no parent\n\n          });\n        });\n      });\n\n      if(newParentKey!=null){\n        var newParent=blockMap.get(newParentKey);\n        transformBlock(newParentKey, blocks, function (block){\n          return block.merge({\n            children: newParent.getChildKeys().concat(startBlock.getChildKeys())\n          });\n        });\n      } // last child of deleted parent should point to next sibling\n\n\n      transformBlock(startBlock.getChildKeys().find(function (key){\n        var block=blockMap.get(key);\n        return block.getNextSiblingKey()===null;\n      }), blocks, function (block){\n        return block.merge({\n          nextSibling: startBlock.getNextSiblingKey()\n        });\n      });\n    }\n  });\n};\n\nvar removeRangeFromContentState=function removeRangeFromContentState(contentState, selectionState){\n  if(selectionState.isCollapsed()){\n    return contentState;\n  }\n\n  var blockMap=contentState.getBlockMap();\n  var startKey=selectionState.getStartKey();\n  var startOffset=selectionState.getStartOffset();\n  var endKey=selectionState.getEndKey();\n  var endOffset=selectionState.getEndOffset();\n  var startBlock=blockMap.get(startKey);\n  var endBlock=blockMap.get(endKey); // we assume that ContentBlockNode and ContentBlocks are not mixed together\n\n  var isExperimentalTreeBlock=startBlock instanceof ContentBlockNode; // used to retain blocks that should not be deleted to avoid orphan children\n\n  var parentAncestors=[];\n\n  if(isExperimentalTreeBlock){\n    var endBlockchildrenKeys=endBlock.getChildKeys();\n    var endBlockAncestors=getAncestorsKeys(endKey, blockMap); // endBlock has unselected siblings so we can not remove its ancestors parents\n\n    if(endBlock.getNextSiblingKey()){\n      parentAncestors=parentAncestors.concat(endBlockAncestors);\n    } // endBlock has children so can not remove this block or any of its ancestors\n\n\n    if(!endBlockchildrenKeys.isEmpty()){\n      parentAncestors=parentAncestors.concat(endBlockAncestors.concat([endKey]));\n    } // we need to retain all ancestors of the next delimiter block\n\n\n    parentAncestors=parentAncestors.concat(getAncestorsKeys(getNextDelimiterBlockKey(endBlock, blockMap), blockMap));\n  }\n\n  var characterList;\n\n  if(startBlock===endBlock){\n    characterList=removeFromList(startBlock.getCharacterList(), startOffset, endOffset);\n  }else{\n    characterList=startBlock.getCharacterList().slice(0, startOffset).concat(endBlock.getCharacterList().slice(endOffset));\n  }\n\n  var modifiedStart=startBlock.merge({\n    text: startBlock.getText().slice(0, startOffset) + endBlock.getText().slice(endOffset),\n    characterList: characterList\n  });// If cursor (collapsed) is at the start of the first child, delete parent\n  // instead of child\n\n  var shouldDeleteParent=isExperimentalTreeBlock&&startOffset===0&&endOffset===0&&endBlock.getParentKey()===startKey&&endBlock.getPrevSiblingKey()==null;\n  var newBlocks=shouldDeleteParent ? Map([[startKey, null]]):blockMap.toSeq().skipUntil(function (_, k){\n    return k===startKey;\n  }).takeUntil(function (_, k){\n    return k===endKey;\n  }).filter(function (_, k){\n    return parentAncestors.indexOf(k)===-1;\n  }).concat(Map([[endKey, null]])).map(function (_, k){\n    return k===startKey ? modifiedStart:null;\n  });\n  var updatedBlockMap=blockMap.merge(newBlocks).filter(function (block){\n    return !!block;\n  });// Only update tree block pointers if the range is across blocks\n\n  if(isExperimentalTreeBlock&&startBlock!==endBlock){\n    updatedBlockMap=updateBlockMapLinks(updatedBlockMap, startBlock, endBlock, blockMap);\n  }\n\n  return contentState.merge({\n    blockMap: updatedBlockMap,\n    selectionBefore: selectionState,\n    selectionAfter: selectionState.merge({\n      anchorKey: startKey,\n      anchorOffset: startOffset,\n      focusKey: startKey,\n      focusOffset: startOffset,\n      isBackward: false\n    })\n  });\n};\n\n\n\nvar removeFromList=function removeFromList(targetList, startOffset, endOffset){\n  if(startOffset===0){\n    while (startOffset < endOffset){\n      targetList=targetList.shift();\n      startOffset++;\n    }\n  }else if(endOffset===targetList.count()){\n    while (endOffset > startOffset){\n      targetList=targetList.pop();\n      endOffset--;\n    }\n  }else{\n    var head=targetList.slice(0, startOffset);\n    var tail=targetList.slice(endOffset);\n    targetList=head.concat(tail).toList();\n  }\n\n  return targetList;\n};\n\nmodule.exports=removeRangeFromContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/removeRangeFromContentState.js?");
}),
"./node_modules/draft-js/lib/removeTextWithStrategy.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftModifier=__webpack_require__( \"./node_modules/draft-js/lib/DraftModifier.js\");\n\nvar gkx=__webpack_require__( \"./node_modules/draft-js/lib/gkx.js\");\n\nvar experimentalTreeDataSupport=gkx('draft_tree_data_support');\n\n\nfunction removeTextWithStrategy(editorState, strategy, direction){\n  var selection=editorState.getSelection();\n  var content=editorState.getCurrentContent();\n  var target=selection;\n  var anchorKey=selection.getAnchorKey();\n  var focusKey=selection.getFocusKey();\n  var anchorBlock=content.getBlockForKey(anchorKey);\n\n  if(experimentalTreeDataSupport){\n    if(direction==='forward'){\n      if(anchorKey!==focusKey){\n        // For now we ignore forward delete across blocks,\n        // if there is demand for this we will implement it.\n        return content;\n      }\n    }\n  }\n\n  if(selection.isCollapsed()){\n    if(direction==='forward'){\n      if(editorState.isSelectionAtEndOfContent()){\n        return content;\n      }\n\n      if(experimentalTreeDataSupport){\n        var isAtEndOfBlock=selection.getAnchorOffset()===content.getBlockForKey(anchorKey).getLength();\n\n        if(isAtEndOfBlock){\n          var anchorBlockSibling=content.getBlockForKey(anchorBlock.nextSibling);\n\n          if(!anchorBlockSibling||anchorBlockSibling.getLength()===0){\n            // For now we ignore forward delete at the end of a block,\n            // if there is demand for this we will implement it.\n            return content;\n          }\n        }\n      }\n    }else if(editorState.isSelectionAtStartOfContent()){\n      return content;\n    }\n\n    target=strategy(editorState);\n\n    if(target===selection){\n      return content;\n    }\n  }\n\n  return DraftModifier.removeRange(content, target, direction);\n}\n\nmodule.exports=removeTextWithStrategy;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/removeTextWithStrategy.js?");
}),
"./node_modules/draft-js/lib/sanitizeDraftText.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar REGEX_BLOCK_DELIMITER=new RegExp('\\r', 'g');\n\nfunction sanitizeDraftText(input){\n  return input.replace(REGEX_BLOCK_DELIMITER, '');\n}\n\nmodule.exports=sanitizeDraftText;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/sanitizeDraftText.js?");
}),
"./node_modules/draft-js/lib/setDraftEditorSelection.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar DraftEffects=__webpack_require__( \"./node_modules/draft-js/lib/DraftEffects.js\");\n\nvar DraftJsDebugLogging=__webpack_require__( \"./node_modules/draft-js/lib/DraftJsDebugLogging.js\");\n\nvar UserAgent=__webpack_require__( \"./node_modules/fbjs/lib/UserAgent.js\");\n\nvar containsNode=__webpack_require__( \"./node_modules/fbjs/lib/containsNode.js\");\n\nvar getActiveElement=__webpack_require__( \"./node_modules/fbjs/lib/getActiveElement.js\");\n\nvar getCorrectDocumentFromNode=__webpack_require__( \"./node_modules/draft-js/lib/getCorrectDocumentFromNode.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar isElement=__webpack_require__( \"./node_modules/draft-js/lib/isElement.js\");\n\nvar isIE=UserAgent.isBrowser('IE');\n\nfunction getAnonymizedDOM(node, getNodeLabels){\n  if(!node){\n    return '[empty]';\n  }\n\n  var anonymized=anonymizeTextWithin(node, getNodeLabels);\n\n  if(anonymized.nodeType===Node.TEXT_NODE){\n    return anonymized.textContent;\n  }\n\n  !isElement(anonymized) ?  true ? invariant(false, 'Node must be an Element if it is not a text node.'):undefined:void 0;\n  var castedElement=anonymized;\n  return castedElement.outerHTML;\n}\n\nfunction anonymizeTextWithin(node, getNodeLabels){\n  var labels=getNodeLabels!==undefined ? getNodeLabels(node):[];\n\n  if(node.nodeType===Node.TEXT_NODE){\n    var length=node.textContent.length;\n    return getCorrectDocumentFromNode(node).createTextNode('[text ' + length + (labels.length ? ' | ' + labels.join(', '):'') + ']');\n  }\n\n  var clone=node.cloneNode();\n\n  if(clone.nodeType===1&&labels.length){\n    clone.setAttribute('data-labels', labels.join(', '));\n  }\n\n  var childNodes=node.childNodes;\n\n  for (var ii=0; ii < childNodes.length; ii++){\n    clone.appendChild(anonymizeTextWithin(childNodes[ii], getNodeLabels));\n  }\n\n  return clone;\n}\n\nfunction getAnonymizedEditorDOM(node, getNodeLabels){\n  // grabbing the DOM content of the Draft editor\n  var currentNode=node; // this should only be used after checking with isElement\n\n  var castedNode=currentNode;\n\n  while (currentNode){\n    if(isElement(currentNode)&&castedNode.hasAttribute('contenteditable')){\n      // found the Draft editor container\n      return getAnonymizedDOM(currentNode, getNodeLabels);\n    }else{\n      currentNode=currentNode.parentNode;\n      castedNode=currentNode;\n    }\n  }\n\n  return 'Could not find contentEditable parent of node';\n}\n\nfunction getNodeLength(node){\n  return node.nodeValue===null ? node.childNodes.length:node.nodeValue.length;\n}\n\n\n\nfunction setDraftEditorSelection(selectionState, node, blockKey, nodeStart, nodeEnd){\n  // It's possible that the editor has been removed from the DOM but\n  // our selection code doesn't know it yet. Forcing selection in\n  // this case may lead to errors, so just bail now.\n  var documentObject=getCorrectDocumentFromNode(node);\n\n  if(!containsNode(documentObject.documentElement, node)){\n    return;\n  }\n\n  var selection=documentObject.defaultView.getSelection();\n  var anchorKey=selectionState.getAnchorKey();\n  var anchorOffset=selectionState.getAnchorOffset();\n  var focusKey=selectionState.getFocusKey();\n  var focusOffset=selectionState.getFocusOffset();\n  var isBackward=selectionState.getIsBackward(); // IE doesn't support backward selection. Swap key/offset pairs.\n\n  if(!selection.extend&&isBackward){\n    var tempKey=anchorKey;\n    var tempOffset=anchorOffset;\n    anchorKey=focusKey;\n    anchorOffset=focusOffset;\n    focusKey=tempKey;\n    focusOffset=tempOffset;\n    isBackward=false;\n  }\n\n  var hasAnchor=anchorKey===blockKey&&nodeStart <=anchorOffset&&nodeEnd >=anchorOffset;\n  var hasFocus=focusKey===blockKey&&nodeStart <=focusOffset&&nodeEnd >=focusOffset; // If the selection is entirely bound within this node, set the selection\n  // and be done.\n\n  if(hasAnchor&&hasFocus){\n    selection.removeAllRanges();\n    addPointToSelection(selection, node, anchorOffset - nodeStart, selectionState);\n    addFocusToSelection(selection, node, focusOffset - nodeStart, selectionState);\n    return;\n  }\n\n  if(!isBackward){\n    // If the anchor is within this node, set the range start.\n    if(hasAnchor){\n      selection.removeAllRanges();\n      addPointToSelection(selection, node, anchorOffset - nodeStart, selectionState);\n    } // If the focus is within this node, we can assume that we have\n    // already set the appropriate start range on the selection, and\n    // can simply extend the selection.\n\n\n    if(hasFocus){\n      addFocusToSelection(selection, node, focusOffset - nodeStart, selectionState);\n    }\n  }else{\n    // If this node has the focus, set the selection range to be a\n    // collapsed range beginning here. Later, when we encounter the anchor,\n    // we'll use this information to extend the selection.\n    if(hasFocus){\n      selection.removeAllRanges();\n      addPointToSelection(selection, node, focusOffset - nodeStart, selectionState);\n    } // If this node has the anchor, we may assume that the correct\n    // focus information is already stored on the selection object.\n    // We keep track of it, reset the selection range, and extend it\n    // back to the focus point.\n\n\n    if(hasAnchor){\n      var storedFocusNode=selection.focusNode;\n      var storedFocusOffset=selection.focusOffset;\n      selection.removeAllRanges();\n      addPointToSelection(selection, node, anchorOffset - nodeStart, selectionState);\n      addFocusToSelection(selection, storedFocusNode, storedFocusOffset, selectionState);\n    }\n  }\n}\n\n\n\nfunction addFocusToSelection(selection, node, offset, selectionState){\n  var activeElement=getActiveElement();\n  var extend=selection.extend; // containsNode returns false if node is null.\n  // Let's refine the type of this value out here so flow knows.\n\n  if(extend&&node!=null&&containsNode(activeElement, node)){\n    // If `extend` is called while another element has focus, an error is\n    // thrown. We therefore disable `extend` if the active element is somewhere\n    // other than the node we are selecting. This should only occur in Firefox,\n    // since it is the only browser to support multiple selections.\n    // See https://bugzilla.mozilla.org/show_bug.cgi?id=921444.\n    // logging to catch bug that is being reported in t16250795\n    if(offset > getNodeLength(node)){\n      // the call to 'selection.extend' is about to throw\n      DraftJsDebugLogging.logSelectionStateFailure({\n        anonymizedDom: getAnonymizedEditorDOM(node),\n        extraParams: JSON.stringify({\n          offset: offset\n        }),\n        selectionState: JSON.stringify(selectionState.toJS())\n      });\n    } // logging to catch bug that is being reported in t18110632\n\n\n    var nodeWasFocus=node===selection.focusNode;\n\n    try {\n      // Fixes some reports of \"InvalidStateError: Failed to execute 'extend' on\n      // 'Selection': This Selection object doesn't have any Ranges.\"\n      // Note: selection.extend does not exist in IE.\n      if(selection.rangeCount > 0&&selection.extend){\n        selection.extend(node, offset);\n      }\n    } catch (e){\n      DraftJsDebugLogging.logSelectionStateFailure({\n        anonymizedDom: getAnonymizedEditorDOM(node, function (n){\n          var labels=[];\n\n          if(n===activeElement){\n            labels.push('active element');\n          }\n\n          if(n===selection.anchorNode){\n            labels.push('selection anchor node');\n          }\n\n          if(n===selection.focusNode){\n            labels.push('selection focus node');\n          }\n\n          return labels;\n        }),\n        extraParams: JSON.stringify({\n          activeElementName: activeElement ? activeElement.nodeName:null,\n          nodeIsFocus: node===selection.focusNode,\n          nodeWasFocus: nodeWasFocus,\n          selectionRangeCount: selection.rangeCount,\n          selectionAnchorNodeName: selection.anchorNode ? selection.anchorNode.nodeName:null,\n          selectionAnchorOffset: selection.anchorOffset,\n          selectionFocusNodeName: selection.focusNode ? selection.focusNode.nodeName:null,\n          selectionFocusOffset: selection.focusOffset,\n          message: e ? '' + e:null,\n          offset: offset\n        }, null, 2),\n        selectionState: JSON.stringify(selectionState.toJS(), null, 2)\n      });// allow the error to be thrown -\n      // better than continuing in a broken state\n\n      throw e;\n    }\n  }else{\n    // IE doesn't support extend. This will mean no backward selection.\n    // Extract the existing selection range and add focus to it.\n    // Additionally, clone the selection range. IE11 throws an\n    // InvalidStateError when attempting to access selection properties\n    // after the range is detached.\n    if(node&&selection.rangeCount > 0){\n      var range=selection.getRangeAt(0);\n      range.setEnd(node, offset);\n      selection.addRange(range.cloneRange());\n    }\n  }\n}\n\nfunction addPointToSelection(selection, node, offset, selectionState){\n  var range=getCorrectDocumentFromNode(node).createRange(); // logging to catch bug that is being reported in t16250795\n\n  if(offset > getNodeLength(node)){\n    // in this case we know that the call to 'range.setStart' is about to throw\n    DraftJsDebugLogging.logSelectionStateFailure({\n      anonymizedDom: getAnonymizedEditorDOM(node),\n      extraParams: JSON.stringify({\n        offset: offset\n      }),\n      selectionState: JSON.stringify(selectionState.toJS())\n    });\n    DraftEffects.handleExtensionCausedError();\n  }\n\n  range.setStart(node, offset); // IE sometimes throws Unspecified Error when trying to addRange\n\n  if(isIE){\n    try {\n      selection.addRange(range);\n    } catch (e){\n      if(true){\n        \n        console.warn('Call to selection.addRange() threw exception: ', e);\n      }\n    }\n  }else{\n    selection.addRange(range);\n  }\n}\n\nmodule.exports={\n  setDraftEditorSelection: setDraftEditorSelection,\n  addFocusToSelection: addFocusToSelection\n};\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/setDraftEditorSelection.js?");
}),
"./node_modules/draft-js/lib/splitBlockInContentState.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar ContentBlockNode=__webpack_require__( \"./node_modules/draft-js/lib/ContentBlockNode.js\");\n\nvar generateRandomKey=__webpack_require__( \"./node_modules/draft-js/lib/generateRandomKey.js\");\n\nvar Immutable=__webpack_require__( \"./node_modules/draft-js/node_modules/immutable/dist/immutable.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar modifyBlockForContentState=__webpack_require__( \"./node_modules/draft-js/lib/modifyBlockForContentState.js\");\n\nvar List=Immutable.List,\n    Map=Immutable.Map;\n\nvar transformBlock=function transformBlock(key, blockMap, func){\n  if(!key){\n    return;\n  }\n\n  var block=blockMap.get(key);\n\n  if(!block){\n    return;\n  }\n\n  blockMap.set(key, func(block));\n};\n\nvar updateBlockMapLinks=function updateBlockMapLinks(blockMap, originalBlock, belowBlock){\n  return blockMap.withMutations(function (blocks){\n    var originalBlockKey=originalBlock.getKey();\n    var belowBlockKey=belowBlock.getKey(); // update block parent\n\n    transformBlock(originalBlock.getParentKey(), blocks, function (block){\n      var parentChildrenList=block.getChildKeys();\n      var insertionIndex=parentChildrenList.indexOf(originalBlockKey) + 1;\n      var newChildrenArray=parentChildrenList.toArray();\n      newChildrenArray.splice(insertionIndex, 0, belowBlockKey);\n      return block.merge({\n        children: List(newChildrenArray)\n      });\n    });// update original next block\n\n    transformBlock(originalBlock.getNextSiblingKey(), blocks, function (block){\n      return block.merge({\n        prevSibling: belowBlockKey\n      });\n    });// update original block\n\n    transformBlock(originalBlockKey, blocks, function (block){\n      return block.merge({\n        nextSibling: belowBlockKey\n      });\n    });// update below block\n\n    transformBlock(belowBlockKey, blocks, function (block){\n      return block.merge({\n        prevSibling: originalBlockKey\n      });\n    });\n  });\n};\n\nvar splitBlockInContentState=function splitBlockInContentState(contentState, selectionState){\n  !selectionState.isCollapsed() ?  true ? invariant(false, 'Selection range must be collapsed.'):undefined:void 0;\n  var key=selectionState.getAnchorKey();\n  var blockMap=contentState.getBlockMap();\n  var blockToSplit=blockMap.get(key);\n  var text=blockToSplit.getText();\n\n  if(!text){\n    var blockType=blockToSplit.getType();\n\n    if(blockType==='unordered-list-item'||blockType==='ordered-list-item'){\n      return modifyBlockForContentState(contentState, selectionState, function (block){\n        return block.merge({\n          type: 'unstyled',\n          depth: 0\n        });\n      });\n    }\n  }\n\n  var offset=selectionState.getAnchorOffset();\n  var chars=blockToSplit.getCharacterList();\n  var keyBelow=generateRandomKey();\n  var isExperimentalTreeBlock=blockToSplit instanceof ContentBlockNode;\n  var blockAbove=blockToSplit.merge({\n    text: text.slice(0, offset),\n    characterList: chars.slice(0, offset)\n  });\n  var blockBelow=blockAbove.merge({\n    key: keyBelow,\n    text: text.slice(offset),\n    characterList: chars.slice(offset),\n    data: Map()\n  });\n  var blocksBefore=blockMap.toSeq().takeUntil(function (v){\n    return v===blockToSplit;\n  });\n  var blocksAfter=blockMap.toSeq().skipUntil(function (v){\n    return v===blockToSplit;\n  }).rest();\n  var newBlocks=blocksBefore.concat([[key, blockAbove], [keyBelow, blockBelow]], blocksAfter).toOrderedMap();\n\n  if(isExperimentalTreeBlock){\n    !blockToSplit.getChildKeys().isEmpty() ?  true ? invariant(false, 'ContentBlockNode must not have children'):undefined:void 0;\n    newBlocks=updateBlockMapLinks(newBlocks, blockAbove, blockBelow);\n  }\n\n  return contentState.merge({\n    blockMap: newBlocks,\n    selectionBefore: selectionState,\n    selectionAfter: selectionState.merge({\n      anchorKey: keyBelow,\n      anchorOffset: 0,\n      focusKey: keyBelow,\n      focusOffset: 0,\n      isBackward: false\n    })\n  });\n};\n\nmodule.exports=splitBlockInContentState;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/splitBlockInContentState.js?");
}),
"./node_modules/draft-js/lib/splitTextIntoTextBlocks.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar NEWLINE_REGEX=/\\r\\n?|\\n/g;\n\nfunction splitTextIntoTextBlocks(text){\n  return text.split(NEWLINE_REGEX);\n}\n\nmodule.exports=splitTextIntoTextBlocks;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/splitTextIntoTextBlocks.js?");
}),
"./node_modules/draft-js/lib/uuid.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\n\n\nfunction uuid(){\n  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c){\n    var r=Math.random() * 16 | 0;\n    var v=c=='x' ? r:r & 0x3 | 0x8;\n    return v.toString(16);\n  });\n}\n\nmodule.exports=uuid;\n\n//# sourceURL=webpack:///./node_modules/draft-js/lib/uuid.js?");
}),
"./node_modules/draft-js/node_modules/immutable/dist/immutable.js":
(function(module, exports, __webpack_require__){
eval("\n\n(function (global, factory){\n   true ? module.exports=factory() :\n  undefined;\n}(this, function (){ 'use strict';var SLICE$0=Array.prototype.slice;\n\n  function createClass(ctor, superClass){\n    if(superClass){\n      ctor.prototype=Object.create(superClass.prototype);\n    }\n    ctor.prototype.constructor=ctor;\n  }\n\n  function Iterable(value){\n      return isIterable(value) ? value:Seq(value);\n    }\n\n\n  createClass(KeyedIterable, Iterable);\n    function KeyedIterable(value){\n      return isKeyed(value) ? value:KeyedSeq(value);\n    }\n\n\n  createClass(IndexedIterable, Iterable);\n    function IndexedIterable(value){\n      return isIndexed(value) ? value:IndexedSeq(value);\n    }\n\n\n  createClass(SetIterable, Iterable);\n    function SetIterable(value){\n      return isIterable(value)&&!isAssociative(value) ? value:SetSeq(value);\n    }\n\n\n\n  function isIterable(maybeIterable){\n    return !!(maybeIterable&&maybeIterable[IS_ITERABLE_SENTINEL]);\n  }\n\n  function isKeyed(maybeKeyed){\n    return !!(maybeKeyed&&maybeKeyed[IS_KEYED_SENTINEL]);\n  }\n\n  function isIndexed(maybeIndexed){\n    return !!(maybeIndexed&&maybeIndexed[IS_INDEXED_SENTINEL]);\n  }\n\n  function isAssociative(maybeAssociative){\n    return isKeyed(maybeAssociative)||isIndexed(maybeAssociative);\n  }\n\n  function isOrdered(maybeOrdered){\n    return !!(maybeOrdered&&maybeOrdered[IS_ORDERED_SENTINEL]);\n  }\n\n  Iterable.isIterable=isIterable;\n  Iterable.isKeyed=isKeyed;\n  Iterable.isIndexed=isIndexed;\n  Iterable.isAssociative=isAssociative;\n  Iterable.isOrdered=isOrdered;\n\n  Iterable.Keyed=KeyedIterable;\n  Iterable.Indexed=IndexedIterable;\n  Iterable.Set=SetIterable;\n\n\n  var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  // Used for setting prototype methods that IE8 chokes on.\n  var DELETE='delete';\n\n  // Constants describing the size of trie nodes.\n  var SHIFT=5; // Resulted in best performance after ______?\n  var SIZE=1 << SHIFT;\n  var MASK=SIZE - 1;\n\n  // A consistent shared value representing \"not set\" which equals nothing other\n  // than itself, and nothing that could be provided externally.\n  var NOT_SET={};\n\n  // Boolean references, Rough equivalent of `bool &`.\n  var CHANGE_LENGTH={ value: false };\n  var DID_ALTER={ value: false };\n\n  function MakeRef(ref){\n    ref.value=false;\n    return ref;\n  }\n\n  function SetRef(ref){\n    ref&&(ref.value=true);\n  }\n\n  // A function which returns a value representing an \"owner\" for transient writes\n  // to tries. The return value will only ever equal itself, and will not equal\n  // the return of any subsequent call of this function.\n  function OwnerID(){}\n\n  // http://jsperf.com/copy-array-inline\n  function arrCopy(arr, offset){\n    offset=offset||0;\n    var len=Math.max(0, arr.length - offset);\n    var newArr=new Array(len);\n    for (var ii=0; ii < len; ii++){\n      newArr[ii]=arr[ii + offset];\n    }\n    return newArr;\n  }\n\n  function ensureSize(iter){\n    if(iter.size===undefined){\n      iter.size=iter.__iterate(returnTrue);\n    }\n    return iter.size;\n  }\n\n  function wrapIndex(iter, index){\n    // This implements \"is array index\" which the ECMAString spec defines as:\n    //\n    //     A String property name P is an array index if and only if\n    //     ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal\n    //     to 2^32−1.\n    //\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects\n    if(typeof index!=='number'){\n      var uint32Index=index >>> 0; // N >>> 0 is shorthand for ToUint32\n      if('' + uint32Index!==index||uint32Index===4294967295){\n        return NaN;\n      }\n      index=uint32Index;\n    }\n    return index < 0 ? ensureSize(iter) + index:index;\n  }\n\n  function returnTrue(){\n    return true;\n  }\n\n  function wholeSlice(begin, end, size){\n    return (begin===0||(size!==undefined&&begin <=-size))&&\n      (end===undefined||(size!==undefined&&end >=size));\n  }\n\n  function resolveBegin(begin, size){\n    return resolveIndex(begin, size, 0);\n  }\n\n  function resolveEnd(end, size){\n    return resolveIndex(end, size, size);\n  }\n\n  function resolveIndex(index, size, defaultIndex){\n    return index===undefined ?\n      defaultIndex :\n      index < 0 ?\n        Math.max(0, size + index) :\n        size===undefined ?\n          index :\n          Math.min(size, index);\n  }\n\n  \n\n  var ITERATE_KEYS=0;\n  var ITERATE_VALUES=1;\n  var ITERATE_ENTRIES=2;\n\n  var REAL_ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL='@@iterator';\n\n  var ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL;\n\n\n  function Iterator(next){\n      this.next=next;\n    }\n\n    Iterator.prototype.toString=function(){\n      return '[Iterator]';\n    };\n\n\n  Iterator.KEYS=ITERATE_KEYS;\n  Iterator.VALUES=ITERATE_VALUES;\n  Iterator.ENTRIES=ITERATE_ENTRIES;\n\n  Iterator.prototype.inspect=\n  Iterator.prototype.toSource=function (){ return this.toString(); }\n  Iterator.prototype[ITERATOR_SYMBOL]=function (){\n    return this;\n  };\n\n\n  function iteratorValue(type, k, v, iteratorResult){\n    var value=type===0 ? k:type===1 ? v:[k, v];\n    iteratorResult ? (iteratorResult.value=value):(iteratorResult={\n      value: value, done: false\n    });\n    return iteratorResult;\n  }\n\n  function iteratorDone(){\n    return { value: undefined, done: true };\n  }\n\n  function hasIterator(maybeIterable){\n    return !!getIteratorFn(maybeIterable);\n  }\n\n  function isIterator(maybeIterator){\n    return maybeIterator&&typeof maybeIterator.next==='function';\n  }\n\n  function getIterator(iterable){\n    var iteratorFn=getIteratorFn(iterable);\n    return iteratorFn&&iteratorFn.call(iterable);\n  }\n\n  function getIteratorFn(iterable){\n    var iteratorFn=iterable&&(\n      (REAL_ITERATOR_SYMBOL&&iterable[REAL_ITERATOR_SYMBOL])||\n      iterable[FAUX_ITERATOR_SYMBOL]\n);\n    if(typeof iteratorFn==='function'){\n      return iteratorFn;\n    }\n  }\n\n  function isArrayLike(value){\n    return value&&typeof value.length==='number';\n  }\n\n  createClass(Seq, Iterable);\n    function Seq(value){\n      return value===null||value===undefined ? emptySequence() :\n        isIterable(value) ? value.toSeq():seqFromValue(value);\n    }\n\n    Seq.of=function(){\n      return Seq(arguments);\n    };\n\n    Seq.prototype.toSeq=function(){\n      return this;\n    };\n\n    Seq.prototype.toString=function(){\n      return this.__toString('Seq {', '}');\n    };\n\n    Seq.prototype.cacheResult=function(){\n      if(!this._cache&&this.__iterateUncached){\n        this._cache=this.entrySeq().toArray();\n        this.size=this._cache.length;\n      }\n      return this;\n    };\n\n    // abstract __iterateUncached(fn, reverse)\n\n    Seq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, true);\n    };\n\n    // abstract __iteratorUncached(type, reverse)\n\n    Seq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, true);\n    };\n\n\n\n  createClass(KeyedSeq, Seq);\n    function KeyedSeq(value){\n      return value===null||value===undefined ?\n        emptySequence().toKeyedSeq() :\n        isIterable(value) ?\n          (isKeyed(value) ? value.toSeq():value.fromEntrySeq()) :\n          keyedSeqFromValue(value);\n    }\n\n    KeyedSeq.prototype.toKeyedSeq=function(){\n      return this;\n    };\n\n\n\n  createClass(IndexedSeq, Seq);\n    function IndexedSeq(value){\n      return value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value.toIndexedSeq();\n    }\n\n    IndexedSeq.of=function(){\n      return IndexedSeq(arguments);\n    };\n\n    IndexedSeq.prototype.toIndexedSeq=function(){\n      return this;\n    };\n\n    IndexedSeq.prototype.toString=function(){\n      return this.__toString('Seq [', ']');\n    };\n\n    IndexedSeq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, false);\n    };\n\n    IndexedSeq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, false);\n    };\n\n\n\n  createClass(SetSeq, Seq);\n    function SetSeq(value){\n      return (\n        value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value\n).toSetSeq();\n    }\n\n    SetSeq.of=function(){\n      return SetSeq(arguments);\n    };\n\n    SetSeq.prototype.toSetSeq=function(){\n      return this;\n    };\n\n\n\n  Seq.isSeq=isSeq;\n  Seq.Keyed=KeyedSeq;\n  Seq.Set=SetSeq;\n  Seq.Indexed=IndexedSeq;\n\n  var IS_SEQ_SENTINEL='@@__IMMUTABLE_SEQ__@@';\n\n  Seq.prototype[IS_SEQ_SENTINEL]=true;\n\n\n\n  createClass(ArraySeq, IndexedSeq);\n    function ArraySeq(array){\n      this._array=array;\n      this.size=array.length;\n    }\n\n    ArraySeq.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._array[wrapIndex(this, index)]:notSetValue;\n    };\n\n    ArraySeq.prototype.__iterate=function(fn, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(array[reverse ? maxIndex - ii:ii], ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ArraySeq.prototype.__iterator=function(type, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      var ii=0;\n      return new Iterator(function() \n        {return ii > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, ii, array[reverse ? maxIndex - ii++:ii++])}\n);\n    };\n\n\n\n  createClass(ObjectSeq, KeyedSeq);\n    function ObjectSeq(object){\n      var keys=Object.keys(object);\n      this._object=object;\n      this._keys=keys;\n      this.size=keys.length;\n    }\n\n    ObjectSeq.prototype.get=function(key, notSetValue){\n      if(notSetValue!==undefined&&!this.has(key)){\n        return notSetValue;\n      }\n      return this._object[key];\n    };\n\n    ObjectSeq.prototype.has=function(key){\n      return this._object.hasOwnProperty(key);\n    };\n\n    ObjectSeq.prototype.__iterate=function(fn, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        if(fn(object[key], key, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ObjectSeq.prototype.__iterator=function(type, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, key, object[key]);\n      });\n    };\n\n  ObjectSeq.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(IterableSeq, IndexedSeq);\n    function IterableSeq(iterable){\n      this._iterable=iterable;\n      this.size=iterable.length||iterable.size;\n    }\n\n    IterableSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      var iterations=0;\n      if(isIterator(iterator)){\n        var step;\n        while (!(step=iterator.next()).done){\n          if(fn(step.value, iterations++, this)===false){\n            break;\n          }\n        }\n      }\n      return iterations;\n    };\n\n    IterableSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      if(!isIterator(iterator)){\n        return new Iterator(iteratorDone);\n      }\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step:iteratorValue(type, iterations++, step.value);\n      });\n    };\n\n\n\n  createClass(IteratorSeq, IndexedSeq);\n    function IteratorSeq(iterator){\n      this._iterator=iterator;\n      this._iteratorCache=[];\n    }\n\n    IteratorSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      while (iterations < cache.length){\n        if(fn(cache[iterations], iterations++, this)===false){\n          return iterations;\n        }\n      }\n      var step;\n      while (!(step=iterator.next()).done){\n        var val=step.value;\n        cache[iterations]=val;\n        if(fn(val, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n\n    IteratorSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      return new Iterator(function(){\n        if(iterations >=cache.length){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          cache[iterations]=step.value;\n        }\n        return iteratorValue(type, iterations, cache[iterations++]);\n      });\n    };\n\n\n\n\n  // # pragma Helper functions\n\n  function isSeq(maybeSeq){\n    return !!(maybeSeq&&maybeSeq[IS_SEQ_SENTINEL]);\n  }\n\n  var EMPTY_SEQ;\n\n  function emptySequence(){\n    return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]));\n  }\n\n  function keyedSeqFromValue(value){\n    var seq=\n      Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :\n      isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :\n      hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :\n      typeof value==='object' ? new ObjectSeq(value) :\n      undefined;\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of [k, v] entries, '+\n        'or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function indexedSeqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value);\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values: ' + value\n);\n    }\n    return seq;\n  }\n\n  function seqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value)||\n      (typeof value==='object'&&new ObjectSeq(value));\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values, or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function maybeIndexedSeqFromValue(value){\n    return (\n      isArrayLike(value) ? new ArraySeq(value) :\n      isIterator(value) ? new IteratorSeq(value) :\n      hasIterator(value) ? new IterableSeq(value) :\n      undefined\n);\n  }\n\n  function seqIterate(seq, fn, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        if(fn(entry[1], useKeys ? entry[0]:ii, seq)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    }\n    return seq.__iterateUncached(fn, reverse);\n  }\n\n  function seqIterator(seq, type, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, useKeys ? entry[0]:ii - 1, entry[1]);\n      });\n    }\n    return seq.__iteratorUncached(type, reverse);\n  }\n\n  function fromJS(json, converter){\n    return converter ?\n      fromJSWith(converter, json, '', {'': json}) :\n      fromJSDefault(json);\n  }\n\n  function fromJSWith(converter, json, key, parentJSON){\n    if(Array.isArray(json)){\n      return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    if(isPlainObj(json)){\n      return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    return json;\n  }\n\n  function fromJSDefault(json){\n    if(Array.isArray(json)){\n      return IndexedSeq(json).map(fromJSDefault).toList();\n    }\n    if(isPlainObj(json)){\n      return KeyedSeq(json).map(fromJSDefault).toMap();\n    }\n    return json;\n  }\n\n  function isPlainObj(value){\n    return value&&(value.constructor===Object||value.constructor===undefined);\n  }\n\n  \n  function is(valueA, valueB){\n    if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n      return true;\n    }\n    if(!valueA||!valueB){\n      return false;\n    }\n    if(typeof valueA.valueOf==='function'&&\n        typeof valueB.valueOf==='function'){\n      valueA=valueA.valueOf();\n      valueB=valueB.valueOf();\n      if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n        return true;\n      }\n      if(!valueA||!valueB){\n        return false;\n      }\n    }\n    if(typeof valueA.equals==='function'&&\n        typeof valueB.equals==='function'&&\n        valueA.equals(valueB)){\n      return true;\n    }\n    return false;\n  }\n\n  function deepEqual(a, b){\n    if(a===b){\n      return true;\n    }\n\n    if(\n      !isIterable(b)||\n      a.size!==undefined&&b.size!==undefined&&a.size!==b.size||\n      a.__hash!==undefined&&b.__hash!==undefined&&a.__hash!==b.__hash||\n      isKeyed(a)!==isKeyed(b)||\n      isIndexed(a)!==isIndexed(b)||\n      isOrdered(a)!==isOrdered(b)\n){\n      return false;\n    }\n\n    if(a.size===0&&b.size===0){\n      return true;\n    }\n\n    var notAssociative = !isAssociative(a);\n\n    if(isOrdered(a)){\n      var entries=a.entries();\n      return b.every(function(v, k){\n        var entry=entries.next().value;\n        return entry&&is(entry[1], v)&&(notAssociative||is(entry[0], k));\n      })&&entries.next().done;\n    }\n\n    var flipped=false;\n\n    if(a.size===undefined){\n      if(b.size===undefined){\n        if(typeof a.cacheResult==='function'){\n          a.cacheResult();\n        }\n      }else{\n        flipped=true;\n        var _=a;\n        a=b;\n        b=_;\n      }\n    }\n\n    var allEqual=true;\n    var bSize=b.__iterate(function(v, k){\n      if(notAssociative ? !a.has(v) :\n          flipped ? !is(v, a.get(k, NOT_SET)):!is(a.get(k, NOT_SET), v)){\n        allEqual=false;\n        return false;\n      }\n    });\n\n    return allEqual&&a.size===bSize;\n  }\n\n  createClass(Repeat, IndexedSeq);\n\n    function Repeat(value, times){\n      if(!(this instanceof Repeat)){\n        return new Repeat(value, times);\n      }\n      this._value=value;\n      this.size=times===undefined ? Infinity:Math.max(0, times);\n      if(this.size===0){\n        if(EMPTY_REPEAT){\n          return EMPTY_REPEAT;\n        }\n        EMPTY_REPEAT=this;\n      }\n    }\n\n    Repeat.prototype.toString=function(){\n      if(this.size===0){\n        return 'Repeat []';\n      }\n      return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';\n    };\n\n    Repeat.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._value:notSetValue;\n    };\n\n    Repeat.prototype.includes=function(searchValue){\n      return is(this._value, searchValue);\n    };\n\n    Repeat.prototype.slice=function(begin, end){\n      var size=this.size;\n      return wholeSlice(begin, end, size) ? this :\n        new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));\n    };\n\n    Repeat.prototype.reverse=function(){\n      return this;\n    };\n\n    Repeat.prototype.indexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return 0;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.lastIndexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return this.size;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.__iterate=function(fn, reverse){\n      for (var ii=0; ii < this.size; ii++){\n        if(fn(this._value, ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    Repeat.prototype.__iterator=function(type, reverse){var this$0=this;\n      var ii=0;\n      return new Iterator(function() \n        {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value):iteratorDone()}\n);\n    };\n\n    Repeat.prototype.equals=function(other){\n      return other instanceof Repeat ?\n        is(this._value, other._value) :\n        deepEqual(other);\n    };\n\n\n  var EMPTY_REPEAT;\n\n  function invariant(condition, error){\n    if(!condition) throw new Error(error);\n  }\n\n  createClass(Range, IndexedSeq);\n\n    function Range(start, end, step){\n      if(!(this instanceof Range)){\n        return new Range(start, end, step);\n      }\n      invariant(step!==0, 'Cannot step a Range by 0');\n      start=start||0;\n      if(end===undefined){\n        end=Infinity;\n      }\n      step=step===undefined ? 1:Math.abs(step);\n      if(end < start){\n        step=-step;\n      }\n      this._start=start;\n      this._end=end;\n      this._step=step;\n      this.size=Math.max(0, Math.ceil((end - start) / step - 1) + 1);\n      if(this.size===0){\n        if(EMPTY_RANGE){\n          return EMPTY_RANGE;\n        }\n        EMPTY_RANGE=this;\n      }\n    }\n\n    Range.prototype.toString=function(){\n      if(this.size===0){\n        return 'Range []';\n      }\n      return 'Range [ ' +\n        this._start + '...' + this._end +\n        (this._step > 1 ? ' by ' + this._step:'') +\n      ' ]';\n    };\n\n    Range.prototype.get=function(index, notSetValue){\n      return this.has(index) ?\n        this._start + wrapIndex(this, index) * this._step :\n        notSetValue;\n    };\n\n    Range.prototype.includes=function(searchValue){\n      var possibleIndex=(searchValue - this._start) / this._step;\n      return possibleIndex >=0&&\n        possibleIndex < this.size&&\n        possibleIndex===Math.floor(possibleIndex);\n    };\n\n    Range.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      begin=resolveBegin(begin, this.size);\n      end=resolveEnd(end, this.size);\n      if(end <=begin){\n        return new Range(0, 0);\n      }\n      return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);\n    };\n\n    Range.prototype.indexOf=function(searchValue){\n      var offsetValue=searchValue - this._start;\n      if(offsetValue % this._step===0){\n        var index=offsetValue / this._step;\n        if(index >=0&&index < this.size){\n          return index\n        }\n      }\n      return -1;\n    };\n\n    Range.prototype.lastIndexOf=function(searchValue){\n      return this.indexOf(searchValue);\n    };\n\n    Range.prototype.__iterate=function(fn, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(value, ii, this)===false){\n          return ii + 1;\n        }\n        value +=reverse ? -step:step;\n      }\n      return ii;\n    };\n\n    Range.prototype.__iterator=function(type, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      var ii=0;\n      return new Iterator(function(){\n        var v=value;\n        value +=reverse ? -step:step;\n        return ii > maxIndex ? iteratorDone():iteratorValue(type, ii++, v);\n      });\n    };\n\n    Range.prototype.equals=function(other){\n      return other instanceof Range ?\n        this._start===other._start&&\n        this._end===other._end&&\n        this._step===other._step :\n        deepEqual(this, other);\n    };\n\n\n  var EMPTY_RANGE;\n\n  createClass(Collection, Iterable);\n    function Collection(){\n      throw TypeError('Abstract');\n    }\n\n\n  createClass(KeyedCollection, Collection);function KeyedCollection(){}\n\n  createClass(IndexedCollection, Collection);function IndexedCollection(){}\n\n  createClass(SetCollection, Collection);function SetCollection(){}\n\n\n  Collection.Keyed=KeyedCollection;\n  Collection.Indexed=IndexedCollection;\n  Collection.Set=SetCollection;\n\n  var imul=\n    typeof Math.imul==='function'&&Math.imul(0xffffffff, 2)===-2 ?\n    Math.imul :\n    function imul(a, b){\n      a=a | 0; // int\n      b=b | 0; // int\n      var c=a & 0xffff;\n      var d=b & 0xffff;\n      // Shift by 0 fixes the sign on the high part.\n      return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int\n    };\n\n  // v8 has an optimization for storing 31-bit signed numbers.\n  // Values which have either 00 or 11 as the high order bits qualify.\n  // This function drops the highest order bit in a signed number, maintaining\n  // the sign bit.\n  function smi(i32){\n    return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);\n  }\n\n  function hash(o){\n    if(o===false||o===null||o===undefined){\n      return 0;\n    }\n    if(typeof o.valueOf==='function'){\n      o=o.valueOf();\n      if(o===false||o===null||o===undefined){\n        return 0;\n      }\n    }\n    if(o===true){\n      return 1;\n    }\n    var type=typeof o;\n    if(type==='number'){\n      var h=o | 0;\n      if(h!==o){\n        h ^=o * 0xFFFFFFFF;\n      }\n      while (o > 0xFFFFFFFF){\n        o /=0xFFFFFFFF;\n        h ^=o;\n      }\n      return smi(h);\n    }\n    if(type==='string'){\n      return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o):hashString(o);\n    }\n    if(typeof o.hashCode==='function'){\n      return o.hashCode();\n    }\n    if(type==='object'){\n      return hashJSObj(o);\n    }\n    if(typeof o.toString==='function'){\n      return hashString(o.toString());\n    }\n    throw new Error('Value type ' + type + ' cannot be hashed.');\n  }\n\n  function cachedHashString(string){\n    var hash=stringHashCache[string];\n    if(hash===undefined){\n      hash=hashString(string);\n      if(STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE){\n        STRING_HASH_CACHE_SIZE=0;\n        stringHashCache={};\n      }\n      STRING_HASH_CACHE_SIZE++;\n      stringHashCache[string]=hash;\n    }\n    return hash;\n  }\n\n  // http://jsperf.com/hashing-strings\n  function hashString(string){\n    // This is the hash from JVM\n    // The hash code for a string is computed as\n    // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],\n    // where s[i] is the ith character of the string and n is the length of\n    // the string. We \"mod\" the result to make it between 0 (inclusive) and 2^31\n    // (exclusive) by dropping high bits.\n    var hash=0;\n    for (var ii=0; ii < string.length; ii++){\n      hash=31 * hash + string.charCodeAt(ii) | 0;\n    }\n    return smi(hash);\n  }\n\n  function hashJSObj(obj){\n    var hash;\n    if(usingWeakMap){\n      hash=weakMap.get(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=obj[UID_HASH_KEY];\n    if(hash!==undefined){\n      return hash;\n    }\n\n    if(!canDefineProperty){\n      hash=obj.propertyIsEnumerable&&obj.propertyIsEnumerable[UID_HASH_KEY];\n      if(hash!==undefined){\n        return hash;\n      }\n\n      hash=getIENodeHash(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=++objHashUID;\n    if(objHashUID & 0x40000000){\n      objHashUID=0;\n    }\n\n    if(usingWeakMap){\n      weakMap.set(obj, hash);\n    }else if(isExtensible!==undefined&&isExtensible(obj)===false){\n      throw new Error('Non-extensible objects are not allowed as keys.');\n    }else if(canDefineProperty){\n      Object.defineProperty(obj, UID_HASH_KEY, {\n        'enumerable': false,\n        'configurable': false,\n        'writable': false,\n        'value': hash\n      });\n    }else if(obj.propertyIsEnumerable!==undefined&&\n               obj.propertyIsEnumerable===obj.constructor.prototype.propertyIsEnumerable){\n      // Since we can't define a non-enumerable property on the object\n      // we'll hijack one of the less-used non-enumerable properties to\n      // save our hash on it. Since this is a function it will not show up in\n      // `JSON.stringify` which is what we want.\n      obj.propertyIsEnumerable=function(){\n        return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);\n      };\n      obj.propertyIsEnumerable[UID_HASH_KEY]=hash;\n    }else if(obj.nodeType!==undefined){\n      // At this point we couldn't get the IE `uniqueID` to use as a hash\n      // and we couldn't use a non-enumerable property to exploit the\n      // dontEnum bug so we simply add the `UID_HASH_KEY` on the node\n      // itself.\n      obj[UID_HASH_KEY]=hash;\n    }else{\n      throw new Error('Unable to set a non-enumerable property on object.');\n    }\n\n    return hash;\n  }\n\n  // Get references to ES5 object methods.\n  var isExtensible=Object.isExtensible;\n\n  // True if Object.defineProperty works as expected. IE8 fails this test.\n  var canDefineProperty=(function(){\n    try {\n      Object.defineProperty({}, '@', {});\n      return true;\n    } catch (e){\n      return false;\n    }\n  }());\n\n  // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it\n  // and avoid memory leaks from the IE cloneNode bug.\n  function getIENodeHash(node){\n    if(node&&node.nodeType > 0){\n      switch (node.nodeType){\n        case 1: // Element\n          return node.uniqueID;\n        case 9: // Document\n          return node.documentElement&&node.documentElement.uniqueID;\n      }\n    }\n  }\n\n  // If possible, use a WeakMap.\n  var usingWeakMap=typeof WeakMap==='function';\n  var weakMap;\n  if(usingWeakMap){\n    weakMap=new WeakMap();\n  }\n\n  var objHashUID=0;\n\n  var UID_HASH_KEY='__immutablehash__';\n  if(typeof Symbol==='function'){\n    UID_HASH_KEY=Symbol(UID_HASH_KEY);\n  }\n\n  var STRING_HASH_CACHE_MIN_STRLEN=16;\n  var STRING_HASH_CACHE_MAX_SIZE=255;\n  var STRING_HASH_CACHE_SIZE=0;\n  var stringHashCache={};\n\n  function assertNotInfinite(size){\n    invariant(\n      size!==Infinity,\n      'Cannot perform this action with an infinite size.'\n);\n  }\n\n  createClass(Map, KeyedCollection);\n\n    // @pragma Construction\n\n    function Map(value){\n      return value===null||value===undefined ? emptyMap() :\n        isMap(value)&&!isOrdered(value) ? value :\n        emptyMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    Map.prototype.toString=function(){\n      return this.__toString('Map {', '}');\n    };\n\n    // @pragma Access\n\n    Map.prototype.get=function(k, notSetValue){\n      return this._root ?\n        this._root.get(0, undefined, k, notSetValue) :\n        notSetValue;\n    };\n\n    // @pragma Modification\n\n    Map.prototype.set=function(k, v){\n      return updateMap(this, k, v);\n    };\n\n    Map.prototype.setIn=function(keyPath, v){\n      return this.updateIn(keyPath, NOT_SET, function(){return v});\n    };\n\n    Map.prototype.remove=function(k){\n      return updateMap(this, k, NOT_SET);\n    };\n\n    Map.prototype.deleteIn=function(keyPath){\n      return this.updateIn(keyPath, function(){return NOT_SET});\n    };\n\n    Map.prototype.update=function(k, notSetValue, updater){\n      return arguments.length===1 ?\n        k(this) :\n        this.updateIn([k], notSetValue, updater);\n    };\n\n    Map.prototype.updateIn=function(keyPath, notSetValue, updater){\n      if(!updater){\n        updater=notSetValue;\n        notSetValue=undefined;\n      }\n      var updatedValue=updateInDeepMap(\n        this,\n        forceIterator(keyPath),\n        notSetValue,\n        updater\n);\n      return updatedValue===NOT_SET ? undefined:updatedValue;\n    };\n\n    Map.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._root=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyMap();\n    };\n\n    // @pragma Composition\n\n    Map.prototype.merge=function(){\n      return mergeIntoMapWith(this, undefined, arguments);\n    };\n\n    Map.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, merger, iters);\n    };\n\n    Map.prototype.mergeIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.merge==='function' ?\n          m.merge.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.mergeDeep=function(){\n      return mergeIntoMapWith(this, deepMerger, arguments);\n    };\n\n    Map.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, deepMergerWith(merger), iters);\n    };\n\n    Map.prototype.mergeDeepIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.mergeDeep==='function' ?\n          m.mergeDeep.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator));\n    };\n\n    Map.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator, mapper));\n    };\n\n    // @pragma Mutability\n\n    Map.prototype.withMutations=function(fn){\n      var mutable=this.asMutable();\n      fn(mutable);\n      return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID):this;\n    };\n\n    Map.prototype.asMutable=function(){\n      return this.__ownerID ? this:this.__ensureOwner(new OwnerID());\n    };\n\n    Map.prototype.asImmutable=function(){\n      return this.__ensureOwner();\n    };\n\n    Map.prototype.wasAltered=function(){\n      return this.__altered;\n    };\n\n    Map.prototype.__iterator=function(type, reverse){\n      return new MapIterator(this, type, reverse);\n    };\n\n    Map.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      this._root&&this._root.iterate(function(entry){\n        iterations++;\n        return fn(entry[1], entry[0], this$0);\n      }, reverse);\n      return iterations;\n    };\n\n    Map.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeMap(this.size, this._root, ownerID, this.__hash);\n    };\n\n\n  function isMap(maybeMap){\n    return !!(maybeMap&&maybeMap[IS_MAP_SENTINEL]);\n  }\n\n  Map.isMap=isMap;\n\n  var IS_MAP_SENTINEL='@@__IMMUTABLE_MAP__@@';\n\n  var MapPrototype=Map.prototype;\n  MapPrototype[IS_MAP_SENTINEL]=true;\n  MapPrototype[DELETE]=MapPrototype.remove;\n  MapPrototype.removeIn=MapPrototype.deleteIn;\n\n\n  // #pragma Trie Nodes\n\n\n\n    function ArrayMapNode(ownerID, entries){\n      this.ownerID=ownerID;\n      this.entries=entries;\n    }\n\n    ArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    ArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&entries.length===1){\n        return; // undefined\n      }\n\n      if(!exists&&!removed&&entries.length >=MAX_ARRAY_MAP_SIZE){\n        return createNodes(ownerID, entries, key, value);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new ArrayMapNode(ownerID, newEntries);\n    };\n\n\n\n\n    function BitmapIndexedNode(ownerID, bitmap, nodes){\n      this.ownerID=ownerID;\n      this.bitmap=bitmap;\n      this.nodes=nodes;\n    }\n\n    BitmapIndexedNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var bit=(1 << ((shift===0 ? keyHash:keyHash >>> shift) & MASK));\n      var bitmap=this.bitmap;\n      return (bitmap & bit)===0 ? notSetValue :\n        this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);\n    };\n\n    BitmapIndexedNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var keyHashFrag=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var bit=1 << keyHashFrag;\n      var bitmap=this.bitmap;\n      var exists=(bitmap & bit)!==0;\n\n      if(!exists&&value===NOT_SET){\n        return this;\n      }\n\n      var idx=popCount(bitmap & (bit - 1));\n      var nodes=this.nodes;\n      var node=exists ? nodes[idx]:undefined;\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n\n      if(newNode===node){\n        return this;\n      }\n\n      if(!exists&&newNode&&nodes.length >=MAX_BITMAP_INDEXED_SIZE){\n        return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);\n      }\n\n      if(exists&&!newNode&&nodes.length===2&&isLeafNode(nodes[idx ^ 1])){\n        return nodes[idx ^ 1];\n      }\n\n      if(exists&&newNode&&nodes.length===1&&isLeafNode(newNode)){\n        return newNode;\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newBitmap=exists ? newNode ? bitmap:bitmap ^ bit:bitmap | bit;\n      var newNodes=exists ? newNode ?\n        setIn(nodes, idx, newNode, isEditable) :\n        spliceOut(nodes, idx, isEditable) :\n        spliceIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.bitmap=newBitmap;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new BitmapIndexedNode(ownerID, newBitmap, newNodes);\n    };\n\n\n\n\n    function HashArrayMapNode(ownerID, count, nodes){\n      this.ownerID=ownerID;\n      this.count=count;\n      this.nodes=nodes;\n    }\n\n    HashArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var node=this.nodes[idx];\n      return node ? node.get(shift + SHIFT, keyHash, key, notSetValue):notSetValue;\n    };\n\n    HashArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var removed=value===NOT_SET;\n      var nodes=this.nodes;\n      var node=nodes[idx];\n\n      if(removed&&!node){\n        return this;\n      }\n\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n      if(newNode===node){\n        return this;\n      }\n\n      var newCount=this.count;\n      if(!node){\n        newCount++;\n      }else if(!newNode){\n        newCount--;\n        if(newCount < MIN_HASH_ARRAY_MAP_SIZE){\n          return packNodes(ownerID, nodes, newCount, idx);\n        }\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newNodes=setIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.count=newCount;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new HashArrayMapNode(ownerID, newCount, newNodes);\n    };\n\n\n\n\n    function HashCollisionNode(ownerID, keyHash, entries){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entries=entries;\n    }\n\n    HashCollisionNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    HashCollisionNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n\n      var removed=value===NOT_SET;\n\n      if(keyHash!==this.keyHash){\n        if(removed){\n          return this;\n        }\n        SetRef(didAlter);\n        SetRef(didChangeSize);\n        return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);\n      }\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&len===2){\n        return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new HashCollisionNode(ownerID, this.keyHash, newEntries);\n    };\n\n\n\n\n    function ValueNode(ownerID, keyHash, entry){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entry=entry;\n    }\n\n    ValueNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      return is(key, this.entry[0]) ? this.entry[1]:notSetValue;\n    };\n\n    ValueNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n      var keyMatch=is(key, this.entry[0]);\n      if(keyMatch ? value===this.entry[1]:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n\n      if(removed){\n        SetRef(didChangeSize);\n        return; // undefined\n      }\n\n      if(keyMatch){\n        if(ownerID&&ownerID===this.ownerID){\n          this.entry[1]=value;\n          return this;\n        }\n        return new ValueNode(ownerID, this.keyHash, [key, value]);\n      }\n\n      SetRef(didChangeSize);\n      return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);\n    };\n\n\n\n  // #pragma Iterators\n\n  ArrayMapNode.prototype.iterate=\n  HashCollisionNode.prototype.iterate=function (fn, reverse){\n    var entries=this.entries;\n    for (var ii=0, maxIndex=entries.length - 1; ii <=maxIndex; ii++){\n      if(fn(entries[reverse ? maxIndex - ii:ii])===false){\n        return false;\n      }\n    }\n  }\n\n  BitmapIndexedNode.prototype.iterate=\n  HashArrayMapNode.prototype.iterate=function (fn, reverse){\n    var nodes=this.nodes;\n    for (var ii=0, maxIndex=nodes.length - 1; ii <=maxIndex; ii++){\n      var node=nodes[reverse ? maxIndex - ii:ii];\n      if(node&&node.iterate(fn, reverse)===false){\n        return false;\n      }\n    }\n  }\n\n  ValueNode.prototype.iterate=function (fn, reverse){\n    return fn(this.entry);\n  }\n\n  createClass(MapIterator, Iterator);\n\n    function MapIterator(map, type, reverse){\n      this._type=type;\n      this._reverse=reverse;\n      this._stack=map._root&&mapIteratorFrame(map._root);\n    }\n\n    MapIterator.prototype.next=function(){\n      var type=this._type;\n      var stack=this._stack;\n      while (stack){\n        var node=stack.node;\n        var index=stack.index++;\n        var maxIndex;\n        if(node.entry){\n          if(index===0){\n            return mapIteratorValue(type, node.entry);\n          }\n        }else if(node.entries){\n          maxIndex=node.entries.length - 1;\n          if(index <=maxIndex){\n            return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index:index]);\n          }\n        }else{\n          maxIndex=node.nodes.length - 1;\n          if(index <=maxIndex){\n            var subNode=node.nodes[this._reverse ? maxIndex - index:index];\n            if(subNode){\n              if(subNode.entry){\n                return mapIteratorValue(type, subNode.entry);\n              }\n              stack=this._stack=mapIteratorFrame(subNode, stack);\n            }\n            continue;\n          }\n        }\n        stack=this._stack=this._stack.__prev;\n      }\n      return iteratorDone();\n    };\n\n\n  function mapIteratorValue(type, entry){\n    return iteratorValue(type, entry[0], entry[1]);\n  }\n\n  function mapIteratorFrame(node, prev){\n    return {\n      node: node,\n      index: 0,\n      __prev: prev\n    };\n  }\n\n  function makeMap(size, root, ownerID, hash){\n    var map=Object.create(MapPrototype);\n    map.size=size;\n    map._root=root;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_MAP;\n  function emptyMap(){\n    return EMPTY_MAP||(EMPTY_MAP=makeMap(0));\n  }\n\n  function updateMap(map, k, v){\n    var newRoot;\n    var newSize;\n    if(!map._root){\n      if(v===NOT_SET){\n        return map;\n      }\n      newSize=1;\n      newRoot=new ArrayMapNode(map.__ownerID, [[k, v]]);\n    }else{\n      var didChangeSize=MakeRef(CHANGE_LENGTH);\n      var didAlter=MakeRef(DID_ALTER);\n      newRoot=updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);\n      if(!didAlter.value){\n        return map;\n      }\n      newSize=map.size + (didChangeSize.value ? v===NOT_SET ? -1:1 : 0);\n    }\n    if(map.__ownerID){\n      map.size=newSize;\n      map._root=newRoot;\n      map.__hash=undefined;\n      map.__altered=true;\n      return map;\n    }\n    return newRoot ? makeMap(newSize, newRoot):emptyMap();\n  }\n\n  function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n    if(!node){\n      if(value===NOT_SET){\n        return node;\n      }\n      SetRef(didAlter);\n      SetRef(didChangeSize);\n      return new ValueNode(ownerID, keyHash, [key, value]);\n    }\n    return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);\n  }\n\n  function isLeafNode(node){\n    return node.constructor===ValueNode||node.constructor===HashCollisionNode;\n  }\n\n  function mergeIntoNode(node, ownerID, shift, keyHash, entry){\n    if(node.keyHash===keyHash){\n      return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);\n    }\n\n    var idx1=(shift===0 ? node.keyHash:node.keyHash >>> shift) & MASK;\n    var idx2=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n\n    var newNode;\n    var nodes=idx1===idx2 ?\n      [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :\n      ((newNode=new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode]:[newNode, node]);\n\n    return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);\n  }\n\n  function createNodes(ownerID, entries, key, value){\n    if(!ownerID){\n      ownerID=new OwnerID();\n    }\n    var node=new ValueNode(ownerID, hash(key), [key, value]);\n    for (var ii=0; ii < entries.length; ii++){\n      var entry=entries[ii];\n      node=node.update(ownerID, 0, undefined, entry[0], entry[1]);\n    }\n    return node;\n  }\n\n  function packNodes(ownerID, nodes, count, excluding){\n    var bitmap=0;\n    var packedII=0;\n    var packedNodes=new Array(count);\n    for (var ii=0, bit=1, len=nodes.length; ii < len; ii++, bit <<=1){\n      var node=nodes[ii];\n      if(node!==undefined&&ii!==excluding){\n        bitmap |=bit;\n        packedNodes[packedII++]=node;\n      }\n    }\n    return new BitmapIndexedNode(ownerID, bitmap, packedNodes);\n  }\n\n  function expandNodes(ownerID, nodes, bitmap, including, node){\n    var count=0;\n    var expandedNodes=new Array(SIZE);\n    for (var ii=0; bitmap!==0; ii++, bitmap >>>=1){\n      expandedNodes[ii]=bitmap & 1 ? nodes[count++]:undefined;\n    }\n    expandedNodes[including]=node;\n    return new HashArrayMapNode(ownerID, count + 1, expandedNodes);\n  }\n\n  function mergeIntoMapWith(map, merger, iterables){\n    var iters=[];\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=KeyedIterable(value);\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    return mergeIntoCollectionWith(map, merger, iters);\n  }\n\n  function deepMerger(existing, value, key){\n    return existing&&existing.mergeDeep&&isIterable(value) ?\n      existing.mergeDeep(value) :\n      is(existing, value) ? existing:value;\n  }\n\n  function deepMergerWith(merger){\n    return function(existing, value, key){\n      if(existing&&existing.mergeDeepWith&&isIterable(value)){\n        return existing.mergeDeepWith(merger, value);\n      }\n      var nextValue=merger(existing, value, key);\n      return is(existing, nextValue) ? existing:nextValue;\n    };\n  }\n\n  function mergeIntoCollectionWith(collection, merger, iters){\n    iters=iters.filter(function(x){return x.size!==0});\n    if(iters.length===0){\n      return collection;\n    }\n    if(collection.size===0&&!collection.__ownerID&&iters.length===1){\n      return collection.constructor(iters[0]);\n    }\n    return collection.withMutations(function(collection){\n      var mergeIntoMap=merger ?\n        function(value, key){\n          collection.update(key, NOT_SET, function(existing)\n            {return existing===NOT_SET ? value:merger(existing, value, key)}\n);\n        } :\n        function(value, key){\n          collection.set(key, value);\n        }\n      for (var ii=0; ii < iters.length; ii++){\n        iters[ii].forEach(mergeIntoMap);\n      }\n    });\n  }\n\n  function updateInDeepMap(existing, keyPathIter, notSetValue, updater){\n    var isNotSet=existing===NOT_SET;\n    var step=keyPathIter.next();\n    if(step.done){\n      var existingValue=isNotSet ? notSetValue:existing;\n      var newValue=updater(existingValue);\n      return newValue===existingValue ? existing:newValue;\n    }\n    invariant(\n      isNotSet||(existing&&existing.set),\n      'invalid keyPath'\n);\n    var key=step.value;\n    var nextExisting=isNotSet ? NOT_SET:existing.get(key, NOT_SET);\n    var nextUpdated=updateInDeepMap(\n      nextExisting,\n      keyPathIter,\n      notSetValue,\n      updater\n);\n    return nextUpdated===nextExisting ? existing :\n      nextUpdated===NOT_SET ? existing.remove(key) :\n      (isNotSet ? emptyMap():existing).set(key, nextUpdated);\n  }\n\n  function popCount(x){\n    x=x - ((x >> 1) & 0x55555555);\n    x=(x & 0x33333333) + ((x >> 2) & 0x33333333);\n    x=(x + (x >> 4)) & 0x0f0f0f0f;\n    x=x + (x >> 8);\n    x=x + (x >> 16);\n    return x & 0x7f;\n  }\n\n  function setIn(array, idx, val, canEdit){\n    var newArray=canEdit ? array:arrCopy(array);\n    newArray[idx]=val;\n    return newArray;\n  }\n\n  function spliceIn(array, idx, val, canEdit){\n    var newLen=array.length + 1;\n    if(canEdit&&idx + 1===newLen){\n      array[idx]=val;\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        newArray[ii]=val;\n        after=-1;\n      }else{\n        newArray[ii]=array[ii + after];\n      }\n    }\n    return newArray;\n  }\n\n  function spliceOut(array, idx, canEdit){\n    var newLen=array.length - 1;\n    if(canEdit&&idx===newLen){\n      array.pop();\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        after=1;\n      }\n      newArray[ii]=array[ii + after];\n    }\n    return newArray;\n  }\n\n  var MAX_ARRAY_MAP_SIZE=SIZE / 4;\n  var MAX_BITMAP_INDEXED_SIZE=SIZE / 2;\n  var MIN_HASH_ARRAY_MAP_SIZE=SIZE / 4;\n\n  createClass(List, IndexedCollection);\n\n    // @pragma Construction\n\n    function List(value){\n      var empty=emptyList();\n      if(value===null||value===undefined){\n        return empty;\n      }\n      if(isList(value)){\n        return value;\n      }\n      var iter=IndexedIterable(value);\n      var size=iter.size;\n      if(size===0){\n        return empty;\n      }\n      assertNotInfinite(size);\n      if(size > 0&&size < SIZE){\n        return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));\n      }\n      return empty.withMutations(function(list){\n        list.setSize(size);\n        iter.forEach(function(v, i){return list.set(i, v)});\n      });\n    }\n\n    List.of=function(){\n      return this(arguments);\n    };\n\n    List.prototype.toString=function(){\n      return this.__toString('List [', ']');\n    };\n\n    // @pragma Access\n\n    List.prototype.get=function(index, notSetValue){\n      index=wrapIndex(this, index);\n      if(index >=0&&index < this.size){\n        index +=this._origin;\n        var node=listNodeFor(this, index);\n        return node&&node.array[index & MASK];\n      }\n      return notSetValue;\n    };\n\n    // @pragma Modification\n\n    List.prototype.set=function(index, value){\n      return updateList(this, index, value);\n    };\n\n    List.prototype.remove=function(index){\n      return !this.has(index) ? this :\n        index===0 ? this.shift() :\n        index===this.size - 1 ? this.pop() :\n        this.splice(index, 1);\n    };\n\n    List.prototype.insert=function(index, value){\n      return this.splice(index, 0, value);\n    };\n\n    List.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=this._origin=this._capacity=0;\n        this._level=SHIFT;\n        this._root=this._tail=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyList();\n    };\n\n    List.prototype.push=function(){\n      var values=arguments;\n      var oldSize=this.size;\n      return this.withMutations(function(list){\n        setListBounds(list, 0, oldSize + values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(oldSize + ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.pop=function(){\n      return setListBounds(this, 0, -1);\n    };\n\n    List.prototype.unshift=function(){\n      var values=arguments;\n      return this.withMutations(function(list){\n        setListBounds(list, -values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.shift=function(){\n      return setListBounds(this, 1);\n    };\n\n    // @pragma Composition\n\n    List.prototype.merge=function(){\n      return mergeIntoListWith(this, undefined, arguments);\n    };\n\n    List.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, merger, iters);\n    };\n\n    List.prototype.mergeDeep=function(){\n      return mergeIntoListWith(this, deepMerger, arguments);\n    };\n\n    List.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, deepMergerWith(merger), iters);\n    };\n\n    List.prototype.setSize=function(size){\n      return setListBounds(this, 0, size);\n    };\n\n    // @pragma Iteration\n\n    List.prototype.slice=function(begin, end){\n      var size=this.size;\n      if(wholeSlice(begin, end, size)){\n        return this;\n      }\n      return setListBounds(\n        this,\n        resolveBegin(begin, size),\n        resolveEnd(end, size)\n);\n    };\n\n    List.prototype.__iterator=function(type, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      return new Iterator(function(){\n        var value=values();\n        return value===DONE ?\n          iteratorDone() :\n          iteratorValue(type, index++, value);\n      });\n    };\n\n    List.prototype.__iterate=function(fn, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      var value;\n      while ((value=values())!==DONE){\n        if(fn(value, index++, this)===false){\n          break;\n        }\n      }\n      return index;\n    };\n\n    List.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        return this;\n      }\n      return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);\n    };\n\n\n  function isList(maybeList){\n    return !!(maybeList&&maybeList[IS_LIST_SENTINEL]);\n  }\n\n  List.isList=isList;\n\n  var IS_LIST_SENTINEL='@@__IMMUTABLE_LIST__@@';\n\n  var ListPrototype=List.prototype;\n  ListPrototype[IS_LIST_SENTINEL]=true;\n  ListPrototype[DELETE]=ListPrototype.remove;\n  ListPrototype.setIn=MapPrototype.setIn;\n  ListPrototype.deleteIn=\n  ListPrototype.removeIn=MapPrototype.removeIn;\n  ListPrototype.update=MapPrototype.update;\n  ListPrototype.updateIn=MapPrototype.updateIn;\n  ListPrototype.mergeIn=MapPrototype.mergeIn;\n  ListPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  ListPrototype.withMutations=MapPrototype.withMutations;\n  ListPrototype.asMutable=MapPrototype.asMutable;\n  ListPrototype.asImmutable=MapPrototype.asImmutable;\n  ListPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n\n    function VNode(array, ownerID){\n      this.array=array;\n      this.ownerID=ownerID;\n    }\n\n    // TODO: seems like these methods are very similar\n\n    VNode.prototype.removeBefore=function(ownerID, level, index){\n      if(index===level ? 1 << level:false||this.array.length===0){\n        return this;\n      }\n      var originIndex=(index >>> level) & MASK;\n      if(originIndex >=this.array.length){\n        return new VNode([], ownerID);\n      }\n      var removingFirst=originIndex===0;\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[originIndex];\n        newChild=oldChild&&oldChild.removeBefore(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&removingFirst){\n          return this;\n        }\n      }\n      if(removingFirst&&!newChild){\n        return this;\n      }\n      var editable=editableVNode(this, ownerID);\n      if(!removingFirst){\n        for (var ii=0; ii < originIndex; ii++){\n          editable.array[ii]=undefined;\n        }\n      }\n      if(newChild){\n        editable.array[originIndex]=newChild;\n      }\n      return editable;\n    };\n\n    VNode.prototype.removeAfter=function(ownerID, level, index){\n      if(index===(level ? 1 << level:0)||this.array.length===0){\n        return this;\n      }\n      var sizeIndex=((index - 1) >>> level) & MASK;\n      if(sizeIndex >=this.array.length){\n        return this;\n      }\n\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[sizeIndex];\n        newChild=oldChild&&oldChild.removeAfter(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&sizeIndex===this.array.length - 1){\n          return this;\n        }\n      }\n\n      var editable=editableVNode(this, ownerID);\n      editable.array.splice(sizeIndex + 1);\n      if(newChild){\n        editable.array[sizeIndex]=newChild;\n      }\n      return editable;\n    };\n\n\n\n  var DONE={};\n\n  function iterateList(list, reverse){\n    var left=list._origin;\n    var right=list._capacity;\n    var tailPos=getTailOffset(right);\n    var tail=list._tail;\n\n    return iterateNodeOrLeaf(list._root, list._level, 0);\n\n    function iterateNodeOrLeaf(node, level, offset){\n      return level===0 ?\n        iterateLeaf(node, offset) :\n        iterateNode(node, level, offset);\n    }\n\n    function iterateLeaf(node, offset){\n      var array=offset===tailPos ? tail&&tail.array:node&&node.array;\n      var from=offset > left ? 0:left - offset;\n      var to=right - offset;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        if(from===to){\n          return DONE;\n        }\n        var idx=reverse ? --to:from++;\n        return array&&array[idx];\n      };\n    }\n\n    function iterateNode(node, level, offset){\n      var values;\n      var array=node&&node.array;\n      var from=offset > left ? 0:(left - offset) >> level;\n      var to=((right - offset) >> level) + 1;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        do {\n          if(values){\n            var value=values();\n            if(value!==DONE){\n              return value;\n            }\n            values=null;\n          }\n          if(from===to){\n            return DONE;\n          }\n          var idx=reverse ? --to:from++;\n          values=iterateNodeOrLeaf(\n            array&&array[idx], level - SHIFT, offset + (idx << level)\n);\n        } while (true);\n      };\n    }\n  }\n\n  function makeList(origin, capacity, level, root, tail, ownerID, hash){\n    var list=Object.create(ListPrototype);\n    list.size=capacity - origin;\n    list._origin=origin;\n    list._capacity=capacity;\n    list._level=level;\n    list._root=root;\n    list._tail=tail;\n    list.__ownerID=ownerID;\n    list.__hash=hash;\n    list.__altered=false;\n    return list;\n  }\n\n  var EMPTY_LIST;\n  function emptyList(){\n    return EMPTY_LIST||(EMPTY_LIST=makeList(0, 0, SHIFT));\n  }\n\n  function updateList(list, index, value){\n    index=wrapIndex(list, index);\n\n    if(index!==index){\n      return list;\n    }\n\n    if(index >=list.size||index < 0){\n      return list.withMutations(function(list){\n        index < 0 ?\n          setListBounds(list, index).set(0, value) :\n          setListBounds(list, 0, index + 1).set(index, value)\n      });\n    }\n\n    index +=list._origin;\n\n    var newTail=list._tail;\n    var newRoot=list._root;\n    var didAlter=MakeRef(DID_ALTER);\n    if(index >=getTailOffset(list._capacity)){\n      newTail=updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);\n    }else{\n      newRoot=updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);\n    }\n\n    if(!didAlter.value){\n      return list;\n    }\n\n    if(list.__ownerID){\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(list._origin, list._capacity, list._level, newRoot, newTail);\n  }\n\n  function updateVNode(node, ownerID, level, index, value, didAlter){\n    var idx=(index >>> level) & MASK;\n    var nodeHas=node&&idx < node.array.length;\n    if(!nodeHas&&value===undefined){\n      return node;\n    }\n\n    var newNode;\n\n    if(level > 0){\n      var lowerNode=node&&node.array[idx];\n      var newLowerNode=updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);\n      if(newLowerNode===lowerNode){\n        return node;\n      }\n      newNode=editableVNode(node, ownerID);\n      newNode.array[idx]=newLowerNode;\n      return newNode;\n    }\n\n    if(nodeHas&&node.array[idx]===value){\n      return node;\n    }\n\n    SetRef(didAlter);\n\n    newNode=editableVNode(node, ownerID);\n    if(value===undefined&&idx===newNode.array.length - 1){\n      newNode.array.pop();\n    }else{\n      newNode.array[idx]=value;\n    }\n    return newNode;\n  }\n\n  function editableVNode(node, ownerID){\n    if(ownerID&&node&&ownerID===node.ownerID){\n      return node;\n    }\n    return new VNode(node ? node.array.slice():[], ownerID);\n  }\n\n  function listNodeFor(list, rawIndex){\n    if(rawIndex >=getTailOffset(list._capacity)){\n      return list._tail;\n    }\n    if(rawIndex < 1 << (list._level + SHIFT)){\n      var node=list._root;\n      var level=list._level;\n      while (node&&level > 0){\n        node=node.array[(rawIndex >>> level) & MASK];\n        level -=SHIFT;\n      }\n      return node;\n    }\n  }\n\n  function setListBounds(list, begin, end){\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n    var owner=list.__ownerID||new OwnerID();\n    var oldOrigin=list._origin;\n    var oldCapacity=list._capacity;\n    var newOrigin=oldOrigin + begin;\n    var newCapacity=end===undefined ? oldCapacity:end < 0 ? oldCapacity + end:oldOrigin + end;\n    if(newOrigin===oldOrigin&&newCapacity===oldCapacity){\n      return list;\n    }\n\n    // If it's going to end after it starts, it's empty.\n    if(newOrigin >=newCapacity){\n      return list.clear();\n    }\n\n    var newLevel=list._level;\n    var newRoot=list._root;\n\n    // New origin might need creating a higher root.\n    var offsetShift=0;\n    while (newOrigin + offsetShift < 0){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [undefined, newRoot]:[], owner);\n      newLevel +=SHIFT;\n      offsetShift +=1 << newLevel;\n    }\n    if(offsetShift){\n      newOrigin +=offsetShift;\n      oldOrigin +=offsetShift;\n      newCapacity +=offsetShift;\n      oldCapacity +=offsetShift;\n    }\n\n    var oldTailOffset=getTailOffset(oldCapacity);\n    var newTailOffset=getTailOffset(newCapacity);\n\n    // New size might need creating a higher root.\n    while (newTailOffset >=1 << (newLevel + SHIFT)){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [newRoot]:[], owner);\n      newLevel +=SHIFT;\n    }\n\n    // Locate or create the new tail.\n    var oldTail=list._tail;\n    var newTail=newTailOffset < oldTailOffset ?\n      listNodeFor(list, newCapacity - 1) :\n      newTailOffset > oldTailOffset ? new VNode([], owner):oldTail;\n\n    // Merge Tail into tree.\n    if(oldTail&&newTailOffset > oldTailOffset&&newOrigin < oldCapacity&&oldTail.array.length){\n      newRoot=editableVNode(newRoot, owner);\n      var node=newRoot;\n      for (var level=newLevel; level > SHIFT; level -=SHIFT){\n        var idx=(oldTailOffset >>> level) & MASK;\n        node=node.array[idx]=editableVNode(node.array[idx], owner);\n      }\n      node.array[(oldTailOffset >>> SHIFT) & MASK]=oldTail;\n    }\n\n    // If the size has been reduced, there's a chance the tail needs to be trimmed.\n    if(newCapacity < oldCapacity){\n      newTail=newTail&&newTail.removeAfter(owner, 0, newCapacity);\n    }\n\n    // If the new origin is within the tail, then we do not need a root.\n    if(newOrigin >=newTailOffset){\n      newOrigin -=newTailOffset;\n      newCapacity -=newTailOffset;\n      newLevel=SHIFT;\n      newRoot=null;\n      newTail=newTail&&newTail.removeBefore(owner, 0, newOrigin);\n\n    // Otherwise, if the root has been trimmed, garbage collect.\n    }else if(newOrigin > oldOrigin||newTailOffset < oldTailOffset){\n      offsetShift=0;\n\n      // Identify the new top root node of the subtree of the old root.\n      while (newRoot){\n        var beginIndex=(newOrigin >>> newLevel) & MASK;\n        if(beginIndex!==(newTailOffset >>> newLevel) & MASK){\n          break;\n        }\n        if(beginIndex){\n          offsetShift +=(1 << newLevel) * beginIndex;\n        }\n        newLevel -=SHIFT;\n        newRoot=newRoot.array[beginIndex];\n      }\n\n      // Trim the new sides of the new root.\n      if(newRoot&&newOrigin > oldOrigin){\n        newRoot=newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);\n      }\n      if(newRoot&&newTailOffset < oldTailOffset){\n        newRoot=newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);\n      }\n      if(offsetShift){\n        newOrigin -=offsetShift;\n        newCapacity -=offsetShift;\n      }\n    }\n\n    if(list.__ownerID){\n      list.size=newCapacity - newOrigin;\n      list._origin=newOrigin;\n      list._capacity=newCapacity;\n      list._level=newLevel;\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);\n  }\n\n  function mergeIntoListWith(list, merger, iterables){\n    var iters=[];\n    var maxSize=0;\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=IndexedIterable(value);\n      if(iter.size > maxSize){\n        maxSize=iter.size;\n      }\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    if(maxSize > list.size){\n      list=list.setSize(maxSize);\n    }\n    return mergeIntoCollectionWith(list, merger, iters);\n  }\n\n  function getTailOffset(size){\n    return size < SIZE ? 0:(((size - 1) >>> SHIFT) << SHIFT);\n  }\n\n  createClass(OrderedMap, Map);\n\n    // @pragma Construction\n\n    function OrderedMap(value){\n      return value===null||value===undefined ? emptyOrderedMap() :\n        isOrderedMap(value) ? value :\n        emptyOrderedMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    OrderedMap.of=function(){\n      return this(arguments);\n    };\n\n    OrderedMap.prototype.toString=function(){\n      return this.__toString('OrderedMap {', '}');\n    };\n\n    // @pragma Access\n\n    OrderedMap.prototype.get=function(k, notSetValue){\n      var index=this._map.get(k);\n      return index!==undefined ? this._list.get(index)[1]:notSetValue;\n    };\n\n    // @pragma Modification\n\n    OrderedMap.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._map.clear();\n        this._list.clear();\n        return this;\n      }\n      return emptyOrderedMap();\n    };\n\n    OrderedMap.prototype.set=function(k, v){\n      return updateOrderedMap(this, k, v);\n    };\n\n    OrderedMap.prototype.remove=function(k){\n      return updateOrderedMap(this, k, NOT_SET);\n    };\n\n    OrderedMap.prototype.wasAltered=function(){\n      return this._map.wasAltered()||this._list.wasAltered();\n    };\n\n    OrderedMap.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._list.__iterate(\n        function(entry){return entry&&fn(entry[1], entry[0], this$0)},\n        reverse\n);\n    };\n\n    OrderedMap.prototype.__iterator=function(type, reverse){\n      return this._list.fromEntrySeq().__iterator(type, reverse);\n    };\n\n    OrderedMap.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      var newList=this._list.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        this._list=newList;\n        return this;\n      }\n      return makeOrderedMap(newMap, newList, ownerID, this.__hash);\n    };\n\n\n  function isOrderedMap(maybeOrderedMap){\n    return isMap(maybeOrderedMap)&&isOrdered(maybeOrderedMap);\n  }\n\n  OrderedMap.isOrderedMap=isOrderedMap;\n\n  OrderedMap.prototype[IS_ORDERED_SENTINEL]=true;\n  OrderedMap.prototype[DELETE]=OrderedMap.prototype.remove;\n\n\n\n  function makeOrderedMap(map, list, ownerID, hash){\n    var omap=Object.create(OrderedMap.prototype);\n    omap.size=map ? map.size:0;\n    omap._map=map;\n    omap._list=list;\n    omap.__ownerID=ownerID;\n    omap.__hash=hash;\n    return omap;\n  }\n\n  var EMPTY_ORDERED_MAP;\n  function emptyOrderedMap(){\n    return EMPTY_ORDERED_MAP||(EMPTY_ORDERED_MAP=makeOrderedMap(emptyMap(), emptyList()));\n  }\n\n  function updateOrderedMap(omap, k, v){\n    var map=omap._map;\n    var list=omap._list;\n    var i=map.get(k);\n    var has=i!==undefined;\n    var newMap;\n    var newList;\n    if(v===NOT_SET){ // removed\n      if(!has){\n        return omap;\n      }\n      if(list.size >=SIZE&&list.size >=map.size * 2){\n        newList=list.filter(function(entry, idx){return entry!==undefined&&i!==idx});\n        newMap=newList.toKeyedSeq().map(function(entry){return entry[0]}).flip().toMap();\n        if(omap.__ownerID){\n          newMap.__ownerID=newList.__ownerID=omap.__ownerID;\n        }\n      }else{\n        newMap=map.remove(k);\n        newList=i===list.size - 1 ? list.pop():list.set(i, undefined);\n      }\n    }else{\n      if(has){\n        if(v===list.get(i)[1]){\n          return omap;\n        }\n        newMap=map;\n        newList=list.set(i, [k, v]);\n      }else{\n        newMap=map.set(k, list.size);\n        newList=list.set(list.size, [k, v]);\n      }\n    }\n    if(omap.__ownerID){\n      omap.size=newMap.size;\n      omap._map=newMap;\n      omap._list=newList;\n      omap.__hash=undefined;\n      return omap;\n    }\n    return makeOrderedMap(newMap, newList);\n  }\n\n  createClass(ToKeyedSequence, KeyedSeq);\n    function ToKeyedSequence(indexed, useKeys){\n      this._iter=indexed;\n      this._useKeys=useKeys;\n      this.size=indexed.size;\n    }\n\n    ToKeyedSequence.prototype.get=function(key, notSetValue){\n      return this._iter.get(key, notSetValue);\n    };\n\n    ToKeyedSequence.prototype.has=function(key){\n      return this._iter.has(key);\n    };\n\n    ToKeyedSequence.prototype.valueSeq=function(){\n      return this._iter.valueSeq();\n    };\n\n    ToKeyedSequence.prototype.reverse=function(){var this$0=this;\n      var reversedSequence=reverseFactory(this, true);\n      if(!this._useKeys){\n        reversedSequence.valueSeq=function(){return this$0._iter.toSeq().reverse()};\n      }\n      return reversedSequence;\n    };\n\n    ToKeyedSequence.prototype.map=function(mapper, context){var this$0=this;\n      var mappedSequence=mapFactory(this, mapper, context);\n      if(!this._useKeys){\n        mappedSequence.valueSeq=function(){return this$0._iter.toSeq().map(mapper, context)};\n      }\n      return mappedSequence;\n    };\n\n    ToKeyedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var ii;\n      return this._iter.__iterate(\n        this._useKeys ?\n          function(v, k){return fn(v, k, this$0)} :\n          ((ii=reverse ? resolveSize(this):0),\n            function(v){return fn(v, reverse ? --ii:ii++, this$0)}),\n        reverse\n);\n    };\n\n    ToKeyedSequence.prototype.__iterator=function(type, reverse){\n      if(this._useKeys){\n        return this._iter.__iterator(type, reverse);\n      }\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var ii=reverse ? resolveSize(this):0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, reverse ? --ii:ii++, step.value, step);\n      });\n    };\n\n  ToKeyedSequence.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(ToIndexedSequence, IndexedSeq);\n    function ToIndexedSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToIndexedSequence.prototype.includes=function(value){\n      return this._iter.includes(value);\n    };\n\n    ToIndexedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      return this._iter.__iterate(function(v){return fn(v, iterations++, this$0)}, reverse);\n    };\n\n    ToIndexedSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, iterations++, step.value, step)\n      });\n    };\n\n\n\n  createClass(ToSetSequence, SetSeq);\n    function ToSetSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToSetSequence.prototype.has=function(key){\n      return this._iter.includes(key);\n    };\n\n    ToSetSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(v){return fn(v, v, this$0)}, reverse);\n    };\n\n    ToSetSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, step.value, step.value, step);\n      });\n    };\n\n\n\n  createClass(FromEntriesSequence, KeyedSeq);\n    function FromEntriesSequence(entries){\n      this._iter=entries;\n      this.size=entries.size;\n    }\n\n    FromEntriesSequence.prototype.entrySeq=function(){\n      return this._iter.toSeq();\n    };\n\n    FromEntriesSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(entry){\n        // Check if entry exists first so array access doesn't throw for holes\n        // in the parent iteration.\n        if(entry){\n          validateEntry(entry);\n          var indexedIterable=isIterable(entry);\n          return fn(\n            indexedIterable ? entry.get(1):entry[1],\n            indexedIterable ? entry.get(0):entry[0],\n            this$0\n);\n        }\n      }, reverse);\n    };\n\n    FromEntriesSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          // Check if entry exists first so array access doesn't throw for holes\n          // in the parent iteration.\n          if(entry){\n            validateEntry(entry);\n            var indexedIterable=isIterable(entry);\n            return iteratorValue(\n              type,\n              indexedIterable ? entry.get(0):entry[0],\n              indexedIterable ? entry.get(1):entry[1],\n              step\n);\n          }\n        }\n      });\n    };\n\n\n  ToIndexedSequence.prototype.cacheResult=\n  ToKeyedSequence.prototype.cacheResult=\n  ToSetSequence.prototype.cacheResult=\n  FromEntriesSequence.prototype.cacheResult=\n    cacheResultThrough;\n\n\n  function flipFactory(iterable){\n    var flipSequence=makeSequence(iterable);\n    flipSequence._iter=iterable;\n    flipSequence.size=iterable.size;\n    flipSequence.flip=function(){return iterable};\n    flipSequence.reverse=function (){\n      var reversedSequence=iterable.reverse.apply(this); // super.reverse()\n      reversedSequence.flip=function(){return iterable.reverse()};\n      return reversedSequence;\n    };\n    flipSequence.has=function(key){return iterable.includes(key)};\n    flipSequence.includes=function(key){return iterable.has(key)};\n    flipSequence.cacheResult=cacheResultThrough;\n    flipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(k, v, this$0)!==false}, reverse);\n    }\n    flipSequence.__iteratorUncached=function(type, reverse){\n      if(type===ITERATE_ENTRIES){\n        var iterator=iterable.__iterator(type, reverse);\n        return new Iterator(function(){\n          var step=iterator.next();\n          if(!step.done){\n            var k=step.value[0];\n            step.value[0]=step.value[1];\n            step.value[1]=k;\n          }\n          return step;\n        });\n      }\n      return iterable.__iterator(\n        type===ITERATE_VALUES ? ITERATE_KEYS:ITERATE_VALUES,\n        reverse\n);\n    }\n    return flipSequence;\n  }\n\n\n  function mapFactory(iterable, mapper, context){\n    var mappedSequence=makeSequence(iterable);\n    mappedSequence.size=iterable.size;\n    mappedSequence.has=function(key){return iterable.has(key)};\n    mappedSequence.get=function(key, notSetValue){\n      var v=iterable.get(key, NOT_SET);\n      return v===NOT_SET ?\n        notSetValue :\n        mapper.call(context, v, key, iterable);\n    };\n    mappedSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(\n        function(v, k, c){return fn(mapper.call(context, v, k, c), k, this$0)!==false},\n        reverse\n);\n    }\n    mappedSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var key=entry[0];\n        return iteratorValue(\n          type,\n          key,\n          mapper.call(context, entry[1], key, iterable),\n          step\n);\n      });\n    }\n    return mappedSequence;\n  }\n\n\n  function reverseFactory(iterable, useKeys){\n    var reversedSequence=makeSequence(iterable);\n    reversedSequence._iter=iterable;\n    reversedSequence.size=iterable.size;\n    reversedSequence.reverse=function(){return iterable};\n    if(iterable.flip){\n      reversedSequence.flip=function (){\n        var flipSequence=flipFactory(iterable);\n        flipSequence.reverse=function(){return iterable.flip()};\n        return flipSequence;\n      };\n    }\n    reversedSequence.get=function(key, notSetValue) \n      {return iterable.get(useKeys ? key:-1 - key, notSetValue)};\n    reversedSequence.has=function(key)\n      {return iterable.has(useKeys ? key:-1 - key)};\n    reversedSequence.includes=function(value){return iterable.includes(value)};\n    reversedSequence.cacheResult=cacheResultThrough;\n    reversedSequence.__iterate=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(v, k, this$0)}, !reverse);\n    };\n    reversedSequence.__iterator=\n      function(type, reverse){return iterable.__iterator(type, !reverse)};\n    return reversedSequence;\n  }\n\n\n  function filterFactory(iterable, predicate, context, useKeys){\n    var filterSequence=makeSequence(iterable);\n    if(useKeys){\n      filterSequence.has=function(key){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&!!predicate.call(context, v, key, iterable);\n      };\n      filterSequence.get=function(key, notSetValue){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&predicate.call(context, v, key, iterable) ?\n          v:notSetValue;\n      };\n    }\n    filterSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      }, reverse);\n      return iterations;\n    };\n    filterSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          var key=entry[0];\n          var value=entry[1];\n          if(predicate.call(context, value, key, iterable)){\n            return iteratorValue(type, useKeys ? key:iterations++, value, step);\n          }\n        }\n      });\n    }\n    return filterSequence;\n  }\n\n\n  function countByFactory(iterable, grouper, context){\n    var groups=Map().asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        0,\n        function(a){return a + 1}\n);\n    });\n    return groups.asImmutable();\n  }\n\n\n  function groupByFactory(iterable, grouper, context){\n    var isKeyedIter=isKeyed(iterable);\n    var groups=(isOrdered(iterable) ? OrderedMap():Map()).asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        function(a){return (a=a||[], a.push(isKeyedIter ? [k, v]:v), a)}\n);\n    });\n    var coerce=iterableClass(iterable);\n    return groups.map(function(arr){return reify(iterable, coerce(arr))});\n  }\n\n\n  function sliceFactory(iterable, begin, end, useKeys){\n    var originalSize=iterable.size;\n\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n\n    if(wholeSlice(begin, end, originalSize)){\n      return iterable;\n    }\n\n    var resolvedBegin=resolveBegin(begin, originalSize);\n    var resolvedEnd=resolveEnd(end, originalSize);\n\n    // begin or end will be NaN if they were provided as negative numbers and\n    // this iterable's size is unknown. In that case, cache first so there is\n    // a known size and these do not resolve to NaN.\n    if(resolvedBegin!==resolvedBegin||resolvedEnd!==resolvedEnd){\n      return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);\n    }\n\n    // Note: resolvedEnd is undefined when the original sequence's length is\n    // unknown and this slice did not supply an end and should contain all\n    // elements after resolvedBegin.\n    // In that case, resolvedSize will be NaN and sliceSize will remain undefined.\n    var resolvedSize=resolvedEnd - resolvedBegin;\n    var sliceSize;\n    if(resolvedSize===resolvedSize){\n      sliceSize=resolvedSize < 0 ? 0:resolvedSize;\n    }\n\n    var sliceSeq=makeSequence(iterable);\n\n    // If iterable.size is undefined, the size of the realized sliceSeq is\n    // unknown at this point unless the number of items to slice is 0\n    sliceSeq.size=sliceSize===0 ? sliceSize:iterable.size&&sliceSize||undefined;\n\n    if(!useKeys&&isSeq(iterable)&&sliceSize >=0){\n      sliceSeq.get=function (index, notSetValue){\n        index=wrapIndex(this, index);\n        return index >=0&&index < sliceSize ?\n          iterable.get(index + resolvedBegin, notSetValue) :\n          notSetValue;\n      }\n    }\n\n    sliceSeq.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(sliceSize===0){\n        return 0;\n      }\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var skipped=0;\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k){\n        if(!(isSkipping&&(isSkipping=skipped++ < resolvedBegin))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0)!==false&&\n                 iterations!==sliceSize;\n        }\n      });\n      return iterations;\n    };\n\n    sliceSeq.__iteratorUncached=function(type, reverse){\n      if(sliceSize!==0&&reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      // Don't bother instantiating parent iterator if taking 0.\n      var iterator=sliceSize!==0&&iterable.__iterator(type, reverse);\n      var skipped=0;\n      var iterations=0;\n      return new Iterator(function(){\n        while (skipped++ < resolvedBegin){\n          iterator.next();\n        }\n        if(++iterations > sliceSize){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(useKeys||type===ITERATE_VALUES){\n          return step;\n        }else if(type===ITERATE_KEYS){\n          return iteratorValue(type, iterations - 1, undefined, step);\n        }else{\n          return iteratorValue(type, iterations - 1, step.value[1], step);\n        }\n      });\n    }\n\n    return sliceSeq;\n  }\n\n\n  function takeWhileFactory(iterable, predicate, context){\n    var takeSequence=makeSequence(iterable);\n    takeSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterations=0;\n      iterable.__iterate(function(v, k, c) \n        {return predicate.call(context, v, k, c)&&++iterations&&fn(v, k, this$0)}\n);\n      return iterations;\n    };\n    takeSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterating=true;\n      return new Iterator(function(){\n        if(!iterating){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var k=entry[0];\n        var v=entry[1];\n        if(!predicate.call(context, v, k, this$0)){\n          iterating=false;\n          return iteratorDone();\n        }\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return takeSequence;\n  }\n\n\n  function skipWhileFactory(iterable, predicate, context, useKeys){\n    var skipSequence=makeSequence(iterable);\n    skipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(!(isSkipping&&(isSkipping=predicate.call(context, v, k, c)))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      });\n      return iterations;\n    };\n    skipSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var skipping=true;\n      var iterations=0;\n      return new Iterator(function(){\n        var step, k, v;\n        do {\n          step=iterator.next();\n          if(step.done){\n            if(useKeys||type===ITERATE_VALUES){\n              return step;\n            }else if(type===ITERATE_KEYS){\n              return iteratorValue(type, iterations++, undefined, step);\n            }else{\n              return iteratorValue(type, iterations++, step.value[1], step);\n            }\n          }\n          var entry=step.value;\n          k=entry[0];\n          v=entry[1];\n          skipping&&(skipping=predicate.call(context, v, k, this$0));\n        } while (skipping);\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return skipSequence;\n  }\n\n\n  function concatFactory(iterable, values){\n    var isKeyedIterable=isKeyed(iterable);\n    var iters=[iterable].concat(values).map(function(v){\n      if(!isIterable(v)){\n        v=isKeyedIterable ?\n          keyedSeqFromValue(v) :\n          indexedSeqFromValue(Array.isArray(v) ? v:[v]);\n      }else if(isKeyedIterable){\n        v=KeyedIterable(v);\n      }\n      return v;\n    }).filter(function(v){return v.size!==0});\n\n    if(iters.length===0){\n      return iterable;\n    }\n\n    if(iters.length===1){\n      var singleton=iters[0];\n      if(singleton===iterable||\n          isKeyedIterable&&isKeyed(singleton)||\n          isIndexed(iterable)&&isIndexed(singleton)){\n        return singleton;\n      }\n    }\n\n    var concatSeq=new ArraySeq(iters);\n    if(isKeyedIterable){\n      concatSeq=concatSeq.toKeyedSeq();\n    }else if(!isIndexed(iterable)){\n      concatSeq=concatSeq.toSetSeq();\n    }\n    concatSeq=concatSeq.flatten(true);\n    concatSeq.size=iters.reduce(\n      function(sum, seq){\n        if(sum!==undefined){\n          var size=seq.size;\n          if(size!==undefined){\n            return sum + size;\n          }\n        }\n      },\n      0\n);\n    return concatSeq;\n  }\n\n\n  function flattenFactory(iterable, depth, useKeys){\n    var flatSequence=makeSequence(iterable);\n    flatSequence.__iterateUncached=function(fn, reverse){\n      var iterations=0;\n      var stopped=false;\n      function flatDeep(iter, currentDepth){var this$0=this;\n        iter.__iterate(function(v, k){\n          if((!depth||currentDepth < depth)&&isIterable(v)){\n            flatDeep(v, currentDepth + 1);\n          }else if(fn(v, useKeys ? k:iterations++, this$0)===false){\n            stopped=true;\n          }\n          return !stopped;\n        }, reverse);\n      }\n      flatDeep(iterable, 0);\n      return iterations;\n    }\n    flatSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(type, reverse);\n      var stack=[];\n      var iterations=0;\n      return new Iterator(function(){\n        while (iterator){\n          var step=iterator.next();\n          if(step.done!==false){\n            iterator=stack.pop();\n            continue;\n          }\n          var v=step.value;\n          if(type===ITERATE_ENTRIES){\n            v=v[1];\n          }\n          if((!depth||stack.length < depth)&&isIterable(v)){\n            stack.push(iterator);\n            iterator=v.__iterator(type, reverse);\n          }else{\n            return useKeys ? step:iteratorValue(type, iterations++, v, step);\n          }\n        }\n        return iteratorDone();\n      });\n    }\n    return flatSequence;\n  }\n\n\n  function flatMapFactory(iterable, mapper, context){\n    var coerce=iterableClass(iterable);\n    return iterable.toSeq().map(\n      function(v, k){return coerce(mapper.call(context, v, k, iterable))}\n).flatten(true);\n  }\n\n\n  function interposeFactory(iterable, separator){\n    var interposedSequence=makeSequence(iterable);\n    interposedSequence.size=iterable.size&&iterable.size * 2 -1;\n    interposedSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k) \n        {return (!iterations||fn(separator, iterations++, this$0)!==false)&&\n        fn(v, iterations++, this$0)!==false},\n        reverse\n);\n      return iterations;\n    };\n    interposedSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      var step;\n      return new Iterator(function(){\n        if(!step||iterations % 2){\n          step=iterator.next();\n          if(step.done){\n            return step;\n          }\n        }\n        return iterations % 2 ?\n          iteratorValue(type, iterations++, separator) :\n          iteratorValue(type, iterations++, step.value, step);\n      });\n    };\n    return interposedSequence;\n  }\n\n\n  function sortFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    var isKeyedIterable=isKeyed(iterable);\n    var index=0;\n    var entries=iterable.toSeq().map(\n      function(v, k){return [k, v, index++, mapper ? mapper(v, k, iterable):v]}\n).toArray();\n    entries.sort(function(a, b){return comparator(a[3], b[3])||a[2] - b[2]}).forEach(\n      isKeyedIterable ?\n      function(v, i){ entries[i].length=2; } :\n      function(v, i){ entries[i]=v[1]; }\n);\n    return isKeyedIterable ? KeyedSeq(entries) :\n      isIndexed(iterable) ? IndexedSeq(entries) :\n      SetSeq(entries);\n  }\n\n\n  function maxFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    if(mapper){\n      var entry=iterable.toSeq()\n        .map(function(v, k){return [v, mapper(v, k, iterable)]})\n        .reduce(function(a, b){return maxCompare(comparator, a[1], b[1]) ? b:a});\n      return entry&&entry[0];\n    }else{\n      return iterable.reduce(function(a, b){return maxCompare(comparator, a, b) ? b:a});\n    }\n  }\n\n  function maxCompare(comparator, a, b){\n    var comp=comparator(b, a);\n    // b is considered the new max if the comparator declares them equal, but\n    // they are not equal and b is in fact a nullish value.\n    return (comp===0&&b!==a&&(b===undefined||b===null||b!==b))||comp > 0;\n  }\n\n\n  function zipWithFactory(keyIter, zipper, iters){\n    var zipSequence=makeSequence(keyIter);\n    zipSequence.size=new ArraySeq(iters).map(function(i){return i.size}).min();\n    // Note: this a generic base implementation of __iterate in terms of\n    // __iterator which may be more generically useful in the future.\n    zipSequence.__iterate=function(fn, reverse){\n      \n      // indexed:\n      var iterator=this.__iterator(ITERATE_VALUES, reverse);\n      var step;\n      var iterations=0;\n      while (!(step=iterator.next()).done){\n        if(fn(step.value, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n    zipSequence.__iteratorUncached=function(type, reverse){\n      var iterators=iters.map(function(i)\n        {return (i=Iterable(i), getIterator(reverse ? i.reverse():i))}\n);\n      var iterations=0;\n      var isDone=false;\n      return new Iterator(function(){\n        var steps;\n        if(!isDone){\n          steps=iterators.map(function(i){return i.next()});\n          isDone=steps.some(function(s){return s.done});\n        }\n        if(isDone){\n          return iteratorDone();\n        }\n        return iteratorValue(\n          type,\n          iterations++,\n          zipper.apply(null, steps.map(function(s){return s.value}))\n);\n      });\n    };\n    return zipSequence\n  }\n\n\n  // #pragma Helper Functions\n\n  function reify(iter, seq){\n    return isSeq(iter) ? seq:iter.constructor(seq);\n  }\n\n  function validateEntry(entry){\n    if(entry!==Object(entry)){\n      throw new TypeError('Expected [K, V] tuple: ' + entry);\n    }\n  }\n\n  function resolveSize(iter){\n    assertNotInfinite(iter.size);\n    return ensureSize(iter);\n  }\n\n  function iterableClass(iterable){\n    return isKeyed(iterable) ? KeyedIterable :\n      isIndexed(iterable) ? IndexedIterable :\n      SetIterable;\n  }\n\n  function makeSequence(iterable){\n    return Object.create(\n      (\n        isKeyed(iterable) ? KeyedSeq :\n        isIndexed(iterable) ? IndexedSeq :\n        SetSeq\n).prototype\n);\n  }\n\n  function cacheResultThrough(){\n    if(this._iter.cacheResult){\n      this._iter.cacheResult();\n      this.size=this._iter.size;\n      return this;\n    }else{\n      return Seq.prototype.cacheResult.call(this);\n    }\n  }\n\n  function defaultComparator(a, b){\n    return a > b ? 1:a < b ? -1:0;\n  }\n\n  function forceIterator(keyPath){\n    var iter=getIterator(keyPath);\n    if(!iter){\n      // Array might not be iterable in this environment, so we need a fallback\n      // to our wrapped type.\n      if(!isArrayLike(keyPath)){\n        throw new TypeError('Expected iterable or array-like: ' + keyPath);\n      }\n      iter=getIterator(Iterable(keyPath));\n    }\n    return iter;\n  }\n\n  createClass(Record, KeyedCollection);\n\n    function Record(defaultValues, name){\n      var hasInitialized;\n\n      var RecordType=function Record(values){\n        if(values instanceof RecordType){\n          return values;\n        }\n        if(!(this instanceof RecordType)){\n          return new RecordType(values);\n        }\n        if(!hasInitialized){\n          hasInitialized=true;\n          var keys=Object.keys(defaultValues);\n          setProps(RecordTypePrototype, keys);\n          RecordTypePrototype.size=keys.length;\n          RecordTypePrototype._name=name;\n          RecordTypePrototype._keys=keys;\n          RecordTypePrototype._defaultValues=defaultValues;\n        }\n        this._map=Map(values);\n      };\n\n      var RecordTypePrototype=RecordType.prototype=Object.create(RecordPrototype);\n      RecordTypePrototype.constructor=RecordType;\n\n      return RecordType;\n    }\n\n    Record.prototype.toString=function(){\n      return this.__toString(recordName(this) + ' {', '}');\n    };\n\n    // @pragma Access\n\n    Record.prototype.has=function(k){\n      return this._defaultValues.hasOwnProperty(k);\n    };\n\n    Record.prototype.get=function(k, notSetValue){\n      if(!this.has(k)){\n        return notSetValue;\n      }\n      var defaultVal=this._defaultValues[k];\n      return this._map ? this._map.get(k, defaultVal):defaultVal;\n    };\n\n    // @pragma Modification\n\n    Record.prototype.clear=function(){\n      if(this.__ownerID){\n        this._map&&this._map.clear();\n        return this;\n      }\n      var RecordType=this.constructor;\n      return RecordType._empty||(RecordType._empty=makeRecord(this, emptyMap()));\n    };\n\n    Record.prototype.set=function(k, v){\n      if(!this.has(k)){\n        throw new Error('Cannot set unknown key \"' + k + '\" on ' + recordName(this));\n      }\n      var newMap=this._map&&this._map.set(k, v);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.remove=function(k){\n      if(!this.has(k)){\n        return this;\n      }\n      var newMap=this._map&&this._map.remove(k);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Record.prototype.__iterator=function(type, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterator(type, reverse);\n    };\n\n    Record.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterate(fn, reverse);\n    };\n\n    Record.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map&&this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return makeRecord(this, newMap, ownerID);\n    };\n\n\n  var RecordPrototype=Record.prototype;\n  RecordPrototype[DELETE]=RecordPrototype.remove;\n  RecordPrototype.deleteIn=\n  RecordPrototype.removeIn=MapPrototype.removeIn;\n  RecordPrototype.merge=MapPrototype.merge;\n  RecordPrototype.mergeWith=MapPrototype.mergeWith;\n  RecordPrototype.mergeIn=MapPrototype.mergeIn;\n  RecordPrototype.mergeDeep=MapPrototype.mergeDeep;\n  RecordPrototype.mergeDeepWith=MapPrototype.mergeDeepWith;\n  RecordPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  RecordPrototype.setIn=MapPrototype.setIn;\n  RecordPrototype.update=MapPrototype.update;\n  RecordPrototype.updateIn=MapPrototype.updateIn;\n  RecordPrototype.withMutations=MapPrototype.withMutations;\n  RecordPrototype.asMutable=MapPrototype.asMutable;\n  RecordPrototype.asImmutable=MapPrototype.asImmutable;\n\n\n  function makeRecord(likeRecord, map, ownerID){\n    var record=Object.create(Object.getPrototypeOf(likeRecord));\n    record._map=map;\n    record.__ownerID=ownerID;\n    return record;\n  }\n\n  function recordName(record){\n    return record._name||record.constructor.name||'Record';\n  }\n\n  function setProps(prototype, names){\n    try {\n      names.forEach(setProp.bind(undefined, prototype));\n    } catch (error){\n      // Object.defineProperty failed. Probably IE8.\n    }\n  }\n\n  function setProp(prototype, name){\n    Object.defineProperty(prototype, name, {\n      get: function(){\n        return this.get(name);\n      },\n      set: function(value){\n        invariant(this.__ownerID, 'Cannot set on an immutable record.');\n        this.set(name, value);\n      }\n    });\n  }\n\n  createClass(Set, SetCollection);\n\n    // @pragma Construction\n\n    function Set(value){\n      return value===null||value===undefined ? emptySet() :\n        isSet(value)&&!isOrdered(value) ? value :\n        emptySet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    Set.of=function(){\n      return this(arguments);\n    };\n\n    Set.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    Set.prototype.toString=function(){\n      return this.__toString('Set {', '}');\n    };\n\n    // @pragma Access\n\n    Set.prototype.has=function(value){\n      return this._map.has(value);\n    };\n\n    // @pragma Modification\n\n    Set.prototype.add=function(value){\n      return updateSet(this, this._map.set(value, true));\n    };\n\n    Set.prototype.remove=function(value){\n      return updateSet(this, this._map.remove(value));\n    };\n\n    Set.prototype.clear=function(){\n      return updateSet(this, this._map.clear());\n    };\n\n    // @pragma Composition\n\n    Set.prototype.union=function(){var iters=SLICE$0.call(arguments, 0);\n      iters=iters.filter(function(x){return x.size!==0});\n      if(iters.length===0){\n        return this;\n      }\n      if(this.size===0&&!this.__ownerID&&iters.length===1){\n        return this.constructor(iters[0]);\n      }\n      return this.withMutations(function(set){\n        for (var ii=0; ii < iters.length; ii++){\n          SetIterable(iters[ii]).forEach(function(value){return set.add(value)});\n        }\n      });\n    };\n\n    Set.prototype.intersect=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(!iters.every(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.subtract=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(iters.some(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.merge=function(){\n      return this.union.apply(this, arguments);\n    };\n\n    Set.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return this.union.apply(this, iters);\n    };\n\n    Set.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator));\n    };\n\n    Set.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator, mapper));\n    };\n\n    Set.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Set.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._map.__iterate(function(_, k){return fn(k, k, this$0)}, reverse);\n    };\n\n    Set.prototype.__iterator=function(type, reverse){\n      return this._map.map(function(_, k){return k}).__iterator(type, reverse);\n    };\n\n    Set.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return this.__make(newMap, ownerID);\n    };\n\n\n  function isSet(maybeSet){\n    return !!(maybeSet&&maybeSet[IS_SET_SENTINEL]);\n  }\n\n  Set.isSet=isSet;\n\n  var IS_SET_SENTINEL='@@__IMMUTABLE_SET__@@';\n\n  var SetPrototype=Set.prototype;\n  SetPrototype[IS_SET_SENTINEL]=true;\n  SetPrototype[DELETE]=SetPrototype.remove;\n  SetPrototype.mergeDeep=SetPrototype.merge;\n  SetPrototype.mergeDeepWith=SetPrototype.mergeWith;\n  SetPrototype.withMutations=MapPrototype.withMutations;\n  SetPrototype.asMutable=MapPrototype.asMutable;\n  SetPrototype.asImmutable=MapPrototype.asImmutable;\n\n  SetPrototype.__empty=emptySet;\n  SetPrototype.__make=makeSet;\n\n  function updateSet(set, newMap){\n    if(set.__ownerID){\n      set.size=newMap.size;\n      set._map=newMap;\n      return set;\n    }\n    return newMap===set._map ? set :\n      newMap.size===0 ? set.__empty() :\n      set.__make(newMap);\n  }\n\n  function makeSet(map, ownerID){\n    var set=Object.create(SetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_SET;\n  function emptySet(){\n    return EMPTY_SET||(EMPTY_SET=makeSet(emptyMap()));\n  }\n\n  createClass(OrderedSet, Set);\n\n    // @pragma Construction\n\n    function OrderedSet(value){\n      return value===null||value===undefined ? emptyOrderedSet() :\n        isOrderedSet(value) ? value :\n        emptyOrderedSet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    OrderedSet.of=function(){\n      return this(arguments);\n    };\n\n    OrderedSet.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    OrderedSet.prototype.toString=function(){\n      return this.__toString('OrderedSet {', '}');\n    };\n\n\n  function isOrderedSet(maybeOrderedSet){\n    return isSet(maybeOrderedSet)&&isOrdered(maybeOrderedSet);\n  }\n\n  OrderedSet.isOrderedSet=isOrderedSet;\n\n  var OrderedSetPrototype=OrderedSet.prototype;\n  OrderedSetPrototype[IS_ORDERED_SENTINEL]=true;\n\n  OrderedSetPrototype.__empty=emptyOrderedSet;\n  OrderedSetPrototype.__make=makeOrderedSet;\n\n  function makeOrderedSet(map, ownerID){\n    var set=Object.create(OrderedSetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_ORDERED_SET;\n  function emptyOrderedSet(){\n    return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()));\n  }\n\n  createClass(Stack, IndexedCollection);\n\n    // @pragma Construction\n\n    function Stack(value){\n      return value===null||value===undefined ? emptyStack() :\n        isStack(value) ? value :\n        emptyStack().unshiftAll(value);\n    }\n\n    Stack.of=function(){\n      return this(arguments);\n    };\n\n    Stack.prototype.toString=function(){\n      return this.__toString('Stack [', ']');\n    };\n\n    // @pragma Access\n\n    Stack.prototype.get=function(index, notSetValue){\n      var head=this._head;\n      index=wrapIndex(this, index);\n      while (head&&index--){\n        head=head.next;\n      }\n      return head ? head.value:notSetValue;\n    };\n\n    Stack.prototype.peek=function(){\n      return this._head&&this._head.value;\n    };\n\n    // @pragma Modification\n\n    Stack.prototype.push=function(){\n      if(arguments.length===0){\n        return this;\n      }\n      var newSize=this.size + arguments.length;\n      var head=this._head;\n      for (var ii=arguments.length - 1; ii >=0; ii--){\n        head={\n          value: arguments[ii],\n          next: head\n        };\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pushAll=function(iter){\n      iter=IndexedIterable(iter);\n      if(iter.size===0){\n        return this;\n      }\n      assertNotInfinite(iter.size);\n      var newSize=this.size;\n      var head=this._head;\n      iter.reverse().forEach(function(value){\n        newSize++;\n        head={\n          value: value,\n          next: head\n        };\n      });\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pop=function(){\n      return this.slice(1);\n    };\n\n    Stack.prototype.unshift=function(){\n      return this.push.apply(this, arguments);\n    };\n\n    Stack.prototype.unshiftAll=function(iter){\n      return this.pushAll(iter);\n    };\n\n    Stack.prototype.shift=function(){\n      return this.pop.apply(this, arguments);\n    };\n\n    Stack.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._head=undefined;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyStack();\n    };\n\n    Stack.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      var resolvedBegin=resolveBegin(begin, this.size);\n      var resolvedEnd=resolveEnd(end, this.size);\n      if(resolvedEnd!==this.size){\n        // super.slice(begin, end);\n        return IndexedCollection.prototype.slice.call(this, begin, end);\n      }\n      var newSize=this.size - resolvedBegin;\n      var head=this._head;\n      while (resolvedBegin--){\n        head=head.next;\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    // @pragma Mutability\n\n    Stack.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeStack(this.size, this._head, ownerID, this.__hash);\n    };\n\n    // @pragma Iteration\n\n    Stack.prototype.__iterate=function(fn, reverse){\n      if(reverse){\n        return this.reverse().__iterate(fn);\n      }\n      var iterations=0;\n      var node=this._head;\n      while (node){\n        if(fn(node.value, iterations++, this)===false){\n          break;\n        }\n        node=node.next;\n      }\n      return iterations;\n    };\n\n    Stack.prototype.__iterator=function(type, reverse){\n      if(reverse){\n        return this.reverse().__iterator(type);\n      }\n      var iterations=0;\n      var node=this._head;\n      return new Iterator(function(){\n        if(node){\n          var value=node.value;\n          node=node.next;\n          return iteratorValue(type, iterations++, value);\n        }\n        return iteratorDone();\n      });\n    };\n\n\n  function isStack(maybeStack){\n    return !!(maybeStack&&maybeStack[IS_STACK_SENTINEL]);\n  }\n\n  Stack.isStack=isStack;\n\n  var IS_STACK_SENTINEL='@@__IMMUTABLE_STACK__@@';\n\n  var StackPrototype=Stack.prototype;\n  StackPrototype[IS_STACK_SENTINEL]=true;\n  StackPrototype.withMutations=MapPrototype.withMutations;\n  StackPrototype.asMutable=MapPrototype.asMutable;\n  StackPrototype.asImmutable=MapPrototype.asImmutable;\n  StackPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n  function makeStack(size, head, ownerID, hash){\n    var map=Object.create(StackPrototype);\n    map.size=size;\n    map._head=head;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_STACK;\n  function emptyStack(){\n    return EMPTY_STACK||(EMPTY_STACK=makeStack(0));\n  }\n\n  \n  function mixin(ctor, methods){\n    var keyCopier=function(key){ ctor.prototype[key]=methods[key]; };\n    Object.keys(methods).forEach(keyCopier);\n    Object.getOwnPropertySymbols&&\n      Object.getOwnPropertySymbols(methods).forEach(keyCopier);\n    return ctor;\n  }\n\n  Iterable.Iterator=Iterator;\n\n  mixin(Iterable, {\n\n    // ### Conversion to other types\n\n    toArray: function(){\n      assertNotInfinite(this.size);\n      var array=new Array(this.size||0);\n      this.valueSeq().__iterate(function(v, i){ array[i]=v; });\n      return array;\n    },\n\n    toIndexedSeq: function(){\n      return new ToIndexedSequence(this);\n    },\n\n    toJS: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJS==='function' ? value.toJS():value}\n).__toJS();\n    },\n\n    toJSON: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJSON==='function' ? value.toJSON():value}\n).__toJS();\n    },\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, true);\n    },\n\n    toMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Map(this.toKeyedSeq());\n    },\n\n    toObject: function(){\n      assertNotInfinite(this.size);\n      var object={};\n      this.__iterate(function(v, k){ object[k]=v; });\n      return object;\n    },\n\n    toOrderedMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedMap(this.toKeyedSeq());\n    },\n\n    toOrderedSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedSet(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Set(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSetSeq: function(){\n      return new ToSetSequence(this);\n    },\n\n    toSeq: function(){\n      return isIndexed(this) ? this.toIndexedSeq() :\n        isKeyed(this) ? this.toKeyedSeq() :\n        this.toSetSeq();\n    },\n\n    toStack: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Stack(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toList: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return List(isKeyed(this) ? this.valueSeq():this);\n    },\n\n\n    // ### Common JavaScript methods and properties\n\n    toString: function(){\n      return '[Iterable]';\n    },\n\n    __toString: function(head, tail){\n      if(this.size===0){\n        return head + tail;\n      }\n      return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    concat: function(){var values=SLICE$0.call(arguments, 0);\n      return reify(this, concatFactory(this, values));\n    },\n\n    includes: function(searchValue){\n      return this.some(function(value){return is(value, searchValue)});\n    },\n\n    entries: function(){\n      return this.__iterator(ITERATE_ENTRIES);\n    },\n\n    every: function(predicate, context){\n      assertNotInfinite(this.size);\n      var returnValue=true;\n      this.__iterate(function(v, k, c){\n        if(!predicate.call(context, v, k, c)){\n          returnValue=false;\n          return false;\n        }\n      });\n      return returnValue;\n    },\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, true));\n    },\n\n    find: function(predicate, context, notSetValue){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[1]:notSetValue;\n    },\n\n    findEntry: function(predicate, context){\n      var found;\n      this.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          found=[k, v];\n          return false;\n        }\n      });\n      return found;\n    },\n\n    findLastEntry: function(predicate, context){\n      return this.toSeq().reverse().findEntry(predicate, context);\n    },\n\n    forEach: function(sideEffect, context){\n      assertNotInfinite(this.size);\n      return this.__iterate(context ? sideEffect.bind(context):sideEffect);\n    },\n\n    join: function(separator){\n      assertNotInfinite(this.size);\n      separator=separator!==undefined ? '' + separator:',';\n      var joined='';\n      var isFirst=true;\n      this.__iterate(function(v){\n        isFirst ? (isFirst=false):(joined +=separator);\n        joined +=v!==null&&v!==undefined ? v.toString():'';\n      });\n      return joined;\n    },\n\n    keys: function(){\n      return this.__iterator(ITERATE_KEYS);\n    },\n\n    map: function(mapper, context){\n      return reify(this, mapFactory(this, mapper, context));\n    },\n\n    reduce: function(reducer, initialReduction, context){\n      assertNotInfinite(this.size);\n      var reduction;\n      var useFirst;\n      if(arguments.length < 2){\n        useFirst=true;\n      }else{\n        reduction=initialReduction;\n      }\n      this.__iterate(function(v, k, c){\n        if(useFirst){\n          useFirst=false;\n          reduction=v;\n        }else{\n          reduction=reducer.call(context, reduction, v, k, c);\n        }\n      });\n      return reduction;\n    },\n\n    reduceRight: function(reducer, initialReduction, context){\n      var reversed=this.toKeyedSeq().reverse();\n      return reversed.reduce.apply(reversed, arguments);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, true));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, true));\n    },\n\n    some: function(predicate, context){\n      return !this.every(not(predicate), context);\n    },\n\n    sort: function(comparator){\n      return reify(this, sortFactory(this, comparator));\n    },\n\n    values: function(){\n      return this.__iterator(ITERATE_VALUES);\n    },\n\n\n    // ### More sequential methods\n\n    butLast: function(){\n      return this.slice(0, -1);\n    },\n\n    isEmpty: function(){\n      return this.size!==undefined ? this.size===0:!this.some(function(){return true});\n    },\n\n    count: function(predicate, context){\n      return ensureSize(\n        predicate ? this.toSeq().filter(predicate, context):this\n);\n    },\n\n    countBy: function(grouper, context){\n      return countByFactory(this, grouper, context);\n    },\n\n    equals: function(other){\n      return deepEqual(this, other);\n    },\n\n    entrySeq: function(){\n      var iterable=this;\n      if(iterable._cache){\n        // We cache as an entries array, so we can just return the cache!\n        return new ArraySeq(iterable._cache);\n      }\n      var entriesSequence=iterable.toSeq().map(entryMapper).toIndexedSeq();\n      entriesSequence.fromEntrySeq=function(){return iterable.toSeq()};\n      return entriesSequence;\n    },\n\n    filterNot: function(predicate, context){\n      return this.filter(not(predicate), context);\n    },\n\n    findLast: function(predicate, context, notSetValue){\n      return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);\n    },\n\n    first: function(){\n      return this.find(returnTrue);\n    },\n\n    flatMap: function(mapper, context){\n      return reify(this, flatMapFactory(this, mapper, context));\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, true));\n    },\n\n    fromEntrySeq: function(){\n      return new FromEntriesSequence(this);\n    },\n\n    get: function(searchKey, notSetValue){\n      return this.find(function(_, key){return is(key, searchKey)}, undefined, notSetValue);\n    },\n\n    getIn: function(searchKeyPath, notSetValue){\n      var nested=this;\n      // Note: in an ES6 environment, we would prefer:\n      // for (var key of searchKeyPath){\n      var iter=forceIterator(searchKeyPath);\n      var step;\n      while (!(step=iter.next()).done){\n        var key=step.value;\n        nested=nested&&nested.get ? nested.get(key, NOT_SET):NOT_SET;\n        if(nested===NOT_SET){\n          return notSetValue;\n        }\n      }\n      return nested;\n    },\n\n    groupBy: function(grouper, context){\n      return groupByFactory(this, grouper, context);\n    },\n\n    has: function(searchKey){\n      return this.get(searchKey, NOT_SET)!==NOT_SET;\n    },\n\n    hasIn: function(searchKeyPath){\n      return this.getIn(searchKeyPath, NOT_SET)!==NOT_SET;\n    },\n\n    isSubset: function(iter){\n      iter=typeof iter.includes==='function' ? iter:Iterable(iter);\n      return this.every(function(value){return iter.includes(value)});\n    },\n\n    isSuperset: function(iter){\n      iter=typeof iter.isSubset==='function' ? iter:Iterable(iter);\n      return iter.isSubset(this);\n    },\n\n    keySeq: function(){\n      return this.toSeq().map(keyMapper).toIndexedSeq();\n    },\n\n    last: function(){\n      return this.toSeq().reverse().first();\n    },\n\n    max: function(comparator){\n      return maxFactory(this, comparator);\n    },\n\n    maxBy: function(mapper, comparator){\n      return maxFactory(this, comparator, mapper);\n    },\n\n    min: function(comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator);\n    },\n\n    minBy: function(mapper, comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator, mapper);\n    },\n\n    rest: function(){\n      return this.slice(1);\n    },\n\n    skip: function(amount){\n      return this.slice(Math.max(0, amount));\n    },\n\n    skipLast: function(amount){\n      return reify(this, this.toSeq().reverse().skip(amount).reverse());\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, true));\n    },\n\n    skipUntil: function(predicate, context){\n      return this.skipWhile(not(predicate), context);\n    },\n\n    sortBy: function(mapper, comparator){\n      return reify(this, sortFactory(this, comparator, mapper));\n    },\n\n    take: function(amount){\n      return this.slice(0, Math.max(0, amount));\n    },\n\n    takeLast: function(amount){\n      return reify(this, this.toSeq().reverse().take(amount).reverse());\n    },\n\n    takeWhile: function(predicate, context){\n      return reify(this, takeWhileFactory(this, predicate, context));\n    },\n\n    takeUntil: function(predicate, context){\n      return this.takeWhile(not(predicate), context);\n    },\n\n    valueSeq: function(){\n      return this.toIndexedSeq();\n    },\n\n\n    // ### Hashable Object\n\n    hashCode: function(){\n      return this.__hash||(this.__hash=hashIterable(this));\n    }\n\n\n    // ### Internal\n\n    // abstract __iterate(fn, reverse)\n\n    // abstract __iterator(type, reverse)\n  });\n\n  // var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  // var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  // var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  // var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  var IterablePrototype=Iterable.prototype;\n  IterablePrototype[IS_ITERABLE_SENTINEL]=true;\n  IterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.values;\n  IterablePrototype.__toJS=IterablePrototype.toArray;\n  IterablePrototype.__toStringMapper=quoteString;\n  IterablePrototype.inspect=\n  IterablePrototype.toSource=function(){ return this.toString(); };\n  IterablePrototype.chain=IterablePrototype.flatMap;\n  IterablePrototype.contains=IterablePrototype.includes;\n\n  // Temporary warning about using length\n  (function (){\n    try {\n      Object.defineProperty(IterablePrototype, 'length', {\n        get: function (){\n          if(!Iterable.noLengthWarning){\n            var stack;\n            try {\n              throw new Error();\n            } catch (error){\n              stack=error.stack;\n            }\n            if(stack.indexOf('_wrapObject')===-1){\n              console&&console.warn&&console.warn(\n                'iterable.length has been deprecated, '+\n                'use iterable.size or iterable.count(). '+\n                'This warning will become a silent error in a future version. ' +\n                stack\n);\n              return this.size;\n            }\n          }\n        }\n      });\n    } catch (e){}\n  })();\n\n\n\n  mixin(KeyedIterable, {\n\n    // ### More sequential methods\n\n    flip: function(){\n      return reify(this, flipFactory(this));\n    },\n\n    findKey: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry&&entry[0];\n    },\n\n    findLastKey: function(predicate, context){\n      return this.toSeq().reverse().findKey(predicate, context);\n    },\n\n    keyOf: function(searchValue){\n      return this.findKey(function(value){return is(value, searchValue)});\n    },\n\n    lastKeyOf: function(searchValue){\n      return this.findLastKey(function(value){return is(value, searchValue)});\n    },\n\n    mapEntries: function(mapper, context){var this$0=this;\n      var iterations=0;\n      return reify(this,\n        this.toSeq().map(\n          function(v, k){return mapper.call(context, [k, v], iterations++, this$0)}\n).fromEntrySeq()\n);\n    },\n\n    mapKeys: function(mapper, context){var this$0=this;\n      return reify(this,\n        this.toSeq().flip().map(\n          function(k, v){return mapper.call(context, k, v, this$0)}\n).flip()\n);\n    }\n\n  });\n\n  var KeyedIterablePrototype=KeyedIterable.prototype;\n  KeyedIterablePrototype[IS_KEYED_SENTINEL]=true;\n  KeyedIterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.entries;\n  KeyedIterablePrototype.__toJS=IterablePrototype.toObject;\n  KeyedIterablePrototype.__toStringMapper=function(v, k){return JSON.stringify(k) + ': ' + quoteString(v)};\n\n\n\n  mixin(IndexedIterable, {\n\n    // ### Conversion to other types\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, false);\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, false));\n    },\n\n    findIndex: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[0]:-1;\n    },\n\n    indexOf: function(searchValue){\n      var key=this.toKeyedSeq().keyOf(searchValue);\n      return key===undefined ? -1:key;\n    },\n\n    lastIndexOf: function(searchValue){\n      var key=this.toKeyedSeq().reverse().keyOf(searchValue);\n      return key===undefined ? -1:key;\n\n      // var index=\n      // return this.toSeq().reverse().indexOf(searchValue);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, false));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, false));\n    },\n\n    splice: function(index, removeNum ){\n      var numArgs=arguments.length;\n      removeNum=Math.max(removeNum | 0, 0);\n      if(numArgs===0||(numArgs===2&&!removeNum)){\n        return this;\n      }\n      // If index is negative, it should resolve relative to the size of the\n      // collection. However size may be expensive to compute if not cached, so\n      // only call count() if the number is in fact negative.\n      index=resolveBegin(index, index < 0 ? this.count():this.size);\n      var spliced=this.slice(0, index);\n      return reify(\n        this,\n        numArgs===1 ?\n          spliced :\n          spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))\n);\n    },\n\n\n    // ### More collection methods\n\n    findLastIndex: function(predicate, context){\n      var key=this.toKeyedSeq().findLastKey(predicate, context);\n      return key===undefined ? -1:key;\n    },\n\n    first: function(){\n      return this.get(0);\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, false));\n    },\n\n    get: function(index, notSetValue){\n      index=wrapIndex(this, index);\n      return (index < 0||(this.size===Infinity||\n          (this.size!==undefined&&index > this.size))) ?\n        notSetValue :\n        this.find(function(_, key){return key===index}, undefined, notSetValue);\n    },\n\n    has: function(index){\n      index=wrapIndex(this, index);\n      return index >=0&&(this.size!==undefined ?\n        this.size===Infinity||index < this.size :\n        this.indexOf(index)!==-1\n);\n    },\n\n    interpose: function(separator){\n      return reify(this, interposeFactory(this, separator));\n    },\n\n    interleave: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      var zipped=zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);\n      var interleaved=zipped.flatten(true);\n      if(zipped.size){\n        interleaved.size=zipped.size * iterables.length;\n      }\n      return reify(this, interleaved);\n    },\n\n    last: function(){\n      return this.get(-1);\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, false));\n    },\n\n    zip: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      return reify(this, zipWithFactory(this, defaultZipper, iterables));\n    },\n\n    zipWith: function(zipper){\n      var iterables=arrCopy(arguments);\n      iterables[0]=this;\n      return reify(this, zipWithFactory(this, zipper, iterables));\n    }\n\n  });\n\n  IndexedIterable.prototype[IS_INDEXED_SENTINEL]=true;\n  IndexedIterable.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n\n  mixin(SetIterable, {\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    get: function(value, notSetValue){\n      return this.has(value) ? value:notSetValue;\n    },\n\n    includes: function(value){\n      return this.has(value);\n    },\n\n\n    // ### More sequential methods\n\n    keySeq: function(){\n      return this.valueSeq();\n    }\n\n  });\n\n  SetIterable.prototype.has=IterablePrototype.includes;\n\n\n  // Mixin subclasses\n\n  mixin(KeyedSeq, KeyedIterable.prototype);\n  mixin(IndexedSeq, IndexedIterable.prototype);\n  mixin(SetSeq, SetIterable.prototype);\n\n  mixin(KeyedCollection, KeyedIterable.prototype);\n  mixin(IndexedCollection, IndexedIterable.prototype);\n  mixin(SetCollection, SetIterable.prototype);\n\n\n  // #pragma Helper functions\n\n  function keyMapper(v, k){\n    return k;\n  }\n\n  function entryMapper(v, k){\n    return [k, v];\n  }\n\n  function not(predicate){\n    return function(){\n      return !predicate.apply(this, arguments);\n    }\n  }\n\n  function neg(predicate){\n    return function(){\n      return -predicate.apply(this, arguments);\n    }\n  }\n\n  function quoteString(value){\n    return typeof value==='string' ? JSON.stringify(value):value;\n  }\n\n  function defaultZipper(){\n    return arrCopy(arguments);\n  }\n\n  function defaultNegComparator(a, b){\n    return a < b ? 1:a > b ? -1:0;\n  }\n\n  function hashIterable(iterable){\n    if(iterable.size===Infinity){\n      return 0;\n    }\n    var ordered=isOrdered(iterable);\n    var keyed=isKeyed(iterable);\n    var h=ordered ? 1:0;\n    var size=iterable.__iterate(\n      keyed ?\n        ordered ?\n          function(v, k){ h=31 * h + hashMerge(hash(v), hash(k)) | 0; } :\n          function(v, k){ h=h + hashMerge(hash(v), hash(k)) | 0; } :\n        ordered ?\n          function(v){ h=31 * h + hash(v) | 0; } :\n          function(v){ h=h + hash(v) | 0; }\n);\n    return murmurHashOfSize(size, h);\n  }\n\n  function murmurHashOfSize(size, h){\n    h=imul(h, 0xCC9E2D51);\n    h=imul(h << 15 | h >>> -15, 0x1B873593);\n    h=imul(h << 13 | h >>> -13, 5);\n    h=(h + 0xE6546B64 | 0) ^ size;\n    h=imul(h ^ h >>> 16, 0x85EBCA6B);\n    h=imul(h ^ h >>> 13, 0xC2B2AE35);\n    h=smi(h ^ h >>> 16);\n    return h;\n  }\n\n  function hashMerge(a, b){\n    return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int\n  }\n\n  var Immutable={\n\n    Iterable: Iterable,\n\n    Seq: Seq,\n    Collection: Collection,\n    Map: Map,\n    OrderedMap: OrderedMap,\n    List: List,\n    Stack: Stack,\n    Set: Set,\n    OrderedSet: OrderedSet,\n\n    Record: Record,\n    Range: Range,\n    Repeat: Repeat,\n\n    is: is,\n    fromJS: fromJS\n\n  };\n\n  return Immutable;\n\n}));\n\n//# sourceURL=webpack:///./node_modules/draft-js/node_modules/immutable/dist/immutable.js?");
}),
"./node_modules/fbjs/lib/DataTransfer.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar PhotosMimeType=__webpack_require__( \"./node_modules/fbjs/lib/PhotosMimeType.js\");\n\nvar createArrayFromMixed=__webpack_require__( \"./node_modules/fbjs/lib/createArrayFromMixed.js\");\n\nvar emptyFunction=__webpack_require__( \"./node_modules/fbjs/lib/emptyFunction.js\");\n\nvar CR_LF_REGEX=new RegExp(\"\\r\\n\", 'g');\nvar LF_ONLY=\"\\n\";\nvar RICH_TEXT_TYPES={\n  'text/rtf': 1,\n  'text/html': 1\n};\n\n\nfunction getFileFromDataTransfer(item){\n  if(item.kind=='file'){\n    return item.getAsFile();\n  }\n}\n\nvar DataTransfer=\n\nfunction (){\n  \n  function DataTransfer(data){\n    this.data=data; // Types could be DOMStringList or array\n\n    this.types=data.types ? createArrayFromMixed(data.types):[];\n  }\n  \n\n\n  var _proto=DataTransfer.prototype;\n\n  _proto.isRichText=function isRichText(){\n    // If HTML is available, treat this data as rich text. This way, we avoid\n    // using a pasted image if it is packaged with HTML -- this may occur with\n    // pastes from MS Word, for example.  However this is only rich text if\n    // there's accompanying text.\n    if(this.getHTML()&&this.getText()){\n      return true;\n    } // When an image is copied from a preview window, you end up with two\n    // DataTransferItems one of which is a file's metadata as text.  Skip those.\n\n\n    if(this.isImage()){\n      return false;\n    }\n\n    return this.types.some(function (type){\n      return RICH_TEXT_TYPES[type];\n    });\n  };\n  \n\n\n  _proto.getText=function getText(){\n    var text;\n\n    if(this.data.getData){\n      if(!this.types.length){\n        text=this.data.getData('Text');\n      }else if(this.types.indexOf('text/plain')!=-1){\n        text=this.data.getData('text/plain');\n      }\n    }\n\n    return text ? text.replace(CR_LF_REGEX, LF_ONLY):null;\n  };\n  \n\n\n  _proto.getHTML=function getHTML(){\n    if(this.data.getData){\n      if(!this.types.length){\n        return this.data.getData('Text');\n      }else if(this.types.indexOf('text/html')!=-1){\n        return this.data.getData('text/html');\n      }\n    }\n  };\n  \n\n\n  _proto.isLink=function isLink(){\n    return this.types.some(function (type){\n      return type.indexOf('Url')!=-1||type.indexOf('text/uri-list')!=-1||type.indexOf('text/x-moz-url');\n    });\n  };\n  \n\n\n  _proto.getLink=function getLink(){\n    if(this.data.getData){\n      if(this.types.indexOf('text/x-moz-url')!=-1){\n        var url=this.data.getData('text/x-moz-url').split('\\n');\n        return url[0];\n      }\n\n      return this.types.indexOf('text/uri-list')!=-1 ? this.data.getData('text/uri-list'):this.data.getData('url');\n    }\n\n    return null;\n  };\n  \n\n\n  _proto.isImage=function isImage(){\n    var isImage=this.types.some(function (type){\n      // Firefox will have a type of application/x-moz-file for images during\n      // dragging\n      return type.indexOf('application/x-moz-file')!=-1;\n    });\n\n    if(isImage){\n      return true;\n    }\n\n    var items=this.getFiles();\n\n    for (var i=0; i < items.length; i++){\n      var type=items[i].type;\n\n      if(!PhotosMimeType.isImage(type)){\n        return false;\n      }\n    }\n\n    return true;\n  };\n\n  _proto.getCount=function getCount(){\n    if(this.data.hasOwnProperty('items')){\n      return this.data.items.length;\n    }else if(this.data.hasOwnProperty('mozItemCount')){\n      return this.data.mozItemCount;\n    }else if(this.data.files){\n      return this.data.files.length;\n    }\n\n    return null;\n  };\n  \n\n\n  _proto.getFiles=function getFiles(){\n    if(this.data.items){\n      // createArrayFromMixed doesn't properly handle DataTransferItemLists.\n      return Array.prototype.slice.call(this.data.items).map(getFileFromDataTransfer).filter(emptyFunction.thatReturnsArgument);\n    }else if(this.data.files){\n      return Array.prototype.slice.call(this.data.files);\n    }else{\n      return [];\n    }\n  };\n  \n\n\n  _proto.hasFiles=function hasFiles(){\n    return this.getFiles().length > 0;\n  };\n\n  return DataTransfer;\n}();\n\nmodule.exports=DataTransfer;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/DataTransfer.js?");
}),
"./node_modules/fbjs/lib/Keys.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nmodule.exports={\n  BACKSPACE: 8,\n  TAB: 9,\n  RETURN: 13,\n  ALT: 18,\n  ESC: 27,\n  SPACE: 32,\n  PAGE_UP: 33,\n  PAGE_DOWN: 34,\n  END: 35,\n  HOME: 36,\n  LEFT: 37,\n  UP: 38,\n  RIGHT: 39,\n  DOWN: 40,\n  DELETE: 46,\n  COMMA: 188,\n  PERIOD: 190,\n  A: 65,\n  Z: 90,\n  ZERO: 48,\n  NUMPAD_0: 96,\n  NUMPAD_9: 105\n};\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/Keys.js?");
}),
"./node_modules/fbjs/lib/PhotosMimeType.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar PhotosMimeType={\n  isImage: function isImage(mimeString){\n    return getParts(mimeString)[0]==='image';\n  },\n  isJpeg: function isJpeg(mimeString){\n    var parts=getParts(mimeString);\n    return PhotosMimeType.isImage(mimeString)&&(// see http://fburl.com/10972194\n    parts[1]==='jpeg'||parts[1]==='pjpeg');\n  }\n};\n\nfunction getParts(mimeString){\n  return mimeString.split('/');\n}\n\nmodule.exports=PhotosMimeType;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/PhotosMimeType.js?");
}),
"./node_modules/fbjs/lib/Scroll.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nfunction _isViewportScrollElement(element, doc){\n  return !!doc&&(element===doc.documentElement||element===doc.body);\n}\n\n\n\nvar Scroll={\n  \n  getTop: function getTop(element){\n    var doc=element.ownerDocument;\n    return _isViewportScrollElement(element, doc) ? // In practice, they will either both have the same value,\n    // or one will be zero and the other will be the scroll position\n    // of the viewport. So we can use `X||Y` instead of `Math.max(X, Y)`\n    doc.body.scrollTop||doc.documentElement.scrollTop:element.scrollTop;\n  },\n\n  \n  setTop: function setTop(element, newTop){\n    var doc=element.ownerDocument;\n\n    if(_isViewportScrollElement(element, doc)){\n      doc.body.scrollTop=doc.documentElement.scrollTop=newTop;\n    }else{\n      element.scrollTop=newTop;\n    }\n  },\n\n  \n  getLeft: function getLeft(element){\n    var doc=element.ownerDocument;\n    return _isViewportScrollElement(element, doc) ? doc.body.scrollLeft||doc.documentElement.scrollLeft:element.scrollLeft;\n  },\n\n  \n  setLeft: function setLeft(element, newLeft){\n    var doc=element.ownerDocument;\n\n    if(_isViewportScrollElement(element, doc)){\n      doc.body.scrollLeft=doc.documentElement.scrollLeft=newLeft;\n    }else{\n      element.scrollLeft=newLeft;\n    }\n  }\n};\nmodule.exports=Scroll;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/Scroll.js?");
}),
"./node_modules/fbjs/lib/Style.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getStyleProperty=__webpack_require__( \"./node_modules/fbjs/lib/getStyleProperty.js\");\n\n\n\nfunction _isNodeScrollable(element, name){\n  var overflow=Style.get(element, name);\n  return overflow==='auto'||overflow==='scroll';\n}\n\n\n\nvar Style={\n  \n  get: getStyleProperty,\n\n  \n  getScrollParent: function getScrollParent(node){\n    if(!node){\n      return null;\n    }\n\n    var ownerDocument=node.ownerDocument;\n\n    while (node&&node!==ownerDocument.body){\n      if(_isNodeScrollable(node, 'overflow')||_isNodeScrollable(node, 'overflowY')||_isNodeScrollable(node, 'overflowX')){\n        return node;\n      }\n\n      node=node.parentNode;\n    }\n\n    return ownerDocument.defaultView||ownerDocument.parentWindow;\n  }\n};\nmodule.exports=Style;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/Style.js?");
}),
"./node_modules/fbjs/lib/TokenizeUtil.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n // \\u00a1-\\u00b1\\u00b4-\\u00b8\\u00ba\\u00bb\\u00bf\n//             is latin supplement punctuation except fractions and superscript\n//             numbers\n// \\u2010-\\u2027\\u2030-\\u205e\n//             is punctuation from the general punctuation block:\n//             weird quotes, commas, bullets, dashes, etc.\n// \\u30fb\\u3001\\u3002\\u3008-\\u3011\\u3014-\\u301f\n//             is CJK punctuation\n// \\uff1a-\\uff1f\\uff01-\\uff0f\\uff3b-\\uff40\\uff5b-\\uff65\n//             is some full-width/half-width punctuation\n// \\u2E2E\\u061f\\u066a-\\u066c\\u061b\\u060c\\u060d\\uFD3e\\uFD3F\n//             is some Arabic punctuation marks\n// \\u1801\\u0964\\u104a\\u104b\n//             is misc. other language punctuation marks\n\nvar PUNCTUATION='[.,+*?$|#{}()\\'\\\\^\\\\-\\\\[\\\\]\\\\\\\\\\\\/!@%\"~=<>_:;' + \"\\u30FB\\u3001\\u3002\\u3008-\\u3011\\u3014-\\u301F\\uFF1A-\\uFF1F\\uFF01-\\uFF0F\" + \"\\uFF3B-\\uFF40\\uFF5B-\\uFF65\\u2E2E\\u061F\\u066A-\\u066C\\u061B\\u060C\\u060D\" + \"\\uFD3E\\uFD3F\\u1801\\u0964\\u104A\\u104B\\u2010-\\u2027\\u2030-\\u205E\" + \"\\xA1-\\xB1\\xB4-\\xB8\\xBA\\xBB\\xBF]\";\nmodule.exports={\n  getPunctuation: function getPunctuation(){\n    return PUNCTUATION;\n  }\n};\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/TokenizeUtil.js?");
}),
"./node_modules/fbjs/lib/URI.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar URI=\n\nfunction (){\n  function URI(uri){\n    _defineProperty(this, \"_uri\", void 0);\n\n    this._uri=uri;\n  }\n\n  var _proto=URI.prototype;\n\n  _proto.toString=function toString(){\n    return this._uri;\n  };\n\n  return URI;\n}();\n\nmodule.exports=URI;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/URI.js?");
}),
"./node_modules/fbjs/lib/UnicodeBidi.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nvar UnicodeBidiDirection=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidiDirection.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\n\nvar RANGE_BY_BIDI_TYPE={\n  L: \"A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u01BA\\u01BB\" + \"\\u01BC-\\u01BF\\u01C0-\\u01C3\\u01C4-\\u0293\\u0294\\u0295-\\u02AF\\u02B0-\\u02B8\" + \"\\u02BB-\\u02C1\\u02D0-\\u02D1\\u02E0-\\u02E4\\u02EE\\u0370-\\u0373\\u0376-\\u0377\" + \"\\u037A\\u037B-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\" + \"\\u03A3-\\u03F5\\u03F7-\\u0481\\u0482\\u048A-\\u052F\\u0531-\\u0556\\u0559\" + \"\\u055A-\\u055F\\u0561-\\u0587\\u0589\\u0903\\u0904-\\u0939\\u093B\\u093D\" + \"\\u093E-\\u0940\\u0949-\\u094C\\u094E-\\u094F\\u0950\\u0958-\\u0961\\u0964-\\u0965\" + \"\\u0966-\\u096F\\u0970\\u0971\\u0972-\\u0980\\u0982-\\u0983\\u0985-\\u098C\" + \"\\u098F-\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\" + \"\\u09BE-\\u09C0\\u09C7-\\u09C8\\u09CB-\\u09CC\\u09CE\\u09D7\\u09DC-\\u09DD\" + \"\\u09DF-\\u09E1\\u09E6-\\u09EF\\u09F0-\\u09F1\\u09F4-\\u09F9\\u09FA\\u0A03\" + \"\\u0A05-\\u0A0A\\u0A0F-\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32-\\u0A33\" + \"\\u0A35-\\u0A36\\u0A38-\\u0A39\\u0A3E-\\u0A40\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A6F\" + \"\\u0A72-\\u0A74\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\" + \"\\u0AB2-\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0ABE-\\u0AC0\\u0AC9\\u0ACB-\\u0ACC\\u0AD0\" + \"\\u0AE0-\\u0AE1\\u0AE6-\\u0AEF\\u0AF0\\u0B02-\\u0B03\\u0B05-\\u0B0C\\u0B0F-\\u0B10\" + \"\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32-\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B3E\\u0B40\" + \"\\u0B47-\\u0B48\\u0B4B-\\u0B4C\\u0B57\\u0B5C-\\u0B5D\\u0B5F-\\u0B61\\u0B66-\\u0B6F\" + \"\\u0B70\\u0B71\\u0B72-\\u0B77\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\" + \"\\u0B99-\\u0B9A\\u0B9C\\u0B9E-\\u0B9F\\u0BA3-\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\" + \"\\u0BBE-\\u0BBF\\u0BC1-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD0\\u0BD7\" + \"\\u0BE6-\\u0BEF\\u0BF0-\\u0BF2\\u0C01-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\" + \"\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C41-\\u0C44\\u0C58-\\u0C59\\u0C60-\\u0C61\" + \"\\u0C66-\\u0C6F\\u0C7F\\u0C82-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\" + \"\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CBE\\u0CBF\\u0CC0-\\u0CC4\\u0CC6\" + \"\\u0CC7-\\u0CC8\\u0CCA-\\u0CCB\\u0CD5-\\u0CD6\\u0CDE\\u0CE0-\\u0CE1\\u0CE6-\\u0CEF\" + \"\\u0CF1-\\u0CF2\\u0D02-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\" + \"\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D4E\\u0D57\\u0D60-\\u0D61\" + \"\\u0D66-\\u0D6F\\u0D70-\\u0D75\\u0D79\\u0D7A-\\u0D7F\\u0D82-\\u0D83\\u0D85-\\u0D96\" + \"\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\" + \"\\u0DE6-\\u0DEF\\u0DF2-\\u0DF3\\u0DF4\\u0E01-\\u0E30\\u0E32-\\u0E33\\u0E40-\\u0E45\" + \"\\u0E46\\u0E4F\\u0E50-\\u0E59\\u0E5A-\\u0E5B\\u0E81-\\u0E82\\u0E84\\u0E87-\\u0E88\" + \"\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\" + \"\\u0EAA-\\u0EAB\\u0EAD-\\u0EB0\\u0EB2-\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\" + \"\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F01-\\u0F03\\u0F04-\\u0F12\\u0F13\\u0F14\" + \"\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F20-\\u0F29\\u0F2A-\\u0F33\\u0F34\\u0F36\\u0F38\" + \"\\u0F3E-\\u0F3F\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F7F\\u0F85\\u0F88-\\u0F8C\" + \"\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD0-\\u0FD4\\u0FD5-\\u0FD8\" + \"\\u0FD9-\\u0FDA\\u1000-\\u102A\\u102B-\\u102C\\u1031\\u1038\\u103B-\\u103C\\u103F\" + \"\\u1040-\\u1049\\u104A-\\u104F\\u1050-\\u1055\\u1056-\\u1057\\u105A-\\u105D\\u1061\" + \"\\u1062-\\u1064\\u1065-\\u1066\\u1067-\\u106D\\u106E-\\u1070\\u1075-\\u1081\" + \"\\u1083-\\u1084\\u1087-\\u108C\\u108E\\u108F\\u1090-\\u1099\\u109A-\\u109C\" + \"\\u109E-\\u109F\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FB\\u10FC\" + \"\\u10FD-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\" + \"\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\" + \"\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1360-\\u1368\" + \"\\u1369-\\u137C\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166D-\\u166E\" + \"\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EB-\\u16ED\\u16EE-\\u16F0\" + \"\\u16F1-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1735-\\u1736\" + \"\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17B6\\u17BE-\\u17C5\" + \"\\u17C7-\\u17C8\\u17D4-\\u17D6\\u17D7\\u17D8-\\u17DA\\u17DC\\u17E0-\\u17E9\" + \"\\u1810-\\u1819\\u1820-\\u1842\\u1843\\u1844-\\u1877\\u1880-\\u18A8\\u18AA\" + \"\\u18B0-\\u18F5\\u1900-\\u191E\\u1923-\\u1926\\u1929-\\u192B\\u1930-\\u1931\" + \"\\u1933-\\u1938\\u1946-\\u194F\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\" + \"\\u19B0-\\u19C0\\u19C1-\\u19C7\\u19C8-\\u19C9\\u19D0-\\u19D9\\u19DA\\u1A00-\\u1A16\" + \"\\u1A19-\\u1A1A\\u1A1E-\\u1A1F\\u1A20-\\u1A54\\u1A55\\u1A57\\u1A61\\u1A63-\\u1A64\" + \"\\u1A6D-\\u1A72\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1AA0-\\u1AA6\\u1AA7\\u1AA8-\\u1AAD\" + \"\\u1B04\\u1B05-\\u1B33\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43-\\u1B44\\u1B45-\\u1B4B\" + \"\\u1B50-\\u1B59\\u1B5A-\\u1B60\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1B82\\u1B83-\\u1BA0\" + \"\\u1BA1\\u1BA6-\\u1BA7\\u1BAA\\u1BAE-\\u1BAF\\u1BB0-\\u1BB9\\u1BBA-\\u1BE5\\u1BE7\" + \"\\u1BEA-\\u1BEC\\u1BEE\\u1BF2-\\u1BF3\\u1BFC-\\u1BFF\\u1C00-\\u1C23\\u1C24-\\u1C2B\" + \"\\u1C34-\\u1C35\\u1C3B-\\u1C3F\\u1C40-\\u1C49\\u1C4D-\\u1C4F\\u1C50-\\u1C59\" + \"\\u1C5A-\\u1C77\\u1C78-\\u1C7D\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u1CE1\" + \"\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF2-\\u1CF3\\u1CF5-\\u1CF6\\u1D00-\\u1D2B\" + \"\\u1D2C-\\u1D6A\\u1D6B-\\u1D77\\u1D78\\u1D79-\\u1D9A\\u1D9B-\\u1DBF\\u1E00-\\u1F15\" + \"\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\" + \"\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\" + \"\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200E\" + \"\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\" + \"\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2134\\u2135-\\u2138\\u2139\" + \"\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u214F\\u2160-\\u2182\\u2183-\\u2184\" + \"\\u2185-\\u2188\\u2336-\\u237A\\u2395\\u249C-\\u24E9\\u26AC\\u2800-\\u28FF\" + \"\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2C7B\\u2C7C-\\u2C7D\\u2C7E-\\u2CE4\" + \"\\u2CEB-\\u2CEE\\u2CF2-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\" + \"\\u2D70\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\" + \"\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3005\\u3006\\u3007\" + \"\\u3021-\\u3029\\u302E-\\u302F\\u3031-\\u3035\\u3038-\\u303A\\u303B\\u303C\" + \"\\u3041-\\u3096\\u309D-\\u309E\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FE\\u30FF\" + \"\\u3105-\\u312D\\u3131-\\u318E\\u3190-\\u3191\\u3192-\\u3195\\u3196-\\u319F\" + \"\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3200-\\u321C\\u3220-\\u3229\\u322A-\\u3247\" + \"\\u3248-\\u324F\\u3260-\\u327B\\u327F\\u3280-\\u3289\\u328A-\\u32B0\\u32C0-\\u32CB\" + \"\\u32D0-\\u32FE\\u3300-\\u3376\\u337B-\\u33DD\\u33E0-\\u33FE\\u3400-\\u4DB5\" + \"\\u4E00-\\u9FCC\\uA000-\\uA014\\uA015\\uA016-\\uA48C\\uA4D0-\\uA4F7\\uA4F8-\\uA4FD\" + \"\\uA4FE-\\uA4FF\\uA500-\\uA60B\\uA60C\\uA610-\\uA61F\\uA620-\\uA629\\uA62A-\\uA62B\" + \"\\uA640-\\uA66D\\uA66E\\uA680-\\uA69B\\uA69C-\\uA69D\\uA6A0-\\uA6E5\\uA6E6-\\uA6EF\" + \"\\uA6F2-\\uA6F7\\uA722-\\uA76F\\uA770\\uA771-\\uA787\\uA789-\\uA78A\\uA78B-\\uA78E\" + \"\\uA790-\\uA7AD\\uA7B0-\\uA7B1\\uA7F7\\uA7F8-\\uA7F9\\uA7FA\\uA7FB-\\uA801\" + \"\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA823-\\uA824\\uA827\\uA830-\\uA835\" + \"\\uA836-\\uA837\\uA840-\\uA873\\uA880-\\uA881\\uA882-\\uA8B3\\uA8B4-\\uA8C3\" + \"\\uA8CE-\\uA8CF\\uA8D0-\\uA8D9\\uA8F2-\\uA8F7\\uA8F8-\\uA8FA\\uA8FB\\uA900-\\uA909\" + \"\\uA90A-\\uA925\\uA92E-\\uA92F\\uA930-\\uA946\\uA952-\\uA953\\uA95F\\uA960-\\uA97C\" + \"\\uA983\\uA984-\\uA9B2\\uA9B4-\\uA9B5\\uA9BA-\\uA9BB\\uA9BD-\\uA9C0\\uA9C1-\\uA9CD\" + \"\\uA9CF\\uA9D0-\\uA9D9\\uA9DE-\\uA9DF\\uA9E0-\\uA9E4\\uA9E6\\uA9E7-\\uA9EF\" + \"\\uA9F0-\\uA9F9\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA2F-\\uAA30\\uAA33-\\uAA34\" + \"\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA4D\\uAA50-\\uAA59\\uAA5C-\\uAA5F\\uAA60-\\uAA6F\" + \"\\uAA70\\uAA71-\\uAA76\\uAA77-\\uAA79\\uAA7A\\uAA7B\\uAA7D\\uAA7E-\\uAAAF\\uAAB1\" + \"\\uAAB5-\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADC\\uAADD\\uAADE-\\uAADF\" + \"\\uAAE0-\\uAAEA\\uAAEB\\uAAEE-\\uAAEF\\uAAF0-\\uAAF1\\uAAF2\\uAAF3-\\uAAF4\\uAAF5\" + \"\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\" + \"\\uAB30-\\uAB5A\\uAB5B\\uAB5C-\\uAB5F\\uAB64-\\uAB65\\uABC0-\\uABE2\\uABE3-\\uABE4\" + \"\\uABE6-\\uABE7\\uABE9-\\uABEA\\uABEB\\uABEC\\uABF0-\\uABF9\\uAC00-\\uD7A3\" + \"\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uE000-\\uF8FF\\uF900-\\uFA6D\\uFA70-\\uFAD9\" + \"\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFF6F\\uFF70\" + \"\\uFF71-\\uFF9D\\uFF9E-\\uFF9F\\uFFA0-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\" + \"\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC\",\n  R: \"\\u0590\\u05BE\\u05C0\\u05C3\\u05C6\\u05C8-\\u05CF\\u05D0-\\u05EA\\u05EB-\\u05EF\" + \"\\u05F0-\\u05F2\\u05F3-\\u05F4\\u05F5-\\u05FF\\u07C0-\\u07C9\\u07CA-\\u07EA\" + \"\\u07F4-\\u07F5\\u07FA\\u07FB-\\u07FF\\u0800-\\u0815\\u081A\\u0824\\u0828\" + \"\\u082E-\\u082F\\u0830-\\u083E\\u083F\\u0840-\\u0858\\u085C-\\u085D\\u085E\" + \"\\u085F-\\u089F\\u200F\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB37\\uFB38-\\uFB3C\" + \"\\uFB3D\\uFB3E\\uFB3F\\uFB40-\\uFB41\\uFB42\\uFB43-\\uFB44\\uFB45\\uFB46-\\uFB4F\",\n  AL: \"\\u0608\\u060B\\u060D\\u061B\\u061C\\u061D\\u061E-\\u061F\\u0620-\\u063F\\u0640\" + \"\\u0641-\\u064A\\u066D\\u066E-\\u066F\\u0671-\\u06D3\\u06D4\\u06D5\\u06E5-\\u06E6\" + \"\\u06EE-\\u06EF\\u06FA-\\u06FC\\u06FD-\\u06FE\\u06FF\\u0700-\\u070D\\u070E\\u070F\" + \"\\u0710\\u0712-\\u072F\\u074B-\\u074C\\u074D-\\u07A5\\u07B1\\u07B2-\\u07BF\" + \"\\u08A0-\\u08B2\\u08B3-\\u08E3\\uFB50-\\uFBB1\\uFBB2-\\uFBC1\\uFBC2-\\uFBD2\" + \"\\uFBD3-\\uFD3D\\uFD40-\\uFD4F\\uFD50-\\uFD8F\\uFD90-\\uFD91\\uFD92-\\uFDC7\" + \"\\uFDC8-\\uFDCF\\uFDF0-\\uFDFB\\uFDFC\\uFDFE-\\uFDFF\\uFE70-\\uFE74\\uFE75\" + \"\\uFE76-\\uFEFC\\uFEFD-\\uFEFE\"\n};\nvar REGEX_STRONG=new RegExp('[' + RANGE_BY_BIDI_TYPE.L + RANGE_BY_BIDI_TYPE.R + RANGE_BY_BIDI_TYPE.AL + ']');\nvar REGEX_RTL=new RegExp('[' + RANGE_BY_BIDI_TYPE.R + RANGE_BY_BIDI_TYPE.AL + ']');\n\n\nfunction firstStrongChar(str){\n  var match=REGEX_STRONG.exec(str);\n  return match==null ? null:match[0];\n}\n\n\n\nfunction firstStrongCharDir(str){\n  var strongChar=firstStrongChar(str);\n\n  if(strongChar==null){\n    return UnicodeBidiDirection.NEUTRAL;\n  }\n\n  return REGEX_RTL.exec(strongChar) ? UnicodeBidiDirection.RTL:UnicodeBidiDirection.LTR;\n}\n\n\n\nfunction resolveBlockDir(str, fallback){\n  fallback=fallback||UnicodeBidiDirection.NEUTRAL;\n\n  if(!str.length){\n    return fallback;\n  }\n\n  var blockDir=firstStrongCharDir(str);\n  return blockDir===UnicodeBidiDirection.NEUTRAL ? fallback:blockDir;\n}\n\n\n\nfunction getDirection(str, strongFallback){\n  if(!strongFallback){\n    strongFallback=UnicodeBidiDirection.getGlobalDir();\n  }\n\n  !UnicodeBidiDirection.isStrong(strongFallback) ?  true ? invariant(false, 'Fallback direction must be a strong direction'):undefined:void 0;\n  return resolveBlockDir(str, strongFallback);\n}\n\n\n\nfunction isDirectionLTR(str, strongFallback){\n  return getDirection(str, strongFallback)===UnicodeBidiDirection.LTR;\n}\n\n\n\nfunction isDirectionRTL(str, strongFallback){\n  return getDirection(str, strongFallback)===UnicodeBidiDirection.RTL;\n}\n\nvar UnicodeBidi={\n  firstStrongChar: firstStrongChar,\n  firstStrongCharDir: firstStrongCharDir,\n  resolveBlockDir: resolveBlockDir,\n  getDirection: getDirection,\n  isDirectionLTR: isDirectionLTR,\n  isDirectionRTL: isDirectionRTL\n};\nmodule.exports=UnicodeBidi;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/UnicodeBidi.js?");
}),
"./node_modules/fbjs/lib/UnicodeBidiDirection.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar NEUTRAL='NEUTRAL'; // No strong direction\n\nvar LTR='LTR'; // Left-to-Right direction\n\nvar RTL='RTL'; // Right-to-Left direction\n\nvar globalDir=null; //==Helpers==\n\n\n\nfunction isStrong(dir){\n  return dir===LTR||dir===RTL;\n}\n\n\n\nfunction getHTMLDir(dir){\n  !isStrong(dir) ?  true ? invariant(false, '`dir` must be a strong direction to be converted to HTML Direction'):undefined:void 0;\n  return dir===LTR ? 'ltr':'rtl';\n}\n\n\n\nfunction getHTMLDirIfDifferent(dir, otherDir){\n  !isStrong(dir) ?  true ? invariant(false, '`dir` must be a strong direction to be converted to HTML Direction'):undefined:void 0;\n  !isStrong(otherDir) ?  true ? invariant(false, '`otherDir` must be a strong direction to be converted to HTML Direction'):undefined:void 0;\n  return dir===otherDir ? null:getHTMLDir(dir);\n} //==Global Direction==\n\n\n\n\nfunction setGlobalDir(dir){\n  globalDir=dir;\n}\n\n\n\nfunction initGlobalDir(){\n  setGlobalDir(LTR);\n}\n\n\n\nfunction getGlobalDir(){\n  if(!globalDir){\n    this.initGlobalDir();\n  }\n\n  !globalDir ?  true ? invariant(false, 'Global direction not set.'):undefined:void 0;\n  return globalDir;\n}\n\nvar UnicodeBidiDirection={\n  // Values\n  NEUTRAL: NEUTRAL,\n  LTR: LTR,\n  RTL: RTL,\n  // Helpers\n  isStrong: isStrong,\n  getHTMLDir: getHTMLDir,\n  getHTMLDirIfDifferent: getHTMLDirIfDifferent,\n  // Global Direction\n  setGlobalDir: setGlobalDir,\n  initGlobalDir: initGlobalDir,\n  getGlobalDir: getGlobalDir\n};\nmodule.exports=UnicodeBidiDirection;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/UnicodeBidiDirection.js?");
}),
"./node_modules/fbjs/lib/UnicodeBidiService.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar UnicodeBidi=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidi.js\");\n\nvar UnicodeBidiDirection=__webpack_require__( \"./node_modules/fbjs/lib/UnicodeBidiDirection.js\");\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar UnicodeBidiService=\n\nfunction (){\n  \n  function UnicodeBidiService(defaultDir){\n    _defineProperty(this, \"_defaultDir\", void 0);\n\n    _defineProperty(this, \"_lastDir\", void 0);\n\n    if(!defaultDir){\n      defaultDir=UnicodeBidiDirection.getGlobalDir();\n    }else{\n      !UnicodeBidiDirection.isStrong(defaultDir) ?  true ? invariant(false, 'Default direction must be a strong direction (LTR or RTL)'):undefined:void 0;\n    }\n\n    this._defaultDir=defaultDir;\n    this.reset();\n  }\n  \n\n\n  var _proto=UnicodeBidiService.prototype;\n\n  _proto.reset=function reset(){\n    this._lastDir=this._defaultDir;\n  };\n  \n\n\n  _proto.getDirection=function getDirection(str){\n    this._lastDir=UnicodeBidi.getDirection(str, this._lastDir);\n    return this._lastDir;\n  };\n\n  return UnicodeBidiService;\n}();\n\nmodule.exports=UnicodeBidiService;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/UnicodeBidiService.js?");
}),
"./node_modules/fbjs/lib/UnicodeUtils.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\"); // These two ranges are consecutive so anything in [HIGH_START, LOW_END] is a\n// surrogate code unit.\n\n\nvar SURROGATE_HIGH_START=0xD800;\nvar SURROGATE_HIGH_END=0xDBFF;\nvar SURROGATE_LOW_START=0xDC00;\nvar SURROGATE_LOW_END=0xDFFF;\nvar SURROGATE_UNITS_REGEX=/[\\uD800-\\uDFFF]/;\n\n\nfunction isCodeUnitInSurrogateRange(codeUnit){\n  return SURROGATE_HIGH_START <=codeUnit&&codeUnit <=SURROGATE_LOW_END;\n}\n\n\n\nfunction isSurrogatePair(str, index){\n  !(0 <=index&&index < str.length) ?  true ? invariant(false, 'isSurrogatePair: Invalid index %s for string length %s.', index, str.length):undefined:void 0;\n\n  if(index + 1===str.length){\n    return false;\n  }\n\n  var first=str.charCodeAt(index);\n  var second=str.charCodeAt(index + 1);\n  return SURROGATE_HIGH_START <=first&&first <=SURROGATE_HIGH_END&&SURROGATE_LOW_START <=second&&second <=SURROGATE_LOW_END;\n}\n\n\n\nfunction hasSurrogateUnit(str){\n  return SURROGATE_UNITS_REGEX.test(str);\n}\n\n\n\nfunction getUTF16Length(str, pos){\n  return 1 + isCodeUnitInSurrogateRange(str.charCodeAt(pos));\n}\n\n\n\nfunction strlen(str){\n  // Call the native functions if there's no surrogate char\n  if(!hasSurrogateUnit(str)){\n    return str.length;\n  }\n\n  var len=0;\n\n  for (var pos=0; pos < str.length; pos +=getUTF16Length(str, pos)){\n    len++;\n  }\n\n  return len;\n}\n\n\n\nfunction substr(str, start, length){\n  start=start||0;\n  length=length===undefined ? Infinity:length||0; // Call the native functions if there's no surrogate char\n\n  if(!hasSurrogateUnit(str)){\n    return str.substr(start, length);\n  } // Obvious cases\n\n\n  var size=str.length;\n\n  if(size <=0||start > size||length <=0){\n    return '';\n  } // Find the actual starting position\n\n\n  var posA=0;\n\n  if(start > 0){\n    for (; start > 0&&posA < size; start--){\n      posA +=getUTF16Length(str, posA);\n    }\n\n    if(posA >=size){\n      return '';\n    }\n  }else if(start < 0){\n    for (posA=size; start < 0&&0 < posA; start++){\n      posA -=getUTF16Length(str, posA - 1);\n    }\n\n    if(posA < 0){\n      posA=0;\n    }\n  } // Find the actual ending position\n\n\n  var posB=size;\n\n  if(length < size){\n    for (posB=posA; length > 0&&posB < size; length--){\n      posB +=getUTF16Length(str, posB);\n    }\n  }\n\n  return str.substring(posA, posB);\n}\n\n\n\nfunction substring(str, start, end){\n  start=start||0;\n  end=end===undefined ? Infinity:end||0;\n\n  if(start < 0){\n    start=0;\n  }\n\n  if(end < 0){\n    end=0;\n  }\n\n  var length=Math.abs(end - start);\n  start=start < end ? start:end;\n  return substr(str, start, length);\n}\n\n\n\nfunction getCodePoints(str){\n  var codePoints=[];\n\n  for (var pos=0; pos < str.length; pos +=getUTF16Length(str, pos)){\n    codePoints.push(str.codePointAt(pos));\n  }\n\n  return codePoints;\n}\n\nvar UnicodeUtils={\n  getCodePoints: getCodePoints,\n  getUTF16Length: getUTF16Length,\n  hasSurrogateUnit: hasSurrogateUnit,\n  isCodeUnitInSurrogateRange: isCodeUnitInSurrogateRange,\n  isSurrogatePair: isSurrogatePair,\n  strlen: strlen,\n  substring: substring,\n  substr: substr\n};\nmodule.exports=UnicodeUtils;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/UnicodeUtils.js?");
}),
"./node_modules/fbjs/lib/UserAgent.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar UserAgentData=__webpack_require__( \"./node_modules/fbjs/lib/UserAgentData.js\");\n\nvar VersionRange=__webpack_require__( \"./node_modules/fbjs/lib/VersionRange.js\");\n\nvar mapObject=__webpack_require__( \"./node_modules/fbjs/lib/mapObject.js\");\n\nvar memoizeStringOnly=__webpack_require__( \"./node_modules/fbjs/lib/memoizeStringOnly.js\");\n\n\n\nfunction compare(name, version, query, normalizer){\n  // check for exact match with no version\n  if(name===query){\n    return true;\n  } // check for non-matching names\n\n\n  if(!query.startsWith(name)){\n    return false;\n  } // full comparison with version\n\n\n  var range=query.slice(name.length);\n\n  if(version){\n    range=normalizer ? normalizer(range):range;\n    return VersionRange.contains(range, version);\n  }\n\n  return false;\n}\n\n\n\nfunction normalizePlatformVersion(version){\n  if(UserAgentData.platformName==='Windows'){\n    return version.replace(/^\\s*NT/, '');\n  }\n\n  return version;\n}\n\n\n\nvar UserAgent={\n  \n  isBrowser: function isBrowser(query){\n    return compare(UserAgentData.browserName, UserAgentData.browserFullVersion, query);\n  },\n\n  \n  isBrowserArchitecture: function isBrowserArchitecture(query){\n    return compare(UserAgentData.browserArchitecture, null, query);\n  },\n\n  \n  isDevice: function isDevice(query){\n    return compare(UserAgentData.deviceName, null, query);\n  },\n\n  \n  isEngine: function isEngine(query){\n    return compare(UserAgentData.engineName, UserAgentData.engineVersion, query);\n  },\n\n  \n  isPlatform: function isPlatform(query){\n    return compare(UserAgentData.platformName, UserAgentData.platformFullVersion, query, normalizePlatformVersion);\n  },\n\n  \n  isPlatformArchitecture: function isPlatformArchitecture(query){\n    return compare(UserAgentData.platformArchitecture, null, query);\n  }\n};\nmodule.exports=mapObject(UserAgent, memoizeStringOnly);\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/UserAgent.js?");
}),
"./node_modules/fbjs/lib/UserAgentData.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nvar UAParser=__webpack_require__( \"./node_modules/ua-parser-js/src/ua-parser.js\");\n\nvar UNKNOWN='Unknown';\nvar PLATFORM_MAP={\n  'Mac OS': 'Mac OS X'\n};\n\n\nfunction convertPlatformName(name){\n  return PLATFORM_MAP[name]||name;\n}\n\n\n\nfunction getBrowserVersion(version){\n  if(!version){\n    return {\n      major: '',\n      minor: ''\n    };\n  }\n\n  var parts=version.split('.');\n  return {\n    major: parts[0],\n    minor: parts[1]\n  };\n}\n\n\n\nvar parser=new UAParser();\nvar results=parser.getResult(); // Do some conversion first.\n\nvar browserVersionData=getBrowserVersion(results.browser.version);\nvar uaData={\n  browserArchitecture: results.cpu.architecture||UNKNOWN,\n  browserFullVersion: results.browser.version||UNKNOWN,\n  browserMinorVersion: browserVersionData.minor||UNKNOWN,\n  browserName: results.browser.name||UNKNOWN,\n  browserVersion: results.browser.major||UNKNOWN,\n  deviceName: results.device.model||UNKNOWN,\n  engineName: results.engine.name||UNKNOWN,\n  engineVersion: results.engine.version||UNKNOWN,\n  platformArchitecture: results.cpu.architecture||UNKNOWN,\n  platformName: convertPlatformName(results.os.name)||UNKNOWN,\n  platformVersion: results.os.version||UNKNOWN,\n  platformFullVersion: results.os.version||UNKNOWN\n};\nmodule.exports=uaData;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/UserAgentData.js?");
}),
"./node_modules/fbjs/lib/VersionRange.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\nvar componentRegex=/\\./;\nvar orRegex=/\\|\\|/;\nvar rangeRegex=/\\s+\\-\\s+/;\nvar modifierRegex=/^(<=|<|=|>=|~>|~|>|)?\\s*(.+)/;\nvar numericRegex=/^(\\d*)(.*)/;\n\n\nfunction checkOrExpression(range, version){\n  var expressions=range.split(orRegex);\n\n  if(expressions.length > 1){\n    return expressions.some(function (range){\n      return VersionRange.contains(range, version);\n    });\n  }else{\n    range=expressions[0].trim();\n    return checkRangeExpression(range, version);\n  }\n}\n\n\n\nfunction checkRangeExpression(range, version){\n  var expressions=range.split(rangeRegex);\n  !(expressions.length > 0&&expressions.length <=2) ?  true ? invariant(false, 'the \"-\" operator expects exactly 2 operands'):undefined:void 0;\n\n  if(expressions.length===1){\n    return checkSimpleExpression(expressions[0], version);\n  }else{\n    var startVersion=expressions[0],\n        endVersion=expressions[1];\n    !(isSimpleVersion(startVersion)&&isSimpleVersion(endVersion)) ?  true ? invariant(false, 'operands to the \"-\" operator must be simple (no modifiers)'):undefined:void 0;\n    return checkSimpleExpression('>=' + startVersion, version)&&checkSimpleExpression('<=' + endVersion, version);\n  }\n}\n\n\n\nfunction checkSimpleExpression(range, version){\n  range=range.trim();\n\n  if(range===''){\n    return true;\n  }\n\n  var versionComponents=version.split(componentRegex);\n\n  var _getModifierAndCompon=getModifierAndComponents(range),\n      modifier=_getModifierAndCompon.modifier,\n      rangeComponents=_getModifierAndCompon.rangeComponents;\n\n  switch (modifier){\n    case '<':\n      return checkLessThan(versionComponents, rangeComponents);\n\n    case '<=':\n      return checkLessThanOrEqual(versionComponents, rangeComponents);\n\n    case '>=':\n      return checkGreaterThanOrEqual(versionComponents, rangeComponents);\n\n    case '>':\n      return checkGreaterThan(versionComponents, rangeComponents);\n\n    case '~':\n    case '~>':\n      return checkApproximateVersion(versionComponents, rangeComponents);\n\n    default:\n      return checkEqual(versionComponents, rangeComponents);\n  }\n}\n\n\n\nfunction checkLessThan(a, b){\n  return compareComponents(a, b)===-1;\n}\n\n\n\nfunction checkLessThanOrEqual(a, b){\n  var result=compareComponents(a, b);\n  return result===-1||result===0;\n}\n\n\n\nfunction checkEqual(a, b){\n  return compareComponents(a, b)===0;\n}\n\n\n\nfunction checkGreaterThanOrEqual(a, b){\n  var result=compareComponents(a, b);\n  return result===1||result===0;\n}\n\n\n\nfunction checkGreaterThan(a, b){\n  return compareComponents(a, b)===1;\n}\n\n\n\nfunction checkApproximateVersion(a, b){\n  var lowerBound=b.slice();\n  var upperBound=b.slice();\n\n  if(upperBound.length > 1){\n    upperBound.pop();\n  }\n\n  var lastIndex=upperBound.length - 1;\n  var numeric=parseInt(upperBound[lastIndex], 10);\n\n  if(isNumber(numeric)){\n    upperBound[lastIndex]=numeric + 1 + '';\n  }\n\n  return checkGreaterThanOrEqual(a, lowerBound)&&checkLessThan(a, upperBound);\n}\n\n\n\nfunction getModifierAndComponents(range){\n  var rangeComponents=range.split(componentRegex);\n  var matches=rangeComponents[0].match(modifierRegex);\n  !matches ?  true ? invariant(false, 'expected regex to match but it did not'):undefined:void 0;\n  return {\n    modifier: matches[1],\n    rangeComponents: [matches[2]].concat(rangeComponents.slice(1))\n  };\n}\n\n\n\nfunction isNumber(number){\n  return !isNaN(number)&&isFinite(number);\n}\n\n\n\nfunction isSimpleVersion(range){\n  return !getModifierAndComponents(range).modifier;\n}\n\n\n\nfunction zeroPad(array, length){\n  for (var i=array.length; i < length; i++){\n    array[i]='0';\n  }\n}\n\n\n\nfunction normalizeVersions(a, b){\n  a=a.slice();\n  b=b.slice();\n  zeroPad(a, b.length); // mark \"x\" and \"*\" components as equal\n\n  for (var i=0; i < b.length; i++){\n    var matches=b[i].match(/^[x*]$/i);\n\n    if(matches){\n      b[i]=a[i]='0'; // final \"*\" greedily zeros all remaining components\n\n      if(matches[0]==='*'&&i===b.length - 1){\n        for (var j=i; j < a.length; j++){\n          a[j]='0';\n        }\n      }\n    }\n  }\n\n  zeroPad(b, a.length);\n  return [a, b];\n}\n\n\n\nfunction compareNumeric(a, b){\n  var aPrefix=a.match(numericRegex)[1];\n  var bPrefix=b.match(numericRegex)[1];\n  var aNumeric=parseInt(aPrefix, 10);\n  var bNumeric=parseInt(bPrefix, 10);\n\n  if(isNumber(aNumeric)&&isNumber(bNumeric)&&aNumeric!==bNumeric){\n    return compare(aNumeric, bNumeric);\n  }else{\n    return compare(a, b);\n  }\n}\n\n\n\nfunction compare(a, b){\n  !(typeof a===typeof b) ?  true ? invariant(false, '\"a\" and \"b\" must be of the same type'):undefined:void 0;\n\n  if(a > b){\n    return 1;\n  }else if(a < b){\n    return -1;\n  }else{\n    return 0;\n  }\n}\n\n\n\nfunction compareComponents(a, b){\n  var _normalizeVersions=normalizeVersions(a, b),\n      aNormalized=_normalizeVersions[0],\n      bNormalized=_normalizeVersions[1];\n\n  for (var i=0; i < bNormalized.length; i++){\n    var result=compareNumeric(aNormalized[i], bNormalized[i]);\n\n    if(result){\n      return result;\n    }\n  }\n\n  return 0;\n}\n\nvar VersionRange={\n  \n  contains: function contains(range, version){\n    return checkOrExpression(range.trim(), version.trim());\n  }\n};\nmodule.exports=VersionRange;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/VersionRange.js?");
}),
"./node_modules/fbjs/lib/camelize.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _hyphenPattern=/-(.)/g;\n\n\nfunction camelize(string){\n  return string.replace(_hyphenPattern, function (_, character){\n    return character.toUpperCase();\n  });\n}\n\nmodule.exports=camelize;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/camelize.js?");
}),
"./node_modules/fbjs/lib/containsNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar isTextNode=__webpack_require__( \"./node_modules/fbjs/lib/isTextNode.js\");\n\n\n\n\n\nfunction containsNode(outerNode, innerNode){\n  if(!outerNode||!innerNode){\n    return false;\n  }else if(outerNode===innerNode){\n    return true;\n  }else if(isTextNode(outerNode)){\n    return false;\n  }else if(isTextNode(innerNode)){\n    return containsNode(outerNode, innerNode.parentNode);\n  }else if('contains' in outerNode){\n    return outerNode.contains(innerNode);\n  }else if(outerNode.compareDocumentPosition){\n    return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n  }else{\n    return false;\n  }\n}\n\nmodule.exports=containsNode;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/containsNode.js?");
}),
"./node_modules/fbjs/lib/createArrayFromMixed.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar invariant=__webpack_require__( \"./node_modules/fbjs/lib/invariant.js\");\n\n\n\nfunction toArray(obj){\n  var length=obj.length; // Some browsers builtin objects can report typeof 'function' (e.g. NodeList\n  // in old versions of Safari).\n\n  !(!Array.isArray(obj)&&(typeof obj==='object'||typeof obj==='function')) ?  true ? invariant(false, 'toArray: Array-like object expected'):undefined:void 0;\n  !(typeof length==='number') ?  true ? invariant(false, 'toArray: Object needs a length property'):undefined:void 0;\n  !(length===0||length - 1 in obj) ?  true ? invariant(false, 'toArray: Object should have keys for indices'):undefined:void 0;\n  !(typeof obj.callee!=='function') ?  true ? invariant(false, 'toArray: Object can\\'t be `arguments`. Use rest params ' + '(function(...args){}) or Array.from() instead.'):undefined:void 0; // Old IE doesn't give collections access to hasOwnProperty. Assume inputs\n  // without method will throw during the slice call and skip straight to the\n  // fallback.\n\n  if(obj.hasOwnProperty){\n    try {\n      return Array.prototype.slice.call(obj);\n    } catch (e){// IE < 9 does not support Array#slice on collections objects\n    }\n  } // Fall back to copying key by key. This assumes all keys have a value,\n  // so will not preserve sparsely populated inputs.\n\n\n  var ret=Array(length);\n\n  for (var ii=0; ii < length; ii++){\n    ret[ii]=obj[ii];\n  }\n\n  return ret;\n}\n\n\n\nfunction hasArrayNature(obj){\n  return (// not null/false\n    !!obj&&(// arrays are objects, NodeLists are functions in Safari\n    typeof obj=='object'||typeof obj=='function')&&// quacks like an array\n    'length' in obj&&// not window\n    !('setInterval' in obj)&&// no DOM node should be considered an array-like\n    // a 'select' element has 'length' and 'item' properties on IE8\n    typeof obj.nodeType!='number'&&(// a real array\n    Array.isArray(obj)||// arguments\n    'callee' in obj||// HTMLCollection/NodeList\n    'item' in obj)\n);\n}\n\n\n\nfunction createArrayFromMixed(obj){\n  if(!hasArrayNature(obj)){\n    return [obj];\n  }else if(Array.isArray(obj)){\n    return obj.slice();\n  }else{\n    return toArray(obj);\n  }\n}\n\nmodule.exports=createArrayFromMixed;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/createArrayFromMixed.js?");
}),
"./node_modules/fbjs/lib/cx.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nfunction cx(classNames){\n  if(typeof classNames=='object'){\n    return Object.keys(classNames).filter(function (className){\n      return classNames[className];\n    }).map(replace).join(' ');\n  }\n\n  return Array.prototype.map.call(arguments, replace).join(' ');\n}\n\nfunction replace(str){\n  return str.replace(/\\//g, '-');\n}\n\nmodule.exports=cx;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/cx.js?");
}),
"./node_modules/fbjs/lib/emptyFunction.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction makeEmptyFunction(arg){\n  return function (){\n    return arg;\n  };\n}\n\n\n\nvar emptyFunction=function emptyFunction(){};\n\nemptyFunction.thatReturns=makeEmptyFunction;\nemptyFunction.thatReturnsFalse=makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue=makeEmptyFunction(true);\nemptyFunction.thatReturnsNull=makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis=function (){\n  return this;\n};\n\nemptyFunction.thatReturnsArgument=function (arg){\n  return arg;\n};\n\nmodule.exports=emptyFunction;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/emptyFunction.js?");
}),
"./node_modules/fbjs/lib/getActiveElement.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\n\n\nfunction getActiveElement(doc)\n\n{\n  doc=doc||(typeof document!=='undefined' ? document:undefined);\n\n  if(typeof doc==='undefined'){\n    return null;\n  }\n\n  try {\n    return doc.activeElement||doc.body;\n  } catch (e){\n    return doc.body;\n  }\n}\n\nmodule.exports=getActiveElement;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getActiveElement.js?");
}),
"./node_modules/fbjs/lib/getDocumentScrollElement.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar isWebkit=typeof navigator!=='undefined'&&navigator.userAgent.indexOf('AppleWebKit') > -1;\n\n\nfunction getDocumentScrollElement(doc){\n  doc=doc||document;\n\n  if(doc.scrollingElement){\n    return doc.scrollingElement;\n  }\n\n  return !isWebkit&&doc.compatMode==='CSS1Compat' ? doc.documentElement:doc.body;\n}\n\nmodule.exports=getDocumentScrollElement;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getDocumentScrollElement.js?");
}),
"./node_modules/fbjs/lib/getElementPosition.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getElementRect=__webpack_require__( \"./node_modules/fbjs/lib/getElementRect.js\");\n\n\n\nfunction getElementPosition(element){\n  var rect=getElementRect(element);\n  return {\n    x: rect.left,\n    y: rect.top,\n    width: rect.right - rect.left,\n    height: rect.bottom - rect.top\n  };\n}\n\nmodule.exports=getElementPosition;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getElementPosition.js?");
}),
"./node_modules/fbjs/lib/getElementRect.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar containsNode=__webpack_require__( \"./node_modules/fbjs/lib/containsNode.js\");\n\n\n\nfunction getElementRect(elem){\n  var docElem=elem.ownerDocument.documentElement; // FF 2, Safari 3 and Opera 9.5- do not support getBoundingClientRect().\n  // IE9- will throw if the element is not in the document.\n\n  if(!('getBoundingClientRect' in elem)||!containsNode(docElem, elem)){\n    return {\n      left: 0,\n      right: 0,\n      top: 0,\n      bottom: 0\n    };\n  } // Subtracts clientTop/Left because IE8- added a 2px border to the\n  // <html> element (see http://fburl.com/1493213). IE 7 in\n  // Quicksmode does not report clientLeft/clientTop so there\n  // will be an unaccounted offset of 2px when in quirksmode\n\n\n  var rect=elem.getBoundingClientRect();\n  return {\n    left: Math.round(rect.left) - docElem.clientLeft,\n    right: Math.round(rect.right) - docElem.clientLeft,\n    top: Math.round(rect.top) - docElem.clientTop,\n    bottom: Math.round(rect.bottom) - docElem.clientTop\n  };\n}\n\nmodule.exports=getElementRect;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getElementRect.js?");
}),
"./node_modules/fbjs/lib/getScrollPosition.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar getDocumentScrollElement=__webpack_require__( \"./node_modules/fbjs/lib/getDocumentScrollElement.js\");\n\nvar getUnboundedScrollPosition=__webpack_require__( \"./node_modules/fbjs/lib/getUnboundedScrollPosition.js\");\n\n\n\nfunction getScrollPosition(scrollable){\n  var documentScrollElement=getDocumentScrollElement(scrollable.ownerDocument||scrollable.document);\n\n  if(scrollable.Window&&scrollable instanceof scrollable.Window){\n    scrollable=documentScrollElement;\n  }\n\n  var scrollPosition=getUnboundedScrollPosition(scrollable);\n  var viewport=scrollable===documentScrollElement ? scrollable.ownerDocument.documentElement:scrollable;\n  var xMax=scrollable.scrollWidth - viewport.clientWidth;\n  var yMax=scrollable.scrollHeight - viewport.clientHeight;\n  scrollPosition.x=Math.max(0, Math.min(scrollPosition.x, xMax));\n  scrollPosition.y=Math.max(0, Math.min(scrollPosition.y, yMax));\n  return scrollPosition;\n}\n\nmodule.exports=getScrollPosition;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getScrollPosition.js?");
}),
"./node_modules/fbjs/lib/getStyleProperty.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar camelize=__webpack_require__( \"./node_modules/fbjs/lib/camelize.js\");\n\nvar hyphenate=__webpack_require__( \"./node_modules/fbjs/lib/hyphenate.js\");\n\nfunction asString(value)\n\n{\n  return value==null ? value:String(value);\n}\n\nfunction getStyleProperty(\n\nnode,\n\nname)\n\n{\n  var computedStyle; // W3C Standard\n\n  if(window.getComputedStyle){\n    // In certain cases such as within an iframe in FF3, this returns null.\n    computedStyle=window.getComputedStyle(node, null);\n\n    if(computedStyle){\n      return asString(computedStyle.getPropertyValue(hyphenate(name)));\n    }\n  } // Safari\n\n\n  if(document.defaultView&&document.defaultView.getComputedStyle){\n    computedStyle=document.defaultView.getComputedStyle(node, null); // A Safari bug causes this to return null for `display: none` elements.\n\n    if(computedStyle){\n      return asString(computedStyle.getPropertyValue(hyphenate(name)));\n    }\n\n    if(name==='display'){\n      return 'none';\n    }\n  } // Internet Explorer\n\n\n  if(node.currentStyle){\n    if(name==='float'){\n      return asString(node.currentStyle.cssFloat||node.currentStyle.styleFloat);\n    }\n\n    return asString(node.currentStyle[camelize(name)]);\n  }\n\n  return asString(node.style&&node.style[camelize(name)]);\n}\n\nmodule.exports=getStyleProperty;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getStyleProperty.js?");
}),
"./node_modules/fbjs/lib/getUnboundedScrollPosition.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction getUnboundedScrollPosition(scrollable){\n  if(scrollable.Window&&scrollable instanceof scrollable.Window){\n    return {\n      x: scrollable.pageXOffset||scrollable.document.documentElement.scrollLeft,\n      y: scrollable.pageYOffset||scrollable.document.documentElement.scrollTop\n    };\n  }\n\n  return {\n    x: scrollable.scrollLeft,\n    y: scrollable.scrollTop\n  };\n}\n\nmodule.exports=getUnboundedScrollPosition;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getUnboundedScrollPosition.js?");
}),
"./node_modules/fbjs/lib/getViewportDimensions.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nfunction getViewportWidth(){\n  var width;\n\n  if(document.documentElement){\n    width=document.documentElement.clientWidth;\n  }\n\n  if(!width&&document.body){\n    width=document.body.clientWidth;\n  }\n\n  return width||0;\n}\n\nfunction getViewportHeight(){\n  var height;\n\n  if(document.documentElement){\n    height=document.documentElement.clientHeight;\n  }\n\n  if(!height&&document.body){\n    height=document.body.clientHeight;\n  }\n\n  return height||0;\n}\n\n\n\nfunction getViewportDimensions(){\n  return {\n    width: window.innerWidth||getViewportWidth(),\n    height: window.innerHeight||getViewportHeight()\n  };\n}\n\n\n\ngetViewportDimensions.withoutScrollbars=function (){\n  return {\n    width: getViewportWidth(),\n    height: getViewportHeight()\n  };\n};\n\nmodule.exports=getViewportDimensions;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/getViewportDimensions.js?");
}),
"./node_modules/fbjs/lib/hyphenate.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar _uppercasePattern=/([A-Z])/g;\n\n\nfunction hyphenate(string){\n  return string.replace(_uppercasePattern, '-$1').toLowerCase();\n}\n\nmodule.exports=hyphenate;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/hyphenate.js?");
}),
"./node_modules/fbjs/lib/invariant.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar validateFormat=true ? function (format){\n  if(format===undefined){\n    throw new Error('invariant(...): Second argument must be a string.');\n  }\n}:undefined;\n\n\nfunction invariant(condition, format){\n  for (var _len=arguments.length, args=new Array(_len > 2 ? _len - 2:0), _key=2; _key < _len; _key++){\n    args[_key - 2]=arguments[_key];\n  }\n\n  validateFormat(format);\n\n  if(!condition){\n    var error;\n\n    if(format===undefined){\n      error=new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n    }else{\n      var argIndex=0;\n      error=new Error(format.replace(/%s/g, function (){\n        return String(args[argIndex++]);\n      }));\n      error.name='Invariant Violation';\n    }\n\n    error.framesToPop=1; // Skip invariant's own stack frame.\n\n    throw error;\n  }\n}\n\nmodule.exports=invariant;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/invariant.js?");
}),
"./node_modules/fbjs/lib/isNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\nfunction isNode(object){\n  var doc=object ? object.ownerDocument||object:document;\n  var defaultView=doc.defaultView||window;\n  return !!(object&&(typeof defaultView.Node==='function' ? object instanceof defaultView.Node:typeof object==='object'&&typeof object.nodeType==='number'&&typeof object.nodeName==='string'));\n}\n\nmodule.exports=isNode;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/isNode.js?");
}),
"./node_modules/fbjs/lib/isTextNode.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar isNode=__webpack_require__( \"./node_modules/fbjs/lib/isNode.js\");\n\n\n\nfunction isTextNode(object){\n  return isNode(object)&&object.nodeType==3;\n}\n\nmodule.exports=isTextNode;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/isTextNode.js?");
}),
"./node_modules/fbjs/lib/joinClasses.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction joinClasses(className){\n  var newClassName=className||'';\n  var argLength=arguments.length;\n\n  if(argLength > 1){\n    for (var index=1; index < argLength; index++){\n      var nextClass=arguments[index];\n\n      if(nextClass){\n        newClassName=(newClassName ? newClassName + ' ':'') + nextClass;\n      }\n    }\n  }\n\n  return newClassName;\n}\n\nmodule.exports=joinClasses;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/joinClasses.js?");
}),
"./node_modules/fbjs/lib/mapObject.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar hasOwnProperty=Object.prototype.hasOwnProperty;\n\n\nfunction mapObject(object, callback, context){\n  if(!object){\n    return null;\n  }\n\n  var result={};\n\n  for (var name in object){\n    if(hasOwnProperty.call(object, name)){\n      result[name]=callback.call(context, object[name], name, object);\n    }\n  }\n\n  return result;\n}\n\nmodule.exports=mapObject;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/mapObject.js?");
}),
"./node_modules/fbjs/lib/memoizeStringOnly.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nfunction memoizeStringOnly(callback){\n  var cache={};\n  return function (string){\n    if(!cache.hasOwnProperty(string)){\n      cache[string]=callback.call(this, string);\n    }\n\n    return cache[string];\n  };\n}\n\nmodule.exports=memoizeStringOnly;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/memoizeStringOnly.js?");
}),
"./node_modules/fbjs/lib/nullthrows.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar nullthrows=function nullthrows(x){\n  if(x!=null){\n    return x;\n  }\n\n  throw new Error(\"Got unexpected null or undefined\");\n};\n\nmodule.exports=nullthrows;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/nullthrows.js?");
}),
"./node_modules/fbjs/lib/setImmediate.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("(function(global){\n // setimmediate adds setImmediate to the global. We want to make sure we export\n// the actual function.\n\n__webpack_require__( \"./node_modules/setimmediate/setImmediate.js\");\n\nmodule.exports=global.setImmediate;\n}.call(this, __webpack_require__( \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/setImmediate.js?");
}),
"./node_modules/fbjs/lib/warning.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\nvar emptyFunction=__webpack_require__( \"./node_modules/fbjs/lib/emptyFunction.js\");\n\n\n\nfunction printWarning(format){\n  for (var _len=arguments.length, args=new Array(_len > 1 ? _len - 1:0), _key=1; _key < _len; _key++){\n    args[_key - 1]=arguments[_key];\n  }\n\n  var argIndex=0;\n  var message='Warning: ' + format.replace(/%s/g, function (){\n    return args[argIndex++];\n  });\n\n  if(typeof console!=='undefined'){\n    console.error(message);\n  }\n\n  try {\n    // --- Welcome to debugging React ---\n    // This error was thrown as a convenience so that you can use this stack\n    // to find the callsite that caused this warning to fire.\n    throw new Error(message);\n  } catch (x){}\n}\n\nvar warning=true ? function (condition, format){\n  if(format===undefined){\n    throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n  }\n\n  if(!condition){\n    for (var _len2=arguments.length, args=new Array(_len2 > 2 ? _len2 - 2:0), _key2=2; _key2 < _len2; _key2++){\n      args[_key2 - 2]=arguments[_key2];\n    }\n\n    printWarning.apply(void 0, [format].concat(args));\n  }\n}:undefined;\nmodule.exports=warning;\n\n//# sourceURL=webpack:///./node_modules/fbjs/lib/warning.js?");
}),
"./node_modules/immutable/dist/immutable.js":
(function(module, exports, __webpack_require__){
eval("\n\n(function (global, factory){\n   true ? module.exports=factory() :\n  undefined;\n}(this, function (){ 'use strict';var SLICE$0=Array.prototype.slice;\n\n  function createClass(ctor, superClass){\n    if(superClass){\n      ctor.prototype=Object.create(superClass.prototype);\n    }\n    ctor.prototype.constructor=ctor;\n  }\n\n  function Iterable(value){\n      return isIterable(value) ? value:Seq(value);\n    }\n\n\n  createClass(KeyedIterable, Iterable);\n    function KeyedIterable(value){\n      return isKeyed(value) ? value:KeyedSeq(value);\n    }\n\n\n  createClass(IndexedIterable, Iterable);\n    function IndexedIterable(value){\n      return isIndexed(value) ? value:IndexedSeq(value);\n    }\n\n\n  createClass(SetIterable, Iterable);\n    function SetIterable(value){\n      return isIterable(value)&&!isAssociative(value) ? value:SetSeq(value);\n    }\n\n\n\n  function isIterable(maybeIterable){\n    return !!(maybeIterable&&maybeIterable[IS_ITERABLE_SENTINEL]);\n  }\n\n  function isKeyed(maybeKeyed){\n    return !!(maybeKeyed&&maybeKeyed[IS_KEYED_SENTINEL]);\n  }\n\n  function isIndexed(maybeIndexed){\n    return !!(maybeIndexed&&maybeIndexed[IS_INDEXED_SENTINEL]);\n  }\n\n  function isAssociative(maybeAssociative){\n    return isKeyed(maybeAssociative)||isIndexed(maybeAssociative);\n  }\n\n  function isOrdered(maybeOrdered){\n    return !!(maybeOrdered&&maybeOrdered[IS_ORDERED_SENTINEL]);\n  }\n\n  Iterable.isIterable=isIterable;\n  Iterable.isKeyed=isKeyed;\n  Iterable.isIndexed=isIndexed;\n  Iterable.isAssociative=isAssociative;\n  Iterable.isOrdered=isOrdered;\n\n  Iterable.Keyed=KeyedIterable;\n  Iterable.Indexed=IndexedIterable;\n  Iterable.Set=SetIterable;\n\n\n  var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  // Used for setting prototype methods that IE8 chokes on.\n  var DELETE='delete';\n\n  // Constants describing the size of trie nodes.\n  var SHIFT=5; // Resulted in best performance after ______?\n  var SIZE=1 << SHIFT;\n  var MASK=SIZE - 1;\n\n  // A consistent shared value representing \"not set\" which equals nothing other\n  // than itself, and nothing that could be provided externally.\n  var NOT_SET={};\n\n  // Boolean references, Rough equivalent of `bool &`.\n  var CHANGE_LENGTH={ value: false };\n  var DID_ALTER={ value: false };\n\n  function MakeRef(ref){\n    ref.value=false;\n    return ref;\n  }\n\n  function SetRef(ref){\n    ref&&(ref.value=true);\n  }\n\n  // A function which returns a value representing an \"owner\" for transient writes\n  // to tries. The return value will only ever equal itself, and will not equal\n  // the return of any subsequent call of this function.\n  function OwnerID(){}\n\n  // http://jsperf.com/copy-array-inline\n  function arrCopy(arr, offset){\n    offset=offset||0;\n    var len=Math.max(0, arr.length - offset);\n    var newArr=new Array(len);\n    for (var ii=0; ii < len; ii++){\n      newArr[ii]=arr[ii + offset];\n    }\n    return newArr;\n  }\n\n  function ensureSize(iter){\n    if(iter.size===undefined){\n      iter.size=iter.__iterate(returnTrue);\n    }\n    return iter.size;\n  }\n\n  function wrapIndex(iter, index){\n    // This implements \"is array index\" which the ECMAString spec defines as:\n    //\n    //     A String property name P is an array index if and only if\n    //     ToString(ToUint32(P)) is equal to P and ToUint32(P) is not equal\n    //     to 2^32−1.\n    //\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-array-exotic-objects\n    if(typeof index!=='number'){\n      var uint32Index=index >>> 0; // N >>> 0 is shorthand for ToUint32\n      if('' + uint32Index!==index||uint32Index===4294967295){\n        return NaN;\n      }\n      index=uint32Index;\n    }\n    return index < 0 ? ensureSize(iter) + index:index;\n  }\n\n  function returnTrue(){\n    return true;\n  }\n\n  function wholeSlice(begin, end, size){\n    return (begin===0||(size!==undefined&&begin <=-size))&&\n      (end===undefined||(size!==undefined&&end >=size));\n  }\n\n  function resolveBegin(begin, size){\n    return resolveIndex(begin, size, 0);\n  }\n\n  function resolveEnd(end, size){\n    return resolveIndex(end, size, size);\n  }\n\n  function resolveIndex(index, size, defaultIndex){\n    return index===undefined ?\n      defaultIndex :\n      index < 0 ?\n        Math.max(0, size + index) :\n        size===undefined ?\n          index :\n          Math.min(size, index);\n  }\n\n  \n\n  var ITERATE_KEYS=0;\n  var ITERATE_VALUES=1;\n  var ITERATE_ENTRIES=2;\n\n  var REAL_ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL='@@iterator';\n\n  var ITERATOR_SYMBOL=REAL_ITERATOR_SYMBOL||FAUX_ITERATOR_SYMBOL;\n\n\n  function Iterator(next){\n      this.next=next;\n    }\n\n    Iterator.prototype.toString=function(){\n      return '[Iterator]';\n    };\n\n\n  Iterator.KEYS=ITERATE_KEYS;\n  Iterator.VALUES=ITERATE_VALUES;\n  Iterator.ENTRIES=ITERATE_ENTRIES;\n\n  Iterator.prototype.inspect=\n  Iterator.prototype.toSource=function (){ return this.toString(); }\n  Iterator.prototype[ITERATOR_SYMBOL]=function (){\n    return this;\n  };\n\n\n  function iteratorValue(type, k, v, iteratorResult){\n    var value=type===0 ? k:type===1 ? v:[k, v];\n    iteratorResult ? (iteratorResult.value=value):(iteratorResult={\n      value: value, done: false\n    });\n    return iteratorResult;\n  }\n\n  function iteratorDone(){\n    return { value: undefined, done: true };\n  }\n\n  function hasIterator(maybeIterable){\n    return !!getIteratorFn(maybeIterable);\n  }\n\n  function isIterator(maybeIterator){\n    return maybeIterator&&typeof maybeIterator.next==='function';\n  }\n\n  function getIterator(iterable){\n    var iteratorFn=getIteratorFn(iterable);\n    return iteratorFn&&iteratorFn.call(iterable);\n  }\n\n  function getIteratorFn(iterable){\n    var iteratorFn=iterable&&(\n      (REAL_ITERATOR_SYMBOL&&iterable[REAL_ITERATOR_SYMBOL])||\n      iterable[FAUX_ITERATOR_SYMBOL]\n);\n    if(typeof iteratorFn==='function'){\n      return iteratorFn;\n    }\n  }\n\n  function isArrayLike(value){\n    return value&&typeof value.length==='number';\n  }\n\n  createClass(Seq, Iterable);\n    function Seq(value){\n      return value===null||value===undefined ? emptySequence() :\n        isIterable(value) ? value.toSeq():seqFromValue(value);\n    }\n\n    Seq.of=function(){\n      return Seq(arguments);\n    };\n\n    Seq.prototype.toSeq=function(){\n      return this;\n    };\n\n    Seq.prototype.toString=function(){\n      return this.__toString('Seq {', '}');\n    };\n\n    Seq.prototype.cacheResult=function(){\n      if(!this._cache&&this.__iterateUncached){\n        this._cache=this.entrySeq().toArray();\n        this.size=this._cache.length;\n      }\n      return this;\n    };\n\n    // abstract __iterateUncached(fn, reverse)\n\n    Seq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, true);\n    };\n\n    // abstract __iteratorUncached(type, reverse)\n\n    Seq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, true);\n    };\n\n\n\n  createClass(KeyedSeq, Seq);\n    function KeyedSeq(value){\n      return value===null||value===undefined ?\n        emptySequence().toKeyedSeq() :\n        isIterable(value) ?\n          (isKeyed(value) ? value.toSeq():value.fromEntrySeq()) :\n          keyedSeqFromValue(value);\n    }\n\n    KeyedSeq.prototype.toKeyedSeq=function(){\n      return this;\n    };\n\n\n\n  createClass(IndexedSeq, Seq);\n    function IndexedSeq(value){\n      return value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value.toIndexedSeq();\n    }\n\n    IndexedSeq.of=function(){\n      return IndexedSeq(arguments);\n    };\n\n    IndexedSeq.prototype.toIndexedSeq=function(){\n      return this;\n    };\n\n    IndexedSeq.prototype.toString=function(){\n      return this.__toString('Seq [', ']');\n    };\n\n    IndexedSeq.prototype.__iterate=function(fn, reverse){\n      return seqIterate(this, fn, reverse, false);\n    };\n\n    IndexedSeq.prototype.__iterator=function(type, reverse){\n      return seqIterator(this, type, reverse, false);\n    };\n\n\n\n  createClass(SetSeq, Seq);\n    function SetSeq(value){\n      return (\n        value===null||value===undefined ? emptySequence() :\n        !isIterable(value) ? indexedSeqFromValue(value) :\n        isKeyed(value) ? value.entrySeq():value\n).toSetSeq();\n    }\n\n    SetSeq.of=function(){\n      return SetSeq(arguments);\n    };\n\n    SetSeq.prototype.toSetSeq=function(){\n      return this;\n    };\n\n\n\n  Seq.isSeq=isSeq;\n  Seq.Keyed=KeyedSeq;\n  Seq.Set=SetSeq;\n  Seq.Indexed=IndexedSeq;\n\n  var IS_SEQ_SENTINEL='@@__IMMUTABLE_SEQ__@@';\n\n  Seq.prototype[IS_SEQ_SENTINEL]=true;\n\n\n\n  createClass(ArraySeq, IndexedSeq);\n    function ArraySeq(array){\n      this._array=array;\n      this.size=array.length;\n    }\n\n    ArraySeq.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._array[wrapIndex(this, index)]:notSetValue;\n    };\n\n    ArraySeq.prototype.__iterate=function(fn, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(array[reverse ? maxIndex - ii:ii], ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ArraySeq.prototype.__iterator=function(type, reverse){\n      var array=this._array;\n      var maxIndex=array.length - 1;\n      var ii=0;\n      return new Iterator(function() \n        {return ii > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, ii, array[reverse ? maxIndex - ii++:ii++])}\n);\n    };\n\n\n\n  createClass(ObjectSeq, KeyedSeq);\n    function ObjectSeq(object){\n      var keys=Object.keys(object);\n      this._object=object;\n      this._keys=keys;\n      this.size=keys.length;\n    }\n\n    ObjectSeq.prototype.get=function(key, notSetValue){\n      if(notSetValue!==undefined&&!this.has(key)){\n        return notSetValue;\n      }\n      return this._object[key];\n    };\n\n    ObjectSeq.prototype.has=function(key){\n      return this._object.hasOwnProperty(key);\n    };\n\n    ObjectSeq.prototype.__iterate=function(fn, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        if(fn(object[key], key, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    ObjectSeq.prototype.__iterator=function(type, reverse){\n      var object=this._object;\n      var keys=this._keys;\n      var maxIndex=keys.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var key=keys[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, key, object[key]);\n      });\n    };\n\n  ObjectSeq.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(IterableSeq, IndexedSeq);\n    function IterableSeq(iterable){\n      this._iterable=iterable;\n      this.size=iterable.length||iterable.size;\n    }\n\n    IterableSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      var iterations=0;\n      if(isIterator(iterator)){\n        var step;\n        while (!(step=iterator.next()).done){\n          if(fn(step.value, iterations++, this)===false){\n            break;\n          }\n        }\n      }\n      return iterations;\n    };\n\n    IterableSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterable=this._iterable;\n      var iterator=getIterator(iterable);\n      if(!isIterator(iterator)){\n        return new Iterator(iteratorDone);\n      }\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step:iteratorValue(type, iterations++, step.value);\n      });\n    };\n\n\n\n  createClass(IteratorSeq, IndexedSeq);\n    function IteratorSeq(iterator){\n      this._iterator=iterator;\n      this._iteratorCache=[];\n    }\n\n    IteratorSeq.prototype.__iterateUncached=function(fn, reverse){\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      while (iterations < cache.length){\n        if(fn(cache[iterations], iterations++, this)===false){\n          return iterations;\n        }\n      }\n      var step;\n      while (!(step=iterator.next()).done){\n        var val=step.value;\n        cache[iterations]=val;\n        if(fn(val, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n\n    IteratorSeq.prototype.__iteratorUncached=function(type, reverse){\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=this._iterator;\n      var cache=this._iteratorCache;\n      var iterations=0;\n      return new Iterator(function(){\n        if(iterations >=cache.length){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          cache[iterations]=step.value;\n        }\n        return iteratorValue(type, iterations, cache[iterations++]);\n      });\n    };\n\n\n\n\n  // # pragma Helper functions\n\n  function isSeq(maybeSeq){\n    return !!(maybeSeq&&maybeSeq[IS_SEQ_SENTINEL]);\n  }\n\n  var EMPTY_SEQ;\n\n  function emptySequence(){\n    return EMPTY_SEQ||(EMPTY_SEQ=new ArraySeq([]));\n  }\n\n  function keyedSeqFromValue(value){\n    var seq=\n      Array.isArray(value) ? new ArraySeq(value).fromEntrySeq() :\n      isIterator(value) ? new IteratorSeq(value).fromEntrySeq() :\n      hasIterator(value) ? new IterableSeq(value).fromEntrySeq() :\n      typeof value==='object' ? new ObjectSeq(value) :\n      undefined;\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of [k, v] entries, '+\n        'or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function indexedSeqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value);\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values: ' + value\n);\n    }\n    return seq;\n  }\n\n  function seqFromValue(value){\n    var seq=maybeIndexedSeqFromValue(value)||\n      (typeof value==='object'&&new ObjectSeq(value));\n    if(!seq){\n      throw new TypeError(\n        'Expected Array or iterable object of values, or keyed object: ' + value\n);\n    }\n    return seq;\n  }\n\n  function maybeIndexedSeqFromValue(value){\n    return (\n      isArrayLike(value) ? new ArraySeq(value) :\n      isIterator(value) ? new IteratorSeq(value) :\n      hasIterator(value) ? new IterableSeq(value) :\n      undefined\n);\n  }\n\n  function seqIterate(seq, fn, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      for (var ii=0; ii <=maxIndex; ii++){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        if(fn(entry[1], useKeys ? entry[0]:ii, seq)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    }\n    return seq.__iterateUncached(fn, reverse);\n  }\n\n  function seqIterator(seq, type, reverse, useKeys){\n    var cache=seq._cache;\n    if(cache){\n      var maxIndex=cache.length - 1;\n      var ii=0;\n      return new Iterator(function(){\n        var entry=cache[reverse ? maxIndex - ii:ii];\n        return ii++ > maxIndex ?\n          iteratorDone() :\n          iteratorValue(type, useKeys ? entry[0]:ii - 1, entry[1]);\n      });\n    }\n    return seq.__iteratorUncached(type, reverse);\n  }\n\n  function fromJS(json, converter){\n    return converter ?\n      fromJSWith(converter, json, '', {'': json}) :\n      fromJSDefault(json);\n  }\n\n  function fromJSWith(converter, json, key, parentJSON){\n    if(Array.isArray(json)){\n      return converter.call(parentJSON, key, IndexedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    if(isPlainObj(json)){\n      return converter.call(parentJSON, key, KeyedSeq(json).map(function(v, k){return fromJSWith(converter, v, k, json)}));\n    }\n    return json;\n  }\n\n  function fromJSDefault(json){\n    if(Array.isArray(json)){\n      return IndexedSeq(json).map(fromJSDefault).toList();\n    }\n    if(isPlainObj(json)){\n      return KeyedSeq(json).map(fromJSDefault).toMap();\n    }\n    return json;\n  }\n\n  function isPlainObj(value){\n    return value&&(value.constructor===Object||value.constructor===undefined);\n  }\n\n  \n  function is(valueA, valueB){\n    if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n      return true;\n    }\n    if(!valueA||!valueB){\n      return false;\n    }\n    if(typeof valueA.valueOf==='function'&&\n        typeof valueB.valueOf==='function'){\n      valueA=valueA.valueOf();\n      valueB=valueB.valueOf();\n      if(valueA===valueB||(valueA!==valueA&&valueB!==valueB)){\n        return true;\n      }\n      if(!valueA||!valueB){\n        return false;\n      }\n    }\n    if(typeof valueA.equals==='function'&&\n        typeof valueB.equals==='function'&&\n        valueA.equals(valueB)){\n      return true;\n    }\n    return false;\n  }\n\n  function deepEqual(a, b){\n    if(a===b){\n      return true;\n    }\n\n    if(\n      !isIterable(b)||\n      a.size!==undefined&&b.size!==undefined&&a.size!==b.size||\n      a.__hash!==undefined&&b.__hash!==undefined&&a.__hash!==b.__hash||\n      isKeyed(a)!==isKeyed(b)||\n      isIndexed(a)!==isIndexed(b)||\n      isOrdered(a)!==isOrdered(b)\n){\n      return false;\n    }\n\n    if(a.size===0&&b.size===0){\n      return true;\n    }\n\n    var notAssociative = !isAssociative(a);\n\n    if(isOrdered(a)){\n      var entries=a.entries();\n      return b.every(function(v, k){\n        var entry=entries.next().value;\n        return entry&&is(entry[1], v)&&(notAssociative||is(entry[0], k));\n      })&&entries.next().done;\n    }\n\n    var flipped=false;\n\n    if(a.size===undefined){\n      if(b.size===undefined){\n        if(typeof a.cacheResult==='function'){\n          a.cacheResult();\n        }\n      }else{\n        flipped=true;\n        var _=a;\n        a=b;\n        b=_;\n      }\n    }\n\n    var allEqual=true;\n    var bSize=b.__iterate(function(v, k){\n      if(notAssociative ? !a.has(v) :\n          flipped ? !is(v, a.get(k, NOT_SET)):!is(a.get(k, NOT_SET), v)){\n        allEqual=false;\n        return false;\n      }\n    });\n\n    return allEqual&&a.size===bSize;\n  }\n\n  createClass(Repeat, IndexedSeq);\n\n    function Repeat(value, times){\n      if(!(this instanceof Repeat)){\n        return new Repeat(value, times);\n      }\n      this._value=value;\n      this.size=times===undefined ? Infinity:Math.max(0, times);\n      if(this.size===0){\n        if(EMPTY_REPEAT){\n          return EMPTY_REPEAT;\n        }\n        EMPTY_REPEAT=this;\n      }\n    }\n\n    Repeat.prototype.toString=function(){\n      if(this.size===0){\n        return 'Repeat []';\n      }\n      return 'Repeat [ ' + this._value + ' ' + this.size + ' times ]';\n    };\n\n    Repeat.prototype.get=function(index, notSetValue){\n      return this.has(index) ? this._value:notSetValue;\n    };\n\n    Repeat.prototype.includes=function(searchValue){\n      return is(this._value, searchValue);\n    };\n\n    Repeat.prototype.slice=function(begin, end){\n      var size=this.size;\n      return wholeSlice(begin, end, size) ? this :\n        new Repeat(this._value, resolveEnd(end, size) - resolveBegin(begin, size));\n    };\n\n    Repeat.prototype.reverse=function(){\n      return this;\n    };\n\n    Repeat.prototype.indexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return 0;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.lastIndexOf=function(searchValue){\n      if(is(this._value, searchValue)){\n        return this.size;\n      }\n      return -1;\n    };\n\n    Repeat.prototype.__iterate=function(fn, reverse){\n      for (var ii=0; ii < this.size; ii++){\n        if(fn(this._value, ii, this)===false){\n          return ii + 1;\n        }\n      }\n      return ii;\n    };\n\n    Repeat.prototype.__iterator=function(type, reverse){var this$0=this;\n      var ii=0;\n      return new Iterator(function() \n        {return ii < this$0.size ? iteratorValue(type, ii++, this$0._value):iteratorDone()}\n);\n    };\n\n    Repeat.prototype.equals=function(other){\n      return other instanceof Repeat ?\n        is(this._value, other._value) :\n        deepEqual(other);\n    };\n\n\n  var EMPTY_REPEAT;\n\n  function invariant(condition, error){\n    if(!condition) throw new Error(error);\n  }\n\n  createClass(Range, IndexedSeq);\n\n    function Range(start, end, step){\n      if(!(this instanceof Range)){\n        return new Range(start, end, step);\n      }\n      invariant(step!==0, 'Cannot step a Range by 0');\n      start=start||0;\n      if(end===undefined){\n        end=Infinity;\n      }\n      step=step===undefined ? 1:Math.abs(step);\n      if(end < start){\n        step=-step;\n      }\n      this._start=start;\n      this._end=end;\n      this._step=step;\n      this.size=Math.max(0, Math.ceil((end - start) / step - 1) + 1);\n      if(this.size===0){\n        if(EMPTY_RANGE){\n          return EMPTY_RANGE;\n        }\n        EMPTY_RANGE=this;\n      }\n    }\n\n    Range.prototype.toString=function(){\n      if(this.size===0){\n        return 'Range []';\n      }\n      return 'Range [ ' +\n        this._start + '...' + this._end +\n        (this._step!==1 ? ' by ' + this._step:'') +\n      ' ]';\n    };\n\n    Range.prototype.get=function(index, notSetValue){\n      return this.has(index) ?\n        this._start + wrapIndex(this, index) * this._step :\n        notSetValue;\n    };\n\n    Range.prototype.includes=function(searchValue){\n      var possibleIndex=(searchValue - this._start) / this._step;\n      return possibleIndex >=0&&\n        possibleIndex < this.size&&\n        possibleIndex===Math.floor(possibleIndex);\n    };\n\n    Range.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      begin=resolveBegin(begin, this.size);\n      end=resolveEnd(end, this.size);\n      if(end <=begin){\n        return new Range(0, 0);\n      }\n      return new Range(this.get(begin, this._end), this.get(end, this._end), this._step);\n    };\n\n    Range.prototype.indexOf=function(searchValue){\n      var offsetValue=searchValue - this._start;\n      if(offsetValue % this._step===0){\n        var index=offsetValue / this._step;\n        if(index >=0&&index < this.size){\n          return index\n        }\n      }\n      return -1;\n    };\n\n    Range.prototype.lastIndexOf=function(searchValue){\n      return this.indexOf(searchValue);\n    };\n\n    Range.prototype.__iterate=function(fn, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      for (var ii=0; ii <=maxIndex; ii++){\n        if(fn(value, ii, this)===false){\n          return ii + 1;\n        }\n        value +=reverse ? -step:step;\n      }\n      return ii;\n    };\n\n    Range.prototype.__iterator=function(type, reverse){\n      var maxIndex=this.size - 1;\n      var step=this._step;\n      var value=reverse ? this._start + maxIndex * step:this._start;\n      var ii=0;\n      return new Iterator(function(){\n        var v=value;\n        value +=reverse ? -step:step;\n        return ii > maxIndex ? iteratorDone():iteratorValue(type, ii++, v);\n      });\n    };\n\n    Range.prototype.equals=function(other){\n      return other instanceof Range ?\n        this._start===other._start&&\n        this._end===other._end&&\n        this._step===other._step :\n        deepEqual(this, other);\n    };\n\n\n  var EMPTY_RANGE;\n\n  createClass(Collection, Iterable);\n    function Collection(){\n      throw TypeError('Abstract');\n    }\n\n\n  createClass(KeyedCollection, Collection);function KeyedCollection(){}\n\n  createClass(IndexedCollection, Collection);function IndexedCollection(){}\n\n  createClass(SetCollection, Collection);function SetCollection(){}\n\n\n  Collection.Keyed=KeyedCollection;\n  Collection.Indexed=IndexedCollection;\n  Collection.Set=SetCollection;\n\n  var imul=\n    typeof Math.imul==='function'&&Math.imul(0xffffffff, 2)===-2 ?\n    Math.imul :\n    function imul(a, b){\n      a=a | 0; // int\n      b=b | 0; // int\n      var c=a & 0xffff;\n      var d=b & 0xffff;\n      // Shift by 0 fixes the sign on the high part.\n      return (c * d) + ((((a >>> 16) * d + c * (b >>> 16)) << 16) >>> 0) | 0; // int\n    };\n\n  // v8 has an optimization for storing 31-bit signed numbers.\n  // Values which have either 00 or 11 as the high order bits qualify.\n  // This function drops the highest order bit in a signed number, maintaining\n  // the sign bit.\n  function smi(i32){\n    return ((i32 >>> 1) & 0x40000000) | (i32 & 0xBFFFFFFF);\n  }\n\n  function hash(o){\n    if(o===false||o===null||o===undefined){\n      return 0;\n    }\n    if(typeof o.valueOf==='function'){\n      o=o.valueOf();\n      if(o===false||o===null||o===undefined){\n        return 0;\n      }\n    }\n    if(o===true){\n      return 1;\n    }\n    var type=typeof o;\n    if(type==='number'){\n      if(o!==o||o===Infinity){\n        return 0;\n      }\n      var h=o | 0;\n      if(h!==o){\n        h ^=o * 0xFFFFFFFF;\n      }\n      while (o > 0xFFFFFFFF){\n        o /=0xFFFFFFFF;\n        h ^=o;\n      }\n      return smi(h);\n    }\n    if(type==='string'){\n      return o.length > STRING_HASH_CACHE_MIN_STRLEN ? cachedHashString(o):hashString(o);\n    }\n    if(typeof o.hashCode==='function'){\n      return o.hashCode();\n    }\n    if(type==='object'){\n      return hashJSObj(o);\n    }\n    if(typeof o.toString==='function'){\n      return hashString(o.toString());\n    }\n    throw new Error('Value type ' + type + ' cannot be hashed.');\n  }\n\n  function cachedHashString(string){\n    var hash=stringHashCache[string];\n    if(hash===undefined){\n      hash=hashString(string);\n      if(STRING_HASH_CACHE_SIZE===STRING_HASH_CACHE_MAX_SIZE){\n        STRING_HASH_CACHE_SIZE=0;\n        stringHashCache={};\n      }\n      STRING_HASH_CACHE_SIZE++;\n      stringHashCache[string]=hash;\n    }\n    return hash;\n  }\n\n  // http://jsperf.com/hashing-strings\n  function hashString(string){\n    // This is the hash from JVM\n    // The hash code for a string is computed as\n    // s[0] * 31 ^ (n - 1) + s[1] * 31 ^ (n - 2) + ... + s[n - 1],\n    // where s[i] is the ith character of the string and n is the length of\n    // the string. We \"mod\" the result to make it between 0 (inclusive) and 2^31\n    // (exclusive) by dropping high bits.\n    var hash=0;\n    for (var ii=0; ii < string.length; ii++){\n      hash=31 * hash + string.charCodeAt(ii) | 0;\n    }\n    return smi(hash);\n  }\n\n  function hashJSObj(obj){\n    var hash;\n    if(usingWeakMap){\n      hash=weakMap.get(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=obj[UID_HASH_KEY];\n    if(hash!==undefined){\n      return hash;\n    }\n\n    if(!canDefineProperty){\n      hash=obj.propertyIsEnumerable&&obj.propertyIsEnumerable[UID_HASH_KEY];\n      if(hash!==undefined){\n        return hash;\n      }\n\n      hash=getIENodeHash(obj);\n      if(hash!==undefined){\n        return hash;\n      }\n    }\n\n    hash=++objHashUID;\n    if(objHashUID & 0x40000000){\n      objHashUID=0;\n    }\n\n    if(usingWeakMap){\n      weakMap.set(obj, hash);\n    }else if(isExtensible!==undefined&&isExtensible(obj)===false){\n      throw new Error('Non-extensible objects are not allowed as keys.');\n    }else if(canDefineProperty){\n      Object.defineProperty(obj, UID_HASH_KEY, {\n        'enumerable': false,\n        'configurable': false,\n        'writable': false,\n        'value': hash\n      });\n    }else if(obj.propertyIsEnumerable!==undefined&&\n               obj.propertyIsEnumerable===obj.constructor.prototype.propertyIsEnumerable){\n      // Since we can't define a non-enumerable property on the object\n      // we'll hijack one of the less-used non-enumerable properties to\n      // save our hash on it. Since this is a function it will not show up in\n      // `JSON.stringify` which is what we want.\n      obj.propertyIsEnumerable=function(){\n        return this.constructor.prototype.propertyIsEnumerable.apply(this, arguments);\n      };\n      obj.propertyIsEnumerable[UID_HASH_KEY]=hash;\n    }else if(obj.nodeType!==undefined){\n      // At this point we couldn't get the IE `uniqueID` to use as a hash\n      // and we couldn't use a non-enumerable property to exploit the\n      // dontEnum bug so we simply add the `UID_HASH_KEY` on the node\n      // itself.\n      obj[UID_HASH_KEY]=hash;\n    }else{\n      throw new Error('Unable to set a non-enumerable property on object.');\n    }\n\n    return hash;\n  }\n\n  // Get references to ES5 object methods.\n  var isExtensible=Object.isExtensible;\n\n  // True if Object.defineProperty works as expected. IE8 fails this test.\n  var canDefineProperty=(function(){\n    try {\n      Object.defineProperty({}, '@', {});\n      return true;\n    } catch (e){\n      return false;\n    }\n  }());\n\n  // IE has a `uniqueID` property on DOM nodes. We can construct the hash from it\n  // and avoid memory leaks from the IE cloneNode bug.\n  function getIENodeHash(node){\n    if(node&&node.nodeType > 0){\n      switch (node.nodeType){\n        case 1: // Element\n          return node.uniqueID;\n        case 9: // Document\n          return node.documentElement&&node.documentElement.uniqueID;\n      }\n    }\n  }\n\n  // If possible, use a WeakMap.\n  var usingWeakMap=typeof WeakMap==='function';\n  var weakMap;\n  if(usingWeakMap){\n    weakMap=new WeakMap();\n  }\n\n  var objHashUID=0;\n\n  var UID_HASH_KEY='__immutablehash__';\n  if(typeof Symbol==='function'){\n    UID_HASH_KEY=Symbol(UID_HASH_KEY);\n  }\n\n  var STRING_HASH_CACHE_MIN_STRLEN=16;\n  var STRING_HASH_CACHE_MAX_SIZE=255;\n  var STRING_HASH_CACHE_SIZE=0;\n  var stringHashCache={};\n\n  function assertNotInfinite(size){\n    invariant(\n      size!==Infinity,\n      'Cannot perform this action with an infinite size.'\n);\n  }\n\n  createClass(Map, KeyedCollection);\n\n    // @pragma Construction\n\n    function Map(value){\n      return value===null||value===undefined ? emptyMap() :\n        isMap(value)&&!isOrdered(value) ? value :\n        emptyMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    Map.of=function(){var keyValues=SLICE$0.call(arguments, 0);\n      return emptyMap().withMutations(function(map){\n        for (var i=0; i < keyValues.length; i +=2){\n          if(i + 1 >=keyValues.length){\n            throw new Error('Missing value for key: ' + keyValues[i]);\n          }\n          map.set(keyValues[i], keyValues[i + 1]);\n        }\n      });\n    };\n\n    Map.prototype.toString=function(){\n      return this.__toString('Map {', '}');\n    };\n\n    // @pragma Access\n\n    Map.prototype.get=function(k, notSetValue){\n      return this._root ?\n        this._root.get(0, undefined, k, notSetValue) :\n        notSetValue;\n    };\n\n    // @pragma Modification\n\n    Map.prototype.set=function(k, v){\n      return updateMap(this, k, v);\n    };\n\n    Map.prototype.setIn=function(keyPath, v){\n      return this.updateIn(keyPath, NOT_SET, function(){return v});\n    };\n\n    Map.prototype.remove=function(k){\n      return updateMap(this, k, NOT_SET);\n    };\n\n    Map.prototype.deleteIn=function(keyPath){\n      return this.updateIn(keyPath, function(){return NOT_SET});\n    };\n\n    Map.prototype.update=function(k, notSetValue, updater){\n      return arguments.length===1 ?\n        k(this) :\n        this.updateIn([k], notSetValue, updater);\n    };\n\n    Map.prototype.updateIn=function(keyPath, notSetValue, updater){\n      if(!updater){\n        updater=notSetValue;\n        notSetValue=undefined;\n      }\n      var updatedValue=updateInDeepMap(\n        this,\n        forceIterator(keyPath),\n        notSetValue,\n        updater\n);\n      return updatedValue===NOT_SET ? undefined:updatedValue;\n    };\n\n    Map.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._root=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyMap();\n    };\n\n    // @pragma Composition\n\n    Map.prototype.merge=function(){\n      return mergeIntoMapWith(this, undefined, arguments);\n    };\n\n    Map.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, merger, iters);\n    };\n\n    Map.prototype.mergeIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.merge==='function' ?\n          m.merge.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.mergeDeep=function(){\n      return mergeIntoMapWith(this, deepMerger, arguments);\n    };\n\n    Map.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoMapWith(this, deepMergerWith(merger), iters);\n    };\n\n    Map.prototype.mergeDeepIn=function(keyPath){var iters=SLICE$0.call(arguments, 1);\n      return this.updateIn(\n        keyPath,\n        emptyMap(),\n        function(m){return typeof m.mergeDeep==='function' ?\n          m.mergeDeep.apply(m, iters) :\n          iters[iters.length - 1]}\n);\n    };\n\n    Map.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator));\n    };\n\n    Map.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedMap(sortFactory(this, comparator, mapper));\n    };\n\n    // @pragma Mutability\n\n    Map.prototype.withMutations=function(fn){\n      var mutable=this.asMutable();\n      fn(mutable);\n      return mutable.wasAltered() ? mutable.__ensureOwner(this.__ownerID):this;\n    };\n\n    Map.prototype.asMutable=function(){\n      return this.__ownerID ? this:this.__ensureOwner(new OwnerID());\n    };\n\n    Map.prototype.asImmutable=function(){\n      return this.__ensureOwner();\n    };\n\n    Map.prototype.wasAltered=function(){\n      return this.__altered;\n    };\n\n    Map.prototype.__iterator=function(type, reverse){\n      return new MapIterator(this, type, reverse);\n    };\n\n    Map.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      this._root&&this._root.iterate(function(entry){\n        iterations++;\n        return fn(entry[1], entry[0], this$0);\n      }, reverse);\n      return iterations;\n    };\n\n    Map.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeMap(this.size, this._root, ownerID, this.__hash);\n    };\n\n\n  function isMap(maybeMap){\n    return !!(maybeMap&&maybeMap[IS_MAP_SENTINEL]);\n  }\n\n  Map.isMap=isMap;\n\n  var IS_MAP_SENTINEL='@@__IMMUTABLE_MAP__@@';\n\n  var MapPrototype=Map.prototype;\n  MapPrototype[IS_MAP_SENTINEL]=true;\n  MapPrototype[DELETE]=MapPrototype.remove;\n  MapPrototype.removeIn=MapPrototype.deleteIn;\n\n\n  // #pragma Trie Nodes\n\n\n\n    function ArrayMapNode(ownerID, entries){\n      this.ownerID=ownerID;\n      this.entries=entries;\n    }\n\n    ArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    ArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&entries.length===1){\n        return; // undefined\n      }\n\n      if(!exists&&!removed&&entries.length >=MAX_ARRAY_MAP_SIZE){\n        return createNodes(ownerID, entries, key, value);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new ArrayMapNode(ownerID, newEntries);\n    };\n\n\n\n\n    function BitmapIndexedNode(ownerID, bitmap, nodes){\n      this.ownerID=ownerID;\n      this.bitmap=bitmap;\n      this.nodes=nodes;\n    }\n\n    BitmapIndexedNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var bit=(1 << ((shift===0 ? keyHash:keyHash >>> shift) & MASK));\n      var bitmap=this.bitmap;\n      return (bitmap & bit)===0 ? notSetValue :\n        this.nodes[popCount(bitmap & (bit - 1))].get(shift + SHIFT, keyHash, key, notSetValue);\n    };\n\n    BitmapIndexedNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var keyHashFrag=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var bit=1 << keyHashFrag;\n      var bitmap=this.bitmap;\n      var exists=(bitmap & bit)!==0;\n\n      if(!exists&&value===NOT_SET){\n        return this;\n      }\n\n      var idx=popCount(bitmap & (bit - 1));\n      var nodes=this.nodes;\n      var node=exists ? nodes[idx]:undefined;\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n\n      if(newNode===node){\n        return this;\n      }\n\n      if(!exists&&newNode&&nodes.length >=MAX_BITMAP_INDEXED_SIZE){\n        return expandNodes(ownerID, nodes, bitmap, keyHashFrag, newNode);\n      }\n\n      if(exists&&!newNode&&nodes.length===2&&isLeafNode(nodes[idx ^ 1])){\n        return nodes[idx ^ 1];\n      }\n\n      if(exists&&newNode&&nodes.length===1&&isLeafNode(newNode)){\n        return newNode;\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newBitmap=exists ? newNode ? bitmap:bitmap ^ bit:bitmap | bit;\n      var newNodes=exists ? newNode ?\n        setIn(nodes, idx, newNode, isEditable) :\n        spliceOut(nodes, idx, isEditable) :\n        spliceIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.bitmap=newBitmap;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new BitmapIndexedNode(ownerID, newBitmap, newNodes);\n    };\n\n\n\n\n    function HashArrayMapNode(ownerID, count, nodes){\n      this.ownerID=ownerID;\n      this.count=count;\n      this.nodes=nodes;\n    }\n\n    HashArrayMapNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var node=this.nodes[idx];\n      return node ? node.get(shift + SHIFT, keyHash, key, notSetValue):notSetValue;\n    };\n\n    HashArrayMapNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n      var idx=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n      var removed=value===NOT_SET;\n      var nodes=this.nodes;\n      var node=nodes[idx];\n\n      if(removed&&!node){\n        return this;\n      }\n\n      var newNode=updateNode(node, ownerID, shift + SHIFT, keyHash, key, value, didChangeSize, didAlter);\n      if(newNode===node){\n        return this;\n      }\n\n      var newCount=this.count;\n      if(!node){\n        newCount++;\n      }else if(!newNode){\n        newCount--;\n        if(newCount < MIN_HASH_ARRAY_MAP_SIZE){\n          return packNodes(ownerID, nodes, newCount, idx);\n        }\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newNodes=setIn(nodes, idx, newNode, isEditable);\n\n      if(isEditable){\n        this.count=newCount;\n        this.nodes=newNodes;\n        return this;\n      }\n\n      return new HashArrayMapNode(ownerID, newCount, newNodes);\n    };\n\n\n\n\n    function HashCollisionNode(ownerID, keyHash, entries){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entries=entries;\n    }\n\n    HashCollisionNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      var entries=this.entries;\n      for (var ii=0, len=entries.length; ii < len; ii++){\n        if(is(key, entries[ii][0])){\n          return entries[ii][1];\n        }\n      }\n      return notSetValue;\n    };\n\n    HashCollisionNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      if(keyHash===undefined){\n        keyHash=hash(key);\n      }\n\n      var removed=value===NOT_SET;\n\n      if(keyHash!==this.keyHash){\n        if(removed){\n          return this;\n        }\n        SetRef(didAlter);\n        SetRef(didChangeSize);\n        return mergeIntoNode(this, ownerID, shift, keyHash, [key, value]);\n      }\n\n      var entries=this.entries;\n      var idx=0;\n      for (var len=entries.length; idx < len; idx++){\n        if(is(key, entries[idx][0])){\n          break;\n        }\n      }\n      var exists=idx < len;\n\n      if(exists ? entries[idx][1]===value:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n      (removed||!exists)&&SetRef(didChangeSize);\n\n      if(removed&&len===2){\n        return new ValueNode(ownerID, this.keyHash, entries[idx ^ 1]);\n      }\n\n      var isEditable=ownerID&&ownerID===this.ownerID;\n      var newEntries=isEditable ? entries:arrCopy(entries);\n\n      if(exists){\n        if(removed){\n          idx===len - 1 ? newEntries.pop():(newEntries[idx]=newEntries.pop());\n        }else{\n          newEntries[idx]=[key, value];\n        }\n      }else{\n        newEntries.push([key, value]);\n      }\n\n      if(isEditable){\n        this.entries=newEntries;\n        return this;\n      }\n\n      return new HashCollisionNode(ownerID, this.keyHash, newEntries);\n    };\n\n\n\n\n    function ValueNode(ownerID, keyHash, entry){\n      this.ownerID=ownerID;\n      this.keyHash=keyHash;\n      this.entry=entry;\n    }\n\n    ValueNode.prototype.get=function(shift, keyHash, key, notSetValue){\n      return is(key, this.entry[0]) ? this.entry[1]:notSetValue;\n    };\n\n    ValueNode.prototype.update=function(ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n      var removed=value===NOT_SET;\n      var keyMatch=is(key, this.entry[0]);\n      if(keyMatch ? value===this.entry[1]:removed){\n        return this;\n      }\n\n      SetRef(didAlter);\n\n      if(removed){\n        SetRef(didChangeSize);\n        return; // undefined\n      }\n\n      if(keyMatch){\n        if(ownerID&&ownerID===this.ownerID){\n          this.entry[1]=value;\n          return this;\n        }\n        return new ValueNode(ownerID, this.keyHash, [key, value]);\n      }\n\n      SetRef(didChangeSize);\n      return mergeIntoNode(this, ownerID, shift, hash(key), [key, value]);\n    };\n\n\n\n  // #pragma Iterators\n\n  ArrayMapNode.prototype.iterate=\n  HashCollisionNode.prototype.iterate=function (fn, reverse){\n    var entries=this.entries;\n    for (var ii=0, maxIndex=entries.length - 1; ii <=maxIndex; ii++){\n      if(fn(entries[reverse ? maxIndex - ii:ii])===false){\n        return false;\n      }\n    }\n  }\n\n  BitmapIndexedNode.prototype.iterate=\n  HashArrayMapNode.prototype.iterate=function (fn, reverse){\n    var nodes=this.nodes;\n    for (var ii=0, maxIndex=nodes.length - 1; ii <=maxIndex; ii++){\n      var node=nodes[reverse ? maxIndex - ii:ii];\n      if(node&&node.iterate(fn, reverse)===false){\n        return false;\n      }\n    }\n  }\n\n  ValueNode.prototype.iterate=function (fn, reverse){\n    return fn(this.entry);\n  }\n\n  createClass(MapIterator, Iterator);\n\n    function MapIterator(map, type, reverse){\n      this._type=type;\n      this._reverse=reverse;\n      this._stack=map._root&&mapIteratorFrame(map._root);\n    }\n\n    MapIterator.prototype.next=function(){\n      var type=this._type;\n      var stack=this._stack;\n      while (stack){\n        var node=stack.node;\n        var index=stack.index++;\n        var maxIndex;\n        if(node.entry){\n          if(index===0){\n            return mapIteratorValue(type, node.entry);\n          }\n        }else if(node.entries){\n          maxIndex=node.entries.length - 1;\n          if(index <=maxIndex){\n            return mapIteratorValue(type, node.entries[this._reverse ? maxIndex - index:index]);\n          }\n        }else{\n          maxIndex=node.nodes.length - 1;\n          if(index <=maxIndex){\n            var subNode=node.nodes[this._reverse ? maxIndex - index:index];\n            if(subNode){\n              if(subNode.entry){\n                return mapIteratorValue(type, subNode.entry);\n              }\n              stack=this._stack=mapIteratorFrame(subNode, stack);\n            }\n            continue;\n          }\n        }\n        stack=this._stack=this._stack.__prev;\n      }\n      return iteratorDone();\n    };\n\n\n  function mapIteratorValue(type, entry){\n    return iteratorValue(type, entry[0], entry[1]);\n  }\n\n  function mapIteratorFrame(node, prev){\n    return {\n      node: node,\n      index: 0,\n      __prev: prev\n    };\n  }\n\n  function makeMap(size, root, ownerID, hash){\n    var map=Object.create(MapPrototype);\n    map.size=size;\n    map._root=root;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_MAP;\n  function emptyMap(){\n    return EMPTY_MAP||(EMPTY_MAP=makeMap(0));\n  }\n\n  function updateMap(map, k, v){\n    var newRoot;\n    var newSize;\n    if(!map._root){\n      if(v===NOT_SET){\n        return map;\n      }\n      newSize=1;\n      newRoot=new ArrayMapNode(map.__ownerID, [[k, v]]);\n    }else{\n      var didChangeSize=MakeRef(CHANGE_LENGTH);\n      var didAlter=MakeRef(DID_ALTER);\n      newRoot=updateNode(map._root, map.__ownerID, 0, undefined, k, v, didChangeSize, didAlter);\n      if(!didAlter.value){\n        return map;\n      }\n      newSize=map.size + (didChangeSize.value ? v===NOT_SET ? -1:1 : 0);\n    }\n    if(map.__ownerID){\n      map.size=newSize;\n      map._root=newRoot;\n      map.__hash=undefined;\n      map.__altered=true;\n      return map;\n    }\n    return newRoot ? makeMap(newSize, newRoot):emptyMap();\n  }\n\n  function updateNode(node, ownerID, shift, keyHash, key, value, didChangeSize, didAlter){\n    if(!node){\n      if(value===NOT_SET){\n        return node;\n      }\n      SetRef(didAlter);\n      SetRef(didChangeSize);\n      return new ValueNode(ownerID, keyHash, [key, value]);\n    }\n    return node.update(ownerID, shift, keyHash, key, value, didChangeSize, didAlter);\n  }\n\n  function isLeafNode(node){\n    return node.constructor===ValueNode||node.constructor===HashCollisionNode;\n  }\n\n  function mergeIntoNode(node, ownerID, shift, keyHash, entry){\n    if(node.keyHash===keyHash){\n      return new HashCollisionNode(ownerID, keyHash, [node.entry, entry]);\n    }\n\n    var idx1=(shift===0 ? node.keyHash:node.keyHash >>> shift) & MASK;\n    var idx2=(shift===0 ? keyHash:keyHash >>> shift) & MASK;\n\n    var newNode;\n    var nodes=idx1===idx2 ?\n      [mergeIntoNode(node, ownerID, shift + SHIFT, keyHash, entry)] :\n      ((newNode=new ValueNode(ownerID, keyHash, entry)), idx1 < idx2 ? [node, newNode]:[newNode, node]);\n\n    return new BitmapIndexedNode(ownerID, (1 << idx1) | (1 << idx2), nodes);\n  }\n\n  function createNodes(ownerID, entries, key, value){\n    if(!ownerID){\n      ownerID=new OwnerID();\n    }\n    var node=new ValueNode(ownerID, hash(key), [key, value]);\n    for (var ii=0; ii < entries.length; ii++){\n      var entry=entries[ii];\n      node=node.update(ownerID, 0, undefined, entry[0], entry[1]);\n    }\n    return node;\n  }\n\n  function packNodes(ownerID, nodes, count, excluding){\n    var bitmap=0;\n    var packedII=0;\n    var packedNodes=new Array(count);\n    for (var ii=0, bit=1, len=nodes.length; ii < len; ii++, bit <<=1){\n      var node=nodes[ii];\n      if(node!==undefined&&ii!==excluding){\n        bitmap |=bit;\n        packedNodes[packedII++]=node;\n      }\n    }\n    return new BitmapIndexedNode(ownerID, bitmap, packedNodes);\n  }\n\n  function expandNodes(ownerID, nodes, bitmap, including, node){\n    var count=0;\n    var expandedNodes=new Array(SIZE);\n    for (var ii=0; bitmap!==0; ii++, bitmap >>>=1){\n      expandedNodes[ii]=bitmap & 1 ? nodes[count++]:undefined;\n    }\n    expandedNodes[including]=node;\n    return new HashArrayMapNode(ownerID, count + 1, expandedNodes);\n  }\n\n  function mergeIntoMapWith(map, merger, iterables){\n    var iters=[];\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=KeyedIterable(value);\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    return mergeIntoCollectionWith(map, merger, iters);\n  }\n\n  function deepMerger(existing, value, key){\n    return existing&&existing.mergeDeep&&isIterable(value) ?\n      existing.mergeDeep(value) :\n      is(existing, value) ? existing:value;\n  }\n\n  function deepMergerWith(merger){\n    return function(existing, value, key){\n      if(existing&&existing.mergeDeepWith&&isIterable(value)){\n        return existing.mergeDeepWith(merger, value);\n      }\n      var nextValue=merger(existing, value, key);\n      return is(existing, nextValue) ? existing:nextValue;\n    };\n  }\n\n  function mergeIntoCollectionWith(collection, merger, iters){\n    iters=iters.filter(function(x){return x.size!==0});\n    if(iters.length===0){\n      return collection;\n    }\n    if(collection.size===0&&!collection.__ownerID&&iters.length===1){\n      return collection.constructor(iters[0]);\n    }\n    return collection.withMutations(function(collection){\n      var mergeIntoMap=merger ?\n        function(value, key){\n          collection.update(key, NOT_SET, function(existing)\n            {return existing===NOT_SET ? value:merger(existing, value, key)}\n);\n        } :\n        function(value, key){\n          collection.set(key, value);\n        }\n      for (var ii=0; ii < iters.length; ii++){\n        iters[ii].forEach(mergeIntoMap);\n      }\n    });\n  }\n\n  function updateInDeepMap(existing, keyPathIter, notSetValue, updater){\n    var isNotSet=existing===NOT_SET;\n    var step=keyPathIter.next();\n    if(step.done){\n      var existingValue=isNotSet ? notSetValue:existing;\n      var newValue=updater(existingValue);\n      return newValue===existingValue ? existing:newValue;\n    }\n    invariant(\n      isNotSet||(existing&&existing.set),\n      'invalid keyPath'\n);\n    var key=step.value;\n    var nextExisting=isNotSet ? NOT_SET:existing.get(key, NOT_SET);\n    var nextUpdated=updateInDeepMap(\n      nextExisting,\n      keyPathIter,\n      notSetValue,\n      updater\n);\n    return nextUpdated===nextExisting ? existing :\n      nextUpdated===NOT_SET ? existing.remove(key) :\n      (isNotSet ? emptyMap():existing).set(key, nextUpdated);\n  }\n\n  function popCount(x){\n    x=x - ((x >> 1) & 0x55555555);\n    x=(x & 0x33333333) + ((x >> 2) & 0x33333333);\n    x=(x + (x >> 4)) & 0x0f0f0f0f;\n    x=x + (x >> 8);\n    x=x + (x >> 16);\n    return x & 0x7f;\n  }\n\n  function setIn(array, idx, val, canEdit){\n    var newArray=canEdit ? array:arrCopy(array);\n    newArray[idx]=val;\n    return newArray;\n  }\n\n  function spliceIn(array, idx, val, canEdit){\n    var newLen=array.length + 1;\n    if(canEdit&&idx + 1===newLen){\n      array[idx]=val;\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        newArray[ii]=val;\n        after=-1;\n      }else{\n        newArray[ii]=array[ii + after];\n      }\n    }\n    return newArray;\n  }\n\n  function spliceOut(array, idx, canEdit){\n    var newLen=array.length - 1;\n    if(canEdit&&idx===newLen){\n      array.pop();\n      return array;\n    }\n    var newArray=new Array(newLen);\n    var after=0;\n    for (var ii=0; ii < newLen; ii++){\n      if(ii===idx){\n        after=1;\n      }\n      newArray[ii]=array[ii + after];\n    }\n    return newArray;\n  }\n\n  var MAX_ARRAY_MAP_SIZE=SIZE / 4;\n  var MAX_BITMAP_INDEXED_SIZE=SIZE / 2;\n  var MIN_HASH_ARRAY_MAP_SIZE=SIZE / 4;\n\n  createClass(List, IndexedCollection);\n\n    // @pragma Construction\n\n    function List(value){\n      var empty=emptyList();\n      if(value===null||value===undefined){\n        return empty;\n      }\n      if(isList(value)){\n        return value;\n      }\n      var iter=IndexedIterable(value);\n      var size=iter.size;\n      if(size===0){\n        return empty;\n      }\n      assertNotInfinite(size);\n      if(size > 0&&size < SIZE){\n        return makeList(0, size, SHIFT, null, new VNode(iter.toArray()));\n      }\n      return empty.withMutations(function(list){\n        list.setSize(size);\n        iter.forEach(function(v, i){return list.set(i, v)});\n      });\n    }\n\n    List.of=function(){\n      return this(arguments);\n    };\n\n    List.prototype.toString=function(){\n      return this.__toString('List [', ']');\n    };\n\n    // @pragma Access\n\n    List.prototype.get=function(index, notSetValue){\n      index=wrapIndex(this, index);\n      if(index >=0&&index < this.size){\n        index +=this._origin;\n        var node=listNodeFor(this, index);\n        return node&&node.array[index & MASK];\n      }\n      return notSetValue;\n    };\n\n    // @pragma Modification\n\n    List.prototype.set=function(index, value){\n      return updateList(this, index, value);\n    };\n\n    List.prototype.remove=function(index){\n      return !this.has(index) ? this :\n        index===0 ? this.shift() :\n        index===this.size - 1 ? this.pop() :\n        this.splice(index, 1);\n    };\n\n    List.prototype.insert=function(index, value){\n      return this.splice(index, 0, value);\n    };\n\n    List.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=this._origin=this._capacity=0;\n        this._level=SHIFT;\n        this._root=this._tail=null;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyList();\n    };\n\n    List.prototype.push=function(){\n      var values=arguments;\n      var oldSize=this.size;\n      return this.withMutations(function(list){\n        setListBounds(list, 0, oldSize + values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(oldSize + ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.pop=function(){\n      return setListBounds(this, 0, -1);\n    };\n\n    List.prototype.unshift=function(){\n      var values=arguments;\n      return this.withMutations(function(list){\n        setListBounds(list, -values.length);\n        for (var ii=0; ii < values.length; ii++){\n          list.set(ii, values[ii]);\n        }\n      });\n    };\n\n    List.prototype.shift=function(){\n      return setListBounds(this, 1);\n    };\n\n    // @pragma Composition\n\n    List.prototype.merge=function(){\n      return mergeIntoListWith(this, undefined, arguments);\n    };\n\n    List.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, merger, iters);\n    };\n\n    List.prototype.mergeDeep=function(){\n      return mergeIntoListWith(this, deepMerger, arguments);\n    };\n\n    List.prototype.mergeDeepWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return mergeIntoListWith(this, deepMergerWith(merger), iters);\n    };\n\n    List.prototype.setSize=function(size){\n      return setListBounds(this, 0, size);\n    };\n\n    // @pragma Iteration\n\n    List.prototype.slice=function(begin, end){\n      var size=this.size;\n      if(wholeSlice(begin, end, size)){\n        return this;\n      }\n      return setListBounds(\n        this,\n        resolveBegin(begin, size),\n        resolveEnd(end, size)\n);\n    };\n\n    List.prototype.__iterator=function(type, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      return new Iterator(function(){\n        var value=values();\n        return value===DONE ?\n          iteratorDone() :\n          iteratorValue(type, index++, value);\n      });\n    };\n\n    List.prototype.__iterate=function(fn, reverse){\n      var index=0;\n      var values=iterateList(this, reverse);\n      var value;\n      while ((value=values())!==DONE){\n        if(fn(value, index++, this)===false){\n          break;\n        }\n      }\n      return index;\n    };\n\n    List.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        return this;\n      }\n      return makeList(this._origin, this._capacity, this._level, this._root, this._tail, ownerID, this.__hash);\n    };\n\n\n  function isList(maybeList){\n    return !!(maybeList&&maybeList[IS_LIST_SENTINEL]);\n  }\n\n  List.isList=isList;\n\n  var IS_LIST_SENTINEL='@@__IMMUTABLE_LIST__@@';\n\n  var ListPrototype=List.prototype;\n  ListPrototype[IS_LIST_SENTINEL]=true;\n  ListPrototype[DELETE]=ListPrototype.remove;\n  ListPrototype.setIn=MapPrototype.setIn;\n  ListPrototype.deleteIn=\n  ListPrototype.removeIn=MapPrototype.removeIn;\n  ListPrototype.update=MapPrototype.update;\n  ListPrototype.updateIn=MapPrototype.updateIn;\n  ListPrototype.mergeIn=MapPrototype.mergeIn;\n  ListPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  ListPrototype.withMutations=MapPrototype.withMutations;\n  ListPrototype.asMutable=MapPrototype.asMutable;\n  ListPrototype.asImmutable=MapPrototype.asImmutable;\n  ListPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n\n    function VNode(array, ownerID){\n      this.array=array;\n      this.ownerID=ownerID;\n    }\n\n    // TODO: seems like these methods are very similar\n\n    VNode.prototype.removeBefore=function(ownerID, level, index){\n      if(index===level ? 1 << level:false||this.array.length===0){\n        return this;\n      }\n      var originIndex=(index >>> level) & MASK;\n      if(originIndex >=this.array.length){\n        return new VNode([], ownerID);\n      }\n      var removingFirst=originIndex===0;\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[originIndex];\n        newChild=oldChild&&oldChild.removeBefore(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&removingFirst){\n          return this;\n        }\n      }\n      if(removingFirst&&!newChild){\n        return this;\n      }\n      var editable=editableVNode(this, ownerID);\n      if(!removingFirst){\n        for (var ii=0; ii < originIndex; ii++){\n          editable.array[ii]=undefined;\n        }\n      }\n      if(newChild){\n        editable.array[originIndex]=newChild;\n      }\n      return editable;\n    };\n\n    VNode.prototype.removeAfter=function(ownerID, level, index){\n      if(index===(level ? 1 << level:0)||this.array.length===0){\n        return this;\n      }\n      var sizeIndex=((index - 1) >>> level) & MASK;\n      if(sizeIndex >=this.array.length){\n        return this;\n      }\n\n      var newChild;\n      if(level > 0){\n        var oldChild=this.array[sizeIndex];\n        newChild=oldChild&&oldChild.removeAfter(ownerID, level - SHIFT, index);\n        if(newChild===oldChild&&sizeIndex===this.array.length - 1){\n          return this;\n        }\n      }\n\n      var editable=editableVNode(this, ownerID);\n      editable.array.splice(sizeIndex + 1);\n      if(newChild){\n        editable.array[sizeIndex]=newChild;\n      }\n      return editable;\n    };\n\n\n\n  var DONE={};\n\n  function iterateList(list, reverse){\n    var left=list._origin;\n    var right=list._capacity;\n    var tailPos=getTailOffset(right);\n    var tail=list._tail;\n\n    return iterateNodeOrLeaf(list._root, list._level, 0);\n\n    function iterateNodeOrLeaf(node, level, offset){\n      return level===0 ?\n        iterateLeaf(node, offset) :\n        iterateNode(node, level, offset);\n    }\n\n    function iterateLeaf(node, offset){\n      var array=offset===tailPos ? tail&&tail.array:node&&node.array;\n      var from=offset > left ? 0:left - offset;\n      var to=right - offset;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        if(from===to){\n          return DONE;\n        }\n        var idx=reverse ? --to:from++;\n        return array&&array[idx];\n      };\n    }\n\n    function iterateNode(node, level, offset){\n      var values;\n      var array=node&&node.array;\n      var from=offset > left ? 0:(left - offset) >> level;\n      var to=((right - offset) >> level) + 1;\n      if(to > SIZE){\n        to=SIZE;\n      }\n      return function(){\n        do {\n          if(values){\n            var value=values();\n            if(value!==DONE){\n              return value;\n            }\n            values=null;\n          }\n          if(from===to){\n            return DONE;\n          }\n          var idx=reverse ? --to:from++;\n          values=iterateNodeOrLeaf(\n            array&&array[idx], level - SHIFT, offset + (idx << level)\n);\n        } while (true);\n      };\n    }\n  }\n\n  function makeList(origin, capacity, level, root, tail, ownerID, hash){\n    var list=Object.create(ListPrototype);\n    list.size=capacity - origin;\n    list._origin=origin;\n    list._capacity=capacity;\n    list._level=level;\n    list._root=root;\n    list._tail=tail;\n    list.__ownerID=ownerID;\n    list.__hash=hash;\n    list.__altered=false;\n    return list;\n  }\n\n  var EMPTY_LIST;\n  function emptyList(){\n    return EMPTY_LIST||(EMPTY_LIST=makeList(0, 0, SHIFT));\n  }\n\n  function updateList(list, index, value){\n    index=wrapIndex(list, index);\n\n    if(index!==index){\n      return list;\n    }\n\n    if(index >=list.size||index < 0){\n      return list.withMutations(function(list){\n        index < 0 ?\n          setListBounds(list, index).set(0, value) :\n          setListBounds(list, 0, index + 1).set(index, value)\n      });\n    }\n\n    index +=list._origin;\n\n    var newTail=list._tail;\n    var newRoot=list._root;\n    var didAlter=MakeRef(DID_ALTER);\n    if(index >=getTailOffset(list._capacity)){\n      newTail=updateVNode(newTail, list.__ownerID, 0, index, value, didAlter);\n    }else{\n      newRoot=updateVNode(newRoot, list.__ownerID, list._level, index, value, didAlter);\n    }\n\n    if(!didAlter.value){\n      return list;\n    }\n\n    if(list.__ownerID){\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(list._origin, list._capacity, list._level, newRoot, newTail);\n  }\n\n  function updateVNode(node, ownerID, level, index, value, didAlter){\n    var idx=(index >>> level) & MASK;\n    var nodeHas=node&&idx < node.array.length;\n    if(!nodeHas&&value===undefined){\n      return node;\n    }\n\n    var newNode;\n\n    if(level > 0){\n      var lowerNode=node&&node.array[idx];\n      var newLowerNode=updateVNode(lowerNode, ownerID, level - SHIFT, index, value, didAlter);\n      if(newLowerNode===lowerNode){\n        return node;\n      }\n      newNode=editableVNode(node, ownerID);\n      newNode.array[idx]=newLowerNode;\n      return newNode;\n    }\n\n    if(nodeHas&&node.array[idx]===value){\n      return node;\n    }\n\n    SetRef(didAlter);\n\n    newNode=editableVNode(node, ownerID);\n    if(value===undefined&&idx===newNode.array.length - 1){\n      newNode.array.pop();\n    }else{\n      newNode.array[idx]=value;\n    }\n    return newNode;\n  }\n\n  function editableVNode(node, ownerID){\n    if(ownerID&&node&&ownerID===node.ownerID){\n      return node;\n    }\n    return new VNode(node ? node.array.slice():[], ownerID);\n  }\n\n  function listNodeFor(list, rawIndex){\n    if(rawIndex >=getTailOffset(list._capacity)){\n      return list._tail;\n    }\n    if(rawIndex < 1 << (list._level + SHIFT)){\n      var node=list._root;\n      var level=list._level;\n      while (node&&level > 0){\n        node=node.array[(rawIndex >>> level) & MASK];\n        level -=SHIFT;\n      }\n      return node;\n    }\n  }\n\n  function setListBounds(list, begin, end){\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      end=end | 0;\n    }\n    var owner=list.__ownerID||new OwnerID();\n    var oldOrigin=list._origin;\n    var oldCapacity=list._capacity;\n    var newOrigin=oldOrigin + begin;\n    var newCapacity=end===undefined ? oldCapacity:end < 0 ? oldCapacity + end:oldOrigin + end;\n    if(newOrigin===oldOrigin&&newCapacity===oldCapacity){\n      return list;\n    }\n\n    // If it's going to end after it starts, it's empty.\n    if(newOrigin >=newCapacity){\n      return list.clear();\n    }\n\n    var newLevel=list._level;\n    var newRoot=list._root;\n\n    // New origin might need creating a higher root.\n    var offsetShift=0;\n    while (newOrigin + offsetShift < 0){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [undefined, newRoot]:[], owner);\n      newLevel +=SHIFT;\n      offsetShift +=1 << newLevel;\n    }\n    if(offsetShift){\n      newOrigin +=offsetShift;\n      oldOrigin +=offsetShift;\n      newCapacity +=offsetShift;\n      oldCapacity +=offsetShift;\n    }\n\n    var oldTailOffset=getTailOffset(oldCapacity);\n    var newTailOffset=getTailOffset(newCapacity);\n\n    // New size might need creating a higher root.\n    while (newTailOffset >=1 << (newLevel + SHIFT)){\n      newRoot=new VNode(newRoot&&newRoot.array.length ? [newRoot]:[], owner);\n      newLevel +=SHIFT;\n    }\n\n    // Locate or create the new tail.\n    var oldTail=list._tail;\n    var newTail=newTailOffset < oldTailOffset ?\n      listNodeFor(list, newCapacity - 1) :\n      newTailOffset > oldTailOffset ? new VNode([], owner):oldTail;\n\n    // Merge Tail into tree.\n    if(oldTail&&newTailOffset > oldTailOffset&&newOrigin < oldCapacity&&oldTail.array.length){\n      newRoot=editableVNode(newRoot, owner);\n      var node=newRoot;\n      for (var level=newLevel; level > SHIFT; level -=SHIFT){\n        var idx=(oldTailOffset >>> level) & MASK;\n        node=node.array[idx]=editableVNode(node.array[idx], owner);\n      }\n      node.array[(oldTailOffset >>> SHIFT) & MASK]=oldTail;\n    }\n\n    // If the size has been reduced, there's a chance the tail needs to be trimmed.\n    if(newCapacity < oldCapacity){\n      newTail=newTail&&newTail.removeAfter(owner, 0, newCapacity);\n    }\n\n    // If the new origin is within the tail, then we do not need a root.\n    if(newOrigin >=newTailOffset){\n      newOrigin -=newTailOffset;\n      newCapacity -=newTailOffset;\n      newLevel=SHIFT;\n      newRoot=null;\n      newTail=newTail&&newTail.removeBefore(owner, 0, newOrigin);\n\n    // Otherwise, if the root has been trimmed, garbage collect.\n    }else if(newOrigin > oldOrigin||newTailOffset < oldTailOffset){\n      offsetShift=0;\n\n      // Identify the new top root node of the subtree of the old root.\n      while (newRoot){\n        var beginIndex=(newOrigin >>> newLevel) & MASK;\n        if(beginIndex!==(newTailOffset >>> newLevel) & MASK){\n          break;\n        }\n        if(beginIndex){\n          offsetShift +=(1 << newLevel) * beginIndex;\n        }\n        newLevel -=SHIFT;\n        newRoot=newRoot.array[beginIndex];\n      }\n\n      // Trim the new sides of the new root.\n      if(newRoot&&newOrigin > oldOrigin){\n        newRoot=newRoot.removeBefore(owner, newLevel, newOrigin - offsetShift);\n      }\n      if(newRoot&&newTailOffset < oldTailOffset){\n        newRoot=newRoot.removeAfter(owner, newLevel, newTailOffset - offsetShift);\n      }\n      if(offsetShift){\n        newOrigin -=offsetShift;\n        newCapacity -=offsetShift;\n      }\n    }\n\n    if(list.__ownerID){\n      list.size=newCapacity - newOrigin;\n      list._origin=newOrigin;\n      list._capacity=newCapacity;\n      list._level=newLevel;\n      list._root=newRoot;\n      list._tail=newTail;\n      list.__hash=undefined;\n      list.__altered=true;\n      return list;\n    }\n    return makeList(newOrigin, newCapacity, newLevel, newRoot, newTail);\n  }\n\n  function mergeIntoListWith(list, merger, iterables){\n    var iters=[];\n    var maxSize=0;\n    for (var ii=0; ii < iterables.length; ii++){\n      var value=iterables[ii];\n      var iter=IndexedIterable(value);\n      if(iter.size > maxSize){\n        maxSize=iter.size;\n      }\n      if(!isIterable(value)){\n        iter=iter.map(function(v){return fromJS(v)});\n      }\n      iters.push(iter);\n    }\n    if(maxSize > list.size){\n      list=list.setSize(maxSize);\n    }\n    return mergeIntoCollectionWith(list, merger, iters);\n  }\n\n  function getTailOffset(size){\n    return size < SIZE ? 0:(((size - 1) >>> SHIFT) << SHIFT);\n  }\n\n  createClass(OrderedMap, Map);\n\n    // @pragma Construction\n\n    function OrderedMap(value){\n      return value===null||value===undefined ? emptyOrderedMap() :\n        isOrderedMap(value) ? value :\n        emptyOrderedMap().withMutations(function(map){\n          var iter=KeyedIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v, k){return map.set(k, v)});\n        });\n    }\n\n    OrderedMap.of=function(){\n      return this(arguments);\n    };\n\n    OrderedMap.prototype.toString=function(){\n      return this.__toString('OrderedMap {', '}');\n    };\n\n    // @pragma Access\n\n    OrderedMap.prototype.get=function(k, notSetValue){\n      var index=this._map.get(k);\n      return index!==undefined ? this._list.get(index)[1]:notSetValue;\n    };\n\n    // @pragma Modification\n\n    OrderedMap.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._map.clear();\n        this._list.clear();\n        return this;\n      }\n      return emptyOrderedMap();\n    };\n\n    OrderedMap.prototype.set=function(k, v){\n      return updateOrderedMap(this, k, v);\n    };\n\n    OrderedMap.prototype.remove=function(k){\n      return updateOrderedMap(this, k, NOT_SET);\n    };\n\n    OrderedMap.prototype.wasAltered=function(){\n      return this._map.wasAltered()||this._list.wasAltered();\n    };\n\n    OrderedMap.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._list.__iterate(\n        function(entry){return entry&&fn(entry[1], entry[0], this$0)},\n        reverse\n);\n    };\n\n    OrderedMap.prototype.__iterator=function(type, reverse){\n      return this._list.fromEntrySeq().__iterator(type, reverse);\n    };\n\n    OrderedMap.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      var newList=this._list.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        this._list=newList;\n        return this;\n      }\n      return makeOrderedMap(newMap, newList, ownerID, this.__hash);\n    };\n\n\n  function isOrderedMap(maybeOrderedMap){\n    return isMap(maybeOrderedMap)&&isOrdered(maybeOrderedMap);\n  }\n\n  OrderedMap.isOrderedMap=isOrderedMap;\n\n  OrderedMap.prototype[IS_ORDERED_SENTINEL]=true;\n  OrderedMap.prototype[DELETE]=OrderedMap.prototype.remove;\n\n\n\n  function makeOrderedMap(map, list, ownerID, hash){\n    var omap=Object.create(OrderedMap.prototype);\n    omap.size=map ? map.size:0;\n    omap._map=map;\n    omap._list=list;\n    omap.__ownerID=ownerID;\n    omap.__hash=hash;\n    return omap;\n  }\n\n  var EMPTY_ORDERED_MAP;\n  function emptyOrderedMap(){\n    return EMPTY_ORDERED_MAP||(EMPTY_ORDERED_MAP=makeOrderedMap(emptyMap(), emptyList()));\n  }\n\n  function updateOrderedMap(omap, k, v){\n    var map=omap._map;\n    var list=omap._list;\n    var i=map.get(k);\n    var has=i!==undefined;\n    var newMap;\n    var newList;\n    if(v===NOT_SET){ // removed\n      if(!has){\n        return omap;\n      }\n      if(list.size >=SIZE&&list.size >=map.size * 2){\n        newList=list.filter(function(entry, idx){return entry!==undefined&&i!==idx});\n        newMap=newList.toKeyedSeq().map(function(entry){return entry[0]}).flip().toMap();\n        if(omap.__ownerID){\n          newMap.__ownerID=newList.__ownerID=omap.__ownerID;\n        }\n      }else{\n        newMap=map.remove(k);\n        newList=i===list.size - 1 ? list.pop():list.set(i, undefined);\n      }\n    }else{\n      if(has){\n        if(v===list.get(i)[1]){\n          return omap;\n        }\n        newMap=map;\n        newList=list.set(i, [k, v]);\n      }else{\n        newMap=map.set(k, list.size);\n        newList=list.set(list.size, [k, v]);\n      }\n    }\n    if(omap.__ownerID){\n      omap.size=newMap.size;\n      omap._map=newMap;\n      omap._list=newList;\n      omap.__hash=undefined;\n      return omap;\n    }\n    return makeOrderedMap(newMap, newList);\n  }\n\n  createClass(ToKeyedSequence, KeyedSeq);\n    function ToKeyedSequence(indexed, useKeys){\n      this._iter=indexed;\n      this._useKeys=useKeys;\n      this.size=indexed.size;\n    }\n\n    ToKeyedSequence.prototype.get=function(key, notSetValue){\n      return this._iter.get(key, notSetValue);\n    };\n\n    ToKeyedSequence.prototype.has=function(key){\n      return this._iter.has(key);\n    };\n\n    ToKeyedSequence.prototype.valueSeq=function(){\n      return this._iter.valueSeq();\n    };\n\n    ToKeyedSequence.prototype.reverse=function(){var this$0=this;\n      var reversedSequence=reverseFactory(this, true);\n      if(!this._useKeys){\n        reversedSequence.valueSeq=function(){return this$0._iter.toSeq().reverse()};\n      }\n      return reversedSequence;\n    };\n\n    ToKeyedSequence.prototype.map=function(mapper, context){var this$0=this;\n      var mappedSequence=mapFactory(this, mapper, context);\n      if(!this._useKeys){\n        mappedSequence.valueSeq=function(){return this$0._iter.toSeq().map(mapper, context)};\n      }\n      return mappedSequence;\n    };\n\n    ToKeyedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var ii;\n      return this._iter.__iterate(\n        this._useKeys ?\n          function(v, k){return fn(v, k, this$0)} :\n          ((ii=reverse ? resolveSize(this):0),\n            function(v){return fn(v, reverse ? --ii:ii++, this$0)}),\n        reverse\n);\n    };\n\n    ToKeyedSequence.prototype.__iterator=function(type, reverse){\n      if(this._useKeys){\n        return this._iter.__iterator(type, reverse);\n      }\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var ii=reverse ? resolveSize(this):0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, reverse ? --ii:ii++, step.value, step);\n      });\n    };\n\n  ToKeyedSequence.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n  createClass(ToIndexedSequence, IndexedSeq);\n    function ToIndexedSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToIndexedSequence.prototype.includes=function(value){\n      return this._iter.includes(value);\n    };\n\n    ToIndexedSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      return this._iter.__iterate(function(v){return fn(v, iterations++, this$0)}, reverse);\n    };\n\n    ToIndexedSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, iterations++, step.value, step)\n      });\n    };\n\n\n\n  createClass(ToSetSequence, SetSeq);\n    function ToSetSequence(iter){\n      this._iter=iter;\n      this.size=iter.size;\n    }\n\n    ToSetSequence.prototype.has=function(key){\n      return this._iter.includes(key);\n    };\n\n    ToSetSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(v){return fn(v, v, this$0)}, reverse);\n    };\n\n    ToSetSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        return step.done ? step :\n          iteratorValue(type, step.value, step.value, step);\n      });\n    };\n\n\n\n  createClass(FromEntriesSequence, KeyedSeq);\n    function FromEntriesSequence(entries){\n      this._iter=entries;\n      this.size=entries.size;\n    }\n\n    FromEntriesSequence.prototype.entrySeq=function(){\n      return this._iter.toSeq();\n    };\n\n    FromEntriesSequence.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._iter.__iterate(function(entry){\n        // Check if entry exists first so array access doesn't throw for holes\n        // in the parent iteration.\n        if(entry){\n          validateEntry(entry);\n          var indexedIterable=isIterable(entry);\n          return fn(\n            indexedIterable ? entry.get(1):entry[1],\n            indexedIterable ? entry.get(0):entry[0],\n            this$0\n);\n        }\n      }, reverse);\n    };\n\n    FromEntriesSequence.prototype.__iterator=function(type, reverse){\n      var iterator=this._iter.__iterator(ITERATE_VALUES, reverse);\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          // Check if entry exists first so array access doesn't throw for holes\n          // in the parent iteration.\n          if(entry){\n            validateEntry(entry);\n            var indexedIterable=isIterable(entry);\n            return iteratorValue(\n              type,\n              indexedIterable ? entry.get(0):entry[0],\n              indexedIterable ? entry.get(1):entry[1],\n              step\n);\n          }\n        }\n      });\n    };\n\n\n  ToIndexedSequence.prototype.cacheResult=\n  ToKeyedSequence.prototype.cacheResult=\n  ToSetSequence.prototype.cacheResult=\n  FromEntriesSequence.prototype.cacheResult=\n    cacheResultThrough;\n\n\n  function flipFactory(iterable){\n    var flipSequence=makeSequence(iterable);\n    flipSequence._iter=iterable;\n    flipSequence.size=iterable.size;\n    flipSequence.flip=function(){return iterable};\n    flipSequence.reverse=function (){\n      var reversedSequence=iterable.reverse.apply(this); // super.reverse()\n      reversedSequence.flip=function(){return iterable.reverse()};\n      return reversedSequence;\n    };\n    flipSequence.has=function(key){return iterable.includes(key)};\n    flipSequence.includes=function(key){return iterable.has(key)};\n    flipSequence.cacheResult=cacheResultThrough;\n    flipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(k, v, this$0)!==false}, reverse);\n    }\n    flipSequence.__iteratorUncached=function(type, reverse){\n      if(type===ITERATE_ENTRIES){\n        var iterator=iterable.__iterator(type, reverse);\n        return new Iterator(function(){\n          var step=iterator.next();\n          if(!step.done){\n            var k=step.value[0];\n            step.value[0]=step.value[1];\n            step.value[1]=k;\n          }\n          return step;\n        });\n      }\n      return iterable.__iterator(\n        type===ITERATE_VALUES ? ITERATE_KEYS:ITERATE_VALUES,\n        reverse\n);\n    }\n    return flipSequence;\n  }\n\n\n  function mapFactory(iterable, mapper, context){\n    var mappedSequence=makeSequence(iterable);\n    mappedSequence.size=iterable.size;\n    mappedSequence.has=function(key){return iterable.has(key)};\n    mappedSequence.get=function(key, notSetValue){\n      var v=iterable.get(key, NOT_SET);\n      return v===NOT_SET ?\n        notSetValue :\n        mapper.call(context, v, key, iterable);\n    };\n    mappedSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(\n        function(v, k, c){return fn(mapper.call(context, v, k, c), k, this$0)!==false},\n        reverse\n);\n    }\n    mappedSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      return new Iterator(function(){\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var key=entry[0];\n        return iteratorValue(\n          type,\n          key,\n          mapper.call(context, entry[1], key, iterable),\n          step\n);\n      });\n    }\n    return mappedSequence;\n  }\n\n\n  function reverseFactory(iterable, useKeys){\n    var reversedSequence=makeSequence(iterable);\n    reversedSequence._iter=iterable;\n    reversedSequence.size=iterable.size;\n    reversedSequence.reverse=function(){return iterable};\n    if(iterable.flip){\n      reversedSequence.flip=function (){\n        var flipSequence=flipFactory(iterable);\n        flipSequence.reverse=function(){return iterable.flip()};\n        return flipSequence;\n      };\n    }\n    reversedSequence.get=function(key, notSetValue) \n      {return iterable.get(useKeys ? key:-1 - key, notSetValue)};\n    reversedSequence.has=function(key)\n      {return iterable.has(useKeys ? key:-1 - key)};\n    reversedSequence.includes=function(value){return iterable.includes(value)};\n    reversedSequence.cacheResult=cacheResultThrough;\n    reversedSequence.__iterate=function (fn, reverse){var this$0=this;\n      return iterable.__iterate(function(v, k){return fn(v, k, this$0)}, !reverse);\n    };\n    reversedSequence.__iterator=\n      function(type, reverse){return iterable.__iterator(type, !reverse)};\n    return reversedSequence;\n  }\n\n\n  function filterFactory(iterable, predicate, context, useKeys){\n    var filterSequence=makeSequence(iterable);\n    if(useKeys){\n      filterSequence.has=function(key){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&!!predicate.call(context, v, key, iterable);\n      };\n      filterSequence.get=function(key, notSetValue){\n        var v=iterable.get(key, NOT_SET);\n        return v!==NOT_SET&&predicate.call(context, v, key, iterable) ?\n          v:notSetValue;\n      };\n    }\n    filterSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      }, reverse);\n      return iterations;\n    };\n    filterSequence.__iteratorUncached=function (type, reverse){\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterations=0;\n      return new Iterator(function(){\n        while (true){\n          var step=iterator.next();\n          if(step.done){\n            return step;\n          }\n          var entry=step.value;\n          var key=entry[0];\n          var value=entry[1];\n          if(predicate.call(context, value, key, iterable)){\n            return iteratorValue(type, useKeys ? key:iterations++, value, step);\n          }\n        }\n      });\n    }\n    return filterSequence;\n  }\n\n\n  function countByFactory(iterable, grouper, context){\n    var groups=Map().asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        0,\n        function(a){return a + 1}\n);\n    });\n    return groups.asImmutable();\n  }\n\n\n  function groupByFactory(iterable, grouper, context){\n    var isKeyedIter=isKeyed(iterable);\n    var groups=(isOrdered(iterable) ? OrderedMap():Map()).asMutable();\n    iterable.__iterate(function(v, k){\n      groups.update(\n        grouper.call(context, v, k, iterable),\n        function(a){return (a=a||[], a.push(isKeyedIter ? [k, v]:v), a)}\n);\n    });\n    var coerce=iterableClass(iterable);\n    return groups.map(function(arr){return reify(iterable, coerce(arr))});\n  }\n\n\n  function sliceFactory(iterable, begin, end, useKeys){\n    var originalSize=iterable.size;\n\n    // Sanitize begin & end using this shorthand for ToInt32(argument)\n    // http://www.ecma-international.org/ecma-262/6.0/#sec-toint32\n    if(begin!==undefined){\n      begin=begin | 0;\n    }\n    if(end!==undefined){\n      if(end===Infinity){\n        end=originalSize;\n      }else{\n        end=end | 0;\n      }\n    }\n\n    if(wholeSlice(begin, end, originalSize)){\n      return iterable;\n    }\n\n    var resolvedBegin=resolveBegin(begin, originalSize);\n    var resolvedEnd=resolveEnd(end, originalSize);\n\n    // begin or end will be NaN if they were provided as negative numbers and\n    // this iterable's size is unknown. In that case, cache first so there is\n    // a known size and these do not resolve to NaN.\n    if(resolvedBegin!==resolvedBegin||resolvedEnd!==resolvedEnd){\n      return sliceFactory(iterable.toSeq().cacheResult(), begin, end, useKeys);\n    }\n\n    // Note: resolvedEnd is undefined when the original sequence's length is\n    // unknown and this slice did not supply an end and should contain all\n    // elements after resolvedBegin.\n    // In that case, resolvedSize will be NaN and sliceSize will remain undefined.\n    var resolvedSize=resolvedEnd - resolvedBegin;\n    var sliceSize;\n    if(resolvedSize===resolvedSize){\n      sliceSize=resolvedSize < 0 ? 0:resolvedSize;\n    }\n\n    var sliceSeq=makeSequence(iterable);\n\n    // If iterable.size is undefined, the size of the realized sliceSeq is\n    // unknown at this point unless the number of items to slice is 0\n    sliceSeq.size=sliceSize===0 ? sliceSize:iterable.size&&sliceSize||undefined;\n\n    if(!useKeys&&isSeq(iterable)&&sliceSize >=0){\n      sliceSeq.get=function (index, notSetValue){\n        index=wrapIndex(this, index);\n        return index >=0&&index < sliceSize ?\n          iterable.get(index + resolvedBegin, notSetValue) :\n          notSetValue;\n      }\n    }\n\n    sliceSeq.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(sliceSize===0){\n        return 0;\n      }\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var skipped=0;\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k){\n        if(!(isSkipping&&(isSkipping=skipped++ < resolvedBegin))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0)!==false&&\n                 iterations!==sliceSize;\n        }\n      });\n      return iterations;\n    };\n\n    sliceSeq.__iteratorUncached=function(type, reverse){\n      if(sliceSize!==0&&reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      // Don't bother instantiating parent iterator if taking 0.\n      var iterator=sliceSize!==0&&iterable.__iterator(type, reverse);\n      var skipped=0;\n      var iterations=0;\n      return new Iterator(function(){\n        while (skipped++ < resolvedBegin){\n          iterator.next();\n        }\n        if(++iterations > sliceSize){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(useKeys||type===ITERATE_VALUES){\n          return step;\n        }else if(type===ITERATE_KEYS){\n          return iteratorValue(type, iterations - 1, undefined, step);\n        }else{\n          return iteratorValue(type, iterations - 1, step.value[1], step);\n        }\n      });\n    }\n\n    return sliceSeq;\n  }\n\n\n  function takeWhileFactory(iterable, predicate, context){\n    var takeSequence=makeSequence(iterable);\n    takeSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var iterations=0;\n      iterable.__iterate(function(v, k, c) \n        {return predicate.call(context, v, k, c)&&++iterations&&fn(v, k, this$0)}\n);\n      return iterations;\n    };\n    takeSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var iterating=true;\n      return new Iterator(function(){\n        if(!iterating){\n          return iteratorDone();\n        }\n        var step=iterator.next();\n        if(step.done){\n          return step;\n        }\n        var entry=step.value;\n        var k=entry[0];\n        var v=entry[1];\n        if(!predicate.call(context, v, k, this$0)){\n          iterating=false;\n          return iteratorDone();\n        }\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return takeSequence;\n  }\n\n\n  function skipWhileFactory(iterable, predicate, context, useKeys){\n    var skipSequence=makeSequence(iterable);\n    skipSequence.__iterateUncached=function (fn, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterate(fn, reverse);\n      }\n      var isSkipping=true;\n      var iterations=0;\n      iterable.__iterate(function(v, k, c){\n        if(!(isSkipping&&(isSkipping=predicate.call(context, v, k, c)))){\n          iterations++;\n          return fn(v, useKeys ? k:iterations - 1, this$0);\n        }\n      });\n      return iterations;\n    };\n    skipSequence.__iteratorUncached=function(type, reverse){var this$0=this;\n      if(reverse){\n        return this.cacheResult().__iterator(type, reverse);\n      }\n      var iterator=iterable.__iterator(ITERATE_ENTRIES, reverse);\n      var skipping=true;\n      var iterations=0;\n      return new Iterator(function(){\n        var step, k, v;\n        do {\n          step=iterator.next();\n          if(step.done){\n            if(useKeys||type===ITERATE_VALUES){\n              return step;\n            }else if(type===ITERATE_KEYS){\n              return iteratorValue(type, iterations++, undefined, step);\n            }else{\n              return iteratorValue(type, iterations++, step.value[1], step);\n            }\n          }\n          var entry=step.value;\n          k=entry[0];\n          v=entry[1];\n          skipping&&(skipping=predicate.call(context, v, k, this$0));\n        } while (skipping);\n        return type===ITERATE_ENTRIES ? step :\n          iteratorValue(type, k, v, step);\n      });\n    };\n    return skipSequence;\n  }\n\n\n  function concatFactory(iterable, values){\n    var isKeyedIterable=isKeyed(iterable);\n    var iters=[iterable].concat(values).map(function(v){\n      if(!isIterable(v)){\n        v=isKeyedIterable ?\n          keyedSeqFromValue(v) :\n          indexedSeqFromValue(Array.isArray(v) ? v:[v]);\n      }else if(isKeyedIterable){\n        v=KeyedIterable(v);\n      }\n      return v;\n    }).filter(function(v){return v.size!==0});\n\n    if(iters.length===0){\n      return iterable;\n    }\n\n    if(iters.length===1){\n      var singleton=iters[0];\n      if(singleton===iterable||\n          isKeyedIterable&&isKeyed(singleton)||\n          isIndexed(iterable)&&isIndexed(singleton)){\n        return singleton;\n      }\n    }\n\n    var concatSeq=new ArraySeq(iters);\n    if(isKeyedIterable){\n      concatSeq=concatSeq.toKeyedSeq();\n    }else if(!isIndexed(iterable)){\n      concatSeq=concatSeq.toSetSeq();\n    }\n    concatSeq=concatSeq.flatten(true);\n    concatSeq.size=iters.reduce(\n      function(sum, seq){\n        if(sum!==undefined){\n          var size=seq.size;\n          if(size!==undefined){\n            return sum + size;\n          }\n        }\n      },\n      0\n);\n    return concatSeq;\n  }\n\n\n  function flattenFactory(iterable, depth, useKeys){\n    var flatSequence=makeSequence(iterable);\n    flatSequence.__iterateUncached=function(fn, reverse){\n      var iterations=0;\n      var stopped=false;\n      function flatDeep(iter, currentDepth){var this$0=this;\n        iter.__iterate(function(v, k){\n          if((!depth||currentDepth < depth)&&isIterable(v)){\n            flatDeep(v, currentDepth + 1);\n          }else if(fn(v, useKeys ? k:iterations++, this$0)===false){\n            stopped=true;\n          }\n          return !stopped;\n        }, reverse);\n      }\n      flatDeep(iterable, 0);\n      return iterations;\n    }\n    flatSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(type, reverse);\n      var stack=[];\n      var iterations=0;\n      return new Iterator(function(){\n        while (iterator){\n          var step=iterator.next();\n          if(step.done!==false){\n            iterator=stack.pop();\n            continue;\n          }\n          var v=step.value;\n          if(type===ITERATE_ENTRIES){\n            v=v[1];\n          }\n          if((!depth||stack.length < depth)&&isIterable(v)){\n            stack.push(iterator);\n            iterator=v.__iterator(type, reverse);\n          }else{\n            return useKeys ? step:iteratorValue(type, iterations++, v, step);\n          }\n        }\n        return iteratorDone();\n      });\n    }\n    return flatSequence;\n  }\n\n\n  function flatMapFactory(iterable, mapper, context){\n    var coerce=iterableClass(iterable);\n    return iterable.toSeq().map(\n      function(v, k){return coerce(mapper.call(context, v, k, iterable))}\n).flatten(true);\n  }\n\n\n  function interposeFactory(iterable, separator){\n    var interposedSequence=makeSequence(iterable);\n    interposedSequence.size=iterable.size&&iterable.size * 2 -1;\n    interposedSequence.__iterateUncached=function(fn, reverse){var this$0=this;\n      var iterations=0;\n      iterable.__iterate(function(v, k) \n        {return (!iterations||fn(separator, iterations++, this$0)!==false)&&\n        fn(v, iterations++, this$0)!==false},\n        reverse\n);\n      return iterations;\n    };\n    interposedSequence.__iteratorUncached=function(type, reverse){\n      var iterator=iterable.__iterator(ITERATE_VALUES, reverse);\n      var iterations=0;\n      var step;\n      return new Iterator(function(){\n        if(!step||iterations % 2){\n          step=iterator.next();\n          if(step.done){\n            return step;\n          }\n        }\n        return iterations % 2 ?\n          iteratorValue(type, iterations++, separator) :\n          iteratorValue(type, iterations++, step.value, step);\n      });\n    };\n    return interposedSequence;\n  }\n\n\n  function sortFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    var isKeyedIterable=isKeyed(iterable);\n    var index=0;\n    var entries=iterable.toSeq().map(\n      function(v, k){return [k, v, index++, mapper ? mapper(v, k, iterable):v]}\n).toArray();\n    entries.sort(function(a, b){return comparator(a[3], b[3])||a[2] - b[2]}).forEach(\n      isKeyedIterable ?\n      function(v, i){ entries[i].length=2; } :\n      function(v, i){ entries[i]=v[1]; }\n);\n    return isKeyedIterable ? KeyedSeq(entries) :\n      isIndexed(iterable) ? IndexedSeq(entries) :\n      SetSeq(entries);\n  }\n\n\n  function maxFactory(iterable, comparator, mapper){\n    if(!comparator){\n      comparator=defaultComparator;\n    }\n    if(mapper){\n      var entry=iterable.toSeq()\n        .map(function(v, k){return [v, mapper(v, k, iterable)]})\n        .reduce(function(a, b){return maxCompare(comparator, a[1], b[1]) ? b:a});\n      return entry&&entry[0];\n    }else{\n      return iterable.reduce(function(a, b){return maxCompare(comparator, a, b) ? b:a});\n    }\n  }\n\n  function maxCompare(comparator, a, b){\n    var comp=comparator(b, a);\n    // b is considered the new max if the comparator declares them equal, but\n    // they are not equal and b is in fact a nullish value.\n    return (comp===0&&b!==a&&(b===undefined||b===null||b!==b))||comp > 0;\n  }\n\n\n  function zipWithFactory(keyIter, zipper, iters){\n    var zipSequence=makeSequence(keyIter);\n    zipSequence.size=new ArraySeq(iters).map(function(i){return i.size}).min();\n    // Note: this a generic base implementation of __iterate in terms of\n    // __iterator which may be more generically useful in the future.\n    zipSequence.__iterate=function(fn, reverse){\n      \n      // indexed:\n      var iterator=this.__iterator(ITERATE_VALUES, reverse);\n      var step;\n      var iterations=0;\n      while (!(step=iterator.next()).done){\n        if(fn(step.value, iterations++, this)===false){\n          break;\n        }\n      }\n      return iterations;\n    };\n    zipSequence.__iteratorUncached=function(type, reverse){\n      var iterators=iters.map(function(i)\n        {return (i=Iterable(i), getIterator(reverse ? i.reverse():i))}\n);\n      var iterations=0;\n      var isDone=false;\n      return new Iterator(function(){\n        var steps;\n        if(!isDone){\n          steps=iterators.map(function(i){return i.next()});\n          isDone=steps.some(function(s){return s.done});\n        }\n        if(isDone){\n          return iteratorDone();\n        }\n        return iteratorValue(\n          type,\n          iterations++,\n          zipper.apply(null, steps.map(function(s){return s.value}))\n);\n      });\n    };\n    return zipSequence\n  }\n\n\n  // #pragma Helper Functions\n\n  function reify(iter, seq){\n    return isSeq(iter) ? seq:iter.constructor(seq);\n  }\n\n  function validateEntry(entry){\n    if(entry!==Object(entry)){\n      throw new TypeError('Expected [K, V] tuple: ' + entry);\n    }\n  }\n\n  function resolveSize(iter){\n    assertNotInfinite(iter.size);\n    return ensureSize(iter);\n  }\n\n  function iterableClass(iterable){\n    return isKeyed(iterable) ? KeyedIterable :\n      isIndexed(iterable) ? IndexedIterable :\n      SetIterable;\n  }\n\n  function makeSequence(iterable){\n    return Object.create(\n      (\n        isKeyed(iterable) ? KeyedSeq :\n        isIndexed(iterable) ? IndexedSeq :\n        SetSeq\n).prototype\n);\n  }\n\n  function cacheResultThrough(){\n    if(this._iter.cacheResult){\n      this._iter.cacheResult();\n      this.size=this._iter.size;\n      return this;\n    }else{\n      return Seq.prototype.cacheResult.call(this);\n    }\n  }\n\n  function defaultComparator(a, b){\n    return a > b ? 1:a < b ? -1:0;\n  }\n\n  function forceIterator(keyPath){\n    var iter=getIterator(keyPath);\n    if(!iter){\n      // Array might not be iterable in this environment, so we need a fallback\n      // to our wrapped type.\n      if(!isArrayLike(keyPath)){\n        throw new TypeError('Expected iterable or array-like: ' + keyPath);\n      }\n      iter=getIterator(Iterable(keyPath));\n    }\n    return iter;\n  }\n\n  createClass(Record, KeyedCollection);\n\n    function Record(defaultValues, name){\n      var hasInitialized;\n\n      var RecordType=function Record(values){\n        if(values instanceof RecordType){\n          return values;\n        }\n        if(!(this instanceof RecordType)){\n          return new RecordType(values);\n        }\n        if(!hasInitialized){\n          hasInitialized=true;\n          var keys=Object.keys(defaultValues);\n          setProps(RecordTypePrototype, keys);\n          RecordTypePrototype.size=keys.length;\n          RecordTypePrototype._name=name;\n          RecordTypePrototype._keys=keys;\n          RecordTypePrototype._defaultValues=defaultValues;\n        }\n        this._map=Map(values);\n      };\n\n      var RecordTypePrototype=RecordType.prototype=Object.create(RecordPrototype);\n      RecordTypePrototype.constructor=RecordType;\n\n      return RecordType;\n    }\n\n    Record.prototype.toString=function(){\n      return this.__toString(recordName(this) + ' {', '}');\n    };\n\n    // @pragma Access\n\n    Record.prototype.has=function(k){\n      return this._defaultValues.hasOwnProperty(k);\n    };\n\n    Record.prototype.get=function(k, notSetValue){\n      if(!this.has(k)){\n        return notSetValue;\n      }\n      var defaultVal=this._defaultValues[k];\n      return this._map ? this._map.get(k, defaultVal):defaultVal;\n    };\n\n    // @pragma Modification\n\n    Record.prototype.clear=function(){\n      if(this.__ownerID){\n        this._map&&this._map.clear();\n        return this;\n      }\n      var RecordType=this.constructor;\n      return RecordType._empty||(RecordType._empty=makeRecord(this, emptyMap()));\n    };\n\n    Record.prototype.set=function(k, v){\n      if(!this.has(k)){\n        throw new Error('Cannot set unknown key \"' + k + '\" on ' + recordName(this));\n      }\n      if(this._map&&!this._map.has(k)){\n        var defaultVal=this._defaultValues[k];\n        if(v===defaultVal){\n          return this;\n        }\n      }\n      var newMap=this._map&&this._map.set(k, v);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.remove=function(k){\n      if(!this.has(k)){\n        return this;\n      }\n      var newMap=this._map&&this._map.remove(k);\n      if(this.__ownerID||newMap===this._map){\n        return this;\n      }\n      return makeRecord(this, newMap);\n    };\n\n    Record.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Record.prototype.__iterator=function(type, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterator(type, reverse);\n    };\n\n    Record.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return KeyedIterable(this._defaultValues).map(function(_, k){return this$0.get(k)}).__iterate(fn, reverse);\n    };\n\n    Record.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map&&this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return makeRecord(this, newMap, ownerID);\n    };\n\n\n  var RecordPrototype=Record.prototype;\n  RecordPrototype[DELETE]=RecordPrototype.remove;\n  RecordPrototype.deleteIn=\n  RecordPrototype.removeIn=MapPrototype.removeIn;\n  RecordPrototype.merge=MapPrototype.merge;\n  RecordPrototype.mergeWith=MapPrototype.mergeWith;\n  RecordPrototype.mergeIn=MapPrototype.mergeIn;\n  RecordPrototype.mergeDeep=MapPrototype.mergeDeep;\n  RecordPrototype.mergeDeepWith=MapPrototype.mergeDeepWith;\n  RecordPrototype.mergeDeepIn=MapPrototype.mergeDeepIn;\n  RecordPrototype.setIn=MapPrototype.setIn;\n  RecordPrototype.update=MapPrototype.update;\n  RecordPrototype.updateIn=MapPrototype.updateIn;\n  RecordPrototype.withMutations=MapPrototype.withMutations;\n  RecordPrototype.asMutable=MapPrototype.asMutable;\n  RecordPrototype.asImmutable=MapPrototype.asImmutable;\n\n\n  function makeRecord(likeRecord, map, ownerID){\n    var record=Object.create(Object.getPrototypeOf(likeRecord));\n    record._map=map;\n    record.__ownerID=ownerID;\n    return record;\n  }\n\n  function recordName(record){\n    return record._name||record.constructor.name||'Record';\n  }\n\n  function setProps(prototype, names){\n    try {\n      names.forEach(setProp.bind(undefined, prototype));\n    } catch (error){\n      // Object.defineProperty failed. Probably IE8.\n    }\n  }\n\n  function setProp(prototype, name){\n    Object.defineProperty(prototype, name, {\n      get: function(){\n        return this.get(name);\n      },\n      set: function(value){\n        invariant(this.__ownerID, 'Cannot set on an immutable record.');\n        this.set(name, value);\n      }\n    });\n  }\n\n  createClass(Set, SetCollection);\n\n    // @pragma Construction\n\n    function Set(value){\n      return value===null||value===undefined ? emptySet() :\n        isSet(value)&&!isOrdered(value) ? value :\n        emptySet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    Set.of=function(){\n      return this(arguments);\n    };\n\n    Set.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    Set.prototype.toString=function(){\n      return this.__toString('Set {', '}');\n    };\n\n    // @pragma Access\n\n    Set.prototype.has=function(value){\n      return this._map.has(value);\n    };\n\n    // @pragma Modification\n\n    Set.prototype.add=function(value){\n      return updateSet(this, this._map.set(value, true));\n    };\n\n    Set.prototype.remove=function(value){\n      return updateSet(this, this._map.remove(value));\n    };\n\n    Set.prototype.clear=function(){\n      return updateSet(this, this._map.clear());\n    };\n\n    // @pragma Composition\n\n    Set.prototype.union=function(){var iters=SLICE$0.call(arguments, 0);\n      iters=iters.filter(function(x){return x.size!==0});\n      if(iters.length===0){\n        return this;\n      }\n      if(this.size===0&&!this.__ownerID&&iters.length===1){\n        return this.constructor(iters[0]);\n      }\n      return this.withMutations(function(set){\n        for (var ii=0; ii < iters.length; ii++){\n          SetIterable(iters[ii]).forEach(function(value){return set.add(value)});\n        }\n      });\n    };\n\n    Set.prototype.intersect=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(!iters.every(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.subtract=function(){var iters=SLICE$0.call(arguments, 0);\n      if(iters.length===0){\n        return this;\n      }\n      iters=iters.map(function(iter){return SetIterable(iter)});\n      var originalSet=this;\n      return this.withMutations(function(set){\n        originalSet.forEach(function(value){\n          if(iters.some(function(iter){return iter.includes(value)})){\n            set.remove(value);\n          }\n        });\n      });\n    };\n\n    Set.prototype.merge=function(){\n      return this.union.apply(this, arguments);\n    };\n\n    Set.prototype.mergeWith=function(merger){var iters=SLICE$0.call(arguments, 1);\n      return this.union.apply(this, iters);\n    };\n\n    Set.prototype.sort=function(comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator));\n    };\n\n    Set.prototype.sortBy=function(mapper, comparator){\n      // Late binding\n      return OrderedSet(sortFactory(this, comparator, mapper));\n    };\n\n    Set.prototype.wasAltered=function(){\n      return this._map.wasAltered();\n    };\n\n    Set.prototype.__iterate=function(fn, reverse){var this$0=this;\n      return this._map.__iterate(function(_, k){return fn(k, k, this$0)}, reverse);\n    };\n\n    Set.prototype.__iterator=function(type, reverse){\n      return this._map.map(function(_, k){return k}).__iterator(type, reverse);\n    };\n\n    Set.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      var newMap=this._map.__ensureOwner(ownerID);\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this._map=newMap;\n        return this;\n      }\n      return this.__make(newMap, ownerID);\n    };\n\n\n  function isSet(maybeSet){\n    return !!(maybeSet&&maybeSet[IS_SET_SENTINEL]);\n  }\n\n  Set.isSet=isSet;\n\n  var IS_SET_SENTINEL='@@__IMMUTABLE_SET__@@';\n\n  var SetPrototype=Set.prototype;\n  SetPrototype[IS_SET_SENTINEL]=true;\n  SetPrototype[DELETE]=SetPrototype.remove;\n  SetPrototype.mergeDeep=SetPrototype.merge;\n  SetPrototype.mergeDeepWith=SetPrototype.mergeWith;\n  SetPrototype.withMutations=MapPrototype.withMutations;\n  SetPrototype.asMutable=MapPrototype.asMutable;\n  SetPrototype.asImmutable=MapPrototype.asImmutable;\n\n  SetPrototype.__empty=emptySet;\n  SetPrototype.__make=makeSet;\n\n  function updateSet(set, newMap){\n    if(set.__ownerID){\n      set.size=newMap.size;\n      set._map=newMap;\n      return set;\n    }\n    return newMap===set._map ? set :\n      newMap.size===0 ? set.__empty() :\n      set.__make(newMap);\n  }\n\n  function makeSet(map, ownerID){\n    var set=Object.create(SetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_SET;\n  function emptySet(){\n    return EMPTY_SET||(EMPTY_SET=makeSet(emptyMap()));\n  }\n\n  createClass(OrderedSet, Set);\n\n    // @pragma Construction\n\n    function OrderedSet(value){\n      return value===null||value===undefined ? emptyOrderedSet() :\n        isOrderedSet(value) ? value :\n        emptyOrderedSet().withMutations(function(set){\n          var iter=SetIterable(value);\n          assertNotInfinite(iter.size);\n          iter.forEach(function(v){return set.add(v)});\n        });\n    }\n\n    OrderedSet.of=function(){\n      return this(arguments);\n    };\n\n    OrderedSet.fromKeys=function(value){\n      return this(KeyedIterable(value).keySeq());\n    };\n\n    OrderedSet.prototype.toString=function(){\n      return this.__toString('OrderedSet {', '}');\n    };\n\n\n  function isOrderedSet(maybeOrderedSet){\n    return isSet(maybeOrderedSet)&&isOrdered(maybeOrderedSet);\n  }\n\n  OrderedSet.isOrderedSet=isOrderedSet;\n\n  var OrderedSetPrototype=OrderedSet.prototype;\n  OrderedSetPrototype[IS_ORDERED_SENTINEL]=true;\n\n  OrderedSetPrototype.__empty=emptyOrderedSet;\n  OrderedSetPrototype.__make=makeOrderedSet;\n\n  function makeOrderedSet(map, ownerID){\n    var set=Object.create(OrderedSetPrototype);\n    set.size=map ? map.size:0;\n    set._map=map;\n    set.__ownerID=ownerID;\n    return set;\n  }\n\n  var EMPTY_ORDERED_SET;\n  function emptyOrderedSet(){\n    return EMPTY_ORDERED_SET||(EMPTY_ORDERED_SET=makeOrderedSet(emptyOrderedMap()));\n  }\n\n  createClass(Stack, IndexedCollection);\n\n    // @pragma Construction\n\n    function Stack(value){\n      return value===null||value===undefined ? emptyStack() :\n        isStack(value) ? value :\n        emptyStack().unshiftAll(value);\n    }\n\n    Stack.of=function(){\n      return this(arguments);\n    };\n\n    Stack.prototype.toString=function(){\n      return this.__toString('Stack [', ']');\n    };\n\n    // @pragma Access\n\n    Stack.prototype.get=function(index, notSetValue){\n      var head=this._head;\n      index=wrapIndex(this, index);\n      while (head&&index--){\n        head=head.next;\n      }\n      return head ? head.value:notSetValue;\n    };\n\n    Stack.prototype.peek=function(){\n      return this._head&&this._head.value;\n    };\n\n    // @pragma Modification\n\n    Stack.prototype.push=function(){\n      if(arguments.length===0){\n        return this;\n      }\n      var newSize=this.size + arguments.length;\n      var head=this._head;\n      for (var ii=arguments.length - 1; ii >=0; ii--){\n        head={\n          value: arguments[ii],\n          next: head\n        };\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pushAll=function(iter){\n      iter=IndexedIterable(iter);\n      if(iter.size===0){\n        return this;\n      }\n      assertNotInfinite(iter.size);\n      var newSize=this.size;\n      var head=this._head;\n      iter.reverse().forEach(function(value){\n        newSize++;\n        head={\n          value: value,\n          next: head\n        };\n      });\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    Stack.prototype.pop=function(){\n      return this.slice(1);\n    };\n\n    Stack.prototype.unshift=function(){\n      return this.push.apply(this, arguments);\n    };\n\n    Stack.prototype.unshiftAll=function(iter){\n      return this.pushAll(iter);\n    };\n\n    Stack.prototype.shift=function(){\n      return this.pop.apply(this, arguments);\n    };\n\n    Stack.prototype.clear=function(){\n      if(this.size===0){\n        return this;\n      }\n      if(this.__ownerID){\n        this.size=0;\n        this._head=undefined;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return emptyStack();\n    };\n\n    Stack.prototype.slice=function(begin, end){\n      if(wholeSlice(begin, end, this.size)){\n        return this;\n      }\n      var resolvedBegin=resolveBegin(begin, this.size);\n      var resolvedEnd=resolveEnd(end, this.size);\n      if(resolvedEnd!==this.size){\n        // super.slice(begin, end);\n        return IndexedCollection.prototype.slice.call(this, begin, end);\n      }\n      var newSize=this.size - resolvedBegin;\n      var head=this._head;\n      while (resolvedBegin--){\n        head=head.next;\n      }\n      if(this.__ownerID){\n        this.size=newSize;\n        this._head=head;\n        this.__hash=undefined;\n        this.__altered=true;\n        return this;\n      }\n      return makeStack(newSize, head);\n    };\n\n    // @pragma Mutability\n\n    Stack.prototype.__ensureOwner=function(ownerID){\n      if(ownerID===this.__ownerID){\n        return this;\n      }\n      if(!ownerID){\n        this.__ownerID=ownerID;\n        this.__altered=false;\n        return this;\n      }\n      return makeStack(this.size, this._head, ownerID, this.__hash);\n    };\n\n    // @pragma Iteration\n\n    Stack.prototype.__iterate=function(fn, reverse){\n      if(reverse){\n        return this.reverse().__iterate(fn);\n      }\n      var iterations=0;\n      var node=this._head;\n      while (node){\n        if(fn(node.value, iterations++, this)===false){\n          break;\n        }\n        node=node.next;\n      }\n      return iterations;\n    };\n\n    Stack.prototype.__iterator=function(type, reverse){\n      if(reverse){\n        return this.reverse().__iterator(type);\n      }\n      var iterations=0;\n      var node=this._head;\n      return new Iterator(function(){\n        if(node){\n          var value=node.value;\n          node=node.next;\n          return iteratorValue(type, iterations++, value);\n        }\n        return iteratorDone();\n      });\n    };\n\n\n  function isStack(maybeStack){\n    return !!(maybeStack&&maybeStack[IS_STACK_SENTINEL]);\n  }\n\n  Stack.isStack=isStack;\n\n  var IS_STACK_SENTINEL='@@__IMMUTABLE_STACK__@@';\n\n  var StackPrototype=Stack.prototype;\n  StackPrototype[IS_STACK_SENTINEL]=true;\n  StackPrototype.withMutations=MapPrototype.withMutations;\n  StackPrototype.asMutable=MapPrototype.asMutable;\n  StackPrototype.asImmutable=MapPrototype.asImmutable;\n  StackPrototype.wasAltered=MapPrototype.wasAltered;\n\n\n  function makeStack(size, head, ownerID, hash){\n    var map=Object.create(StackPrototype);\n    map.size=size;\n    map._head=head;\n    map.__ownerID=ownerID;\n    map.__hash=hash;\n    map.__altered=false;\n    return map;\n  }\n\n  var EMPTY_STACK;\n  function emptyStack(){\n    return EMPTY_STACK||(EMPTY_STACK=makeStack(0));\n  }\n\n  \n  function mixin(ctor, methods){\n    var keyCopier=function(key){ ctor.prototype[key]=methods[key]; };\n    Object.keys(methods).forEach(keyCopier);\n    Object.getOwnPropertySymbols&&\n      Object.getOwnPropertySymbols(methods).forEach(keyCopier);\n    return ctor;\n  }\n\n  Iterable.Iterator=Iterator;\n\n  mixin(Iterable, {\n\n    // ### Conversion to other types\n\n    toArray: function(){\n      assertNotInfinite(this.size);\n      var array=new Array(this.size||0);\n      this.valueSeq().__iterate(function(v, i){ array[i]=v; });\n      return array;\n    },\n\n    toIndexedSeq: function(){\n      return new ToIndexedSequence(this);\n    },\n\n    toJS: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJS==='function' ? value.toJS():value}\n).__toJS();\n    },\n\n    toJSON: function(){\n      return this.toSeq().map(\n        function(value){return value&&typeof value.toJSON==='function' ? value.toJSON():value}\n).__toJS();\n    },\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, true);\n    },\n\n    toMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Map(this.toKeyedSeq());\n    },\n\n    toObject: function(){\n      assertNotInfinite(this.size);\n      var object={};\n      this.__iterate(function(v, k){ object[k]=v; });\n      return object;\n    },\n\n    toOrderedMap: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedMap(this.toKeyedSeq());\n    },\n\n    toOrderedSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return OrderedSet(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSet: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Set(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toSetSeq: function(){\n      return new ToSetSequence(this);\n    },\n\n    toSeq: function(){\n      return isIndexed(this) ? this.toIndexedSeq() :\n        isKeyed(this) ? this.toKeyedSeq() :\n        this.toSetSeq();\n    },\n\n    toStack: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return Stack(isKeyed(this) ? this.valueSeq():this);\n    },\n\n    toList: function(){\n      // Use Late Binding here to solve the circular dependency.\n      return List(isKeyed(this) ? this.valueSeq():this);\n    },\n\n\n    // ### Common JavaScript methods and properties\n\n    toString: function(){\n      return '[Iterable]';\n    },\n\n    __toString: function(head, tail){\n      if(this.size===0){\n        return head + tail;\n      }\n      return head + ' ' + this.toSeq().map(this.__toStringMapper).join(', ') + ' ' + tail;\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    concat: function(){var values=SLICE$0.call(arguments, 0);\n      return reify(this, concatFactory(this, values));\n    },\n\n    includes: function(searchValue){\n      return this.some(function(value){return is(value, searchValue)});\n    },\n\n    entries: function(){\n      return this.__iterator(ITERATE_ENTRIES);\n    },\n\n    every: function(predicate, context){\n      assertNotInfinite(this.size);\n      var returnValue=true;\n      this.__iterate(function(v, k, c){\n        if(!predicate.call(context, v, k, c)){\n          returnValue=false;\n          return false;\n        }\n      });\n      return returnValue;\n    },\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, true));\n    },\n\n    find: function(predicate, context, notSetValue){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[1]:notSetValue;\n    },\n\n    forEach: function(sideEffect, context){\n      assertNotInfinite(this.size);\n      return this.__iterate(context ? sideEffect.bind(context):sideEffect);\n    },\n\n    join: function(separator){\n      assertNotInfinite(this.size);\n      separator=separator!==undefined ? '' + separator:',';\n      var joined='';\n      var isFirst=true;\n      this.__iterate(function(v){\n        isFirst ? (isFirst=false):(joined +=separator);\n        joined +=v!==null&&v!==undefined ? v.toString():'';\n      });\n      return joined;\n    },\n\n    keys: function(){\n      return this.__iterator(ITERATE_KEYS);\n    },\n\n    map: function(mapper, context){\n      return reify(this, mapFactory(this, mapper, context));\n    },\n\n    reduce: function(reducer, initialReduction, context){\n      assertNotInfinite(this.size);\n      var reduction;\n      var useFirst;\n      if(arguments.length < 2){\n        useFirst=true;\n      }else{\n        reduction=initialReduction;\n      }\n      this.__iterate(function(v, k, c){\n        if(useFirst){\n          useFirst=false;\n          reduction=v;\n        }else{\n          reduction=reducer.call(context, reduction, v, k, c);\n        }\n      });\n      return reduction;\n    },\n\n    reduceRight: function(reducer, initialReduction, context){\n      var reversed=this.toKeyedSeq().reverse();\n      return reversed.reduce.apply(reversed, arguments);\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, true));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, true));\n    },\n\n    some: function(predicate, context){\n      return !this.every(not(predicate), context);\n    },\n\n    sort: function(comparator){\n      return reify(this, sortFactory(this, comparator));\n    },\n\n    values: function(){\n      return this.__iterator(ITERATE_VALUES);\n    },\n\n\n    // ### More sequential methods\n\n    butLast: function(){\n      return this.slice(0, -1);\n    },\n\n    isEmpty: function(){\n      return this.size!==undefined ? this.size===0:!this.some(function(){return true});\n    },\n\n    count: function(predicate, context){\n      return ensureSize(\n        predicate ? this.toSeq().filter(predicate, context):this\n);\n    },\n\n    countBy: function(grouper, context){\n      return countByFactory(this, grouper, context);\n    },\n\n    equals: function(other){\n      return deepEqual(this, other);\n    },\n\n    entrySeq: function(){\n      var iterable=this;\n      if(iterable._cache){\n        // We cache as an entries array, so we can just return the cache!\n        return new ArraySeq(iterable._cache);\n      }\n      var entriesSequence=iterable.toSeq().map(entryMapper).toIndexedSeq();\n      entriesSequence.fromEntrySeq=function(){return iterable.toSeq()};\n      return entriesSequence;\n    },\n\n    filterNot: function(predicate, context){\n      return this.filter(not(predicate), context);\n    },\n\n    findEntry: function(predicate, context, notSetValue){\n      var found=notSetValue;\n      this.__iterate(function(v, k, c){\n        if(predicate.call(context, v, k, c)){\n          found=[k, v];\n          return false;\n        }\n      });\n      return found;\n    },\n\n    findKey: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry&&entry[0];\n    },\n\n    findLast: function(predicate, context, notSetValue){\n      return this.toKeyedSeq().reverse().find(predicate, context, notSetValue);\n    },\n\n    findLastEntry: function(predicate, context, notSetValue){\n      return this.toKeyedSeq().reverse().findEntry(predicate, context, notSetValue);\n    },\n\n    findLastKey: function(predicate, context){\n      return this.toKeyedSeq().reverse().findKey(predicate, context);\n    },\n\n    first: function(){\n      return this.find(returnTrue);\n    },\n\n    flatMap: function(mapper, context){\n      return reify(this, flatMapFactory(this, mapper, context));\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, true));\n    },\n\n    fromEntrySeq: function(){\n      return new FromEntriesSequence(this);\n    },\n\n    get: function(searchKey, notSetValue){\n      return this.find(function(_, key){return is(key, searchKey)}, undefined, notSetValue);\n    },\n\n    getIn: function(searchKeyPath, notSetValue){\n      var nested=this;\n      // Note: in an ES6 environment, we would prefer:\n      // for (var key of searchKeyPath){\n      var iter=forceIterator(searchKeyPath);\n      var step;\n      while (!(step=iter.next()).done){\n        var key=step.value;\n        nested=nested&&nested.get ? nested.get(key, NOT_SET):NOT_SET;\n        if(nested===NOT_SET){\n          return notSetValue;\n        }\n      }\n      return nested;\n    },\n\n    groupBy: function(grouper, context){\n      return groupByFactory(this, grouper, context);\n    },\n\n    has: function(searchKey){\n      return this.get(searchKey, NOT_SET)!==NOT_SET;\n    },\n\n    hasIn: function(searchKeyPath){\n      return this.getIn(searchKeyPath, NOT_SET)!==NOT_SET;\n    },\n\n    isSubset: function(iter){\n      iter=typeof iter.includes==='function' ? iter:Iterable(iter);\n      return this.every(function(value){return iter.includes(value)});\n    },\n\n    isSuperset: function(iter){\n      iter=typeof iter.isSubset==='function' ? iter:Iterable(iter);\n      return iter.isSubset(this);\n    },\n\n    keyOf: function(searchValue){\n      return this.findKey(function(value){return is(value, searchValue)});\n    },\n\n    keySeq: function(){\n      return this.toSeq().map(keyMapper).toIndexedSeq();\n    },\n\n    last: function(){\n      return this.toSeq().reverse().first();\n    },\n\n    lastKeyOf: function(searchValue){\n      return this.toKeyedSeq().reverse().keyOf(searchValue);\n    },\n\n    max: function(comparator){\n      return maxFactory(this, comparator);\n    },\n\n    maxBy: function(mapper, comparator){\n      return maxFactory(this, comparator, mapper);\n    },\n\n    min: function(comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator);\n    },\n\n    minBy: function(mapper, comparator){\n      return maxFactory(this, comparator ? neg(comparator):defaultNegComparator, mapper);\n    },\n\n    rest: function(){\n      return this.slice(1);\n    },\n\n    skip: function(amount){\n      return this.slice(Math.max(0, amount));\n    },\n\n    skipLast: function(amount){\n      return reify(this, this.toSeq().reverse().skip(amount).reverse());\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, true));\n    },\n\n    skipUntil: function(predicate, context){\n      return this.skipWhile(not(predicate), context);\n    },\n\n    sortBy: function(mapper, comparator){\n      return reify(this, sortFactory(this, comparator, mapper));\n    },\n\n    take: function(amount){\n      return this.slice(0, Math.max(0, amount));\n    },\n\n    takeLast: function(amount){\n      return reify(this, this.toSeq().reverse().take(amount).reverse());\n    },\n\n    takeWhile: function(predicate, context){\n      return reify(this, takeWhileFactory(this, predicate, context));\n    },\n\n    takeUntil: function(predicate, context){\n      return this.takeWhile(not(predicate), context);\n    },\n\n    valueSeq: function(){\n      return this.toIndexedSeq();\n    },\n\n\n    // ### Hashable Object\n\n    hashCode: function(){\n      return this.__hash||(this.__hash=hashIterable(this));\n    }\n\n\n    // ### Internal\n\n    // abstract __iterate(fn, reverse)\n\n    // abstract __iterator(type, reverse)\n  });\n\n  // var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';\n  // var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';\n  // var IS_INDEXED_SENTINEL='@@__IMMUTABLE_INDEXED__@@';\n  // var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';\n\n  var IterablePrototype=Iterable.prototype;\n  IterablePrototype[IS_ITERABLE_SENTINEL]=true;\n  IterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.values;\n  IterablePrototype.__toJS=IterablePrototype.toArray;\n  IterablePrototype.__toStringMapper=quoteString;\n  IterablePrototype.inspect=\n  IterablePrototype.toSource=function(){ return this.toString(); };\n  IterablePrototype.chain=IterablePrototype.flatMap;\n  IterablePrototype.contains=IterablePrototype.includes;\n\n  mixin(KeyedIterable, {\n\n    // ### More sequential methods\n\n    flip: function(){\n      return reify(this, flipFactory(this));\n    },\n\n    mapEntries: function(mapper, context){var this$0=this;\n      var iterations=0;\n      return reify(this,\n        this.toSeq().map(\n          function(v, k){return mapper.call(context, [k, v], iterations++, this$0)}\n).fromEntrySeq()\n);\n    },\n\n    mapKeys: function(mapper, context){var this$0=this;\n      return reify(this,\n        this.toSeq().flip().map(\n          function(k, v){return mapper.call(context, k, v, this$0)}\n).flip()\n);\n    }\n\n  });\n\n  var KeyedIterablePrototype=KeyedIterable.prototype;\n  KeyedIterablePrototype[IS_KEYED_SENTINEL]=true;\n  KeyedIterablePrototype[ITERATOR_SYMBOL]=IterablePrototype.entries;\n  KeyedIterablePrototype.__toJS=IterablePrototype.toObject;\n  KeyedIterablePrototype.__toStringMapper=function(v, k){return JSON.stringify(k) + ': ' + quoteString(v)};\n\n\n\n  mixin(IndexedIterable, {\n\n    // ### Conversion to other types\n\n    toKeyedSeq: function(){\n      return new ToKeyedSequence(this, false);\n    },\n\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    filter: function(predicate, context){\n      return reify(this, filterFactory(this, predicate, context, false));\n    },\n\n    findIndex: function(predicate, context){\n      var entry=this.findEntry(predicate, context);\n      return entry ? entry[0]:-1;\n    },\n\n    indexOf: function(searchValue){\n      var key=this.keyOf(searchValue);\n      return key===undefined ? -1:key;\n    },\n\n    lastIndexOf: function(searchValue){\n      var key=this.lastKeyOf(searchValue);\n      return key===undefined ? -1:key;\n    },\n\n    reverse: function(){\n      return reify(this, reverseFactory(this, false));\n    },\n\n    slice: function(begin, end){\n      return reify(this, sliceFactory(this, begin, end, false));\n    },\n\n    splice: function(index, removeNum ){\n      var numArgs=arguments.length;\n      removeNum=Math.max(removeNum | 0, 0);\n      if(numArgs===0||(numArgs===2&&!removeNum)){\n        return this;\n      }\n      // If index is negative, it should resolve relative to the size of the\n      // collection. However size may be expensive to compute if not cached, so\n      // only call count() if the number is in fact negative.\n      index=resolveBegin(index, index < 0 ? this.count():this.size);\n      var spliced=this.slice(0, index);\n      return reify(\n        this,\n        numArgs===1 ?\n          spliced :\n          spliced.concat(arrCopy(arguments, 2), this.slice(index + removeNum))\n);\n    },\n\n\n    // ### More collection methods\n\n    findLastIndex: function(predicate, context){\n      var entry=this.findLastEntry(predicate, context);\n      return entry ? entry[0]:-1;\n    },\n\n    first: function(){\n      return this.get(0);\n    },\n\n    flatten: function(depth){\n      return reify(this, flattenFactory(this, depth, false));\n    },\n\n    get: function(index, notSetValue){\n      index=wrapIndex(this, index);\n      return (index < 0||(this.size===Infinity||\n          (this.size!==undefined&&index > this.size))) ?\n        notSetValue :\n        this.find(function(_, key){return key===index}, undefined, notSetValue);\n    },\n\n    has: function(index){\n      index=wrapIndex(this, index);\n      return index >=0&&(this.size!==undefined ?\n        this.size===Infinity||index < this.size :\n        this.indexOf(index)!==-1\n);\n    },\n\n    interpose: function(separator){\n      return reify(this, interposeFactory(this, separator));\n    },\n\n    interleave: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      var zipped=zipWithFactory(this.toSeq(), IndexedSeq.of, iterables);\n      var interleaved=zipped.flatten(true);\n      if(zipped.size){\n        interleaved.size=zipped.size * iterables.length;\n      }\n      return reify(this, interleaved);\n    },\n\n    keySeq: function(){\n      return Range(0, this.size);\n    },\n\n    last: function(){\n      return this.get(-1);\n    },\n\n    skipWhile: function(predicate, context){\n      return reify(this, skipWhileFactory(this, predicate, context, false));\n    },\n\n    zip: function(){\n      var iterables=[this].concat(arrCopy(arguments));\n      return reify(this, zipWithFactory(this, defaultZipper, iterables));\n    },\n\n    zipWith: function(zipper){\n      var iterables=arrCopy(arguments);\n      iterables[0]=this;\n      return reify(this, zipWithFactory(this, zipper, iterables));\n    }\n\n  });\n\n  IndexedIterable.prototype[IS_INDEXED_SENTINEL]=true;\n  IndexedIterable.prototype[IS_ORDERED_SENTINEL]=true;\n\n\n\n  mixin(SetIterable, {\n\n    // ### ES6 Collection methods (ES6 Array and Map)\n\n    get: function(value, notSetValue){\n      return this.has(value) ? value:notSetValue;\n    },\n\n    includes: function(value){\n      return this.has(value);\n    },\n\n\n    // ### More sequential methods\n\n    keySeq: function(){\n      return this.valueSeq();\n    }\n\n  });\n\n  SetIterable.prototype.has=IterablePrototype.includes;\n  SetIterable.prototype.contains=SetIterable.prototype.includes;\n\n\n  // Mixin subclasses\n\n  mixin(KeyedSeq, KeyedIterable.prototype);\n  mixin(IndexedSeq, IndexedIterable.prototype);\n  mixin(SetSeq, SetIterable.prototype);\n\n  mixin(KeyedCollection, KeyedIterable.prototype);\n  mixin(IndexedCollection, IndexedIterable.prototype);\n  mixin(SetCollection, SetIterable.prototype);\n\n\n  // #pragma Helper functions\n\n  function keyMapper(v, k){\n    return k;\n  }\n\n  function entryMapper(v, k){\n    return [k, v];\n  }\n\n  function not(predicate){\n    return function(){\n      return !predicate.apply(this, arguments);\n    }\n  }\n\n  function neg(predicate){\n    return function(){\n      return -predicate.apply(this, arguments);\n    }\n  }\n\n  function quoteString(value){\n    return typeof value==='string' ? JSON.stringify(value):String(value);\n  }\n\n  function defaultZipper(){\n    return arrCopy(arguments);\n  }\n\n  function defaultNegComparator(a, b){\n    return a < b ? 1:a > b ? -1:0;\n  }\n\n  function hashIterable(iterable){\n    if(iterable.size===Infinity){\n      return 0;\n    }\n    var ordered=isOrdered(iterable);\n    var keyed=isKeyed(iterable);\n    var h=ordered ? 1:0;\n    var size=iterable.__iterate(\n      keyed ?\n        ordered ?\n          function(v, k){ h=31 * h + hashMerge(hash(v), hash(k)) | 0; } :\n          function(v, k){ h=h + hashMerge(hash(v), hash(k)) | 0; } :\n        ordered ?\n          function(v){ h=31 * h + hash(v) | 0; } :\n          function(v){ h=h + hash(v) | 0; }\n);\n    return murmurHashOfSize(size, h);\n  }\n\n  function murmurHashOfSize(size, h){\n    h=imul(h, 0xCC9E2D51);\n    h=imul(h << 15 | h >>> -15, 0x1B873593);\n    h=imul(h << 13 | h >>> -13, 5);\n    h=(h + 0xE6546B64 | 0) ^ size;\n    h=imul(h ^ h >>> 16, 0x85EBCA6B);\n    h=imul(h ^ h >>> 13, 0xC2B2AE35);\n    h=smi(h ^ h >>> 16);\n    return h;\n  }\n\n  function hashMerge(a, b){\n    return a ^ b + 0x9E3779B9 + (a << 6) + (a >> 2) | 0; // int\n  }\n\n  var Immutable={\n\n    Iterable: Iterable,\n\n    Seq: Seq,\n    Collection: Collection,\n    Map: Map,\n    OrderedMap: OrderedMap,\n    List: List,\n    Stack: Stack,\n    Set: Set,\n    OrderedSet: OrderedSet,\n\n    Record: Record,\n    Range: Range,\n    Repeat: Repeat,\n\n    is: is,\n    fromJS: fromJS\n\n  };\n\n  return Immutable;\n\n}));\n\n//# sourceURL=webpack:///./node_modules/immutable/dist/immutable.js?");
}),
"./node_modules/object-assign/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nvar getOwnPropertySymbols=Object.getOwnPropertySymbols;\nvar hasOwnProperty=Object.prototype.hasOwnProperty;\nvar propIsEnumerable=Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val){\n\tif(val===null||val===undefined){\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative(){\n\ttry {\n\t\tif(!Object.assign){\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1=new String('abc');  // eslint-disable-line no-new-wrappers\n\t\ttest1[5]='de';\n\t\tif(Object.getOwnPropertyNames(test1)[0]==='5'){\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2={};\n\t\tfor (var i=0; i < 10; i++){\n\t\t\ttest2['_' + String.fromCharCode(i)]=i;\n\t\t}\n\t\tvar order2=Object.getOwnPropertyNames(test2).map(function (n){\n\t\t\treturn test2[n];\n\t\t});\n\t\tif(order2.join('')!=='0123456789'){\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3={};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter){\n\t\t\ttest3[letter]=letter;\n\t\t});\n\t\tif(Object.keys(Object.assign({}, test3)).join('')!==\n\t\t\t\t'abcdefghijklmnopqrst'){\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err){\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports=shouldUseNative() ? Object.assign:function (target, source){\n\tvar from;\n\tvar to=toObject(target);\n\tvar symbols;\n\n\tfor (var s=1; s < arguments.length; s++){\n\t\tfrom=Object(arguments[s]);\n\n\t\tfor (var key in from){\n\t\t\tif(hasOwnProperty.call(from, key)){\n\t\t\t\tto[key]=from[key];\n\t\t\t}\n\t\t}\n\n\t\tif(getOwnPropertySymbols){\n\t\t\tsymbols=getOwnPropertySymbols(from);\n\t\t\tfor (var i=0; i < symbols.length; i++){\n\t\t\t\tif(propIsEnumerable.call(from, symbols[i])){\n\t\t\t\t\tto[symbols[i]]=from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n//# sourceURL=webpack:///./node_modules/object-assign/index.js?");
}),
"./node_modules/prepend-http/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\nmodule.exports=function (url){\n\tif(typeof url!=='string'){\n\t\tthrow new TypeError('Expected a string, got ' + typeof url);\n\t}\n\n\turl=url.trim();\n\n\tif(/^\\.*\\/|^(?!localhost)\\w+:/.test(url)){\n\t\treturn url;\n\t}\n\n\treturn url.replace(/^(?!(?:\\w+:)?\\/\\/)/, 'http://');\n};\n\n\n//# sourceURL=webpack:///./node_modules/prepend-http/index.js?");
}),
"./node_modules/process/browser.js":
(function(module, exports){
eval("// shim for using process in browser\nvar process=module.exports={};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things.  But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals.  It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout(){\n    throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout (){\n    throw new Error('clearTimeout has not been defined');\n}\n(function (){\n    try {\n        if(typeof setTimeout==='function'){\n            cachedSetTimeout=setTimeout;\n        }else{\n            cachedSetTimeout=defaultSetTimout;\n        }\n    } catch (e){\n        cachedSetTimeout=defaultSetTimout;\n    }\n    try {\n        if(typeof clearTimeout==='function'){\n            cachedClearTimeout=clearTimeout;\n        }else{\n            cachedClearTimeout=defaultClearTimeout;\n        }\n    } catch (e){\n        cachedClearTimeout=defaultClearTimeout;\n    }\n} ())\nfunction runTimeout(fun){\n    if(cachedSetTimeout===setTimeout){\n        //normal enviroments in sane situations\n        return setTimeout(fun, 0);\n    }\n    // if setTimeout wasn't available but was latter defined\n    if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){\n        cachedSetTimeout=setTimeout;\n        return setTimeout(fun, 0);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedSetTimeout(fun, 0);\n    } catch(e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n            return cachedSetTimeout.call(null, fun, 0);\n        } catch(e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n            return cachedSetTimeout.call(this, fun, 0);\n        }\n    }\n\n\n}\nfunction runClearTimeout(marker){\n    if(cachedClearTimeout===clearTimeout){\n        //normal enviroments in sane situations\n        return clearTimeout(marker);\n    }\n    // if clearTimeout wasn't available but was latter defined\n    if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){\n        cachedClearTimeout=clearTimeout;\n        return clearTimeout(marker);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedClearTimeout(marker);\n    } catch (e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n            return cachedClearTimeout.call(null, marker);\n        } catch (e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n            // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n            return cachedClearTimeout.call(this, marker);\n        }\n    }\n\n\n\n}\nvar queue=[];\nvar draining=false;\nvar currentQueue;\nvar queueIndex=-1;\n\nfunction cleanUpNextTick(){\n    if(!draining||!currentQueue){\n        return;\n    }\n    draining=false;\n    if(currentQueue.length){\n        queue=currentQueue.concat(queue);\n    }else{\n        queueIndex=-1;\n    }\n    if(queue.length){\n        drainQueue();\n    }\n}\n\nfunction drainQueue(){\n    if(draining){\n        return;\n    }\n    var timeout=runTimeout(cleanUpNextTick);\n    draining=true;\n\n    var len=queue.length;\n    while(len){\n        currentQueue=queue;\n        queue=[];\n        while (++queueIndex < len){\n            if(currentQueue){\n                currentQueue[queueIndex].run();\n            }\n        }\n        queueIndex=-1;\n        len=queue.length;\n    }\n    currentQueue=null;\n    draining=false;\n    runClearTimeout(timeout);\n}\n\nprocess.nextTick=function (fun){\n    var args=new Array(arguments.length - 1);\n    if(arguments.length > 1){\n        for (var i=1; i < arguments.length; i++){\n            args[i - 1]=arguments[i];\n        }\n    }\n    queue.push(new Item(fun, args));\n    if(queue.length===1&&!draining){\n        runTimeout(drainQueue);\n    }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array){\n    this.fun=fun;\n    this.array=array;\n}\nItem.prototype.run=function (){\n    this.fun.apply(null, this.array);\n};\nprocess.title='browser';\nprocess.browser=true;\nprocess.env={};\nprocess.argv=[];\nprocess.version=''; // empty string to avoid regexp issues\nprocess.versions={};\n\nfunction noop(){}\n\nprocess.on=noop;\nprocess.addListener=noop;\nprocess.once=noop;\nprocess.off=noop;\nprocess.removeListener=noop;\nprocess.removeAllListeners=noop;\nprocess.emit=noop;\nprocess.prependListener=noop;\nprocess.prependOnceListener=noop;\n\nprocess.listeners=function (name){ return [] }\n\nprocess.binding=function (name){\n    throw new Error('process.binding is not supported');\n};\n\nprocess.cwd=function (){ return '/' };\nprocess.chdir=function (dir){\n    throw new Error('process.chdir is not supported');\n};\nprocess.umask=function(){ return 0; };\n\n\n//# sourceURL=webpack:///./node_modules/process/browser.js?");
}),
"./node_modules/prop-types/checkPropTypes.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nvar printWarning=function(){};\n\nif(true){\n  var ReactPropTypesSecret=__webpack_require__( \"./node_modules/prop-types/lib/ReactPropTypesSecret.js\");\n  var loggedTypeFailures={};\n  var has=__webpack_require__( \"./node_modules/prop-types/lib/has.js\");\n\n  printWarning=function(text){\n    var message='Warning: ' + text;\n    if(typeof console!=='undefined'){\n      console.error(message);\n    }\n    try {\n      // --- Welcome to debugging React ---\n      // This error was thrown as a convenience so that you can use this stack\n      // to find the callsite that caused this warning to fire.\n      throw new Error(message);\n    } catch (x){  }\n  };\n}\n\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack){\n  if(true){\n    for (var typeSpecName in typeSpecs){\n      if(has(typeSpecs, typeSpecName)){\n        var error;\n        // Prop type validation may throw. In case they do, we don't want to\n        // fail the render phase where it didn't fail before. So we log it.\n        // After these have been cleaned up, we'll let them throw.\n        try {\n          // This is intentionally an invariant that gets caught. It's the same\n          // behavior as without this statement except with a better message.\n          if(typeof typeSpecs[typeSpecName]!=='function'){\n            var err=Error(\n              (componentName||'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n              'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n              'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n);\n            err.name='Invariant Violation';\n            throw err;\n          }\n          error=typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n        } catch (ex){\n          error=ex;\n        }\n        if(error&&!(error instanceof Error)){\n          printWarning(\n            (componentName||'React class') + ': type specification of ' +\n            location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n            'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n            'You may have forgotten to pass an argument to the type checker ' +\n            'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n            'shape all require an argument).'\n);\n        }\n        if(error instanceof Error&&!(error.message in loggedTypeFailures)){\n          // Only monitor this failure once because there tends to be a lot of the\n          // same error.\n          loggedTypeFailures[error.message]=true;\n\n          var stack=getStack ? getStack():'';\n\n          printWarning(\n            'Failed ' + location + ' type: ' + error.message + (stack!=null ? stack:'')\n);\n        }\n      }\n    }\n  }\n}\n\n\ncheckPropTypes.resetWarningCache=function(){\n  if(true){\n    loggedTypeFailures={};\n  }\n}\n\nmodule.exports=checkPropTypes;\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/checkPropTypes.js?");
}),
"./node_modules/prop-types/factoryWithTypeCheckers.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nvar ReactIs=__webpack_require__( \"./node_modules/react-is/index.js\");\nvar assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\n\nvar ReactPropTypesSecret=__webpack_require__( \"./node_modules/prop-types/lib/ReactPropTypesSecret.js\");\nvar has=__webpack_require__( \"./node_modules/prop-types/lib/has.js\");\nvar checkPropTypes=__webpack_require__( \"./node_modules/prop-types/checkPropTypes.js\");\n\nvar printWarning=function(){};\n\nif(true){\n  printWarning=function(text){\n    var message='Warning: ' + text;\n    if(typeof console!=='undefined'){\n      console.error(message);\n    }\n    try {\n      // --- Welcome to debugging React ---\n      // This error was thrown as a convenience so that you can use this stack\n      // to find the callsite that caused this warning to fire.\n      throw new Error(message);\n    } catch (x){}\n  };\n}\n\nfunction emptyFunctionThatReturnsNull(){\n  return null;\n}\n\nmodule.exports=function(isValidElement, throwOnDirectAccess){\n  \n  var ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\n  var FAUX_ITERATOR_SYMBOL='@@iterator'; // Before Symbol spec.\n\n  \n  function getIteratorFn(maybeIterable){\n    var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);\n    if(typeof iteratorFn==='function'){\n      return iteratorFn;\n    }\n  }\n\n  /**\n   * Collection of methods that allow declaration and validation of props that are\n   * supplied to React components. Example usage:\n   *\n   *   var Props=require('ReactPropTypes');\n   *   var MyArticle=React.createClass({\n   *     propTypes: {\n   *       // An optional string prop named \"description\".\n   *       description: Props.string,\n   *\n   *       // A required enum prop named \"category\".\n   *       category: Props.oneOf(['News','Photos']).isRequired,\n   *\n   *       // A prop named \"dialog\" that requires an instance of Dialog.\n   *       dialog: Props.instanceOf(Dialog).isRequired\n   *     },\n   *     render: function(){ ... }\n   *   });\n   *\n   * A more formal specification of how these methods are used:\n   *\n   *   type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n   *   decl := ReactPropTypes.{type}(.isRequired)?\n   *\n   * Each and every declaration produces a function with the same signature. This\n   * allows the creation of custom validation functions. For example:\n   *\n   *  var MyLink=React.createClass({\n   *    propTypes: {\n   *      // An optional string or URI prop named \"href\".\n   *      href: function(props, propName, componentName){\n   *        var propValue=props[propName];\n   *        if(propValue!=null&&typeof propValue!=='string'&&\n   *            !(propValue instanceof URI)){\n   *          return new Error(\n   *            'Expected a string or an URI for ' + propName + ' in ' +\n   *            componentName\n   *);\n   *        }\n   *      }\n   *    },\n   *    render: function(){...}\n   *  });\n   *\n   * @internal\n   */\n\n  var ANONYMOUS='<<anonymous>>';\n\n  // Important!\n  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n  var ReactPropTypes={\n    array: createPrimitiveTypeChecker('array'),\n    bigint: createPrimitiveTypeChecker('bigint'),\n    bool: createPrimitiveTypeChecker('boolean'),\n    func: createPrimitiveTypeChecker('function'),\n    number: createPrimitiveTypeChecker('number'),\n    object: createPrimitiveTypeChecker('object'),\n    string: createPrimitiveTypeChecker('string'),\n    symbol: createPrimitiveTypeChecker('symbol'),\n\n    any: createAnyTypeChecker(),\n    arrayOf: createArrayOfTypeChecker,\n    element: createElementTypeChecker(),\n    elementType: createElementTypeTypeChecker(),\n    instanceOf: createInstanceTypeChecker,\n    node: createNodeChecker(),\n    objectOf: createObjectOfTypeChecker,\n    oneOf: createEnumTypeChecker,\n    oneOfType: createUnionTypeChecker,\n    shape: createShapeTypeChecker,\n    exact: createStrictShapeTypeChecker,\n  };\n\n  \n  \n  function is(x, y){\n    // SameValue algorithm\n    if(x===y){\n      // Steps 1-5, 7-10\n      // Steps 6.b-6.e: +0!=-0\n      return x!==0||1 / x===1 / y;\n    }else{\n      // Step 6.a: NaN==NaN\n      return x!==x&&y!==y;\n    }\n  }\n  \n\n  \n  function PropTypeError(message, data){\n    this.message=message;\n    this.data=data&&typeof data==='object' ? data: {};\n    this.stack='';\n  }\n  // Make `instanceof Error` still work for returned errors.\n  PropTypeError.prototype=Error.prototype;\n\n  function createChainableTypeChecker(validate){\n    if(true){\n      var manualPropTypeCallCache={};\n      var manualPropTypeWarningCount=0;\n    }\n    function checkType(isRequired, props, propName, componentName, location, propFullName, secret){\n      componentName=componentName||ANONYMOUS;\n      propFullName=propFullName||propName;\n\n      if(secret!==ReactPropTypesSecret){\n        if(throwOnDirectAccess){\n          // New behavior only for users of `prop-types` package\n          var err=new Error(\n            'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n            'Use `PropTypes.checkPropTypes()` to call them. ' +\n            'Read more at http://fb.me/use-check-prop-types'\n);\n          err.name='Invariant Violation';\n          throw err;\n        }else if(true&&typeof console!=='undefined'){\n          // Old behavior for people using React.PropTypes\n          var cacheKey=componentName + ':' + propName;\n          if(\n            !manualPropTypeCallCache[cacheKey]&&\n            // Avoid spamming the console because they are often not actionable except for lib authors\n            manualPropTypeWarningCount < 3\n){\n            printWarning(\n              'You are manually calling a React.PropTypes validation ' +\n              'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n              'and will throw in the standalone `prop-types` package. ' +\n              'You may be seeing this warning due to a third-party PropTypes ' +\n              'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n);\n            manualPropTypeCallCache[cacheKey]=true;\n            manualPropTypeWarningCount++;\n          }\n        }\n      }\n      if(props[propName]==null){\n        if(isRequired){\n          if(props[propName]===null){\n            return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n          }\n          return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n        }\n        return null;\n      }else{\n        return validate(props, propName, componentName, location, propFullName);\n      }\n    }\n\n    var chainedCheckType=checkType.bind(null, false);\n    chainedCheckType.isRequired=checkType.bind(null, true);\n\n    return chainedCheckType;\n  }\n\n  function createPrimitiveTypeChecker(expectedType){\n    function validate(props, propName, componentName, location, propFullName, secret){\n      var propValue=props[propName];\n      var propType=getPropType(propValue);\n      if(propType!==expectedType){\n        // `propValue` being instance of, say, date/regexp, pass the 'object'\n        // check, but we can offer a more precise error message here rather than\n        // 'of type `object`'.\n        var preciseType=getPreciseType(propValue);\n\n        return new PropTypeError(\n          'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n          {expectedType: expectedType}\n);\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createAnyTypeChecker(){\n    return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n  }\n\n  function createArrayOfTypeChecker(typeChecker){\n    function validate(props, propName, componentName, location, propFullName){\n      if(typeof typeChecker!=='function'){\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n      }\n      var propValue=props[propName];\n      if(!Array.isArray(propValue)){\n        var propType=getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n      }\n      for (var i=0; i < propValue.length; i++){\n        var error=typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n        if(error instanceof Error){\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createElementTypeChecker(){\n    function validate(props, propName, componentName, location, propFullName){\n      var propValue=props[propName];\n      if(!isValidElement(propValue)){\n        var propType=getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createElementTypeTypeChecker(){\n    function validate(props, propName, componentName, location, propFullName){\n      var propValue=props[propName];\n      if(!ReactIs.isValidElementType(propValue)){\n        var propType=getPropType(propValue);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createInstanceTypeChecker(expectedClass){\n    function validate(props, propName, componentName, location, propFullName){\n      if(!(props[propName] instanceof expectedClass)){\n        var expectedClassName=expectedClass.name||ANONYMOUS;\n        var actualClassName=getClassName(props[propName]);\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createEnumTypeChecker(expectedValues){\n    if(!Array.isArray(expectedValues)){\n      if(true){\n        if(arguments.length > 1){\n          printWarning(\n            'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n            'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n);\n        }else{\n          printWarning('Invalid argument supplied to oneOf, expected an array.');\n        }\n      }\n      return emptyFunctionThatReturnsNull;\n    }\n\n    function validate(props, propName, componentName, location, propFullName){\n      var propValue=props[propName];\n      for (var i=0; i < expectedValues.length; i++){\n        if(is(propValue, expectedValues[i])){\n          return null;\n        }\n      }\n\n      var valuesString=JSON.stringify(expectedValues, function replacer(key, value){\n        var type=getPreciseType(value);\n        if(type==='symbol'){\n          return String(value);\n        }\n        return value;\n      });\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createObjectOfTypeChecker(typeChecker){\n    function validate(props, propName, componentName, location, propFullName){\n      if(typeof typeChecker!=='function'){\n        return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n      }\n      var propValue=props[propName];\n      var propType=getPropType(propValue);\n      if(propType!=='object'){\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n      }\n      for (var key in propValue){\n        if(has(propValue, key)){\n          var error=typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n          if(error instanceof Error){\n            return error;\n          }\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createUnionTypeChecker(arrayOfTypeCheckers){\n    if(!Array.isArray(arrayOfTypeCheckers)){\n       true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.'):undefined;\n      return emptyFunctionThatReturnsNull;\n    }\n\n    for (var i=0; i < arrayOfTypeCheckers.length; i++){\n      var checker=arrayOfTypeCheckers[i];\n      if(typeof checker!=='function'){\n        printWarning(\n          'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n          'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n);\n        return emptyFunctionThatReturnsNull;\n      }\n    }\n\n    function validate(props, propName, componentName, location, propFullName){\n      var expectedTypes=[];\n      for (var i=0; i < arrayOfTypeCheckers.length; i++){\n        var checker=arrayOfTypeCheckers[i];\n        var checkerResult=checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n        if(checkerResult==null){\n          return null;\n        }\n        if(checkerResult.data&&has(checkerResult.data, 'expectedType')){\n          expectedTypes.push(checkerResult.data.expectedType);\n        }\n      }\n      var expectedTypesMessage=(expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n      return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createNodeChecker(){\n    function validate(props, propName, componentName, location, propFullName){\n      if(!isNode(props[propName])){\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function invalidValidatorError(componentName, location, propFullName, key, type){\n    return new PropTypeError(\n      (componentName||'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n      'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n);\n  }\n\n  function createShapeTypeChecker(shapeTypes){\n    function validate(props, propName, componentName, location, propFullName){\n      var propValue=props[propName];\n      var propType=getPropType(propValue);\n      if(propType!=='object'){\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n      }\n      for (var key in shapeTypes){\n        var checker=shapeTypes[key];\n        if(typeof checker!=='function'){\n          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n        }\n        var error=checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n        if(error){\n          return error;\n        }\n      }\n      return null;\n    }\n    return createChainableTypeChecker(validate);\n  }\n\n  function createStrictShapeTypeChecker(shapeTypes){\n    function validate(props, propName, componentName, location, propFullName){\n      var propValue=props[propName];\n      var propType=getPropType(propValue);\n      if(propType!=='object'){\n        return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n      }\n      // We need to check all keys in case some are required but missing from props.\n      var allKeys=assign({}, props[propName], shapeTypes);\n      for (var key in allKeys){\n        var checker=shapeTypes[key];\n        if(has(shapeTypes, key)&&typeof checker!=='function'){\n          return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n        }\n        if(!checker){\n          return new PropTypeError(\n            'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n            '\\nBad object: ' + JSON.stringify(props[propName], null, '  ') +\n            '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, '  ')\n);\n        }\n        var error=checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n        if(error){\n          return error;\n        }\n      }\n      return null;\n    }\n\n    return createChainableTypeChecker(validate);\n  }\n\n  function isNode(propValue){\n    switch (typeof propValue){\n      case 'number':\n      case 'string':\n      case 'undefined':\n        return true;\n      case 'boolean':\n        return !propValue;\n      case 'object':\n        if(Array.isArray(propValue)){\n          return propValue.every(isNode);\n        }\n        if(propValue===null||isValidElement(propValue)){\n          return true;\n        }\n\n        var iteratorFn=getIteratorFn(propValue);\n        if(iteratorFn){\n          var iterator=iteratorFn.call(propValue);\n          var step;\n          if(iteratorFn!==propValue.entries){\n            while (!(step=iterator.next()).done){\n              if(!isNode(step.value)){\n                return false;\n              }\n            }\n          }else{\n            // Iterator will provide entry [k,v] tuples rather than values.\n            while (!(step=iterator.next()).done){\n              var entry=step.value;\n              if(entry){\n                if(!isNode(entry[1])){\n                  return false;\n                }\n              }\n            }\n          }\n        }else{\n          return false;\n        }\n\n        return true;\n      default:\n        return false;\n    }\n  }\n\n  function isSymbol(propType, propValue){\n    // Native Symbol.\n    if(propType==='symbol'){\n      return true;\n    }\n\n    // falsy value can't be a Symbol\n    if(!propValue){\n      return false;\n    }\n\n    // 19.4.3.5 Symbol.prototype[@@toStringTag]==='Symbol'\n    if(propValue['@@toStringTag']==='Symbol'){\n      return true;\n    }\n\n    // Fallback for non-spec compliant Symbols which are polyfilled.\n    if(typeof Symbol==='function'&&propValue instanceof Symbol){\n      return true;\n    }\n\n    return false;\n  }\n\n  // Equivalent of `typeof` but with special handling for array and regexp.\n  function getPropType(propValue){\n    var propType=typeof propValue;\n    if(Array.isArray(propValue)){\n      return 'array';\n    }\n    if(propValue instanceof RegExp){\n      // Old webkits (at least until Android 4.0) return 'function' rather than\n      // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n      // passes PropTypes.object.\n      return 'object';\n    }\n    if(isSymbol(propType, propValue)){\n      return 'symbol';\n    }\n    return propType;\n  }\n\n  // This handles more types than `getPropType`. Only used for error messages.\n  // See `createPrimitiveTypeChecker`.\n  function getPreciseType(propValue){\n    if(typeof propValue==='undefined'||propValue===null){\n      return '' + propValue;\n    }\n    var propType=getPropType(propValue);\n    if(propType==='object'){\n      if(propValue instanceof Date){\n        return 'date';\n      }else if(propValue instanceof RegExp){\n        return 'regexp';\n      }\n    }\n    return propType;\n  }\n\n  // Returns a string that is postfixed to a warning about an invalid type.\n  // For example, \"undefined\" or \"of type array\"\n  function getPostfixForTypeWarning(value){\n    var type=getPreciseType(value);\n    switch (type){\n      case 'array':\n      case 'object':\n        return 'an ' + type;\n      case 'boolean':\n      case 'date':\n      case 'regexp':\n        return 'a ' + type;\n      default:\n        return type;\n    }\n  }\n\n  // Returns class name of the object, if any.\n  function getClassName(propValue){\n    if(!propValue.constructor||!propValue.constructor.name){\n      return ANONYMOUS;\n    }\n    return propValue.constructor.name;\n  }\n\n  ReactPropTypes.checkPropTypes=checkPropTypes;\n  ReactPropTypes.resetWarningCache=checkPropTypes.resetWarningCache;\n  ReactPropTypes.PropTypes=ReactPropTypes;\n\n  return ReactPropTypes;\n};\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/factoryWithTypeCheckers.js?");
}),
"./node_modules/prop-types/index.js":
(function(module, exports, __webpack_require__){
eval("\n\nif(true){\n  var ReactIs=__webpack_require__( \"./node_modules/react-is/index.js\");\n\n  // By explicitly using `prop-types` you are opting into new development behavior.\n  // http://fb.me/prop-types-in-prod\n  var throwOnDirectAccess=true;\n  module.exports=__webpack_require__( \"./node_modules/prop-types/factoryWithTypeCheckers.js\")(ReactIs.isElement, throwOnDirectAccess);\n}else{}\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/index.js?");
}),
"./node_modules/prop-types/lib/ReactPropTypesSecret.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\nvar ReactPropTypesSecret='SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports=ReactPropTypesSecret;\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js?");
}),
"./node_modules/prop-types/lib/has.js":
(function(module, exports){
eval("module.exports=Function.call.bind(Object.prototype.hasOwnProperty);\n\n\n//# sourceURL=webpack:///./node_modules/prop-types/lib/has.js?");
}),
"./node_modules/react-dom/cjs/react-dom.development.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\n\nif(true){\n  (function(){\n'use strict';\n\nvar React=__webpack_require__( \"./node_modules/react/index.js\");\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\nvar Scheduler=__webpack_require__( \"./node_modules/scheduler/index.js\");\nvar checkPropTypes=__webpack_require__( \"./node_modules/prop-types/checkPropTypes.js\");\nvar tracing=__webpack_require__( \"./node_modules/scheduler/tracing.js\");\n\nvar ReactSharedInternals=React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // Prevent newer renderers from RTE when used with older react package versions.\n// Current owner and dispatcher used to share the same ref,\n// but PR #14548 split them out to better support the react-debug-tools package.\n\nif(!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')){\n  ReactSharedInternals.ReactCurrentDispatcher={\n    current: null\n  };\n}\n\nif(!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')){\n  ReactSharedInternals.ReactCurrentBatchConfig={\n    suspense: null\n  };\n}\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format){\n  {\n    for (var _len=arguments.length, args=new Array(_len > 1 ? _len - 1:0), _key=1; _key < _len; _key++){\n      args[_key - 1]=arguments[_key];\n    }\n\n    printWarning('warn', format, args);\n  }\n}\nfunction error(format){\n  {\n    for (var _len2=arguments.length, args=new Array(_len2 > 1 ? _len2 - 1:0), _key2=1; _key2 < _len2; _key2++){\n      args[_key2 - 1]=arguments[_key2];\n    }\n\n    printWarning('error', format, args);\n  }\n}\n\nfunction printWarning(level, format, args){\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var hasExistingStack=args.length > 0&&typeof args[args.length - 1]==='string'&&args[args.length - 1].indexOf('\\n    in')===0;\n\n    if(!hasExistingStack){\n      var ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame;\n      var stack=ReactDebugCurrentFrame.getStackAddendum();\n\n      if(stack!==''){\n        format +='%s';\n        args=args.concat([stack]);\n      }\n    }\n\n    var argsWithFormat=args.map(function (item){\n      return '' + item;\n    });// Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n\n    try {\n      // --- Welcome to debugging React ---\n      // This error was thrown as a convenience so that you can use this stack\n      // to find the callsite that caused this warning to fire.\n      var argIndex=0;\n      var message='Warning: ' + format.replace(/%s/g, function (){\n        return args[argIndex++];\n      });\n      throw new Error(message);\n    } catch (x){}\n  }\n}\n\nif(!React){\n  {\n    throw Error(\"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.\");\n  }\n}\n\nvar invokeGuardedCallbackImpl=function (name, func, context, a, b, c, d, e, f){\n  var funcArgs=Array.prototype.slice.call(arguments, 3);\n\n  try {\n    func.apply(context, funcArgs);\n  } catch (error){\n    this.onError(error);\n  }\n};\n\n{\n  // In DEV mode, we swap out invokeGuardedCallback for a special version\n  // that plays more nicely with the browser's DevTools. The idea is to preserve\n  // \"Pause on exceptions\" behavior. Because React wraps all user-provided\n  // functions in invokeGuardedCallback, and the production version of\n  // invokeGuardedCallback uses a try-catch, all user exceptions are treated\n  // like caught exceptions, and the DevTools won't pause unless the developer\n  // takes the extra step of enabling pause on caught exceptions. This is\n  // unintuitive, though, because even though React has caught the error, from\n  // the developer's perspective, the error is uncaught.\n  //\n  // To preserve the expected \"Pause on exceptions\" behavior, we don't use a\n  // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake\n  // DOM node, and call the user-provided callback from inside an event handler\n  // for that fake event. If the callback throws, the error is \"captured\" using\n  // a global event handler. But because the error happens in a different\n  // event loop context, it does not interrupt the normal program flow.\n  // Effectively, this gives us try-catch behavior without actually using\n  // try-catch. Neat!\n  // Check that the browser supports the APIs we need to implement our special\n  // DEV version of invokeGuardedCallback\n  if(typeof window!=='undefined'&&typeof window.dispatchEvent==='function'&&typeof document!=='undefined'&&typeof document.createEvent==='function'){\n    var fakeNode=document.createElement('react');\n\n    var invokeGuardedCallbackDev=function (name, func, context, a, b, c, d, e, f){\n      // If document doesn't exist we know for sure we will crash in this method\n      // when we call document.createEvent(). However this can cause confusing\n      // errors: https://github.com/facebookincubator/create-react-app/issues/3482\n      // So we preemptively throw with a better message instead.\n      if(!(typeof document!=='undefined')){\n        {\n          throw Error(\"The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.\");\n        }\n      }\n\n      var evt=document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We\n      // set this to true at the beginning, then set it to false right after\n      // calling the function. If the function errors, `didError` will never be\n      // set to false. This strategy works even if the browser is flaky and\n      // fails to call our global error handler, because it doesn't rely on\n      // the error event at all.\n\n      var didError=true; // Keeps track of the value of window.event so that we can reset it\n      // during the callback to let user code access window.event in the\n      // browsers that support it.\n\n      var windowEvent=window.event; // Keeps track of the descriptor of window.event to restore it after event\n      // dispatching: https://github.com/facebook/react/issues/13688\n\n      var windowEventDescriptor=Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously\n      // dispatch our fake event using `dispatchEvent`. Inside the handler, we\n      // call the user-provided callback.\n\n      var funcArgs=Array.prototype.slice.call(arguments, 3);\n\n      function callCallback(){\n        // We immediately remove the callback from event listeners so that\n        // nested `invokeGuardedCallback` calls do not clash. Otherwise, a\n        // nested call would trigger the fake event handlers of any call higher\n        // in the stack.\n        fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the\n        // window.event assignment in both IE <=10 as they throw an error\n        // \"Member not found\" in strict mode, and in Firefox which does not\n        // support window.event.\n\n        if(typeof window.event!=='undefined'&&window.hasOwnProperty('event')){\n          window.event=windowEvent;\n        }\n\n        func.apply(context, funcArgs);\n        didError=false;\n      } // Create a global error event handler. We use this to capture the value\n      // that was thrown. It's possible that this error handler will fire more\n      // than once; for example, if non-React code also calls `dispatchEvent`\n      // and a handler for that event throws. We should be resilient to most of\n      // those cases. Even if our error event handler fires more than once, the\n      // last error event is always used. If the callback actually does error,\n      // we know that the last error event is the correct one, because it's not\n      // possible for anything else to have happened in between our callback\n      // erroring and the code that follows the `dispatchEvent` call below. If\n      // the callback doesn't error, but the error event was fired, we know to\n      // ignore it because `didError` will be false, as described above.\n\n\n      var error; // Use this to track whether the error event is ever called.\n\n      var didSetError=false;\n      var isCrossOriginError=false;\n\n      function handleWindowError(event){\n        error=event.error;\n        didSetError=true;\n\n        if(error===null&&event.colno===0&&event.lineno===0){\n          isCrossOriginError=true;\n        }\n\n        if(event.defaultPrevented){\n          // Some other error handler has prevented default.\n          // Browsers silence the error report if this happens.\n          // We'll remember this to later decide whether to log it or not.\n          if(error!=null&&typeof error==='object'){\n            try {\n              error._suppressLogging=true;\n            } catch (inner){// Ignore.\n            }\n          }\n        }\n      } // Create a fake event type.\n\n\n      var evtType=\"react-\" + (name ? name:'invokeguardedcallback'); // Attach our event handlers\n\n      window.addEventListener('error', handleWindowError);\n      fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function\n      // errors, it will trigger our global error handler.\n\n      evt.initEvent(evtType, false, false);\n      fakeNode.dispatchEvent(evt);\n\n      if(windowEventDescriptor){\n        Object.defineProperty(window, 'event', windowEventDescriptor);\n      }\n\n      if(didError){\n        if(!didSetError){\n          // The callback errored, but the error event never fired.\n          error=new Error('An error was thrown inside one of your components, but React ' + \"doesn't know what it was. This is likely due to browser \" + 'flakiness. React does its best to preserve the \"Pause on ' + 'exceptions\" behavior of the DevTools, which requires some ' + \"DEV-mode only tricks. It's possible that these don't work in \" + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');\n        }else if(isCrossOriginError){\n          error=new Error(\"A cross-origin error was thrown. React doesn't have access to \" + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');\n        }\n\n        this.onError(error);\n      } // Remove our event listeners\n\n\n      window.removeEventListener('error', handleWindowError);\n    };\n\n    invokeGuardedCallbackImpl=invokeGuardedCallbackDev;\n  }\n}\n\nvar invokeGuardedCallbackImpl$1=invokeGuardedCallbackImpl;\n\nvar hasError=false;\nvar caughtError=null; // Used by event system to capture/rethrow the first error.\n\nvar hasRethrowError=false;\nvar rethrowError=null;\nvar reporter={\n  onError: function (error){\n    hasError=true;\n    caughtError=error;\n  }\n};\n\n\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f){\n  hasError=false;\n  caughtError=null;\n  invokeGuardedCallbackImpl$1.apply(reporter, arguments);\n}\n\n\nfunction invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f){\n  invokeGuardedCallback.apply(this, arguments);\n\n  if(hasError){\n    var error=clearCaughtError();\n\n    if(!hasRethrowError){\n      hasRethrowError=true;\n      rethrowError=error;\n    }\n  }\n}\n\n\nfunction rethrowCaughtError(){\n  if(hasRethrowError){\n    var error=rethrowError;\n    hasRethrowError=false;\n    rethrowError=null;\n    throw error;\n  }\n}\nfunction hasCaughtError(){\n  return hasError;\n}\nfunction clearCaughtError(){\n  if(hasError){\n    var error=caughtError;\n    hasError=false;\n    caughtError=null;\n    return error;\n  }else{\n    {\n      {\n        throw Error(\"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n  }\n}\n\nvar getFiberCurrentPropsFromNode=null;\nvar getInstanceFromNode=null;\nvar getNodeFromInstance=null;\nfunction setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl){\n  getFiberCurrentPropsFromNode=getFiberCurrentPropsFromNodeImpl;\n  getInstanceFromNode=getInstanceFromNodeImpl;\n  getNodeFromInstance=getNodeFromInstanceImpl;\n\n  {\n    if(!getNodeFromInstance||!getInstanceFromNode){\n      error('EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.');\n    }\n  }\n}\nvar validateEventDispatches;\n\n{\n  validateEventDispatches=function (event){\n    var dispatchListeners=event._dispatchListeners;\n    var dispatchInstances=event._dispatchInstances;\n    var listenersIsArr=Array.isArray(dispatchListeners);\n    var listenersLen=listenersIsArr ? dispatchListeners.length:dispatchListeners ? 1:0;\n    var instancesIsArr=Array.isArray(dispatchInstances);\n    var instancesLen=instancesIsArr ? dispatchInstances.length:dispatchInstances ? 1:0;\n\n    if(instancesIsArr!==listenersIsArr||instancesLen!==listenersLen){\n      error('EventPluginUtils: Invalid `event`.');\n    }\n  };\n}\n\n\n\nfunction executeDispatch(event, listener, inst){\n  var type=event.type||'unknown-event';\n  event.currentTarget=getNodeFromInstance(inst);\n  invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);\n  event.currentTarget=null;\n}\n\n\nfunction executeDispatchesInOrder(event){\n  var dispatchListeners=event._dispatchListeners;\n  var dispatchInstances=event._dispatchInstances;\n\n  {\n    validateEventDispatches(event);\n  }\n\n  if(Array.isArray(dispatchListeners)){\n    for (var i=0; i < dispatchListeners.length; i++){\n      if(event.isPropagationStopped()){\n        break;\n      } // Listeners and Instances are two parallel arrays that are always in sync.\n\n\n      executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);\n    }\n  }else if(dispatchListeners){\n    executeDispatch(event, dispatchListeners, dispatchInstances);\n  }\n\n  event._dispatchListeners=null;\n  event._dispatchInstances=null;\n}\n\nvar FunctionComponent=0;\nvar ClassComponent=1;\nvar IndeterminateComponent=2; // Before we know whether it is function or class\n\nvar HostRoot=3; // Root of a host tree. Could be nested inside another node.\n\nvar HostPortal=4; // A subtree. Could be an entry point to a different renderer.\n\nvar HostComponent=5;\nvar HostText=6;\nvar Fragment=7;\nvar Mode=8;\nvar ContextConsumer=9;\nvar ContextProvider=10;\nvar ForwardRef=11;\nvar Profiler=12;\nvar SuspenseComponent=13;\nvar MemoComponent=14;\nvar SimpleMemoComponent=15;\nvar LazyComponent=16;\nvar IncompleteClassComponent=17;\nvar DehydratedFragment=18;\nvar SuspenseListComponent=19;\nvar FundamentalComponent=20;\nvar ScopeComponent=21;\nvar Block=22;\n\n\nvar eventPluginOrder=null;\n\n\nvar namesToPlugins={};\n\n\nfunction recomputePluginOrdering(){\n  if(!eventPluginOrder){\n    // Wait until an `eventPluginOrder` is injected.\n    return;\n  }\n\n  for (var pluginName in namesToPlugins){\n    var pluginModule=namesToPlugins[pluginName];\n    var pluginIndex=eventPluginOrder.indexOf(pluginName);\n\n    if(!(pluginIndex > -1)){\n      {\n        throw Error(\"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `\" + pluginName + \"`.\");\n      }\n    }\n\n    if(plugins[pluginIndex]){\n      continue;\n    }\n\n    if(!pluginModule.extractEvents){\n      {\n        throw Error(\"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `\" + pluginName + \"` does not.\");\n      }\n    }\n\n    plugins[pluginIndex]=pluginModule;\n    var publishedEvents=pluginModule.eventTypes;\n\n    for (var eventName in publishedEvents){\n      if(!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)){\n        {\n          throw Error(\"EventPluginRegistry: Failed to publish event `\" + eventName + \"` for plugin `\" + pluginName + \"`.\");\n        }\n      }\n    }\n  }\n}\n\n\n\nfunction publishEventForPlugin(dispatchConfig, pluginModule, eventName){\n  if(!!eventNameDispatchConfigs.hasOwnProperty(eventName)){\n    {\n      throw Error(\"EventPluginRegistry: More than one plugin attempted to publish the same event name, `\" + eventName + \"`.\");\n    }\n  }\n\n  eventNameDispatchConfigs[eventName]=dispatchConfig;\n  var phasedRegistrationNames=dispatchConfig.phasedRegistrationNames;\n\n  if(phasedRegistrationNames){\n    for (var phaseName in phasedRegistrationNames){\n      if(phasedRegistrationNames.hasOwnProperty(phaseName)){\n        var phasedRegistrationName=phasedRegistrationNames[phaseName];\n        publishRegistrationName(phasedRegistrationName, pluginModule, eventName);\n      }\n    }\n\n    return true;\n  }else if(dispatchConfig.registrationName){\n    publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);\n    return true;\n  }\n\n  return false;\n}\n\n\n\nfunction publishRegistrationName(registrationName, pluginModule, eventName){\n  if(!!registrationNameModules[registrationName]){\n    {\n      throw Error(\"EventPluginRegistry: More than one plugin attempted to publish the same registration name, `\" + registrationName + \"`.\");\n    }\n  }\n\n  registrationNameModules[registrationName]=pluginModule;\n  registrationNameDependencies[registrationName]=pluginModule.eventTypes[eventName].dependencies;\n\n  {\n    var lowerCasedName=registrationName.toLowerCase();\n    possibleRegistrationNames[lowerCasedName]=registrationName;\n\n    if(registrationName==='onDoubleClick'){\n      possibleRegistrationNames.ondblclick=registrationName;\n    }\n  }\n}\n\n\n\n\n\nvar plugins=[];\n\n\nvar eventNameDispatchConfigs={};\n\n\nvar registrationNameModules={};\n\n\nvar registrationNameDependencies={};\n\n\nvar possibleRegistrationNames={} ; // Trust the developer to only use possibleRegistrationNames in true\n\n\n\nfunction injectEventPluginOrder(injectedEventPluginOrder){\n  if(!!eventPluginOrder){\n    {\n      throw Error(\"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.\");\n    }\n  } // Clone the ordering so it cannot be dynamically mutated.\n\n\n  eventPluginOrder=Array.prototype.slice.call(injectedEventPluginOrder);\n  recomputePluginOrdering();\n}\n\n\nfunction injectEventPluginsByName(injectedNamesToPlugins){\n  var isOrderingDirty=false;\n\n  for (var pluginName in injectedNamesToPlugins){\n    if(!injectedNamesToPlugins.hasOwnProperty(pluginName)){\n      continue;\n    }\n\n    var pluginModule=injectedNamesToPlugins[pluginName];\n\n    if(!namesToPlugins.hasOwnProperty(pluginName)||namesToPlugins[pluginName]!==pluginModule){\n      if(!!namesToPlugins[pluginName]){\n        {\n          throw Error(\"EventPluginRegistry: Cannot inject two different event plugins using the same name, `\" + pluginName + \"`.\");\n        }\n      }\n\n      namesToPlugins[pluginName]=pluginModule;\n      isOrderingDirty=true;\n    }\n  }\n\n  if(isOrderingDirty){\n    recomputePluginOrdering();\n  }\n}\n\nvar canUseDOM = !!(typeof window!=='undefined'&&typeof window.document!=='undefined'&&typeof window.document.createElement!=='undefined');\n\nvar PLUGIN_EVENT_SYSTEM=1;\nvar IS_REPLAYED=1 << 5;\nvar IS_FIRST_ANCESTOR=1 << 6;\n\nvar restoreImpl=null;\nvar restoreTarget=null;\nvar restoreQueue=null;\n\nfunction restoreStateOfTarget(target){\n  // We perform this translation at the end of the event loop so that we\n  // always receive the correct fiber here\n  var internalInstance=getInstanceFromNode(target);\n\n  if(!internalInstance){\n    // Unmounted\n    return;\n  }\n\n  if(!(typeof restoreImpl==='function')){\n    {\n      throw Error(\"setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n\n  var stateNode=internalInstance.stateNode; // Guard against Fiber being unmounted.\n\n  if(stateNode){\n    var _props=getFiberCurrentPropsFromNode(stateNode);\n\n    restoreImpl(internalInstance.stateNode, internalInstance.type, _props);\n  }\n}\n\nfunction setRestoreImplementation(impl){\n  restoreImpl=impl;\n}\nfunction enqueueStateRestore(target){\n  if(restoreTarget){\n    if(restoreQueue){\n      restoreQueue.push(target);\n    }else{\n      restoreQueue=[target];\n    }\n  }else{\n    restoreTarget=target;\n  }\n}\nfunction needsStateRestore(){\n  return restoreTarget!==null||restoreQueue!==null;\n}\nfunction restoreStateIfNeeded(){\n  if(!restoreTarget){\n    return;\n  }\n\n  var target=restoreTarget;\n  var queuedTargets=restoreQueue;\n  restoreTarget=null;\n  restoreQueue=null;\n  restoreStateOfTarget(target);\n\n  if(queuedTargets){\n    for (var i=0; i < queuedTargets.length; i++){\n      restoreStateOfTarget(queuedTargets[i]);\n    }\n  }\n}\n\nvar enableProfilerTimer=true; // Trace which interactions trigger each commit.\n\nvar enableDeprecatedFlareAPI=false; // Experimental Host Component support.\n\nvar enableFundamentalAPI=false; // Experimental Scope support.\nvar warnAboutStringRefs=false;\n\n// the renderer. Such as when we're dispatching events or if third party\n// libraries need to call batchedUpdates. Eventually, this API will go away when\n// everything is batched by default. We'll then have a similar API to opt-out of\n// scheduled work and instead do synchronous work.\n// Defaults\n\nvar batchedUpdatesImpl=function (fn, bookkeeping){\n  return fn(bookkeeping);\n};\n\nvar discreteUpdatesImpl=function (fn, a, b, c, d){\n  return fn(a, b, c, d);\n};\n\nvar flushDiscreteUpdatesImpl=function (){};\n\nvar batchedEventUpdatesImpl=batchedUpdatesImpl;\nvar isInsideEventHandler=false;\nvar isBatchingEventUpdates=false;\n\nfunction finishEventHandler(){\n  // Here we wait until all updates have propagated, which is important\n  // when using controlled components within layers:\n  // https://github.com/facebook/react/issues/1698\n  // Then we restore state of any controlled component.\n  var controlledComponentsHavePendingUpdates=needsStateRestore();\n\n  if(controlledComponentsHavePendingUpdates){\n    // If a controlled event was fired, we may need to restore the state of\n    // the DOM node back to the controlled value. This is necessary when React\n    // bails out of the update without touching the DOM.\n    flushDiscreteUpdatesImpl();\n    restoreStateIfNeeded();\n  }\n}\n\nfunction batchedUpdates(fn, bookkeeping){\n  if(isInsideEventHandler){\n    // If we are currently inside another batch, we need to wait until it\n    // fully completes before restoring state.\n    return fn(bookkeeping);\n  }\n\n  isInsideEventHandler=true;\n\n  try {\n    return batchedUpdatesImpl(fn, bookkeeping);\n  } finally {\n    isInsideEventHandler=false;\n    finishEventHandler();\n  }\n}\nfunction batchedEventUpdates(fn, a, b){\n  if(isBatchingEventUpdates){\n    // If we are currently inside another batch, we need to wait until it\n    // fully completes before restoring state.\n    return fn(a, b);\n  }\n\n  isBatchingEventUpdates=true;\n\n  try {\n    return batchedEventUpdatesImpl(fn, a, b);\n  } finally {\n    isBatchingEventUpdates=false;\n    finishEventHandler();\n  }\n} // This is for the React Flare event system\nfunction discreteUpdates(fn, a, b, c, d){\n  var prevIsInsideEventHandler=isInsideEventHandler;\n  isInsideEventHandler=true;\n\n  try {\n    return discreteUpdatesImpl(fn, a, b, c, d);\n  } finally {\n    isInsideEventHandler=prevIsInsideEventHandler;\n\n    if(!isInsideEventHandler){\n      finishEventHandler();\n    }\n  }\n}\nfunction flushDiscreteUpdatesIfNeeded(timeStamp){\n  // event.timeStamp isn't overly reliable due to inconsistencies in\n  // how different browsers have historically provided the time stamp.\n  // Some browsers provide high-resolution time stamps for all events,\n  // some provide low-resolution time stamps for all events. FF < 52\n  // even mixes both time stamps together. Some browsers even report\n  // negative time stamps or time stamps that are 0 (iOS9) in some cases.\n  // Given we are only comparing two time stamps with equality (!==),\n  // we are safe from the resolution differences. If the time stamp is 0\n  // we bail-out of preventing the flush, which can affect semantics,\n  // such as if an earlier flush removes or adds event listeners that\n  // are fired in the subsequent flush. However, this is the same\n  // behaviour as we had before this change, so the risks are low.\n  if(!isInsideEventHandler&&(!enableDeprecatedFlareAPI)){\n    flushDiscreteUpdatesImpl();\n  }\n}\nfunction setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl){\n  batchedUpdatesImpl=_batchedUpdatesImpl;\n  discreteUpdatesImpl=_discreteUpdatesImpl;\n  flushDiscreteUpdatesImpl=_flushDiscreteUpdatesImpl;\n  batchedEventUpdatesImpl=_batchedEventUpdatesImpl;\n}\n\nvar DiscreteEvent=0;\nvar UserBlockingEvent=1;\nvar ContinuousEvent=2;\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nvar RESERVED=0; // A simple string attribute.\n// Attributes that aren't in the whitelist are presumed to have this type.\n\nvar STRING=1; // A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\n\nvar BOOLEANISH_STRING=2; // A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n\nvar BOOLEAN=3; // An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\n\nvar OVERLOADED_BOOLEAN=4; // An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\n\nvar NUMERIC=5; // An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\n\nvar POSITIVE_NUMERIC=6;\n\n\nvar ATTRIBUTE_NAME_START_CHAR=\":A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\";\n\n\nvar ATTRIBUTE_NAME_CHAR=ATTRIBUTE_NAME_START_CHAR + \"\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040\";\nvar ROOT_ATTRIBUTE_NAME='data-reactroot';\nvar VALID_ATTRIBUTE_NAME_REGEX=new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar hasOwnProperty=Object.prototype.hasOwnProperty;\nvar illegalAttributeNameCache={};\nvar validatedAttributeNameCache={};\nfunction isAttributeNameSafe(attributeName){\n  if(hasOwnProperty.call(validatedAttributeNameCache, attributeName)){\n    return true;\n  }\n\n  if(hasOwnProperty.call(illegalAttributeNameCache, attributeName)){\n    return false;\n  }\n\n  if(VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)){\n    validatedAttributeNameCache[attributeName]=true;\n    return true;\n  }\n\n  illegalAttributeNameCache[attributeName]=true;\n\n  {\n    error('Invalid attribute name: `%s`', attributeName);\n  }\n\n  return false;\n}\nfunction shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag){\n  if(propertyInfo!==null){\n    return propertyInfo.type===RESERVED;\n  }\n\n  if(isCustomComponentTag){\n    return false;\n  }\n\n  if(name.length > 2&&(name[0]==='o'||name[0]==='O')&&(name[1]==='n'||name[1]==='N')){\n    return true;\n  }\n\n  return false;\n}\nfunction shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag){\n  if(propertyInfo!==null&&propertyInfo.type===RESERVED){\n    return false;\n  }\n\n  switch (typeof value){\n    case 'function': // $FlowIssue symbol is perfectly valid here\n\n    case 'symbol':\n      // eslint-disable-line\n      return true;\n\n    case 'boolean':\n      {\n        if(isCustomComponentTag){\n          return false;\n        }\n\n        if(propertyInfo!==null){\n          return !propertyInfo.acceptsBooleans;\n        }else{\n          var prefix=name.toLowerCase().slice(0, 5);\n          return prefix!=='data-'&&prefix!=='aria-';\n        }\n      }\n\n    default:\n      return false;\n  }\n}\nfunction shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag){\n  if(value===null||typeof value==='undefined'){\n    return true;\n  }\n\n  if(shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)){\n    return true;\n  }\n\n  if(isCustomComponentTag){\n    return false;\n  }\n\n  if(propertyInfo!==null){\n    switch (propertyInfo.type){\n      case BOOLEAN:\n        return !value;\n\n      case OVERLOADED_BOOLEAN:\n        return value===false;\n\n      case NUMERIC:\n        return isNaN(value);\n\n      case POSITIVE_NUMERIC:\n        return isNaN(value)||value < 1;\n    }\n  }\n\n  return false;\n}\nfunction getPropertyInfo(name){\n  return properties.hasOwnProperty(name) ? properties[name]:null;\n}\n\nfunction PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL){\n  this.acceptsBooleans=type===BOOLEANISH_STRING||type===BOOLEAN||type===OVERLOADED_BOOLEAN;\n  this.attributeName=attributeName;\n  this.attributeNamespace=attributeNamespace;\n  this.mustUseProperty=mustUseProperty;\n  this.propertyName=name;\n  this.type=type;\n  this.sanitizeURL=sanitizeURL;\n} // When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\n\n\nvar properties={}; // These props are reserved by React. They shouldn't be written to the DOM.\n\nvar reservedProps=['children', 'dangerouslySetInnerHTML', // TODO: This prevents the assignment of defaultValue to regular\n// elements (not just inputs). Now that ReactDOMInput assigns to the\n// defaultValue property -- do we need this?\n'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'];\n\nreservedProps.forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false);\n});// A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n\n[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref){\n  var name=_ref[0],\n      attributeName=_ref[1];\n  properties[name]=new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, // attributeName\n  null, // attributeNamespace\n  false);\n});// These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false);\n});// These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n\n['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false);\n});// These are HTML boolean attributes.\n\n['allowFullScreen', 'async', // Note: there is a special case that prevents it from being written to the DOM\n// on the client side because the browsers are inconsistent. Instead we call focus().\n'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless', // Microdata\n'itemScope'].forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false);\n});// These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n\n['checked', // Note: `option.selected` is not updated if `select.multiple` is\n// disabled with `removeAttribute`. We have special logic for handling this.\n'multiple', 'muted', 'selected' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false);\n});// These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n\n['capture', 'download' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false);\n});// These are HTML attributes that must be positive numbers.\n\n['cols', 'rows', 'size', 'span' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty\n  name, // attributeName\n  null, // attributeNamespace\n  false);\n});// These are HTML attributes that must be numbers.\n\n['rowSpan', 'start'].forEach(function (name){\n  properties[name]=new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty\n  name.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false);\n});\nvar CAMELIZE=/[\\-\\:]([a-z])/g;\n\nvar capitalize=function (token){\n  return token[1].toUpperCase();\n}; // This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML whitelist.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n\n\n['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName){\n  var name=attributeName.replace(CAMELIZE, capitalize);\n  properties[name]=new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, null, // attributeNamespace\n  false);\n});// String SVG attributes with the xlink namespace.\n\n['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName){\n  var name=attributeName.replace(CAMELIZE, capitalize);\n  properties[name]=new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/1999/xlink', false);\n});// String SVG attributes with the xml namespace.\n\n['xml:base', 'xml:lang', 'xml:space' // NOTE: if you add a camelCased prop to this list,\n// you'll need to set attributeName to name.toLowerCase()\n// instead in the assignment below.\n].forEach(function (attributeName){\n  var name=attributeName.replace(CAMELIZE, capitalize);\n  properties[name]=new PropertyInfoRecord(name, STRING, false, // mustUseProperty\n  attributeName, 'http://www.w3.org/XML/1998/namespace', false);\n});// These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n\n['tabIndex', 'crossOrigin'].forEach(function (attributeName){\n  properties[attributeName]=new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  false);\n});// These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\n\nvar xlinkHref='xlinkHref';\nproperties[xlinkHref]=new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty\n'xlink:href', 'http://www.w3.org/1999/xlink', true);\n['src', 'href', 'action', 'formAction'].forEach(function (attributeName){\n  properties[attributeName]=new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty\n  attributeName.toLowerCase(), // attributeName\n  null, // attributeNamespace\n  true);\n});\n\nvar ReactDebugCurrentFrame=null;\n\n{\n  ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame;\n} // A javascript: URL can contain leading C0 control or \\u0020 SPACE,\n// and any newline or tab are filtered out as if they're not part of the URL.\n// https://url.spec.whatwg.org/#url-parsing\n// Tab or newline are defined as \\r\\n\\t:\n// https://infra.spec.whatwg.org/#ascii-tab-or-newline\n// A C0 control is a code point in the range \\u0000 NULL to \\u001F\n// INFORMATION SEPARATOR ONE, inclusive:\n// https://infra.spec.whatwg.org/#c0-control-or-space\n\n\n\n\nvar isJavaScriptProtocol=/^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*\\:/i;\nvar didWarn=false;\n\nfunction sanitizeURL(url){\n  {\n    if(!didWarn&&isJavaScriptProtocol.test(url)){\n      didWarn=true;\n\n      error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));\n    }\n  }\n}\n\n\nfunction getValueForProperty(node, name, expected, propertyInfo){\n  {\n    if(propertyInfo.mustUseProperty){\n      var propertyName=propertyInfo.propertyName;\n      return node[propertyName];\n    }else{\n      if(propertyInfo.sanitizeURL){\n        // If we haven't fully disabled javascript: URLs, and if\n        // the hydration is successful of a javascript: URL, we\n        // still want to warn on the client.\n        sanitizeURL('' + expected);\n      }\n\n      var attributeName=propertyInfo.attributeName;\n      var stringValue=null;\n\n      if(propertyInfo.type===OVERLOADED_BOOLEAN){\n        if(node.hasAttribute(attributeName)){\n          var value=node.getAttribute(attributeName);\n\n          if(value===''){\n            return true;\n          }\n\n          if(shouldRemoveAttribute(name, expected, propertyInfo, false)){\n            return value;\n          }\n\n          if(value==='' + expected){\n            return expected;\n          }\n\n          return value;\n        }\n      }else if(node.hasAttribute(attributeName)){\n        if(shouldRemoveAttribute(name, expected, propertyInfo, false)){\n          // We had an attribute but shouldn't have had one, so read it\n          // for the error message.\n          return node.getAttribute(attributeName);\n        }\n\n        if(propertyInfo.type===BOOLEAN){\n          // If this was a boolean, it doesn't matter what the value is\n          // the fact that we have it is the same as the expected.\n          return expected;\n        } // Even if this property uses a namespace we use getAttribute\n        // because we assume its namespaced name is the same as our config.\n        // To use getAttributeNS we need the local name which we don't have\n        // in our config atm.\n\n\n        stringValue=node.getAttribute(attributeName);\n      }\n\n      if(shouldRemoveAttribute(name, expected, propertyInfo, false)){\n        return stringValue===null ? expected:stringValue;\n      }else if(stringValue==='' + expected){\n        return expected;\n      }else{\n        return stringValue;\n      }\n    }\n  }\n}\n\n\nfunction getValueForAttribute(node, name, expected){\n  {\n    if(!isAttributeNameSafe(name)){\n      return;\n    }\n\n    if(!node.hasAttribute(name)){\n      return expected===undefined ? undefined:null;\n    }\n\n    var value=node.getAttribute(name);\n\n    if(value==='' + expected){\n      return expected;\n    }\n\n    return value;\n  }\n}\n\n\nfunction setValueForProperty(node, name, value, isCustomComponentTag){\n  var propertyInfo=getPropertyInfo(name);\n\n  if(shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)){\n    return;\n  }\n\n  if(shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)){\n    value=null;\n  } // If the prop isn't in the special list, treat it as a simple attribute.\n\n\n  if(isCustomComponentTag||propertyInfo===null){\n    if(isAttributeNameSafe(name)){\n      var _attributeName=name;\n\n      if(value===null){\n        node.removeAttribute(_attributeName);\n      }else{\n        node.setAttribute(_attributeName,  '' + value);\n      }\n    }\n\n    return;\n  }\n\n  var mustUseProperty=propertyInfo.mustUseProperty;\n\n  if(mustUseProperty){\n    var propertyName=propertyInfo.propertyName;\n\n    if(value===null){\n      var type=propertyInfo.type;\n      node[propertyName]=type===BOOLEAN ? false:'';\n    }else{\n      // Contrary to `setAttribute`, object properties are properly\n      // `toString`ed by IE8/9.\n      node[propertyName]=value;\n    }\n\n    return;\n  } // The rest are treated as attributes with special cases.\n\n\n  var attributeName=propertyInfo.attributeName,\n      attributeNamespace=propertyInfo.attributeNamespace;\n\n  if(value===null){\n    node.removeAttribute(attributeName);\n  }else{\n    var _type=propertyInfo.type;\n    var attributeValue;\n\n    if(_type===BOOLEAN||_type===OVERLOADED_BOOLEAN&&value===true){\n      // If attribute type is boolean, we know for sure it won't be an execution sink\n      // and we won't require Trusted Type here.\n      attributeValue='';\n    }else{\n      // `setAttribute` with objects becomes only `[object]` in IE8/9,\n      // ('' + value) makes it output the correct toString()-value.\n      {\n        attributeValue='' + value;\n      }\n\n      if(propertyInfo.sanitizeURL){\n        sanitizeURL(attributeValue.toString());\n      }\n    }\n\n    if(attributeNamespace){\n      node.setAttributeNS(attributeNamespace, attributeName, attributeValue);\n    }else{\n      node.setAttribute(attributeName, attributeValue);\n    }\n  }\n}\n\nvar BEFORE_SLASH_RE=/^(.*)[\\\\\\/]/;\nfunction describeComponentFrame (name, source, ownerName){\n  var sourceInfo='';\n\n  if(source){\n    var path=source.fileName;\n    var fileName=path.replace(BEFORE_SLASH_RE, '');\n\n    {\n      // In DEV, include code for a common special case:\n      // prefer \"folder/index.js\" instead of just \"index.js\".\n      if(/^index\\./.test(fileName)){\n        var match=path.match(BEFORE_SLASH_RE);\n\n        if(match){\n          var pathBeforeSlash=match[1];\n\n          if(pathBeforeSlash){\n            var folderName=pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n            fileName=folderName + '/' + fileName;\n          }\n        }\n      }\n    }\n\n    sourceInfo=' (at ' + fileName + ':' + source.lineNumber + ')';\n  }else if(ownerName){\n    sourceInfo=' (created by ' + ownerName + ')';\n  }\n\n  return '\\n    in ' + (name||'Unknown') + sourceInfo;\n}\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol=typeof Symbol==='function'&&Symbol.for;\nvar REACT_ELEMENT_TYPE=hasSymbol ? Symbol.for('react.element'):0xeac7;\nvar REACT_PORTAL_TYPE=hasSymbol ? Symbol.for('react.portal'):0xeaca;\nvar REACT_FRAGMENT_TYPE=hasSymbol ? Symbol.for('react.fragment'):0xeacb;\nvar REACT_STRICT_MODE_TYPE=hasSymbol ? Symbol.for('react.strict_mode'):0xeacc;\nvar REACT_PROFILER_TYPE=hasSymbol ? Symbol.for('react.profiler'):0xead2;\nvar REACT_PROVIDER_TYPE=hasSymbol ? Symbol.for('react.provider'):0xeacd;\nvar REACT_CONTEXT_TYPE=hasSymbol ? Symbol.for('react.context'):0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\nvar REACT_CONCURRENT_MODE_TYPE=hasSymbol ? Symbol.for('react.concurrent_mode'):0xeacf;\nvar REACT_FORWARD_REF_TYPE=hasSymbol ? Symbol.for('react.forward_ref'):0xead0;\nvar REACT_SUSPENSE_TYPE=hasSymbol ? Symbol.for('react.suspense'):0xead1;\nvar REACT_SUSPENSE_LIST_TYPE=hasSymbol ? Symbol.for('react.suspense_list'):0xead8;\nvar REACT_MEMO_TYPE=hasSymbol ? Symbol.for('react.memo'):0xead3;\nvar REACT_LAZY_TYPE=hasSymbol ? Symbol.for('react.lazy'):0xead4;\nvar REACT_BLOCK_TYPE=hasSymbol ? Symbol.for('react.block'):0xead9;\nvar MAYBE_ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL='@@iterator';\nfunction getIteratorFn(maybeIterable){\n  if(maybeIterable===null||typeof maybeIterable!=='object'){\n    return null;\n  }\n\n  var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if(typeof maybeIterator==='function'){\n    return maybeIterator;\n  }\n\n  return null;\n}\n\nvar Uninitialized=-1;\nvar Pending=0;\nvar Resolved=1;\nvar Rejected=2;\nfunction refineResolvedLazyComponent(lazyComponent){\n  return lazyComponent._status===Resolved ? lazyComponent._result:null;\n}\nfunction initializeLazyComponentType(lazyComponent){\n  if(lazyComponent._status===Uninitialized){\n    lazyComponent._status=Pending;\n    var ctor=lazyComponent._ctor;\n    var thenable=ctor();\n    lazyComponent._result=thenable;\n    thenable.then(function (moduleObject){\n      if(lazyComponent._status===Pending){\n        var defaultExport=moduleObject.default;\n\n        {\n          if(defaultExport===undefined){\n            error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\\n\\nYour code should look like: \\n  ' + \"const MyComponent=lazy(()=> import('./MyComponent'))\", moduleObject);\n          }\n        }\n\n        lazyComponent._status=Resolved;\n        lazyComponent._result=defaultExport;\n      }\n    }, function (error){\n      if(lazyComponent._status===Pending){\n        lazyComponent._status=Rejected;\n        lazyComponent._result=error;\n      }\n    });\n  }\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName){\n  var functionName=innerType.displayName||innerType.name||'';\n  return outerType.displayName||(functionName!=='' ? wrapperName + \"(\" + functionName + \")\":wrapperName);\n}\n\nfunction getComponentName(type){\n  if(type==null){\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if(typeof type.tag==='number'){\n      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if(typeof type==='function'){\n    return type.displayName||type.name||null;\n  }\n\n  if(typeof type==='string'){\n    return type;\n  }\n\n  switch (type){\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return \"Profiler\";\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n  }\n\n  if(typeof type==='object'){\n    switch (type.$$typeof){\n      case REACT_CONTEXT_TYPE:\n        return 'Context.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        return 'Context.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        return getComponentName(type.type);\n\n      case REACT_BLOCK_TYPE:\n        return getComponentName(type.render);\n\n      case REACT_LAZY_TYPE:\n        {\n          var thenable=type;\n          var resolvedThenable=refineResolvedLazyComponent(thenable);\n\n          if(resolvedThenable){\n            return getComponentName(resolvedThenable);\n          }\n\n          break;\n        }\n    }\n  }\n\n  return null;\n}\n\nvar ReactDebugCurrentFrame$1=ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction describeFiber(fiber){\n  switch (fiber.tag){\n    case HostRoot:\n    case HostPortal:\n    case HostText:\n    case Fragment:\n    case ContextProvider:\n    case ContextConsumer:\n      return '';\n\n    default:\n      var owner=fiber._debugOwner;\n      var source=fiber._debugSource;\n      var name=getComponentName(fiber.type);\n      var ownerName=null;\n\n      if(owner){\n        ownerName=getComponentName(owner.type);\n      }\n\n      return describeComponentFrame(name, source, ownerName);\n  }\n}\n\nfunction getStackByFiberInDevAndProd(workInProgress){\n  var info='';\n  var node=workInProgress;\n\n  do {\n    info +=describeFiber(node);\n    node=node.return;\n  } while (node);\n\n  return info;\n}\nvar current=null;\nvar isRendering=false;\nfunction getCurrentFiberOwnerNameInDevOrNull(){\n  {\n    if(current===null){\n      return null;\n    }\n\n    var owner=current._debugOwner;\n\n    if(owner!==null&&typeof owner!=='undefined'){\n      return getComponentName(owner.type);\n    }\n  }\n\n  return null;\n}\nfunction getCurrentFiberStackInDev(){\n  {\n    if(current===null){\n      return '';\n    } // Safe because if current fiber exists, we are reconciling,\n    // and it is guaranteed to be the work-in-progress version.\n\n\n    return getStackByFiberInDevAndProd(current);\n  }\n}\nfunction resetCurrentFiber(){\n  {\n    ReactDebugCurrentFrame$1.getCurrentStack=null;\n    current=null;\n    isRendering=false;\n  }\n}\nfunction setCurrentFiber(fiber){\n  {\n    ReactDebugCurrentFrame$1.getCurrentStack=getCurrentFiberStackInDev;\n    current=fiber;\n    isRendering=false;\n  }\n}\nfunction setIsRendering(rendering){\n  {\n    isRendering=rendering;\n  }\n}\n\n// Flow does not allow string concatenation of most non-string types. To work\n// around this limitation, we use an opaque type that can only be obtained by\n// passing the value through getToStringValue first.\nfunction toString(value){\n  return '' + value;\n}\nfunction getToStringValue(value){\n  switch (typeof value){\n    case 'boolean':\n    case 'number':\n    case 'object':\n    case 'string':\n    case 'undefined':\n      return value;\n\n    default:\n      // function, symbol are assigned as empty strings\n      return '';\n  }\n}\n\nvar ReactDebugCurrentFrame$2=null;\nvar ReactControlledValuePropTypes={\n  checkPropTypes: null\n};\n\n{\n  ReactDebugCurrentFrame$2=ReactSharedInternals.ReactDebugCurrentFrame;\n  var hasReadOnlyValue={\n    button: true,\n    checkbox: true,\n    image: true,\n    hidden: true,\n    radio: true,\n    reset: true,\n    submit: true\n  };\n  var propTypes={\n    value: function (props, propName, componentName){\n      if(hasReadOnlyValue[props.type]||props.onChange||props.readOnly||props.disabled||props[propName]==null||enableDeprecatedFlareAPI){\n        return null;\n      }\n\n      return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n    },\n    checked: function (props, propName, componentName){\n      if(props.onChange||props.readOnly||props.disabled||props[propName]==null||enableDeprecatedFlareAPI){\n        return null;\n      }\n\n      return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n    }\n  };\n  \n\n  ReactControlledValuePropTypes.checkPropTypes=function (tagName, props){\n    checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);\n  };\n}\n\nfunction isCheckable(elem){\n  var type=elem.type;\n  var nodeName=elem.nodeName;\n  return nodeName&&nodeName.toLowerCase()==='input'&&(type==='checkbox'||type==='radio');\n}\n\nfunction getTracker(node){\n  return node._valueTracker;\n}\n\nfunction detachTracker(node){\n  node._valueTracker=null;\n}\n\nfunction getValueFromNode(node){\n  var value='';\n\n  if(!node){\n    return value;\n  }\n\n  if(isCheckable(node)){\n    value=node.checked ? 'true':'false';\n  }else{\n    value=node.value;\n  }\n\n  return value;\n}\n\nfunction trackValueOnNode(node){\n  var valueField=isCheckable(node) ? 'checked':'value';\n  var descriptor=Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);\n  var currentValue='' + node[valueField]; // if someone has already defined a value or Safari, then bail\n  // and don't track value will cause over reporting of changes,\n  // but it's better then a hard failure\n  // (needed for certain tests that spyOn input values and Safari)\n\n  if(node.hasOwnProperty(valueField)||typeof descriptor==='undefined'||typeof descriptor.get!=='function'||typeof descriptor.set!=='function'){\n    return;\n  }\n\n  var get=descriptor.get,\n      set=descriptor.set;\n  Object.defineProperty(node, valueField, {\n    configurable: true,\n    get: function (){\n      return get.call(this);\n    },\n    set: function (value){\n      currentValue='' + value;\n      set.call(this, value);\n    }\n  });// We could've passed this the first time\n  // but it triggers a bug in IE11 and Edge 14/15.\n  // Calling defineProperty() again should be equivalent.\n  // https://github.com/facebook/react/issues/11768\n\n  Object.defineProperty(node, valueField, {\n    enumerable: descriptor.enumerable\n  });\n  var tracker={\n    getValue: function (){\n      return currentValue;\n    },\n    setValue: function (value){\n      currentValue='' + value;\n    },\n    stopTracking: function (){\n      detachTracker(node);\n      delete node[valueField];\n    }\n  };\n  return tracker;\n}\n\nfunction track(node){\n  if(getTracker(node)){\n    return;\n  } // TODO: Once it's just Fiber we can move this to node._wrapperState\n\n\n  node._valueTracker=trackValueOnNode(node);\n}\nfunction updateValueIfChanged(node){\n  if(!node){\n    return false;\n  }\n\n  var tracker=getTracker(node); // if there is no tracker at this point it's unlikely\n  // that trying again will succeed\n\n  if(!tracker){\n    return true;\n  }\n\n  var lastValue=tracker.getValue();\n  var nextValue=getValueFromNode(node);\n\n  if(nextValue!==lastValue){\n    tracker.setValue(nextValue);\n    return true;\n  }\n\n  return false;\n}\n\nvar didWarnValueDefaultValue=false;\nvar didWarnCheckedDefaultChecked=false;\nvar didWarnControlledToUncontrolled=false;\nvar didWarnUncontrolledToControlled=false;\n\nfunction isControlled(props){\n  var usesChecked=props.type==='checkbox'||props.type==='radio';\n  return usesChecked ? props.checked!=null:props.value!=null;\n}\n\n\n\nfunction getHostProps(element, props){\n  var node=element;\n  var checked=props.checked;\n\n  var hostProps=_assign({}, props, {\n    defaultChecked: undefined,\n    defaultValue: undefined,\n    value: undefined,\n    checked: checked!=null ? checked:node._wrapperState.initialChecked\n  });\n\n  return hostProps;\n}\nfunction initWrapperState(element, props){\n  {\n    ReactControlledValuePropTypes.checkPropTypes('input', props);\n\n    if(props.checked!==undefined&&props.defaultChecked!==undefined&&!didWarnCheckedDefaultChecked){\n      error('%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull()||'A component', props.type);\n\n      didWarnCheckedDefaultChecked=true;\n    }\n\n    if(props.value!==undefined&&props.defaultValue!==undefined&&!didWarnValueDefaultValue){\n      error('%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull()||'A component', props.type);\n\n      didWarnValueDefaultValue=true;\n    }\n  }\n\n  var node=element;\n  var defaultValue=props.defaultValue==null ? '':props.defaultValue;\n  node._wrapperState={\n    initialChecked: props.checked!=null ? props.checked:props.defaultChecked,\n    initialValue: getToStringValue(props.value!=null ? props.value:defaultValue),\n    controlled: isControlled(props)\n  };\n}\nfunction updateChecked(element, props){\n  var node=element;\n  var checked=props.checked;\n\n  if(checked!=null){\n    setValueForProperty(node, 'checked', checked, false);\n  }\n}\nfunction updateWrapper(element, props){\n  var node=element;\n\n  {\n    var controlled=isControlled(props);\n\n    if(!node._wrapperState.controlled&&controlled&&!didWarnUncontrolledToControlled){\n      error('A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n\n      didWarnUncontrolledToControlled=true;\n    }\n\n    if(node._wrapperState.controlled&&!controlled&&!didWarnControlledToUncontrolled){\n      error('A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);\n\n      didWarnControlledToUncontrolled=true;\n    }\n  }\n\n  updateChecked(element, props);\n  var value=getToStringValue(props.value);\n  var type=props.type;\n\n  if(value!=null){\n    if(type==='number'){\n      if(value===0&&node.value===''||// We explicitly want to coerce to number here if possible.\n      // eslint-disable-next-line\n      node.value!=value){\n        node.value=toString(value);\n      }\n    }else if(node.value!==toString(value)){\n      node.value=toString(value);\n    }\n  }else if(type==='submit'||type==='reset'){\n    // Submit/reset inputs need the attribute removed completely to avoid\n    // blank-text buttons.\n    node.removeAttribute('value');\n    return;\n  }\n\n  {\n    // When syncing the value attribute, the value comes from a cascade of\n    // properties:\n    //  1. The value React property\n    //  2. The defaultValue React property\n    //  3. Otherwise there should be no change\n    if(props.hasOwnProperty('value')){\n      setDefaultValue(node, props.type, value);\n    }else if(props.hasOwnProperty('defaultValue')){\n      setDefaultValue(node, props.type, getToStringValue(props.defaultValue));\n    }\n  }\n\n  {\n    // When syncing the checked attribute, it only changes when it needs\n    // to be removed, such as transitioning from a checkbox into a text input\n    if(props.checked==null&&props.defaultChecked!=null){\n      node.defaultChecked = !!props.defaultChecked;\n    }\n  }\n}\nfunction postMountWrapper(element, props, isHydrating){\n  var node=element; // Do not assign value if it is already set. This prevents user text input\n  // from being lost during SSR hydration.\n\n  if(props.hasOwnProperty('value')||props.hasOwnProperty('defaultValue')){\n    var type=props.type;\n    var isButton=type==='submit'||type==='reset'; // Avoid setting value attribute on submit/reset inputs as it overrides the\n    // default value provided by the browser. See: #12872\n\n    if(isButton&&(props.value===undefined||props.value===null)){\n      return;\n    }\n\n    var initialValue=toString(node._wrapperState.initialValue); // Do not assign value if it is already set. This prevents user text input\n    // from being lost during SSR hydration.\n\n    if(!isHydrating){\n      {\n        // When syncing the value attribute, the value property should use\n        // the wrapperState._initialValue property. This uses:\n        //\n        //   1. The value React property when present\n        //   2. The defaultValue React property when present\n        //   3. An empty string\n        if(initialValue!==node.value){\n          node.value=initialValue;\n        }\n      }\n    }\n\n    {\n      // Otherwise, the value attribute is synchronized to the property,\n      // so we assign defaultValue to the same thing as the value property\n      // assignment step above.\n      node.defaultValue=initialValue;\n    }\n  } // Normally, we'd just do `node.checked=node.checked` upon initial mount, less this bug\n  // this is needed to work around a chrome bug where setting defaultChecked\n  // will sometimes influence the value of checked (even after detachment).\n  // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416\n  // We need to temporarily unset name to avoid disrupting radio button groups.\n\n\n  var name=node.name;\n\n  if(name!==''){\n    node.name='';\n  }\n\n  {\n    // When syncing the checked attribute, both the checked property and\n    // attribute are assigned at the same time using defaultChecked. This uses:\n    //\n    //   1. The checked React property when present\n    //   2. The defaultChecked React property when present\n    //   3. Otherwise, false\n    node.defaultChecked = !node.defaultChecked;\n    node.defaultChecked = !!node._wrapperState.initialChecked;\n  }\n\n  if(name!==''){\n    node.name=name;\n  }\n}\nfunction restoreControlledState(element, props){\n  var node=element;\n  updateWrapper(node, props);\n  updateNamedCousins(node, props);\n}\n\nfunction updateNamedCousins(rootNode, props){\n  var name=props.name;\n\n  if(props.type==='radio'&&name!=null){\n    var queryRoot=rootNode;\n\n    while (queryRoot.parentNode){\n      queryRoot=queryRoot.parentNode;\n    } // If `rootNode.form` was non-null, then we could try `form.elements`,\n    // but that sometimes behaves strangely in IE8. We could also try using\n    // `form.getElementsByName`, but that will only return direct children\n    // and won't include inputs that use the HTML5 `form=` attribute. Since\n    // the input might not even be in a form. It might not even be in the\n    // document. Let's just use the local `querySelectorAll` to ensure we don't\n    // miss anything.\n\n\n    var group=queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type=\"radio\"]');\n\n    for (var i=0; i < group.length; i++){\n      var otherNode=group[i];\n\n      if(otherNode===rootNode||otherNode.form!==rootNode.form){\n        continue;\n      } // This will throw if radio buttons rendered by different copies of React\n      // and the same name are rendered into the same form (same as #1939).\n      // That's probably okay; we don't support it just as we don't support\n      // mixing React radio buttons with non-React ones.\n\n\n      var otherProps=getFiberCurrentPropsFromNode$1(otherNode);\n\n      if(!otherProps){\n        {\n          throw Error(\"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.\");\n        }\n      } // We need update the tracked value on the named cousin since the value\n      // was changed but the input saw no event or value set\n\n\n      updateValueIfChanged(otherNode); // If this is a controlled radio button group, forcing the input that\n      // was previously checked to update will cause it to be come re-checked\n      // as appropriate.\n\n      updateWrapper(otherNode, otherProps);\n    }\n  }\n} // In Chrome, assigning defaultValue to certain input types triggers input validation.\n// For number inputs, the display value loses trailing decimal points. For email inputs,\n// Chrome raises \"The specified value <x> is not a valid email address\".\n//\n// Here we check to see if the defaultValue has actually changed, avoiding these problems\n// when the user is inputting text\n//\n// https://github.com/facebook/react/issues/7253\n\n\nfunction setDefaultValue(node, type, value){\n  if(// Focused number inputs synchronize on blur. See ChangeEventPlugin.js\n  type!=='number'||node.ownerDocument.activeElement!==node){\n    if(value==null){\n      node.defaultValue=toString(node._wrapperState.initialValue);\n    }else if(node.defaultValue!==toString(value)){\n      node.defaultValue=toString(value);\n    }\n  }\n}\n\nvar didWarnSelectedSetOnOption=false;\nvar didWarnInvalidChild=false;\n\nfunction flattenChildren(children){\n  var content=''; // Flatten children. We'll warn if they are invalid\n  // during validateProps() which runs for hydration too.\n  // Note that this would throw on non-element objects.\n  // Elements are stringified (which is normally irrelevant\n  // but matters for <fbt>).\n\n  React.Children.forEach(children, function (child){\n    if(child==null){\n      return;\n    }\n\n    content +=child; // Note: we don't warn about invalid children here.\n    // Instead, this is done separately below so that\n    // it happens during the hydration codepath too.\n  });\n  return content;\n}\n\n\n\nfunction validateProps(element, props){\n  {\n    // This mirrors the codepath above, but runs for hydration too.\n    // Warn about invalid children here so that client and hydration are consistent.\n    // TODO: this seems like it could cause a DEV-only throw for hydration\n    // if children contains a non-element object. We should try to avoid that.\n    if(typeof props.children==='object'&&props.children!==null){\n      React.Children.forEach(props.children, function (child){\n        if(child==null){\n          return;\n        }\n\n        if(typeof child==='string'||typeof child==='number'){\n          return;\n        }\n\n        if(typeof child.type!=='string'){\n          return;\n        }\n\n        if(!didWarnInvalidChild){\n          didWarnInvalidChild=true;\n\n          error('Only strings and numbers are supported as <option> children.');\n        }\n      });\n    } // TODO: Remove support for `selected` in <option>.\n\n\n    if(props.selected!=null&&!didWarnSelectedSetOnOption){\n      error('Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');\n\n      didWarnSelectedSetOnOption=true;\n    }\n  }\n}\nfunction postMountWrapper$1(element, props){\n  // value=\"\" should make a value attribute (#6219)\n  if(props.value!=null){\n    element.setAttribute('value', toString(getToStringValue(props.value)));\n  }\n}\nfunction getHostProps$1(element, props){\n  var hostProps=_assign({\n    children: undefined\n  }, props);\n\n  var content=flattenChildren(props.children);\n\n  if(content){\n    hostProps.children=content;\n  }\n\n  return hostProps;\n}\n\nvar didWarnValueDefaultValue$1;\n\n{\n  didWarnValueDefaultValue$1=false;\n}\n\nfunction getDeclarationErrorAddendum(){\n  var ownerName=getCurrentFiberOwnerNameInDevOrNull();\n\n  if(ownerName){\n    return '\\n\\nCheck the render method of `' + ownerName + '`.';\n  }\n\n  return '';\n}\n\nvar valuePropNames=['value', 'defaultValue'];\n\n\nfunction checkSelectPropTypes(props){\n  {\n    ReactControlledValuePropTypes.checkPropTypes('select', props);\n\n    for (var i=0; i < valuePropNames.length; i++){\n      var propName=valuePropNames[i];\n\n      if(props[propName]==null){\n        continue;\n      }\n\n      var isArray=Array.isArray(props[propName]);\n\n      if(props.multiple&&!isArray){\n        error('The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());\n      }else if(!props.multiple&&isArray){\n        error('The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());\n      }\n    }\n  }\n}\n\nfunction updateOptions(node, multiple, propValue, setDefaultSelected){\n  var options=node.options;\n\n  if(multiple){\n    var selectedValues=propValue;\n    var selectedValue={};\n\n    for (var i=0; i < selectedValues.length; i++){\n      // Prefix to avoid chaos with special keys.\n      selectedValue['$' + selectedValues[i]]=true;\n    }\n\n    for (var _i=0; _i < options.length; _i++){\n      var selected=selectedValue.hasOwnProperty('$' + options[_i].value);\n\n      if(options[_i].selected!==selected){\n        options[_i].selected=selected;\n      }\n\n      if(selected&&setDefaultSelected){\n        options[_i].defaultSelected=true;\n      }\n    }\n  }else{\n    // Do not set `select.value` as exact behavior isn't consistent across all\n    // browsers for all cases.\n    var _selectedValue=toString(getToStringValue(propValue));\n\n    var defaultSelected=null;\n\n    for (var _i2=0; _i2 < options.length; _i2++){\n      if(options[_i2].value===_selectedValue){\n        options[_i2].selected=true;\n\n        if(setDefaultSelected){\n          options[_i2].defaultSelected=true;\n        }\n\n        return;\n      }\n\n      if(defaultSelected===null&&!options[_i2].disabled){\n        defaultSelected=options[_i2];\n      }\n    }\n\n    if(defaultSelected!==null){\n      defaultSelected.selected=true;\n    }\n  }\n}\n\n\n\nfunction getHostProps$2(element, props){\n  return _assign({}, props, {\n    value: undefined\n  });\n}\nfunction initWrapperState$1(element, props){\n  var node=element;\n\n  {\n    checkSelectPropTypes(props);\n  }\n\n  node._wrapperState={\n    wasMultiple: !!props.multiple\n  };\n\n  {\n    if(props.value!==undefined&&props.defaultValue!==undefined&&!didWarnValueDefaultValue$1){\n      error('Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');\n\n      didWarnValueDefaultValue$1=true;\n    }\n  }\n}\nfunction postMountWrapper$2(element, props){\n  var node=element;\n  node.multiple = !!props.multiple;\n  var value=props.value;\n\n  if(value!=null){\n    updateOptions(node, !!props.multiple, value, false);\n  }else if(props.defaultValue!=null){\n    updateOptions(node, !!props.multiple, props.defaultValue, true);\n  }\n}\nfunction postUpdateWrapper(element, props){\n  var node=element;\n  var wasMultiple=node._wrapperState.wasMultiple;\n  node._wrapperState.wasMultiple = !!props.multiple;\n  var value=props.value;\n\n  if(value!=null){\n    updateOptions(node, !!props.multiple, value, false);\n  }else if(wasMultiple!==!!props.multiple){\n    // For simplicity, reapply `defaultValue` if `multiple` is toggled.\n    if(props.defaultValue!=null){\n      updateOptions(node, !!props.multiple, props.defaultValue, true);\n    }else{\n      // Revert the select back to its default unselected state.\n      updateOptions(node, !!props.multiple, props.multiple ? []:'', false);\n    }\n  }\n}\nfunction restoreControlledState$1(element, props){\n  var node=element;\n  var value=props.value;\n\n  if(value!=null){\n    updateOptions(node, !!props.multiple, value, false);\n  }\n}\n\nvar didWarnValDefaultVal=false;\n\n\nfunction getHostProps$3(element, props){\n  var node=element;\n\n  if(!(props.dangerouslySetInnerHTML==null)){\n    {\n      throw Error(\"`dangerouslySetInnerHTML` does not make sense on <textarea>.\");\n    }\n  } // Always set children to the same thing. In IE9, the selection range will\n  // get reset if `textContent` is mutated.  We could add a check in setTextContent\n  // to only set the value if/when the value differs from the node value (which would\n  // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this\n  // solution. The value can be a boolean or object so that's why it's forced\n  // to be a string.\n\n\n  var hostProps=_assign({}, props, {\n    value: undefined,\n    defaultValue: undefined,\n    children: toString(node._wrapperState.initialValue)\n  });\n\n  return hostProps;\n}\nfunction initWrapperState$2(element, props){\n  var node=element;\n\n  {\n    ReactControlledValuePropTypes.checkPropTypes('textarea', props);\n\n    if(props.value!==undefined&&props.defaultValue!==undefined&&!didWarnValDefaultVal){\n      error('%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull()||'A component');\n\n      didWarnValDefaultVal=true;\n    }\n  }\n\n  var initialValue=props.value; // Only bother fetching default value if we're going to use it\n\n  if(initialValue==null){\n    var children=props.children,\n        defaultValue=props.defaultValue;\n\n    if(children!=null){\n      {\n        error('Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');\n      }\n\n      {\n        if(!(defaultValue==null)){\n          {\n            throw Error(\"If you supply `defaultValue` on a <textarea>, do not pass children.\");\n          }\n        }\n\n        if(Array.isArray(children)){\n          if(!(children.length <=1)){\n            {\n              throw Error(\"<textarea> can only have at most one child.\");\n            }\n          }\n\n          children=children[0];\n        }\n\n        defaultValue=children;\n      }\n    }\n\n    if(defaultValue==null){\n      defaultValue='';\n    }\n\n    initialValue=defaultValue;\n  }\n\n  node._wrapperState={\n    initialValue: getToStringValue(initialValue)\n  };\n}\nfunction updateWrapper$1(element, props){\n  var node=element;\n  var value=getToStringValue(props.value);\n  var defaultValue=getToStringValue(props.defaultValue);\n\n  if(value!=null){\n    // Cast `value` to a string to ensure the value is set correctly. While\n    // browsers typically do this as necessary, jsdom doesn't.\n    var newValue=toString(value); // To avoid side effects (such as losing text selection), only set value if changed\n\n    if(newValue!==node.value){\n      node.value=newValue;\n    }\n\n    if(props.defaultValue==null&&node.defaultValue!==newValue){\n      node.defaultValue=newValue;\n    }\n  }\n\n  if(defaultValue!=null){\n    node.defaultValue=toString(defaultValue);\n  }\n}\nfunction postMountWrapper$3(element, props){\n  var node=element; // This is in postMount because we need access to the DOM node, which is not\n  // available until after the component has mounted.\n\n  var textContent=node.textContent; // Only set node.value if textContent is equal to the expected\n  // initial value. In IE10/IE11 there is a bug where the placeholder attribute\n  // will populate textContent as well.\n  // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/\n\n  if(textContent===node._wrapperState.initialValue){\n    if(textContent!==''&&textContent!==null){\n      node.value=textContent;\n    }\n  }\n}\nfunction restoreControlledState$2(element, props){\n  // DOM component is still mounted; update\n  updateWrapper$1(element, props);\n}\n\nvar HTML_NAMESPACE='http://www.w3.org/1999/xhtml';\nvar MATH_NAMESPACE='http://www.w3.org/1998/Math/MathML';\nvar SVG_NAMESPACE='http://www.w3.org/2000/svg';\nvar Namespaces={\n  html: HTML_NAMESPACE,\n  mathml: MATH_NAMESPACE,\n  svg: SVG_NAMESPACE\n}; // Assumes there is no parent namespace.\n\nfunction getIntrinsicNamespace(type){\n  switch (type){\n    case 'svg':\n      return SVG_NAMESPACE;\n\n    case 'math':\n      return MATH_NAMESPACE;\n\n    default:\n      return HTML_NAMESPACE;\n  }\n}\nfunction getChildNamespace(parentNamespace, type){\n  if(parentNamespace==null||parentNamespace===HTML_NAMESPACE){\n    // No (or default) parent namespace: potential entry point.\n    return getIntrinsicNamespace(type);\n  }\n\n  if(parentNamespace===SVG_NAMESPACE&&type==='foreignObject'){\n    // We're leaving SVG.\n    return HTML_NAMESPACE;\n  } // By default, pass namespace below.\n\n\n  return parentNamespace;\n}\n\n\n\n\nvar createMicrosoftUnsafeLocalFunction=function (func){\n  if(typeof MSApp!=='undefined'&&MSApp.execUnsafeLocalFunction){\n    return function (arg0, arg1, arg2, arg3){\n      MSApp.execUnsafeLocalFunction(function (){\n        return func(arg0, arg1, arg2, arg3);\n      });\n    };\n  }else{\n    return func;\n  }\n};\n\nvar reusableSVGContainer;\n\n\nvar setInnerHTML=createMicrosoftUnsafeLocalFunction(function (node, html){\n  if(node.namespaceURI===Namespaces.svg){\n\n    if(!('innerHTML' in node)){\n      // IE does not have innerHTML for SVG nodes, so instead we inject the\n      // new markup in a temp node and then move the child nodes across into\n      // the target node\n      reusableSVGContainer=reusableSVGContainer||document.createElement('div');\n      reusableSVGContainer.innerHTML='<svg>' + html.valueOf().toString() + '</svg>';\n      var svgNode=reusableSVGContainer.firstChild;\n\n      while (node.firstChild){\n        node.removeChild(node.firstChild);\n      }\n\n      while (svgNode.firstChild){\n        node.appendChild(svgNode.firstChild);\n      }\n\n      return;\n    }\n  }\n\n  node.innerHTML=html;\n});\n\n\nvar ELEMENT_NODE=1;\nvar TEXT_NODE=3;\nvar COMMENT_NODE=8;\nvar DOCUMENT_NODE=9;\nvar DOCUMENT_FRAGMENT_NODE=11;\n\n\n\nvar setTextContent=function (node, text){\n  if(text){\n    var firstChild=node.firstChild;\n\n    if(firstChild&&firstChild===node.lastChild&&firstChild.nodeType===TEXT_NODE){\n      firstChild.nodeValue=text;\n      return;\n    }\n  }\n\n  node.textContent=text;\n};\n\n// Do not use the below two methods directly!\n// Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.\n// (It is the only module that is allowed to access these methods.)\nfunction unsafeCastStringToDOMTopLevelType(topLevelType){\n  return topLevelType;\n}\nfunction unsafeCastDOMTopLevelTypeToString(topLevelType){\n  return topLevelType;\n}\n\n\n\nfunction makePrefixMap(styleProp, eventName){\n  var prefixes={};\n  prefixes[styleProp.toLowerCase()]=eventName.toLowerCase();\n  prefixes['Webkit' + styleProp]='webkit' + eventName;\n  prefixes['Moz' + styleProp]='moz' + eventName;\n  return prefixes;\n}\n\n\n\nvar vendorPrefixes={\n  animationend: makePrefixMap('Animation', 'AnimationEnd'),\n  animationiteration: makePrefixMap('Animation', 'AnimationIteration'),\n  animationstart: makePrefixMap('Animation', 'AnimationStart'),\n  transitionend: makePrefixMap('Transition', 'TransitionEnd')\n};\n\n\nvar prefixedEventNames={};\n\n\nvar style={};\n\n\nif(canUseDOM){\n  style=document.createElement('div').style; // On some platforms, in particular some releases of Android 4.x,\n  // the un-prefixed \"animation\" and \"transition\" properties are defined on the\n  // style object but the events that fire will still be prefixed, so we need\n  // to check if the un-prefixed events are usable, and if not remove them from the map.\n\n  if(!('AnimationEvent' in window)){\n    delete vendorPrefixes.animationend.animation;\n    delete vendorPrefixes.animationiteration.animation;\n    delete vendorPrefixes.animationstart.animation;\n  } // Same as above\n\n\n  if(!('TransitionEvent' in window)){\n    delete vendorPrefixes.transitionend.transition;\n  }\n}\n\n\n\nfunction getVendorPrefixedEventName(eventName){\n  if(prefixedEventNames[eventName]){\n    return prefixedEventNames[eventName];\n  }else if(!vendorPrefixes[eventName]){\n    return eventName;\n  }\n\n  var prefixMap=vendorPrefixes[eventName];\n\n  for (var styleProp in prefixMap){\n    if(prefixMap.hasOwnProperty(styleProp)&&styleProp in style){\n      return prefixedEventNames[eventName]=prefixMap[styleProp];\n    }\n  }\n\n  return eventName;\n}\n\n\n\nvar TOP_ABORT=unsafeCastStringToDOMTopLevelType('abort');\nvar TOP_ANIMATION_END=unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));\nvar TOP_ANIMATION_ITERATION=unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));\nvar TOP_ANIMATION_START=unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));\nvar TOP_BLUR=unsafeCastStringToDOMTopLevelType('blur');\nvar TOP_CAN_PLAY=unsafeCastStringToDOMTopLevelType('canplay');\nvar TOP_CAN_PLAY_THROUGH=unsafeCastStringToDOMTopLevelType('canplaythrough');\nvar TOP_CANCEL=unsafeCastStringToDOMTopLevelType('cancel');\nvar TOP_CHANGE=unsafeCastStringToDOMTopLevelType('change');\nvar TOP_CLICK=unsafeCastStringToDOMTopLevelType('click');\nvar TOP_CLOSE=unsafeCastStringToDOMTopLevelType('close');\nvar TOP_COMPOSITION_END=unsafeCastStringToDOMTopLevelType('compositionend');\nvar TOP_COMPOSITION_START=unsafeCastStringToDOMTopLevelType('compositionstart');\nvar TOP_COMPOSITION_UPDATE=unsafeCastStringToDOMTopLevelType('compositionupdate');\nvar TOP_CONTEXT_MENU=unsafeCastStringToDOMTopLevelType('contextmenu');\nvar TOP_COPY=unsafeCastStringToDOMTopLevelType('copy');\nvar TOP_CUT=unsafeCastStringToDOMTopLevelType('cut');\nvar TOP_DOUBLE_CLICK=unsafeCastStringToDOMTopLevelType('dblclick');\nvar TOP_AUX_CLICK=unsafeCastStringToDOMTopLevelType('auxclick');\nvar TOP_DRAG=unsafeCastStringToDOMTopLevelType('drag');\nvar TOP_DRAG_END=unsafeCastStringToDOMTopLevelType('dragend');\nvar TOP_DRAG_ENTER=unsafeCastStringToDOMTopLevelType('dragenter');\nvar TOP_DRAG_EXIT=unsafeCastStringToDOMTopLevelType('dragexit');\nvar TOP_DRAG_LEAVE=unsafeCastStringToDOMTopLevelType('dragleave');\nvar TOP_DRAG_OVER=unsafeCastStringToDOMTopLevelType('dragover');\nvar TOP_DRAG_START=unsafeCastStringToDOMTopLevelType('dragstart');\nvar TOP_DROP=unsafeCastStringToDOMTopLevelType('drop');\nvar TOP_DURATION_CHANGE=unsafeCastStringToDOMTopLevelType('durationchange');\nvar TOP_EMPTIED=unsafeCastStringToDOMTopLevelType('emptied');\nvar TOP_ENCRYPTED=unsafeCastStringToDOMTopLevelType('encrypted');\nvar TOP_ENDED=unsafeCastStringToDOMTopLevelType('ended');\nvar TOP_ERROR=unsafeCastStringToDOMTopLevelType('error');\nvar TOP_FOCUS=unsafeCastStringToDOMTopLevelType('focus');\nvar TOP_GOT_POINTER_CAPTURE=unsafeCastStringToDOMTopLevelType('gotpointercapture');\nvar TOP_INPUT=unsafeCastStringToDOMTopLevelType('input');\nvar TOP_INVALID=unsafeCastStringToDOMTopLevelType('invalid');\nvar TOP_KEY_DOWN=unsafeCastStringToDOMTopLevelType('keydown');\nvar TOP_KEY_PRESS=unsafeCastStringToDOMTopLevelType('keypress');\nvar TOP_KEY_UP=unsafeCastStringToDOMTopLevelType('keyup');\nvar TOP_LOAD=unsafeCastStringToDOMTopLevelType('load');\nvar TOP_LOAD_START=unsafeCastStringToDOMTopLevelType('loadstart');\nvar TOP_LOADED_DATA=unsafeCastStringToDOMTopLevelType('loadeddata');\nvar TOP_LOADED_METADATA=unsafeCastStringToDOMTopLevelType('loadedmetadata');\nvar TOP_LOST_POINTER_CAPTURE=unsafeCastStringToDOMTopLevelType('lostpointercapture');\nvar TOP_MOUSE_DOWN=unsafeCastStringToDOMTopLevelType('mousedown');\nvar TOP_MOUSE_MOVE=unsafeCastStringToDOMTopLevelType('mousemove');\nvar TOP_MOUSE_OUT=unsafeCastStringToDOMTopLevelType('mouseout');\nvar TOP_MOUSE_OVER=unsafeCastStringToDOMTopLevelType('mouseover');\nvar TOP_MOUSE_UP=unsafeCastStringToDOMTopLevelType('mouseup');\nvar TOP_PASTE=unsafeCastStringToDOMTopLevelType('paste');\nvar TOP_PAUSE=unsafeCastStringToDOMTopLevelType('pause');\nvar TOP_PLAY=unsafeCastStringToDOMTopLevelType('play');\nvar TOP_PLAYING=unsafeCastStringToDOMTopLevelType('playing');\nvar TOP_POINTER_CANCEL=unsafeCastStringToDOMTopLevelType('pointercancel');\nvar TOP_POINTER_DOWN=unsafeCastStringToDOMTopLevelType('pointerdown');\nvar TOP_POINTER_MOVE=unsafeCastStringToDOMTopLevelType('pointermove');\nvar TOP_POINTER_OUT=unsafeCastStringToDOMTopLevelType('pointerout');\nvar TOP_POINTER_OVER=unsafeCastStringToDOMTopLevelType('pointerover');\nvar TOP_POINTER_UP=unsafeCastStringToDOMTopLevelType('pointerup');\nvar TOP_PROGRESS=unsafeCastStringToDOMTopLevelType('progress');\nvar TOP_RATE_CHANGE=unsafeCastStringToDOMTopLevelType('ratechange');\nvar TOP_RESET=unsafeCastStringToDOMTopLevelType('reset');\nvar TOP_SCROLL=unsafeCastStringToDOMTopLevelType('scroll');\nvar TOP_SEEKED=unsafeCastStringToDOMTopLevelType('seeked');\nvar TOP_SEEKING=unsafeCastStringToDOMTopLevelType('seeking');\nvar TOP_SELECTION_CHANGE=unsafeCastStringToDOMTopLevelType('selectionchange');\nvar TOP_STALLED=unsafeCastStringToDOMTopLevelType('stalled');\nvar TOP_SUBMIT=unsafeCastStringToDOMTopLevelType('submit');\nvar TOP_SUSPEND=unsafeCastStringToDOMTopLevelType('suspend');\nvar TOP_TEXT_INPUT=unsafeCastStringToDOMTopLevelType('textInput');\nvar TOP_TIME_UPDATE=unsafeCastStringToDOMTopLevelType('timeupdate');\nvar TOP_TOGGLE=unsafeCastStringToDOMTopLevelType('toggle');\nvar TOP_TOUCH_CANCEL=unsafeCastStringToDOMTopLevelType('touchcancel');\nvar TOP_TOUCH_END=unsafeCastStringToDOMTopLevelType('touchend');\nvar TOP_TOUCH_MOVE=unsafeCastStringToDOMTopLevelType('touchmove');\nvar TOP_TOUCH_START=unsafeCastStringToDOMTopLevelType('touchstart');\nvar TOP_TRANSITION_END=unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));\nvar TOP_VOLUME_CHANGE=unsafeCastStringToDOMTopLevelType('volumechange');\nvar TOP_WAITING=unsafeCastStringToDOMTopLevelType('waiting');\nvar TOP_WHEEL=unsafeCastStringToDOMTopLevelType('wheel'); // List of events that need to be individually attached to media elements.\n// Note that events in this list will *not* be listened to at the top level\n// unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.\n\nvar mediaEventTypes=[TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];\nfunction getRawEventName(topLevelType){\n  return unsafeCastDOMTopLevelTypeToString(topLevelType);\n}\n\nvar PossiblyWeakMap=typeof WeakMap==='function' ? WeakMap:Map; // prettier-ignore\n\nvar elementListenerMap=new PossiblyWeakMap();\nfunction getListenerMapForElement(element){\n  var listenerMap=elementListenerMap.get(element);\n\n  if(listenerMap===undefined){\n    listenerMap=new Map();\n    elementListenerMap.set(element, listenerMap);\n  }\n\n  return listenerMap;\n}\n\n\nfunction get(key){\n  return key._reactInternalFiber;\n}\nfunction has(key){\n  return key._reactInternalFiber!==undefined;\n}\nfunction set(key, value){\n  key._reactInternalFiber=value;\n}\n\n// Don't change these two values. They're used by React Dev Tools.\nvar NoEffect=\n\n0;\nvar PerformedWork=\n\n1; // You can change the rest (and add more).\n\nvar Placement=\n\n2;\nvar Update=\n\n4;\nvar PlacementAndUpdate=\n\n6;\nvar Deletion=\n\n8;\nvar ContentReset=\n\n16;\nvar Callback=\n\n32;\nvar DidCapture=\n\n64;\nvar Ref=\n\n128;\nvar Snapshot=\n\n256;\nvar Passive=\n\n512;\nvar Hydrating=\n\n1024;\nvar HydratingAndUpdate=\n\n1028; // Passive & Update & Callback & Ref & Snapshot\n\nvar LifecycleEffectMask=\n\n932; // Union of all host effects\n\nvar HostEffectMask=\n\n2047;\nvar Incomplete=\n\n2048;\nvar ShouldCapture=\n\n4096;\n\nvar ReactCurrentOwner=ReactSharedInternals.ReactCurrentOwner;\nfunction getNearestMountedFiber(fiber){\n  var node=fiber;\n  var nearestMounted=fiber;\n\n  if(!fiber.alternate){\n    // If there is no alternate, this might be a new tree that isn't inserted\n    // yet. If it is, then it will have a pending insertion effect on it.\n    var nextNode=node;\n\n    do {\n      node=nextNode;\n\n      if((node.effectTag & (Placement | Hydrating))!==NoEffect){\n        // This is an insertion or in-progress hydration. The nearest possible\n        // mounted fiber is the parent but we need to continue to figure out\n        // if that one is still mounted.\n        nearestMounted=node.return;\n      }\n\n      nextNode=node.return;\n    } while (nextNode);\n  }else{\n    while (node.return){\n      node=node.return;\n    }\n  }\n\n  if(node.tag===HostRoot){\n    // TODO: Check if this was a nested HostRoot when used with\n    // renderContainerIntoSubtree.\n    return nearestMounted;\n  } // If we didn't hit the root, that means that we're in an disconnected tree\n  // that has been unmounted.\n\n\n  return null;\n}\nfunction getSuspenseInstanceFromFiber(fiber){\n  if(fiber.tag===SuspenseComponent){\n    var suspenseState=fiber.memoizedState;\n\n    if(suspenseState===null){\n      var current=fiber.alternate;\n\n      if(current!==null){\n        suspenseState=current.memoizedState;\n      }\n    }\n\n    if(suspenseState!==null){\n      return suspenseState.dehydrated;\n    }\n  }\n\n  return null;\n}\nfunction getContainerFromFiber(fiber){\n  return fiber.tag===HostRoot ? fiber.stateNode.containerInfo:null;\n}\nfunction isFiberMounted(fiber){\n  return getNearestMountedFiber(fiber)===fiber;\n}\nfunction isMounted(component){\n  {\n    var owner=ReactCurrentOwner.current;\n\n    if(owner!==null&&owner.tag===ClassComponent){\n      var ownerFiber=owner;\n      var instance=ownerFiber.stateNode;\n\n      if(!instance._warnedAboutRefsInRender){\n        error('%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type)||'A component');\n      }\n\n      instance._warnedAboutRefsInRender=true;\n    }\n  }\n\n  var fiber=get(component);\n\n  if(!fiber){\n    return false;\n  }\n\n  return getNearestMountedFiber(fiber)===fiber;\n}\n\nfunction assertIsMounted(fiber){\n  if(!(getNearestMountedFiber(fiber)===fiber)){\n    {\n      throw Error(\"Unable to find node on an unmounted component.\");\n    }\n  }\n}\n\nfunction findCurrentFiberUsingSlowPath(fiber){\n  var alternate=fiber.alternate;\n\n  if(!alternate){\n    // If there is no alternate, then we only need to check if it is mounted.\n    var nearestMounted=getNearestMountedFiber(fiber);\n\n    if(!(nearestMounted!==null)){\n      {\n        throw Error(\"Unable to find node on an unmounted component.\");\n      }\n    }\n\n    if(nearestMounted!==fiber){\n      return null;\n    }\n\n    return fiber;\n  } // If we have two possible branches, we'll walk backwards up to the root\n  // to see what path the root points to. On the way we may hit one of the\n  // special cases and we'll deal with them.\n\n\n  var a=fiber;\n  var b=alternate;\n\n  while (true){\n    var parentA=a.return;\n\n    if(parentA===null){\n      // We're at the root.\n      break;\n    }\n\n    var parentB=parentA.alternate;\n\n    if(parentB===null){\n      // There is no alternate. This is an unusual case. Currently, it only\n      // happens when a Suspense component is hidden. An extra fragment fiber\n      // is inserted in between the Suspense fiber and its children. Skip\n      // over this extra fragment fiber and proceed to the next parent.\n      var nextParent=parentA.return;\n\n      if(nextParent!==null){\n        a=b = nextParent;\n        continue;\n      } // If there's no parent, we're at the root.\n\n\n      break;\n    } // If both copies of the parent fiber point to the same child, we can\n    // assume that the child is current. This happens when we bailout on low\n    // priority: the bailed out fiber's child reuses the current child.\n\n\n    if(parentA.child===parentB.child){\n      var child=parentA.child;\n\n      while (child){\n        if(child===a){\n          // We've determined that A is the current branch.\n          assertIsMounted(parentA);\n          return fiber;\n        }\n\n        if(child===b){\n          // We've determined that B is the current branch.\n          assertIsMounted(parentA);\n          return alternate;\n        }\n\n        child=child.sibling;\n      } // We should never have an alternate for any mounting node. So the only\n      // way this could possibly happen is if this was unmounted, if at all.\n\n\n      {\n        {\n          throw Error(\"Unable to find node on an unmounted component.\");\n        }\n      }\n    }\n\n    if(a.return!==b.return){\n      // The return pointer of A and the return pointer of B point to different\n      // fibers. We assume that return pointers never criss-cross, so A must\n      // belong to the child set of A.return, and B must belong to the child\n      // set of B.return.\n      a=parentA;\n      b=parentB;\n    }else{\n      // The return pointers point to the same fiber. We'll have to use the\n      // default, slow path: scan the child sets of each parent alternate to see\n      // which child belongs to which set.\n      //\n      // Search parent A's child set\n      var didFindChild=false;\n      var _child=parentA.child;\n\n      while (_child){\n        if(_child===a){\n          didFindChild=true;\n          a=parentA;\n          b=parentB;\n          break;\n        }\n\n        if(_child===b){\n          didFindChild=true;\n          b=parentA;\n          a=parentB;\n          break;\n        }\n\n        _child=_child.sibling;\n      }\n\n      if(!didFindChild){\n        // Search parent B's child set\n        _child=parentB.child;\n\n        while (_child){\n          if(_child===a){\n            didFindChild=true;\n            a=parentB;\n            b=parentA;\n            break;\n          }\n\n          if(_child===b){\n            didFindChild=true;\n            b=parentB;\n            a=parentA;\n            break;\n          }\n\n          _child=_child.sibling;\n        }\n\n        if(!didFindChild){\n          {\n            throw Error(\"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\");\n          }\n        }\n      }\n    }\n\n    if(!(a.alternate===b)){\n      {\n        throw Error(\"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n  } // If the root is not a host container, we're in a disconnected tree. I.e.\n  // unmounted.\n\n\n  if(!(a.tag===HostRoot)){\n    {\n      throw Error(\"Unable to find node on an unmounted component.\");\n    }\n  }\n\n  if(a.stateNode.current===a){\n    // We've determined that A is the current branch.\n    return fiber;\n  } // Otherwise B has to be current branch.\n\n\n  return alternate;\n}\nfunction findCurrentHostFiber(parent){\n  var currentParent=findCurrentFiberUsingSlowPath(parent);\n\n  if(!currentParent){\n    return null;\n  } // Next we'll drill down this component to find the first HostComponent/Text.\n\n\n  var node=currentParent;\n\n  while (true){\n    if(node.tag===HostComponent||node.tag===HostText){\n      return node;\n    }else if(node.child){\n      node.child.return=node;\n      node=node.child;\n      continue;\n    }\n\n    if(node===currentParent){\n      return null;\n    }\n\n    while (!node.sibling){\n      if(!node.return||node.return===currentParent){\n        return null;\n      }\n\n      node=node.return;\n    }\n\n    node.sibling.return=node.return;\n    node=node.sibling;\n  } // Flow needs the return null here, but ESLint complains about it.\n  // eslint-disable-next-line no-unreachable\n\n\n  return null;\n}\nfunction findCurrentHostFiberWithNoPortals(parent){\n  var currentParent=findCurrentFiberUsingSlowPath(parent);\n\n  if(!currentParent){\n    return null;\n  } // Next we'll drill down this component to find the first HostComponent/Text.\n\n\n  var node=currentParent;\n\n  while (true){\n    if(node.tag===HostComponent||node.tag===HostText||enableFundamentalAPI){\n      return node;\n    }else if(node.child&&node.tag!==HostPortal){\n      node.child.return=node;\n      node=node.child;\n      continue;\n    }\n\n    if(node===currentParent){\n      return null;\n    }\n\n    while (!node.sibling){\n      if(!node.return||node.return===currentParent){\n        return null;\n      }\n\n      node=node.return;\n    }\n\n    node.sibling.return=node.return;\n    node=node.sibling;\n  } // Flow needs the return null here, but ESLint complains about it.\n  // eslint-disable-next-line no-unreachable\n\n\n  return null;\n}\n\n\n\nfunction accumulateInto(current, next){\n  if(!(next!=null)){\n    {\n      throw Error(\"accumulateInto(...): Accumulated items must not be null or undefined.\");\n    }\n  }\n\n  if(current==null){\n    return next;\n  } // Both are not empty. Warning: Never call x.concat(y) when you are not\n  // certain that x is an Array (x could be a string with concat method).\n\n\n  if(Array.isArray(current)){\n    if(Array.isArray(next)){\n      current.push.apply(current, next);\n      return current;\n    }\n\n    current.push(next);\n    return current;\n  }\n\n  if(Array.isArray(next)){\n    // A bit too dangerous to mutate `next`.\n    return [current].concat(next);\n  }\n\n  return [current, next];\n}\n\n\nfunction forEachAccumulated(arr, cb, scope){\n  if(Array.isArray(arr)){\n    arr.forEach(cb, scope);\n  }else if(arr){\n    cb.call(scope, arr);\n  }\n}\n\n\n\nvar eventQueue=null;\n\n\nvar executeDispatchesAndRelease=function (event){\n  if(event){\n    executeDispatchesInOrder(event);\n\n    if(!event.isPersistent()){\n      event.constructor.release(event);\n    }\n  }\n};\n\nvar executeDispatchesAndReleaseTopLevel=function (e){\n  return executeDispatchesAndRelease(e);\n};\n\nfunction runEventsInBatch(events){\n  if(events!==null){\n    eventQueue=accumulateInto(eventQueue, events);\n  } // Set `eventQueue` to null before processing it so that we can tell if more\n  // events get enqueued while processing.\n\n\n  var processingEventQueue=eventQueue;\n  eventQueue=null;\n\n  if(!processingEventQueue){\n    return;\n  }\n\n  forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);\n\n  if(!!eventQueue){\n    {\n      throw Error(\"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.\");\n    }\n  } // This would be a good time to rethrow if any of the event handlers threw.\n\n\n  rethrowCaughtError();\n}\n\n\n\nfunction getEventTarget(nativeEvent){\n  // Fallback to nativeEvent.srcElement for IE9\n  // https://github.com/facebook/react/issues/12506\n  var target=nativeEvent.target||nativeEvent.srcElement||window; // Normalize SVG <use> element events #4963\n\n  if(target.correspondingUseElement){\n    target=target.correspondingUseElement;\n  } // Safari may fire events on text nodes (Node.TEXT_NODE is 3).\n  // @see http://www.quirksmode.org/js/events_properties.html\n\n\n  return target.nodeType===TEXT_NODE ? target.parentNode:target;\n}\n\n\n\nfunction isEventSupported(eventNameSuffix){\n  if(!canUseDOM){\n    return false;\n  }\n\n  var eventName='on' + eventNameSuffix;\n  var isSupported=eventName in document;\n\n  if(!isSupported){\n    var element=document.createElement('div');\n    element.setAttribute(eventName, 'return;');\n    isSupported=typeof element[eventName]==='function';\n  }\n\n  return isSupported;\n}\n\n\n\nvar CALLBACK_BOOKKEEPING_POOL_SIZE=10;\nvar callbackBookkeepingPool=[];\n\nfunction releaseTopLevelCallbackBookKeeping(instance){\n  instance.topLevelType=null;\n  instance.nativeEvent=null;\n  instance.targetInst=null;\n  instance.ancestors.length=0;\n\n  if(callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE){\n    callbackBookkeepingPool.push(instance);\n  }\n} // Used to store ancestor hierarchy in top level callback\n\n\nfunction getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags){\n  if(callbackBookkeepingPool.length){\n    var instance=callbackBookkeepingPool.pop();\n    instance.topLevelType=topLevelType;\n    instance.eventSystemFlags=eventSystemFlags;\n    instance.nativeEvent=nativeEvent;\n    instance.targetInst=targetInst;\n    return instance;\n  }\n\n  return {\n    topLevelType: topLevelType,\n    eventSystemFlags: eventSystemFlags,\n    nativeEvent: nativeEvent,\n    targetInst: targetInst,\n    ancestors: []\n  };\n}\n\n\n\nfunction findRootContainerNode(inst){\n  if(inst.tag===HostRoot){\n    return inst.stateNode.containerInfo;\n  } // TODO: It may be a good idea to cache this to prevent unnecessary DOM\n  // traversal, but caching is difficult to do correctly without using a\n  // mutation observer to listen for all DOM changes.\n\n\n  while (inst.return){\n    inst=inst.return;\n  }\n\n  if(inst.tag!==HostRoot){\n    // This can happen if we're in a detached tree.\n    return null;\n  }\n\n  return inst.stateNode.containerInfo;\n}\n\n\n\nfunction extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags){\n  var events=null;\n\n  for (var i=0; i < plugins.length; i++){\n    // Not every plugin in the ordering may be loaded at runtime.\n    var possiblePlugin=plugins[i];\n\n    if(possiblePlugin){\n      var extractedEvents=possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n\n      if(extractedEvents){\n        events=accumulateInto(events, extractedEvents);\n      }\n    }\n  }\n\n  return events;\n}\n\nfunction runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags){\n  var events=extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);\n  runEventsInBatch(events);\n}\n\nfunction handleTopLevel(bookKeeping){\n  var targetInst=bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components.\n  // It's important that we build the array of ancestors before calling any\n  // event handlers, because event handlers can modify the DOM, leading to\n  // inconsistencies with ReactMount's node cache. See #1105.\n\n  var ancestor=targetInst;\n\n  do {\n    if(!ancestor){\n      var ancestors=bookKeeping.ancestors;\n      ancestors.push(ancestor);\n      break;\n    }\n\n    var root=findRootContainerNode(ancestor);\n\n    if(!root){\n      break;\n    }\n\n    var tag=ancestor.tag;\n\n    if(tag===HostComponent||tag===HostText){\n      bookKeeping.ancestors.push(ancestor);\n    }\n\n    ancestor=getClosestInstanceFromNode(root);\n  } while (ancestor);\n\n  for (var i=0; i < bookKeeping.ancestors.length; i++){\n    targetInst=bookKeeping.ancestors[i];\n    var eventTarget=getEventTarget(bookKeeping.nativeEvent);\n    var topLevelType=bookKeeping.topLevelType;\n    var nativeEvent=bookKeeping.nativeEvent;\n    var eventSystemFlags=bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags\n\n    if(i===0){\n      eventSystemFlags |=IS_FIRST_ANCESTOR;\n    }\n\n    runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags);\n  }\n}\n\nfunction dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst){\n  var bookKeeping=getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst, eventSystemFlags);\n\n  try {\n    // Event queue being processed in the same cycle allows\n    // `preventDefault`.\n    batchedEventUpdates(handleTopLevel, bookKeeping);\n  } finally {\n    releaseTopLevelCallbackBookKeeping(bookKeeping);\n  }\n}\n\n\nfunction legacyListenToEvent(registrationName, mountAt){\n  var listenerMap=getListenerMapForElement(mountAt);\n  var dependencies=registrationNameDependencies[registrationName];\n\n  for (var i=0; i < dependencies.length; i++){\n    var dependency=dependencies[i];\n    legacyListenToTopLevelEvent(dependency, mountAt, listenerMap);\n  }\n}\nfunction legacyListenToTopLevelEvent(topLevelType, mountAt, listenerMap){\n  if(!listenerMap.has(topLevelType)){\n    switch (topLevelType){\n      case TOP_SCROLL:\n        trapCapturedEvent(TOP_SCROLL, mountAt);\n        break;\n\n      case TOP_FOCUS:\n      case TOP_BLUR:\n        trapCapturedEvent(TOP_FOCUS, mountAt);\n        trapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function,\n        // but this ensures we mark both as attached rather than just one.\n\n        listenerMap.set(TOP_BLUR, null);\n        listenerMap.set(TOP_FOCUS, null);\n        break;\n\n      case TOP_CANCEL:\n      case TOP_CLOSE:\n        if(isEventSupported(getRawEventName(topLevelType))){\n          trapCapturedEvent(topLevelType, mountAt);\n        }\n\n        break;\n\n      case TOP_INVALID:\n      case TOP_SUBMIT:\n      case TOP_RESET:\n        // We listen to them on the target DOM elements.\n        // Some of them bubble so we don't want them to fire twice.\n        break;\n\n      default:\n        // By default, listen on the top level to all non-media events.\n        // Media events don't bubble so adding the listener wouldn't do anything.\n        var isMediaEvent=mediaEventTypes.indexOf(topLevelType)!==-1;\n\n        if(!isMediaEvent){\n          trapBubbledEvent(topLevelType, mountAt);\n        }\n\n        break;\n    }\n\n    listenerMap.set(topLevelType, null);\n  }\n}\nfunction isListeningToAllDependencies(registrationName, mountAt){\n  var listenerMap=getListenerMapForElement(mountAt);\n  var dependencies=registrationNameDependencies[registrationName];\n\n  for (var i=0; i < dependencies.length; i++){\n    var dependency=dependencies[i];\n\n    if(!listenerMap.has(dependency)){\n      return false;\n    }\n  }\n\n  return true;\n}\n\nvar attemptUserBlockingHydration;\nfunction setAttemptUserBlockingHydration(fn){\n  attemptUserBlockingHydration=fn;\n}\nvar attemptContinuousHydration;\nfunction setAttemptContinuousHydration(fn){\n  attemptContinuousHydration=fn;\n}\nvar attemptHydrationAtCurrentPriority;\nfunction setAttemptHydrationAtCurrentPriority(fn){\n  attemptHydrationAtCurrentPriority=fn;\n} // TODO: Upgrade this definition once we're on a newer version of Flow that\nvar hasScheduledReplayAttempt=false; // The queue of discrete events to be replayed.\n\nvar queuedDiscreteEvents=[]; // Indicates if any continuous event targets are non-null for early bailout.\n// if the last target was dehydrated.\n\nvar queuedFocus=null;\nvar queuedDrag=null;\nvar queuedMouse=null; // For pointer events there can be one latest event per pointerId.\n\nvar queuedPointers=new Map();\nvar queuedPointerCaptures=new Map(); // We could consider replaying selectionchange and touchmoves too.\n\nvar queuedExplicitHydrationTargets=[];\nfunction hasQueuedDiscreteEvents(){\n  return queuedDiscreteEvents.length > 0;\n}\nvar discreteReplayableEvents=[TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_TOUCH_CANCEL, TOP_TOUCH_END, TOP_TOUCH_START, TOP_AUX_CLICK, TOP_DOUBLE_CLICK, TOP_POINTER_CANCEL, TOP_POINTER_DOWN, TOP_POINTER_UP, TOP_DRAG_END, TOP_DRAG_START, TOP_DROP, TOP_COMPOSITION_END, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_INPUT, TOP_TEXT_INPUT, TOP_CLOSE, TOP_CANCEL, TOP_COPY, TOP_CUT, TOP_PASTE, TOP_CLICK, TOP_CHANGE, TOP_CONTEXT_MENU, TOP_RESET, TOP_SUBMIT];\nvar continuousReplayableEvents=[TOP_FOCUS, TOP_BLUR, TOP_DRAG_ENTER, TOP_DRAG_LEAVE, TOP_MOUSE_OVER, TOP_MOUSE_OUT, TOP_POINTER_OVER, TOP_POINTER_OUT, TOP_GOT_POINTER_CAPTURE, TOP_LOST_POINTER_CAPTURE];\nfunction isReplayableDiscreteEvent(eventType){\n  return discreteReplayableEvents.indexOf(eventType) > -1;\n}\n\nfunction trapReplayableEventForDocument(topLevelType, document, listenerMap){\n  legacyListenToTopLevelEvent(topLevelType, document, listenerMap);\n}\n\nfunction eagerlyTrapReplayableEvents(container, document){\n  var listenerMapForDoc=getListenerMapForElement(document); // Discrete\n\n  discreteReplayableEvents.forEach(function (topLevelType){\n    trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);\n  });// Continuous\n\n  continuousReplayableEvents.forEach(function (topLevelType){\n    trapReplayableEventForDocument(topLevelType, document, listenerMapForDoc);\n  });\n}\n\nfunction createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent){\n  return {\n    blockedOn: blockedOn,\n    topLevelType: topLevelType,\n    eventSystemFlags: eventSystemFlags | IS_REPLAYED,\n    nativeEvent: nativeEvent,\n    container: container\n  };\n}\n\nfunction queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent){\n  var queuedEvent=createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);\n  queuedDiscreteEvents.push(queuedEvent);\n} // Resets the replaying for this type of continuous event to no event.\n\nfunction clearIfContinuousEvent(topLevelType, nativeEvent){\n  switch (topLevelType){\n    case TOP_FOCUS:\n    case TOP_BLUR:\n      queuedFocus=null;\n      break;\n\n    case TOP_DRAG_ENTER:\n    case TOP_DRAG_LEAVE:\n      queuedDrag=null;\n      break;\n\n    case TOP_MOUSE_OVER:\n    case TOP_MOUSE_OUT:\n      queuedMouse=null;\n      break;\n\n    case TOP_POINTER_OVER:\n    case TOP_POINTER_OUT:\n      {\n        var pointerId=nativeEvent.pointerId;\n        queuedPointers.delete(pointerId);\n        break;\n      }\n\n    case TOP_GOT_POINTER_CAPTURE:\n    case TOP_LOST_POINTER_CAPTURE:\n      {\n        var _pointerId=nativeEvent.pointerId;\n        queuedPointerCaptures.delete(_pointerId);\n        break;\n      }\n  }\n}\n\nfunction accumulateOrCreateContinuousQueuedReplayableEvent(existingQueuedEvent, blockedOn, topLevelType, eventSystemFlags, container, nativeEvent){\n  if(existingQueuedEvent===null||existingQueuedEvent.nativeEvent!==nativeEvent){\n    var queuedEvent=createQueuedReplayableEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);\n\n    if(blockedOn!==null){\n      var _fiber2=getInstanceFromNode$1(blockedOn);\n\n      if(_fiber2!==null){\n        // Attempt to increase the priority of this target.\n        attemptContinuousHydration(_fiber2);\n      }\n    }\n\n    return queuedEvent;\n  } // If we have already queued this exact event, then it's because\n  // the different event systems have different DOM event listeners.\n  // We can accumulate the flags and store a single event to be\n  // replayed.\n\n\n  existingQueuedEvent.eventSystemFlags |=eventSystemFlags;\n  return existingQueuedEvent;\n}\n\nfunction queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent){\n  // These set relatedTarget to null because the replayed event will be treated as if we\n  // moved from outside the window (no target) onto the target once it hydrates.\n  // Instead of mutating we could clone the event.\n  switch (topLevelType){\n    case TOP_FOCUS:\n      {\n        var focusEvent=nativeEvent;\n        queuedFocus=accumulateOrCreateContinuousQueuedReplayableEvent(queuedFocus, blockedOn, topLevelType, eventSystemFlags, container, focusEvent);\n        return true;\n      }\n\n    case TOP_DRAG_ENTER:\n      {\n        var dragEvent=nativeEvent;\n        queuedDrag=accumulateOrCreateContinuousQueuedReplayableEvent(queuedDrag, blockedOn, topLevelType, eventSystemFlags, container, dragEvent);\n        return true;\n      }\n\n    case TOP_MOUSE_OVER:\n      {\n        var mouseEvent=nativeEvent;\n        queuedMouse=accumulateOrCreateContinuousQueuedReplayableEvent(queuedMouse, blockedOn, topLevelType, eventSystemFlags, container, mouseEvent);\n        return true;\n      }\n\n    case TOP_POINTER_OVER:\n      {\n        var pointerEvent=nativeEvent;\n        var pointerId=pointerEvent.pointerId;\n        queuedPointers.set(pointerId, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointers.get(pointerId)||null, blockedOn, topLevelType, eventSystemFlags, container, pointerEvent));\n        return true;\n      }\n\n    case TOP_GOT_POINTER_CAPTURE:\n      {\n        var _pointerEvent=nativeEvent;\n        var _pointerId2=_pointerEvent.pointerId;\n        queuedPointerCaptures.set(_pointerId2, accumulateOrCreateContinuousQueuedReplayableEvent(queuedPointerCaptures.get(_pointerId2)||null, blockedOn, topLevelType, eventSystemFlags, container, _pointerEvent));\n        return true;\n      }\n  }\n\n  return false;\n} // Check if this target is unblocked. Returns true if it's unblocked.\n\nfunction attemptExplicitHydrationTarget(queuedTarget){\n  // TODO: This function shares a lot of logic with attemptToDispatchEvent.\n  // Try to unify them. It's a bit tricky since it would require two return\n  // values.\n  var targetInst=getClosestInstanceFromNode(queuedTarget.target);\n\n  if(targetInst!==null){\n    var nearestMounted=getNearestMountedFiber(targetInst);\n\n    if(nearestMounted!==null){\n      var tag=nearestMounted.tag;\n\n      if(tag===SuspenseComponent){\n        var instance=getSuspenseInstanceFromFiber(nearestMounted);\n\n        if(instance!==null){\n          // We're blocked on hydrating this boundary.\n          // Increase its priority.\n          queuedTarget.blockedOn=instance;\n          Scheduler.unstable_runWithPriority(queuedTarget.priority, function (){\n            attemptHydrationAtCurrentPriority(nearestMounted);\n          });\n          return;\n        }\n      }else if(tag===HostRoot){\n        var root=nearestMounted.stateNode;\n\n        if(root.hydrate){\n          queuedTarget.blockedOn=getContainerFromFiber(nearestMounted); // We don't currently have a way to increase the priority of\n          // a root other than sync.\n\n          return;\n        }\n      }\n    }\n  }\n\n  queuedTarget.blockedOn=null;\n}\n\nfunction attemptReplayContinuousQueuedEvent(queuedEvent){\n  if(queuedEvent.blockedOn!==null){\n    return false;\n  }\n\n  var nextBlockedOn=attemptToDispatchEvent(queuedEvent.topLevelType, queuedEvent.eventSystemFlags, queuedEvent.container, queuedEvent.nativeEvent);\n\n  if(nextBlockedOn!==null){\n    // We're still blocked. Try again later.\n    var _fiber3=getInstanceFromNode$1(nextBlockedOn);\n\n    if(_fiber3!==null){\n      attemptContinuousHydration(_fiber3);\n    }\n\n    queuedEvent.blockedOn=nextBlockedOn;\n    return false;\n  }\n\n  return true;\n}\n\nfunction attemptReplayContinuousQueuedEventInMap(queuedEvent, key, map){\n  if(attemptReplayContinuousQueuedEvent(queuedEvent)){\n    map.delete(key);\n  }\n}\n\nfunction replayUnblockedEvents(){\n  hasScheduledReplayAttempt=false; // First replay discrete events.\n\n  while (queuedDiscreteEvents.length > 0){\n    var nextDiscreteEvent=queuedDiscreteEvents[0];\n\n    if(nextDiscreteEvent.blockedOn!==null){\n      // We're still blocked.\n      // Increase the priority of this boundary to unblock\n      // the next discrete event.\n      var _fiber4=getInstanceFromNode$1(nextDiscreteEvent.blockedOn);\n\n      if(_fiber4!==null){\n        attemptUserBlockingHydration(_fiber4);\n      }\n\n      break;\n    }\n\n    var nextBlockedOn=attemptToDispatchEvent(nextDiscreteEvent.topLevelType, nextDiscreteEvent.eventSystemFlags, nextDiscreteEvent.container, nextDiscreteEvent.nativeEvent);\n\n    if(nextBlockedOn!==null){\n      // We're still blocked. Try again later.\n      nextDiscreteEvent.blockedOn=nextBlockedOn;\n    }else{\n      // We've successfully replayed the first event. Let's try the next one.\n      queuedDiscreteEvents.shift();\n    }\n  } // Next replay any continuous events.\n\n\n  if(queuedFocus!==null&&attemptReplayContinuousQueuedEvent(queuedFocus)){\n    queuedFocus=null;\n  }\n\n  if(queuedDrag!==null&&attemptReplayContinuousQueuedEvent(queuedDrag)){\n    queuedDrag=null;\n  }\n\n  if(queuedMouse!==null&&attemptReplayContinuousQueuedEvent(queuedMouse)){\n    queuedMouse=null;\n  }\n\n  queuedPointers.forEach(attemptReplayContinuousQueuedEventInMap);\n  queuedPointerCaptures.forEach(attemptReplayContinuousQueuedEventInMap);\n}\n\nfunction scheduleCallbackIfUnblocked(queuedEvent, unblocked){\n  if(queuedEvent.blockedOn===unblocked){\n    queuedEvent.blockedOn=null;\n\n    if(!hasScheduledReplayAttempt){\n      hasScheduledReplayAttempt=true; // Schedule a callback to attempt replaying as many events as are\n      // now unblocked. This first might not actually be unblocked yet.\n      // We could check it early to avoid scheduling an unnecessary callback.\n\n      Scheduler.unstable_scheduleCallback(Scheduler.unstable_NormalPriority, replayUnblockedEvents);\n    }\n  }\n}\n\nfunction retryIfBlockedOn(unblocked){\n  // Mark anything that was blocked on this as no longer blocked\n  // and eligible for a replay.\n  if(queuedDiscreteEvents.length > 0){\n    scheduleCallbackIfUnblocked(queuedDiscreteEvents[0], unblocked); // This is a exponential search for each boundary that commits. I think it's\n    // worth it because we expect very few discrete events to queue up and once\n    // we are actually fully unblocked it will be fast to replay them.\n\n    for (var i=1; i < queuedDiscreteEvents.length; i++){\n      var queuedEvent=queuedDiscreteEvents[i];\n\n      if(queuedEvent.blockedOn===unblocked){\n        queuedEvent.blockedOn=null;\n      }\n    }\n  }\n\n  if(queuedFocus!==null){\n    scheduleCallbackIfUnblocked(queuedFocus, unblocked);\n  }\n\n  if(queuedDrag!==null){\n    scheduleCallbackIfUnblocked(queuedDrag, unblocked);\n  }\n\n  if(queuedMouse!==null){\n    scheduleCallbackIfUnblocked(queuedMouse, unblocked);\n  }\n\n  var unblock=function (queuedEvent){\n    return scheduleCallbackIfUnblocked(queuedEvent, unblocked);\n  };\n\n  queuedPointers.forEach(unblock);\n  queuedPointerCaptures.forEach(unblock);\n\n  for (var _i=0; _i < queuedExplicitHydrationTargets.length; _i++){\n    var queuedTarget=queuedExplicitHydrationTargets[_i];\n\n    if(queuedTarget.blockedOn===unblocked){\n      queuedTarget.blockedOn=null;\n    }\n  }\n\n  while (queuedExplicitHydrationTargets.length > 0){\n    var nextExplicitTarget=queuedExplicitHydrationTargets[0];\n\n    if(nextExplicitTarget.blockedOn!==null){\n      // We're still blocked.\n      break;\n    }else{\n      attemptExplicitHydrationTarget(nextExplicitTarget);\n\n      if(nextExplicitTarget.blockedOn===null){\n        // We're unblocked.\n        queuedExplicitHydrationTargets.shift();\n      }\n    }\n  }\n}\n\nfunction addEventBubbleListener(element, eventType, listener){\n  element.addEventListener(eventType, listener, false);\n}\nfunction addEventCaptureListener(element, eventType, listener){\n  element.addEventListener(eventType, listener, true);\n}\n\n// do it in two places, which duplicates logic\n// and increases the bundle size, we do it all\n// here once. If we remove or refactor the\n// SimpleEventPlugin, we should also remove or\n// update the below line.\n\nvar simpleEventPluginEventTypes={};\nvar topLevelEventsToDispatchConfig=new Map();\nvar eventPriorities=new Map(); // We store most of the events in this module in pairs of two strings so we can re-use\n// the code required to apply the same logic for event prioritization and that of the\n// SimpleEventPlugin. This complicates things slightly, but the aim is to reduce code\n// duplication (for which there would be quite a bit). For the events that are not needed\n// for the SimpleEventPlugin (otherDiscreteEvents) we process them separately as an\n// array of top level events.\n// Lastly, we ignore prettier so we can keep the formatting sane.\n// prettier-ignore\n\nvar discreteEventPairsForSimpleEventPlugin=[TOP_BLUR, 'blur', TOP_CANCEL, 'cancel', TOP_CLICK, 'click', TOP_CLOSE, 'close', TOP_CONTEXT_MENU, 'contextMenu', TOP_COPY, 'copy', TOP_CUT, 'cut', TOP_AUX_CLICK, 'auxClick', TOP_DOUBLE_CLICK, 'doubleClick', TOP_DRAG_END, 'dragEnd', TOP_DRAG_START, 'dragStart', TOP_DROP, 'drop', TOP_FOCUS, 'focus', TOP_INPUT, 'input', TOP_INVALID, 'invalid', TOP_KEY_DOWN, 'keyDown', TOP_KEY_PRESS, 'keyPress', TOP_KEY_UP, 'keyUp', TOP_MOUSE_DOWN, 'mouseDown', TOP_MOUSE_UP, 'mouseUp', TOP_PASTE, 'paste', TOP_PAUSE, 'pause', TOP_PLAY, 'play', TOP_POINTER_CANCEL, 'pointerCancel', TOP_POINTER_DOWN, 'pointerDown', TOP_POINTER_UP, 'pointerUp', TOP_RATE_CHANGE, 'rateChange', TOP_RESET, 'reset', TOP_SEEKED, 'seeked', TOP_SUBMIT, 'submit', TOP_TOUCH_CANCEL, 'touchCancel', TOP_TOUCH_END, 'touchEnd', TOP_TOUCH_START, 'touchStart', TOP_VOLUME_CHANGE, 'volumeChange'];\nvar otherDiscreteEvents=[TOP_CHANGE, TOP_SELECTION_CHANGE, TOP_TEXT_INPUT, TOP_COMPOSITION_START, TOP_COMPOSITION_END, TOP_COMPOSITION_UPDATE]; // prettier-ignore\n\nvar userBlockingPairsForSimpleEventPlugin=[TOP_DRAG, 'drag', TOP_DRAG_ENTER, 'dragEnter', TOP_DRAG_EXIT, 'dragExit', TOP_DRAG_LEAVE, 'dragLeave', TOP_DRAG_OVER, 'dragOver', TOP_MOUSE_MOVE, 'mouseMove', TOP_MOUSE_OUT, 'mouseOut', TOP_MOUSE_OVER, 'mouseOver', TOP_POINTER_MOVE, 'pointerMove', TOP_POINTER_OUT, 'pointerOut', TOP_POINTER_OVER, 'pointerOver', TOP_SCROLL, 'scroll', TOP_TOGGLE, 'toggle', TOP_TOUCH_MOVE, 'touchMove', TOP_WHEEL, 'wheel']; // prettier-ignore\n\nvar continuousPairsForSimpleEventPlugin=[TOP_ABORT, 'abort', TOP_ANIMATION_END, 'animationEnd', TOP_ANIMATION_ITERATION, 'animationIteration', TOP_ANIMATION_START, 'animationStart', TOP_CAN_PLAY, 'canPlay', TOP_CAN_PLAY_THROUGH, 'canPlayThrough', TOP_DURATION_CHANGE, 'durationChange', TOP_EMPTIED, 'emptied', TOP_ENCRYPTED, 'encrypted', TOP_ENDED, 'ended', TOP_ERROR, 'error', TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', TOP_LOAD, 'load', TOP_LOADED_DATA, 'loadedData', TOP_LOADED_METADATA, 'loadedMetadata', TOP_LOAD_START, 'loadStart', TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', TOP_PLAYING, 'playing', TOP_PROGRESS, 'progress', TOP_SEEKING, 'seeking', TOP_STALLED, 'stalled', TOP_SUSPEND, 'suspend', TOP_TIME_UPDATE, 'timeUpdate', TOP_TRANSITION_END, 'transitionEnd', TOP_WAITING, 'waiting'];\n\n\nfunction processSimpleEventPluginPairsByPriority(eventTypes, priority){\n  // As the event types are in pairs of two, we need to iterate\n  // through in twos. The events are in pairs of two to save code\n  // and improve init perf of processing this array, as it will\n  // result in far fewer object allocations and property accesses\n  // if we only use three arrays to process all the categories of\n  // instead of tuples.\n  for (var i=0; i < eventTypes.length; i +=2){\n    var topEvent=eventTypes[i];\n    var event=eventTypes[i + 1];\n    var capitalizedEvent=event[0].toUpperCase() + event.slice(1);\n    var onEvent='on' + capitalizedEvent;\n    var config={\n      phasedRegistrationNames: {\n        bubbled: onEvent,\n        captured: onEvent + 'Capture'\n      },\n      dependencies: [topEvent],\n      eventPriority: priority\n    };\n    eventPriorities.set(topEvent, priority);\n    topLevelEventsToDispatchConfig.set(topEvent, config);\n    simpleEventPluginEventTypes[event]=config;\n  }\n}\n\nfunction processTopEventPairsByPriority(eventTypes, priority){\n  for (var i=0; i < eventTypes.length; i++){\n    eventPriorities.set(eventTypes[i], priority);\n  }\n} // SimpleEventPlugin\n\n\nprocessSimpleEventPluginPairsByPriority(discreteEventPairsForSimpleEventPlugin, DiscreteEvent);\nprocessSimpleEventPluginPairsByPriority(userBlockingPairsForSimpleEventPlugin, UserBlockingEvent);\nprocessSimpleEventPluginPairsByPriority(continuousPairsForSimpleEventPlugin, ContinuousEvent); // Not used by SimpleEventPlugin\n\nprocessTopEventPairsByPriority(otherDiscreteEvents, DiscreteEvent);\nfunction getEventPriorityForPluginSystem(topLevelType){\n  var priority=eventPriorities.get(topLevelType); // Default to a ContinuousEvent. Note: we might\n  // want to warn if we can't detect the priority\n  // for the event.\n\n  return priority===undefined ? ContinuousEvent:priority;\n}\n\n// Intentionally not named imports because Rollup would use dynamic dispatch for\nvar UserBlockingPriority=Scheduler.unstable_UserBlockingPriority,\n    runWithPriority=Scheduler.unstable_runWithPriority; // TODO: can we stop exporting these?\n\nvar _enabled=true;\nfunction setEnabled(enabled){\n  _enabled = !!enabled;\n}\nfunction isEnabled(){\n  return _enabled;\n}\nfunction trapBubbledEvent(topLevelType, element){\n  trapEventForPluginEventSystem(element, topLevelType, false);\n}\nfunction trapCapturedEvent(topLevelType, element){\n  trapEventForPluginEventSystem(element, topLevelType, true);\n}\n\nfunction trapEventForPluginEventSystem(container, topLevelType, capture){\n  var listener;\n\n  switch (getEventPriorityForPluginSystem(topLevelType)){\n    case DiscreteEvent:\n      listener=dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);\n      break;\n\n    case UserBlockingEvent:\n      listener=dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);\n      break;\n\n    case ContinuousEvent:\n    default:\n      listener=dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM, container);\n      break;\n  }\n\n  var rawEventName=getRawEventName(topLevelType);\n\n  if(capture){\n    addEventCaptureListener(container, rawEventName, listener);\n  }else{\n    addEventBubbleListener(container, rawEventName, listener);\n  }\n}\n\nfunction dispatchDiscreteEvent(topLevelType, eventSystemFlags, container, nativeEvent){\n  flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);\n  discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, container, nativeEvent);\n}\n\nfunction dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, container, nativeEvent){\n  runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, container, nativeEvent));\n}\n\nfunction dispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent){\n  if(!_enabled){\n    return;\n  }\n\n  if(hasQueuedDiscreteEvents()&&isReplayableDiscreteEvent(topLevelType)){\n    // If we already have a queue of discrete events, and this is another discrete\n    // event, then we can't dispatch it regardless of its target, since they\n    // need to dispatch in order.\n    queueDiscreteEvent(null, // Flags that we're not actually blocked on anything as far as we know.\n    topLevelType, eventSystemFlags, container, nativeEvent);\n    return;\n  }\n\n  var blockedOn=attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent);\n\n  if(blockedOn===null){\n    // We successfully dispatched this event.\n    clearIfContinuousEvent(topLevelType, nativeEvent);\n    return;\n  }\n\n  if(isReplayableDiscreteEvent(topLevelType)){\n    // This this to be replayed later once the target is available.\n    queueDiscreteEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent);\n    return;\n  }\n\n  if(queueIfContinuousEvent(blockedOn, topLevelType, eventSystemFlags, container, nativeEvent)){\n    return;\n  } // We need to clear only if we didn't queue because\n  // queueing is accummulative.\n\n\n  clearIfContinuousEvent(topLevelType, nativeEvent); // This is not replayable so we'll invoke it but without a target,\n  // in case the event system needs to trace it.\n\n  {\n    dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, null);\n  }\n} // Attempt dispatching an event. Returns a SuspenseInstance or Container if it's blocked.\n\nfunction attemptToDispatchEvent(topLevelType, eventSystemFlags, container, nativeEvent){\n  // TODO: Warn if _enabled is false.\n  var nativeEventTarget=getEventTarget(nativeEvent);\n  var targetInst=getClosestInstanceFromNode(nativeEventTarget);\n\n  if(targetInst!==null){\n    var nearestMounted=getNearestMountedFiber(targetInst);\n\n    if(nearestMounted===null){\n      // This tree has been unmounted already. Dispatch without a target.\n      targetInst=null;\n    }else{\n      var tag=nearestMounted.tag;\n\n      if(tag===SuspenseComponent){\n        var instance=getSuspenseInstanceFromFiber(nearestMounted);\n\n        if(instance!==null){\n          // Queue the event to be replayed later. Abort dispatching since we\n          // don't want this event dispatched twice through the event system.\n          // TODO: If this is the first discrete event in the queue. Schedule an increased\n          // priority for this boundary.\n          return instance;\n        } // This shouldn't happen, something went wrong but to avoid blocking\n        // the whole system, dispatch the event without a target.\n        // TODO: Warn.\n\n\n        targetInst=null;\n      }else if(tag===HostRoot){\n        var root=nearestMounted.stateNode;\n\n        if(root.hydrate){\n          // If this happens during a replay something went wrong and it might block\n          // the whole system.\n          return getContainerFromFiber(nearestMounted);\n        }\n\n        targetInst=null;\n      }else if(nearestMounted!==targetInst){\n        // If we get an event (ex: img onload) before committing that\n        // component's mount, ignore it for now (that is, treat it as if it was an\n        // event on a non-React tree). We might also consider queueing events and\n        // dispatching them after the mount.\n        targetInst=null;\n      }\n    }\n  }\n\n  {\n    dispatchEventForLegacyPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);\n  } // We're not blocked on anything.\n\n\n  return null;\n}\n\n// List derived from Gecko source code:\n// https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js\nvar shorthandToLonghand={\n  animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],\n  background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],\n  backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],\n  border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n  borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],\n  borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],\n  borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],\n  borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],\n  borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],\n  borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],\n  borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],\n  borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],\n  borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],\n  borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],\n  borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],\n  borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],\n  borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],\n  columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],\n  columns: ['columnCount', 'columnWidth'],\n  flex: ['flexBasis', 'flexGrow', 'flexShrink'],\n  flexFlow: ['flexDirection', 'flexWrap'],\n  font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],\n  fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],\n  gap: ['columnGap', 'rowGap'],\n  grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n  gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],\n  gridColumn: ['gridColumnEnd', 'gridColumnStart'],\n  gridColumnGap: ['columnGap'],\n  gridGap: ['columnGap', 'rowGap'],\n  gridRow: ['gridRowEnd', 'gridRowStart'],\n  gridRowGap: ['rowGap'],\n  gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],\n  listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],\n  margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],\n  marker: ['markerEnd', 'markerMid', 'markerStart'],\n  mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],\n  maskPosition: ['maskPositionX', 'maskPositionY'],\n  outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],\n  overflow: ['overflowX', 'overflowY'],\n  padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],\n  placeContent: ['alignContent', 'justifyContent'],\n  placeItems: ['alignItems', 'justifyItems'],\n  placeSelf: ['alignSelf', 'justifySelf'],\n  textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],\n  textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],\n  transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],\n  wordWrap: ['overflowWrap']\n};\n\n\nvar isUnitlessNumber={\n  animationIterationCount: true,\n  borderImageOutset: true,\n  borderImageSlice: true,\n  borderImageWidth: true,\n  boxFlex: true,\n  boxFlexGroup: true,\n  boxOrdinalGroup: true,\n  columnCount: true,\n  columns: true,\n  flex: true,\n  flexGrow: true,\n  flexPositive: true,\n  flexShrink: true,\n  flexNegative: true,\n  flexOrder: true,\n  gridArea: true,\n  gridRow: true,\n  gridRowEnd: true,\n  gridRowSpan: true,\n  gridRowStart: true,\n  gridColumn: true,\n  gridColumnEnd: true,\n  gridColumnSpan: true,\n  gridColumnStart: true,\n  fontWeight: true,\n  lineClamp: true,\n  lineHeight: true,\n  opacity: true,\n  order: true,\n  orphans: true,\n  tabSize: true,\n  widows: true,\n  zIndex: true,\n  zoom: true,\n  // SVG-related properties\n  fillOpacity: true,\n  floodOpacity: true,\n  stopOpacity: true,\n  strokeDasharray: true,\n  strokeDashoffset: true,\n  strokeMiterlimit: true,\n  strokeOpacity: true,\n  strokeWidth: true\n};\n\n\nfunction prefixKey(prefix, key){\n  return prefix + key.charAt(0).toUpperCase() + key.substring(1);\n}\n\n\n\nvar prefixes=['Webkit', 'ms', 'Moz', 'O']; // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an\n// infinite loop, because it iterates over the newly added props too.\n\nObject.keys(isUnitlessNumber).forEach(function (prop){\n  prefixes.forEach(function (prefix){\n    isUnitlessNumber[prefixKey(prefix, prop)]=isUnitlessNumber[prop];\n  });\n});\n\n\n\nfunction dangerousStyleValue(name, value, isCustomProperty){\n  // Note that we've removed escapeTextForBrowser() calls here since the\n  // whole string will be escaped when the attribute is injected into\n  // the markup. If you provide unsafe user data here they can inject\n  // arbitrary CSS which may be problematic (I couldn't repro this):\n  // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet\n  // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/\n  // This is not an XSS hole but instead a potential CSS injection issue\n  // which has lead to a greater discussion about how we're going to\n  // trust URLs moving forward. See #2115901\n  var isEmpty=value==null||typeof value==='boolean'||value==='';\n\n  if(isEmpty){\n    return '';\n  }\n\n  if(!isCustomProperty&&typeof value==='number'&&value!==0&&!(isUnitlessNumber.hasOwnProperty(name)&&isUnitlessNumber[name])){\n    return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers\n  }\n\n  return ('' + value).trim();\n}\n\nvar uppercasePattern=/([A-Z])/g;\nvar msPattern=/^ms-/;\n\n\nfunction hyphenateStyleName(name){\n  return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');\n}\n\nvar warnValidStyle=function (){};\n\n{\n  // 'msTransform' is correct, but the other prefixes should be capitalized\n  var badVendoredStyleNamePattern=/^(?:webkit|moz|o)[A-Z]/;\n  var msPattern$1=/^-ms-/;\n  var hyphenPattern=/-(.)/g; // style values shouldn't contain a semicolon\n\n  var badStyleValueWithSemicolonPattern=/;\\s*$/;\n  var warnedStyleNames={};\n  var warnedStyleValues={};\n  var warnedForNaNValue=false;\n  var warnedForInfinityValue=false;\n\n  var camelize=function (string){\n    return string.replace(hyphenPattern, function (_, character){\n      return character.toUpperCase();\n    });\n  };\n\n  var warnHyphenatedStyleName=function (name){\n    if(warnedStyleNames.hasOwnProperty(name)&&warnedStyleNames[name]){\n      return;\n    }\n\n    warnedStyleNames[name]=true;\n\n    error('Unsupported style property %s. Did you mean %s?', name, // As Andi Smith suggests\n    // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix\n    // is converted to lowercase `ms`.\n    camelize(name.replace(msPattern$1, 'ms-')));\n  };\n\n  var warnBadVendoredStyleName=function (name){\n    if(warnedStyleNames.hasOwnProperty(name)&&warnedStyleNames[name]){\n      return;\n    }\n\n    warnedStyleNames[name]=true;\n\n    error('Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));\n  };\n\n  var warnStyleValueWithSemicolon=function (name, value){\n    if(warnedStyleValues.hasOwnProperty(value)&&warnedStyleValues[value]){\n      return;\n    }\n\n    warnedStyleValues[value]=true;\n\n    error(\"Style property values shouldn't contain a semicolon. \" + 'Try \"%s: %s\" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));\n  };\n\n  var warnStyleValueIsNaN=function (name, value){\n    if(warnedForNaNValue){\n      return;\n    }\n\n    warnedForNaNValue=true;\n\n    error('`NaN` is an invalid value for the `%s` css style property.', name);\n  };\n\n  var warnStyleValueIsInfinity=function (name, value){\n    if(warnedForInfinityValue){\n      return;\n    }\n\n    warnedForInfinityValue=true;\n\n    error('`Infinity` is an invalid value for the `%s` css style property.', name);\n  };\n\n  warnValidStyle=function (name, value){\n    if(name.indexOf('-') > -1){\n      warnHyphenatedStyleName(name);\n    }else if(badVendoredStyleNamePattern.test(name)){\n      warnBadVendoredStyleName(name);\n    }else if(badStyleValueWithSemicolonPattern.test(value)){\n      warnStyleValueWithSemicolon(name, value);\n    }\n\n    if(typeof value==='number'){\n      if(isNaN(value)){\n        warnStyleValueIsNaN(name, value);\n      }else if(!isFinite(value)){\n        warnStyleValueIsInfinity(name, value);\n      }\n    }\n  };\n}\n\nvar warnValidStyle$1=warnValidStyle;\n\n\n\n\n\nfunction createDangerousStringForStyles(styles){\n  {\n    var serialized='';\n    var delimiter='';\n\n    for (var styleName in styles){\n      if(!styles.hasOwnProperty(styleName)){\n        continue;\n      }\n\n      var styleValue=styles[styleName];\n\n      if(styleValue!=null){\n        var isCustomProperty=styleName.indexOf('--')===0;\n        serialized +=delimiter + (isCustomProperty ? styleName:hyphenateStyleName(styleName)) + ':';\n        serialized +=dangerousStyleValue(styleName, styleValue, isCustomProperty);\n        delimiter=';';\n      }\n    }\n\n    return serialized||null;\n  }\n}\n\n\nfunction setValueForStyles(node, styles){\n  var style=node.style;\n\n  for (var styleName in styles){\n    if(!styles.hasOwnProperty(styleName)){\n      continue;\n    }\n\n    var isCustomProperty=styleName.indexOf('--')===0;\n\n    {\n      if(!isCustomProperty){\n        warnValidStyle$1(styleName, styles[styleName]);\n      }\n    }\n\n    var styleValue=dangerousStyleValue(styleName, styles[styleName], isCustomProperty);\n\n    if(styleName==='float'){\n      styleName='cssFloat';\n    }\n\n    if(isCustomProperty){\n      style.setProperty(styleName, styleValue);\n    }else{\n      style[styleName]=styleValue;\n    }\n  }\n}\n\nfunction isValueEmpty(value){\n  return value==null||typeof value==='boolean'||value==='';\n}\n\n\n\nfunction expandShorthandMap(styles){\n  var expanded={};\n\n  for (var key in styles){\n    var longhands=shorthandToLonghand[key]||[key];\n\n    for (var i=0; i < longhands.length; i++){\n      expanded[longhands[i]]=key;\n    }\n  }\n\n  return expanded;\n}\n\n\n\nfunction validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles){\n  {\n\n    if(!nextStyles){\n      return;\n    }\n\n    var expandedUpdates=expandShorthandMap(styleUpdates);\n    var expandedStyles=expandShorthandMap(nextStyles);\n    var warnedAbout={};\n\n    for (var key in expandedUpdates){\n      var originalKey=expandedUpdates[key];\n      var correctOriginalKey=expandedStyles[key];\n\n      if(correctOriginalKey&&originalKey!==correctOriginalKey){\n        var warningKey=originalKey + ',' + correctOriginalKey;\n\n        if(warnedAbout[warningKey]){\n          continue;\n        }\n\n        warnedAbout[warningKey]=true;\n\n        error('%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + \"avoid this, don't mix shorthand and non-shorthand properties \" + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing':'Updating', originalKey, correctOriginalKey);\n      }\n    }\n  }\n}\n\n// For HTML, certain tags should omit their close tag. We keep a whitelist for\n// those special-case tags.\nvar omittedCloseTags={\n  area: true,\n  base: true,\n  br: true,\n  col: true,\n  embed: true,\n  hr: true,\n  img: true,\n  input: true,\n  keygen: true,\n  link: true,\n  meta: true,\n  param: true,\n  source: true,\n  track: true,\n  wbr: true // NOTE: menuitem's close tag should be omitted, but that causes problems.\n\n};\n\n// `omittedCloseTags` except that `menuitem` should still have its closing tag.\n\nvar voidElementTags=_assign({\n  menuitem: true\n}, omittedCloseTags);\n\nvar HTML='__html';\nvar ReactDebugCurrentFrame$3=null;\n\n{\n  ReactDebugCurrentFrame$3=ReactSharedInternals.ReactDebugCurrentFrame;\n}\n\nfunction assertValidProps(tag, props){\n  if(!props){\n    return;\n  } // Note the use of `==` which checks for null or undefined.\n\n\n  if(voidElementTags[tag]){\n    if(!(props.children==null&&props.dangerouslySetInnerHTML==null)){\n      {\n        throw Error(tag + \" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.\" +(ReactDebugCurrentFrame$3.getStackAddendum()) );\n      }\n    }\n  }\n\n  if(props.dangerouslySetInnerHTML!=null){\n    if(!(props.children==null)){\n      {\n        throw Error(\"Can only set one of `children` or `props.dangerouslySetInnerHTML`.\");\n      }\n    }\n\n    if(!(typeof props.dangerouslySetInnerHTML==='object'&&HTML in props.dangerouslySetInnerHTML)){\n      {\n        throw Error(\"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.\");\n      }\n    }\n  }\n\n  {\n    if(!props.suppressContentEditableWarning&&props.contentEditable&&props.children!=null){\n      error('A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.');\n    }\n  }\n\n  if(!(props.style==null||typeof props.style==='object')){\n    {\n      throw Error(\"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.\" +(ReactDebugCurrentFrame$3.getStackAddendum()) );\n    }\n  }\n}\n\nfunction isCustomComponent(tagName, props){\n  if(tagName.indexOf('-')===-1){\n    return typeof props.is==='string';\n  }\n\n  switch (tagName){\n    // These are reserved SVG and MathML elements.\n    // We don't mind this whitelist too much because we expect it to never grow.\n    // The alternative is to track the namespace in a few places which is convoluted.\n    // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n    case 'annotation-xml':\n    case 'color-profile':\n    case 'font-face':\n    case 'font-face-src':\n    case 'font-face-uri':\n    case 'font-face-format':\n    case 'font-face-name':\n    case 'missing-glyph':\n      return false;\n\n    default:\n      return true;\n  }\n}\n\n// When adding attributes to the HTML or SVG whitelist, be sure to\n// also add them to this module to ensure casing and incorrect name\n// warnings.\nvar possibleStandardNames={\n  // HTML\n  accept: 'accept',\n  acceptcharset: 'acceptCharset',\n  'accept-charset': 'acceptCharset',\n  accesskey: 'accessKey',\n  action: 'action',\n  allowfullscreen: 'allowFullScreen',\n  alt: 'alt',\n  as: 'as',\n  async: 'async',\n  autocapitalize: 'autoCapitalize',\n  autocomplete: 'autoComplete',\n  autocorrect: 'autoCorrect',\n  autofocus: 'autoFocus',\n  autoplay: 'autoPlay',\n  autosave: 'autoSave',\n  capture: 'capture',\n  cellpadding: 'cellPadding',\n  cellspacing: 'cellSpacing',\n  challenge: 'challenge',\n  charset: 'charSet',\n  checked: 'checked',\n  children: 'children',\n  cite: 'cite',\n  class: 'className',\n  classid: 'classID',\n  classname: 'className',\n  cols: 'cols',\n  colspan: 'colSpan',\n  content: 'content',\n  contenteditable: 'contentEditable',\n  contextmenu: 'contextMenu',\n  controls: 'controls',\n  controlslist: 'controlsList',\n  coords: 'coords',\n  crossorigin: 'crossOrigin',\n  dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',\n  data: 'data',\n  datetime: 'dateTime',\n  default: 'default',\n  defaultchecked: 'defaultChecked',\n  defaultvalue: 'defaultValue',\n  defer: 'defer',\n  dir: 'dir',\n  disabled: 'disabled',\n  disablepictureinpicture: 'disablePictureInPicture',\n  download: 'download',\n  draggable: 'draggable',\n  enctype: 'encType',\n  for: 'htmlFor',\n  form: 'form',\n  formmethod: 'formMethod',\n  formaction: 'formAction',\n  formenctype: 'formEncType',\n  formnovalidate: 'formNoValidate',\n  formtarget: 'formTarget',\n  frameborder: 'frameBorder',\n  headers: 'headers',\n  height: 'height',\n  hidden: 'hidden',\n  high: 'high',\n  href: 'href',\n  hreflang: 'hrefLang',\n  htmlfor: 'htmlFor',\n  httpequiv: 'httpEquiv',\n  'http-equiv': 'httpEquiv',\n  icon: 'icon',\n  id: 'id',\n  innerhtml: 'innerHTML',\n  inputmode: 'inputMode',\n  integrity: 'integrity',\n  is: 'is',\n  itemid: 'itemID',\n  itemprop: 'itemProp',\n  itemref: 'itemRef',\n  itemscope: 'itemScope',\n  itemtype: 'itemType',\n  keyparams: 'keyParams',\n  keytype: 'keyType',\n  kind: 'kind',\n  label: 'label',\n  lang: 'lang',\n  list: 'list',\n  loop: 'loop',\n  low: 'low',\n  manifest: 'manifest',\n  marginwidth: 'marginWidth',\n  marginheight: 'marginHeight',\n  max: 'max',\n  maxlength: 'maxLength',\n  media: 'media',\n  mediagroup: 'mediaGroup',\n  method: 'method',\n  min: 'min',\n  minlength: 'minLength',\n  multiple: 'multiple',\n  muted: 'muted',\n  name: 'name',\n  nomodule: 'noModule',\n  nonce: 'nonce',\n  novalidate: 'noValidate',\n  open: 'open',\n  optimum: 'optimum',\n  pattern: 'pattern',\n  placeholder: 'placeholder',\n  playsinline: 'playsInline',\n  poster: 'poster',\n  preload: 'preload',\n  profile: 'profile',\n  radiogroup: 'radioGroup',\n  readonly: 'readOnly',\n  referrerpolicy: 'referrerPolicy',\n  rel: 'rel',\n  required: 'required',\n  reversed: 'reversed',\n  role: 'role',\n  rows: 'rows',\n  rowspan: 'rowSpan',\n  sandbox: 'sandbox',\n  scope: 'scope',\n  scoped: 'scoped',\n  scrolling: 'scrolling',\n  seamless: 'seamless',\n  selected: 'selected',\n  shape: 'shape',\n  size: 'size',\n  sizes: 'sizes',\n  span: 'span',\n  spellcheck: 'spellCheck',\n  src: 'src',\n  srcdoc: 'srcDoc',\n  srclang: 'srcLang',\n  srcset: 'srcSet',\n  start: 'start',\n  step: 'step',\n  style: 'style',\n  summary: 'summary',\n  tabindex: 'tabIndex',\n  target: 'target',\n  title: 'title',\n  type: 'type',\n  usemap: 'useMap',\n  value: 'value',\n  width: 'width',\n  wmode: 'wmode',\n  wrap: 'wrap',\n  // SVG\n  about: 'about',\n  accentheight: 'accentHeight',\n  'accent-height': 'accentHeight',\n  accumulate: 'accumulate',\n  additive: 'additive',\n  alignmentbaseline: 'alignmentBaseline',\n  'alignment-baseline': 'alignmentBaseline',\n  allowreorder: 'allowReorder',\n  alphabetic: 'alphabetic',\n  amplitude: 'amplitude',\n  arabicform: 'arabicForm',\n  'arabic-form': 'arabicForm',\n  ascent: 'ascent',\n  attributename: 'attributeName',\n  attributetype: 'attributeType',\n  autoreverse: 'autoReverse',\n  azimuth: 'azimuth',\n  basefrequency: 'baseFrequency',\n  baselineshift: 'baselineShift',\n  'baseline-shift': 'baselineShift',\n  baseprofile: 'baseProfile',\n  bbox: 'bbox',\n  begin: 'begin',\n  bias: 'bias',\n  by: 'by',\n  calcmode: 'calcMode',\n  capheight: 'capHeight',\n  'cap-height': 'capHeight',\n  clip: 'clip',\n  clippath: 'clipPath',\n  'clip-path': 'clipPath',\n  clippathunits: 'clipPathUnits',\n  cliprule: 'clipRule',\n  'clip-rule': 'clipRule',\n  color: 'color',\n  colorinterpolation: 'colorInterpolation',\n  'color-interpolation': 'colorInterpolation',\n  colorinterpolationfilters: 'colorInterpolationFilters',\n  'color-interpolation-filters': 'colorInterpolationFilters',\n  colorprofile: 'colorProfile',\n  'color-profile': 'colorProfile',\n  colorrendering: 'colorRendering',\n  'color-rendering': 'colorRendering',\n  contentscripttype: 'contentScriptType',\n  contentstyletype: 'contentStyleType',\n  cursor: 'cursor',\n  cx: 'cx',\n  cy: 'cy',\n  d: 'd',\n  datatype: 'datatype',\n  decelerate: 'decelerate',\n  descent: 'descent',\n  diffuseconstant: 'diffuseConstant',\n  direction: 'direction',\n  display: 'display',\n  divisor: 'divisor',\n  dominantbaseline: 'dominantBaseline',\n  'dominant-baseline': 'dominantBaseline',\n  dur: 'dur',\n  dx: 'dx',\n  dy: 'dy',\n  edgemode: 'edgeMode',\n  elevation: 'elevation',\n  enablebackground: 'enableBackground',\n  'enable-background': 'enableBackground',\n  end: 'end',\n  exponent: 'exponent',\n  externalresourcesrequired: 'externalResourcesRequired',\n  fill: 'fill',\n  fillopacity: 'fillOpacity',\n  'fill-opacity': 'fillOpacity',\n  fillrule: 'fillRule',\n  'fill-rule': 'fillRule',\n  filter: 'filter',\n  filterres: 'filterRes',\n  filterunits: 'filterUnits',\n  floodopacity: 'floodOpacity',\n  'flood-opacity': 'floodOpacity',\n  floodcolor: 'floodColor',\n  'flood-color': 'floodColor',\n  focusable: 'focusable',\n  fontfamily: 'fontFamily',\n  'font-family': 'fontFamily',\n  fontsize: 'fontSize',\n  'font-size': 'fontSize',\n  fontsizeadjust: 'fontSizeAdjust',\n  'font-size-adjust': 'fontSizeAdjust',\n  fontstretch: 'fontStretch',\n  'font-stretch': 'fontStretch',\n  fontstyle: 'fontStyle',\n  'font-style': 'fontStyle',\n  fontvariant: 'fontVariant',\n  'font-variant': 'fontVariant',\n  fontweight: 'fontWeight',\n  'font-weight': 'fontWeight',\n  format: 'format',\n  from: 'from',\n  fx: 'fx',\n  fy: 'fy',\n  g1: 'g1',\n  g2: 'g2',\n  glyphname: 'glyphName',\n  'glyph-name': 'glyphName',\n  glyphorientationhorizontal: 'glyphOrientationHorizontal',\n  'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n  glyphorientationvertical: 'glyphOrientationVertical',\n  'glyph-orientation-vertical': 'glyphOrientationVertical',\n  glyphref: 'glyphRef',\n  gradienttransform: 'gradientTransform',\n  gradientunits: 'gradientUnits',\n  hanging: 'hanging',\n  horizadvx: 'horizAdvX',\n  'horiz-adv-x': 'horizAdvX',\n  horizoriginx: 'horizOriginX',\n  'horiz-origin-x': 'horizOriginX',\n  ideographic: 'ideographic',\n  imagerendering: 'imageRendering',\n  'image-rendering': 'imageRendering',\n  in2: 'in2',\n  in: 'in',\n  inlist: 'inlist',\n  intercept: 'intercept',\n  k1: 'k1',\n  k2: 'k2',\n  k3: 'k3',\n  k4: 'k4',\n  k: 'k',\n  kernelmatrix: 'kernelMatrix',\n  kernelunitlength: 'kernelUnitLength',\n  kerning: 'kerning',\n  keypoints: 'keyPoints',\n  keysplines: 'keySplines',\n  keytimes: 'keyTimes',\n  lengthadjust: 'lengthAdjust',\n  letterspacing: 'letterSpacing',\n  'letter-spacing': 'letterSpacing',\n  lightingcolor: 'lightingColor',\n  'lighting-color': 'lightingColor',\n  limitingconeangle: 'limitingConeAngle',\n  local: 'local',\n  markerend: 'markerEnd',\n  'marker-end': 'markerEnd',\n  markerheight: 'markerHeight',\n  markermid: 'markerMid',\n  'marker-mid': 'markerMid',\n  markerstart: 'markerStart',\n  'marker-start': 'markerStart',\n  markerunits: 'markerUnits',\n  markerwidth: 'markerWidth',\n  mask: 'mask',\n  maskcontentunits: 'maskContentUnits',\n  maskunits: 'maskUnits',\n  mathematical: 'mathematical',\n  mode: 'mode',\n  numoctaves: 'numOctaves',\n  offset: 'offset',\n  opacity: 'opacity',\n  operator: 'operator',\n  order: 'order',\n  orient: 'orient',\n  orientation: 'orientation',\n  origin: 'origin',\n  overflow: 'overflow',\n  overlineposition: 'overlinePosition',\n  'overline-position': 'overlinePosition',\n  overlinethickness: 'overlineThickness',\n  'overline-thickness': 'overlineThickness',\n  paintorder: 'paintOrder',\n  'paint-order': 'paintOrder',\n  panose1: 'panose1',\n  'panose-1': 'panose1',\n  pathlength: 'pathLength',\n  patterncontentunits: 'patternContentUnits',\n  patterntransform: 'patternTransform',\n  patternunits: 'patternUnits',\n  pointerevents: 'pointerEvents',\n  'pointer-events': 'pointerEvents',\n  points: 'points',\n  pointsatx: 'pointsAtX',\n  pointsaty: 'pointsAtY',\n  pointsatz: 'pointsAtZ',\n  prefix: 'prefix',\n  preservealpha: 'preserveAlpha',\n  preserveaspectratio: 'preserveAspectRatio',\n  primitiveunits: 'primitiveUnits',\n  property: 'property',\n  r: 'r',\n  radius: 'radius',\n  refx: 'refX',\n  refy: 'refY',\n  renderingintent: 'renderingIntent',\n  'rendering-intent': 'renderingIntent',\n  repeatcount: 'repeatCount',\n  repeatdur: 'repeatDur',\n  requiredextensions: 'requiredExtensions',\n  requiredfeatures: 'requiredFeatures',\n  resource: 'resource',\n  restart: 'restart',\n  result: 'result',\n  results: 'results',\n  rotate: 'rotate',\n  rx: 'rx',\n  ry: 'ry',\n  scale: 'scale',\n  security: 'security',\n  seed: 'seed',\n  shaperendering: 'shapeRendering',\n  'shape-rendering': 'shapeRendering',\n  slope: 'slope',\n  spacing: 'spacing',\n  specularconstant: 'specularConstant',\n  specularexponent: 'specularExponent',\n  speed: 'speed',\n  spreadmethod: 'spreadMethod',\n  startoffset: 'startOffset',\n  stddeviation: 'stdDeviation',\n  stemh: 'stemh',\n  stemv: 'stemv',\n  stitchtiles: 'stitchTiles',\n  stopcolor: 'stopColor',\n  'stop-color': 'stopColor',\n  stopopacity: 'stopOpacity',\n  'stop-opacity': 'stopOpacity',\n  strikethroughposition: 'strikethroughPosition',\n  'strikethrough-position': 'strikethroughPosition',\n  strikethroughthickness: 'strikethroughThickness',\n  'strikethrough-thickness': 'strikethroughThickness',\n  string: 'string',\n  stroke: 'stroke',\n  strokedasharray: 'strokeDasharray',\n  'stroke-dasharray': 'strokeDasharray',\n  strokedashoffset: 'strokeDashoffset',\n  'stroke-dashoffset': 'strokeDashoffset',\n  strokelinecap: 'strokeLinecap',\n  'stroke-linecap': 'strokeLinecap',\n  strokelinejoin: 'strokeLinejoin',\n  'stroke-linejoin': 'strokeLinejoin',\n  strokemiterlimit: 'strokeMiterlimit',\n  'stroke-miterlimit': 'strokeMiterlimit',\n  strokewidth: 'strokeWidth',\n  'stroke-width': 'strokeWidth',\n  strokeopacity: 'strokeOpacity',\n  'stroke-opacity': 'strokeOpacity',\n  suppresscontenteditablewarning: 'suppressContentEditableWarning',\n  suppresshydrationwarning: 'suppressHydrationWarning',\n  surfacescale: 'surfaceScale',\n  systemlanguage: 'systemLanguage',\n  tablevalues: 'tableValues',\n  targetx: 'targetX',\n  targety: 'targetY',\n  textanchor: 'textAnchor',\n  'text-anchor': 'textAnchor',\n  textdecoration: 'textDecoration',\n  'text-decoration': 'textDecoration',\n  textlength: 'textLength',\n  textrendering: 'textRendering',\n  'text-rendering': 'textRendering',\n  to: 'to',\n  transform: 'transform',\n  typeof: 'typeof',\n  u1: 'u1',\n  u2: 'u2',\n  underlineposition: 'underlinePosition',\n  'underline-position': 'underlinePosition',\n  underlinethickness: 'underlineThickness',\n  'underline-thickness': 'underlineThickness',\n  unicode: 'unicode',\n  unicodebidi: 'unicodeBidi',\n  'unicode-bidi': 'unicodeBidi',\n  unicoderange: 'unicodeRange',\n  'unicode-range': 'unicodeRange',\n  unitsperem: 'unitsPerEm',\n  'units-per-em': 'unitsPerEm',\n  unselectable: 'unselectable',\n  valphabetic: 'vAlphabetic',\n  'v-alphabetic': 'vAlphabetic',\n  values: 'values',\n  vectoreffect: 'vectorEffect',\n  'vector-effect': 'vectorEffect',\n  version: 'version',\n  vertadvy: 'vertAdvY',\n  'vert-adv-y': 'vertAdvY',\n  vertoriginx: 'vertOriginX',\n  'vert-origin-x': 'vertOriginX',\n  vertoriginy: 'vertOriginY',\n  'vert-origin-y': 'vertOriginY',\n  vhanging: 'vHanging',\n  'v-hanging': 'vHanging',\n  videographic: 'vIdeographic',\n  'v-ideographic': 'vIdeographic',\n  viewbox: 'viewBox',\n  viewtarget: 'viewTarget',\n  visibility: 'visibility',\n  vmathematical: 'vMathematical',\n  'v-mathematical': 'vMathematical',\n  vocab: 'vocab',\n  widths: 'widths',\n  wordspacing: 'wordSpacing',\n  'word-spacing': 'wordSpacing',\n  writingmode: 'writingMode',\n  'writing-mode': 'writingMode',\n  x1: 'x1',\n  x2: 'x2',\n  x: 'x',\n  xchannelselector: 'xChannelSelector',\n  xheight: 'xHeight',\n  'x-height': 'xHeight',\n  xlinkactuate: 'xlinkActuate',\n  'xlink:actuate': 'xlinkActuate',\n  xlinkarcrole: 'xlinkArcrole',\n  'xlink:arcrole': 'xlinkArcrole',\n  xlinkhref: 'xlinkHref',\n  'xlink:href': 'xlinkHref',\n  xlinkrole: 'xlinkRole',\n  'xlink:role': 'xlinkRole',\n  xlinkshow: 'xlinkShow',\n  'xlink:show': 'xlinkShow',\n  xlinktitle: 'xlinkTitle',\n  'xlink:title': 'xlinkTitle',\n  xlinktype: 'xlinkType',\n  'xlink:type': 'xlinkType',\n  xmlbase: 'xmlBase',\n  'xml:base': 'xmlBase',\n  xmllang: 'xmlLang',\n  'xml:lang': 'xmlLang',\n  xmlns: 'xmlns',\n  'xml:space': 'xmlSpace',\n  xmlnsxlink: 'xmlnsXlink',\n  'xmlns:xlink': 'xmlnsXlink',\n  xmlspace: 'xmlSpace',\n  y1: 'y1',\n  y2: 'y2',\n  y: 'y',\n  ychannelselector: 'yChannelSelector',\n  z: 'z',\n  zoomandpan: 'zoomAndPan'\n};\n\nvar ariaProperties={\n  'aria-current': 0,\n  // state\n  'aria-details': 0,\n  'aria-disabled': 0,\n  // state\n  'aria-hidden': 0,\n  // state\n  'aria-invalid': 0,\n  // state\n  'aria-keyshortcuts': 0,\n  'aria-label': 0,\n  'aria-roledescription': 0,\n  // Widget Attributes\n  'aria-autocomplete': 0,\n  'aria-checked': 0,\n  'aria-expanded': 0,\n  'aria-haspopup': 0,\n  'aria-level': 0,\n  'aria-modal': 0,\n  'aria-multiline': 0,\n  'aria-multiselectable': 0,\n  'aria-orientation': 0,\n  'aria-placeholder': 0,\n  'aria-pressed': 0,\n  'aria-readonly': 0,\n  'aria-required': 0,\n  'aria-selected': 0,\n  'aria-sort': 0,\n  'aria-valuemax': 0,\n  'aria-valuemin': 0,\n  'aria-valuenow': 0,\n  'aria-valuetext': 0,\n  // Live Region Attributes\n  'aria-atomic': 0,\n  'aria-busy': 0,\n  'aria-live': 0,\n  'aria-relevant': 0,\n  // Drag-and-Drop Attributes\n  'aria-dropeffect': 0,\n  'aria-grabbed': 0,\n  // Relationship Attributes\n  'aria-activedescendant': 0,\n  'aria-colcount': 0,\n  'aria-colindex': 0,\n  'aria-colspan': 0,\n  'aria-controls': 0,\n  'aria-describedby': 0,\n  'aria-errormessage': 0,\n  'aria-flowto': 0,\n  'aria-labelledby': 0,\n  'aria-owns': 0,\n  'aria-posinset': 0,\n  'aria-rowcount': 0,\n  'aria-rowindex': 0,\n  'aria-rowspan': 0,\n  'aria-setsize': 0\n};\n\nvar warnedProperties={};\nvar rARIA=new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar rARIACamel=new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\nvar hasOwnProperty$1=Object.prototype.hasOwnProperty;\n\nfunction validateProperty(tagName, name){\n  {\n    if(hasOwnProperty$1.call(warnedProperties, name)&&warnedProperties[name]){\n      return true;\n    }\n\n    if(rARIACamel.test(name)){\n      var ariaName='aria-' + name.slice(4).toLowerCase();\n      var correctName=ariaProperties.hasOwnProperty(ariaName) ? ariaName:null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if(correctName==null){\n        error('Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);\n\n        warnedProperties[name]=true;\n        return true;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if(name!==correctName){\n        error('Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);\n\n        warnedProperties[name]=true;\n        return true;\n      }\n    }\n\n    if(rARIA.test(name)){\n      var lowerCasedName=name.toLowerCase();\n      var standardName=ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName:null; // If this is an aria-* attribute, but is not listed in the known DOM\n      // DOM properties, then it is an invalid aria-* attribute.\n\n      if(standardName==null){\n        warnedProperties[name]=true;\n        return false;\n      } // aria-* attributes should be lowercase; suggest the lowercase version.\n\n\n      if(name!==standardName){\n        error('Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties[name]=true;\n        return true;\n      }\n    }\n  }\n\n  return true;\n}\n\nfunction warnInvalidARIAProps(type, props){\n  {\n    var invalidProps=[];\n\n    for (var key in props){\n      var isValid=validateProperty(type, key);\n\n      if(!isValid){\n        invalidProps.push(key);\n      }\n    }\n\n    var unknownPropString=invalidProps.map(function (prop){\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if(invalidProps.length===1){\n      error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);\n    }else if(invalidProps.length > 1){\n      error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);\n    }\n  }\n}\n\nfunction validateProperties(type, props){\n  if(isCustomComponent(type, props)){\n    return;\n  }\n\n  warnInvalidARIAProps(type, props);\n}\n\nvar didWarnValueNull=false;\nfunction validateProperties$1(type, props){\n  {\n    if(type!=='input'&&type!=='textarea'&&type!=='select'){\n      return;\n    }\n\n    if(props!=null&&props.value===null&&!didWarnValueNull){\n      didWarnValueNull=true;\n\n      if(type==='select'&&props.multiple){\n        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);\n      }else{\n        error('`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);\n      }\n    }\n  }\n}\n\nvar validateProperty$1=function (){};\n\n{\n  var warnedProperties$1={};\n  var _hasOwnProperty=Object.prototype.hasOwnProperty;\n  var EVENT_NAME_REGEX=/^on./;\n  var INVALID_EVENT_NAME_REGEX=/^on[^A-Z]/;\n  var rARIA$1=new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');\n  var rARIACamel$1=new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');\n\n  validateProperty$1=function (tagName, name, value, canUseEventSystem){\n    if(_hasOwnProperty.call(warnedProperties$1, name)&&warnedProperties$1[name]){\n      return true;\n    }\n\n    var lowerCasedName=name.toLowerCase();\n\n    if(lowerCasedName==='onfocusin'||lowerCasedName==='onfocusout'){\n      error('React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');\n\n      warnedProperties$1[name]=true;\n      return true;\n    } // We can't rely on the event system being injected on the server.\n\n\n    if(canUseEventSystem){\n      if(registrationNameModules.hasOwnProperty(name)){\n        return true;\n      }\n\n      var registrationName=possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName]:null;\n\n      if(registrationName!=null){\n        error('Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);\n\n        warnedProperties$1[name]=true;\n        return true;\n      }\n\n      if(EVENT_NAME_REGEX.test(name)){\n        error('Unknown event handler property `%s`. It will be ignored.', name);\n\n        warnedProperties$1[name]=true;\n        return true;\n      }\n    }else if(EVENT_NAME_REGEX.test(name)){\n      // If no event plugins have been injected, we are in a server environment.\n      // So we can't tell if the event name is correct for sure, but we can filter\n      // out known bad ones like `onclick`. We can't suggest a specific replacement though.\n      if(INVALID_EVENT_NAME_REGEX.test(name)){\n        error('Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);\n      }\n\n      warnedProperties$1[name]=true;\n      return true;\n    } // Let the ARIA attribute hook validate ARIA attributes\n\n\n    if(rARIA$1.test(name)||rARIACamel$1.test(name)){\n      return true;\n    }\n\n    if(lowerCasedName==='innerhtml'){\n      error('Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');\n\n      warnedProperties$1[name]=true;\n      return true;\n    }\n\n    if(lowerCasedName==='aria'){\n      error('The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');\n\n      warnedProperties$1[name]=true;\n      return true;\n    }\n\n    if(lowerCasedName==='is'&&value!==null&&value!==undefined&&typeof value!=='string'){\n      error('Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);\n\n      warnedProperties$1[name]=true;\n      return true;\n    }\n\n    if(typeof value==='number'&&isNaN(value)){\n      error('Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);\n\n      warnedProperties$1[name]=true;\n      return true;\n    }\n\n    var propertyInfo=getPropertyInfo(name);\n    var isReserved=propertyInfo!==null&&propertyInfo.type===RESERVED; // Known attributes should match the casing specified in the property config.\n\n    if(possibleStandardNames.hasOwnProperty(lowerCasedName)){\n      var standardName=possibleStandardNames[lowerCasedName];\n\n      if(standardName!==name){\n        error('Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);\n\n        warnedProperties$1[name]=true;\n        return true;\n      }\n    }else if(!isReserved&&name!==lowerCasedName){\n      // Unknown attributes should have lowercase casing since that's how they\n      // will be cased anyway with server rendering.\n      error('React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);\n\n      warnedProperties$1[name]=true;\n      return true;\n    }\n\n    if(typeof value==='boolean'&&shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)){\n      if(value){\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.', value, name, name, value, name);\n      }else{\n        error('Received `%s` for a non-boolean attribute `%s`.\\n\\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s=\"%s\" or %s={value.toString()}.\\n\\n' + 'If you used to conditionally omit it with %s={condition&&value}, ' + 'pass %s={condition ? value:undefined} instead.', value, name, name, value, name, name, name);\n      }\n\n      warnedProperties$1[name]=true;\n      return true;\n    } // Now that we've validated casing, do not validate\n    // data types for reserved props\n\n\n    if(isReserved){\n      return true;\n    } // Warn when a known attribute is a bad type\n\n\n    if(shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)){\n      warnedProperties$1[name]=true;\n      return false;\n    } // Warn when passing the strings 'false' or 'true' into a boolean prop\n\n\n    if((value==='false'||value==='true')&&propertyInfo!==null&&propertyInfo.type===BOOLEAN){\n      error('Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value==='false' ? 'The browser will interpret it as a truthy value.':'Although this works, it will not work as expected if you pass the string \"false\".', name, value);\n\n      warnedProperties$1[name]=true;\n      return true;\n    }\n\n    return true;\n  };\n}\n\nvar warnUnknownProperties=function (type, props, canUseEventSystem){\n  {\n    var unknownProps=[];\n\n    for (var key in props){\n      var isValid=validateProperty$1(type, key, props[key], canUseEventSystem);\n\n      if(!isValid){\n        unknownProps.push(key);\n      }\n    }\n\n    var unknownPropString=unknownProps.map(function (prop){\n      return '`' + prop + '`';\n    }).join(', ');\n\n    if(unknownProps.length===1){\n      error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);\n    }else if(unknownProps.length > 1){\n      error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);\n    }\n  }\n};\n\nfunction validateProperties$2(type, props, canUseEventSystem){\n  if(isCustomComponent(type, props)){\n    return;\n  }\n\n  warnUnknownProperties(type, props, canUseEventSystem);\n}\n\nvar didWarnInvalidHydration=false;\nvar DANGEROUSLY_SET_INNER_HTML='dangerouslySetInnerHTML';\nvar SUPPRESS_CONTENT_EDITABLE_WARNING='suppressContentEditableWarning';\nvar SUPPRESS_HYDRATION_WARNING='suppressHydrationWarning';\nvar AUTOFOCUS='autoFocus';\nvar CHILDREN='children';\nvar STYLE='style';\nvar HTML$1='__html';\nvar HTML_NAMESPACE$1=Namespaces.html;\nvar warnedUnknownTags;\nvar suppressHydrationWarning;\nvar validatePropertiesInDevelopment;\nvar warnForTextDifference;\nvar warnForPropDifference;\nvar warnForExtraAttributes;\nvar warnForInvalidEventListener;\nvar canDiffStyleForHydrationWarning;\nvar normalizeMarkupForTextOrAttribute;\nvar normalizeHTML;\n\n{\n  warnedUnknownTags={\n    // Chrome is the only major browser not shipping <time>. But as of July\n    // 2017 it intends to ship it due to widespread usage. We intentionally\n    // *don't* warn for <time> even if it's unrecognized by Chrome because\n    // it soon will be, and many apps have been using it anyway.\n    time: true,\n    // There are working polyfills for <dialog>. Let people use it.\n    dialog: true,\n    // Electron ships a custom <webview> tag to display external web content in\n    // an isolated frame and process.\n    // This tag is not present in non Electron environments such as JSDom which\n    // is often used for testing purposes.\n    // @see https://electronjs.org/docs/api/webview-tag\n    webview: true\n  };\n\n  validatePropertiesInDevelopment=function (type, props){\n    validateProperties(type, props);\n    validateProperties$1(type, props);\n    validateProperties$2(type, props,\n    \n    true);\n  }; // IE 11 parses & normalizes the style attribute as opposed to other\n  // browsers. It adds spaces and sorts the properties in some\n  // non-alphabetical order. Handling that would require sorting CSS\n  // properties in the client & server versions or applying\n  // `expectedStyle` to a temporary DOM node to read its `style` attribute\n  // normalized. Since it only affects IE, we're skipping style warnings\n  // in that browser completely in favor of doing all that work.\n  // See https://github.com/facebook/react/issues/11807\n\n\n  canDiffStyleForHydrationWarning=canUseDOM&&!document.documentMode; // HTML parsing normalizes CR and CRLF to LF.\n  // It also can turn \\u0000 into \\uFFFD inside attributes.\n  // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream\n  // If we have a mismatch, it might be caused by that.\n  // We will still patch up in this case but not fire the warning.\n\n  var NORMALIZE_NEWLINES_REGEX=/\\r\\n?/g;\n  var NORMALIZE_NULL_AND_REPLACEMENT_REGEX=/\\u0000|\\uFFFD/g;\n\n  normalizeMarkupForTextOrAttribute=function (markup){\n    var markupString=typeof markup==='string' ? markup:'' + markup;\n    return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');\n  };\n\n  warnForTextDifference=function (serverText, clientText){\n    if(didWarnInvalidHydration){\n      return;\n    }\n\n    var normalizedClientText=normalizeMarkupForTextOrAttribute(clientText);\n    var normalizedServerText=normalizeMarkupForTextOrAttribute(serverText);\n\n    if(normalizedServerText===normalizedClientText){\n      return;\n    }\n\n    didWarnInvalidHydration=true;\n\n    error('Text content did not match. Server: \"%s\" Client: \"%s\"', normalizedServerText, normalizedClientText);\n  };\n\n  warnForPropDifference=function (propName, serverValue, clientValue){\n    if(didWarnInvalidHydration){\n      return;\n    }\n\n    var normalizedClientValue=normalizeMarkupForTextOrAttribute(clientValue);\n    var normalizedServerValue=normalizeMarkupForTextOrAttribute(serverValue);\n\n    if(normalizedServerValue===normalizedClientValue){\n      return;\n    }\n\n    didWarnInvalidHydration=true;\n\n    error('Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));\n  };\n\n  warnForExtraAttributes=function (attributeNames){\n    if(didWarnInvalidHydration){\n      return;\n    }\n\n    didWarnInvalidHydration=true;\n    var names=[];\n    attributeNames.forEach(function (name){\n      names.push(name);\n    });\n\n    error('Extra attributes from the server: %s', names);\n  };\n\n  warnForInvalidEventListener=function (registrationName, listener){\n    if(listener===false){\n      error('Expected `%s` listener to be a function, instead got `false`.\\n\\n' + 'If you used to conditionally omit it with %s={condition&&value}, ' + 'pass %s={condition ? value:undefined} instead.', registrationName, registrationName, registrationName);\n    }else{\n      error('Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);\n    }\n  }; // Parse the HTML and read it back to normalize the HTML string so that it\n  // can be used for comparison.\n\n\n  normalizeHTML=function (parent, html){\n    // We could have created a separate document here to avoid\n    // re-initializing custom elements if they exist. But this breaks\n    // how <noscript> is being handled. So we use the same document.\n    // See the discussion in https://github.com/facebook/react/pull/11157.\n    var testElement=parent.namespaceURI===HTML_NAMESPACE$1 ? parent.ownerDocument.createElement(parent.tagName):parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);\n    testElement.innerHTML=html;\n    return testElement.innerHTML;\n  };\n}\n\nfunction ensureListeningTo(rootContainerElement, registrationName){\n  var isDocumentOrFragment=rootContainerElement.nodeType===DOCUMENT_NODE||rootContainerElement.nodeType===DOCUMENT_FRAGMENT_NODE;\n  var doc=isDocumentOrFragment ? rootContainerElement:rootContainerElement.ownerDocument;\n  legacyListenToEvent(registrationName, doc);\n}\n\nfunction getOwnerDocumentFromRootContainer(rootContainerElement){\n  return rootContainerElement.nodeType===DOCUMENT_NODE ? rootContainerElement:rootContainerElement.ownerDocument;\n}\n\nfunction noop(){}\n\nfunction trapClickOnNonInteractiveElement(node){\n  // Mobile Safari does not fire properly bubble click events on\n  // non-interactive elements, which means delegated click listeners do not\n  // fire. The workaround for this bug involves attaching an empty click\n  // listener on the target node.\n  // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html\n  // Just set it using the onclick property so that we don't have to manage any\n  // bookkeeping for it. Not sure if we need to clear it when the listener is\n  // removed.\n  // TODO: Only do this for the relevant Safaris maybe?\n  node.onclick=noop;\n}\n\nfunction setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag){\n  for (var propKey in nextProps){\n    if(!nextProps.hasOwnProperty(propKey)){\n      continue;\n    }\n\n    var nextProp=nextProps[propKey];\n\n    if(propKey===STYLE){\n      {\n        if(nextProp){\n          // Freeze the next style object so that we can assume it won't be\n          // mutated. We have already warned for this in the past.\n          Object.freeze(nextProp);\n        }\n      } // Relies on `updateStylesByID` not mutating `styleUpdates`.\n\n\n      setValueForStyles(domElement, nextProp);\n    }else if(propKey===DANGEROUSLY_SET_INNER_HTML){\n      var nextHtml=nextProp ? nextProp[HTML$1]:undefined;\n\n      if(nextHtml!=null){\n        setInnerHTML(domElement, nextHtml);\n      }\n    }else if(propKey===CHILDREN){\n      if(typeof nextProp==='string'){\n        // Avoid setting initial textContent when the text is empty. In IE11 setting\n        // textContent on a <textarea> will cause the placeholder to not\n        // show within the <textarea> until it has been focused and blurred again.\n        // https://github.com/facebook/react/issues/6731#issuecomment-254874553\n        var canSetTextContent=tag!=='textarea'||nextProp!=='';\n\n        if(canSetTextContent){\n          setTextContent(domElement, nextProp);\n        }\n      }else if(typeof nextProp==='number'){\n        setTextContent(domElement, '' + nextProp);\n      }\n    }else if(propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING) ; else if(propKey===AUTOFOCUS) ; else if(registrationNameModules.hasOwnProperty(propKey)){\n      if(nextProp!=null){\n        if(typeof nextProp!=='function'){\n          warnForInvalidEventListener(propKey, nextProp);\n        }\n\n        ensureListeningTo(rootContainerElement, propKey);\n      }\n    }else if(nextProp!=null){\n      setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);\n    }\n  }\n}\n\nfunction updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag){\n  // TODO: Handle wasCustomComponentTag\n  for (var i=0; i < updatePayload.length; i +=2){\n    var propKey=updatePayload[i];\n    var propValue=updatePayload[i + 1];\n\n    if(propKey===STYLE){\n      setValueForStyles(domElement, propValue);\n    }else if(propKey===DANGEROUSLY_SET_INNER_HTML){\n      setInnerHTML(domElement, propValue);\n    }else if(propKey===CHILDREN){\n      setTextContent(domElement, propValue);\n    }else{\n      setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);\n    }\n  }\n}\n\nfunction createElement(type, props, rootContainerElement, parentNamespace){\n  var isCustomComponentTag; // We create tags in the namespace of their parent container, except HTML\n  // tags get no namespace.\n\n  var ownerDocument=getOwnerDocumentFromRootContainer(rootContainerElement);\n  var domElement;\n  var namespaceURI=parentNamespace;\n\n  if(namespaceURI===HTML_NAMESPACE$1){\n    namespaceURI=getIntrinsicNamespace(type);\n  }\n\n  if(namespaceURI===HTML_NAMESPACE$1){\n    {\n      isCustomComponentTag=isCustomComponent(type, props); // Should this check be gated by parent namespace? Not sure we want to\n      // allow <SVG> or <mATH>.\n\n      if(!isCustomComponentTag&&type!==type.toLowerCase()){\n        error('<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type);\n      }\n    }\n\n    if(type==='script'){\n      // Create the script via .innerHTML so its \"parser-inserted\" flag is\n      // set to true and it does not execute\n      var div=ownerDocument.createElement('div');\n\n      div.innerHTML='<script><' + '/script>'; // eslint-disable-line\n      // This is guaranteed to yield a script element.\n\n      var firstChild=div.firstChild;\n      domElement=div.removeChild(firstChild);\n    }else if(typeof props.is==='string'){\n      // $FlowIssue `createElement` should be updated for Web Components\n      domElement=ownerDocument.createElement(type, {\n        is: props.is\n      });\n    }else{\n      // Separate else branch instead of using `props.is||undefined` above because of a Firefox bug.\n      // See discussion in https://github.com/facebook/react/pull/6896\n      // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240\n      domElement=ownerDocument.createElement(type); // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`\n      // attributes on `select`s needs to be added before `option`s are inserted.\n      // This prevents:\n      // - a bug where the `select` does not scroll to the correct option because singular\n      //  `select` elements automatically pick the first item #13222\n      // - a bug where the `select` set the first item as selected despite the `size` attribute #14239\n      // See https://github.com/facebook/react/issues/13222\n      // and https://github.com/facebook/react/issues/14239\n\n      if(type==='select'){\n        var node=domElement;\n\n        if(props.multiple){\n          node.multiple=true;\n        }else if(props.size){\n          // Setting a size greater than 1 causes a select to behave like `multiple=true`, where\n          // it is possible that no option is selected.\n          //\n          // This is only necessary when a select in \"single selection mode\".\n          node.size=props.size;\n        }\n      }\n    }\n  }else{\n    domElement=ownerDocument.createElementNS(namespaceURI, type);\n  }\n\n  {\n    if(namespaceURI===HTML_NAMESPACE$1){\n      if(!isCustomComponentTag&&Object.prototype.toString.call(domElement)==='[object HTMLUnknownElement]'&&!Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)){\n        warnedUnknownTags[type]=true;\n\n        error('The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);\n      }\n    }\n  }\n\n  return domElement;\n}\nfunction createTextNode(text, rootContainerElement){\n  return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);\n}\nfunction setInitialProperties(domElement, tag, rawProps, rootContainerElement){\n  var isCustomComponentTag=isCustomComponent(tag, rawProps);\n\n  {\n    validatePropertiesInDevelopment(tag, rawProps);\n  } // TODO: Make sure that we check isMounted before firing any of these events.\n\n\n  var props;\n\n  switch (tag){\n    case 'iframe':\n    case 'object':\n    case 'embed':\n      trapBubbledEvent(TOP_LOAD, domElement);\n      props=rawProps;\n      break;\n\n    case 'video':\n    case 'audio':\n      // Create listener for each media event\n      for (var i=0; i < mediaEventTypes.length; i++){\n        trapBubbledEvent(mediaEventTypes[i], domElement);\n      }\n\n      props=rawProps;\n      break;\n\n    case 'source':\n      trapBubbledEvent(TOP_ERROR, domElement);\n      props=rawProps;\n      break;\n\n    case 'img':\n    case 'image':\n    case 'link':\n      trapBubbledEvent(TOP_ERROR, domElement);\n      trapBubbledEvent(TOP_LOAD, domElement);\n      props=rawProps;\n      break;\n\n    case 'form':\n      trapBubbledEvent(TOP_RESET, domElement);\n      trapBubbledEvent(TOP_SUBMIT, domElement);\n      props=rawProps;\n      break;\n\n    case 'details':\n      trapBubbledEvent(TOP_TOGGLE, domElement);\n      props=rawProps;\n      break;\n\n    case 'input':\n      initWrapperState(domElement, rawProps);\n      props=getHostProps(domElement, rawProps);\n      trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening\n      // to onChange. Even if there is no listener.\n\n      ensureListeningTo(rootContainerElement, 'onChange');\n      break;\n\n    case 'option':\n      validateProps(domElement, rawProps);\n      props=getHostProps$1(domElement, rawProps);\n      break;\n\n    case 'select':\n      initWrapperState$1(domElement, rawProps);\n      props=getHostProps$2(domElement, rawProps);\n      trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening\n      // to onChange. Even if there is no listener.\n\n      ensureListeningTo(rootContainerElement, 'onChange');\n      break;\n\n    case 'textarea':\n      initWrapperState$2(domElement, rawProps);\n      props=getHostProps$3(domElement, rawProps);\n      trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening\n      // to onChange. Even if there is no listener.\n\n      ensureListeningTo(rootContainerElement, 'onChange');\n      break;\n\n    default:\n      props=rawProps;\n  }\n\n  assertValidProps(tag, props);\n  setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);\n\n  switch (tag){\n    case 'input':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper(domElement, rawProps, false);\n      break;\n\n    case 'textarea':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper$3(domElement);\n      break;\n\n    case 'option':\n      postMountWrapper$1(domElement, rawProps);\n      break;\n\n    case 'select':\n      postMountWrapper$2(domElement, rawProps);\n      break;\n\n    default:\n      if(typeof props.onClick==='function'){\n        // TODO: This cast may not be sound for SVG, MathML or custom elements.\n        trapClickOnNonInteractiveElement(domElement);\n      }\n\n      break;\n  }\n} // Calculate the diff between the two objects.\n\nfunction diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement){\n  {\n    validatePropertiesInDevelopment(tag, nextRawProps);\n  }\n\n  var updatePayload=null;\n  var lastProps;\n  var nextProps;\n\n  switch (tag){\n    case 'input':\n      lastProps=getHostProps(domElement, lastRawProps);\n      nextProps=getHostProps(domElement, nextRawProps);\n      updatePayload=[];\n      break;\n\n    case 'option':\n      lastProps=getHostProps$1(domElement, lastRawProps);\n      nextProps=getHostProps$1(domElement, nextRawProps);\n      updatePayload=[];\n      break;\n\n    case 'select':\n      lastProps=getHostProps$2(domElement, lastRawProps);\n      nextProps=getHostProps$2(domElement, nextRawProps);\n      updatePayload=[];\n      break;\n\n    case 'textarea':\n      lastProps=getHostProps$3(domElement, lastRawProps);\n      nextProps=getHostProps$3(domElement, nextRawProps);\n      updatePayload=[];\n      break;\n\n    default:\n      lastProps=lastRawProps;\n      nextProps=nextRawProps;\n\n      if(typeof lastProps.onClick!=='function'&&typeof nextProps.onClick==='function'){\n        // TODO: This cast may not be sound for SVG, MathML or custom elements.\n        trapClickOnNonInteractiveElement(domElement);\n      }\n\n      break;\n  }\n\n  assertValidProps(tag, nextProps);\n  var propKey;\n  var styleName;\n  var styleUpdates=null;\n\n  for (propKey in lastProps){\n    if(nextProps.hasOwnProperty(propKey)||!lastProps.hasOwnProperty(propKey)||lastProps[propKey]==null){\n      continue;\n    }\n\n    if(propKey===STYLE){\n      var lastStyle=lastProps[propKey];\n\n      for (styleName in lastStyle){\n        if(lastStyle.hasOwnProperty(styleName)){\n          if(!styleUpdates){\n            styleUpdates={};\n          }\n\n          styleUpdates[styleName]='';\n        }\n      }\n    }else if(propKey===DANGEROUSLY_SET_INNER_HTML||propKey===CHILDREN) ; else if(propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING) ; else if(propKey===AUTOFOCUS) ; else if(registrationNameModules.hasOwnProperty(propKey)){\n      // This is a special case. If any listener updates we need to ensure\n      // that the \"current\" fiber pointer gets updated so we need a commit\n      // to update this element.\n      if(!updatePayload){\n        updatePayload=[];\n      }\n    }else{\n      // For all other deleted properties we add it to the queue. We use\n      // the whitelist in the commit phase instead.\n      (updatePayload=updatePayload||[]).push(propKey, null);\n    }\n  }\n\n  for (propKey in nextProps){\n    var nextProp=nextProps[propKey];\n    var lastProp=lastProps!=null ? lastProps[propKey]:undefined;\n\n    if(!nextProps.hasOwnProperty(propKey)||nextProp===lastProp||nextProp==null&&lastProp==null){\n      continue;\n    }\n\n    if(propKey===STYLE){\n      {\n        if(nextProp){\n          // Freeze the next style object so that we can assume it won't be\n          // mutated. We have already warned for this in the past.\n          Object.freeze(nextProp);\n        }\n      }\n\n      if(lastProp){\n        // Unset styles on `lastProp` but not on `nextProp`.\n        for (styleName in lastProp){\n          if(lastProp.hasOwnProperty(styleName)&&(!nextProp||!nextProp.hasOwnProperty(styleName))){\n            if(!styleUpdates){\n              styleUpdates={};\n            }\n\n            styleUpdates[styleName]='';\n          }\n        } // Update styles that changed since `lastProp`.\n\n\n        for (styleName in nextProp){\n          if(nextProp.hasOwnProperty(styleName)&&lastProp[styleName]!==nextProp[styleName]){\n            if(!styleUpdates){\n              styleUpdates={};\n            }\n\n            styleUpdates[styleName]=nextProp[styleName];\n          }\n        }\n      }else{\n        // Relies on `updateStylesByID` not mutating `styleUpdates`.\n        if(!styleUpdates){\n          if(!updatePayload){\n            updatePayload=[];\n          }\n\n          updatePayload.push(propKey, styleUpdates);\n        }\n\n        styleUpdates=nextProp;\n      }\n    }else if(propKey===DANGEROUSLY_SET_INNER_HTML){\n      var nextHtml=nextProp ? nextProp[HTML$1]:undefined;\n      var lastHtml=lastProp ? lastProp[HTML$1]:undefined;\n\n      if(nextHtml!=null){\n        if(lastHtml!==nextHtml){\n          (updatePayload=updatePayload||[]).push(propKey, nextHtml);\n        }\n      }\n    }else if(propKey===CHILDREN){\n      if(lastProp!==nextProp&&(typeof nextProp==='string'||typeof nextProp==='number')){\n        (updatePayload=updatePayload||[]).push(propKey, '' + nextProp);\n      }\n    }else if(propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING) ; else if(registrationNameModules.hasOwnProperty(propKey)){\n      if(nextProp!=null){\n        // We eagerly listen to this even though we haven't committed yet.\n        if(typeof nextProp!=='function'){\n          warnForInvalidEventListener(propKey, nextProp);\n        }\n\n        ensureListeningTo(rootContainerElement, propKey);\n      }\n\n      if(!updatePayload&&lastProp!==nextProp){\n        // This is a special case. If any listener updates we need to ensure\n        // that the \"current\" props pointer gets updated so we need a commit\n        // to update this element.\n        updatePayload=[];\n      }\n    }else{\n      // For any other property we always add it to the queue and then we\n      // filter it out using the whitelist during the commit.\n      (updatePayload=updatePayload||[]).push(propKey, nextProp);\n    }\n  }\n\n  if(styleUpdates){\n    {\n      validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE]);\n    }\n\n    (updatePayload=updatePayload||[]).push(STYLE, styleUpdates);\n  }\n\n  return updatePayload;\n} // Apply the diff.\n\nfunction updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps){\n  // Update checked *before* name.\n  // In the middle of an update, it is possible to have multiple checked.\n  // When a checked radio tries to change name, browser makes another radio's checked false.\n  if(tag==='input'&&nextRawProps.type==='radio'&&nextRawProps.name!=null){\n    updateChecked(domElement, nextRawProps);\n  }\n\n  var wasCustomComponentTag=isCustomComponent(tag, lastRawProps);\n  var isCustomComponentTag=isCustomComponent(tag, nextRawProps); // Apply the diff.\n\n  updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag); // TODO: Ensure that an update gets scheduled if any of the special props\n  // changed.\n\n  switch (tag){\n    case 'input':\n      // Update the wrapper around inputs *after* updating props. This has to\n      // happen after `updateDOMProperties`. Otherwise HTML5 input validations\n      // raise warnings and prevent the new value from being assigned.\n      updateWrapper(domElement, nextRawProps);\n      break;\n\n    case 'textarea':\n      updateWrapper$1(domElement, nextRawProps);\n      break;\n\n    case 'select':\n      // <select> value update needs to occur after <option> children\n      // reconciliation\n      postUpdateWrapper(domElement, nextRawProps);\n      break;\n  }\n}\n\nfunction getPossibleStandardName(propName){\n  {\n    var lowerCasedName=propName.toLowerCase();\n\n    if(!possibleStandardNames.hasOwnProperty(lowerCasedName)){\n      return null;\n    }\n\n    return possibleStandardNames[lowerCasedName]||null;\n  }\n}\n\nfunction diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement){\n  var isCustomComponentTag;\n  var extraAttributeNames;\n\n  {\n    suppressHydrationWarning=rawProps[SUPPRESS_HYDRATION_WARNING]===true;\n    isCustomComponentTag=isCustomComponent(tag, rawProps);\n    validatePropertiesInDevelopment(tag, rawProps);\n  } // TODO: Make sure that we check isMounted before firing any of these events.\n\n\n  switch (tag){\n    case 'iframe':\n    case 'object':\n    case 'embed':\n      trapBubbledEvent(TOP_LOAD, domElement);\n      break;\n\n    case 'video':\n    case 'audio':\n      // Create listener for each media event\n      for (var i=0; i < mediaEventTypes.length; i++){\n        trapBubbledEvent(mediaEventTypes[i], domElement);\n      }\n\n      break;\n\n    case 'source':\n      trapBubbledEvent(TOP_ERROR, domElement);\n      break;\n\n    case 'img':\n    case 'image':\n    case 'link':\n      trapBubbledEvent(TOP_ERROR, domElement);\n      trapBubbledEvent(TOP_LOAD, domElement);\n      break;\n\n    case 'form':\n      trapBubbledEvent(TOP_RESET, domElement);\n      trapBubbledEvent(TOP_SUBMIT, domElement);\n      break;\n\n    case 'details':\n      trapBubbledEvent(TOP_TOGGLE, domElement);\n      break;\n\n    case 'input':\n      initWrapperState(domElement, rawProps);\n      trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening\n      // to onChange. Even if there is no listener.\n\n      ensureListeningTo(rootContainerElement, 'onChange');\n      break;\n\n    case 'option':\n      validateProps(domElement, rawProps);\n      break;\n\n    case 'select':\n      initWrapperState$1(domElement, rawProps);\n      trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening\n      // to onChange. Even if there is no listener.\n\n      ensureListeningTo(rootContainerElement, 'onChange');\n      break;\n\n    case 'textarea':\n      initWrapperState$2(domElement, rawProps);\n      trapBubbledEvent(TOP_INVALID, domElement); // For controlled components we always need to ensure we're listening\n      // to onChange. Even if there is no listener.\n\n      ensureListeningTo(rootContainerElement, 'onChange');\n      break;\n  }\n\n  assertValidProps(tag, rawProps);\n\n  {\n    extraAttributeNames=new Set();\n    var attributes=domElement.attributes;\n\n    for (var _i=0; _i < attributes.length; _i++){\n      var name=attributes[_i].name.toLowerCase();\n\n      switch (name){\n        // Built-in SSR attribute is whitelisted\n        case 'data-reactroot':\n          break;\n        // Controlled attributes are not validated\n        // TODO: Only ignore them on controlled tags.\n\n        case 'value':\n          break;\n\n        case 'checked':\n          break;\n\n        case 'selected':\n          break;\n\n        default:\n          // Intentionally use the original name.\n          // See discussion in https://github.com/facebook/react/pull/10676.\n          extraAttributeNames.add(attributes[_i].name);\n      }\n    }\n  }\n\n  var updatePayload=null;\n\n  for (var propKey in rawProps){\n    if(!rawProps.hasOwnProperty(propKey)){\n      continue;\n    }\n\n    var nextProp=rawProps[propKey];\n\n    if(propKey===CHILDREN){\n      // For text content children we compare against textContent. This\n      // might match additional HTML that is hidden when we read it using\n      // textContent. E.g. \"foo\" will match \"f<span>oo</span>\" but that still\n      // satisfies our requirement. Our requirement is not to produce perfect\n      // HTML and attributes. Ideally we should preserve structure but it's\n      // ok not to if the visible content is still enough to indicate what\n      // even listeners these nodes might be wired up to.\n      // TODO: Warn if there is more than a single textNode as a child.\n      // TODO: Should we use domElement.firstChild.nodeValue to compare?\n      if(typeof nextProp==='string'){\n        if(domElement.textContent!==nextProp){\n          if(!suppressHydrationWarning){\n            warnForTextDifference(domElement.textContent, nextProp);\n          }\n\n          updatePayload=[CHILDREN, nextProp];\n        }\n      }else if(typeof nextProp==='number'){\n        if(domElement.textContent!=='' + nextProp){\n          if(!suppressHydrationWarning){\n            warnForTextDifference(domElement.textContent, nextProp);\n          }\n\n          updatePayload=[CHILDREN, '' + nextProp];\n        }\n      }\n    }else if(registrationNameModules.hasOwnProperty(propKey)){\n      if(nextProp!=null){\n        if(typeof nextProp!=='function'){\n          warnForInvalidEventListener(propKey, nextProp);\n        }\n\n        ensureListeningTo(rootContainerElement, propKey);\n      }\n    }else if(// Convince Flow we've calculated it (it's DEV-only in this method.)\n    typeof isCustomComponentTag==='boolean'){\n      // Validate that the properties correspond to their expected values.\n      var serverValue=void 0;\n      var propertyInfo=getPropertyInfo(propKey);\n\n      if(suppressHydrationWarning) ; else if(propKey===SUPPRESS_CONTENT_EDITABLE_WARNING||propKey===SUPPRESS_HYDRATION_WARNING||// Controlled attributes are not validated\n      // TODO: Only ignore them on controlled tags.\n      propKey==='value'||propKey==='checked'||propKey==='selected') ; else if(propKey===DANGEROUSLY_SET_INNER_HTML){\n        var serverHTML=domElement.innerHTML;\n        var nextHtml=nextProp ? nextProp[HTML$1]:undefined;\n        var expectedHTML=normalizeHTML(domElement, nextHtml!=null ? nextHtml:'');\n\n        if(expectedHTML!==serverHTML){\n          warnForPropDifference(propKey, serverHTML, expectedHTML);\n        }\n      }else if(propKey===STYLE){\n        // $FlowFixMe - Should be inferred as not undefined.\n        extraAttributeNames.delete(propKey);\n\n        if(canDiffStyleForHydrationWarning){\n          var expectedStyle=createDangerousStringForStyles(nextProp);\n          serverValue=domElement.getAttribute('style');\n\n          if(expectedStyle!==serverValue){\n            warnForPropDifference(propKey, serverValue, expectedStyle);\n          }\n        }\n      }else if(isCustomComponentTag){\n        // $FlowFixMe - Should be inferred as not undefined.\n        extraAttributeNames.delete(propKey.toLowerCase());\n        serverValue=getValueForAttribute(domElement, propKey, nextProp);\n\n        if(nextProp!==serverValue){\n          warnForPropDifference(propKey, serverValue, nextProp);\n        }\n      }else if(!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag)&&!shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)){\n        var isMismatchDueToBadCasing=false;\n\n        if(propertyInfo!==null){\n          // $FlowFixMe - Should be inferred as not undefined.\n          extraAttributeNames.delete(propertyInfo.attributeName);\n          serverValue=getValueForProperty(domElement, propKey, nextProp, propertyInfo);\n        }else{\n          var ownNamespace=parentNamespace;\n\n          if(ownNamespace===HTML_NAMESPACE$1){\n            ownNamespace=getIntrinsicNamespace(tag);\n          }\n\n          if(ownNamespace===HTML_NAMESPACE$1){\n            // $FlowFixMe - Should be inferred as not undefined.\n            extraAttributeNames.delete(propKey.toLowerCase());\n          }else{\n            var standardName=getPossibleStandardName(propKey);\n\n            if(standardName!==null&&standardName!==propKey){\n              // If an SVG prop is supplied with bad casing, it will\n              // be successfully parsed from HTML, but will produce a mismatch\n              // (and would be incorrectly rendered on the client).\n              // However, we already warn about bad casing elsewhere.\n              // So we'll skip the misleading extra mismatch warning in this case.\n              isMismatchDueToBadCasing=true; // $FlowFixMe - Should be inferred as not undefined.\n\n              extraAttributeNames.delete(standardName);\n            } // $FlowFixMe - Should be inferred as not undefined.\n\n\n            extraAttributeNames.delete(propKey);\n          }\n\n          serverValue=getValueForAttribute(domElement, propKey, nextProp);\n        }\n\n        if(nextProp!==serverValue&&!isMismatchDueToBadCasing){\n          warnForPropDifference(propKey, serverValue, nextProp);\n        }\n      }\n    }\n  }\n\n  {\n    // $FlowFixMe - Should be inferred as not undefined.\n    if(extraAttributeNames.size > 0&&!suppressHydrationWarning){\n      // $FlowFixMe - Should be inferred as not undefined.\n      warnForExtraAttributes(extraAttributeNames);\n    }\n  }\n\n  switch (tag){\n    case 'input':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper(domElement, rawProps, true);\n      break;\n\n    case 'textarea':\n      // TODO: Make sure we check if this is still unmounted or do any clean\n      // up necessary since we never stop tracking anymore.\n      track(domElement);\n      postMountWrapper$3(domElement);\n      break;\n\n    case 'select':\n    case 'option':\n      // For input and textarea we current always set the value property at\n      // post mount to force it to diverge from attributes. However, for\n      // option and select we don't quite do the same thing and select\n      // is not resilient to the DOM state changing so we don't do that here.\n      // TODO: Consider not doing this for input and textarea.\n      break;\n\n    default:\n      if(typeof rawProps.onClick==='function'){\n        // TODO: This cast may not be sound for SVG, MathML or custom elements.\n        trapClickOnNonInteractiveElement(domElement);\n      }\n\n      break;\n  }\n\n  return updatePayload;\n}\nfunction diffHydratedText(textNode, text){\n  var isDifferent=textNode.nodeValue!==text;\n  return isDifferent;\n}\nfunction warnForUnmatchedText(textNode, text){\n  {\n    warnForTextDifference(textNode.nodeValue, text);\n  }\n}\nfunction warnForDeletedHydratableElement(parentNode, child){\n  {\n    if(didWarnInvalidHydration){\n      return;\n    }\n\n    didWarnInvalidHydration=true;\n\n    error('Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());\n  }\n}\nfunction warnForDeletedHydratableText(parentNode, child){\n  {\n    if(didWarnInvalidHydration){\n      return;\n    }\n\n    didWarnInvalidHydration=true;\n\n    error('Did not expect server HTML to contain the text node \"%s\" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());\n  }\n}\nfunction warnForInsertedHydratedElement(parentNode, tag, props){\n  {\n    if(didWarnInvalidHydration){\n      return;\n    }\n\n    didWarnInvalidHydration=true;\n\n    error('Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());\n  }\n}\nfunction warnForInsertedHydratedText(parentNode, text){\n  {\n    if(text===''){\n      // We expect to insert empty text nodes since they're not represented in\n      // the HTML.\n      // TODO: Remove this special case if we can just avoid inserting empty\n      // text nodes.\n      return;\n    }\n\n    if(didWarnInvalidHydration){\n      return;\n    }\n\n    didWarnInvalidHydration=true;\n\n    error('Expected server HTML to contain a matching text node for \"%s\" in <%s>.', text, parentNode.nodeName.toLowerCase());\n  }\n}\nfunction restoreControlledState$3(domElement, tag, props){\n  switch (tag){\n    case 'input':\n      restoreControlledState(domElement, props);\n      return;\n\n    case 'textarea':\n      restoreControlledState$2(domElement, props);\n      return;\n\n    case 'select':\n      restoreControlledState$1(domElement, props);\n      return;\n  }\n}\n\nfunction getActiveElement(doc){\n  doc=doc||(typeof document!=='undefined' ? document:undefined);\n\n  if(typeof doc==='undefined'){\n    return null;\n  }\n\n  try {\n    return doc.activeElement||doc.body;\n  } catch (e){\n    return doc.body;\n  }\n}\n\n\n\nfunction getLeafNode(node){\n  while (node&&node.firstChild){\n    node=node.firstChild;\n  }\n\n  return node;\n}\n\n\n\nfunction getSiblingNode(node){\n  while (node){\n    if(node.nextSibling){\n      return node.nextSibling;\n    }\n\n    node=node.parentNode;\n  }\n}\n\n\n\nfunction getNodeForCharacterOffset(root, offset){\n  var node=getLeafNode(root);\n  var nodeStart=0;\n  var nodeEnd=0;\n\n  while (node){\n    if(node.nodeType===TEXT_NODE){\n      nodeEnd=nodeStart + node.textContent.length;\n\n      if(nodeStart <=offset&&nodeEnd >=offset){\n        return {\n          node: node,\n          offset: offset - nodeStart\n        };\n      }\n\n      nodeStart=nodeEnd;\n    }\n\n    node=getLeafNode(getSiblingNode(node));\n  }\n}\n\n\n\nfunction getOffsets(outerNode){\n  var ownerDocument=outerNode.ownerDocument;\n  var win=ownerDocument&&ownerDocument.defaultView||window;\n  var selection=win.getSelection&&win.getSelection();\n\n  if(!selection||selection.rangeCount===0){\n    return null;\n  }\n\n  var anchorNode=selection.anchorNode,\n      anchorOffset=selection.anchorOffset,\n      focusNode=selection.focusNode,\n      focusOffset=selection.focusOffset; // In Firefox, anchorNode and focusNode can be \"anonymous divs\", e.g. the\n  // up/down buttons on an <input type=\"number\">. Anonymous divs do not seem to\n  // expose properties, triggering a \"Permission denied error\" if any of its\n  // properties are accessed. The only seemingly possible way to avoid erroring\n  // is to access a property that typically works for non-anonymous divs and\n  // catch any error that may otherwise arise. See\n  // https://bugzilla.mozilla.org/show_bug.cgi?id=208427\n\n  try {\n    \n    anchorNode.nodeType;\n    focusNode.nodeType;\n    \n  } catch (e){\n    return null;\n  }\n\n  return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);\n}\n\n\nfunction getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset){\n  var length=0;\n  var start=-1;\n  var end=-1;\n  var indexWithinAnchor=0;\n  var indexWithinFocus=0;\n  var node=outerNode;\n  var parentNode=null;\n\n  outer: while (true){\n    var next=null;\n\n    while (true){\n      if(node===anchorNode&&(anchorOffset===0||node.nodeType===TEXT_NODE)){\n        start=length + anchorOffset;\n      }\n\n      if(node===focusNode&&(focusOffset===0||node.nodeType===TEXT_NODE)){\n        end=length + focusOffset;\n      }\n\n      if(node.nodeType===TEXT_NODE){\n        length +=node.nodeValue.length;\n      }\n\n      if((next=node.firstChild)===null){\n        break;\n      } // Moving from `node` to its first child `next`.\n\n\n      parentNode=node;\n      node=next;\n    }\n\n    while (true){\n      if(node===outerNode){\n        // If `outerNode` has children, this is always the second time visiting\n        // it. If it has no children, this is still the first loop, and the only\n        // valid selection is anchorNode and focusNode both equal to this node\n        // and both offsets 0, in which case we will have handled above.\n        break outer;\n      }\n\n      if(parentNode===anchorNode&&++indexWithinAnchor===anchorOffset){\n        start=length;\n      }\n\n      if(parentNode===focusNode&&++indexWithinFocus===focusOffset){\n        end=length;\n      }\n\n      if((next=node.nextSibling)!==null){\n        break;\n      }\n\n      node=parentNode;\n      parentNode=node.parentNode;\n    } // Moving from `node` to its next sibling `next`.\n\n\n    node=next;\n  }\n\n  if(start===-1||end===-1){\n    // This should never happen. (Would happen if the anchor/focus nodes aren't\n    // actually inside the passed-in node.)\n    return null;\n  }\n\n  return {\n    start: start,\n    end: end\n  };\n}\n\n\nfunction setOffsets(node, offsets){\n  var doc=node.ownerDocument||document;\n  var win=doc&&doc.defaultView||window; // Edge fails with \"Object expected\" in some scenarios.\n  // (For instance: TinyMCE editor used in a list component that supports pasting to add more,\n  // fails when pasting 100+ items)\n\n  if(!win.getSelection){\n    return;\n  }\n\n  var selection=win.getSelection();\n  var length=node.textContent.length;\n  var start=Math.min(offsets.start, length);\n  var end=offsets.end===undefined ? start:Math.min(offsets.end, length); // IE 11 uses modern selection, but doesn't support the extend method.\n  // Flip backward selections, so we can set with a single range.\n\n  if(!selection.extend&&start > end){\n    var temp=end;\n    end=start;\n    start=temp;\n  }\n\n  var startMarker=getNodeForCharacterOffset(node, start);\n  var endMarker=getNodeForCharacterOffset(node, end);\n\n  if(startMarker&&endMarker){\n    if(selection.rangeCount===1&&selection.anchorNode===startMarker.node&&selection.anchorOffset===startMarker.offset&&selection.focusNode===endMarker.node&&selection.focusOffset===endMarker.offset){\n      return;\n    }\n\n    var range=doc.createRange();\n    range.setStart(startMarker.node, startMarker.offset);\n    selection.removeAllRanges();\n\n    if(start > end){\n      selection.addRange(range);\n      selection.extend(endMarker.node, endMarker.offset);\n    }else{\n      range.setEnd(endMarker.node, endMarker.offset);\n      selection.addRange(range);\n    }\n  }\n}\n\nfunction isTextNode(node){\n  return node&&node.nodeType===TEXT_NODE;\n}\n\nfunction containsNode(outerNode, innerNode){\n  if(!outerNode||!innerNode){\n    return false;\n  }else if(outerNode===innerNode){\n    return true;\n  }else if(isTextNode(outerNode)){\n    return false;\n  }else if(isTextNode(innerNode)){\n    return containsNode(outerNode, innerNode.parentNode);\n  }else if('contains' in outerNode){\n    return outerNode.contains(innerNode);\n  }else if(outerNode.compareDocumentPosition){\n    return !!(outerNode.compareDocumentPosition(innerNode) & 16);\n  }else{\n    return false;\n  }\n}\n\nfunction isInDocument(node){\n  return node&&node.ownerDocument&&containsNode(node.ownerDocument.documentElement, node);\n}\n\nfunction isSameOriginFrame(iframe){\n  try {\n    // Accessing the contentDocument of a HTMLIframeElement can cause the browser\n    // to throw, e.g. if it has a cross-origin src attribute.\n    // Safari will show an error in the console when the access results in \"Blocked a frame with origin\". e.g:\n    // iframe.contentDocument.defaultView;\n    // A safety way is to access one of the cross origin properties: Window or Location\n    // Which might result in \"SecurityError\" DOM Exception and it is compatible to Safari.\n    // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl\n    return typeof iframe.contentWindow.location.href==='string';\n  } catch (err){\n    return false;\n  }\n}\n\nfunction getActiveElementDeep(){\n  var win=window;\n  var element=getActiveElement();\n\n  while (element instanceof win.HTMLIFrameElement){\n    if(isSameOriginFrame(element)){\n      win=element.contentWindow;\n    }else{\n      return element;\n    }\n\n    element=getActiveElement(win.document);\n  }\n\n  return element;\n}\n\n\n\n\n\nfunction hasSelectionCapabilities(elem){\n  var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();\n  return nodeName&&(nodeName==='input'&&(elem.type==='text'||elem.type==='search'||elem.type==='tel'||elem.type==='url'||elem.type==='password')||nodeName==='textarea'||elem.contentEditable==='true');\n}\nfunction getSelectionInformation(){\n  var focusedElem=getActiveElementDeep();\n  return {\n    // Used by Flare\n    activeElementDetached: null,\n    focusedElem: focusedElem,\n    selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem):null\n  };\n}\n\n\nfunction restoreSelection(priorSelectionInformation){\n  var curFocusedElem=getActiveElementDeep();\n  var priorFocusedElem=priorSelectionInformation.focusedElem;\n  var priorSelectionRange=priorSelectionInformation.selectionRange;\n\n  if(curFocusedElem!==priorFocusedElem&&isInDocument(priorFocusedElem)){\n    if(priorSelectionRange!==null&&hasSelectionCapabilities(priorFocusedElem)){\n      setSelection(priorFocusedElem, priorSelectionRange);\n    } // Focusing a node can change the scroll position, which is undesirable\n\n\n    var ancestors=[];\n    var ancestor=priorFocusedElem;\n\n    while (ancestor=ancestor.parentNode){\n      if(ancestor.nodeType===ELEMENT_NODE){\n        ancestors.push({\n          element: ancestor,\n          left: ancestor.scrollLeft,\n          top: ancestor.scrollTop\n        });\n      }\n    }\n\n    if(typeof priorFocusedElem.focus==='function'){\n      priorFocusedElem.focus();\n    }\n\n    for (var i=0; i < ancestors.length; i++){\n      var info=ancestors[i];\n      info.element.scrollLeft=info.left;\n      info.element.scrollTop=info.top;\n    }\n  }\n}\n\n\nfunction getSelection(input){\n  var selection;\n\n  if('selectionStart' in input){\n    // Modern browser with input or textarea.\n    selection={\n      start: input.selectionStart,\n      end: input.selectionEnd\n    };\n  }else{\n    // Content editable or old IE textarea.\n    selection=getOffsets(input);\n  }\n\n  return selection||{\n    start: 0,\n    end: 0\n  };\n}\n\n\nfunction setSelection(input, offsets){\n  var start=offsets.start,\n      end=offsets.end;\n\n  if(end===undefined){\n    end=start;\n  }\n\n  if('selectionStart' in input){\n    input.selectionStart=start;\n    input.selectionEnd=Math.min(end, input.value.length);\n  }else{\n    setOffsets(input, offsets);\n  }\n}\n\nvar validateDOMNesting=function (){};\n\nvar updatedAncestorInfo=function (){};\n\n{\n  // This validation code was written based on the HTML5 parsing spec:\n  // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n  //\n  // Note: this does not catch all invalid nesting, nor does it try to (as it's\n  // not clear what practical benefit doing so provides); instead, we warn only\n  // for cases where the parser will give a parse tree differing from what React\n  // intended. For example, <b><div></div></b> is invalid but we don't warn\n  // because it still parses correctly; we do warn for other cases like nested\n  // <p> tags where the beginning of the second element implicitly closes the\n  // first, causing a confusing mess.\n  // https://html.spec.whatwg.org/multipage/syntax.html#special\n  var specialTags=['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope\n\n  var inScopeTags=['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template', // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point\n  // TODO: Distinguish by namespace here -- for <title>, including it here\n  // errs on the side of fewer warnings\n  'foreignObject', 'desc', 'title']; // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope\n\n  var buttonScopeTags=inScopeTags.concat(['button']); // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags\n\n  var impliedEndTags=['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];\n  var emptyAncestorInfo={\n    current: null,\n    formTag: null,\n    aTagInScope: null,\n    buttonTagInScope: null,\n    nobrTagInScope: null,\n    pTagInButtonScope: null,\n    listItemTagAutoclosing: null,\n    dlItemTagAutoclosing: null\n  };\n\n  updatedAncestorInfo=function (oldInfo, tag){\n    var ancestorInfo=_assign({}, oldInfo||emptyAncestorInfo);\n\n    var info={\n      tag: tag\n    };\n\n    if(inScopeTags.indexOf(tag)!==-1){\n      ancestorInfo.aTagInScope=null;\n      ancestorInfo.buttonTagInScope=null;\n      ancestorInfo.nobrTagInScope=null;\n    }\n\n    if(buttonScopeTags.indexOf(tag)!==-1){\n      ancestorInfo.pTagInButtonScope=null;\n    } // See rules for 'li', 'dd', 'dt' start tags in\n    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n\n\n    if(specialTags.indexOf(tag)!==-1&&tag!=='address'&&tag!=='div'&&tag!=='p'){\n      ancestorInfo.listItemTagAutoclosing=null;\n      ancestorInfo.dlItemTagAutoclosing=null;\n    }\n\n    ancestorInfo.current=info;\n\n    if(tag==='form'){\n      ancestorInfo.formTag=info;\n    }\n\n    if(tag==='a'){\n      ancestorInfo.aTagInScope=info;\n    }\n\n    if(tag==='button'){\n      ancestorInfo.buttonTagInScope=info;\n    }\n\n    if(tag==='nobr'){\n      ancestorInfo.nobrTagInScope=info;\n    }\n\n    if(tag==='p'){\n      ancestorInfo.pTagInButtonScope=info;\n    }\n\n    if(tag==='li'){\n      ancestorInfo.listItemTagAutoclosing=info;\n    }\n\n    if(tag==='dd'||tag==='dt'){\n      ancestorInfo.dlItemTagAutoclosing=info;\n    }\n\n    return ancestorInfo;\n  };\n  \n\n\n  var isTagValidWithParent=function (tag, parentTag){\n    // First, let's check if we're in an unusual parsing mode...\n    switch (parentTag){\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect\n      case 'select':\n        return tag==='option'||tag==='optgroup'||tag==='#text';\n\n      case 'optgroup':\n        return tag==='option'||tag==='#text';\n      // Strictly speaking, seeing an <option> doesn't mean we're in a <select>\n      // but\n\n      case 'option':\n        return tag==='#text';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption\n      // No special behavior since these rules fall back to \"in body\" mode for\n      // all except special table nodes which cause bad parsing behavior anyway.\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr\n\n      case 'tr':\n        return tag==='th'||tag==='td'||tag==='style'||tag==='script'||tag==='template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody\n\n      case 'tbody':\n      case 'thead':\n      case 'tfoot':\n        return tag==='tr'||tag==='style'||tag==='script'||tag==='template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup\n\n      case 'colgroup':\n        return tag==='col'||tag==='template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable\n\n      case 'table':\n        return tag==='caption'||tag==='colgroup'||tag==='tbody'||tag==='tfoot'||tag==='thead'||tag==='style'||tag==='script'||tag==='template';\n      // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead\n\n      case 'head':\n        return tag==='base'||tag==='basefont'||tag==='bgsound'||tag==='link'||tag==='meta'||tag==='title'||tag==='noscript'||tag==='noframes'||tag==='style'||tag==='script'||tag==='template';\n      // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element\n\n      case 'html':\n        return tag==='head'||tag==='body'||tag==='frameset';\n\n      case 'frameset':\n        return tag==='frame';\n\n      case '#document':\n        return tag==='html';\n    } // Probably in the \"in body\" parsing mode, so we outlaw only tag combos\n    // where the parsing rules cause implicit opens or closes to be added.\n    // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody\n\n\n    switch (tag){\n      case 'h1':\n      case 'h2':\n      case 'h3':\n      case 'h4':\n      case 'h5':\n      case 'h6':\n        return parentTag!=='h1'&&parentTag!=='h2'&&parentTag!=='h3'&&parentTag!=='h4'&&parentTag!=='h5'&&parentTag!=='h6';\n\n      case 'rp':\n      case 'rt':\n        return impliedEndTags.indexOf(parentTag)===-1;\n\n      case 'body':\n      case 'caption':\n      case 'col':\n      case 'colgroup':\n      case 'frameset':\n      case 'frame':\n      case 'head':\n      case 'html':\n      case 'tbody':\n      case 'td':\n      case 'tfoot':\n      case 'th':\n      case 'thead':\n      case 'tr':\n        // These tags are only valid with a few parents that have special child\n        // parsing rules -- if we're down here, then none of those matched and\n        // so we allow it only if we don't know what the parent is, as all other\n        // cases are invalid.\n        return parentTag==null;\n    }\n\n    return true;\n  };\n  \n\n\n  var findInvalidAncestorForTag=function (tag, ancestorInfo){\n    switch (tag){\n      case 'address':\n      case 'article':\n      case 'aside':\n      case 'blockquote':\n      case 'center':\n      case 'details':\n      case 'dialog':\n      case 'dir':\n      case 'div':\n      case 'dl':\n      case 'fieldset':\n      case 'figcaption':\n      case 'figure':\n      case 'footer':\n      case 'header':\n      case 'hgroup':\n      case 'main':\n      case 'menu':\n      case 'nav':\n      case 'ol':\n      case 'p':\n      case 'section':\n      case 'summary':\n      case 'ul':\n      case 'pre':\n      case 'listing':\n      case 'table':\n      case 'hr':\n      case 'xmp':\n      case 'h1':\n      case 'h2':\n      case 'h3':\n      case 'h4':\n      case 'h5':\n      case 'h6':\n        return ancestorInfo.pTagInButtonScope;\n\n      case 'form':\n        return ancestorInfo.formTag||ancestorInfo.pTagInButtonScope;\n\n      case 'li':\n        return ancestorInfo.listItemTagAutoclosing;\n\n      case 'dd':\n      case 'dt':\n        return ancestorInfo.dlItemTagAutoclosing;\n\n      case 'button':\n        return ancestorInfo.buttonTagInScope;\n\n      case 'a':\n        // Spec says something about storing a list of markers, but it sounds\n        // equivalent to this check.\n        return ancestorInfo.aTagInScope;\n\n      case 'nobr':\n        return ancestorInfo.nobrTagInScope;\n    }\n\n    return null;\n  };\n\n  var didWarn$1={};\n\n  validateDOMNesting=function (childTag, childText, ancestorInfo){\n    ancestorInfo=ancestorInfo||emptyAncestorInfo;\n    var parentInfo=ancestorInfo.current;\n    var parentTag=parentInfo&&parentInfo.tag;\n\n    if(childText!=null){\n      if(childTag!=null){\n        error('validateDOMNesting: when childText is passed, childTag should be null');\n      }\n\n      childTag='#text';\n    }\n\n    var invalidParent=isTagValidWithParent(childTag, parentTag) ? null:parentInfo;\n    var invalidAncestor=invalidParent ? null:findInvalidAncestorForTag(childTag, ancestorInfo);\n    var invalidParentOrAncestor=invalidParent||invalidAncestor;\n\n    if(!invalidParentOrAncestor){\n      return;\n    }\n\n    var ancestorTag=invalidParentOrAncestor.tag;\n    var addendum=getCurrentFiberStackInDev();\n    var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;\n\n    if(didWarn$1[warnKey]){\n      return;\n    }\n\n    didWarn$1[warnKey]=true;\n    var tagDisplayName=childTag;\n    var whitespaceInfo='';\n\n    if(childTag==='#text'){\n      if(/\\S/.test(childText)){\n        tagDisplayName='Text nodes';\n      }else{\n        tagDisplayName='Whitespace text nodes';\n        whitespaceInfo=\" Make sure you don't have any extra whitespace between tags on \" + 'each line of your source code.';\n      }\n    }else{\n      tagDisplayName='<' + childTag + '>';\n    }\n\n    if(invalidParent){\n      var info='';\n\n      if(ancestorTag==='table'&&childTag==='tr'){\n        info +=' Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by ' + 'the browser.';\n      }\n\n      error('validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info);\n    }else{\n      error('validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.', tagDisplayName, ancestorTag);\n    }\n  };\n}\n\nvar SUPPRESS_HYDRATION_WARNING$1;\n\n{\n  SUPPRESS_HYDRATION_WARNING$1='suppressHydrationWarning';\n}\n\nvar SUSPENSE_START_DATA='$';\nvar SUSPENSE_END_DATA='/$';\nvar SUSPENSE_PENDING_START_DATA='$?';\nvar SUSPENSE_FALLBACK_START_DATA='$!';\nvar STYLE$1='style';\nvar eventsEnabled=null;\nvar selectionInformation=null;\n\nfunction shouldAutoFocusHostComponent(type, props){\n  switch (type){\n    case 'button':\n    case 'input':\n    case 'select':\n    case 'textarea':\n      return !!props.autoFocus;\n  }\n\n  return false;\n}\nfunction getRootHostContext(rootContainerInstance){\n  var type;\n  var namespace;\n  var nodeType=rootContainerInstance.nodeType;\n\n  switch (nodeType){\n    case DOCUMENT_NODE:\n    case DOCUMENT_FRAGMENT_NODE:\n      {\n        type=nodeType===DOCUMENT_NODE ? '#document':'#fragment';\n        var root=rootContainerInstance.documentElement;\n        namespace=root ? root.namespaceURI:getChildNamespace(null, '');\n        break;\n      }\n\n    default:\n      {\n        var container=nodeType===COMMENT_NODE ? rootContainerInstance.parentNode:rootContainerInstance;\n        var ownNamespace=container.namespaceURI||null;\n        type=container.tagName;\n        namespace=getChildNamespace(ownNamespace, type);\n        break;\n      }\n  }\n\n  {\n    var validatedTag=type.toLowerCase();\n    var ancestorInfo=updatedAncestorInfo(null, validatedTag);\n    return {\n      namespace: namespace,\n      ancestorInfo: ancestorInfo\n    };\n  }\n}\nfunction getChildHostContext(parentHostContext, type, rootContainerInstance){\n  {\n    var parentHostContextDev=parentHostContext;\n    var namespace=getChildNamespace(parentHostContextDev.namespace, type);\n    var ancestorInfo=updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);\n    return {\n      namespace: namespace,\n      ancestorInfo: ancestorInfo\n    };\n  }\n}\nfunction getPublicInstance(instance){\n  return instance;\n}\nfunction prepareForCommit(containerInfo){\n  eventsEnabled=isEnabled();\n  selectionInformation=getSelectionInformation();\n  setEnabled(false);\n}\nfunction resetAfterCommit(containerInfo){\n  restoreSelection(selectionInformation);\n  setEnabled(eventsEnabled);\n  eventsEnabled=null;\n\n  selectionInformation=null;\n}\nfunction createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle){\n  var parentNamespace;\n\n  {\n    // TODO: take namespace into account when validating.\n    var hostContextDev=hostContext;\n    validateDOMNesting(type, null, hostContextDev.ancestorInfo);\n\n    if(typeof props.children==='string'||typeof props.children==='number'){\n      var string='' + props.children;\n      var ownAncestorInfo=updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n      validateDOMNesting(null, string, ownAncestorInfo);\n    }\n\n    parentNamespace=hostContextDev.namespace;\n  }\n\n  var domElement=createElement(type, props, rootContainerInstance, parentNamespace);\n  precacheFiberNode(internalInstanceHandle, domElement);\n  updateFiberProps(domElement, props);\n  return domElement;\n}\nfunction appendInitialChild(parentInstance, child){\n  parentInstance.appendChild(child);\n}\nfunction finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext){\n  setInitialProperties(domElement, type, props, rootContainerInstance);\n  return shouldAutoFocusHostComponent(type, props);\n}\nfunction prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext){\n  {\n    var hostContextDev=hostContext;\n\n    if(typeof newProps.children!==typeof oldProps.children&&(typeof newProps.children==='string'||typeof newProps.children==='number')){\n      var string='' + newProps.children;\n      var ownAncestorInfo=updatedAncestorInfo(hostContextDev.ancestorInfo, type);\n      validateDOMNesting(null, string, ownAncestorInfo);\n    }\n  }\n\n  return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);\n}\nfunction shouldSetTextContent(type, props){\n  return type==='textarea'||type==='option'||type==='noscript'||typeof props.children==='string'||typeof props.children==='number'||typeof props.dangerouslySetInnerHTML==='object'&&props.dangerouslySetInnerHTML!==null&&props.dangerouslySetInnerHTML.__html!=null;\n}\nfunction shouldDeprioritizeSubtree(type, props){\n  return !!props.hidden;\n}\nfunction createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle){\n  {\n    var hostContextDev=hostContext;\n    validateDOMNesting(null, text, hostContextDev.ancestorInfo);\n  }\n\n  var textNode=createTextNode(text, rootContainerInstance);\n  precacheFiberNode(internalInstanceHandle, textNode);\n  return textNode;\n}\n// if a component just imports ReactDOM (e.g. for findDOMNode).\n// Some environments might not have setTimeout or clearTimeout.\n\nvar scheduleTimeout=typeof setTimeout==='function' ? setTimeout:undefined;\nvar cancelTimeout=typeof clearTimeout==='function' ? clearTimeout:undefined;\nvar noTimeout=-1; // -------------------\nfunction commitMount(domElement, type, newProps, internalInstanceHandle){\n  // Despite the naming that might imply otherwise, this method only\n  // fires if there is an `Update` effect scheduled during mounting.\n  // This happens if `finalizeInitialChildren` returns `true` (which it\n  // does to implement the `autoFocus` attribute on the client). But\n  // there are also other cases when this might happen (such as patching\n  // up text content during hydration mismatch). So we'll check this again.\n  if(shouldAutoFocusHostComponent(type, newProps)){\n    domElement.focus();\n  }\n}\nfunction commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle){\n  // Update the props handle so that we know which props are the ones with\n  // with current event handlers.\n  updateFiberProps(domElement, newProps); // Apply the diff to the DOM node.\n\n  updateProperties(domElement, updatePayload, type, oldProps, newProps);\n}\nfunction resetTextContent(domElement){\n  setTextContent(domElement, '');\n}\nfunction commitTextUpdate(textInstance, oldText, newText){\n  textInstance.nodeValue=newText;\n}\nfunction appendChild(parentInstance, child){\n  parentInstance.appendChild(child);\n}\nfunction appendChildToContainer(container, child){\n  var parentNode;\n\n  if(container.nodeType===COMMENT_NODE){\n    parentNode=container.parentNode;\n    parentNode.insertBefore(child, container);\n  }else{\n    parentNode=container;\n    parentNode.appendChild(child);\n  } // This container might be used for a portal.\n  // If something inside a portal is clicked, that click should bubble\n  // through the React tree. However, on Mobile Safari the click would\n  // never bubble through the *DOM* tree unless an ancestor with onclick\n  // event exists. So we wouldn't see it and dispatch it.\n  // This is why we ensure that non React root containers have inline onclick\n  // defined.\n  // https://github.com/facebook/react/issues/11918\n\n\n  var reactRootContainer=container._reactRootContainer;\n\n  if((reactRootContainer===null||reactRootContainer===undefined)&&parentNode.onclick===null){\n    // TODO: This cast may not be sound for SVG, MathML or custom elements.\n    trapClickOnNonInteractiveElement(parentNode);\n  }\n}\nfunction insertBefore(parentInstance, child, beforeChild){\n  parentInstance.insertBefore(child, beforeChild);\n}\nfunction insertInContainerBefore(container, child, beforeChild){\n  if(container.nodeType===COMMENT_NODE){\n    container.parentNode.insertBefore(child, beforeChild);\n  }else{\n    container.insertBefore(child, beforeChild);\n  }\n}\nfunction removeChild(parentInstance, child){\n  parentInstance.removeChild(child);\n}\nfunction removeChildFromContainer(container, child){\n  if(container.nodeType===COMMENT_NODE){\n    container.parentNode.removeChild(child);\n  }else{\n    container.removeChild(child);\n  }\n}\n\nfunction hideInstance(instance){\n  // pass host context to this method?\n\n\n  instance=instance;\n  var style=instance.style;\n\n  if(typeof style.setProperty==='function'){\n    style.setProperty('display', 'none', 'important');\n  }else{\n    style.display='none';\n  }\n}\nfunction hideTextInstance(textInstance){\n  textInstance.nodeValue='';\n}\nfunction unhideInstance(instance, props){\n  instance=instance;\n  var styleProp=props[STYLE$1];\n  var display=styleProp!==undefined&&styleProp!==null&&styleProp.hasOwnProperty('display') ? styleProp.display:null;\n  instance.style.display=dangerousStyleValue('display', display);\n}\nfunction unhideTextInstance(textInstance, text){\n  textInstance.nodeValue=text;\n} // -------------------\nfunction canHydrateInstance(instance, type, props){\n  if(instance.nodeType!==ELEMENT_NODE||type.toLowerCase()!==instance.nodeName.toLowerCase()){\n    return null;\n  } // This has now been refined to an element node.\n\n\n  return instance;\n}\nfunction canHydrateTextInstance(instance, text){\n  if(text===''||instance.nodeType!==TEXT_NODE){\n    // Empty strings are not parsed by HTML so there won't be a correct match here.\n    return null;\n  } // This has now been refined to a text node.\n\n\n  return instance;\n}\nfunction isSuspenseInstancePending(instance){\n  return instance.data===SUSPENSE_PENDING_START_DATA;\n}\nfunction isSuspenseInstanceFallback(instance){\n  return instance.data===SUSPENSE_FALLBACK_START_DATA;\n}\n\nfunction getNextHydratable(node){\n  // Skip non-hydratable nodes.\n  for (; node!=null; node=node.nextSibling){\n    var nodeType=node.nodeType;\n\n    if(nodeType===ELEMENT_NODE||nodeType===TEXT_NODE){\n      break;\n    }\n  }\n\n  return node;\n}\n\nfunction getNextHydratableSibling(instance){\n  return getNextHydratable(instance.nextSibling);\n}\nfunction getFirstHydratableChild(parentInstance){\n  return getNextHydratable(parentInstance.firstChild);\n}\nfunction hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle){\n  precacheFiberNode(internalInstanceHandle, instance); // TODO: Possibly defer this until the commit phase where all the events\n  // get attached.\n\n  updateFiberProps(instance, props);\n  var parentNamespace;\n\n  {\n    var hostContextDev=hostContext;\n    parentNamespace=hostContextDev.namespace;\n  }\n\n  return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);\n}\nfunction hydrateTextInstance(textInstance, text, internalInstanceHandle){\n  precacheFiberNode(internalInstanceHandle, textInstance);\n  return diffHydratedText(textInstance, text);\n}\nfunction getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance){\n  var node=suspenseInstance.nextSibling; // Skip past all nodes within this suspense boundary.\n  // There might be nested nodes so we need to keep track of how\n  // deep we are and only break out when we're back on top.\n\n  var depth=0;\n\n  while (node){\n    if(node.nodeType===COMMENT_NODE){\n      var data=node.data;\n\n      if(data===SUSPENSE_END_DATA){\n        if(depth===0){\n          return getNextHydratableSibling(node);\n        }else{\n          depth--;\n        }\n      }else if(data===SUSPENSE_START_DATA||data===SUSPENSE_FALLBACK_START_DATA||data===SUSPENSE_PENDING_START_DATA){\n        depth++;\n      }\n    }\n\n    node=node.nextSibling;\n  } // TODO: Warn, we didn't find the end comment boundary.\n\n\n  return null;\n} // Returns the SuspenseInstance if this node is a direct child of a\n// SuspenseInstance. I.e. if its previous sibling is a Comment with\n// SUSPENSE_x_START_DATA. Otherwise, null.\n\nfunction getParentSuspenseInstance(targetInstance){\n  var node=targetInstance.previousSibling; // Skip past all nodes within this suspense boundary.\n  // There might be nested nodes so we need to keep track of how\n  // deep we are and only break out when we're back on top.\n\n  var depth=0;\n\n  while (node){\n    if(node.nodeType===COMMENT_NODE){\n      var data=node.data;\n\n      if(data===SUSPENSE_START_DATA||data===SUSPENSE_FALLBACK_START_DATA||data===SUSPENSE_PENDING_START_DATA){\n        if(depth===0){\n          return node;\n        }else{\n          depth--;\n        }\n      }else if(data===SUSPENSE_END_DATA){\n        depth++;\n      }\n    }\n\n    node=node.previousSibling;\n  }\n\n  return null;\n}\nfunction commitHydratedContainer(container){\n  // Retry if any event replaying was blocked on this.\n  retryIfBlockedOn(container);\n}\nfunction commitHydratedSuspenseInstance(suspenseInstance){\n  // Retry if any event replaying was blocked on this.\n  retryIfBlockedOn(suspenseInstance);\n}\nfunction didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text){\n  {\n    warnForUnmatchedText(textInstance, text);\n  }\n}\nfunction didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text){\n  if(parentProps[SUPPRESS_HYDRATION_WARNING$1]!==true){\n    warnForUnmatchedText(textInstance, text);\n  }\n}\nfunction didNotHydrateContainerInstance(parentContainer, instance){\n  {\n    if(instance.nodeType===ELEMENT_NODE){\n      warnForDeletedHydratableElement(parentContainer, instance);\n    }else if(instance.nodeType===COMMENT_NODE) ; else {\n      warnForDeletedHydratableText(parentContainer, instance);\n    }\n  }\n}\nfunction didNotHydrateInstance(parentType, parentProps, parentInstance, instance){\n  if(parentProps[SUPPRESS_HYDRATION_WARNING$1]!==true){\n    if(instance.nodeType===ELEMENT_NODE){\n      warnForDeletedHydratableElement(parentInstance, instance);\n    }else if(instance.nodeType===COMMENT_NODE) ; else {\n      warnForDeletedHydratableText(parentInstance, instance);\n    }\n  }\n}\nfunction didNotFindHydratableContainerInstance(parentContainer, type, props){\n  {\n    warnForInsertedHydratedElement(parentContainer, type);\n  }\n}\nfunction didNotFindHydratableContainerTextInstance(parentContainer, text){\n  {\n    warnForInsertedHydratedText(parentContainer, text);\n  }\n}\nfunction didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props){\n  if(parentProps[SUPPRESS_HYDRATION_WARNING$1]!==true){\n    warnForInsertedHydratedElement(parentInstance, type);\n  }\n}\nfunction didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text){\n  if(parentProps[SUPPRESS_HYDRATION_WARNING$1]!==true){\n    warnForInsertedHydratedText(parentInstance, text);\n  }\n}\nfunction didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance){\n  if(parentProps[SUPPRESS_HYDRATION_WARNING$1]!==true) ;\n}\n\nvar randomKey=Math.random().toString(36).slice(2);\nvar internalInstanceKey='__reactInternalInstance$' + randomKey;\nvar internalEventHandlersKey='__reactEventHandlers$' + randomKey;\nvar internalContainerInstanceKey='__reactContainere$' + randomKey;\nfunction precacheFiberNode(hostInst, node){\n  node[internalInstanceKey]=hostInst;\n}\nfunction markContainerAsRoot(hostRoot, node){\n  node[internalContainerInstanceKey]=hostRoot;\n}\nfunction unmarkContainerAsRoot(node){\n  node[internalContainerInstanceKey]=null;\n}\nfunction isContainerMarkedAsRoot(node){\n  return !!node[internalContainerInstanceKey];\n} // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.\n// If the target node is part of a hydrated or not yet rendered subtree, then\n// this may also return a SuspenseComponent or HostRoot to indicate that.\n// Conceptually the HostRoot fiber is a child of the Container node. So if you\n// pass the Container node as the targetNode, you will not actually get the\n// HostRoot back. To get to the HostRoot, you need to pass a child of it.\n// The same thing applies to Suspense boundaries.\n\nfunction getClosestInstanceFromNode(targetNode){\n  var targetInst=targetNode[internalInstanceKey];\n\n  if(targetInst){\n    // Don't return HostRoot or SuspenseComponent here.\n    return targetInst;\n  } // If the direct event target isn't a React owned DOM node, we need to look\n  // to see if one of its parents is a React owned DOM node.\n\n\n  var parentNode=targetNode.parentNode;\n\n  while (parentNode){\n    // We'll check if this is a container root that could include\n    // React nodes in the future. We need to check this first because\n    // if we're a child of a dehydrated container, we need to first\n    // find that inner container before moving on to finding the parent\n    // instance. Note that we don't check this field on  the targetNode\n    // itself because the fibers are conceptually between the container\n    // node and the first child. It isn't surrounding the container node.\n    // If it's not a container, we check if it's an instance.\n    targetInst=parentNode[internalContainerInstanceKey]||parentNode[internalInstanceKey];\n\n    if(targetInst){\n      // Since this wasn't the direct target of the event, we might have\n      // stepped past dehydrated DOM nodes to get here. However they could\n      // also have been non-React nodes. We need to answer which one.\n      // If we the instance doesn't have any children, then there can't be\n      // a nested suspense boundary within it. So we can use this as a fast\n      // bailout. Most of the time, when people add non-React children to\n      // the tree, it is using a ref to a child-less DOM node.\n      // Normally we'd only need to check one of the fibers because if it\n      // has ever gone from having children to deleting them or vice versa\n      // it would have deleted the dehydrated boundary nested inside already.\n      // However, since the HostRoot starts out with an alternate it might\n      // have one on the alternate so we need to check in case this was a\n      // root.\n      var alternate=targetInst.alternate;\n\n      if(targetInst.child!==null||alternate!==null&&alternate.child!==null){\n        // Next we need to figure out if the node that skipped past is\n        // nested within a dehydrated boundary and if so, which one.\n        var suspenseInstance=getParentSuspenseInstance(targetNode);\n\n        while (suspenseInstance!==null){\n          // We found a suspense instance. That means that we haven't\n          // hydrated it yet. Even though we leave the comments in the\n          // DOM after hydrating, and there are boundaries in the DOM\n          // that could already be hydrated, we wouldn't have found them\n          // through this pass since if the target is hydrated it would\n          // have had an internalInstanceKey on it.\n          // Let's get the fiber associated with the SuspenseComponent\n          // as the deepest instance.\n          var targetSuspenseInst=suspenseInstance[internalInstanceKey];\n\n          if(targetSuspenseInst){\n            return targetSuspenseInst;\n          } // If we don't find a Fiber on the comment, it might be because\n          // we haven't gotten to hydrate it yet. There might still be a\n          // parent boundary that hasn't above this one so we need to find\n          // the outer most that is known.\n\n\n          suspenseInstance=getParentSuspenseInstance(suspenseInstance); // If we don't find one, then that should mean that the parent\n          // host component also hasn't hydrated yet. We can return it\n          // below since it will bail out on the isMounted check later.\n        }\n      }\n\n      return targetInst;\n    }\n\n    targetNode=parentNode;\n    parentNode=targetNode.parentNode;\n  }\n\n  return null;\n}\n\n\nfunction getInstanceFromNode$1(node){\n  var inst=node[internalInstanceKey]||node[internalContainerInstanceKey];\n\n  if(inst){\n    if(inst.tag===HostComponent||inst.tag===HostText||inst.tag===SuspenseComponent||inst.tag===HostRoot){\n      return inst;\n    }else{\n      return null;\n    }\n  }\n\n  return null;\n}\n\n\nfunction getNodeFromInstance$1(inst){\n  if(inst.tag===HostComponent||inst.tag===HostText){\n    // In Fiber this, is just the state node right now. We assume it will be\n    // a host component or host text.\n    return inst.stateNode;\n  } // Without this first invariant, passing a non-DOM-component triggers the next\n  // invariant for a missing parent, which is super confusing.\n\n\n  {\n    {\n      throw Error(\"getNodeFromInstance: Invalid argument.\");\n    }\n  }\n}\nfunction getFiberCurrentPropsFromNode$1(node){\n  return node[internalEventHandlersKey]||null;\n}\nfunction updateFiberProps(node, props){\n  node[internalEventHandlersKey]=props;\n}\n\nfunction getParent(inst){\n  do {\n    inst=inst.return; // TODO: If this is a HostRoot we might want to bail out.\n    // That is depending on if we want nested subtrees (layers) to bubble\n    // events to their parent. We could also go through parentNode on the\n    // host node but that wouldn't work for React Native and doesn't let us\n    // do the portal feature.\n  } while (inst&&inst.tag!==HostComponent);\n\n  if(inst){\n    return inst;\n  }\n\n  return null;\n}\n\n\n\nfunction getLowestCommonAncestor(instA, instB){\n  var depthA=0;\n\n  for (var tempA=instA; tempA; tempA=getParent(tempA)){\n    depthA++;\n  }\n\n  var depthB=0;\n\n  for (var tempB=instB; tempB; tempB=getParent(tempB)){\n    depthB++;\n  } // If A is deeper, crawl up.\n\n\n  while (depthA - depthB > 0){\n    instA=getParent(instA);\n    depthA--;\n  } // If B is deeper, crawl up.\n\n\n  while (depthB - depthA > 0){\n    instB=getParent(instB);\n    depthB--;\n  } // Walk in lockstep until we find a match.\n\n\n  var depth=depthA;\n\n  while (depth--){\n    if(instA===instB||instA===instB.alternate){\n      return instA;\n    }\n\n    instA=getParent(instA);\n    instB=getParent(instB);\n  }\n\n  return null;\n}\n\n\nfunction traverseTwoPhase(inst, fn, arg){\n  var path=[];\n\n  while (inst){\n    path.push(inst);\n    inst=getParent(inst);\n  }\n\n  var i;\n\n  for (i=path.length; i-- > 0;){\n    fn(path[i], 'captured', arg);\n  }\n\n  for (i=0; i < path.length; i++){\n    fn(path[i], 'bubbled', arg);\n  }\n}\n\n\nfunction traverseEnterLeave(from, to, fn, argFrom, argTo){\n  var common=from&&to ? getLowestCommonAncestor(from, to):null;\n  var pathFrom=[];\n\n  while (true){\n    if(!from){\n      break;\n    }\n\n    if(from===common){\n      break;\n    }\n\n    var alternate=from.alternate;\n\n    if(alternate!==null&&alternate===common){\n      break;\n    }\n\n    pathFrom.push(from);\n    from=getParent(from);\n  }\n\n  var pathTo=[];\n\n  while (true){\n    if(!to){\n      break;\n    }\n\n    if(to===common){\n      break;\n    }\n\n    var _alternate=to.alternate;\n\n    if(_alternate!==null&&_alternate===common){\n      break;\n    }\n\n    pathTo.push(to);\n    to=getParent(to);\n  }\n\n  for (var i=0; i < pathFrom.length; i++){\n    fn(pathFrom[i], 'bubbled', argFrom);\n  }\n\n  for (var _i=pathTo.length; _i-- > 0;){\n    fn(pathTo[_i], 'captured', argTo);\n  }\n}\n\nfunction isInteractive(tag){\n  return tag==='button'||tag==='input'||tag==='select'||tag==='textarea';\n}\n\nfunction shouldPreventMouseEvent(name, type, props){\n  switch (name){\n    case 'onClick':\n    case 'onClickCapture':\n    case 'onDoubleClick':\n    case 'onDoubleClickCapture':\n    case 'onMouseDown':\n    case 'onMouseDownCapture':\n    case 'onMouseMove':\n    case 'onMouseMoveCapture':\n    case 'onMouseUp':\n    case 'onMouseUpCapture':\n    case 'onMouseEnter':\n      return !!(props.disabled&&isInteractive(type));\n\n    default:\n      return false;\n  }\n}\n\n\n\nfunction getListener(inst, registrationName){\n  var listener; // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not\n  // live here; needs to be moved to a better place soon\n\n  var stateNode=inst.stateNode;\n\n  if(!stateNode){\n    // Work in progress (ex: onload events in incremental mode).\n    return null;\n  }\n\n  var props=getFiberCurrentPropsFromNode(stateNode);\n\n  if(!props){\n    // Work in progress.\n    return null;\n  }\n\n  listener=props[registrationName];\n\n  if(shouldPreventMouseEvent(registrationName, inst.type, props)){\n    return null;\n  }\n\n  if(!(!listener||typeof listener==='function')){\n    {\n      throw Error(\"Expected `\" + registrationName + \"` listener to be a function, instead got a value of `\" + typeof listener + \"` type.\");\n    }\n  }\n\n  return listener;\n}\n\n\nfunction listenerAtPhase(inst, event, propagationPhase){\n  var registrationName=event.dispatchConfig.phasedRegistrationNames[propagationPhase];\n  return getListener(inst, registrationName);\n}\n\n\n\n\n\nfunction accumulateDirectionalDispatches(inst, phase, event){\n  {\n    if(!inst){\n      error('Dispatching inst must not be null');\n    }\n  }\n\n  var listener=listenerAtPhase(inst, event, phase);\n\n  if(listener){\n    event._dispatchListeners=accumulateInto(event._dispatchListeners, listener);\n    event._dispatchInstances=accumulateInto(event._dispatchInstances, inst);\n  }\n}\n\n\n\nfunction accumulateTwoPhaseDispatchesSingle(event){\n  if(event&&event.dispatchConfig.phasedRegistrationNames){\n    traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n  }\n}\n\n\n\nfunction accumulateDispatches(inst, ignoredDirection, event){\n  if(inst&&event&&event.dispatchConfig.registrationName){\n    var registrationName=event.dispatchConfig.registrationName;\n    var listener=getListener(inst, registrationName);\n\n    if(listener){\n      event._dispatchListeners=accumulateInto(event._dispatchListeners, listener);\n      event._dispatchInstances=accumulateInto(event._dispatchInstances, inst);\n    }\n  }\n}\n\n\n\nfunction accumulateDirectDispatchesSingle(event){\n  if(event&&event.dispatchConfig.registrationName){\n    accumulateDispatches(event._targetInst, null, event);\n  }\n}\n\nfunction accumulateTwoPhaseDispatches(events){\n  forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);\n}\nfunction accumulateEnterLeaveDispatches(leave, enter, from, to){\n  traverseEnterLeave(from, to, accumulateDispatches, leave, enter);\n}\nfunction accumulateDirectDispatches(events){\n  forEachAccumulated(events, accumulateDirectDispatchesSingle);\n}\n\n\nvar root=null;\nvar startText=null;\nvar fallbackText=null;\nfunction initialize(nativeEventTarget){\n  root=nativeEventTarget;\n  startText=getText();\n  return true;\n}\nfunction reset(){\n  root=null;\n  startText=null;\n  fallbackText=null;\n}\nfunction getData(){\n  if(fallbackText){\n    return fallbackText;\n  }\n\n  var start;\n  var startValue=startText;\n  var startLength=startValue.length;\n  var end;\n  var endValue=getText();\n  var endLength=endValue.length;\n\n  for (start=0; start < startLength; start++){\n    if(startValue[start]!==endValue[start]){\n      break;\n    }\n  }\n\n  var minEnd=startLength - start;\n\n  for (end=1; end <=minEnd; end++){\n    if(startValue[startLength - end]!==endValue[endLength - end]){\n      break;\n    }\n  }\n\n  var sliceTail=end > 1 ? 1 - end:undefined;\n  fallbackText=endValue.slice(start, sliceTail);\n  return fallbackText;\n}\nfunction getText(){\n  if('value' in root){\n    return root.value;\n  }\n\n  return root.textContent;\n}\n\nvar EVENT_POOL_SIZE=10;\n\n\nvar EventInterface={\n  type: null,\n  target: null,\n  // currentTarget is set when dispatching; no use in copying it here\n  currentTarget: function (){\n    return null;\n  },\n  eventPhase: null,\n  bubbles: null,\n  cancelable: null,\n  timeStamp: function (event){\n    return event.timeStamp||Date.now();\n  },\n  defaultPrevented: null,\n  isTrusted: null\n};\n\nfunction functionThatReturnsTrue(){\n  return true;\n}\n\nfunction functionThatReturnsFalse(){\n  return false;\n}\n\n\n\nfunction SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget){\n  {\n    // these have a getter/setter for warnings\n    delete this.nativeEvent;\n    delete this.preventDefault;\n    delete this.stopPropagation;\n    delete this.isDefaultPrevented;\n    delete this.isPropagationStopped;\n  }\n\n  this.dispatchConfig=dispatchConfig;\n  this._targetInst=targetInst;\n  this.nativeEvent=nativeEvent;\n  var Interface=this.constructor.Interface;\n\n  for (var propName in Interface){\n    if(!Interface.hasOwnProperty(propName)){\n      continue;\n    }\n\n    {\n      delete this[propName]; // this has a getter/setter for warnings\n    }\n\n    var normalize=Interface[propName];\n\n    if(normalize){\n      this[propName]=normalize(nativeEvent);\n    }else{\n      if(propName==='target'){\n        this.target=nativeEventTarget;\n      }else{\n        this[propName]=nativeEvent[propName];\n      }\n    }\n  }\n\n  var defaultPrevented=nativeEvent.defaultPrevented!=null ? nativeEvent.defaultPrevented:nativeEvent.returnValue===false;\n\n  if(defaultPrevented){\n    this.isDefaultPrevented=functionThatReturnsTrue;\n  }else{\n    this.isDefaultPrevented=functionThatReturnsFalse;\n  }\n\n  this.isPropagationStopped=functionThatReturnsFalse;\n  return this;\n}\n\n_assign(SyntheticEvent.prototype, {\n  preventDefault: function (){\n    this.defaultPrevented=true;\n    var event=this.nativeEvent;\n\n    if(!event){\n      return;\n    }\n\n    if(event.preventDefault){\n      event.preventDefault();\n    }else if(typeof event.returnValue!=='unknown'){\n      event.returnValue=false;\n    }\n\n    this.isDefaultPrevented=functionThatReturnsTrue;\n  },\n  stopPropagation: function (){\n    var event=this.nativeEvent;\n\n    if(!event){\n      return;\n    }\n\n    if(event.stopPropagation){\n      event.stopPropagation();\n    }else if(typeof event.cancelBubble!=='unknown'){\n      // The ChangeEventPlugin registers a \"propertychange\" event for\n      // IE. This event does not support bubbling or cancelling, and\n      // any references to cancelBubble throw \"Member not found\".  A\n      // typeof check of \"unknown\" circumvents this issue (and is also\n      // IE specific).\n      event.cancelBubble=true;\n    }\n\n    this.isPropagationStopped=functionThatReturnsTrue;\n  },\n\n  \n  persist: function (){\n    this.isPersistent=functionThatReturnsTrue;\n  },\n\n  \n  isPersistent: functionThatReturnsFalse,\n\n  \n  destructor: function (){\n    var Interface=this.constructor.Interface;\n\n    for (var propName in Interface){\n      {\n        Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));\n      }\n    }\n\n    this.dispatchConfig=null;\n    this._targetInst=null;\n    this.nativeEvent=null;\n    this.isDefaultPrevented=functionThatReturnsFalse;\n    this.isPropagationStopped=functionThatReturnsFalse;\n    this._dispatchListeners=null;\n    this._dispatchInstances=null;\n\n    {\n      Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));\n      Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));\n      Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));\n      Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function (){}));\n      Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function (){}));\n    }\n  }\n});\n\nSyntheticEvent.Interface=EventInterface;\n\n\nSyntheticEvent.extend=function (Interface){\n  var Super=this;\n\n  var E=function (){};\n\n  E.prototype=Super.prototype;\n  var prototype=new E();\n\n  function Class(){\n    return Super.apply(this, arguments);\n  }\n\n  _assign(prototype, Class.prototype);\n\n  Class.prototype=prototype;\n  Class.prototype.constructor=Class;\n  Class.Interface=_assign({}, Super.Interface, Interface);\n  Class.extend=Super.extend;\n  addEventPoolingTo(Class);\n  return Class;\n};\n\naddEventPoolingTo(SyntheticEvent);\n\n\nfunction getPooledWarningPropertyDefinition(propName, getVal){\n  var isFunction=typeof getVal==='function';\n  return {\n    configurable: true,\n    set: set,\n    get: get\n  };\n\n  function set(val){\n    var action=isFunction ? 'setting the method':'setting the property';\n    warn(action, 'This is effectively a no-op');\n    return val;\n  }\n\n  function get(){\n    var action=isFunction ? 'accessing the method':'accessing the property';\n    var result=isFunction ? 'This is a no-op function':'This is set to null';\n    warn(action, result);\n    return getVal;\n  }\n\n  function warn(action, result){\n    {\n      error(\"This synthetic event is reused for performance reasons. If you're seeing this, \" + \"you're %s `%s` on a released/nullified synthetic event. %s. \" + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result);\n    }\n  }\n}\n\nfunction getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst){\n  var EventConstructor=this;\n\n  if(EventConstructor.eventPool.length){\n    var instance=EventConstructor.eventPool.pop();\n    EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);\n    return instance;\n  }\n\n  return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);\n}\n\nfunction releasePooledEvent(event){\n  var EventConstructor=this;\n\n  if(!(event instanceof EventConstructor)){\n    {\n      throw Error(\"Trying to release an event instance into a pool of a different type.\");\n    }\n  }\n\n  event.destructor();\n\n  if(EventConstructor.eventPool.length < EVENT_POOL_SIZE){\n    EventConstructor.eventPool.push(event);\n  }\n}\n\nfunction addEventPoolingTo(EventConstructor){\n  EventConstructor.eventPool=[];\n  EventConstructor.getPooled=getPooledEvent;\n  EventConstructor.release=releasePooledEvent;\n}\n\n\n\nvar SyntheticCompositionEvent=SyntheticEvent.extend({\n  data: null\n});\n\n\n\nvar SyntheticInputEvent=SyntheticEvent.extend({\n  data: null\n});\n\nvar END_KEYCODES=[9, 13, 27, 32]; // Tab, Return, Esc, Space\n\nvar START_KEYCODE=229;\nvar canUseCompositionEvent=canUseDOM&&'CompositionEvent' in window;\nvar documentMode=null;\n\nif(canUseDOM&&'documentMode' in document){\n  documentMode=document.documentMode;\n} // Webkit offers a very useful `textInput` event that can be used to\n// directly represent `beforeInput`. The IE `textinput` event is not as\n// useful, so we don't use it.\n\n\nvar canUseTextInputEvent=canUseDOM&&'TextEvent' in window&&!documentMode; // In IE9+, we have access to composition events, but the data supplied\n// by the native compositionend event may be incorrect. Japanese ideographic\n// spaces, for instance (\\u3000) are not recorded correctly.\n\nvar useFallbackCompositionData=canUseDOM&&(!canUseCompositionEvent||documentMode&&documentMode > 8&&documentMode <=11);\nvar SPACEBAR_CODE=32;\nvar SPACEBAR_CHAR=String.fromCharCode(SPACEBAR_CODE); // Events and their corresponding property names.\n\nvar eventTypes={\n  beforeInput: {\n    phasedRegistrationNames: {\n      bubbled: 'onBeforeInput',\n      captured: 'onBeforeInputCapture'\n    },\n    dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]\n  },\n  compositionEnd: {\n    phasedRegistrationNames: {\n      bubbled: 'onCompositionEnd',\n      captured: 'onCompositionEndCapture'\n    },\n    dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n  },\n  compositionStart: {\n    phasedRegistrationNames: {\n      bubbled: 'onCompositionStart',\n      captured: 'onCompositionStartCapture'\n    },\n    dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n  },\n  compositionUpdate: {\n    phasedRegistrationNames: {\n      bubbled: 'onCompositionUpdate',\n      captured: 'onCompositionUpdateCapture'\n    },\n    dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]\n  }\n}; // Track whether we've ever handled a keypress on the space key.\n\nvar hasSpaceKeypress=false;\n\n\nfunction isKeypressCommand (nativeEvent){\n  return (nativeEvent.ctrlKey||nativeEvent.altKey||nativeEvent.metaKey)&&// ctrlKey&&altKey is equivalent to AltGr, and is not a command.\n  !(nativeEvent.ctrlKey&&nativeEvent.altKey);\n}\n\n\n\nfunction getCompositionEventType(topLevelType){\n  switch (topLevelType){\n    case TOP_COMPOSITION_START:\n      return eventTypes.compositionStart;\n\n    case TOP_COMPOSITION_END:\n      return eventTypes.compositionEnd;\n\n    case TOP_COMPOSITION_UPDATE:\n      return eventTypes.compositionUpdate;\n  }\n}\n\n\n\nfunction isFallbackCompositionStart(topLevelType, nativeEvent){\n  return topLevelType===TOP_KEY_DOWN&&nativeEvent.keyCode===START_KEYCODE;\n}\n\n\n\nfunction isFallbackCompositionEnd(topLevelType, nativeEvent){\n  switch (topLevelType){\n    case TOP_KEY_UP:\n      // Command keys insert or clear IME input.\n      return END_KEYCODES.indexOf(nativeEvent.keyCode)!==-1;\n\n    case TOP_KEY_DOWN:\n      // Expect IME keyCode on each keydown. If we get any other\n      // code we must have exited earlier.\n      return nativeEvent.keyCode!==START_KEYCODE;\n\n    case TOP_KEY_PRESS:\n    case TOP_MOUSE_DOWN:\n    case TOP_BLUR:\n      // Events are not possible without cancelling IME.\n      return true;\n\n    default:\n      return false;\n  }\n}\n\n\n\nfunction getDataFromCustomEvent(nativeEvent){\n  var detail=nativeEvent.detail;\n\n  if(typeof detail==='object'&&'data' in detail){\n    return detail.data;\n  }\n\n  return null;\n}\n\n\n\nfunction isUsingKoreanIME(nativeEvent){\n  return nativeEvent.locale==='ko';\n} // Track the current IME composition status, if any.\n\n\nvar isComposing=false;\n\n\nfunction extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget){\n  var eventType;\n  var fallbackData;\n\n  if(canUseCompositionEvent){\n    eventType=getCompositionEventType(topLevelType);\n  }else if(!isComposing){\n    if(isFallbackCompositionStart(topLevelType, nativeEvent)){\n      eventType=eventTypes.compositionStart;\n    }\n  }else if(isFallbackCompositionEnd(topLevelType, nativeEvent)){\n    eventType=eventTypes.compositionEnd;\n  }\n\n  if(!eventType){\n    return null;\n  }\n\n  if(useFallbackCompositionData&&!isUsingKoreanIME(nativeEvent)){\n    // The current composition is stored statically and must not be\n    // overwritten while composition continues.\n    if(!isComposing&&eventType===eventTypes.compositionStart){\n      isComposing=initialize(nativeEventTarget);\n    }else if(eventType===eventTypes.compositionEnd){\n      if(isComposing){\n        fallbackData=getData();\n      }\n    }\n  }\n\n  var event=SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);\n\n  if(fallbackData){\n    // Inject data generated from fallback path into the synthetic event.\n    // This matches the property of native CompositionEventInterface.\n    event.data=fallbackData;\n  }else{\n    var customData=getDataFromCustomEvent(nativeEvent);\n\n    if(customData!==null){\n      event.data=customData;\n    }\n  }\n\n  accumulateTwoPhaseDispatches(event);\n  return event;\n}\n\n\n\nfunction getNativeBeforeInputChars(topLevelType, nativeEvent){\n  switch (topLevelType){\n    case TOP_COMPOSITION_END:\n      return getDataFromCustomEvent(nativeEvent);\n\n    case TOP_KEY_PRESS:\n      \n      var which=nativeEvent.which;\n\n      if(which!==SPACEBAR_CODE){\n        return null;\n      }\n\n      hasSpaceKeypress=true;\n      return SPACEBAR_CHAR;\n\n    case TOP_TEXT_INPUT:\n      // Record the characters to be added to the DOM.\n      var chars=nativeEvent.data; // If it's a spacebar character, assume that we have already handled\n      // it at the keypress level and bail immediately. Android Chrome\n      // doesn't give us keycodes, so we need to ignore it.\n\n      if(chars===SPACEBAR_CHAR&&hasSpaceKeypress){\n        return null;\n      }\n\n      return chars;\n\n    default:\n      // For other native event types, do nothing.\n      return null;\n  }\n}\n\n\n\nfunction getFallbackBeforeInputChars(topLevelType, nativeEvent){\n  // If we are currently composing (IME) and using a fallback to do so,\n  // try to extract the composed characters from the fallback object.\n  // If composition event is available, we extract a string only at\n  // compositionevent, otherwise extract it at fallback events.\n  if(isComposing){\n    if(topLevelType===TOP_COMPOSITION_END||!canUseCompositionEvent&&isFallbackCompositionEnd(topLevelType, nativeEvent)){\n      var chars=getData();\n      reset();\n      isComposing=false;\n      return chars;\n    }\n\n    return null;\n  }\n\n  switch (topLevelType){\n    case TOP_PASTE:\n      // If a paste event occurs after a keypress, throw out the input\n      // chars. Paste events should not lead to BeforeInput events.\n      return null;\n\n    case TOP_KEY_PRESS:\n      \n      if(!isKeypressCommand (nativeEvent)){\n        // IE fires the `keypress` event when a user types an emoji via\n        // Touch keyboard of Windows.  In such a case, the `char` property\n        // holds an emoji character like `\\uD83D\\uDE0A`.  Because its length\n        // is 2, the property `which` does not represent an emoji correctly.\n        // In such a case, we directly return the `char` property instead of\n        // using `which`.\n        if(nativeEvent.char&&nativeEvent.char.length > 1){\n          return nativeEvent.char;\n        }else if(nativeEvent.which){\n          return String.fromCharCode(nativeEvent.which);\n        }\n      }\n\n      return null;\n\n    case TOP_COMPOSITION_END:\n      return useFallbackCompositionData&&!isUsingKoreanIME(nativeEvent) ? null:nativeEvent.data;\n\n    default:\n      return null;\n  }\n}\n\n\n\nfunction extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget){\n  var chars;\n\n  if(canUseTextInputEvent){\n    chars=getNativeBeforeInputChars(topLevelType, nativeEvent);\n  }else{\n    chars=getFallbackBeforeInputChars(topLevelType, nativeEvent);\n  } // If no characters are being inserted, no BeforeInput event should\n  // be fired.\n\n\n  if(!chars){\n    return null;\n  }\n\n  var event=SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);\n  event.data=chars;\n  accumulateTwoPhaseDispatches(event);\n  return event;\n}\n\n\n\nvar BeforeInputEventPlugin={\n  eventTypes: eventTypes,\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags){\n    var composition=extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n    var beforeInput=extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);\n\n    if(composition===null){\n      return beforeInput;\n    }\n\n    if(beforeInput===null){\n      return composition;\n    }\n\n    return [composition, beforeInput];\n  }\n};\n\n\nvar supportedInputTypes={\n  color: true,\n  date: true,\n  datetime: true,\n  'datetime-local': true,\n  email: true,\n  month: true,\n  number: true,\n  password: true,\n  range: true,\n  search: true,\n  tel: true,\n  text: true,\n  time: true,\n  url: true,\n  week: true\n};\n\nfunction isTextInputElement(elem){\n  var nodeName=elem&&elem.nodeName&&elem.nodeName.toLowerCase();\n\n  if(nodeName==='input'){\n    return !!supportedInputTypes[elem.type];\n  }\n\n  if(nodeName==='textarea'){\n    return true;\n  }\n\n  return false;\n}\n\nvar eventTypes$1={\n  change: {\n    phasedRegistrationNames: {\n      bubbled: 'onChange',\n      captured: 'onChangeCapture'\n    },\n    dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]\n  }\n};\n\nfunction createAndAccumulateChangeEvent(inst, nativeEvent, target){\n  var event=SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);\n  event.type='change'; // Flag this event loop as needing state restore.\n\n  enqueueStateRestore(target);\n  accumulateTwoPhaseDispatches(event);\n  return event;\n}\n\n\n\nvar activeElement=null;\nvar activeElementInst=null;\n\n\nfunction shouldUseChangeEvent(elem){\n  var nodeName=elem.nodeName&&elem.nodeName.toLowerCase();\n  return nodeName==='select'||nodeName==='input'&&elem.type==='file';\n}\n\nfunction manualDispatchChangeEvent(nativeEvent){\n  var event=createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent)); // If change and propertychange bubbled, we'd just bind to it like all the\n  // other events and have it go through ReactBrowserEventEmitter. Since it\n  // doesn't, we manually listen for the events and so we have to enqueue and\n  // process the abstract event manually.\n  //\n  // Batching is necessary here in order to ensure that all event handlers run\n  // before the next rerender (including event handlers attached to ancestor\n  // elements instead of directly on the input). Without this, controlled\n  // components don't work properly in conjunction with event bubbling because\n  // the component is rerendered and the value reverted before all the event\n  // handlers can run. See https://github.com/facebook/react/issues/708.\n\n  batchedUpdates(runEventInBatch, event);\n}\n\nfunction runEventInBatch(event){\n  runEventsInBatch(event);\n}\n\nfunction getInstIfValueChanged(targetInst){\n  var targetNode=getNodeFromInstance$1(targetInst);\n\n  if(updateValueIfChanged(targetNode)){\n    return targetInst;\n  }\n}\n\nfunction getTargetInstForChangeEvent(topLevelType, targetInst){\n  if(topLevelType===TOP_CHANGE){\n    return targetInst;\n  }\n}\n\n\n\nvar isInputEventSupported=false;\n\nif(canUseDOM){\n  // IE9 claims to support the input event but fails to trigger it when\n  // deleting text, so we ignore its input events.\n  isInputEventSupported=isEventSupported('input')&&(!document.documentMode||document.documentMode > 9);\n}\n\n\n\nfunction startWatchingForValueChange(target, targetInst){\n  activeElement=target;\n  activeElementInst=targetInst;\n  activeElement.attachEvent('onpropertychange', handlePropertyChange);\n}\n\n\n\nfunction stopWatchingForValueChange(){\n  if(!activeElement){\n    return;\n  }\n\n  activeElement.detachEvent('onpropertychange', handlePropertyChange);\n  activeElement=null;\n  activeElementInst=null;\n}\n\n\n\nfunction handlePropertyChange(nativeEvent){\n  if(nativeEvent.propertyName!=='value'){\n    return;\n  }\n\n  if(getInstIfValueChanged(activeElementInst)){\n    manualDispatchChangeEvent(nativeEvent);\n  }\n}\n\nfunction handleEventsForInputEventPolyfill(topLevelType, target, targetInst){\n  if(topLevelType===TOP_FOCUS){\n    // In IE9, propertychange fires for most input events but is buggy and\n    // doesn't fire when text is deleted, but conveniently, selectionchange\n    // appears to fire in all of the remaining cases so we catch those and\n    // forward the event if the value has changed\n    // In either case, we don't want to call the event handler if the value\n    // is changed from JS so we redefine a setter for `.value` that updates\n    // our activeElementValue variable, allowing us to ignore those changes\n    //\n    // stopWatching() should be a noop here but we call it just in case we\n    // missed a blur event somehow.\n    stopWatchingForValueChange();\n    startWatchingForValueChange(target, targetInst);\n  }else if(topLevelType===TOP_BLUR){\n    stopWatchingForValueChange();\n  }\n} // For IE8 and IE9.\n\n\nfunction getTargetInstForInputEventPolyfill(topLevelType, targetInst){\n  if(topLevelType===TOP_SELECTION_CHANGE||topLevelType===TOP_KEY_UP||topLevelType===TOP_KEY_DOWN){\n    // On the selectionchange event, the target is just document which isn't\n    // helpful for us so just check activeElement instead.\n    //\n    // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire\n    // propertychange on the first input event after setting `value` from a\n    // script and fires only keydown, keypress, keyup. Catching keyup usually\n    // gets it and catching keydown lets us fire an event for the first\n    // keystroke if user does a key repeat (it'll be a little delayed: right\n    // before the second keystroke). Other input methods (e.g., paste) seem to\n    // fire selectionchange normally.\n    return getInstIfValueChanged(activeElementInst);\n  }\n}\n\n\n\nfunction shouldUseClickEvent(elem){\n  // Use the `click` event to detect changes to checkbox and radio inputs.\n  // This approach works across all browsers, whereas `change` does not fire\n  // until `blur` in IE8.\n  var nodeName=elem.nodeName;\n  return nodeName&&nodeName.toLowerCase()==='input'&&(elem.type==='checkbox'||elem.type==='radio');\n}\n\nfunction getTargetInstForClickEvent(topLevelType, targetInst){\n  if(topLevelType===TOP_CLICK){\n    return getInstIfValueChanged(targetInst);\n  }\n}\n\nfunction getTargetInstForInputOrChangeEvent(topLevelType, targetInst){\n  if(topLevelType===TOP_INPUT||topLevelType===TOP_CHANGE){\n    return getInstIfValueChanged(targetInst);\n  }\n}\n\nfunction handleControlledInputBlur(node){\n  var state=node._wrapperState;\n\n  if(!state||!state.controlled||node.type!=='number'){\n    return;\n  }\n\n  {\n    // If controlled, assign the value attribute to the current value on blur\n    setDefaultValue(node, 'number', node.value);\n  }\n}\n\n\n\nvar ChangeEventPlugin={\n  eventTypes: eventTypes$1,\n  _isInputEventSupported: isInputEventSupported,\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags){\n    var targetNode=targetInst ? getNodeFromInstance$1(targetInst):window;\n    var getTargetInstFunc, handleEventFunc;\n\n    if(shouldUseChangeEvent(targetNode)){\n      getTargetInstFunc=getTargetInstForChangeEvent;\n    }else if(isTextInputElement(targetNode)){\n      if(isInputEventSupported){\n        getTargetInstFunc=getTargetInstForInputOrChangeEvent;\n      }else{\n        getTargetInstFunc=getTargetInstForInputEventPolyfill;\n        handleEventFunc=handleEventsForInputEventPolyfill;\n      }\n    }else if(shouldUseClickEvent(targetNode)){\n      getTargetInstFunc=getTargetInstForClickEvent;\n    }\n\n    if(getTargetInstFunc){\n      var inst=getTargetInstFunc(topLevelType, targetInst);\n\n      if(inst){\n        var event=createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);\n        return event;\n      }\n    }\n\n    if(handleEventFunc){\n      handleEventFunc(topLevelType, targetNode, targetInst);\n    } // When blurring, set the value attribute for number inputs\n\n\n    if(topLevelType===TOP_BLUR){\n      handleControlledInputBlur(targetNode);\n    }\n  }\n};\n\nvar SyntheticUIEvent=SyntheticEvent.extend({\n  view: null,\n  detail: null\n});\n\n\nvar modifierKeyToProp={\n  Alt: 'altKey',\n  Control: 'ctrlKey',\n  Meta: 'metaKey',\n  Shift: 'shiftKey'\n}; // Older browsers (Safari <=10, iOS Safari <=10.2) do not support\n// getModifierState. If getModifierState is not supported, we map it to a set of\n// modifier keys exposed by the event. In this case, Lock-keys are not supported.\n\nfunction modifierStateGetter(keyArg){\n  var syntheticEvent=this;\n  var nativeEvent=syntheticEvent.nativeEvent;\n\n  if(nativeEvent.getModifierState){\n    return nativeEvent.getModifierState(keyArg);\n  }\n\n  var keyProp=modifierKeyToProp[keyArg];\n  return keyProp ? !!nativeEvent[keyProp]:false;\n}\n\nfunction getEventModifierState(nativeEvent){\n  return modifierStateGetter;\n}\n\nvar previousScreenX=0;\nvar previousScreenY=0; // Use flags to signal movementX/Y has already been set\n\nvar isMovementXSet=false;\nvar isMovementYSet=false;\n\n\nvar SyntheticMouseEvent=SyntheticUIEvent.extend({\n  screenX: null,\n  screenY: null,\n  clientX: null,\n  clientY: null,\n  pageX: null,\n  pageY: null,\n  ctrlKey: null,\n  shiftKey: null,\n  altKey: null,\n  metaKey: null,\n  getModifierState: getEventModifierState,\n  button: null,\n  buttons: null,\n  relatedTarget: function (event){\n    return event.relatedTarget||(event.fromElement===event.srcElement ? event.toElement:event.fromElement);\n  },\n  movementX: function (event){\n    if('movementX' in event){\n      return event.movementX;\n    }\n\n    var screenX=previousScreenX;\n    previousScreenX=event.screenX;\n\n    if(!isMovementXSet){\n      isMovementXSet=true;\n      return 0;\n    }\n\n    return event.type==='mousemove' ? event.screenX - screenX:0;\n  },\n  movementY: function (event){\n    if('movementY' in event){\n      return event.movementY;\n    }\n\n    var screenY=previousScreenY;\n    previousScreenY=event.screenY;\n\n    if(!isMovementYSet){\n      isMovementYSet=true;\n      return 0;\n    }\n\n    return event.type==='mousemove' ? event.screenY - screenY:0;\n  }\n});\n\n\n\nvar SyntheticPointerEvent=SyntheticMouseEvent.extend({\n  pointerId: null,\n  width: null,\n  height: null,\n  pressure: null,\n  tangentialPressure: null,\n  tiltX: null,\n  tiltY: null,\n  twist: null,\n  pointerType: null,\n  isPrimary: null\n});\n\nvar eventTypes$2={\n  mouseEnter: {\n    registrationName: 'onMouseEnter',\n    dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]\n  },\n  mouseLeave: {\n    registrationName: 'onMouseLeave',\n    dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]\n  },\n  pointerEnter: {\n    registrationName: 'onPointerEnter',\n    dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]\n  },\n  pointerLeave: {\n    registrationName: 'onPointerLeave',\n    dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]\n  }\n};\nvar EnterLeaveEventPlugin={\n  eventTypes: eventTypes$2,\n\n  \n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags){\n    var isOverEvent=topLevelType===TOP_MOUSE_OVER||topLevelType===TOP_POINTER_OVER;\n    var isOutEvent=topLevelType===TOP_MOUSE_OUT||topLevelType===TOP_POINTER_OUT;\n\n    if(isOverEvent&&(eventSystemFlags & IS_REPLAYED)===0&&(nativeEvent.relatedTarget||nativeEvent.fromElement)){\n      // If this is an over event with a target, then we've already dispatched\n      // the event in the out event of the other target. If this is replayed,\n      // then it's because we couldn't dispatch against this target previously\n      // so we have to do it now instead.\n      return null;\n    }\n\n    if(!isOutEvent&&!isOverEvent){\n      // Must not be a mouse or pointer in or out - ignoring.\n      return null;\n    }\n\n    var win;\n\n    if(nativeEventTarget.window===nativeEventTarget){\n      // `nativeEventTarget` is probably a window object.\n      win=nativeEventTarget;\n    }else{\n      // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.\n      var doc=nativeEventTarget.ownerDocument;\n\n      if(doc){\n        win=doc.defaultView||doc.parentWindow;\n      }else{\n        win=window;\n      }\n    }\n\n    var from;\n    var to;\n\n    if(isOutEvent){\n      from=targetInst;\n      var related=nativeEvent.relatedTarget||nativeEvent.toElement;\n      to=related ? getClosestInstanceFromNode(related):null;\n\n      if(to!==null){\n        var nearestMounted=getNearestMountedFiber(to);\n\n        if(to!==nearestMounted||to.tag!==HostComponent&&to.tag!==HostText){\n          to=null;\n        }\n      }\n    }else{\n      // Moving to a node from outside the window.\n      from=null;\n      to=targetInst;\n    }\n\n    if(from===to){\n      // Nothing pertains to our managed components.\n      return null;\n    }\n\n    var eventInterface, leaveEventType, enterEventType, eventTypePrefix;\n\n    if(topLevelType===TOP_MOUSE_OUT||topLevelType===TOP_MOUSE_OVER){\n      eventInterface=SyntheticMouseEvent;\n      leaveEventType=eventTypes$2.mouseLeave;\n      enterEventType=eventTypes$2.mouseEnter;\n      eventTypePrefix='mouse';\n    }else if(topLevelType===TOP_POINTER_OUT||topLevelType===TOP_POINTER_OVER){\n      eventInterface=SyntheticPointerEvent;\n      leaveEventType=eventTypes$2.pointerLeave;\n      enterEventType=eventTypes$2.pointerEnter;\n      eventTypePrefix='pointer';\n    }\n\n    var fromNode=from==null ? win:getNodeFromInstance$1(from);\n    var toNode=to==null ? win:getNodeFromInstance$1(to);\n    var leave=eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);\n    leave.type=eventTypePrefix + 'leave';\n    leave.target=fromNode;\n    leave.relatedTarget=toNode;\n    var enter=eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);\n    enter.type=eventTypePrefix + 'enter';\n    enter.target=toNode;\n    enter.relatedTarget=fromNode;\n    accumulateEnterLeaveDispatches(leave, enter, from, to); // If we are not processing the first ancestor, then we\n    // should not process the same nativeEvent again, as we\n    // will have already processed it in the first ancestor.\n\n    if((eventSystemFlags & IS_FIRST_ANCESTOR)===0){\n      return [leave];\n    }\n\n    return [leave, enter];\n  }\n};\n\n\nfunction is(x, y){\n  return x===y&&(x!==0||1 / x===1 / y)||x!==x&&y!==y // eslint-disable-line no-self-compare\n  ;\n}\n\nvar objectIs=typeof Object.is==='function' ? Object.is:is;\n\nvar hasOwnProperty$2=Object.prototype.hasOwnProperty;\n\n\nfunction shallowEqual(objA, objB){\n  if(objectIs(objA, objB)){\n    return true;\n  }\n\n  if(typeof objA!=='object'||objA===null||typeof objB!=='object'||objB===null){\n    return false;\n  }\n\n  var keysA=Object.keys(objA);\n  var keysB=Object.keys(objB);\n\n  if(keysA.length!==keysB.length){\n    return false;\n  } // Test for A's keys different from B.\n\n\n  for (var i=0; i < keysA.length; i++){\n    if(!hasOwnProperty$2.call(objB, keysA[i])||!objectIs(objA[keysA[i]], objB[keysA[i]])){\n      return false;\n    }\n  }\n\n  return true;\n}\n\nvar skipSelectionChangeEvent=canUseDOM&&'documentMode' in document&&document.documentMode <=11;\nvar eventTypes$3={\n  select: {\n    phasedRegistrationNames: {\n      bubbled: 'onSelect',\n      captured: 'onSelectCapture'\n    },\n    dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]\n  }\n};\nvar activeElement$1=null;\nvar activeElementInst$1=null;\nvar lastSelection=null;\nvar mouseDown=false;\n\n\nfunction getSelection$1(node){\n  if('selectionStart' in node&&hasSelectionCapabilities(node)){\n    return {\n      start: node.selectionStart,\n      end: node.selectionEnd\n    };\n  }else{\n    var win=node.ownerDocument&&node.ownerDocument.defaultView||window;\n    var selection=win.getSelection();\n    return {\n      anchorNode: selection.anchorNode,\n      anchorOffset: selection.anchorOffset,\n      focusNode: selection.focusNode,\n      focusOffset: selection.focusOffset\n    };\n  }\n}\n\n\n\nfunction getEventTargetDocument(eventTarget){\n  return eventTarget.window===eventTarget ? eventTarget.document:eventTarget.nodeType===DOCUMENT_NODE ? eventTarget:eventTarget.ownerDocument;\n}\n\n\n\nfunction constructSelectEvent(nativeEvent, nativeEventTarget){\n  // Ensure we have the right element, and that the user is not dragging a\n  // selection (this matches native `select` event behavior). In HTML5, select\n  // fires only on input and textarea thus if there's no focused element we\n  // won't dispatch.\n  var doc=getEventTargetDocument(nativeEventTarget);\n\n  if(mouseDown||activeElement$1==null||activeElement$1!==getActiveElement(doc)){\n    return null;\n  } // Only fire when selection has actually changed.\n\n\n  var currentSelection=getSelection$1(activeElement$1);\n\n  if(!lastSelection||!shallowEqual(lastSelection, currentSelection)){\n    lastSelection=currentSelection;\n    var syntheticEvent=SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);\n    syntheticEvent.type='select';\n    syntheticEvent.target=activeElement$1;\n    accumulateTwoPhaseDispatches(syntheticEvent);\n    return syntheticEvent;\n  }\n\n  return null;\n}\n\n\n\nvar SelectEventPlugin={\n  eventTypes: eventTypes$3,\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, container){\n    var containerOrDoc=container||getEventTargetDocument(nativeEventTarget); // Track whether all listeners exists for this plugin. If none exist, we do\n    // not extract events. See #3639.\n\n    if(!containerOrDoc||!isListeningToAllDependencies('onSelect', containerOrDoc)){\n      return null;\n    }\n\n    var targetNode=targetInst ? getNodeFromInstance$1(targetInst):window;\n\n    switch (topLevelType){\n      // Track the input node that has focus.\n      case TOP_FOCUS:\n        if(isTextInputElement(targetNode)||targetNode.contentEditable==='true'){\n          activeElement$1=targetNode;\n          activeElementInst$1=targetInst;\n          lastSelection=null;\n        }\n\n        break;\n\n      case TOP_BLUR:\n        activeElement$1=null;\n        activeElementInst$1=null;\n        lastSelection=null;\n        break;\n      // Don't fire the event while the user is dragging. This matches the\n      // semantics of the native select event.\n\n      case TOP_MOUSE_DOWN:\n        mouseDown=true;\n        break;\n\n      case TOP_CONTEXT_MENU:\n      case TOP_MOUSE_UP:\n      case TOP_DRAG_END:\n        mouseDown=false;\n        return constructSelectEvent(nativeEvent, nativeEventTarget);\n      // Chrome and IE fire non-standard event when selection is changed (and\n      // sometimes when it hasn't). IE's event fires out of order with respect\n      // to key and input events on deletion, so we discard it.\n      //\n      // Firefox doesn't support selectionchange, so check selection status\n      // after each key entry. The selection changes after keydown and before\n      // keyup, but we check on keydown as well in the case of holding down a\n      // key, when multiple keydown events are fired but only one keyup is.\n      // This is also our approach for IE handling, for the reason above.\n\n      case TOP_SELECTION_CHANGE:\n        if(skipSelectionChangeEvent){\n          break;\n        }\n\n      // falls through\n\n      case TOP_KEY_DOWN:\n      case TOP_KEY_UP:\n        return constructSelectEvent(nativeEvent, nativeEventTarget);\n    }\n\n    return null;\n  }\n};\n\n\n\nvar SyntheticAnimationEvent=SyntheticEvent.extend({\n  animationName: null,\n  elapsedTime: null,\n  pseudoElement: null\n});\n\n\n\nvar SyntheticClipboardEvent=SyntheticEvent.extend({\n  clipboardData: function (event){\n    return 'clipboardData' in event ? event.clipboardData:window.clipboardData;\n  }\n});\n\n\n\nvar SyntheticFocusEvent=SyntheticUIEvent.extend({\n  relatedTarget: null\n});\n\n\nfunction getEventCharCode(nativeEvent){\n  var charCode;\n  var keyCode=nativeEvent.keyCode;\n\n  if('charCode' in nativeEvent){\n    charCode=nativeEvent.charCode; // FF does not set `charCode` for the Enter-key, check against `keyCode`.\n\n    if(charCode===0&&keyCode===13){\n      charCode=13;\n    }\n  }else{\n    // IE8 does not implement `charCode`, but `keyCode` has the correct value.\n    charCode=keyCode;\n  } // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)\n  // report Enter as charCode 10 when ctrl is pressed.\n\n\n  if(charCode===10){\n    charCode=13;\n  } // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.\n  // Must not discard the (non-)printable Enter-key.\n\n\n  if(charCode >=32||charCode===13){\n    return charCode;\n  }\n\n  return 0;\n}\n\n\n\nvar normalizeKey={\n  Esc: 'Escape',\n  Spacebar: ' ',\n  Left: 'ArrowLeft',\n  Up: 'ArrowUp',\n  Right: 'ArrowRight',\n  Down: 'ArrowDown',\n  Del: 'Delete',\n  Win: 'OS',\n  Menu: 'ContextMenu',\n  Apps: 'ContextMenu',\n  Scroll: 'ScrollLock',\n  MozPrintableKey: 'Unidentified'\n};\n\n\nvar translateToKey={\n  '8': 'Backspace',\n  '9': 'Tab',\n  '12': 'Clear',\n  '13': 'Enter',\n  '16': 'Shift',\n  '17': 'Control',\n  '18': 'Alt',\n  '19': 'Pause',\n  '20': 'CapsLock',\n  '27': 'Escape',\n  '32': ' ',\n  '33': 'PageUp',\n  '34': 'PageDown',\n  '35': 'End',\n  '36': 'Home',\n  '37': 'ArrowLeft',\n  '38': 'ArrowUp',\n  '39': 'ArrowRight',\n  '40': 'ArrowDown',\n  '45': 'Insert',\n  '46': 'Delete',\n  '112': 'F1',\n  '113': 'F2',\n  '114': 'F3',\n  '115': 'F4',\n  '116': 'F5',\n  '117': 'F6',\n  '118': 'F7',\n  '119': 'F8',\n  '120': 'F9',\n  '121': 'F10',\n  '122': 'F11',\n  '123': 'F12',\n  '144': 'NumLock',\n  '145': 'ScrollLock',\n  '224': 'Meta'\n};\n\n\nfunction getEventKey(nativeEvent){\n  if(nativeEvent.key){\n    // Normalize inconsistent values reported by browsers due to\n    // implementations of a working draft specification.\n    // FireFox implements `key` but returns `MozPrintableKey` for all\n    // printable characters (normalized to `Unidentified`), ignore it.\n    var key=normalizeKey[nativeEvent.key]||nativeEvent.key;\n\n    if(key!=='Unidentified'){\n      return key;\n    }\n  } // Browser does not implement `key`, polyfill as much of it as we can.\n\n\n  if(nativeEvent.type==='keypress'){\n    var charCode=getEventCharCode(nativeEvent); // The enter-key is technically both printable and non-printable and can\n    // thus be captured by `keypress`, no other non-printable key should.\n\n    return charCode===13 ? 'Enter':String.fromCharCode(charCode);\n  }\n\n  if(nativeEvent.type==='keydown'||nativeEvent.type==='keyup'){\n    // While user keyboard layout determines the actual meaning of each\n    // `keyCode` value, almost all function keys have a universal value.\n    return translateToKey[nativeEvent.keyCode]||'Unidentified';\n  }\n\n  return '';\n}\n\n\n\nvar SyntheticKeyboardEvent=SyntheticUIEvent.extend({\n  key: getEventKey,\n  location: null,\n  ctrlKey: null,\n  shiftKey: null,\n  altKey: null,\n  metaKey: null,\n  repeat: null,\n  locale: null,\n  getModifierState: getEventModifierState,\n  // Legacy Interface\n  charCode: function (event){\n    // `charCode` is the result of a KeyPress event and represents the value of\n    // the actual printable character.\n    // KeyPress is deprecated, but its replacement is not yet final and not\n    // implemented in any major browser. Only KeyPress has charCode.\n    if(event.type==='keypress'){\n      return getEventCharCode(event);\n    }\n\n    return 0;\n  },\n  keyCode: function (event){\n    // `keyCode` is the result of a KeyDown/Up event and represents the value of\n    // physical keyboard key.\n    // The actual meaning of the value depends on the users' keyboard layout\n    // which cannot be detected. Assuming that it is a US keyboard layout\n    // provides a surprisingly accurate mapping for US and European users.\n    // Due to this, it is left to the user to implement at this time.\n    if(event.type==='keydown'||event.type==='keyup'){\n      return event.keyCode;\n    }\n\n    return 0;\n  },\n  which: function (event){\n    // `which` is an alias for either `keyCode` or `charCode` depending on the\n    // type of the event.\n    if(event.type==='keypress'){\n      return getEventCharCode(event);\n    }\n\n    if(event.type==='keydown'||event.type==='keyup'){\n      return event.keyCode;\n    }\n\n    return 0;\n  }\n});\n\n\n\nvar SyntheticDragEvent=SyntheticMouseEvent.extend({\n  dataTransfer: null\n});\n\n\n\nvar SyntheticTouchEvent=SyntheticUIEvent.extend({\n  touches: null,\n  targetTouches: null,\n  changedTouches: null,\n  altKey: null,\n  metaKey: null,\n  ctrlKey: null,\n  shiftKey: null,\n  getModifierState: getEventModifierState\n});\n\n\n\nvar SyntheticTransitionEvent=SyntheticEvent.extend({\n  propertyName: null,\n  elapsedTime: null,\n  pseudoElement: null\n});\n\n\n\nvar SyntheticWheelEvent=SyntheticMouseEvent.extend({\n  deltaX: function (event){\n    return 'deltaX' in event ? event.deltaX:// Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).\n    'wheelDeltaX' in event ? -event.wheelDeltaX:0;\n  },\n  deltaY: function (event){\n    return 'deltaY' in event ? event.deltaY:// Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).\n    'wheelDeltaY' in event ? -event.wheelDeltaY:// Fallback to `wheelDelta` for IE<9 and normalize (down is positive).\n    'wheelDelta' in event ? -event.wheelDelta:0;\n  },\n  deltaZ: null,\n  // Browsers without \"deltaMode\" is reporting in raw wheel delta where one\n  // notch on the scroll is always +/- 120, roughly equivalent to pixels.\n  // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or\n  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.\n  deltaMode: null\n});\n\nvar knownHTMLTopLevelTypes=[TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];\nvar SimpleEventPlugin={\n  // simpleEventPluginEventTypes gets populated from\n  // the DOMEventProperties module.\n  eventTypes: simpleEventPluginEventTypes,\n  extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags){\n    var dispatchConfig=topLevelEventsToDispatchConfig.get(topLevelType);\n\n    if(!dispatchConfig){\n      return null;\n    }\n\n    var EventConstructor;\n\n    switch (topLevelType){\n      case TOP_KEY_PRESS:\n        // Firefox creates a keypress event for function keys too. This removes\n        // the unwanted keypress events. Enter is however both printable and\n        // non-printable. One would expect Tab to be as well (but it isn't).\n        if(getEventCharCode(nativeEvent)===0){\n          return null;\n        }\n\n      \n\n      case TOP_KEY_DOWN:\n      case TOP_KEY_UP:\n        EventConstructor=SyntheticKeyboardEvent;\n        break;\n\n      case TOP_BLUR:\n      case TOP_FOCUS:\n        EventConstructor=SyntheticFocusEvent;\n        break;\n\n      case TOP_CLICK:\n        // Firefox creates a click event on right mouse clicks. This removes the\n        // unwanted click events.\n        if(nativeEvent.button===2){\n          return null;\n        }\n\n      \n\n      case TOP_AUX_CLICK:\n      case TOP_DOUBLE_CLICK:\n      case TOP_MOUSE_DOWN:\n      case TOP_MOUSE_MOVE:\n      case TOP_MOUSE_UP: // TODO: Disabled elements should not respond to mouse events\n\n      \n\n      case TOP_MOUSE_OUT:\n      case TOP_MOUSE_OVER:\n      case TOP_CONTEXT_MENU:\n        EventConstructor=SyntheticMouseEvent;\n        break;\n\n      case TOP_DRAG:\n      case TOP_DRAG_END:\n      case TOP_DRAG_ENTER:\n      case TOP_DRAG_EXIT:\n      case TOP_DRAG_LEAVE:\n      case TOP_DRAG_OVER:\n      case TOP_DRAG_START:\n      case TOP_DROP:\n        EventConstructor=SyntheticDragEvent;\n        break;\n\n      case TOP_TOUCH_CANCEL:\n      case TOP_TOUCH_END:\n      case TOP_TOUCH_MOVE:\n      case TOP_TOUCH_START:\n        EventConstructor=SyntheticTouchEvent;\n        break;\n\n      case TOP_ANIMATION_END:\n      case TOP_ANIMATION_ITERATION:\n      case TOP_ANIMATION_START:\n        EventConstructor=SyntheticAnimationEvent;\n        break;\n\n      case TOP_TRANSITION_END:\n        EventConstructor=SyntheticTransitionEvent;\n        break;\n\n      case TOP_SCROLL:\n        EventConstructor=SyntheticUIEvent;\n        break;\n\n      case TOP_WHEEL:\n        EventConstructor=SyntheticWheelEvent;\n        break;\n\n      case TOP_COPY:\n      case TOP_CUT:\n      case TOP_PASTE:\n        EventConstructor=SyntheticClipboardEvent;\n        break;\n\n      case TOP_GOT_POINTER_CAPTURE:\n      case TOP_LOST_POINTER_CAPTURE:\n      case TOP_POINTER_CANCEL:\n      case TOP_POINTER_DOWN:\n      case TOP_POINTER_MOVE:\n      case TOP_POINTER_OUT:\n      case TOP_POINTER_OVER:\n      case TOP_POINTER_UP:\n        EventConstructor=SyntheticPointerEvent;\n        break;\n\n      default:\n        {\n          if(knownHTMLTopLevelTypes.indexOf(topLevelType)===-1){\n            error('SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);\n          }\n        } // HTML Events\n        // @see http://www.w3.org/TR/html5/index.html#events-0\n\n\n        EventConstructor=SyntheticEvent;\n        break;\n    }\n\n    var event=EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);\n    accumulateTwoPhaseDispatches(event);\n    return event;\n  }\n};\n\n\n\nvar DOMEventPluginOrder=['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];\n\n\ninjectEventPluginOrder(DOMEventPluginOrder);\nsetComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);\n\n\ninjectEventPluginsByName({\n  SimpleEventPlugin: SimpleEventPlugin,\n  EnterLeaveEventPlugin: EnterLeaveEventPlugin,\n  ChangeEventPlugin: ChangeEventPlugin,\n  SelectEventPlugin: SelectEventPlugin,\n  BeforeInputEventPlugin: BeforeInputEventPlugin\n});\n\n// Prefix measurements so that it's possible to filter them.\n// Longer prefixes are hard to read in DevTools.\nvar reactEmoji=\"\\u269B\";\nvar warningEmoji=\"\\u26D4\";\nvar supportsUserTiming=typeof performance!=='undefined'&&typeof performance.mark==='function'&&typeof performance.clearMarks==='function'&&typeof performance.measure==='function'&&typeof performance.clearMeasures==='function'; // Keep track of current fiber so that we know the path to unwind on pause.\n// TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?\n\nvar currentFiber=null; // If we're in the middle of user code, which fiber and method is it?\n// Reusing `currentFiber` would be confusing for this because user code fiber\n// can change during commit phase too, but we don't need to unwind it (since\n// lifecycles in the commit phase don't resemble a tree).\n\nvar currentPhase=null;\nvar currentPhaseFiber=null; // Did lifecycle hook schedule an update? This is often a performance problem,\n// so we will keep track of it, and include it in the report.\n// Track commits caused by cascading updates.\n\nvar isCommitting=false;\nvar hasScheduledUpdateInCurrentCommit=false;\nvar hasScheduledUpdateInCurrentPhase=false;\nvar commitCountInCurrentWorkLoop=0;\nvar effectCountInCurrentCommit=0;\n// to avoid stretch the commit phase with measurement overhead.\n\nvar labelsInCurrentCommit=new Set();\n\nvar formatMarkName=function (markName){\n  return reactEmoji + \" \" + markName;\n};\n\nvar formatLabel=function (label, warning){\n  var prefix=warning ? warningEmoji + \" \":reactEmoji + \" \";\n  var suffix=warning ? \" Warning: \" + warning:'';\n  return \"\" + prefix + label + suffix;\n};\n\nvar beginMark=function (markName){\n  performance.mark(formatMarkName(markName));\n};\n\nvar clearMark=function (markName){\n  performance.clearMarks(formatMarkName(markName));\n};\n\nvar endMark=function (label, markName, warning){\n  var formattedMarkName=formatMarkName(markName);\n  var formattedLabel=formatLabel(label, warning);\n\n  try {\n    performance.measure(formattedLabel, formattedMarkName);\n  } catch (err){} // If previous mark was missing for some reason, this will throw.\n  // This could only happen if React crashed in an unexpected place earlier.\n  // Don't pile on with more errors.\n  // Clear marks immediately to avoid growing buffer.\n\n\n  performance.clearMarks(formattedMarkName);\n  performance.clearMeasures(formattedLabel);\n};\n\nvar getFiberMarkName=function (label, debugID){\n  return label + \" (#\" + debugID + \")\";\n};\n\nvar getFiberLabel=function (componentName, isMounted, phase){\n  if(phase===null){\n    // These are composite component total time measurements.\n    return componentName + \" [\" + (isMounted ? 'update':'mount') + \"]\";\n  }else{\n    // Composite component methods.\n    return componentName + \".\" + phase;\n  }\n};\n\nvar beginFiberMark=function (fiber, phase){\n  var componentName=getComponentName(fiber.type)||'Unknown';\n  var debugID=fiber._debugID;\n  var isMounted=fiber.alternate!==null;\n  var label=getFiberLabel(componentName, isMounted, phase);\n\n  if(isCommitting&&labelsInCurrentCommit.has(label)){\n    // During the commit phase, we don't show duplicate labels because\n    // there is a fixed overhead for every measurement, and we don't\n    // want to stretch the commit phase beyond necessary.\n    return false;\n  }\n\n  labelsInCurrentCommit.add(label);\n  var markName=getFiberMarkName(label, debugID);\n  beginMark(markName);\n  return true;\n};\n\nvar clearFiberMark=function (fiber, phase){\n  var componentName=getComponentName(fiber.type)||'Unknown';\n  var debugID=fiber._debugID;\n  var isMounted=fiber.alternate!==null;\n  var label=getFiberLabel(componentName, isMounted, phase);\n  var markName=getFiberMarkName(label, debugID);\n  clearMark(markName);\n};\n\nvar endFiberMark=function (fiber, phase, warning){\n  var componentName=getComponentName(fiber.type)||'Unknown';\n  var debugID=fiber._debugID;\n  var isMounted=fiber.alternate!==null;\n  var label=getFiberLabel(componentName, isMounted, phase);\n  var markName=getFiberMarkName(label, debugID);\n  endMark(label, markName, warning);\n};\n\nvar shouldIgnoreFiber=function (fiber){\n  // Host components should be skipped in the timeline.\n  // We could check typeof fiber.type, but does this work with RN?\n  switch (fiber.tag){\n    case HostRoot:\n    case HostComponent:\n    case HostText:\n    case HostPortal:\n    case Fragment:\n    case ContextProvider:\n    case ContextConsumer:\n    case Mode:\n      return true;\n\n    default:\n      return false;\n  }\n};\n\nvar clearPendingPhaseMeasurement=function (){\n  if(currentPhase!==null&&currentPhaseFiber!==null){\n    clearFiberMark(currentPhaseFiber, currentPhase);\n  }\n\n  currentPhaseFiber=null;\n  currentPhase=null;\n  hasScheduledUpdateInCurrentPhase=false;\n};\n\nvar pauseTimers=function (){\n  // Stops all currently active measurements so that they can be resumed\n  // if we continue in a later deferred loop from the same unit of work.\n  var fiber=currentFiber;\n\n  while (fiber){\n    if(fiber._debugIsCurrentlyTiming){\n      endFiberMark(fiber, null, null);\n    }\n\n    fiber=fiber.return;\n  }\n};\n\nvar resumeTimersRecursively=function (fiber){\n  if(fiber.return!==null){\n    resumeTimersRecursively(fiber.return);\n  }\n\n  if(fiber._debugIsCurrentlyTiming){\n    beginFiberMark(fiber, null);\n  }\n};\n\nvar resumeTimers=function (){\n  // Resumes all measurements that were active during the last deferred loop.\n  if(currentFiber!==null){\n    resumeTimersRecursively(currentFiber);\n  }\n};\n\nfunction recordEffect(){\n  {\n    effectCountInCurrentCommit++;\n  }\n}\nfunction recordScheduleUpdate(){\n  {\n    if(isCommitting){\n      hasScheduledUpdateInCurrentCommit=true;\n    }\n\n    if(currentPhase!==null&&currentPhase!=='componentWillMount'&&currentPhase!=='componentWillReceiveProps'){\n      hasScheduledUpdateInCurrentPhase=true;\n    }\n  }\n}\nfunction startWorkTimer(fiber){\n  {\n    if(!supportsUserTiming||shouldIgnoreFiber(fiber)){\n      return;\n    } // If we pause, this is the fiber to unwind from.\n\n\n    currentFiber=fiber;\n\n    if(!beginFiberMark(fiber, null)){\n      return;\n    }\n\n    fiber._debugIsCurrentlyTiming=true;\n  }\n}\nfunction cancelWorkTimer(fiber){\n  {\n    if(!supportsUserTiming||shouldIgnoreFiber(fiber)){\n      return;\n    } // Remember we shouldn't complete measurement for this fiber.\n    // Otherwise flamechart will be deep even for small updates.\n\n\n    fiber._debugIsCurrentlyTiming=false;\n    clearFiberMark(fiber, null);\n  }\n}\nfunction stopWorkTimer(fiber){\n  {\n    if(!supportsUserTiming||shouldIgnoreFiber(fiber)){\n      return;\n    } // If we pause, its parent is the fiber to unwind from.\n\n\n    currentFiber=fiber.return;\n\n    if(!fiber._debugIsCurrentlyTiming){\n      return;\n    }\n\n    fiber._debugIsCurrentlyTiming=false;\n    endFiberMark(fiber, null, null);\n  }\n}\nfunction stopFailedWorkTimer(fiber){\n  {\n    if(!supportsUserTiming||shouldIgnoreFiber(fiber)){\n      return;\n    } // If we pause, its parent is the fiber to unwind from.\n\n\n    currentFiber=fiber.return;\n\n    if(!fiber._debugIsCurrentlyTiming){\n      return;\n    }\n\n    fiber._debugIsCurrentlyTiming=false;\n    var warning=fiber.tag===SuspenseComponent ? 'Rendering was suspended':'An error was thrown inside this error boundary';\n    endFiberMark(fiber, null, warning);\n  }\n}\nfunction startPhaseTimer(fiber, phase){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    clearPendingPhaseMeasurement();\n\n    if(!beginFiberMark(fiber, phase)){\n      return;\n    }\n\n    currentPhaseFiber=fiber;\n    currentPhase=phase;\n  }\n}\nfunction stopPhaseTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    if(currentPhase!==null&&currentPhaseFiber!==null){\n      var warning=hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update':null;\n      endFiberMark(currentPhaseFiber, currentPhase, warning);\n    }\n\n    currentPhase=null;\n    currentPhaseFiber=null;\n  }\n}\nfunction startWorkLoopTimer(nextUnitOfWork){\n  {\n    currentFiber=nextUnitOfWork;\n\n    if(!supportsUserTiming){\n      return;\n    }\n\n    commitCountInCurrentWorkLoop=0; // This is top level call.\n    // Any other measurements are performed within.\n\n    beginMark('(React Tree Reconciliation)'); // Resume any measurements that were in progress during the last loop.\n\n    resumeTimers();\n  }\n}\nfunction stopWorkLoopTimer(interruptedBy, didCompleteRoot){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    var warning=null;\n\n    if(interruptedBy!==null){\n      if(interruptedBy.tag===HostRoot){\n        warning='A top-level update interrupted the previous render';\n      }else{\n        var componentName=getComponentName(interruptedBy.type)||'Unknown';\n        warning=\"An update to \" + componentName + \" interrupted the previous render\";\n      }\n    }else if(commitCountInCurrentWorkLoop > 1){\n      warning='There were cascading updates';\n    }\n\n    commitCountInCurrentWorkLoop=0;\n    var label=didCompleteRoot ? '(React Tree Reconciliation: Completed Root)':'(React Tree Reconciliation: Yielded)'; // Pause any measurements until the next loop.\n\n    pauseTimers();\n    endMark(label, '(React Tree Reconciliation)', warning);\n  }\n}\nfunction startCommitTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    isCommitting=true;\n    hasScheduledUpdateInCurrentCommit=false;\n    labelsInCurrentCommit.clear();\n    beginMark('(Committing Changes)');\n  }\n}\nfunction stopCommitTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    var warning=null;\n\n    if(hasScheduledUpdateInCurrentCommit){\n      warning='Lifecycle hook scheduled a cascading update';\n    }else if(commitCountInCurrentWorkLoop > 0){\n      warning='Caused by a cascading update in earlier commit';\n    }\n\n    hasScheduledUpdateInCurrentCommit=false;\n    commitCountInCurrentWorkLoop++;\n    isCommitting=false;\n    labelsInCurrentCommit.clear();\n    endMark('(Committing Changes)', '(Committing Changes)', warning);\n  }\n}\nfunction startCommitSnapshotEffectsTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    effectCountInCurrentCommit=0;\n    beginMark('(Committing Snapshot Effects)');\n  }\n}\nfunction stopCommitSnapshotEffectsTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    var count=effectCountInCurrentCommit;\n    effectCountInCurrentCommit=0;\n    endMark(\"(Committing Snapshot Effects: \" + count + \" Total)\", '(Committing Snapshot Effects)', null);\n  }\n}\nfunction startCommitHostEffectsTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    effectCountInCurrentCommit=0;\n    beginMark('(Committing Host Effects)');\n  }\n}\nfunction stopCommitHostEffectsTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    var count=effectCountInCurrentCommit;\n    effectCountInCurrentCommit=0;\n    endMark(\"(Committing Host Effects: \" + count + \" Total)\", '(Committing Host Effects)', null);\n  }\n}\nfunction startCommitLifeCyclesTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    effectCountInCurrentCommit=0;\n    beginMark('(Calling Lifecycle Methods)');\n  }\n}\nfunction stopCommitLifeCyclesTimer(){\n  {\n    if(!supportsUserTiming){\n      return;\n    }\n\n    var count=effectCountInCurrentCommit;\n    effectCountInCurrentCommit=0;\n    endMark(\"(Calling Lifecycle Methods: \" + count + \" Total)\", '(Calling Lifecycle Methods)', null);\n  }\n}\n\nvar valueStack=[];\nvar fiberStack;\n\n{\n  fiberStack=[];\n}\n\nvar index=-1;\n\nfunction createCursor(defaultValue){\n  return {\n    current: defaultValue\n  };\n}\n\nfunction pop(cursor, fiber){\n  if(index < 0){\n    {\n      error('Unexpected pop.');\n    }\n\n    return;\n  }\n\n  {\n    if(fiber!==fiberStack[index]){\n      error('Unexpected Fiber popped.');\n    }\n  }\n\n  cursor.current=valueStack[index];\n  valueStack[index]=null;\n\n  {\n    fiberStack[index]=null;\n  }\n\n  index--;\n}\n\nfunction push(cursor, value, fiber){\n  index++;\n  valueStack[index]=cursor.current;\n\n  {\n    fiberStack[index]=fiber;\n  }\n\n  cursor.current=value;\n}\n\nvar warnedAboutMissingGetChildContext;\n\n{\n  warnedAboutMissingGetChildContext={};\n}\n\nvar emptyContextObject={};\n\n{\n  Object.freeze(emptyContextObject);\n} // A cursor to the current merged context object on the stack.\n\n\nvar contextStackCursor=createCursor(emptyContextObject); // A cursor to a boolean indicating whether the context has changed.\n\nvar didPerformWorkStackCursor=createCursor(false); // Keep track of the previous context object that was on the stack.\n// We use this to get access to the parent context after we have already\n// pushed the next context provider, and now need to merge their contexts.\n\nvar previousContext=emptyContextObject;\n\nfunction getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider){\n  {\n    if(didPushOwnContextIfProvider&&isContextProvider(Component)){\n      // If the fiber is a context provider itself, when we read its context\n      // we may have already pushed its own child context on the stack. A context\n      // provider should not \"see\" its own child context. Therefore we read the\n      // previous (parent) context instead for a context provider.\n      return previousContext;\n    }\n\n    return contextStackCursor.current;\n  }\n}\n\nfunction cacheContext(workInProgress, unmaskedContext, maskedContext){\n  {\n    var instance=workInProgress.stateNode;\n    instance.__reactInternalMemoizedUnmaskedChildContext=unmaskedContext;\n    instance.__reactInternalMemoizedMaskedChildContext=maskedContext;\n  }\n}\n\nfunction getMaskedContext(workInProgress, unmaskedContext){\n  {\n    var type=workInProgress.type;\n    var contextTypes=type.contextTypes;\n\n    if(!contextTypes){\n      return emptyContextObject;\n    } // Avoid recreating masked context unless unmasked context has changed.\n    // Failing to do this will result in unnecessary calls to componentWillReceiveProps.\n    // This may trigger infinite loops if componentWillReceiveProps calls setState.\n\n\n    var instance=workInProgress.stateNode;\n\n    if(instance&&instance.__reactInternalMemoizedUnmaskedChildContext===unmaskedContext){\n      return instance.__reactInternalMemoizedMaskedChildContext;\n    }\n\n    var context={};\n\n    for (var key in contextTypes){\n      context[key]=unmaskedContext[key];\n    }\n\n    {\n      var name=getComponentName(type)||'Unknown';\n      checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);\n    } // Cache unmasked context so we can avoid recreating masked context unless necessary.\n    // Context is created before the class component is instantiated so check for instance.\n\n\n    if(instance){\n      cacheContext(workInProgress, unmaskedContext, context);\n    }\n\n    return context;\n  }\n}\n\nfunction hasContextChanged(){\n  {\n    return didPerformWorkStackCursor.current;\n  }\n}\n\nfunction isContextProvider(type){\n  {\n    var childContextTypes=type.childContextTypes;\n    return childContextTypes!==null&&childContextTypes!==undefined;\n  }\n}\n\nfunction popContext(fiber){\n  {\n    pop(didPerformWorkStackCursor, fiber);\n    pop(contextStackCursor, fiber);\n  }\n}\n\nfunction popTopLevelContextObject(fiber){\n  {\n    pop(didPerformWorkStackCursor, fiber);\n    pop(contextStackCursor, fiber);\n  }\n}\n\nfunction pushTopLevelContextObject(fiber, context, didChange){\n  {\n    if(!(contextStackCursor.current===emptyContextObject)){\n      {\n        throw Error(\"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n\n    push(contextStackCursor, context, fiber);\n    push(didPerformWorkStackCursor, didChange, fiber);\n  }\n}\n\nfunction processChildContext(fiber, type, parentContext){\n  {\n    var instance=fiber.stateNode;\n    var childContextTypes=type.childContextTypes; // TODO (bvaughn) Replace this behavior with an invariant() in the future.\n    // It has only been added in Fiber to match the (unintentional) behavior in Stack.\n\n    if(typeof instance.getChildContext!=='function'){\n      {\n        var componentName=getComponentName(type)||'Unknown';\n\n        if(!warnedAboutMissingGetChildContext[componentName]){\n          warnedAboutMissingGetChildContext[componentName]=true;\n\n          error('%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);\n        }\n      }\n\n      return parentContext;\n    }\n\n    var childContext;\n    startPhaseTimer(fiber, 'getChildContext');\n    childContext=instance.getChildContext();\n    stopPhaseTimer();\n\n    for (var contextKey in childContext){\n      if(!(contextKey in childContextTypes)){\n        {\n          throw Error((getComponentName(type)||'Unknown') + \".getChildContext(): key \\\"\" + contextKey + \"\\\" is not defined in childContextTypes.\");\n        }\n      }\n    }\n\n    {\n      var name=getComponentName(type)||'Unknown';\n      checkPropTypes(childContextTypes, childContext, 'child context', name, // In practice, there is one case in which we won't get a stack. It's when\n      // somebody calls unstable_renderSubtreeIntoContainer() and we process\n      // context from the parent component instance. The stack will be missing\n      // because it's outside of the reconciliation, and so the pointer has not\n      // been set. This is rare and doesn't matter. We'll also remove that API.\n      getCurrentFiberStackInDev);\n    }\n\n    return _assign({}, parentContext, {}, childContext);\n  }\n}\n\nfunction pushContextProvider(workInProgress){\n  {\n    var instance=workInProgress.stateNode; // We push the context as early as possible to ensure stack integrity.\n    // If the instance does not exist yet, we will push null at first,\n    // and replace it on the stack later when invalidating the context.\n\n    var memoizedMergedChildContext=instance&&instance.__reactInternalMemoizedMergedChildContext||emptyContextObject; // Remember the parent context so we can merge with it later.\n    // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.\n\n    previousContext=contextStackCursor.current;\n    push(contextStackCursor, memoizedMergedChildContext, workInProgress);\n    push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);\n    return true;\n  }\n}\n\nfunction invalidateContextProvider(workInProgress, type, didChange){\n  {\n    var instance=workInProgress.stateNode;\n\n    if(!instance){\n      {\n        throw Error(\"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n\n    if(didChange){\n      // Merge parent and own context.\n      // Skip this if we're not updating due to sCU.\n      // This avoids unnecessarily recomputing memoized values.\n      var mergedContext=processChildContext(workInProgress, type, previousContext);\n      instance.__reactInternalMemoizedMergedChildContext=mergedContext; // Replace the old (or empty) context with the new one.\n      // It is important to unwind the context in the reverse order.\n\n      pop(didPerformWorkStackCursor, workInProgress);\n      pop(contextStackCursor, workInProgress); // Now push the new context and mark that it has changed.\n\n      push(contextStackCursor, mergedContext, workInProgress);\n      push(didPerformWorkStackCursor, didChange, workInProgress);\n    }else{\n      pop(didPerformWorkStackCursor, workInProgress);\n      push(didPerformWorkStackCursor, didChange, workInProgress);\n    }\n  }\n}\n\nfunction findCurrentUnmaskedContext(fiber){\n  {\n    // Currently this is only used with renderSubtreeIntoContainer; not sure if it\n    // makes sense elsewhere\n    if(!(isFiberMounted(fiber)&&fiber.tag===ClassComponent)){\n      {\n        throw Error(\"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n\n    var node=fiber;\n\n    do {\n      switch (node.tag){\n        case HostRoot:\n          return node.stateNode.context;\n\n        case ClassComponent:\n          {\n            var Component=node.type;\n\n            if(isContextProvider(Component)){\n              return node.stateNode.__reactInternalMemoizedMergedChildContext;\n            }\n\n            break;\n          }\n      }\n\n      node=node.return;\n    } while (node!==null);\n\n    {\n      {\n        throw Error(\"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n  }\n}\n\nvar LegacyRoot=0;\nvar BlockingRoot=1;\nvar ConcurrentRoot=2;\n\nvar Scheduler_runWithPriority=Scheduler.unstable_runWithPriority,\n    Scheduler_scheduleCallback=Scheduler.unstable_scheduleCallback,\n    Scheduler_cancelCallback=Scheduler.unstable_cancelCallback,\n    Scheduler_shouldYield=Scheduler.unstable_shouldYield,\n    Scheduler_requestPaint=Scheduler.unstable_requestPaint,\n    Scheduler_now=Scheduler.unstable_now,\n    Scheduler_getCurrentPriorityLevel=Scheduler.unstable_getCurrentPriorityLevel,\n    Scheduler_ImmediatePriority=Scheduler.unstable_ImmediatePriority,\n    Scheduler_UserBlockingPriority=Scheduler.unstable_UserBlockingPriority,\n    Scheduler_NormalPriority=Scheduler.unstable_NormalPriority,\n    Scheduler_LowPriority=Scheduler.unstable_LowPriority,\n    Scheduler_IdlePriority=Scheduler.unstable_IdlePriority;\n\n{\n  // Provide explicit error message when production+profiling bundle of e.g.\n  // react-dom is used with production (non-profiling) bundle of\n  // scheduler/tracing\n  if(!(tracing.__interactionsRef!=null&&tracing.__interactionsRef.current!=null)){\n    {\n      throw Error(\"It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling\");\n    }\n  }\n}\n\nvar fakeCallbackNode={}; // Except for NoPriority, these correspond to Scheduler priorities. We use\n// ascending numbers so we can compare them like numbers. They start at 90 to\n// avoid clashing with Scheduler's priorities.\n\nvar ImmediatePriority=99;\nvar UserBlockingPriority$1=98;\nvar NormalPriority=97;\nvar LowPriority=96;\nvar IdlePriority=95; // NoPriority is the absence of priority. Also React-only.\n\nvar NoPriority=90;\nvar shouldYield=Scheduler_shouldYield;\nvar requestPaint=// Fall back gracefully if we're running an older version of Scheduler.\nScheduler_requestPaint!==undefined ? Scheduler_requestPaint:function (){};\nvar syncQueue=null;\nvar immediateQueueCallbackNode=null;\nvar isFlushingSyncQueue=false;\nvar initialTimeMs=Scheduler_now(); // If the initial timestamp is reasonably small, use Scheduler's `now` directly.\n// This will be the case for modern browsers that support `performance.now`. In\n// older browsers, Scheduler falls back to `Date.now`, which returns a Unix\n// timestamp. In that case, subtract the module initialization time to simulate\n// the behavior of performance.now and keep our times small enough to fit\n// within 32 bits.\n// TODO: Consider lifting this into Scheduler.\n\nvar now=initialTimeMs < 10000 ? Scheduler_now:function (){\n  return Scheduler_now() - initialTimeMs;\n};\nfunction getCurrentPriorityLevel(){\n  switch (Scheduler_getCurrentPriorityLevel()){\n    case Scheduler_ImmediatePriority:\n      return ImmediatePriority;\n\n    case Scheduler_UserBlockingPriority:\n      return UserBlockingPriority$1;\n\n    case Scheduler_NormalPriority:\n      return NormalPriority;\n\n    case Scheduler_LowPriority:\n      return LowPriority;\n\n    case Scheduler_IdlePriority:\n      return IdlePriority;\n\n    default:\n      {\n        {\n          throw Error(\"Unknown priority level.\");\n        }\n      }\n\n  }\n}\n\nfunction reactPriorityToSchedulerPriority(reactPriorityLevel){\n  switch (reactPriorityLevel){\n    case ImmediatePriority:\n      return Scheduler_ImmediatePriority;\n\n    case UserBlockingPriority$1:\n      return Scheduler_UserBlockingPriority;\n\n    case NormalPriority:\n      return Scheduler_NormalPriority;\n\n    case LowPriority:\n      return Scheduler_LowPriority;\n\n    case IdlePriority:\n      return Scheduler_IdlePriority;\n\n    default:\n      {\n        {\n          throw Error(\"Unknown priority level.\");\n        }\n      }\n\n  }\n}\n\nfunction runWithPriority$1(reactPriorityLevel, fn){\n  var priorityLevel=reactPriorityToSchedulerPriority(reactPriorityLevel);\n  return Scheduler_runWithPriority(priorityLevel, fn);\n}\nfunction scheduleCallback(reactPriorityLevel, callback, options){\n  var priorityLevel=reactPriorityToSchedulerPriority(reactPriorityLevel);\n  return Scheduler_scheduleCallback(priorityLevel, callback, options);\n}\nfunction scheduleSyncCallback(callback){\n  // Push this callback into an internal queue. We'll flush these either in\n  // the next tick, or earlier if something calls `flushSyncCallbackQueue`.\n  if(syncQueue===null){\n    syncQueue=[callback]; // Flush the queue in the next tick, at the earliest.\n\n    immediateQueueCallbackNode=Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);\n  }else{\n    // Push onto existing queue. Don't need to schedule a callback because\n    // we already scheduled one when we created the queue.\n    syncQueue.push(callback);\n  }\n\n  return fakeCallbackNode;\n}\nfunction cancelCallback(callbackNode){\n  if(callbackNode!==fakeCallbackNode){\n    Scheduler_cancelCallback(callbackNode);\n  }\n}\nfunction flushSyncCallbackQueue(){\n  if(immediateQueueCallbackNode!==null){\n    var node=immediateQueueCallbackNode;\n    immediateQueueCallbackNode=null;\n    Scheduler_cancelCallback(node);\n  }\n\n  flushSyncCallbackQueueImpl();\n}\n\nfunction flushSyncCallbackQueueImpl(){\n  if(!isFlushingSyncQueue&&syncQueue!==null){\n    // Prevent re-entrancy.\n    isFlushingSyncQueue=true;\n    var i=0;\n\n    try {\n      var _isSync=true;\n      var queue=syncQueue;\n      runWithPriority$1(ImmediatePriority, function (){\n        for (; i < queue.length; i++){\n          var callback=queue[i];\n\n          do {\n            callback=callback(_isSync);\n          } while (callback!==null);\n        }\n      });\n      syncQueue=null;\n    } catch (error){\n      // If something throws, leave the remaining callbacks on the queue.\n      if(syncQueue!==null){\n        syncQueue=syncQueue.slice(i + 1);\n      } // Resume flushing in the next tick\n\n\n      Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);\n      throw error;\n    } finally {\n      isFlushingSyncQueue=false;\n    }\n  }\n}\n\nvar NoMode=0;\nvar StrictMode=1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root\n// tag instead\n\nvar BlockingMode=2;\nvar ConcurrentMode=4;\nvar ProfileMode=8;\n\n// Max 31 bit integer. The max integer size in V8 for 32-bit systems.\n// Math.pow(2, 30) - 1\n// 0b111111111111111111111111111111\nvar MAX_SIGNED_31_BIT_INT=1073741823;\n\nvar NoWork=0; // TODO: Think of a better name for Never. The key difference with Idle is that\n// Never work can be committed in an inconsistent state without tearing the UI.\n// The main example is offscreen content, like a hidden subtree. So one possible\n// name is Offscreen. However, it also includes dehydrated Suspense boundaries,\n// which are inconsistent in the sense that they haven't finished yet, but\n// aren't visibly inconsistent because the server rendered HTML matches what the\n// hydrated tree would look like.\n\nvar Never=1; // Idle is slightly higher priority than Never. It must completely finish in\n// order to be consistent.\n\nvar Idle=2; // Continuous Hydration is slightly higher than Idle and is used to increase\n// priority of hover targets.\n\nvar ContinuousHydration=3;\nvar Sync=MAX_SIGNED_31_BIT_INT;\nvar Batched=Sync - 1;\nvar UNIT_SIZE=10;\nvar MAGIC_NUMBER_OFFSET=Batched - 1; // 1 unit of expiration time represents 10ms.\n\nfunction msToExpirationTime(ms){\n  // Always subtract from the offset so that we don't clash with the magic number for NoWork.\n  return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);\n}\nfunction expirationTimeToMs(expirationTime){\n  return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;\n}\n\nfunction ceiling(num, precision){\n  return ((num / precision | 0) + 1) * precision;\n}\n\nfunction computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs){\n  return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);\n} // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update\n// the names to reflect.\n\n\nvar LOW_PRIORITY_EXPIRATION=5000;\nvar LOW_PRIORITY_BATCH_SIZE=250;\nfunction computeAsyncExpiration(currentTime){\n  return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);\n}\nfunction computeSuspenseExpiration(currentTime, timeoutMs){\n  // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?\n  return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);\n} // We intentionally set a higher expiration time for interactive updates in\n// dev than in production.\n//\n// If the main thread is being blocked so long that you hit the expiration,\n// it's a problem that could be solved with better scheduling.\n//\n// People will be more likely to notice this and fix it with the long\n// expiration time in development.\n//\n// In production we opt for better UX at the risk of masking scheduling\n// problems, by expiring fast.\n\nvar HIGH_PRIORITY_EXPIRATION=500 ;\nvar HIGH_PRIORITY_BATCH_SIZE=100;\nfunction computeInteractiveExpiration(currentTime){\n  return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);\n}\nfunction inferPriorityFromExpirationTime(currentTime, expirationTime){\n  if(expirationTime===Sync){\n    return ImmediatePriority;\n  }\n\n  if(expirationTime===Never||expirationTime===Idle){\n    return IdlePriority;\n  }\n\n  var msUntil=expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);\n\n  if(msUntil <=0){\n    return ImmediatePriority;\n  }\n\n  if(msUntil <=HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE){\n    return UserBlockingPriority$1;\n  }\n\n  if(msUntil <=LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE){\n    return NormalPriority;\n  } // TODO: Handle LowPriority\n  // Assume anything lower has idle priority\n\n\n  return IdlePriority;\n}\n\nvar ReactStrictModeWarnings={\n  recordUnsafeLifecycleWarnings: function (fiber, instance){},\n  flushPendingUnsafeLifecycleWarnings: function (){},\n  recordLegacyContextWarning: function (fiber, instance){},\n  flushLegacyContextWarning: function (){},\n  discardPendingWarnings: function (){}\n};\n\n{\n  var findStrictRoot=function (fiber){\n    var maybeStrictRoot=null;\n    var node=fiber;\n\n    while (node!==null){\n      if(node.mode & StrictMode){\n        maybeStrictRoot=node;\n      }\n\n      node=node.return;\n    }\n\n    return maybeStrictRoot;\n  };\n\n  var setToSortedString=function (set){\n    var array=[];\n    set.forEach(function (value){\n      array.push(value);\n    });\n    return array.sort().join(', ');\n  };\n\n  var pendingComponentWillMountWarnings=[];\n  var pendingUNSAFE_ComponentWillMountWarnings=[];\n  var pendingComponentWillReceivePropsWarnings=[];\n  var pendingUNSAFE_ComponentWillReceivePropsWarnings=[];\n  var pendingComponentWillUpdateWarnings=[];\n  var pendingUNSAFE_ComponentWillUpdateWarnings=[]; // Tracks components we have already warned about.\n\n  var didWarnAboutUnsafeLifecycles=new Set();\n\n  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings=function (fiber, instance){\n    // Dedup strategy: Warn once per component.\n    if(didWarnAboutUnsafeLifecycles.has(fiber.type)){\n      return;\n    }\n\n    if(typeof instance.componentWillMount==='function'&&// Don't warn about react-lifecycles-compat polyfilled components.\n    instance.componentWillMount.__suppressDeprecationWarning!==true){\n      pendingComponentWillMountWarnings.push(fiber);\n    }\n\n    if(fiber.mode & StrictMode&&typeof instance.UNSAFE_componentWillMount==='function'){\n      pendingUNSAFE_ComponentWillMountWarnings.push(fiber);\n    }\n\n    if(typeof instance.componentWillReceiveProps==='function'&&instance.componentWillReceiveProps.__suppressDeprecationWarning!==true){\n      pendingComponentWillReceivePropsWarnings.push(fiber);\n    }\n\n    if(fiber.mode & StrictMode&&typeof instance.UNSAFE_componentWillReceiveProps==='function'){\n      pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);\n    }\n\n    if(typeof instance.componentWillUpdate==='function'&&instance.componentWillUpdate.__suppressDeprecationWarning!==true){\n      pendingComponentWillUpdateWarnings.push(fiber);\n    }\n\n    if(fiber.mode & StrictMode&&typeof instance.UNSAFE_componentWillUpdate==='function'){\n      pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);\n    }\n  };\n\n  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings=function (){\n    // We do an initial pass to gather component names\n    var componentWillMountUniqueNames=new Set();\n\n    if(pendingComponentWillMountWarnings.length > 0){\n      pendingComponentWillMountWarnings.forEach(function (fiber){\n        componentWillMountUniqueNames.add(getComponentName(fiber.type)||'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingComponentWillMountWarnings=[];\n    }\n\n    var UNSAFE_componentWillMountUniqueNames=new Set();\n\n    if(pendingUNSAFE_ComponentWillMountWarnings.length > 0){\n      pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber){\n        UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type)||'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingUNSAFE_ComponentWillMountWarnings=[];\n    }\n\n    var componentWillReceivePropsUniqueNames=new Set();\n\n    if(pendingComponentWillReceivePropsWarnings.length > 0){\n      pendingComponentWillReceivePropsWarnings.forEach(function (fiber){\n        componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type)||'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingComponentWillReceivePropsWarnings=[];\n    }\n\n    var UNSAFE_componentWillReceivePropsUniqueNames=new Set();\n\n    if(pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0){\n      pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber){\n        UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type)||'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingUNSAFE_ComponentWillReceivePropsWarnings=[];\n    }\n\n    var componentWillUpdateUniqueNames=new Set();\n\n    if(pendingComponentWillUpdateWarnings.length > 0){\n      pendingComponentWillUpdateWarnings.forEach(function (fiber){\n        componentWillUpdateUniqueNames.add(getComponentName(fiber.type)||'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingComponentWillUpdateWarnings=[];\n    }\n\n    var UNSAFE_componentWillUpdateUniqueNames=new Set();\n\n    if(pendingUNSAFE_ComponentWillUpdateWarnings.length > 0){\n      pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber){\n        UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type)||'Component');\n        didWarnAboutUnsafeLifecycles.add(fiber.type);\n      });\n      pendingUNSAFE_ComponentWillUpdateWarnings=[];\n    } // Finally, we flush all the warnings\n    // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'\n\n\n    if(UNSAFE_componentWillMountUniqueNames.size > 0){\n      var sortedNames=setToSortedString(UNSAFE_componentWillMountUniqueNames);\n\n      error('Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\\n\\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n' + '\\nPlease update the following components: %s', sortedNames);\n    }\n\n    if(UNSAFE_componentWillReceivePropsUniqueNames.size > 0){\n      var _sortedNames=setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);\n\n      error('Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + \"* If you're updating state whenever props change, \" + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\\n' + '\\nPlease update the following components: %s', _sortedNames);\n    }\n\n    if(UNSAFE_componentWillUpdateUniqueNames.size > 0){\n      var _sortedNames2=setToSortedString(UNSAFE_componentWillUpdateUniqueNames);\n\n      error('Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + '\\nPlease update the following components: %s', _sortedNames2);\n    }\n\n    if(componentWillMountUniqueNames.size > 0){\n      var _sortedNames3=setToSortedString(componentWillMountUniqueNames);\n\n      warn('componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\\n\\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\\n' + '\\nPlease update the following components: %s', _sortedNames3);\n    }\n\n    if(componentWillReceivePropsUniqueNames.size > 0){\n      var _sortedNames4=setToSortedString(componentWillReceivePropsUniqueNames);\n\n      warn('componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + \"* If you're updating state whenever props change, refactor your \" + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\\n' + '\\nPlease update the following components: %s', _sortedNames4);\n    }\n\n    if(componentWillUpdateUniqueNames.size > 0){\n      var _sortedNames5=setToSortedString(componentWillUpdateUniqueNames);\n\n      warn('componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-unsafe-component-lifecycles for details.\\n\\n' + '* Move data fetching code or side effects to componentDidUpdate.\\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\\n' + '\\nPlease update the following components: %s', _sortedNames5);\n    }\n  };\n\n  var pendingLegacyContextWarning=new Map(); // Tracks components we have already warned about.\n\n  var didWarnAboutLegacyContext=new Set();\n\n  ReactStrictModeWarnings.recordLegacyContextWarning=function (fiber, instance){\n    var strictRoot=findStrictRoot(fiber);\n\n    if(strictRoot===null){\n      error('Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');\n\n      return;\n    } // Dedup strategy: Warn once per component.\n\n\n    if(didWarnAboutLegacyContext.has(fiber.type)){\n      return;\n    }\n\n    var warningsForRoot=pendingLegacyContextWarning.get(strictRoot);\n\n    if(fiber.type.contextTypes!=null||fiber.type.childContextTypes!=null||instance!==null&&typeof instance.getChildContext==='function'){\n      if(warningsForRoot===undefined){\n        warningsForRoot=[];\n        pendingLegacyContextWarning.set(strictRoot, warningsForRoot);\n      }\n\n      warningsForRoot.push(fiber);\n    }\n  };\n\n  ReactStrictModeWarnings.flushLegacyContextWarning=function (){\n    pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot){\n      if(fiberArray.length===0){\n        return;\n      }\n\n      var firstFiber=fiberArray[0];\n      var uniqueNames=new Set();\n      fiberArray.forEach(function (fiber){\n        uniqueNames.add(getComponentName(fiber.type)||'Component');\n        didWarnAboutLegacyContext.add(fiber.type);\n      });\n      var sortedNames=setToSortedString(uniqueNames);\n      var firstComponentStack=getStackByFiberInDevAndProd(firstFiber);\n\n      error('Legacy context API has been detected within a strict-mode tree.' + '\\n\\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\\n\\nPlease update the following components: %s' + '\\n\\nLearn more about this warning here: https://fb.me/react-legacy-context' + '%s', sortedNames, firstComponentStack);\n    });\n  };\n\n  ReactStrictModeWarnings.discardPendingWarnings=function (){\n    pendingComponentWillMountWarnings=[];\n    pendingUNSAFE_ComponentWillMountWarnings=[];\n    pendingComponentWillReceivePropsWarnings=[];\n    pendingUNSAFE_ComponentWillReceivePropsWarnings=[];\n    pendingComponentWillUpdateWarnings=[];\n    pendingUNSAFE_ComponentWillUpdateWarnings=[];\n    pendingLegacyContextWarning=new Map();\n  };\n}\n\nvar resolveFamily=null; // $FlowFixMe Flow gets confused by a WeakSet feature check below.\n\nvar failedBoundaries=null;\nvar setRefreshHandler=function (handler){\n  {\n    resolveFamily=handler;\n  }\n};\nfunction resolveFunctionForHotReloading(type){\n  {\n    if(resolveFamily===null){\n      // Hot reloading is disabled.\n      return type;\n    }\n\n    var family=resolveFamily(type);\n\n    if(family===undefined){\n      return type;\n    } // Use the latest known implementation.\n\n\n    return family.current;\n  }\n}\nfunction resolveClassForHotReloading(type){\n  // No implementation differences.\n  return resolveFunctionForHotReloading(type);\n}\nfunction resolveForwardRefForHotReloading(type){\n  {\n    if(resolveFamily===null){\n      // Hot reloading is disabled.\n      return type;\n    }\n\n    var family=resolveFamily(type);\n\n    if(family===undefined){\n      // Check if we're dealing with a real forwardRef. Don't want to crash early.\n      if(type!==null&&type!==undefined&&typeof type.render==='function'){\n        // ForwardRef is special because its resolved .type is an object,\n        // but it's possible that we only have its inner render function in the map.\n        // If that inner render function is different, we'll build a new forwardRef type.\n        var currentRender=resolveFunctionForHotReloading(type.render);\n\n        if(type.render!==currentRender){\n          var syntheticType={\n            $$typeof: REACT_FORWARD_REF_TYPE,\n            render: currentRender\n          };\n\n          if(type.displayName!==undefined){\n            syntheticType.displayName=type.displayName;\n          }\n\n          return syntheticType;\n        }\n      }\n\n      return type;\n    } // Use the latest known implementation.\n\n\n    return family.current;\n  }\n}\nfunction isCompatibleFamilyForHotReloading(fiber, element){\n  {\n    if(resolveFamily===null){\n      // Hot reloading is disabled.\n      return false;\n    }\n\n    var prevType=fiber.elementType;\n    var nextType=element.type; // If we got here, we know types aren't===equal.\n\n    var needsCompareFamilies=false;\n    var $$typeofNextType=typeof nextType==='object'&&nextType!==null ? nextType.$$typeof:null;\n\n    switch (fiber.tag){\n      case ClassComponent:\n        {\n          if(typeof nextType==='function'){\n            needsCompareFamilies=true;\n          }\n\n          break;\n        }\n\n      case FunctionComponent:\n        {\n          if(typeof nextType==='function'){\n            needsCompareFamilies=true;\n          }else if($$typeofNextType===REACT_LAZY_TYPE){\n            // We don't know the inner type yet.\n            // We're going to assume that the lazy inner type is stable,\n            // and so it is sufficient to avoid reconciling it away.\n            // We're not going to unwrap or actually use the new lazy type.\n            needsCompareFamilies=true;\n          }\n\n          break;\n        }\n\n      case ForwardRef:\n        {\n          if($$typeofNextType===REACT_FORWARD_REF_TYPE){\n            needsCompareFamilies=true;\n          }else if($$typeofNextType===REACT_LAZY_TYPE){\n            needsCompareFamilies=true;\n          }\n\n          break;\n        }\n\n      case MemoComponent:\n      case SimpleMemoComponent:\n        {\n          if($$typeofNextType===REACT_MEMO_TYPE){\n            // TODO: if it was but can no longer be simple,\n            // we shouldn't set this.\n            needsCompareFamilies=true;\n          }else if($$typeofNextType===REACT_LAZY_TYPE){\n            needsCompareFamilies=true;\n          }\n\n          break;\n        }\n\n      default:\n        return false;\n    } // Check if both types have a family and it's the same one.\n\n\n    if(needsCompareFamilies){\n      // Note: memo() and forwardRef() we'll compare outer rather than inner type.\n      // This means both of them need to be registered to preserve state.\n      // If we unwrapped and compared the inner types for wrappers instead,\n      // then we would risk falsely saying two separate memo(Foo)\n      // calls are equivalent because they wrap the same Foo function.\n      var prevFamily=resolveFamily(prevType);\n\n      if(prevFamily!==undefined&&prevFamily===resolveFamily(nextType)){\n        return true;\n      }\n    }\n\n    return false;\n  }\n}\nfunction markFailedErrorBoundaryForHotReloading(fiber){\n  {\n    if(resolveFamily===null){\n      // Hot reloading is disabled.\n      return;\n    }\n\n    if(typeof WeakSet!=='function'){\n      return;\n    }\n\n    if(failedBoundaries===null){\n      failedBoundaries=new WeakSet();\n    }\n\n    failedBoundaries.add(fiber);\n  }\n}\nvar scheduleRefresh=function (root, update){\n  {\n    if(resolveFamily===null){\n      // Hot reloading is disabled.\n      return;\n    }\n\n    var staleFamilies=update.staleFamilies,\n        updatedFamilies=update.updatedFamilies;\n    flushPassiveEffects();\n    flushSync(function (){\n      scheduleFibersWithFamiliesRecursively(root.current, updatedFamilies, staleFamilies);\n    });\n  }\n};\nvar scheduleRoot=function (root, element){\n  {\n    if(root.context!==emptyContextObject){\n      // Super edge case: root has a legacy _renderSubtree context\n      // but we don't know the parentComponent so we can't pass it.\n      // Just ignore. We'll delete this with _renderSubtree code path later.\n      return;\n    }\n\n    flushPassiveEffects();\n    syncUpdates(function (){\n      updateContainer(element, root, null, null);\n    });\n  }\n};\n\nfunction scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies){\n  {\n    var alternate=fiber.alternate,\n        child=fiber.child,\n        sibling=fiber.sibling,\n        tag=fiber.tag,\n        type=fiber.type;\n    var candidateType=null;\n\n    switch (tag){\n      case FunctionComponent:\n      case SimpleMemoComponent:\n      case ClassComponent:\n        candidateType=type;\n        break;\n\n      case ForwardRef:\n        candidateType=type.render;\n        break;\n    }\n\n    if(resolveFamily===null){\n      throw new Error('Expected resolveFamily to be set during hot reload.');\n    }\n\n    var needsRender=false;\n    var needsRemount=false;\n\n    if(candidateType!==null){\n      var family=resolveFamily(candidateType);\n\n      if(family!==undefined){\n        if(staleFamilies.has(family)){\n          needsRemount=true;\n        }else if(updatedFamilies.has(family)){\n          if(tag===ClassComponent){\n            needsRemount=true;\n          }else{\n            needsRender=true;\n          }\n        }\n      }\n    }\n\n    if(failedBoundaries!==null){\n      if(failedBoundaries.has(fiber)||alternate!==null&&failedBoundaries.has(alternate)){\n        needsRemount=true;\n      }\n    }\n\n    if(needsRemount){\n      fiber._debugNeedsRemount=true;\n    }\n\n    if(needsRemount||needsRender){\n      scheduleWork(fiber, Sync);\n    }\n\n    if(child!==null&&!needsRemount){\n      scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);\n    }\n\n    if(sibling!==null){\n      scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);\n    }\n  }\n}\n\nvar findHostInstancesForRefresh=function (root, families){\n  {\n    var hostInstances=new Set();\n    var types=new Set(families.map(function (family){\n      return family.current;\n    }));\n    findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);\n    return hostInstances;\n  }\n};\n\nfunction findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances){\n  {\n    var child=fiber.child,\n        sibling=fiber.sibling,\n        tag=fiber.tag,\n        type=fiber.type;\n    var candidateType=null;\n\n    switch (tag){\n      case FunctionComponent:\n      case SimpleMemoComponent:\n      case ClassComponent:\n        candidateType=type;\n        break;\n\n      case ForwardRef:\n        candidateType=type.render;\n        break;\n    }\n\n    var didMatch=false;\n\n    if(candidateType!==null){\n      if(types.has(candidateType)){\n        didMatch=true;\n      }\n    }\n\n    if(didMatch){\n      // We have a match. This only drills down to the closest host components.\n      // There's no need to search deeper because for the purpose of giving\n      // visual feedback, \"flashing\" outermost parent rectangles is sufficient.\n      findHostInstancesForFiberShallowly(fiber, hostInstances);\n    }else{\n      // If there's no match, maybe there will be one further down in the child tree.\n      if(child!==null){\n        findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);\n      }\n    }\n\n    if(sibling!==null){\n      findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);\n    }\n  }\n}\n\nfunction findHostInstancesForFiberShallowly(fiber, hostInstances){\n  {\n    var foundHostInstances=findChildHostInstancesForFiberShallowly(fiber, hostInstances);\n\n    if(foundHostInstances){\n      return;\n    } // If we didn't find any host children, fallback to closest host parent.\n\n\n    var node=fiber;\n\n    while (true){\n      switch (node.tag){\n        case HostComponent:\n          hostInstances.add(node.stateNode);\n          return;\n\n        case HostPortal:\n          hostInstances.add(node.stateNode.containerInfo);\n          return;\n\n        case HostRoot:\n          hostInstances.add(node.stateNode.containerInfo);\n          return;\n      }\n\n      if(node.return===null){\n        throw new Error('Expected to reach root first.');\n      }\n\n      node=node.return;\n    }\n  }\n}\n\nfunction findChildHostInstancesForFiberShallowly(fiber, hostInstances){\n  {\n    var node=fiber;\n    var foundHostInstances=false;\n\n    while (true){\n      if(node.tag===HostComponent){\n        // We got a match.\n        foundHostInstances=true;\n        hostInstances.add(node.stateNode); // There may still be more, so keep searching.\n      }else if(node.child!==null){\n        node.child.return=node;\n        node=node.child;\n        continue;\n      }\n\n      if(node===fiber){\n        return foundHostInstances;\n      }\n\n      while (node.sibling===null){\n        if(node.return===null||node.return===fiber){\n          return foundHostInstances;\n        }\n\n        node=node.return;\n      }\n\n      node.sibling.return=node.return;\n      node=node.sibling;\n    }\n  }\n\n  return false;\n}\n\nfunction resolveDefaultProps(Component, baseProps){\n  if(Component&&Component.defaultProps){\n    // Resolve default props. Taken from ReactElement\n    var props=_assign({}, baseProps);\n\n    var defaultProps=Component.defaultProps;\n\n    for (var propName in defaultProps){\n      if(props[propName]===undefined){\n        props[propName]=defaultProps[propName];\n      }\n    }\n\n    return props;\n  }\n\n  return baseProps;\n}\nfunction readLazyComponentType(lazyComponent){\n  initializeLazyComponentType(lazyComponent);\n\n  if(lazyComponent._status!==Resolved){\n    throw lazyComponent._result;\n  }\n\n  return lazyComponent._result;\n}\n\nvar valueCursor=createCursor(null);\nvar rendererSigil;\n\n{\n  // Use this to detect multiple renderers using the same context\n  rendererSigil={};\n}\n\nvar currentlyRenderingFiber=null;\nvar lastContextDependency=null;\nvar lastContextWithAllBitsObserved=null;\nvar isDisallowedContextReadInDEV=false;\nfunction resetContextDependencies(){\n  // This is called right before React yields execution, to ensure `readContext`\n  // cannot be called outside the render phase.\n  currentlyRenderingFiber=null;\n  lastContextDependency=null;\n  lastContextWithAllBitsObserved=null;\n\n  {\n    isDisallowedContextReadInDEV=false;\n  }\n}\nfunction enterDisallowedContextReadInDEV(){\n  {\n    isDisallowedContextReadInDEV=true;\n  }\n}\nfunction exitDisallowedContextReadInDEV(){\n  {\n    isDisallowedContextReadInDEV=false;\n  }\n}\nfunction pushProvider(providerFiber, nextValue){\n  var context=providerFiber.type._context;\n\n  {\n    push(valueCursor, context._currentValue, providerFiber);\n    context._currentValue=nextValue;\n\n    {\n      if(context._currentRenderer!==undefined&&context._currentRenderer!==null&&context._currentRenderer!==rendererSigil){\n        error('Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.');\n      }\n\n      context._currentRenderer=rendererSigil;\n    }\n  }\n}\nfunction popProvider(providerFiber){\n  var currentValue=valueCursor.current;\n  pop(valueCursor, providerFiber);\n  var context=providerFiber.type._context;\n\n  {\n    context._currentValue=currentValue;\n  }\n}\nfunction calculateChangedBits(context, newValue, oldValue){\n  if(objectIs(oldValue, newValue)){\n    // No change\n    return 0;\n  }else{\n    var changedBits=typeof context._calculateChangedBits==='function' ? context._calculateChangedBits(oldValue, newValue):MAX_SIGNED_31_BIT_INT;\n\n    {\n      if((changedBits & MAX_SIGNED_31_BIT_INT)!==changedBits){\n        error('calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits);\n      }\n    }\n\n    return changedBits | 0;\n  }\n}\nfunction scheduleWorkOnParentPath(parent, renderExpirationTime){\n  // Update the child expiration time of all the ancestors, including\n  // the alternates.\n  var node=parent;\n\n  while (node!==null){\n    var alternate=node.alternate;\n\n    if(node.childExpirationTime < renderExpirationTime){\n      node.childExpirationTime=renderExpirationTime;\n\n      if(alternate!==null&&alternate.childExpirationTime < renderExpirationTime){\n        alternate.childExpirationTime=renderExpirationTime;\n      }\n    }else if(alternate!==null&&alternate.childExpirationTime < renderExpirationTime){\n      alternate.childExpirationTime=renderExpirationTime;\n    }else{\n      // Neither alternate was updated, which means the rest of the\n      // ancestor path already has sufficient priority.\n      break;\n    }\n\n    node=node.return;\n  }\n}\nfunction propagateContextChange(workInProgress, context, changedBits, renderExpirationTime){\n  var fiber=workInProgress.child;\n\n  if(fiber!==null){\n    // Set the return pointer of the child to the work-in-progress fiber.\n    fiber.return=workInProgress;\n  }\n\n  while (fiber!==null){\n    var nextFiber=void 0; // Visit this fiber.\n\n    var list=fiber.dependencies;\n\n    if(list!==null){\n      nextFiber=fiber.child;\n      var dependency=list.firstContext;\n\n      while (dependency!==null){\n        // Check if the context matches.\n        if(dependency.context===context&&(dependency.observedBits & changedBits)!==0){\n          // Match! Schedule an update on this fiber.\n          if(fiber.tag===ClassComponent){\n            // Schedule a force update on the work-in-progress.\n            var update=createUpdate(renderExpirationTime, null);\n            update.tag=ForceUpdate; // TODO: Because we don't have a work-in-progress, this will add the\n            // update to the current fiber, too, which means it will persist even if\n            // this render is thrown away. Since it's a race condition, not sure it's\n            // worth fixing.\n\n            enqueueUpdate(fiber, update);\n          }\n\n          if(fiber.expirationTime < renderExpirationTime){\n            fiber.expirationTime=renderExpirationTime;\n          }\n\n          var alternate=fiber.alternate;\n\n          if(alternate!==null&&alternate.expirationTime < renderExpirationTime){\n            alternate.expirationTime=renderExpirationTime;\n          }\n\n          scheduleWorkOnParentPath(fiber.return, renderExpirationTime); // Mark the expiration time on the list, too.\n\n          if(list.expirationTime < renderExpirationTime){\n            list.expirationTime=renderExpirationTime;\n          } // Since we already found a match, we can stop traversing the\n          // dependency list.\n\n\n          break;\n        }\n\n        dependency=dependency.next;\n      }\n    }else if(fiber.tag===ContextProvider){\n      // Don't scan deeper if this is a matching provider\n      nextFiber=fiber.type===workInProgress.type ? null:fiber.child;\n    }else{\n      // Traverse down.\n      nextFiber=fiber.child;\n    }\n\n    if(nextFiber!==null){\n      // Set the return pointer of the child to the work-in-progress fiber.\n      nextFiber.return=fiber;\n    }else{\n      // No child. Traverse to next sibling.\n      nextFiber=fiber;\n\n      while (nextFiber!==null){\n        if(nextFiber===workInProgress){\n          // We're back to the root of this subtree. Exit.\n          nextFiber=null;\n          break;\n        }\n\n        var sibling=nextFiber.sibling;\n\n        if(sibling!==null){\n          // Set the return pointer of the sibling to the work-in-progress fiber.\n          sibling.return=nextFiber.return;\n          nextFiber=sibling;\n          break;\n        } // No more siblings. Traverse up.\n\n\n        nextFiber=nextFiber.return;\n      }\n    }\n\n    fiber=nextFiber;\n  }\n}\nfunction prepareToReadContext(workInProgress, renderExpirationTime){\n  currentlyRenderingFiber=workInProgress;\n  lastContextDependency=null;\n  lastContextWithAllBitsObserved=null;\n  var dependencies=workInProgress.dependencies;\n\n  if(dependencies!==null){\n    var firstContext=dependencies.firstContext;\n\n    if(firstContext!==null){\n      if(dependencies.expirationTime >=renderExpirationTime){\n        // Context list has a pending update. Mark that this fiber performed work.\n        markWorkInProgressReceivedUpdate();\n      } // Reset the work-in-progress list\n\n\n      dependencies.firstContext=null;\n    }\n  }\n}\nfunction readContext(context, observedBits){\n  {\n    // This warning would fire if you read context inside a Hook like useMemo.\n    // Unlike the class check below, it's not enforced in production for perf.\n    if(isDisallowedContextReadInDEV){\n      error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');\n    }\n  }\n\n  if(lastContextWithAllBitsObserved===context) ; else if(observedBits===false||observedBits===0) ; else {\n    var resolvedObservedBits; // Avoid deopting on observable arguments or heterogeneous types.\n\n    if(typeof observedBits!=='number'||observedBits===MAX_SIGNED_31_BIT_INT){\n      // Observe all updates.\n      lastContextWithAllBitsObserved=context;\n      resolvedObservedBits=MAX_SIGNED_31_BIT_INT;\n    }else{\n      resolvedObservedBits=observedBits;\n    }\n\n    var contextItem={\n      context: context,\n      observedBits: resolvedObservedBits,\n      next: null\n    };\n\n    if(lastContextDependency===null){\n      if(!(currentlyRenderingFiber!==null)){\n        {\n          throw Error(\"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().\");\n        }\n      } // This is the first dependency for this component. Create a new list.\n\n\n      lastContextDependency=contextItem;\n      currentlyRenderingFiber.dependencies={\n        expirationTime: NoWork,\n        firstContext: contextItem,\n        responders: null\n      };\n    }else{\n      // Append a new context item.\n      lastContextDependency=lastContextDependency.next=contextItem;\n    }\n  }\n\n  return  context._currentValue ;\n}\n\nvar UpdateState=0;\nvar ReplaceState=1;\nvar ForceUpdate=2;\nvar CaptureUpdate=3; // Global state that is reset at the beginning of calling `processUpdateQueue`.\n// It should only be read right after calling `processUpdateQueue`, via\n// `checkHasForceUpdateAfterProcessing`.\n\nvar hasForceUpdate=false;\nvar didWarnUpdateInsideUpdate;\nvar currentlyProcessingQueue;\n\n{\n  didWarnUpdateInsideUpdate=false;\n  currentlyProcessingQueue=null;\n}\n\nfunction initializeUpdateQueue(fiber){\n  var queue={\n    baseState: fiber.memoizedState,\n    baseQueue: null,\n    shared: {\n      pending: null\n    },\n    effects: null\n  };\n  fiber.updateQueue=queue;\n}\nfunction cloneUpdateQueue(current, workInProgress){\n  // Clone the update queue from current. Unless it's already a clone.\n  var queue=workInProgress.updateQueue;\n  var currentQueue=current.updateQueue;\n\n  if(queue===currentQueue){\n    var clone={\n      baseState: currentQueue.baseState,\n      baseQueue: currentQueue.baseQueue,\n      shared: currentQueue.shared,\n      effects: currentQueue.effects\n    };\n    workInProgress.updateQueue=clone;\n  }\n}\nfunction createUpdate(expirationTime, suspenseConfig){\n  var update={\n    expirationTime: expirationTime,\n    suspenseConfig: suspenseConfig,\n    tag: UpdateState,\n    payload: null,\n    callback: null,\n    next: null\n  };\n  update.next=update;\n\n  {\n    update.priority=getCurrentPriorityLevel();\n  }\n\n  return update;\n}\nfunction enqueueUpdate(fiber, update){\n  var updateQueue=fiber.updateQueue;\n\n  if(updateQueue===null){\n    // Only occurs if the fiber has been unmounted.\n    return;\n  }\n\n  var sharedQueue=updateQueue.shared;\n  var pending=sharedQueue.pending;\n\n  if(pending===null){\n    // This is the first update. Create a circular list.\n    update.next=update;\n  }else{\n    update.next=pending.next;\n    pending.next=update;\n  }\n\n  sharedQueue.pending=update;\n\n  {\n    if(currentlyProcessingQueue===sharedQueue&&!didWarnUpdateInsideUpdate){\n      error('An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');\n\n      didWarnUpdateInsideUpdate=true;\n    }\n  }\n}\nfunction enqueueCapturedUpdate(workInProgress, update){\n  var current=workInProgress.alternate;\n\n  if(current!==null){\n    // Ensure the work-in-progress queue is a clone\n    cloneUpdateQueue(current, workInProgress);\n  } // Captured updates go only on the work-in-progress queue.\n\n\n  var queue=workInProgress.updateQueue; // Append the update to the end of the list.\n\n  var last=queue.baseQueue;\n\n  if(last===null){\n    queue.baseQueue=update.next=update;\n    update.next=update;\n  }else{\n    update.next=last.next;\n    last.next=update;\n  }\n}\n\nfunction getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance){\n  switch (update.tag){\n    case ReplaceState:\n      {\n        var payload=update.payload;\n\n        if(typeof payload==='function'){\n          // Updater function\n          {\n            enterDisallowedContextReadInDEV();\n\n            if(workInProgress.mode & StrictMode){\n              payload.call(instance, prevState, nextProps);\n            }\n          }\n\n          var nextState=payload.call(instance, prevState, nextProps);\n\n          {\n            exitDisallowedContextReadInDEV();\n          }\n\n          return nextState;\n        } // State object\n\n\n        return payload;\n      }\n\n    case CaptureUpdate:\n      {\n        workInProgress.effectTag=workInProgress.effectTag & ~ShouldCapture | DidCapture;\n      }\n    // Intentional fallthrough\n\n    case UpdateState:\n      {\n        var _payload=update.payload;\n        var partialState;\n\n        if(typeof _payload==='function'){\n          // Updater function\n          {\n            enterDisallowedContextReadInDEV();\n\n            if(workInProgress.mode & StrictMode){\n              _payload.call(instance, prevState, nextProps);\n            }\n          }\n\n          partialState=_payload.call(instance, prevState, nextProps);\n\n          {\n            exitDisallowedContextReadInDEV();\n          }\n        }else{\n          // Partial state object\n          partialState=_payload;\n        }\n\n        if(partialState===null||partialState===undefined){\n          // Null and undefined are treated as no-ops.\n          return prevState;\n        } // Merge the partial state and the previous state.\n\n\n        return _assign({}, prevState, partialState);\n      }\n\n    case ForceUpdate:\n      {\n        hasForceUpdate=true;\n        return prevState;\n      }\n  }\n\n  return prevState;\n}\n\nfunction processUpdateQueue(workInProgress, props, instance, renderExpirationTime){\n  // This is always non-null on a ClassComponent or HostRoot\n  var queue=workInProgress.updateQueue;\n  hasForceUpdate=false;\n\n  {\n    currentlyProcessingQueue=queue.shared;\n  } // The last rebase update that is NOT part of the base state.\n\n\n  var baseQueue=queue.baseQueue; // The last pending update that hasn't been processed yet.\n\n  var pendingQueue=queue.shared.pending;\n\n  if(pendingQueue!==null){\n    // We have new updates that haven't been processed yet.\n    // We'll add them to the base queue.\n    if(baseQueue!==null){\n      // Merge the pending queue and the base queue.\n      var baseFirst=baseQueue.next;\n      var pendingFirst=pendingQueue.next;\n      baseQueue.next=pendingFirst;\n      pendingQueue.next=baseFirst;\n    }\n\n    baseQueue=pendingQueue;\n    queue.shared.pending=null; // TODO: Pass `current` as argument\n\n    var current=workInProgress.alternate;\n\n    if(current!==null){\n      var currentQueue=current.updateQueue;\n\n      if(currentQueue!==null){\n        currentQueue.baseQueue=pendingQueue;\n      }\n    }\n  } // These values may change as we process the queue.\n\n\n  if(baseQueue!==null){\n    var first=baseQueue.next; // Iterate through the list of updates to compute the result.\n\n    var newState=queue.baseState;\n    var newExpirationTime=NoWork;\n    var newBaseState=null;\n    var newBaseQueueFirst=null;\n    var newBaseQueueLast=null;\n\n    if(first!==null){\n      var update=first;\n\n      do {\n        var updateExpirationTime=update.expirationTime;\n\n        if(updateExpirationTime < renderExpirationTime){\n          // Priority is insufficient. Skip this update. If this is the first\n          // skipped update, the previous update/state is the new base\n          // update/state.\n          var clone={\n            expirationTime: update.expirationTime,\n            suspenseConfig: update.suspenseConfig,\n            tag: update.tag,\n            payload: update.payload,\n            callback: update.callback,\n            next: null\n          };\n\n          if(newBaseQueueLast===null){\n            newBaseQueueFirst=newBaseQueueLast=clone;\n            newBaseState=newState;\n          }else{\n            newBaseQueueLast=newBaseQueueLast.next=clone;\n          } // Update the remaining priority in the queue.\n\n\n          if(updateExpirationTime > newExpirationTime){\n            newExpirationTime=updateExpirationTime;\n          }\n        }else{\n          // This update does have sufficient priority.\n          if(newBaseQueueLast!==null){\n            var _clone={\n              expirationTime: Sync,\n              // This update is going to be committed so we never want uncommit it.\n              suspenseConfig: update.suspenseConfig,\n              tag: update.tag,\n              payload: update.payload,\n              callback: update.callback,\n              next: null\n            };\n            newBaseQueueLast=newBaseQueueLast.next=_clone;\n          } // Mark the event time of this update as relevant to this render pass.\n          // TODO: This should ideally use the true event time of this update rather than\n          // its priority which is a derived and not reverseable value.\n          // TODO: We should skip this update if it was already committed but currently\n          // we have no way of detecting the difference between a committed and suspended\n          // update here.\n\n\n          markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.\n\n          newState=getStateFromUpdate(workInProgress, queue, update, newState, props, instance);\n          var callback=update.callback;\n\n          if(callback!==null){\n            workInProgress.effectTag |=Callback;\n            var effects=queue.effects;\n\n            if(effects===null){\n              queue.effects=[update];\n            }else{\n              effects.push(update);\n            }\n          }\n        }\n\n        update=update.next;\n\n        if(update===null||update===first){\n          pendingQueue=queue.shared.pending;\n\n          if(pendingQueue===null){\n            break;\n          }else{\n            // An update was scheduled from inside a reducer. Add the new\n            // pending updates to the end of the list and keep processing.\n            update=baseQueue.next=pendingQueue.next;\n            pendingQueue.next=first;\n            queue.baseQueue=baseQueue=pendingQueue;\n            queue.shared.pending=null;\n          }\n        }\n      } while (true);\n    }\n\n    if(newBaseQueueLast===null){\n      newBaseState=newState;\n    }else{\n      newBaseQueueLast.next=newBaseQueueFirst;\n    }\n\n    queue.baseState=newBaseState;\n    queue.baseQueue=newBaseQueueLast; // Set the remaining expiration time to be whatever is remaining in the queue.\n    // This should be fine because the only two other things that contribute to\n    // expiration time are props and context. We're already in the middle of the\n    // begin phase by the time we start processing the queue, so we've already\n    // dealt with the props. Context in components that specify\n    // shouldComponentUpdate is tricky; but we'll have to account for\n    // that regardless.\n\n    markUnprocessedUpdateTime(newExpirationTime);\n    workInProgress.expirationTime=newExpirationTime;\n    workInProgress.memoizedState=newState;\n  }\n\n  {\n    currentlyProcessingQueue=null;\n  }\n}\n\nfunction callCallback(callback, context){\n  if(!(typeof callback==='function')){\n    {\n      throw Error(\"Invalid argument passed as callback. Expected a function. Instead received: \" + callback);\n    }\n  }\n\n  callback.call(context);\n}\n\nfunction resetHasForceUpdateBeforeProcessing(){\n  hasForceUpdate=false;\n}\nfunction checkHasForceUpdateAfterProcessing(){\n  return hasForceUpdate;\n}\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance){\n  // Commit the effects\n  var effects=finishedQueue.effects;\n  finishedQueue.effects=null;\n\n  if(effects!==null){\n    for (var i=0; i < effects.length; i++){\n      var effect=effects[i];\n      var callback=effect.callback;\n\n      if(callback!==null){\n        effect.callback=null;\n        callCallback(callback, instance);\n      }\n    }\n  }\n}\n\nvar ReactCurrentBatchConfig=ReactSharedInternals.ReactCurrentBatchConfig;\nfunction requestCurrentSuspenseConfig(){\n  return ReactCurrentBatchConfig.suspense;\n}\n\nvar fakeInternalInstance={};\nvar isArray=Array.isArray; // React.Component uses a shared frozen object by default.\n// We'll use it to determine whether we need to initialize legacy refs.\n\nvar emptyRefsObject=new React.Component().refs;\nvar didWarnAboutStateAssignmentForComponent;\nvar didWarnAboutUninitializedState;\nvar didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate;\nvar didWarnAboutLegacyLifecyclesAndDerivedState;\nvar didWarnAboutUndefinedDerivedState;\nvar warnOnUndefinedDerivedState;\nvar warnOnInvalidCallback;\nvar didWarnAboutDirectlyAssigningPropsToState;\nvar didWarnAboutContextTypeAndContextTypes;\nvar didWarnAboutInvalidateContextType;\n\n{\n  didWarnAboutStateAssignmentForComponent=new Set();\n  didWarnAboutUninitializedState=new Set();\n  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate=new Set();\n  didWarnAboutLegacyLifecyclesAndDerivedState=new Set();\n  didWarnAboutDirectlyAssigningPropsToState=new Set();\n  didWarnAboutUndefinedDerivedState=new Set();\n  didWarnAboutContextTypeAndContextTypes=new Set();\n  didWarnAboutInvalidateContextType=new Set();\n  var didWarnOnInvalidCallback=new Set();\n\n  warnOnInvalidCallback=function (callback, callerName){\n    if(callback===null||typeof callback==='function'){\n      return;\n    }\n\n    var key=callerName + \"_\" + callback;\n\n    if(!didWarnOnInvalidCallback.has(key)){\n      didWarnOnInvalidCallback.add(key);\n\n      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n    }\n  };\n\n  warnOnUndefinedDerivedState=function (type, partialState){\n    if(partialState===undefined){\n      var componentName=getComponentName(type)||'Component';\n\n      if(!didWarnAboutUndefinedDerivedState.has(componentName)){\n        didWarnAboutUndefinedDerivedState.add(componentName);\n\n        error('%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);\n      }\n    }\n  }; // This is so gross but it's at least non-critical and can be removed if\n  // it causes problems. This is meant to give a nicer error message for\n  // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,\n  // ...)) which otherwise throws a \"_processChildContext is not a function\"\n  // exception.\n\n\n  Object.defineProperty(fakeInternalInstance, '_processChildContext', {\n    enumerable: false,\n    value: function (){\n      {\n        {\n          throw Error(\"_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).\");\n        }\n      }\n    }\n  });\n  Object.freeze(fakeInternalInstance);\n}\n\nfunction applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps){\n  var prevState=workInProgress.memoizedState;\n\n  {\n    if(workInProgress.mode & StrictMode){\n      // Invoke the function an extra time to help detect side-effects.\n      getDerivedStateFromProps(nextProps, prevState);\n    }\n  }\n\n  var partialState=getDerivedStateFromProps(nextProps, prevState);\n\n  {\n    warnOnUndefinedDerivedState(ctor, partialState);\n  } // Merge the partial state and the previous state.\n\n\n  var memoizedState=partialState===null||partialState===undefined ? prevState:_assign({}, prevState, partialState);\n  workInProgress.memoizedState=memoizedState; // Once the update queue is empty, persist the derived state onto the\n  // base state.\n\n  if(workInProgress.expirationTime===NoWork){\n    // Queue is always non-null for classes\n    var updateQueue=workInProgress.updateQueue;\n    updateQueue.baseState=memoizedState;\n  }\n}\nvar classComponentUpdater={\n  isMounted: isMounted,\n  enqueueSetState: function (inst, payload, callback){\n    var fiber=get(inst);\n    var currentTime=requestCurrentTimeForUpdate();\n    var suspenseConfig=requestCurrentSuspenseConfig();\n    var expirationTime=computeExpirationForFiber(currentTime, fiber, suspenseConfig);\n    var update=createUpdate(expirationTime, suspenseConfig);\n    update.payload=payload;\n\n    if(callback!==undefined&&callback!==null){\n      {\n        warnOnInvalidCallback(callback, 'setState');\n      }\n\n      update.callback=callback;\n    }\n\n    enqueueUpdate(fiber, update);\n    scheduleWork(fiber, expirationTime);\n  },\n  enqueueReplaceState: function (inst, payload, callback){\n    var fiber=get(inst);\n    var currentTime=requestCurrentTimeForUpdate();\n    var suspenseConfig=requestCurrentSuspenseConfig();\n    var expirationTime=computeExpirationForFiber(currentTime, fiber, suspenseConfig);\n    var update=createUpdate(expirationTime, suspenseConfig);\n    update.tag=ReplaceState;\n    update.payload=payload;\n\n    if(callback!==undefined&&callback!==null){\n      {\n        warnOnInvalidCallback(callback, 'replaceState');\n      }\n\n      update.callback=callback;\n    }\n\n    enqueueUpdate(fiber, update);\n    scheduleWork(fiber, expirationTime);\n  },\n  enqueueForceUpdate: function (inst, callback){\n    var fiber=get(inst);\n    var currentTime=requestCurrentTimeForUpdate();\n    var suspenseConfig=requestCurrentSuspenseConfig();\n    var expirationTime=computeExpirationForFiber(currentTime, fiber, suspenseConfig);\n    var update=createUpdate(expirationTime, suspenseConfig);\n    update.tag=ForceUpdate;\n\n    if(callback!==undefined&&callback!==null){\n      {\n        warnOnInvalidCallback(callback, 'forceUpdate');\n      }\n\n      update.callback=callback;\n    }\n\n    enqueueUpdate(fiber, update);\n    scheduleWork(fiber, expirationTime);\n  }\n};\n\nfunction checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext){\n  var instance=workInProgress.stateNode;\n\n  if(typeof instance.shouldComponentUpdate==='function'){\n    {\n      if(workInProgress.mode & StrictMode){\n        // Invoke the function an extra time to help detect side-effects.\n        instance.shouldComponentUpdate(newProps, newState, nextContext);\n      }\n    }\n\n    startPhaseTimer(workInProgress, 'shouldComponentUpdate');\n    var shouldUpdate=instance.shouldComponentUpdate(newProps, newState, nextContext);\n    stopPhaseTimer();\n\n    {\n      if(shouldUpdate===undefined){\n        error('%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor)||'Component');\n      }\n    }\n\n    return shouldUpdate;\n  }\n\n  if(ctor.prototype&&ctor.prototype.isPureReactComponent){\n    return !shallowEqual(oldProps, newProps)||!shallowEqual(oldState, newState);\n  }\n\n  return true;\n}\n\nfunction checkClassInstance(workInProgress, ctor, newProps){\n  var instance=workInProgress.stateNode;\n\n  {\n    var name=getComponentName(ctor)||'Component';\n    var renderPresent=instance.render;\n\n    if(!renderPresent){\n      if(ctor.prototype&&typeof ctor.prototype.render==='function'){\n        error('%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);\n      }else{\n        error('%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);\n      }\n    }\n\n    if(instance.getInitialState&&!instance.getInitialState.isReactClassApproved&&!instance.state){\n      error('getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name);\n    }\n\n    if(instance.getDefaultProps&&!instance.getDefaultProps.isReactClassApproved){\n      error('getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name);\n    }\n\n    if(instance.propTypes){\n      error('propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name);\n    }\n\n    if(instance.contextType){\n      error('contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name);\n    }\n\n    {\n      if(instance.contextTypes){\n        error('contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name);\n      }\n\n      if(ctor.contextType&&ctor.contextTypes&&!didWarnAboutContextTypeAndContextTypes.has(ctor)){\n        didWarnAboutContextTypeAndContextTypes.add(ctor);\n\n        error('%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);\n      }\n    }\n\n    if(typeof instance.componentShouldUpdate==='function'){\n      error('%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name);\n    }\n\n    if(ctor.prototype&&ctor.prototype.isPureReactComponent&&typeof instance.shouldComponentUpdate!=='undefined'){\n      error('%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor)||'A pure component');\n    }\n\n    if(typeof instance.componentDidUnmount==='function'){\n      error('%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name);\n    }\n\n    if(typeof instance.componentDidReceiveProps==='function'){\n      error('%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name);\n    }\n\n    if(typeof instance.componentWillRecieveProps==='function'){\n      error('%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name);\n    }\n\n    if(typeof instance.UNSAFE_componentWillRecieveProps==='function'){\n      error('%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name);\n    }\n\n    var hasMutatedProps=instance.props!==newProps;\n\n    if(instance.props!==undefined&&hasMutatedProps){\n      error('%s(...): When calling super() in `%s`, make sure to pass ' + \"up the same props that your component's constructor was passed.\", name, name);\n    }\n\n    if(instance.defaultProps){\n      error('Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name);\n    }\n\n    if(typeof instance.getSnapshotBeforeUpdate==='function'&&typeof instance.componentDidUpdate!=='function'&&!didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)){\n      didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);\n\n      error('%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));\n    }\n\n    if(typeof instance.getDerivedStateFromProps==='function'){\n      error('%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if(typeof instance.getDerivedStateFromError==='function'){\n      error('%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name);\n    }\n\n    if(typeof ctor.getSnapshotBeforeUpdate==='function'){\n      error('%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name);\n    }\n\n    var _state=instance.state;\n\n    if(_state&&(typeof _state!=='object'||isArray(_state))){\n      error('%s.state: must be set to an object or null', name);\n    }\n\n    if(typeof instance.getChildContext==='function'&&typeof ctor.childContextTypes!=='object'){\n      error('%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name);\n    }\n  }\n}\n\nfunction adoptClassInstance(workInProgress, instance){\n  instance.updater=classComponentUpdater;\n  workInProgress.stateNode=instance; // The instance needs access to the fiber so that it can schedule updates\n\n  set(instance, workInProgress);\n\n  {\n    instance._reactInternalInstance=fakeInternalInstance;\n  }\n}\n\nfunction constructClassInstance(workInProgress, ctor, props){\n  var isLegacyContextConsumer=false;\n  var unmaskedContext=emptyContextObject;\n  var context=emptyContextObject;\n  var contextType=ctor.contextType;\n\n  {\n    if('contextType' in ctor){\n      var isValid=// Allow null for conditional declaration\n      contextType===null||contextType!==undefined&&contextType.$$typeof===REACT_CONTEXT_TYPE&&contextType._context===undefined; // Not a <Context.Consumer>\n\n      if(!isValid&&!didWarnAboutInvalidateContextType.has(ctor)){\n        didWarnAboutInvalidateContextType.add(ctor);\n        var addendum='';\n\n        if(contextType===undefined){\n          addendum=' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';\n        }else if(typeof contextType!=='object'){\n          addendum=' However, it is set to a ' + typeof contextType + '.';\n        }else if(contextType.$$typeof===REACT_PROVIDER_TYPE){\n          addendum=' Did you accidentally pass the Context.Provider instead?';\n        }else if(contextType._context!==undefined){\n          // <Context.Consumer>\n          addendum=' Did you accidentally pass the Context.Consumer instead?';\n        }else{\n          addendum=' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';\n        }\n\n        error('%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor)||'Component', addendum);\n      }\n    }\n  }\n\n  if(typeof contextType==='object'&&contextType!==null){\n    context=readContext(contextType);\n  }else{\n    unmaskedContext=getUnmaskedContext(workInProgress, ctor, true);\n    var contextTypes=ctor.contextTypes;\n    isLegacyContextConsumer=contextTypes!==null&&contextTypes!==undefined;\n    context=isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext):emptyContextObject;\n  } // Instantiate twice to help detect side-effects.\n\n\n  {\n    if(workInProgress.mode & StrictMode){\n      new ctor(props, context); // eslint-disable-line no-new\n    }\n  }\n\n  var instance=new ctor(props, context);\n  var state=workInProgress.memoizedState=instance.state!==null&&instance.state!==undefined ? instance.state:null;\n  adoptClassInstance(workInProgress, instance);\n\n  {\n    if(typeof ctor.getDerivedStateFromProps==='function'&&state===null){\n      var componentName=getComponentName(ctor)||'Component';\n\n      if(!didWarnAboutUninitializedState.has(componentName)){\n        didWarnAboutUninitializedState.add(componentName);\n\n        error('`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state===null ? 'null':'undefined', componentName);\n      }\n    } // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n    // Warn about these lifecycles if they are present.\n    // Don't warn about react-lifecycles-compat polyfilled methods though.\n\n\n    if(typeof ctor.getDerivedStateFromProps==='function'||typeof instance.getSnapshotBeforeUpdate==='function'){\n      var foundWillMountName=null;\n      var foundWillReceivePropsName=null;\n      var foundWillUpdateName=null;\n\n      if(typeof instance.componentWillMount==='function'&&instance.componentWillMount.__suppressDeprecationWarning!==true){\n        foundWillMountName='componentWillMount';\n      }else if(typeof instance.UNSAFE_componentWillMount==='function'){\n        foundWillMountName='UNSAFE_componentWillMount';\n      }\n\n      if(typeof instance.componentWillReceiveProps==='function'&&instance.componentWillReceiveProps.__suppressDeprecationWarning!==true){\n        foundWillReceivePropsName='componentWillReceiveProps';\n      }else if(typeof instance.UNSAFE_componentWillReceiveProps==='function'){\n        foundWillReceivePropsName='UNSAFE_componentWillReceiveProps';\n      }\n\n      if(typeof instance.componentWillUpdate==='function'&&instance.componentWillUpdate.__suppressDeprecationWarning!==true){\n        foundWillUpdateName='componentWillUpdate';\n      }else if(typeof instance.UNSAFE_componentWillUpdate==='function'){\n        foundWillUpdateName='UNSAFE_componentWillUpdate';\n      }\n\n      if(foundWillMountName!==null||foundWillReceivePropsName!==null||foundWillUpdateName!==null){\n        var _componentName=getComponentName(ctor)||'Component';\n\n        var newApiName=typeof ctor.getDerivedStateFromProps==='function' ? 'getDerivedStateFromProps()':'getSnapshotBeforeUpdate()';\n\n        if(!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)){\n          didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);\n\n          error('Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\\n\\n' + 'The above lifecycles should be removed. Learn more about this warning here:\\n' + 'https://fb.me/react-unsafe-component-lifecycles', _componentName, newApiName, foundWillMountName!==null ? \"\\n  \" + foundWillMountName:'', foundWillReceivePropsName!==null ? \"\\n  \" + foundWillReceivePropsName:'', foundWillUpdateName!==null ? \"\\n  \" + foundWillUpdateName:'');\n        }\n      }\n    }\n  } // Cache unmasked context so we can avoid recreating masked context unless necessary.\n  // ReactFiberContext usually updates this cache but can't for newly-created instances.\n\n\n  if(isLegacyContextConsumer){\n    cacheContext(workInProgress, unmaskedContext, context);\n  }\n\n  return instance;\n}\n\nfunction callComponentWillMount(workInProgress, instance){\n  startPhaseTimer(workInProgress, 'componentWillMount');\n  var oldState=instance.state;\n\n  if(typeof instance.componentWillMount==='function'){\n    instance.componentWillMount();\n  }\n\n  if(typeof instance.UNSAFE_componentWillMount==='function'){\n    instance.UNSAFE_componentWillMount();\n  }\n\n  stopPhaseTimer();\n\n  if(oldState!==instance.state){\n    {\n      error('%s.componentWillMount(): Assigning directly to this.state is ' + \"deprecated (except inside a component's \" + 'constructor). Use setState instead.', getComponentName(workInProgress.type)||'Component');\n    }\n\n    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n  }\n}\n\nfunction callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext){\n  var oldState=instance.state;\n  startPhaseTimer(workInProgress, 'componentWillReceiveProps');\n\n  if(typeof instance.componentWillReceiveProps==='function'){\n    instance.componentWillReceiveProps(newProps, nextContext);\n  }\n\n  if(typeof instance.UNSAFE_componentWillReceiveProps==='function'){\n    instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n  }\n\n  stopPhaseTimer();\n\n  if(instance.state!==oldState){\n    {\n      var componentName=getComponentName(workInProgress.type)||'Component';\n\n      if(!didWarnAboutStateAssignmentForComponent.has(componentName)){\n        didWarnAboutStateAssignmentForComponent.add(componentName);\n\n        error('%s.componentWillReceiveProps(): Assigning directly to ' + \"this.state is deprecated (except inside a component's \" + 'constructor). Use setState instead.', componentName);\n      }\n    }\n\n    classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n  }\n} // Invokes the mount life-cycles on a previously never rendered instance.\n\n\nfunction mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime){\n  {\n    checkClassInstance(workInProgress, ctor, newProps);\n  }\n\n  var instance=workInProgress.stateNode;\n  instance.props=newProps;\n  instance.state=workInProgress.memoizedState;\n  instance.refs=emptyRefsObject;\n  initializeUpdateQueue(workInProgress);\n  var contextType=ctor.contextType;\n\n  if(typeof contextType==='object'&&contextType!==null){\n    instance.context=readContext(contextType);\n  }else{\n    var unmaskedContext=getUnmaskedContext(workInProgress, ctor, true);\n    instance.context=getMaskedContext(workInProgress, unmaskedContext);\n  }\n\n  {\n    if(instance.state===newProps){\n      var componentName=getComponentName(ctor)||'Component';\n\n      if(!didWarnAboutDirectlyAssigningPropsToState.has(componentName)){\n        didWarnAboutDirectlyAssigningPropsToState.add(componentName);\n\n        error('%s: It is not recommended to assign props directly to state ' + \"because updates to props won't be reflected in state. \" + 'In most cases, it is better to use props directly.', componentName);\n      }\n    }\n\n    if(workInProgress.mode & StrictMode){\n      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);\n    }\n\n    {\n      ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);\n    }\n  }\n\n  processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);\n  instance.state=workInProgress.memoizedState;\n  var getDerivedStateFromProps=ctor.getDerivedStateFromProps;\n\n  if(typeof getDerivedStateFromProps==='function'){\n    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n    instance.state=workInProgress.memoizedState;\n  } // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n\n  if(typeof ctor.getDerivedStateFromProps!=='function'&&typeof instance.getSnapshotBeforeUpdate!=='function'&&(typeof instance.UNSAFE_componentWillMount==='function'||typeof instance.componentWillMount==='function')){\n    callComponentWillMount(workInProgress, instance); // If we had additional state updates during this life-cycle, let's\n    // process them now.\n\n    processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);\n    instance.state=workInProgress.memoizedState;\n  }\n\n  if(typeof instance.componentDidMount==='function'){\n    workInProgress.effectTag |=Update;\n  }\n}\n\nfunction resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime){\n  var instance=workInProgress.stateNode;\n  var oldProps=workInProgress.memoizedProps;\n  instance.props=oldProps;\n  var oldContext=instance.context;\n  var contextType=ctor.contextType;\n  var nextContext=emptyContextObject;\n\n  if(typeof contextType==='object'&&contextType!==null){\n    nextContext=readContext(contextType);\n  }else{\n    var nextLegacyUnmaskedContext=getUnmaskedContext(workInProgress, ctor, true);\n    nextContext=getMaskedContext(workInProgress, nextLegacyUnmaskedContext);\n  }\n\n  var getDerivedStateFromProps=ctor.getDerivedStateFromProps;\n  var hasNewLifecycles=typeof getDerivedStateFromProps==='function'||typeof instance.getSnapshotBeforeUpdate==='function'; // Note: During these life-cycles, instance.props/instance.state are what\n  // ever the previously attempted to render - not the \"current\". However,\n  // during componentDidUpdate we pass the \"current\" props.\n  // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n  if(!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillReceiveProps==='function'||typeof instance.componentWillReceiveProps==='function')){\n    if(oldProps!==newProps||oldContext!==nextContext){\n      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n    }\n  }\n\n  resetHasForceUpdateBeforeProcessing();\n  var oldState=workInProgress.memoizedState;\n  var newState=instance.state=oldState;\n  processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);\n  newState=workInProgress.memoizedState;\n\n  if(oldProps===newProps&&oldState===newState&&!hasContextChanged()&&!checkHasForceUpdateAfterProcessing()){\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if(typeof instance.componentDidMount==='function'){\n      workInProgress.effectTag |=Update;\n    }\n\n    return false;\n  }\n\n  if(typeof getDerivedStateFromProps==='function'){\n    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n    newState=workInProgress.memoizedState;\n  }\n\n  var shouldUpdate=checkHasForceUpdateAfterProcessing()||checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);\n\n  if(shouldUpdate){\n    // In order to support react-lifecycles-compat polyfilled components,\n    // Unsafe lifecycles should not be invoked for components using the new APIs.\n    if(!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillMount==='function'||typeof instance.componentWillMount==='function')){\n      startPhaseTimer(workInProgress, 'componentWillMount');\n\n      if(typeof instance.componentWillMount==='function'){\n        instance.componentWillMount();\n      }\n\n      if(typeof instance.UNSAFE_componentWillMount==='function'){\n        instance.UNSAFE_componentWillMount();\n      }\n\n      stopPhaseTimer();\n    }\n\n    if(typeof instance.componentDidMount==='function'){\n      workInProgress.effectTag |=Update;\n    }\n  }else{\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if(typeof instance.componentDidMount==='function'){\n      workInProgress.effectTag |=Update;\n    } // If shouldComponentUpdate returned false, we should still update the\n    // memoized state to indicate that this work can be reused.\n\n\n    workInProgress.memoizedProps=newProps;\n    workInProgress.memoizedState=newState;\n  } // Update the existing instance's state, props, and context pointers even\n  // if shouldComponentUpdate returns false.\n\n\n  instance.props=newProps;\n  instance.state=newState;\n  instance.context=nextContext;\n  return shouldUpdate;\n} // Invokes the update life-cycles and returns false if it shouldn't rerender.\n\n\nfunction updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime){\n  var instance=workInProgress.stateNode;\n  cloneUpdateQueue(current, workInProgress);\n  var oldProps=workInProgress.memoizedProps;\n  instance.props=workInProgress.type===workInProgress.elementType ? oldProps:resolveDefaultProps(workInProgress.type, oldProps);\n  var oldContext=instance.context;\n  var contextType=ctor.contextType;\n  var nextContext=emptyContextObject;\n\n  if(typeof contextType==='object'&&contextType!==null){\n    nextContext=readContext(contextType);\n  }else{\n    var nextUnmaskedContext=getUnmaskedContext(workInProgress, ctor, true);\n    nextContext=getMaskedContext(workInProgress, nextUnmaskedContext);\n  }\n\n  var getDerivedStateFromProps=ctor.getDerivedStateFromProps;\n  var hasNewLifecycles=typeof getDerivedStateFromProps==='function'||typeof instance.getSnapshotBeforeUpdate==='function'; // Note: During these life-cycles, instance.props/instance.state are what\n  // ever the previously attempted to render - not the \"current\". However,\n  // during componentDidUpdate we pass the \"current\" props.\n  // In order to support react-lifecycles-compat polyfilled components,\n  // Unsafe lifecycles should not be invoked for components using the new APIs.\n\n  if(!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillReceiveProps==='function'||typeof instance.componentWillReceiveProps==='function')){\n    if(oldProps!==newProps||oldContext!==nextContext){\n      callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);\n    }\n  }\n\n  resetHasForceUpdateBeforeProcessing();\n  var oldState=workInProgress.memoizedState;\n  var newState=instance.state=oldState;\n  processUpdateQueue(workInProgress, newProps, instance, renderExpirationTime);\n  newState=workInProgress.memoizedState;\n\n  if(oldProps===newProps&&oldState===newState&&!hasContextChanged()&&!checkHasForceUpdateAfterProcessing()){\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if(typeof instance.componentDidUpdate==='function'){\n      if(oldProps!==current.memoizedProps||oldState!==current.memoizedState){\n        workInProgress.effectTag |=Update;\n      }\n    }\n\n    if(typeof instance.getSnapshotBeforeUpdate==='function'){\n      if(oldProps!==current.memoizedProps||oldState!==current.memoizedState){\n        workInProgress.effectTag |=Snapshot;\n      }\n    }\n\n    return false;\n  }\n\n  if(typeof getDerivedStateFromProps==='function'){\n    applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);\n    newState=workInProgress.memoizedState;\n  }\n\n  var shouldUpdate=checkHasForceUpdateAfterProcessing()||checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);\n\n  if(shouldUpdate){\n    // In order to support react-lifecycles-compat polyfilled components,\n    // Unsafe lifecycles should not be invoked for components using the new APIs.\n    if(!hasNewLifecycles&&(typeof instance.UNSAFE_componentWillUpdate==='function'||typeof instance.componentWillUpdate==='function')){\n      startPhaseTimer(workInProgress, 'componentWillUpdate');\n\n      if(typeof instance.componentWillUpdate==='function'){\n        instance.componentWillUpdate(newProps, newState, nextContext);\n      }\n\n      if(typeof instance.UNSAFE_componentWillUpdate==='function'){\n        instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);\n      }\n\n      stopPhaseTimer();\n    }\n\n    if(typeof instance.componentDidUpdate==='function'){\n      workInProgress.effectTag |=Update;\n    }\n\n    if(typeof instance.getSnapshotBeforeUpdate==='function'){\n      workInProgress.effectTag |=Snapshot;\n    }\n  }else{\n    // If an update was already in progress, we should schedule an Update\n    // effect even though we're bailing out, so that cWU/cDU are called.\n    if(typeof instance.componentDidUpdate==='function'){\n      if(oldProps!==current.memoizedProps||oldState!==current.memoizedState){\n        workInProgress.effectTag |=Update;\n      }\n    }\n\n    if(typeof instance.getSnapshotBeforeUpdate==='function'){\n      if(oldProps!==current.memoizedProps||oldState!==current.memoizedState){\n        workInProgress.effectTag |=Snapshot;\n      }\n    } // If shouldComponentUpdate returned false, we should still update the\n    // memoized props/state to indicate that this work can be reused.\n\n\n    workInProgress.memoizedProps=newProps;\n    workInProgress.memoizedState=newState;\n  } // Update the existing instance's state, props, and context pointers even\n  // if shouldComponentUpdate returns false.\n\n\n  instance.props=newProps;\n  instance.state=newState;\n  instance.context=nextContext;\n  return shouldUpdate;\n}\n\nvar didWarnAboutMaps;\nvar didWarnAboutGenerators;\nvar didWarnAboutStringRefs;\nvar ownerHasKeyUseWarning;\nvar ownerHasFunctionTypeWarning;\n\nvar warnForMissingKey=function (child){};\n\n{\n  didWarnAboutMaps=false;\n  didWarnAboutGenerators=false;\n  didWarnAboutStringRefs={};\n  \n\n  ownerHasKeyUseWarning={};\n  ownerHasFunctionTypeWarning={};\n\n  warnForMissingKey=function (child){\n    if(child===null||typeof child!=='object'){\n      return;\n    }\n\n    if(!child._store||child._store.validated||child.key!=null){\n      return;\n    }\n\n    if(!(typeof child._store==='object')){\n      {\n        throw Error(\"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n\n    child._store.validated=true;\n    var currentComponentErrorInfo='Each child in a list should have a unique ' + '\"key\" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();\n\n    if(ownerHasKeyUseWarning[currentComponentErrorInfo]){\n      return;\n    }\n\n    ownerHasKeyUseWarning[currentComponentErrorInfo]=true;\n\n    error('Each child in a list should have a unique ' + '\"key\" prop. See https://fb.me/react-warning-keys for ' + 'more information.');\n  };\n}\n\nvar isArray$1=Array.isArray;\n\nfunction coerceRef(returnFiber, current, element){\n  var mixedRef=element.ref;\n\n  if(mixedRef!==null&&typeof mixedRef!=='function'&&typeof mixedRef!=='object'){\n    {\n      // TODO: Clean this up once we turn on the string ref warning for\n      // everyone, because the strict mode case will no longer be relevant\n      if((returnFiber.mode & StrictMode||warnAboutStringRefs)&&// We warn in ReactElement.js if owner and self are equal for string refs\n      // because these cannot be automatically converted to an arrow function\n      // using a codemod. Therefore, we don't have to warn about string refs again.\n      !(element._owner&&element._self&&element._owner.stateNode!==element._self)){\n        var componentName=getComponentName(returnFiber.type)||'Component';\n\n        if(!didWarnAboutStringRefs[componentName]){\n          {\n            error('A string ref, \"%s\", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref%s', mixedRef, getStackByFiberInDevAndProd(returnFiber));\n          }\n\n          didWarnAboutStringRefs[componentName]=true;\n        }\n      }\n    }\n\n    if(element._owner){\n      var owner=element._owner;\n      var inst;\n\n      if(owner){\n        var ownerFiber=owner;\n\n        if(!(ownerFiber.tag===ClassComponent)){\n          {\n            throw Error(\"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref\");\n          }\n        }\n\n        inst=ownerFiber.stateNode;\n      }\n\n      if(!inst){\n        {\n          throw Error(\"Missing owner for string ref \" + mixedRef + \". This error is likely caused by a bug in React. Please file an issue.\");\n        }\n      }\n\n      var stringRef='' + mixedRef; // Check if previous string ref matches new string ref\n\n      if(current!==null&&current.ref!==null&&typeof current.ref==='function'&&current.ref._stringRef===stringRef){\n        return current.ref;\n      }\n\n      var ref=function (value){\n        var refs=inst.refs;\n\n        if(refs===emptyRefsObject){\n          // This is a lazy pooled frozen object, so we need to initialize.\n          refs=inst.refs={};\n        }\n\n        if(value===null){\n          delete refs[stringRef];\n        }else{\n          refs[stringRef]=value;\n        }\n      };\n\n      ref._stringRef=stringRef;\n      return ref;\n    }else{\n      if(!(typeof mixedRef==='string')){\n        {\n          throw Error(\"Expected ref to be a function, a string, an object returned by React.createRef(), or null.\");\n        }\n      }\n\n      if(!element._owner){\n        {\n          throw Error(\"Element ref was specified as a string (\" + mixedRef + \") but no owner was set. This could happen for one of the following reasons:\\n1. You may be adding a ref to a function component\\n2. You may be adding a ref to a component that was not created inside a component's render method\\n3. You have multiple copies of React loaded\\nSee https://fb.me/react-refs-must-have-owner for more information.\");\n        }\n      }\n    }\n  }\n\n  return mixedRef;\n}\n\nfunction throwOnInvalidObjectType(returnFiber, newChild){\n  if(returnFiber.type!=='textarea'){\n    var addendum='';\n\n    {\n      addendum=' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();\n    }\n\n    {\n      {\n        throw Error(\"Objects are not valid as a React child (found: \" + (Object.prototype.toString.call(newChild)==='[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}':newChild) + \").\" + addendum);\n      }\n    }\n  }\n}\n\nfunction warnOnFunctionType(){\n  {\n    var currentComponentErrorInfo='Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();\n\n    if(ownerHasFunctionTypeWarning[currentComponentErrorInfo]){\n      return;\n    }\n\n    ownerHasFunctionTypeWarning[currentComponentErrorInfo]=true;\n\n    error('Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');\n  }\n} // This wrapper function exists because I expect to clone the code in each path\n// to be able to optimize each path individually by branching early. This needs\n// a compiler or we can do it manually. Helpers that don't need this branching\n// live outside of this function.\n\n\nfunction ChildReconciler(shouldTrackSideEffects){\n  function deleteChild(returnFiber, childToDelete){\n    if(!shouldTrackSideEffects){\n      // Noop.\n      return;\n    } // Deletions are added in reversed order so we add it to the front.\n    // At this point, the return fiber's effect list is empty except for\n    // deletions, so we can just append the deletion to the list. The remaining\n    // effects aren't added until the complete phase. Once we implement\n    // resuming, this may not be true.\n\n\n    var last=returnFiber.lastEffect;\n\n    if(last!==null){\n      last.nextEffect=childToDelete;\n      returnFiber.lastEffect=childToDelete;\n    }else{\n      returnFiber.firstEffect=returnFiber.lastEffect=childToDelete;\n    }\n\n    childToDelete.nextEffect=null;\n    childToDelete.effectTag=Deletion;\n  }\n\n  function deleteRemainingChildren(returnFiber, currentFirstChild){\n    if(!shouldTrackSideEffects){\n      // Noop.\n      return null;\n    } // TODO: For the shouldClone case, this could be micro-optimized a bit by\n    // assuming that after the first child we've already added everything.\n\n\n    var childToDelete=currentFirstChild;\n\n    while (childToDelete!==null){\n      deleteChild(returnFiber, childToDelete);\n      childToDelete=childToDelete.sibling;\n    }\n\n    return null;\n  }\n\n  function mapRemainingChildren(returnFiber, currentFirstChild){\n    // Add the remaining children to a temporary map so that we can find them by\n    // keys quickly. Implicit (null) keys get added to this set with their index\n    // instead.\n    var existingChildren=new Map();\n    var existingChild=currentFirstChild;\n\n    while (existingChild!==null){\n      if(existingChild.key!==null){\n        existingChildren.set(existingChild.key, existingChild);\n      }else{\n        existingChildren.set(existingChild.index, existingChild);\n      }\n\n      existingChild=existingChild.sibling;\n    }\n\n    return existingChildren;\n  }\n\n  function useFiber(fiber, pendingProps){\n    // We currently set sibling to null and index to 0 here because it is easy\n    // to forget to do before returning it. E.g. for the single child case.\n    var clone=createWorkInProgress(fiber, pendingProps);\n    clone.index=0;\n    clone.sibling=null;\n    return clone;\n  }\n\n  function placeChild(newFiber, lastPlacedIndex, newIndex){\n    newFiber.index=newIndex;\n\n    if(!shouldTrackSideEffects){\n      // Noop.\n      return lastPlacedIndex;\n    }\n\n    var current=newFiber.alternate;\n\n    if(current!==null){\n      var oldIndex=current.index;\n\n      if(oldIndex < lastPlacedIndex){\n        // This is a move.\n        newFiber.effectTag=Placement;\n        return lastPlacedIndex;\n      }else{\n        // This item can stay in place.\n        return oldIndex;\n      }\n    }else{\n      // This is an insertion.\n      newFiber.effectTag=Placement;\n      return lastPlacedIndex;\n    }\n  }\n\n  function placeSingleChild(newFiber){\n    // This is simpler for the single child case. We only need to do a\n    // placement for inserting new children.\n    if(shouldTrackSideEffects&&newFiber.alternate===null){\n      newFiber.effectTag=Placement;\n    }\n\n    return newFiber;\n  }\n\n  function updateTextNode(returnFiber, current, textContent, expirationTime){\n    if(current===null||current.tag!==HostText){\n      // Insert\n      var created=createFiberFromText(textContent, returnFiber.mode, expirationTime);\n      created.return=returnFiber;\n      return created;\n    }else{\n      // Update\n      var existing=useFiber(current, textContent);\n      existing.return=returnFiber;\n      return existing;\n    }\n  }\n\n  function updateElement(returnFiber, current, element, expirationTime){\n    if(current!==null){\n      if(current.elementType===element.type||(// Keep this check inline so it only runs on the false path:\n       isCompatibleFamilyForHotReloading(current, element))){\n        // Move based on index\n        var existing=useFiber(current, element.props);\n        existing.ref=coerceRef(returnFiber, current, element);\n        existing.return=returnFiber;\n\n        {\n          existing._debugSource=element._source;\n          existing._debugOwner=element._owner;\n        }\n\n        return existing;\n      }\n    } // Insert\n\n\n    var created=createFiberFromElement(element, returnFiber.mode, expirationTime);\n    created.ref=coerceRef(returnFiber, current, element);\n    created.return=returnFiber;\n    return created;\n  }\n\n  function updatePortal(returnFiber, current, portal, expirationTime){\n    if(current===null||current.tag!==HostPortal||current.stateNode.containerInfo!==portal.containerInfo||current.stateNode.implementation!==portal.implementation){\n      // Insert\n      var created=createFiberFromPortal(portal, returnFiber.mode, expirationTime);\n      created.return=returnFiber;\n      return created;\n    }else{\n      // Update\n      var existing=useFiber(current, portal.children||[]);\n      existing.return=returnFiber;\n      return existing;\n    }\n  }\n\n  function updateFragment(returnFiber, current, fragment, expirationTime, key){\n    if(current===null||current.tag!==Fragment){\n      // Insert\n      var created=createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);\n      created.return=returnFiber;\n      return created;\n    }else{\n      // Update\n      var existing=useFiber(current, fragment);\n      existing.return=returnFiber;\n      return existing;\n    }\n  }\n\n  function createChild(returnFiber, newChild, expirationTime){\n    if(typeof newChild==='string'||typeof newChild==='number'){\n      // Text nodes don't have keys. If the previous node is implicitly keyed\n      // we can continue to replace it without aborting even if it is not a text\n      // node.\n      var created=createFiberFromText('' + newChild, returnFiber.mode, expirationTime);\n      created.return=returnFiber;\n      return created;\n    }\n\n    if(typeof newChild==='object'&&newChild!==null){\n      switch (newChild.$$typeof){\n        case REACT_ELEMENT_TYPE:\n          {\n            var _created=createFiberFromElement(newChild, returnFiber.mode, expirationTime);\n\n            _created.ref=coerceRef(returnFiber, null, newChild);\n            _created.return=returnFiber;\n            return _created;\n          }\n\n        case REACT_PORTAL_TYPE:\n          {\n            var _created2=createFiberFromPortal(newChild, returnFiber.mode, expirationTime);\n\n            _created2.return=returnFiber;\n            return _created2;\n          }\n      }\n\n      if(isArray$1(newChild)||getIteratorFn(newChild)){\n        var _created3=createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);\n\n        _created3.return=returnFiber;\n        return _created3;\n      }\n\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    {\n      if(typeof newChild==='function'){\n        warnOnFunctionType();\n      }\n    }\n\n    return null;\n  }\n\n  function updateSlot(returnFiber, oldFiber, newChild, expirationTime){\n    // Update the fiber if the keys match, otherwise return null.\n    var key=oldFiber!==null ? oldFiber.key:null;\n\n    if(typeof newChild==='string'||typeof newChild==='number'){\n      // Text nodes don't have keys. If the previous node is implicitly keyed\n      // we can continue to replace it without aborting even if it is not a text\n      // node.\n      if(key!==null){\n        return null;\n      }\n\n      return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);\n    }\n\n    if(typeof newChild==='object'&&newChild!==null){\n      switch (newChild.$$typeof){\n        case REACT_ELEMENT_TYPE:\n          {\n            if(newChild.key===key){\n              if(newChild.type===REACT_FRAGMENT_TYPE){\n                return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);\n              }\n\n              return updateElement(returnFiber, oldFiber, newChild, expirationTime);\n            }else{\n              return null;\n            }\n          }\n\n        case REACT_PORTAL_TYPE:\n          {\n            if(newChild.key===key){\n              return updatePortal(returnFiber, oldFiber, newChild, expirationTime);\n            }else{\n              return null;\n            }\n          }\n      }\n\n      if(isArray$1(newChild)||getIteratorFn(newChild)){\n        if(key!==null){\n          return null;\n        }\n\n        return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);\n      }\n\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    {\n      if(typeof newChild==='function'){\n        warnOnFunctionType();\n      }\n    }\n\n    return null;\n  }\n\n  function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime){\n    if(typeof newChild==='string'||typeof newChild==='number'){\n      // Text nodes don't have keys, so we neither have to check the old nor\n      // new node for the key. If both are text nodes, they match.\n      var matchedFiber=existingChildren.get(newIdx)||null;\n      return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);\n    }\n\n    if(typeof newChild==='object'&&newChild!==null){\n      switch (newChild.$$typeof){\n        case REACT_ELEMENT_TYPE:\n          {\n            var _matchedFiber=existingChildren.get(newChild.key===null ? newIdx:newChild.key)||null;\n\n            if(newChild.type===REACT_FRAGMENT_TYPE){\n              return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);\n            }\n\n            return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);\n          }\n\n        case REACT_PORTAL_TYPE:\n          {\n            var _matchedFiber2=existingChildren.get(newChild.key===null ? newIdx:newChild.key)||null;\n\n            return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);\n          }\n      }\n\n      if(isArray$1(newChild)||getIteratorFn(newChild)){\n        var _matchedFiber3=existingChildren.get(newIdx)||null;\n\n        return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);\n      }\n\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    {\n      if(typeof newChild==='function'){\n        warnOnFunctionType();\n      }\n    }\n\n    return null;\n  }\n  \n\n\n  function warnOnInvalidKey(child, knownKeys){\n    {\n      if(typeof child!=='object'||child===null){\n        return knownKeys;\n      }\n\n      switch (child.$$typeof){\n        case REACT_ELEMENT_TYPE:\n        case REACT_PORTAL_TYPE:\n          warnForMissingKey(child);\n          var key=child.key;\n\n          if(typeof key!=='string'){\n            break;\n          }\n\n          if(knownKeys===null){\n            knownKeys=new Set();\n            knownKeys.add(key);\n            break;\n          }\n\n          if(!knownKeys.has(key)){\n            knownKeys.add(key);\n            break;\n          }\n\n          error('Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);\n\n          break;\n      }\n    }\n\n    return knownKeys;\n  }\n\n  function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime){\n    // This algorithm can't optimize by searching from both ends since we\n    // don't have backpointers on fibers. I'm trying to see how far we can get\n    // with that model. If it ends up not being worth the tradeoffs, we can\n    // add it later.\n    // Even with a two ended optimization, we'd want to optimize for the case\n    // where there are few changes and brute force the comparison instead of\n    // going for the Map. It'd like to explore hitting that path first in\n    // forward-only mode and only go for the Map once we notice that we need\n    // lots of look ahead. This doesn't handle reversal as well as two ended\n    // search but that's unusual. Besides, for the two ended optimization to\n    // work on Iterables, we'd need to copy the whole set.\n    // In this first iteration, we'll just live with hitting the bad case\n    // (adding everything to a Map) in for every insert/move.\n    // If you change this code, also update reconcileChildrenIterator() which\n    // uses the same algorithm.\n    {\n      // First, validate keys.\n      var knownKeys=null;\n\n      for (var i=0; i < newChildren.length; i++){\n        var child=newChildren[i];\n        knownKeys=warnOnInvalidKey(child, knownKeys);\n      }\n    }\n\n    var resultingFirstChild=null;\n    var previousNewFiber=null;\n    var oldFiber=currentFirstChild;\n    var lastPlacedIndex=0;\n    var newIdx=0;\n    var nextOldFiber=null;\n\n    for (; oldFiber!==null&&newIdx < newChildren.length; newIdx++){\n      if(oldFiber.index > newIdx){\n        nextOldFiber=oldFiber;\n        oldFiber=null;\n      }else{\n        nextOldFiber=oldFiber.sibling;\n      }\n\n      var newFiber=updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);\n\n      if(newFiber===null){\n        // TODO: This breaks on empty slots like null children. That's\n        // unfortunate because it triggers the slow path all the time. We need\n        // a better way to communicate whether this was a miss or null,\n        // boolean, undefined, etc.\n        if(oldFiber===null){\n          oldFiber=nextOldFiber;\n        }\n\n        break;\n      }\n\n      if(shouldTrackSideEffects){\n        if(oldFiber&&newFiber.alternate===null){\n          // We matched the slot, but we didn't reuse the existing fiber, so we\n          // need to delete the existing child.\n          deleteChild(returnFiber, oldFiber);\n        }\n      }\n\n      lastPlacedIndex=placeChild(newFiber, lastPlacedIndex, newIdx);\n\n      if(previousNewFiber===null){\n        // TODO: Move out of the loop. This only happens for the first run.\n        resultingFirstChild=newFiber;\n      }else{\n        // TODO: Defer siblings if we're not at the right index for this slot.\n        // I.e. if we had null values before, then we want to defer this\n        // for each null value. However, we also don't want to call updateSlot\n        // with the previous one.\n        previousNewFiber.sibling=newFiber;\n      }\n\n      previousNewFiber=newFiber;\n      oldFiber=nextOldFiber;\n    }\n\n    if(newIdx===newChildren.length){\n      // We've reached the end of the new children. We can delete the rest.\n      deleteRemainingChildren(returnFiber, oldFiber);\n      return resultingFirstChild;\n    }\n\n    if(oldFiber===null){\n      // If we don't have any more existing children we can choose a fast path\n      // since the rest will all be insertions.\n      for (; newIdx < newChildren.length; newIdx++){\n        var _newFiber=createChild(returnFiber, newChildren[newIdx], expirationTime);\n\n        if(_newFiber===null){\n          continue;\n        }\n\n        lastPlacedIndex=placeChild(_newFiber, lastPlacedIndex, newIdx);\n\n        if(previousNewFiber===null){\n          // TODO: Move out of the loop. This only happens for the first run.\n          resultingFirstChild=_newFiber;\n        }else{\n          previousNewFiber.sibling=_newFiber;\n        }\n\n        previousNewFiber=_newFiber;\n      }\n\n      return resultingFirstChild;\n    } // Add all children to a key map for quick lookups.\n\n\n    var existingChildren=mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.\n\n    for (; newIdx < newChildren.length; newIdx++){\n      var _newFiber2=updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);\n\n      if(_newFiber2!==null){\n        if(shouldTrackSideEffects){\n          if(_newFiber2.alternate!==null){\n            // The new fiber is a work in progress, but if there exists a\n            // current, that means that we reused the fiber. We need to delete\n            // it from the child list so that we don't add it to the deletion\n            // list.\n            existingChildren.delete(_newFiber2.key===null ? newIdx:_newFiber2.key);\n          }\n        }\n\n        lastPlacedIndex=placeChild(_newFiber2, lastPlacedIndex, newIdx);\n\n        if(previousNewFiber===null){\n          resultingFirstChild=_newFiber2;\n        }else{\n          previousNewFiber.sibling=_newFiber2;\n        }\n\n        previousNewFiber=_newFiber2;\n      }\n    }\n\n    if(shouldTrackSideEffects){\n      // Any existing children that weren't consumed above were deleted. We need\n      // to add them to the deletion list.\n      existingChildren.forEach(function (child){\n        return deleteChild(returnFiber, child);\n      });\n    }\n\n    return resultingFirstChild;\n  }\n\n  function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime){\n    // This is the same implementation as reconcileChildrenArray(),\n    // but using the iterator instead.\n    var iteratorFn=getIteratorFn(newChildrenIterable);\n\n    if(!(typeof iteratorFn==='function')){\n      {\n        throw Error(\"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\");\n      }\n    }\n\n    {\n      // We don't support rendering Generators because it's a mutation.\n      // See https://github.com/facebook/react/issues/12995\n      if(typeof Symbol==='function'&&// $FlowFixMe Flow doesn't know about toStringTag\n      newChildrenIterable[Symbol.toStringTag]==='Generator'){\n        if(!didWarnAboutGenerators){\n          error('Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.');\n        }\n\n        didWarnAboutGenerators=true;\n      } // Warn about using Maps as children\n\n\n      if(newChildrenIterable.entries===iteratorFn){\n        if(!didWarnAboutMaps){\n          error('Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.');\n        }\n\n        didWarnAboutMaps=true;\n      } // First, validate keys.\n      // We'll get a different iterator later for the main pass.\n\n\n      var _newChildren=iteratorFn.call(newChildrenIterable);\n\n      if(_newChildren){\n        var knownKeys=null;\n\n        var _step=_newChildren.next();\n\n        for (; !_step.done; _step=_newChildren.next()){\n          var child=_step.value;\n          knownKeys=warnOnInvalidKey(child, knownKeys);\n        }\n      }\n    }\n\n    var newChildren=iteratorFn.call(newChildrenIterable);\n\n    if(!(newChildren!=null)){\n      {\n        throw Error(\"An iterable object provided no iterator.\");\n      }\n    }\n\n    var resultingFirstChild=null;\n    var previousNewFiber=null;\n    var oldFiber=currentFirstChild;\n    var lastPlacedIndex=0;\n    var newIdx=0;\n    var nextOldFiber=null;\n    var step=newChildren.next();\n\n    for (; oldFiber!==null&&!step.done; newIdx++, step=newChildren.next()){\n      if(oldFiber.index > newIdx){\n        nextOldFiber=oldFiber;\n        oldFiber=null;\n      }else{\n        nextOldFiber=oldFiber.sibling;\n      }\n\n      var newFiber=updateSlot(returnFiber, oldFiber, step.value, expirationTime);\n\n      if(newFiber===null){\n        // TODO: This breaks on empty slots like null children. That's\n        // unfortunate because it triggers the slow path all the time. We need\n        // a better way to communicate whether this was a miss or null,\n        // boolean, undefined, etc.\n        if(oldFiber===null){\n          oldFiber=nextOldFiber;\n        }\n\n        break;\n      }\n\n      if(shouldTrackSideEffects){\n        if(oldFiber&&newFiber.alternate===null){\n          // We matched the slot, but we didn't reuse the existing fiber, so we\n          // need to delete the existing child.\n          deleteChild(returnFiber, oldFiber);\n        }\n      }\n\n      lastPlacedIndex=placeChild(newFiber, lastPlacedIndex, newIdx);\n\n      if(previousNewFiber===null){\n        // TODO: Move out of the loop. This only happens for the first run.\n        resultingFirstChild=newFiber;\n      }else{\n        // TODO: Defer siblings if we're not at the right index for this slot.\n        // I.e. if we had null values before, then we want to defer this\n        // for each null value. However, we also don't want to call updateSlot\n        // with the previous one.\n        previousNewFiber.sibling=newFiber;\n      }\n\n      previousNewFiber=newFiber;\n      oldFiber=nextOldFiber;\n    }\n\n    if(step.done){\n      // We've reached the end of the new children. We can delete the rest.\n      deleteRemainingChildren(returnFiber, oldFiber);\n      return resultingFirstChild;\n    }\n\n    if(oldFiber===null){\n      // If we don't have any more existing children we can choose a fast path\n      // since the rest will all be insertions.\n      for (; !step.done; newIdx++, step=newChildren.next()){\n        var _newFiber3=createChild(returnFiber, step.value, expirationTime);\n\n        if(_newFiber3===null){\n          continue;\n        }\n\n        lastPlacedIndex=placeChild(_newFiber3, lastPlacedIndex, newIdx);\n\n        if(previousNewFiber===null){\n          // TODO: Move out of the loop. This only happens for the first run.\n          resultingFirstChild=_newFiber3;\n        }else{\n          previousNewFiber.sibling=_newFiber3;\n        }\n\n        previousNewFiber=_newFiber3;\n      }\n\n      return resultingFirstChild;\n    } // Add all children to a key map for quick lookups.\n\n\n    var existingChildren=mapRemainingChildren(returnFiber, oldFiber); // Keep scanning and use the map to restore deleted items as moves.\n\n    for (; !step.done; newIdx++, step=newChildren.next()){\n      var _newFiber4=updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);\n\n      if(_newFiber4!==null){\n        if(shouldTrackSideEffects){\n          if(_newFiber4.alternate!==null){\n            // The new fiber is a work in progress, but if there exists a\n            // current, that means that we reused the fiber. We need to delete\n            // it from the child list so that we don't add it to the deletion\n            // list.\n            existingChildren.delete(_newFiber4.key===null ? newIdx:_newFiber4.key);\n          }\n        }\n\n        lastPlacedIndex=placeChild(_newFiber4, lastPlacedIndex, newIdx);\n\n        if(previousNewFiber===null){\n          resultingFirstChild=_newFiber4;\n        }else{\n          previousNewFiber.sibling=_newFiber4;\n        }\n\n        previousNewFiber=_newFiber4;\n      }\n    }\n\n    if(shouldTrackSideEffects){\n      // Any existing children that weren't consumed above were deleted. We need\n      // to add them to the deletion list.\n      existingChildren.forEach(function (child){\n        return deleteChild(returnFiber, child);\n      });\n    }\n\n    return resultingFirstChild;\n  }\n\n  function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime){\n    // There's no need to check for keys on text nodes since we don't have a\n    // way to define them.\n    if(currentFirstChild!==null&&currentFirstChild.tag===HostText){\n      // We already have an existing node so let's just update it and delete\n      // the rest.\n      deleteRemainingChildren(returnFiber, currentFirstChild.sibling);\n      var existing=useFiber(currentFirstChild, textContent);\n      existing.return=returnFiber;\n      return existing;\n    } // The existing first child is not a text node so we need to create one\n    // and delete the existing ones.\n\n\n    deleteRemainingChildren(returnFiber, currentFirstChild);\n    var created=createFiberFromText(textContent, returnFiber.mode, expirationTime);\n    created.return=returnFiber;\n    return created;\n  }\n\n  function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime){\n    var key=element.key;\n    var child=currentFirstChild;\n\n    while (child!==null){\n      // TODO: If key===null and child.key===null, then this only applies to\n      // the first item in the list.\n      if(child.key===key){\n        switch (child.tag){\n          case Fragment:\n            {\n              if(element.type===REACT_FRAGMENT_TYPE){\n                deleteRemainingChildren(returnFiber, child.sibling);\n                var existing=useFiber(child, element.props.children);\n                existing.return=returnFiber;\n\n                {\n                  existing._debugSource=element._source;\n                  existing._debugOwner=element._owner;\n                }\n\n                return existing;\n              }\n\n              break;\n            }\n\n          case Block:\n\n          // We intentionally fallthrough here if enableBlocksAPI is not on.\n          // eslint-disable-next-lined no-fallthrough\n\n          default:\n            {\n              if(child.elementType===element.type||(// Keep this check inline so it only runs on the false path:\n               isCompatibleFamilyForHotReloading(child, element))){\n                deleteRemainingChildren(returnFiber, child.sibling);\n\n                var _existing3=useFiber(child, element.props);\n\n                _existing3.ref=coerceRef(returnFiber, child, element);\n                _existing3.return=returnFiber;\n\n                {\n                  _existing3._debugSource=element._source;\n                  _existing3._debugOwner=element._owner;\n                }\n\n                return _existing3;\n              }\n\n              break;\n            }\n        } // Didn't match.\n\n\n        deleteRemainingChildren(returnFiber, child);\n        break;\n      }else{\n        deleteChild(returnFiber, child);\n      }\n\n      child=child.sibling;\n    }\n\n    if(element.type===REACT_FRAGMENT_TYPE){\n      var created=createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);\n      created.return=returnFiber;\n      return created;\n    }else{\n      var _created4=createFiberFromElement(element, returnFiber.mode, expirationTime);\n\n      _created4.ref=coerceRef(returnFiber, currentFirstChild, element);\n      _created4.return=returnFiber;\n      return _created4;\n    }\n  }\n\n  function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime){\n    var key=portal.key;\n    var child=currentFirstChild;\n\n    while (child!==null){\n      // TODO: If key===null and child.key===null, then this only applies to\n      // the first item in the list.\n      if(child.key===key){\n        if(child.tag===HostPortal&&child.stateNode.containerInfo===portal.containerInfo&&child.stateNode.implementation===portal.implementation){\n          deleteRemainingChildren(returnFiber, child.sibling);\n          var existing=useFiber(child, portal.children||[]);\n          existing.return=returnFiber;\n          return existing;\n        }else{\n          deleteRemainingChildren(returnFiber, child);\n          break;\n        }\n      }else{\n        deleteChild(returnFiber, child);\n      }\n\n      child=child.sibling;\n    }\n\n    var created=createFiberFromPortal(portal, returnFiber.mode, expirationTime);\n    created.return=returnFiber;\n    return created;\n  } // This API will tag the children with the side-effect of the reconciliation\n  // itself. They will be added to the side-effect list as we pass through the\n  // children and the parent.\n\n\n  function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime){\n    // This function is not recursive.\n    // If the top level item is an array, we treat it as a set of children,\n    // not as a fragment. Nested arrays on the other hand will be treated as\n    // fragment nodes. Recursion happens at the normal flow.\n    // Handle top level unkeyed fragments as if they were arrays.\n    // This leads to an ambiguity between <>{[...]}</> and <>...</>.\n    // We treat the ambiguous cases above the same.\n    var isUnkeyedTopLevelFragment=typeof newChild==='object'&&newChild!==null&&newChild.type===REACT_FRAGMENT_TYPE&&newChild.key===null;\n\n    if(isUnkeyedTopLevelFragment){\n      newChild=newChild.props.children;\n    } // Handle object types\n\n\n    var isObject=typeof newChild==='object'&&newChild!==null;\n\n    if(isObject){\n      switch (newChild.$$typeof){\n        case REACT_ELEMENT_TYPE:\n          return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));\n\n        case REACT_PORTAL_TYPE:\n          return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));\n      }\n    }\n\n    if(typeof newChild==='string'||typeof newChild==='number'){\n      return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));\n    }\n\n    if(isArray$1(newChild)){\n      return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);\n    }\n\n    if(getIteratorFn(newChild)){\n      return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);\n    }\n\n    if(isObject){\n      throwOnInvalidObjectType(returnFiber, newChild);\n    }\n\n    {\n      if(typeof newChild==='function'){\n        warnOnFunctionType();\n      }\n    }\n\n    if(typeof newChild==='undefined'&&!isUnkeyedTopLevelFragment){\n      // If the new child is undefined, and the return fiber is a composite\n      // component, throw an error. If Fiber return types are disabled,\n      // we already threw above.\n      switch (returnFiber.tag){\n        case ClassComponent:\n          {\n            {\n              var instance=returnFiber.stateNode;\n\n              if(instance.render._isMockFunction){\n                // We allow auto-mocks to proceed as if they're returning null.\n                break;\n              }\n            }\n          }\n        // Intentionally fall through to the next case, which handles both\n        // functions and classes\n        // eslint-disable-next-lined no-fallthrough\n\n        case FunctionComponent:\n          {\n            var Component=returnFiber.type;\n\n            {\n              {\n                throw Error((Component.displayName||Component.name||'Component') + \"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.\");\n              }\n            }\n          }\n      }\n    } // Remaining cases are all treated as empty.\n\n\n    return deleteRemainingChildren(returnFiber, currentFirstChild);\n  }\n\n  return reconcileChildFibers;\n}\n\nvar reconcileChildFibers=ChildReconciler(true);\nvar mountChildFibers=ChildReconciler(false);\nfunction cloneChildFibers(current, workInProgress){\n  if(!(current===null||workInProgress.child===current.child)){\n    {\n      throw Error(\"Resuming work not yet implemented.\");\n    }\n  }\n\n  if(workInProgress.child===null){\n    return;\n  }\n\n  var currentChild=workInProgress.child;\n  var newChild=createWorkInProgress(currentChild, currentChild.pendingProps);\n  workInProgress.child=newChild;\n  newChild.return=workInProgress;\n\n  while (currentChild.sibling!==null){\n    currentChild=currentChild.sibling;\n    newChild=newChild.sibling=createWorkInProgress(currentChild, currentChild.pendingProps);\n    newChild.return=workInProgress;\n  }\n\n  newChild.sibling=null;\n} // Reset a workInProgress child set to prepare it for a second pass.\n\nfunction resetChildFibers(workInProgress, renderExpirationTime){\n  var child=workInProgress.child;\n\n  while (child!==null){\n    resetWorkInProgress(child, renderExpirationTime);\n    child=child.sibling;\n  }\n}\n\nvar NO_CONTEXT={};\nvar contextStackCursor$1=createCursor(NO_CONTEXT);\nvar contextFiberStackCursor=createCursor(NO_CONTEXT);\nvar rootInstanceStackCursor=createCursor(NO_CONTEXT);\n\nfunction requiredContext(c){\n  if(!(c!==NO_CONTEXT)){\n    {\n      throw Error(\"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n\n  return c;\n}\n\nfunction getRootHostContainer(){\n  var rootInstance=requiredContext(rootInstanceStackCursor.current);\n  return rootInstance;\n}\n\nfunction pushHostContainer(fiber, nextRootInstance){\n  // Push current root instance onto the stack;\n  // This allows us to reset root when portals are popped.\n  push(rootInstanceStackCursor, nextRootInstance, fiber); // Track the context and the Fiber that provided it.\n  // This enables us to pop only Fibers that provide unique contexts.\n\n  push(contextFiberStackCursor, fiber, fiber); // Finally, we need to push the host context to the stack.\n  // However, we can't just call getRootHostContext() and push it because\n  // we'd have a different number of entries on the stack depending on\n  // whether getRootHostContext() throws somewhere in renderer code or not.\n  // So we push an empty value first. This lets us safely unwind on errors.\n\n  push(contextStackCursor$1, NO_CONTEXT, fiber);\n  var nextRootContext=getRootHostContext(nextRootInstance); // Now that we know this function doesn't throw, replace it.\n\n  pop(contextStackCursor$1, fiber);\n  push(contextStackCursor$1, nextRootContext, fiber);\n}\n\nfunction popHostContainer(fiber){\n  pop(contextStackCursor$1, fiber);\n  pop(contextFiberStackCursor, fiber);\n  pop(rootInstanceStackCursor, fiber);\n}\n\nfunction getHostContext(){\n  var context=requiredContext(contextStackCursor$1.current);\n  return context;\n}\n\nfunction pushHostContext(fiber){\n  var rootInstance=requiredContext(rootInstanceStackCursor.current);\n  var context=requiredContext(contextStackCursor$1.current);\n  var nextContext=getChildHostContext(context, fiber.type); // Don't push this Fiber's context unless it's unique.\n\n  if(context===nextContext){\n    return;\n  } // Track the context and the Fiber that provided it.\n  // This enables us to pop only Fibers that provide unique contexts.\n\n\n  push(contextFiberStackCursor, fiber, fiber);\n  push(contextStackCursor$1, nextContext, fiber);\n}\n\nfunction popHostContext(fiber){\n  // Do not pop unless this Fiber provided the current context.\n  // pushHostContext() only pushes Fibers that provide unique contexts.\n  if(contextFiberStackCursor.current!==fiber){\n    return;\n  }\n\n  pop(contextStackCursor$1, fiber);\n  pop(contextFiberStackCursor, fiber);\n}\n\nvar DefaultSuspenseContext=0; // The Suspense Context is split into two parts. The lower bits is\n// inherited deeply down the subtree. The upper bits only affect\n// this immediate suspense boundary and gets reset each new\n// boundary or suspense list.\n\nvar SubtreeSuspenseContextMask=1; // Subtree Flags:\n// InvisibleParentSuspenseContext indicates that one of our parent Suspense\n// boundaries is not currently showing visible main content.\n// Either because it is already showing a fallback or is not mounted at all.\n// We can use this to determine if it is desirable to trigger a fallback at\n// the parent. If not, then we might need to trigger undesirable boundaries\n// and/or suspend the commit to avoid hiding the parent content.\n\nvar InvisibleParentSuspenseContext=1; // Shallow Flags:\n// ForceSuspenseFallback can be used by SuspenseList to force newly added\n// items into their fallback state during one of the render passes.\n\nvar ForceSuspenseFallback=2;\nvar suspenseStackCursor=createCursor(DefaultSuspenseContext);\nfunction hasSuspenseContext(parentContext, flag){\n  return (parentContext & flag)!==0;\n}\nfunction setDefaultShallowSuspenseContext(parentContext){\n  return parentContext & SubtreeSuspenseContextMask;\n}\nfunction setShallowSuspenseContext(parentContext, shallowContext){\n  return parentContext & SubtreeSuspenseContextMask | shallowContext;\n}\nfunction addSubtreeSuspenseContext(parentContext, subtreeContext){\n  return parentContext | subtreeContext;\n}\nfunction pushSuspenseContext(fiber, newContext){\n  push(suspenseStackCursor, newContext, fiber);\n}\nfunction popSuspenseContext(fiber){\n  pop(suspenseStackCursor, fiber);\n}\n\nfunction shouldCaptureSuspense(workInProgress, hasInvisibleParent){\n  // If it was the primary children that just suspended, capture and render the\n  // fallback. Otherwise, don't capture and bubble to the next boundary.\n  var nextState=workInProgress.memoizedState;\n\n  if(nextState!==null){\n    if(nextState.dehydrated!==null){\n      // A dehydrated boundary always captures.\n      return true;\n    }\n\n    return false;\n  }\n\n  var props=workInProgress.memoizedProps; // In order to capture, the Suspense component must have a fallback prop.\n\n  if(props.fallback===undefined){\n    return false;\n  } // Regular boundaries always capture.\n\n\n  if(props.unstable_avoidThisFallback!==true){\n    return true;\n  } // If it's a boundary we should avoid, then we prefer to bubble up to the\n  // parent boundary if it is currently invisible.\n\n\n  if(hasInvisibleParent){\n    return false;\n  } // If the parent is not able to handle it, we must handle it.\n\n\n  return true;\n}\nfunction findFirstSuspended(row){\n  var node=row;\n\n  while (node!==null){\n    if(node.tag===SuspenseComponent){\n      var state=node.memoizedState;\n\n      if(state!==null){\n        var dehydrated=state.dehydrated;\n\n        if(dehydrated===null||isSuspenseInstancePending(dehydrated)||isSuspenseInstanceFallback(dehydrated)){\n          return node;\n        }\n      }\n    }else if(node.tag===SuspenseListComponent&&// revealOrder undefined can't be trusted because it don't\n    // keep track of whether it suspended or not.\n    node.memoizedProps.revealOrder!==undefined){\n      var didSuspend=(node.effectTag & DidCapture)!==NoEffect;\n\n      if(didSuspend){\n        return node;\n      }\n    }else if(node.child!==null){\n      node.child.return=node;\n      node=node.child;\n      continue;\n    }\n\n    if(node===row){\n      return null;\n    }\n\n    while (node.sibling===null){\n      if(node.return===null||node.return===row){\n        return null;\n      }\n\n      node=node.return;\n    }\n\n    node.sibling.return=node.return;\n    node=node.sibling;\n  }\n\n  return null;\n}\n\nfunction createDeprecatedResponderListener(responder, props){\n  var eventResponderListener={\n    responder: responder,\n    props: props\n  };\n\n  {\n    Object.freeze(eventResponderListener);\n  }\n\n  return eventResponderListener;\n}\n\nvar HasEffect=\n\n1; // Represents the phase in which the effect (not the clean-up) fires.\n\nvar Layout=\n\n2;\nvar Passive$1=\n\n4;\n\nvar ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher,\n    ReactCurrentBatchConfig$1=ReactSharedInternals.ReactCurrentBatchConfig;\nvar didWarnAboutMismatchedHooksForComponent;\n\n{\n  didWarnAboutMismatchedHooksForComponent=new Set();\n}\n\n// These are set right before calling the component.\nvar renderExpirationTime=NoWork; // The work-in-progress fiber. I've named it differently to distinguish it from\n// the work-in-progress hook.\n\nvar currentlyRenderingFiber$1=null; // Hooks are stored as a linked list on the fiber's memoizedState field. The\n// current hook list is the list that belongs to the current fiber. The\n// work-in-progress hook list is a new list that will be added to the\n// work-in-progress fiber.\n\nvar currentHook=null;\nvar workInProgressHook=null; // Whether an update was scheduled at any point during the render phase. This\n// does not get reset if we do another render pass; only when we're completely\n// finished evaluating this component. This is an optimization so we know\n// whether we need to clear render phase updates after a throw.\n\nvar didScheduleRenderPhaseUpdate=false;\nvar RE_RENDER_LIMIT=25; // In DEV, this is the name of the currently executing primitive hook\n\nvar currentHookNameInDev=null; // In DEV, this list ensures that hooks are called in the same order between renders.\n// The list stores the order of hooks used during the initial render (mount).\n// Subsequent renders (updates) reference this list.\n\nvar hookTypesDev=null;\nvar hookTypesUpdateIndexDev=-1; // In DEV, this tracks whether currently rendering component needs to ignore\n// the dependencies for Hooks that need them (e.g. useEffect or useMemo).\n// When true, such Hooks will always be \"remounted\". Only used during hot reload.\n\nvar ignorePreviousDependencies=false;\n\nfunction mountHookTypesDev(){\n  {\n    var hookName=currentHookNameInDev;\n\n    if(hookTypesDev===null){\n      hookTypesDev=[hookName];\n    }else{\n      hookTypesDev.push(hookName);\n    }\n  }\n}\n\nfunction updateHookTypesDev(){\n  {\n    var hookName=currentHookNameInDev;\n\n    if(hookTypesDev!==null){\n      hookTypesUpdateIndexDev++;\n\n      if(hookTypesDev[hookTypesUpdateIndexDev]!==hookName){\n        warnOnHookMismatchInDev(hookName);\n      }\n    }\n  }\n}\n\nfunction checkDepsAreArrayDev(deps){\n  {\n    if(deps!==undefined&&deps!==null&&!Array.isArray(deps)){\n      // Verify deps, but only on mount to avoid extra checks.\n      // It's unlikely their type would change as usually you define them inline.\n      error('%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);\n    }\n  }\n}\n\nfunction warnOnHookMismatchInDev(currentHookName){\n  {\n    var componentName=getComponentName(currentlyRenderingFiber$1.type);\n\n    if(!didWarnAboutMismatchedHooksForComponent.has(componentName)){\n      didWarnAboutMismatchedHooksForComponent.add(componentName);\n\n      if(hookTypesDev!==null){\n        var table='';\n        var secondColumnStart=30;\n\n        for (var i=0; i <=hookTypesUpdateIndexDev; i++){\n          var oldHookName=hookTypesDev[i];\n          var newHookName=i===hookTypesUpdateIndexDev ? currentHookName:oldHookName;\n          var row=i + 1 + \". \" + oldHookName; // Extra space so second column lines up\n          // lol @ IE not supporting String#repeat\n\n          while (row.length < secondColumnStart){\n            row +=' ';\n          }\n\n          row +=newHookName + '\\n';\n          table +=row;\n        }\n\n        error('React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\\n\\n' + '   Previous render            Next render\\n' + '   ------------------------------------------------------\\n' + '%s' + '   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\\n', componentName, table);\n      }\n    }\n  }\n}\n\nfunction throwInvalidHookError(){\n  {\n    {\n      throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.\");\n    }\n  }\n}\n\nfunction areHookInputsEqual(nextDeps, prevDeps){\n  {\n    if(ignorePreviousDependencies){\n      // Only true when this component is being hot reloaded.\n      return false;\n    }\n  }\n\n  if(prevDeps===null){\n    {\n      error('%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);\n    }\n\n    return false;\n  }\n\n  {\n    // Don't bother comparing lengths in prod because these arrays should be\n    // passed inline.\n    if(nextDeps.length!==prevDeps.length){\n      error('The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\\n\\n' + 'Previous: %s\\n' + 'Incoming: %s', currentHookNameInDev, \"[\" + prevDeps.join(', ') + \"]\", \"[\" + nextDeps.join(', ') + \"]\");\n    }\n  }\n\n  for (var i=0; i < prevDeps.length&&i < nextDeps.length; i++){\n    if(objectIs(nextDeps[i], prevDeps[i])){\n      continue;\n    }\n\n    return false;\n  }\n\n  return true;\n}\n\nfunction renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderExpirationTime){\n  renderExpirationTime=nextRenderExpirationTime;\n  currentlyRenderingFiber$1=workInProgress;\n\n  {\n    hookTypesDev=current!==null ? current._debugHookTypes:null;\n    hookTypesUpdateIndexDev=-1; // Used for hot reloading:\n\n    ignorePreviousDependencies=current!==null&&current.type!==workInProgress.type;\n  }\n\n  workInProgress.memoizedState=null;\n  workInProgress.updateQueue=null;\n  workInProgress.expirationTime=NoWork; // The following should have already been reset\n  // currentHook=null;\n  // workInProgressHook=null;\n  // didScheduleRenderPhaseUpdate=false;\n  // TODO Warn if no hooks are used at all during mount, then some are used during update.\n  // Currently we will identify the update render as a mount because memoizedState===null.\n  // This is tricky because it's valid for certain types of components (e.g. React.lazy)\n  // Using memoizedState to differentiate between mount/update only works if at least one stateful hook is used.\n  // Non-stateful hooks (e.g. context) don't get added to memoizedState,\n  // so memoizedState would be null during updates and mounts.\n\n  {\n    if(current!==null&&current.memoizedState!==null){\n      ReactCurrentDispatcher.current=HooksDispatcherOnUpdateInDEV;\n    }else if(hookTypesDev!==null){\n      // This dispatcher handles an edge case where a component is updating,\n      // but no stateful hooks have been used.\n      // We want to match the production code behavior (which will use HooksDispatcherOnMount),\n      // but with the extra DEV validation to ensure hooks ordering hasn't changed.\n      // This dispatcher does that.\n      ReactCurrentDispatcher.current=HooksDispatcherOnMountWithHookTypesInDEV;\n    }else{\n      ReactCurrentDispatcher.current=HooksDispatcherOnMountInDEV;\n    }\n  }\n\n  var children=Component(props, secondArg); // Check if there was a render phase update\n\n  if(workInProgress.expirationTime===renderExpirationTime){\n    // Keep rendering in a loop for as long as render phase updates continue to\n    // be scheduled. Use a counter to prevent infinite loops.\n    var numberOfReRenders=0;\n\n    do {\n      workInProgress.expirationTime=NoWork;\n\n      if(!(numberOfReRenders < RE_RENDER_LIMIT)){\n        {\n          throw Error(\"Too many re-renders. React limits the number of renders to prevent an infinite loop.\");\n        }\n      }\n\n      numberOfReRenders +=1;\n\n      {\n        // Even when hot reloading, allow dependencies to stabilize\n        // after first render to prevent infinite render phase updates.\n        ignorePreviousDependencies=false;\n      } // Start over from the beginning of the list\n\n\n      currentHook=null;\n      workInProgressHook=null;\n      workInProgress.updateQueue=null;\n\n      {\n        // Also validate hook order for cascading updates.\n        hookTypesUpdateIndexDev=-1;\n      }\n\n      ReactCurrentDispatcher.current=HooksDispatcherOnRerenderInDEV ;\n      children=Component(props, secondArg);\n    } while (workInProgress.expirationTime===renderExpirationTime);\n  } // We can assume the previous dispatcher is always this one, since we set it\n  // at the beginning of the render phase and there's no re-entrancy.\n\n\n  ReactCurrentDispatcher.current=ContextOnlyDispatcher;\n\n  {\n    workInProgress._debugHookTypes=hookTypesDev;\n  } // This check uses currentHook so that it works the same in DEV and prod bundles.\n  // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.\n\n\n  var didRenderTooFewHooks=currentHook!==null&&currentHook.next!==null;\n  renderExpirationTime=NoWork;\n  currentlyRenderingFiber$1=null;\n  currentHook=null;\n  workInProgressHook=null;\n\n  {\n    currentHookNameInDev=null;\n    hookTypesDev=null;\n    hookTypesUpdateIndexDev=-1;\n  }\n\n  didScheduleRenderPhaseUpdate=false;\n\n  if(!!didRenderTooFewHooks){\n    {\n      throw Error(\"Rendered fewer hooks than expected. This may be caused by an accidental early return statement.\");\n    }\n  }\n\n  return children;\n}\nfunction bailoutHooks(current, workInProgress, expirationTime){\n  workInProgress.updateQueue=current.updateQueue;\n  workInProgress.effectTag &=~(Passive | Update);\n\n  if(current.expirationTime <=expirationTime){\n    current.expirationTime=NoWork;\n  }\n}\nfunction resetHooksAfterThrow(){\n  // We can assume the previous dispatcher is always this one, since we set it\n  // at the beginning of the render phase and there's no re-entrancy.\n  ReactCurrentDispatcher.current=ContextOnlyDispatcher;\n\n  if(didScheduleRenderPhaseUpdate){\n    // There were render phase updates. These are only valid for this render\n    // phase, which we are now aborting. Remove the updates from the queues so\n    // they do not persist to the next render. Do not remove updates from hooks\n    // that weren't processed.\n    //\n    // Only reset the updates from the queue if it has a clone. If it does\n    // not have a clone, that means it wasn't processed, and the updates were\n    // scheduled before we entered the render phase.\n    var hook=currentlyRenderingFiber$1.memoizedState;\n\n    while (hook!==null){\n      var queue=hook.queue;\n\n      if(queue!==null){\n        queue.pending=null;\n      }\n\n      hook=hook.next;\n    }\n  }\n\n  renderExpirationTime=NoWork;\n  currentlyRenderingFiber$1=null;\n  currentHook=null;\n  workInProgressHook=null;\n\n  {\n    hookTypesDev=null;\n    hookTypesUpdateIndexDev=-1;\n    currentHookNameInDev=null;\n  }\n\n  didScheduleRenderPhaseUpdate=false;\n}\n\nfunction mountWorkInProgressHook(){\n  var hook={\n    memoizedState: null,\n    baseState: null,\n    baseQueue: null,\n    queue: null,\n    next: null\n  };\n\n  if(workInProgressHook===null){\n    // This is the first hook in the list\n    currentlyRenderingFiber$1.memoizedState=workInProgressHook=hook;\n  }else{\n    // Append to the end of the list\n    workInProgressHook=workInProgressHook.next=hook;\n  }\n\n  return workInProgressHook;\n}\n\nfunction updateWorkInProgressHook(){\n  // This function is used both for updates and for re-renders triggered by a\n  // render phase update. It assumes there is either a current hook we can\n  // clone, or a work-in-progress hook from a previous render pass that we can\n  // use as a base. When we reach the end of the base list, we must switch to\n  // the dispatcher used for mounts.\n  var nextCurrentHook;\n\n  if(currentHook===null){\n    var current=currentlyRenderingFiber$1.alternate;\n\n    if(current!==null){\n      nextCurrentHook=current.memoizedState;\n    }else{\n      nextCurrentHook=null;\n    }\n  }else{\n    nextCurrentHook=currentHook.next;\n  }\n\n  var nextWorkInProgressHook;\n\n  if(workInProgressHook===null){\n    nextWorkInProgressHook=currentlyRenderingFiber$1.memoizedState;\n  }else{\n    nextWorkInProgressHook=workInProgressHook.next;\n  }\n\n  if(nextWorkInProgressHook!==null){\n    // There's already a work-in-progress. Reuse it.\n    workInProgressHook=nextWorkInProgressHook;\n    nextWorkInProgressHook=workInProgressHook.next;\n    currentHook=nextCurrentHook;\n  }else{\n    // Clone from the current hook.\n    if(!(nextCurrentHook!==null)){\n      {\n        throw Error(\"Rendered more hooks than during the previous render.\");\n      }\n    }\n\n    currentHook=nextCurrentHook;\n    var newHook={\n      memoizedState: currentHook.memoizedState,\n      baseState: currentHook.baseState,\n      baseQueue: currentHook.baseQueue,\n      queue: currentHook.queue,\n      next: null\n    };\n\n    if(workInProgressHook===null){\n      // This is the first hook in the list.\n      currentlyRenderingFiber$1.memoizedState=workInProgressHook=newHook;\n    }else{\n      // Append to the end of the list.\n      workInProgressHook=workInProgressHook.next=newHook;\n    }\n  }\n\n  return workInProgressHook;\n}\n\nfunction createFunctionComponentUpdateQueue(){\n  return {\n    lastEffect: null\n  };\n}\n\nfunction basicStateReducer(state, action){\n  // $FlowFixMe: Flow doesn't like mixed types\n  return typeof action==='function' ? action(state):action;\n}\n\nfunction mountReducer(reducer, initialArg, init){\n  var hook=mountWorkInProgressHook();\n  var initialState;\n\n  if(init!==undefined){\n    initialState=init(initialArg);\n  }else{\n    initialState=initialArg;\n  }\n\n  hook.memoizedState=hook.baseState=initialState;\n  var queue=hook.queue={\n    pending: null,\n    dispatch: null,\n    lastRenderedReducer: reducer,\n    lastRenderedState: initialState\n  };\n  var dispatch=queue.dispatch=dispatchAction.bind(null, currentlyRenderingFiber$1, queue);\n  return [hook.memoizedState, dispatch];\n}\n\nfunction updateReducer(reducer, initialArg, init){\n  var hook=updateWorkInProgressHook();\n  var queue=hook.queue;\n\n  if(!(queue!==null)){\n    {\n      throw Error(\"Should have a queue. This is likely a bug in React. Please file an issue.\");\n    }\n  }\n\n  queue.lastRenderedReducer=reducer;\n  var current=currentHook; // The last rebase update that is NOT part of the base state.\n\n  var baseQueue=current.baseQueue; // The last pending update that hasn't been processed yet.\n\n  var pendingQueue=queue.pending;\n\n  if(pendingQueue!==null){\n    // We have new updates that haven't been processed yet.\n    // We'll add them to the base queue.\n    if(baseQueue!==null){\n      // Merge the pending queue and the base queue.\n      var baseFirst=baseQueue.next;\n      var pendingFirst=pendingQueue.next;\n      baseQueue.next=pendingFirst;\n      pendingQueue.next=baseFirst;\n    }\n\n    current.baseQueue=baseQueue=pendingQueue;\n    queue.pending=null;\n  }\n\n  if(baseQueue!==null){\n    // We have a queue to process.\n    var first=baseQueue.next;\n    var newState=current.baseState;\n    var newBaseState=null;\n    var newBaseQueueFirst=null;\n    var newBaseQueueLast=null;\n    var update=first;\n\n    do {\n      var updateExpirationTime=update.expirationTime;\n\n      if(updateExpirationTime < renderExpirationTime){\n        // Priority is insufficient. Skip this update. If this is the first\n        // skipped update, the previous update/state is the new base\n        // update/state.\n        var clone={\n          expirationTime: update.expirationTime,\n          suspenseConfig: update.suspenseConfig,\n          action: update.action,\n          eagerReducer: update.eagerReducer,\n          eagerState: update.eagerState,\n          next: null\n        };\n\n        if(newBaseQueueLast===null){\n          newBaseQueueFirst=newBaseQueueLast=clone;\n          newBaseState=newState;\n        }else{\n          newBaseQueueLast=newBaseQueueLast.next=clone;\n        } // Update the remaining priority in the queue.\n\n\n        if(updateExpirationTime > currentlyRenderingFiber$1.expirationTime){\n          currentlyRenderingFiber$1.expirationTime=updateExpirationTime;\n          markUnprocessedUpdateTime(updateExpirationTime);\n        }\n      }else{\n        // This update does have sufficient priority.\n        if(newBaseQueueLast!==null){\n          var _clone={\n            expirationTime: Sync,\n            // This update is going to be committed so we never want uncommit it.\n            suspenseConfig: update.suspenseConfig,\n            action: update.action,\n            eagerReducer: update.eagerReducer,\n            eagerState: update.eagerState,\n            next: null\n          };\n          newBaseQueueLast=newBaseQueueLast.next=_clone;\n        } // Mark the event time of this update as relevant to this render pass.\n        // TODO: This should ideally use the true event time of this update rather than\n        // its priority which is a derived and not reverseable value.\n        // TODO: We should skip this update if it was already committed but currently\n        // we have no way of detecting the difference between a committed and suspended\n        // update here.\n\n\n        markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig); // Process this update.\n\n        if(update.eagerReducer===reducer){\n          // If this update was processed eagerly, and its reducer matches the\n          // current reducer, we can use the eagerly computed state.\n          newState=update.eagerState;\n        }else{\n          var action=update.action;\n          newState=reducer(newState, action);\n        }\n      }\n\n      update=update.next;\n    } while (update!==null&&update!==first);\n\n    if(newBaseQueueLast===null){\n      newBaseState=newState;\n    }else{\n      newBaseQueueLast.next=newBaseQueueFirst;\n    } // Mark that the fiber performed work, but only if the new state is\n    // different from the current state.\n\n\n    if(!objectIs(newState, hook.memoizedState)){\n      markWorkInProgressReceivedUpdate();\n    }\n\n    hook.memoizedState=newState;\n    hook.baseState=newBaseState;\n    hook.baseQueue=newBaseQueueLast;\n    queue.lastRenderedState=newState;\n  }\n\n  var dispatch=queue.dispatch;\n  return [hook.memoizedState, dispatch];\n}\n\nfunction rerenderReducer(reducer, initialArg, init){\n  var hook=updateWorkInProgressHook();\n  var queue=hook.queue;\n\n  if(!(queue!==null)){\n    {\n      throw Error(\"Should have a queue. This is likely a bug in React. Please file an issue.\");\n    }\n  }\n\n  queue.lastRenderedReducer=reducer; // This is a re-render. Apply the new render phase updates to the previous\n  // work-in-progress hook.\n\n  var dispatch=queue.dispatch;\n  var lastRenderPhaseUpdate=queue.pending;\n  var newState=hook.memoizedState;\n\n  if(lastRenderPhaseUpdate!==null){\n    // The queue doesn't persist past this render pass.\n    queue.pending=null;\n    var firstRenderPhaseUpdate=lastRenderPhaseUpdate.next;\n    var update=firstRenderPhaseUpdate;\n\n    do {\n      // Process this render phase update. We don't have to check the\n      // priority because it will always be the same as the current\n      // render's.\n      var action=update.action;\n      newState=reducer(newState, action);\n      update=update.next;\n    } while (update!==firstRenderPhaseUpdate); // Mark that the fiber performed work, but only if the new state is\n    // different from the current state.\n\n\n    if(!objectIs(newState, hook.memoizedState)){\n      markWorkInProgressReceivedUpdate();\n    }\n\n    hook.memoizedState=newState; // Don't persist the state accumulated from the render phase updates to\n    // the base state unless the queue is empty.\n    // TODO: Not sure if this is the desired semantics, but it's what we\n    // do for gDSFP. I can't remember why.\n\n    if(hook.baseQueue===null){\n      hook.baseState=newState;\n    }\n\n    queue.lastRenderedState=newState;\n  }\n\n  return [newState, dispatch];\n}\n\nfunction mountState(initialState){\n  var hook=mountWorkInProgressHook();\n\n  if(typeof initialState==='function'){\n    // $FlowFixMe: Flow doesn't like mixed types\n    initialState=initialState();\n  }\n\n  hook.memoizedState=hook.baseState=initialState;\n  var queue=hook.queue={\n    pending: null,\n    dispatch: null,\n    lastRenderedReducer: basicStateReducer,\n    lastRenderedState: initialState\n  };\n  var dispatch=queue.dispatch=dispatchAction.bind(null, currentlyRenderingFiber$1, queue);\n  return [hook.memoizedState, dispatch];\n}\n\nfunction updateState(initialState){\n  return updateReducer(basicStateReducer);\n}\n\nfunction rerenderState(initialState){\n  return rerenderReducer(basicStateReducer);\n}\n\nfunction pushEffect(tag, create, destroy, deps){\n  var effect={\n    tag: tag,\n    create: create,\n    destroy: destroy,\n    deps: deps,\n    // Circular\n    next: null\n  };\n  var componentUpdateQueue=currentlyRenderingFiber$1.updateQueue;\n\n  if(componentUpdateQueue===null){\n    componentUpdateQueue=createFunctionComponentUpdateQueue();\n    currentlyRenderingFiber$1.updateQueue=componentUpdateQueue;\n    componentUpdateQueue.lastEffect=effect.next=effect;\n  }else{\n    var lastEffect=componentUpdateQueue.lastEffect;\n\n    if(lastEffect===null){\n      componentUpdateQueue.lastEffect=effect.next=effect;\n    }else{\n      var firstEffect=lastEffect.next;\n      lastEffect.next=effect;\n      effect.next=firstEffect;\n      componentUpdateQueue.lastEffect=effect;\n    }\n  }\n\n  return effect;\n}\n\nfunction mountRef(initialValue){\n  var hook=mountWorkInProgressHook();\n  var ref={\n    current: initialValue\n  };\n\n  {\n    Object.seal(ref);\n  }\n\n  hook.memoizedState=ref;\n  return ref;\n}\n\nfunction updateRef(initialValue){\n  var hook=updateWorkInProgressHook();\n  return hook.memoizedState;\n}\n\nfunction mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps){\n  var hook=mountWorkInProgressHook();\n  var nextDeps=deps===undefined ? null:deps;\n  currentlyRenderingFiber$1.effectTag |=fiberEffectTag;\n  hook.memoizedState=pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps);\n}\n\nfunction updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps){\n  var hook=updateWorkInProgressHook();\n  var nextDeps=deps===undefined ? null:deps;\n  var destroy=undefined;\n\n  if(currentHook!==null){\n    var prevEffect=currentHook.memoizedState;\n    destroy=prevEffect.destroy;\n\n    if(nextDeps!==null){\n      var prevDeps=prevEffect.deps;\n\n      if(areHookInputsEqual(nextDeps, prevDeps)){\n        pushEffect(hookEffectTag, create, destroy, nextDeps);\n        return;\n      }\n    }\n  }\n\n  currentlyRenderingFiber$1.effectTag |=fiberEffectTag;\n  hook.memoizedState=pushEffect(HasEffect | hookEffectTag, create, destroy, nextDeps);\n}\n\nfunction mountEffect(create, deps){\n  {\n    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests\n    if('undefined'!==typeof jest){\n      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);\n    }\n  }\n\n  return mountEffectImpl(Update | Passive, Passive$1, create, deps);\n}\n\nfunction updateEffect(create, deps){\n  {\n    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests\n    if('undefined'!==typeof jest){\n      warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);\n    }\n  }\n\n  return updateEffectImpl(Update | Passive, Passive$1, create, deps);\n}\n\nfunction mountLayoutEffect(create, deps){\n  return mountEffectImpl(Update, Layout, create, deps);\n}\n\nfunction updateLayoutEffect(create, deps){\n  return updateEffectImpl(Update, Layout, create, deps);\n}\n\nfunction imperativeHandleEffect(create, ref){\n  if(typeof ref==='function'){\n    var refCallback=ref;\n\n    var _inst=create();\n\n    refCallback(_inst);\n    return function (){\n      refCallback(null);\n    };\n  }else if(ref!==null&&ref!==undefined){\n    var refObject=ref;\n\n    {\n      if(!refObject.hasOwnProperty('current')){\n        error('Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}');\n      }\n    }\n\n    var _inst2=create();\n\n    refObject.current=_inst2;\n    return function (){\n      refObject.current=null;\n    };\n  }\n}\n\nfunction mountImperativeHandle(ref, create, deps){\n  {\n    if(typeof create!=='function'){\n      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create!==null ? typeof create:'null');\n    }\n  } // TODO: If deps are provided, should we skip comparing the ref itself?\n\n\n  var effectDeps=deps!==null&&deps!==undefined ? deps.concat([ref]):null;\n  return mountEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction updateImperativeHandle(ref, create, deps){\n  {\n    if(typeof create!=='function'){\n      error('Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create!==null ? typeof create:'null');\n    }\n  } // TODO: If deps are provided, should we skip comparing the ref itself?\n\n\n  var effectDeps=deps!==null&&deps!==undefined ? deps.concat([ref]):null;\n  return updateEffectImpl(Update, Layout, imperativeHandleEffect.bind(null, create, ref), effectDeps);\n}\n\nfunction mountDebugValue(value, formatterFn){// This hook is normally a no-op.\n  // The react-debug-hooks package injects its own implementation\n  // so that e.g. DevTools can display custom hook values.\n}\n\nvar updateDebugValue=mountDebugValue;\n\nfunction mountCallback(callback, deps){\n  var hook=mountWorkInProgressHook();\n  var nextDeps=deps===undefined ? null:deps;\n  hook.memoizedState=[callback, nextDeps];\n  return callback;\n}\n\nfunction updateCallback(callback, deps){\n  var hook=updateWorkInProgressHook();\n  var nextDeps=deps===undefined ? null:deps;\n  var prevState=hook.memoizedState;\n\n  if(prevState!==null){\n    if(nextDeps!==null){\n      var prevDeps=prevState[1];\n\n      if(areHookInputsEqual(nextDeps, prevDeps)){\n        return prevState[0];\n      }\n    }\n  }\n\n  hook.memoizedState=[callback, nextDeps];\n  return callback;\n}\n\nfunction mountMemo(nextCreate, deps){\n  var hook=mountWorkInProgressHook();\n  var nextDeps=deps===undefined ? null:deps;\n  var nextValue=nextCreate();\n  hook.memoizedState=[nextValue, nextDeps];\n  return nextValue;\n}\n\nfunction updateMemo(nextCreate, deps){\n  var hook=updateWorkInProgressHook();\n  var nextDeps=deps===undefined ? null:deps;\n  var prevState=hook.memoizedState;\n\n  if(prevState!==null){\n    // Assume these are defined. If they're not, areHookInputsEqual will warn.\n    if(nextDeps!==null){\n      var prevDeps=prevState[1];\n\n      if(areHookInputsEqual(nextDeps, prevDeps)){\n        return prevState[0];\n      }\n    }\n  }\n\n  var nextValue=nextCreate();\n  hook.memoizedState=[nextValue, nextDeps];\n  return nextValue;\n}\n\nfunction mountDeferredValue(value, config){\n  var _mountState=mountState(value),\n      prevValue=_mountState[0],\n      setValue=_mountState[1];\n\n  mountEffect(function (){\n    var previousConfig=ReactCurrentBatchConfig$1.suspense;\n    ReactCurrentBatchConfig$1.suspense=config===undefined ? null:config;\n\n    try {\n      setValue(value);\n    } finally {\n      ReactCurrentBatchConfig$1.suspense=previousConfig;\n    }\n  }, [value, config]);\n  return prevValue;\n}\n\nfunction updateDeferredValue(value, config){\n  var _updateState=updateState(),\n      prevValue=_updateState[0],\n      setValue=_updateState[1];\n\n  updateEffect(function (){\n    var previousConfig=ReactCurrentBatchConfig$1.suspense;\n    ReactCurrentBatchConfig$1.suspense=config===undefined ? null:config;\n\n    try {\n      setValue(value);\n    } finally {\n      ReactCurrentBatchConfig$1.suspense=previousConfig;\n    }\n  }, [value, config]);\n  return prevValue;\n}\n\nfunction rerenderDeferredValue(value, config){\n  var _rerenderState=rerenderState(),\n      prevValue=_rerenderState[0],\n      setValue=_rerenderState[1];\n\n  updateEffect(function (){\n    var previousConfig=ReactCurrentBatchConfig$1.suspense;\n    ReactCurrentBatchConfig$1.suspense=config===undefined ? null:config;\n\n    try {\n      setValue(value);\n    } finally {\n      ReactCurrentBatchConfig$1.suspense=previousConfig;\n    }\n  }, [value, config]);\n  return prevValue;\n}\n\nfunction startTransition(setPending, config, callback){\n  var priorityLevel=getCurrentPriorityLevel();\n  runWithPriority$1(priorityLevel < UserBlockingPriority$1 ? UserBlockingPriority$1:priorityLevel, function (){\n    setPending(true);\n  });\n  runWithPriority$1(priorityLevel > NormalPriority ? NormalPriority:priorityLevel, function (){\n    var previousConfig=ReactCurrentBatchConfig$1.suspense;\n    ReactCurrentBatchConfig$1.suspense=config===undefined ? null:config;\n\n    try {\n      setPending(false);\n      callback();\n    } finally {\n      ReactCurrentBatchConfig$1.suspense=previousConfig;\n    }\n  });\n}\n\nfunction mountTransition(config){\n  var _mountState2=mountState(false),\n      isPending=_mountState2[0],\n      setPending=_mountState2[1];\n\n  var start=mountCallback(startTransition.bind(null, setPending, config), [setPending, config]);\n  return [start, isPending];\n}\n\nfunction updateTransition(config){\n  var _updateState2=updateState(),\n      isPending=_updateState2[0],\n      setPending=_updateState2[1];\n\n  var start=updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);\n  return [start, isPending];\n}\n\nfunction rerenderTransition(config){\n  var _rerenderState2=rerenderState(),\n      isPending=_rerenderState2[0],\n      setPending=_rerenderState2[1];\n\n  var start=updateCallback(startTransition.bind(null, setPending, config), [setPending, config]);\n  return [start, isPending];\n}\n\nfunction dispatchAction(fiber, queue, action){\n  {\n    if(typeof arguments[3]==='function'){\n      error(\"State updates from the useState() and useReducer() Hooks don't support the \" + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().');\n    }\n  }\n\n  var currentTime=requestCurrentTimeForUpdate();\n  var suspenseConfig=requestCurrentSuspenseConfig();\n  var expirationTime=computeExpirationForFiber(currentTime, fiber, suspenseConfig);\n  var update={\n    expirationTime: expirationTime,\n    suspenseConfig: suspenseConfig,\n    action: action,\n    eagerReducer: null,\n    eagerState: null,\n    next: null\n  };\n\n  {\n    update.priority=getCurrentPriorityLevel();\n  } // Append the update to the end of the list.\n\n\n  var pending=queue.pending;\n\n  if(pending===null){\n    // This is the first update. Create a circular list.\n    update.next=update;\n  }else{\n    update.next=pending.next;\n    pending.next=update;\n  }\n\n  queue.pending=update;\n  var alternate=fiber.alternate;\n\n  if(fiber===currentlyRenderingFiber$1||alternate!==null&&alternate===currentlyRenderingFiber$1){\n    // This is a render phase update. Stash it in a lazily-created map of\n    // queue -> linked list of updates. After this render pass, we'll restart\n    // and apply the stashed updates on top of the work-in-progress hook.\n    didScheduleRenderPhaseUpdate=true;\n    update.expirationTime=renderExpirationTime;\n    currentlyRenderingFiber$1.expirationTime=renderExpirationTime;\n  }else{\n    if(fiber.expirationTime===NoWork&&(alternate===null||alternate.expirationTime===NoWork)){\n      // The queue is currently empty, which means we can eagerly compute the\n      // next state before entering the render phase. If the new state is the\n      // same as the current state, we may be able to bail out entirely.\n      var lastRenderedReducer=queue.lastRenderedReducer;\n\n      if(lastRenderedReducer!==null){\n        var prevDispatcher;\n\n        {\n          prevDispatcher=ReactCurrentDispatcher.current;\n          ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n        }\n\n        try {\n          var currentState=queue.lastRenderedState;\n          var eagerState=lastRenderedReducer(currentState, action); // Stash the eagerly computed state, and the reducer used to compute\n          // it, on the update object. If the reducer hasn't changed by the\n          // time we enter the render phase, then the eager state can be used\n          // without calling the reducer again.\n\n          update.eagerReducer=lastRenderedReducer;\n          update.eagerState=eagerState;\n\n          if(objectIs(eagerState, currentState)){\n            // Fast path. We can bail out without scheduling React to re-render.\n            // It's still possible that we'll need to rebase this update later,\n            // if the component re-renders for a different reason and by that\n            // time the reducer has changed.\n            return;\n          }\n        } catch (error){// Suppress the error. It will throw again in the render phase.\n        } finally {\n          {\n            ReactCurrentDispatcher.current=prevDispatcher;\n          }\n        }\n      }\n    }\n\n    {\n      // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests\n      if('undefined'!==typeof jest){\n        warnIfNotScopedWithMatchingAct(fiber);\n        warnIfNotCurrentlyActingUpdatesInDev(fiber);\n      }\n    }\n\n    scheduleWork(fiber, expirationTime);\n  }\n}\n\nvar ContextOnlyDispatcher={\n  readContext: readContext,\n  useCallback: throwInvalidHookError,\n  useContext: throwInvalidHookError,\n  useEffect: throwInvalidHookError,\n  useImperativeHandle: throwInvalidHookError,\n  useLayoutEffect: throwInvalidHookError,\n  useMemo: throwInvalidHookError,\n  useReducer: throwInvalidHookError,\n  useRef: throwInvalidHookError,\n  useState: throwInvalidHookError,\n  useDebugValue: throwInvalidHookError,\n  useResponder: throwInvalidHookError,\n  useDeferredValue: throwInvalidHookError,\n  useTransition: throwInvalidHookError\n};\nvar HooksDispatcherOnMountInDEV=null;\nvar HooksDispatcherOnMountWithHookTypesInDEV=null;\nvar HooksDispatcherOnUpdateInDEV=null;\nvar HooksDispatcherOnRerenderInDEV=null;\nvar InvalidNestedHooksDispatcherOnMountInDEV=null;\nvar InvalidNestedHooksDispatcherOnUpdateInDEV=null;\nvar InvalidNestedHooksDispatcherOnRerenderInDEV=null;\n\n{\n  var warnInvalidContextAccess=function (){\n    error('Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');\n  };\n\n  var warnInvalidHookAccess=function (){\n    error('Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks');\n  };\n\n  HooksDispatcherOnMountInDEV={\n    readContext: function (context, observedBits){\n      return readContext(context, observedBits);\n    },\n    useCallback: function (callback, deps){\n      currentHookNameInDev='useCallback';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountCallback(callback, deps);\n    },\n    useContext: function (context, observedBits){\n      currentHookNameInDev='useContext';\n      mountHookTypesDev();\n      return readContext(context, observedBits);\n    },\n    useEffect: function (create, deps){\n      currentHookNameInDev='useEffect';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps){\n      currentHookNameInDev='useImperativeHandle';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountImperativeHandle(ref, create, deps);\n    },\n    useLayoutEffect: function (create, deps){\n      currentHookNameInDev='useLayoutEffect';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      return mountLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps){\n      currentHookNameInDev='useMemo';\n      mountHookTypesDev();\n      checkDepsAreArrayDev(deps);\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init){\n      currentHookNameInDev='useReducer';\n      mountHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useRef: function (initialValue){\n      currentHookNameInDev='useRef';\n      mountHookTypesDev();\n      return mountRef(initialValue);\n    },\n    useState: function (initialState){\n      currentHookNameInDev='useState';\n      mountHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountState(initialState);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn){\n      currentHookNameInDev='useDebugValue';\n      mountHookTypesDev();\n      return mountDebugValue();\n    },\n    useResponder: function (responder, props){\n      currentHookNameInDev='useResponder';\n      mountHookTypesDev();\n      return createDeprecatedResponderListener(responder, props);\n    },\n    useDeferredValue: function (value, config){\n      currentHookNameInDev='useDeferredValue';\n      mountHookTypesDev();\n      return mountDeferredValue(value, config);\n    },\n    useTransition: function (config){\n      currentHookNameInDev='useTransition';\n      mountHookTypesDev();\n      return mountTransition(config);\n    }\n  };\n  HooksDispatcherOnMountWithHookTypesInDEV={\n    readContext: function (context, observedBits){\n      return readContext(context, observedBits);\n    },\n    useCallback: function (callback, deps){\n      currentHookNameInDev='useCallback';\n      updateHookTypesDev();\n      return mountCallback(callback, deps);\n    },\n    useContext: function (context, observedBits){\n      currentHookNameInDev='useContext';\n      updateHookTypesDev();\n      return readContext(context, observedBits);\n    },\n    useEffect: function (create, deps){\n      currentHookNameInDev='useEffect';\n      updateHookTypesDev();\n      return mountEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps){\n      currentHookNameInDev='useImperativeHandle';\n      updateHookTypesDev();\n      return mountImperativeHandle(ref, create, deps);\n    },\n    useLayoutEffect: function (create, deps){\n      currentHookNameInDev='useLayoutEffect';\n      updateHookTypesDev();\n      return mountLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps){\n      currentHookNameInDev='useMemo';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init){\n      currentHookNameInDev='useReducer';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useRef: function (initialValue){\n      currentHookNameInDev='useRef';\n      updateHookTypesDev();\n      return mountRef(initialValue);\n    },\n    useState: function (initialState){\n      currentHookNameInDev='useState';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountState(initialState);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn){\n      currentHookNameInDev='useDebugValue';\n      updateHookTypesDev();\n      return mountDebugValue();\n    },\n    useResponder: function (responder, props){\n      currentHookNameInDev='useResponder';\n      updateHookTypesDev();\n      return createDeprecatedResponderListener(responder, props);\n    },\n    useDeferredValue: function (value, config){\n      currentHookNameInDev='useDeferredValue';\n      updateHookTypesDev();\n      return mountDeferredValue(value, config);\n    },\n    useTransition: function (config){\n      currentHookNameInDev='useTransition';\n      updateHookTypesDev();\n      return mountTransition(config);\n    }\n  };\n  HooksDispatcherOnUpdateInDEV={\n    readContext: function (context, observedBits){\n      return readContext(context, observedBits);\n    },\n    useCallback: function (callback, deps){\n      currentHookNameInDev='useCallback';\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context, observedBits){\n      currentHookNameInDev='useContext';\n      updateHookTypesDev();\n      return readContext(context, observedBits);\n    },\n    useEffect: function (create, deps){\n      currentHookNameInDev='useEffect';\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps){\n      currentHookNameInDev='useImperativeHandle';\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useLayoutEffect: function (create, deps){\n      currentHookNameInDev='useLayoutEffect';\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps){\n      currentHookNameInDev='useMemo';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init){\n      currentHookNameInDev='useReducer';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useRef: function (initialValue){\n      currentHookNameInDev='useRef';\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState){\n      currentHookNameInDev='useState';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateState(initialState);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn){\n      currentHookNameInDev='useDebugValue';\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useResponder: function (responder, props){\n      currentHookNameInDev='useResponder';\n      updateHookTypesDev();\n      return createDeprecatedResponderListener(responder, props);\n    },\n    useDeferredValue: function (value, config){\n      currentHookNameInDev='useDeferredValue';\n      updateHookTypesDev();\n      return updateDeferredValue(value, config);\n    },\n    useTransition: function (config){\n      currentHookNameInDev='useTransition';\n      updateHookTypesDev();\n      return updateTransition(config);\n    }\n  };\n  HooksDispatcherOnRerenderInDEV={\n    readContext: function (context, observedBits){\n      return readContext(context, observedBits);\n    },\n    useCallback: function (callback, deps){\n      currentHookNameInDev='useCallback';\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context, observedBits){\n      currentHookNameInDev='useContext';\n      updateHookTypesDev();\n      return readContext(context, observedBits);\n    },\n    useEffect: function (create, deps){\n      currentHookNameInDev='useEffect';\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps){\n      currentHookNameInDev='useImperativeHandle';\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useLayoutEffect: function (create, deps){\n      currentHookNameInDev='useLayoutEffect';\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps){\n      currentHookNameInDev='useMemo';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init){\n      currentHookNameInDev='useReducer';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n      try {\n        return rerenderReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useRef: function (initialValue){\n      currentHookNameInDev='useRef';\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState){\n      currentHookNameInDev='useState';\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnRerenderInDEV;\n\n      try {\n        return rerenderState(initialState);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn){\n      currentHookNameInDev='useDebugValue';\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useResponder: function (responder, props){\n      currentHookNameInDev='useResponder';\n      updateHookTypesDev();\n      return createDeprecatedResponderListener(responder, props);\n    },\n    useDeferredValue: function (value, config){\n      currentHookNameInDev='useDeferredValue';\n      updateHookTypesDev();\n      return rerenderDeferredValue(value, config);\n    },\n    useTransition: function (config){\n      currentHookNameInDev='useTransition';\n      updateHookTypesDev();\n      return rerenderTransition(config);\n    }\n  };\n  InvalidNestedHooksDispatcherOnMountInDEV={\n    readContext: function (context, observedBits){\n      warnInvalidContextAccess();\n      return readContext(context, observedBits);\n    },\n    useCallback: function (callback, deps){\n      currentHookNameInDev='useCallback';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountCallback(callback, deps);\n    },\n    useContext: function (context, observedBits){\n      currentHookNameInDev='useContext';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return readContext(context, observedBits);\n    },\n    useEffect: function (create, deps){\n      currentHookNameInDev='useEffect';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps){\n      currentHookNameInDev='useImperativeHandle';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountImperativeHandle(ref, create, deps);\n    },\n    useLayoutEffect: function (create, deps){\n      currentHookNameInDev='useLayoutEffect';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps){\n      currentHookNameInDev='useMemo';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init){\n      currentHookNameInDev='useReducer';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useRef: function (initialValue){\n      currentHookNameInDev='useRef';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountRef(initialValue);\n    },\n    useState: function (initialState){\n      currentHookNameInDev='useState';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnMountInDEV;\n\n      try {\n        return mountState(initialState);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn){\n      currentHookNameInDev='useDebugValue';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountDebugValue();\n    },\n    useResponder: function (responder, props){\n      currentHookNameInDev='useResponder';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return createDeprecatedResponderListener(responder, props);\n    },\n    useDeferredValue: function (value, config){\n      currentHookNameInDev='useDeferredValue';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountDeferredValue(value, config);\n    },\n    useTransition: function (config){\n      currentHookNameInDev='useTransition';\n      warnInvalidHookAccess();\n      mountHookTypesDev();\n      return mountTransition(config);\n    }\n  };\n  InvalidNestedHooksDispatcherOnUpdateInDEV={\n    readContext: function (context, observedBits){\n      warnInvalidContextAccess();\n      return readContext(context, observedBits);\n    },\n    useCallback: function (callback, deps){\n      currentHookNameInDev='useCallback';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context, observedBits){\n      currentHookNameInDev='useContext';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return readContext(context, observedBits);\n    },\n    useEffect: function (create, deps){\n      currentHookNameInDev='useEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps){\n      currentHookNameInDev='useImperativeHandle';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useLayoutEffect: function (create, deps){\n      currentHookNameInDev='useLayoutEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps){\n      currentHookNameInDev='useMemo';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init){\n      currentHookNameInDev='useReducer';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useRef: function (initialValue){\n      currentHookNameInDev='useRef';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState){\n      currentHookNameInDev='useState';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateState(initialState);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn){\n      currentHookNameInDev='useDebugValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useResponder: function (responder, props){\n      currentHookNameInDev='useResponder';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return createDeprecatedResponderListener(responder, props);\n    },\n    useDeferredValue: function (value, config){\n      currentHookNameInDev='useDeferredValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateDeferredValue(value, config);\n    },\n    useTransition: function (config){\n      currentHookNameInDev='useTransition';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateTransition(config);\n    }\n  };\n  InvalidNestedHooksDispatcherOnRerenderInDEV={\n    readContext: function (context, observedBits){\n      warnInvalidContextAccess();\n      return readContext(context, observedBits);\n    },\n    useCallback: function (callback, deps){\n      currentHookNameInDev='useCallback';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateCallback(callback, deps);\n    },\n    useContext: function (context, observedBits){\n      currentHookNameInDev='useContext';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return readContext(context, observedBits);\n    },\n    useEffect: function (create, deps){\n      currentHookNameInDev='useEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateEffect(create, deps);\n    },\n    useImperativeHandle: function (ref, create, deps){\n      currentHookNameInDev='useImperativeHandle';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateImperativeHandle(ref, create, deps);\n    },\n    useLayoutEffect: function (create, deps){\n      currentHookNameInDev='useLayoutEffect';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateLayoutEffect(create, deps);\n    },\n    useMemo: function (create, deps){\n      currentHookNameInDev='useMemo';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return updateMemo(create, deps);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useReducer: function (reducer, initialArg, init){\n      currentHookNameInDev='useReducer';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return rerenderReducer(reducer, initialArg, init);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useRef: function (initialValue){\n      currentHookNameInDev='useRef';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateRef();\n    },\n    useState: function (initialState){\n      currentHookNameInDev='useState';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      var prevDispatcher=ReactCurrentDispatcher.current;\n      ReactCurrentDispatcher.current=InvalidNestedHooksDispatcherOnUpdateInDEV;\n\n      try {\n        return rerenderState(initialState);\n      } finally {\n        ReactCurrentDispatcher.current=prevDispatcher;\n      }\n    },\n    useDebugValue: function (value, formatterFn){\n      currentHookNameInDev='useDebugValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return updateDebugValue();\n    },\n    useResponder: function (responder, props){\n      currentHookNameInDev='useResponder';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return createDeprecatedResponderListener(responder, props);\n    },\n    useDeferredValue: function (value, config){\n      currentHookNameInDev='useDeferredValue';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return rerenderDeferredValue(value, config);\n    },\n    useTransition: function (config){\n      currentHookNameInDev='useTransition';\n      warnInvalidHookAccess();\n      updateHookTypesDev();\n      return rerenderTransition(config);\n    }\n  };\n}\n\nvar now$1=Scheduler.unstable_now;\nvar commitTime=0;\nvar profilerStartTime=-1;\n\nfunction getCommitTime(){\n  return commitTime;\n}\n\nfunction recordCommitTime(){\n\n  commitTime=now$1();\n}\n\nfunction startProfilerTimer(fiber){\n\n  profilerStartTime=now$1();\n\n  if(fiber.actualStartTime < 0){\n    fiber.actualStartTime=now$1();\n  }\n}\n\nfunction stopProfilerTimerIfRunning(fiber){\n\n  profilerStartTime=-1;\n}\n\nfunction stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime){\n\n  if(profilerStartTime >=0){\n    var elapsedTime=now$1() - profilerStartTime;\n    fiber.actualDuration +=elapsedTime;\n\n    if(overrideBaseTime){\n      fiber.selfBaseDuration=elapsedTime;\n    }\n\n    profilerStartTime=-1;\n  }\n}\n\n// This may have been an insertion or a hydration.\n\nvar hydrationParentFiber=null;\nvar nextHydratableInstance=null;\nvar isHydrating=false;\n\nfunction enterHydrationState(fiber){\n\n  var parentInstance=fiber.stateNode.containerInfo;\n  nextHydratableInstance=getFirstHydratableChild(parentInstance);\n  hydrationParentFiber=fiber;\n  isHydrating=true;\n  return true;\n}\n\nfunction deleteHydratableInstance(returnFiber, instance){\n  {\n    switch (returnFiber.tag){\n      case HostRoot:\n        didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);\n        break;\n\n      case HostComponent:\n        didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);\n        break;\n    }\n  }\n\n  var childToDelete=createFiberFromHostInstanceForDeletion();\n  childToDelete.stateNode=instance;\n  childToDelete.return=returnFiber;\n  childToDelete.effectTag=Deletion; // This might seem like it belongs on progressedFirstDeletion. However,\n  // these children are not part of the reconciliation list of children.\n  // Even if we abort and rereconcile the children, that will try to hydrate\n  // again and the nodes are still in the host tree so these will be\n  // recreated.\n\n  if(returnFiber.lastEffect!==null){\n    returnFiber.lastEffect.nextEffect=childToDelete;\n    returnFiber.lastEffect=childToDelete;\n  }else{\n    returnFiber.firstEffect=returnFiber.lastEffect=childToDelete;\n  }\n}\n\nfunction insertNonHydratedInstance(returnFiber, fiber){\n  fiber.effectTag=fiber.effectTag & ~Hydrating | Placement;\n\n  {\n    switch (returnFiber.tag){\n      case HostRoot:\n        {\n          var parentContainer=returnFiber.stateNode.containerInfo;\n\n          switch (fiber.tag){\n            case HostComponent:\n              var type=fiber.type;\n              var props=fiber.pendingProps;\n              didNotFindHydratableContainerInstance(parentContainer, type);\n              break;\n\n            case HostText:\n              var text=fiber.pendingProps;\n              didNotFindHydratableContainerTextInstance(parentContainer, text);\n              break;\n          }\n\n          break;\n        }\n\n      case HostComponent:\n        {\n          var parentType=returnFiber.type;\n          var parentProps=returnFiber.memoizedProps;\n          var parentInstance=returnFiber.stateNode;\n\n          switch (fiber.tag){\n            case HostComponent:\n              var _type=fiber.type;\n              var _props=fiber.pendingProps;\n              didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type);\n              break;\n\n            case HostText:\n              var _text=fiber.pendingProps;\n              didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);\n              break;\n\n            case SuspenseComponent:\n              didNotFindHydratableSuspenseInstance(parentType, parentProps);\n              break;\n          }\n\n          break;\n        }\n\n      default:\n        return;\n    }\n  }\n}\n\nfunction tryHydrate(fiber, nextInstance){\n  switch (fiber.tag){\n    case HostComponent:\n      {\n        var type=fiber.type;\n        var props=fiber.pendingProps;\n        var instance=canHydrateInstance(nextInstance, type);\n\n        if(instance!==null){\n          fiber.stateNode=instance;\n          return true;\n        }\n\n        return false;\n      }\n\n    case HostText:\n      {\n        var text=fiber.pendingProps;\n        var textInstance=canHydrateTextInstance(nextInstance, text);\n\n        if(textInstance!==null){\n          fiber.stateNode=textInstance;\n          return true;\n        }\n\n        return false;\n      }\n\n    case SuspenseComponent:\n      {\n\n        return false;\n      }\n\n    default:\n      return false;\n  }\n}\n\nfunction tryToClaimNextHydratableInstance(fiber){\n  if(!isHydrating){\n    return;\n  }\n\n  var nextInstance=nextHydratableInstance;\n\n  if(!nextInstance){\n    // Nothing to hydrate. Make it an insertion.\n    insertNonHydratedInstance(hydrationParentFiber, fiber);\n    isHydrating=false;\n    hydrationParentFiber=fiber;\n    return;\n  }\n\n  var firstAttemptedInstance=nextInstance;\n\n  if(!tryHydrate(fiber, nextInstance)){\n    // If we can't hydrate this instance let's try the next one.\n    // We use this as a heuristic. It's based on intuition and not data so it\n    // might be flawed or unnecessary.\n    nextInstance=getNextHydratableSibling(firstAttemptedInstance);\n\n    if(!nextInstance||!tryHydrate(fiber, nextInstance)){\n      // Nothing to hydrate. Make it an insertion.\n      insertNonHydratedInstance(hydrationParentFiber, fiber);\n      isHydrating=false;\n      hydrationParentFiber=fiber;\n      return;\n    } // We matched the next one, we'll now assume that the first one was\n    // superfluous and we'll delete it. Since we can't eagerly delete it\n    // we'll have to schedule a deletion. To do that, this node needs a dummy\n    // fiber associated with it.\n\n\n    deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);\n  }\n\n  hydrationParentFiber=fiber;\n  nextHydratableInstance=getFirstHydratableChild(nextInstance);\n}\n\nfunction prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext){\n\n  var instance=fiber.stateNode;\n  var updatePayload=hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber); // TODO: Type this specific to this type of component.\n\n  fiber.updateQueue=updatePayload; // If the update payload indicates that there is a change or if there\n  // is a new ref we mark this as an update.\n\n  if(updatePayload!==null){\n    return true;\n  }\n\n  return false;\n}\n\nfunction prepareToHydrateHostTextInstance(fiber){\n\n  var textInstance=fiber.stateNode;\n  var textContent=fiber.memoizedProps;\n  var shouldUpdate=hydrateTextInstance(textInstance, textContent, fiber);\n\n  {\n    if(shouldUpdate){\n      // We assume that prepareToHydrateHostTextInstance is called in a context where the\n      // hydration parent is the parent host component of this host text.\n      var returnFiber=hydrationParentFiber;\n\n      if(returnFiber!==null){\n        switch (returnFiber.tag){\n          case HostRoot:\n            {\n              var parentContainer=returnFiber.stateNode.containerInfo;\n              didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);\n              break;\n            }\n\n          case HostComponent:\n            {\n              var parentType=returnFiber.type;\n              var parentProps=returnFiber.memoizedProps;\n              var parentInstance=returnFiber.stateNode;\n              didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);\n              break;\n            }\n        }\n      }\n    }\n  }\n\n  return shouldUpdate;\n}\n\nfunction skipPastDehydratedSuspenseInstance(fiber){\n\n  var suspenseState=fiber.memoizedState;\n  var suspenseInstance=suspenseState!==null ? suspenseState.dehydrated:null;\n\n  if(!suspenseInstance){\n    {\n      throw Error(\"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n\n  return getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);\n}\n\nfunction popToNextHostParent(fiber){\n  var parent=fiber.return;\n\n  while (parent!==null&&parent.tag!==HostComponent&&parent.tag!==HostRoot&&parent.tag!==SuspenseComponent){\n    parent=parent.return;\n  }\n\n  hydrationParentFiber=parent;\n}\n\nfunction popHydrationState(fiber){\n\n  if(fiber!==hydrationParentFiber){\n    // We're deeper than the current hydration context, inside an inserted\n    // tree.\n    return false;\n  }\n\n  if(!isHydrating){\n    // If we're not currently hydrating but we're in a hydration context, then\n    // we were an insertion and now need to pop up reenter hydration of our\n    // siblings.\n    popToNextHostParent(fiber);\n    isHydrating=true;\n    return false;\n  }\n\n  var type=fiber.type; // If we have any remaining hydratable nodes, we need to delete them now.\n  // We only do this deeper than head and body since they tend to have random\n  // other nodes in them. We also ignore components with pure text content in\n  // side of them.\n  // TODO: Better heuristic.\n\n  if(fiber.tag!==HostComponent||type!=='head'&&type!=='body'&&!shouldSetTextContent(type, fiber.memoizedProps)){\n    var nextInstance=nextHydratableInstance;\n\n    while (nextInstance){\n      deleteHydratableInstance(fiber, nextInstance);\n      nextInstance=getNextHydratableSibling(nextInstance);\n    }\n  }\n\n  popToNextHostParent(fiber);\n\n  if(fiber.tag===SuspenseComponent){\n    nextHydratableInstance=skipPastDehydratedSuspenseInstance(fiber);\n  }else{\n    nextHydratableInstance=hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode):null;\n  }\n\n  return true;\n}\n\nfunction resetHydrationState(){\n\n  hydrationParentFiber=null;\n  nextHydratableInstance=null;\n  isHydrating=false;\n}\n\nvar ReactCurrentOwner$1=ReactSharedInternals.ReactCurrentOwner;\nvar didReceiveUpdate=false;\nvar didWarnAboutBadClass;\nvar didWarnAboutModulePatternComponent;\nvar didWarnAboutContextTypeOnFunctionComponent;\nvar didWarnAboutGetDerivedStateOnFunctionComponent;\nvar didWarnAboutFunctionRefs;\nvar didWarnAboutReassigningProps;\nvar didWarnAboutRevealOrder;\nvar didWarnAboutTailOptions;\n\n{\n  didWarnAboutBadClass={};\n  didWarnAboutModulePatternComponent={};\n  didWarnAboutContextTypeOnFunctionComponent={};\n  didWarnAboutGetDerivedStateOnFunctionComponent={};\n  didWarnAboutFunctionRefs={};\n  didWarnAboutReassigningProps=false;\n  didWarnAboutRevealOrder={};\n  didWarnAboutTailOptions={};\n}\n\nfunction reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime){\n  if(current===null){\n    // If this is a fresh new component that hasn't been rendered yet, we\n    // won't update its child set by applying minimal side-effects. Instead,\n    // we will add them all to the child before it gets rendered. That means\n    // we can optimize this reconciliation pass by not tracking side-effects.\n    workInProgress.child=mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n  }else{\n    // If the current child is the same as the work in progress, it means that\n    // we haven't yet started any work on these children. Therefore, we use\n    // the clone algorithm to create a copy of all the current children.\n    // If we had any progressed work already, that is invalid at this point so\n    // let's throw it out.\n    workInProgress.child=reconcileChildFibers(workInProgress, current.child, nextChildren, renderExpirationTime);\n  }\n}\n\nfunction forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime){\n  // This function is fork of reconcileChildren. It's used in cases where we\n  // want to reconcile without matching against the existing set. This has the\n  // effect of all current children being unmounted; even if the type and key\n  // are the same, the old child is unmounted and a new child is created.\n  //\n  // To do this, we're going to go through the reconcile algorithm twice. In\n  // the first pass, we schedule a deletion for all the current children by\n  // passing null.\n  workInProgress.child=reconcileChildFibers(workInProgress, current.child, null, renderExpirationTime); // In the second pass, we mount the new children. The trick here is that we\n  // pass null in place of where we usually pass the current child set. This has\n  // the effect of remounting all children regardless of whether their\n  // identities match.\n\n  workInProgress.child=reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n}\n\nfunction updateForwardRef(current, workInProgress, Component, nextProps, renderExpirationTime){\n  // TODO: current can be non-null here even if the component\n  // hasn't yet mounted. This happens after the first render suspends.\n  // We'll need to figure out if this is fine or can cause issues.\n  {\n    if(workInProgress.type!==workInProgress.elementType){\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var innerPropTypes=Component.propTypes;\n\n      if(innerPropTypes){\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentName(Component), getCurrentFiberStackInDev);\n      }\n    }\n  }\n\n  var render=Component.render;\n  var ref=workInProgress.ref; // The rest is a fork of updateFunctionComponent\n\n  var nextChildren;\n  prepareToReadContext(workInProgress, renderExpirationTime);\n\n  {\n    ReactCurrentOwner$1.current=workInProgress;\n    setIsRendering(true);\n    nextChildren=renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);\n\n    if(workInProgress.mode & StrictMode){\n      // Only double-render components with Hooks\n      if(workInProgress.memoizedState!==null){\n        nextChildren=renderWithHooks(current, workInProgress, render, nextProps, ref, renderExpirationTime);\n      }\n    }\n\n    setIsRendering(false);\n  }\n\n  if(current!==null&&!didReceiveUpdate){\n    bailoutHooks(current, workInProgress, renderExpirationTime);\n    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n  } // React DevTools reads this flag.\n\n\n  workInProgress.effectTag |=PerformedWork;\n  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nfunction updateMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime){\n  if(current===null){\n    var type=Component.type;\n\n    if(isSimpleFunctionComponent(type)&&Component.compare===null&&// SimpleMemoComponent codepath doesn't resolve outer props either.\n    Component.defaultProps===undefined){\n      var resolvedType=type;\n\n      {\n        resolvedType=resolveFunctionForHotReloading(type);\n      } // If this is a plain function component without default props,\n      // and with only the default shallow comparison, we upgrade it\n      // to a SimpleMemoComponent to allow fast path updates.\n\n\n      workInProgress.tag=SimpleMemoComponent;\n      workInProgress.type=resolvedType;\n\n      {\n        validateFunctionComponentInDev(workInProgress, type);\n      }\n\n      return updateSimpleMemoComponent(current, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);\n    }\n\n    {\n      var innerPropTypes=type.propTypes;\n\n      if(innerPropTypes){\n        // Inner memo component props aren't currently validated in createElement.\n        // We could move it there, but we'd still need this for lazy code path.\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentName(type), getCurrentFiberStackInDev);\n      }\n    }\n\n    var child=createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);\n    child.ref=workInProgress.ref;\n    child.return=workInProgress;\n    workInProgress.child=child;\n    return child;\n  }\n\n  {\n    var _type=Component.type;\n    var _innerPropTypes=_type.propTypes;\n\n    if(_innerPropTypes){\n      // Inner memo component props aren't currently validated in createElement.\n      // We could move it there, but we'd still need this for lazy code path.\n      checkPropTypes(_innerPropTypes, nextProps, // Resolved props\n      'prop', getComponentName(_type), getCurrentFiberStackInDev);\n    }\n  }\n\n  var currentChild=current.child; // This is always exactly one child\n\n  if(updateExpirationTime < renderExpirationTime){\n    // This will be the props with resolved defaultProps,\n    // unlike current.memoizedProps which will be the unresolved ones.\n    var prevProps=currentChild.memoizedProps; // Default to shallow comparison\n\n    var compare=Component.compare;\n    compare=compare!==null ? compare:shallowEqual;\n\n    if(compare(prevProps, nextProps)&&current.ref===workInProgress.ref){\n      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n    }\n  } // React DevTools reads this flag.\n\n\n  workInProgress.effectTag |=PerformedWork;\n  var newChild=createWorkInProgress(currentChild, nextProps);\n  newChild.ref=workInProgress.ref;\n  newChild.return=workInProgress;\n  workInProgress.child=newChild;\n  return newChild;\n}\n\nfunction updateSimpleMemoComponent(current, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime){\n  // TODO: current can be non-null here even if the component\n  // hasn't yet mounted. This happens when the inner render suspends.\n  // We'll need to figure out if this is fine or can cause issues.\n  {\n    if(workInProgress.type!==workInProgress.elementType){\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var outerMemoType=workInProgress.elementType;\n\n      if(outerMemoType.$$typeof===REACT_LAZY_TYPE){\n        // We warn when you define propTypes on lazy()\n        // so let's just skip over it to find memo() outer wrapper.\n        // Inner props for memo are validated later.\n        outerMemoType=refineResolvedLazyComponent(outerMemoType);\n      }\n\n      var outerPropTypes=outerMemoType&&outerMemoType.propTypes;\n\n      if(outerPropTypes){\n        checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)\n        'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);\n      } // Inner propTypes will be validated in the function component path.\n\n    }\n  }\n\n  if(current!==null){\n    var prevProps=current.memoizedProps;\n\n    if(shallowEqual(prevProps, nextProps)&&current.ref===workInProgress.ref&&(// Prevent bailout if the implementation changed due to hot reload.\n     workInProgress.type===current.type)){\n      didReceiveUpdate=false;\n\n      if(updateExpirationTime < renderExpirationTime){\n        // The pending update priority was cleared at the beginning of\n        // beginWork. We're about to bail out, but there might be additional\n        // updates at a lower priority. Usually, the priority level of the\n        // remaining updates is accumlated during the evaluation of the\n        // component (i.e. when processing the update queue). But since since\n        // we're bailing out early *without* evaluating the component, we need\n        // to account for it here, too. Reset to the value of the current fiber.\n        // NOTE: This only applies to SimpleMemoComponent, not MemoComponent,\n        // because a MemoComponent fiber does not have hooks or an update queue;\n        // rather, it wraps around an inner component, which may or may not\n        // contains hooks.\n        // TODO: Move the reset at in beginWork out of the common path so that\n        // this is no longer necessary.\n        workInProgress.expirationTime=current.expirationTime;\n        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n      }\n    }\n  }\n\n  return updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime);\n}\n\nfunction updateFragment(current, workInProgress, renderExpirationTime){\n  var nextChildren=workInProgress.pendingProps;\n  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nfunction updateMode(current, workInProgress, renderExpirationTime){\n  var nextChildren=workInProgress.pendingProps.children;\n  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nfunction updateProfiler(current, workInProgress, renderExpirationTime){\n  {\n    workInProgress.effectTag |=Update;\n  }\n\n  var nextProps=workInProgress.pendingProps;\n  var nextChildren=nextProps.children;\n  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nfunction markRef(current, workInProgress){\n  var ref=workInProgress.ref;\n\n  if(current===null&&ref!==null||current!==null&&current.ref!==ref){\n    // Schedule a Ref effect\n    workInProgress.effectTag |=Ref;\n  }\n}\n\nfunction updateFunctionComponent(current, workInProgress, Component, nextProps, renderExpirationTime){\n  {\n    if(workInProgress.type!==workInProgress.elementType){\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var innerPropTypes=Component.propTypes;\n\n      if(innerPropTypes){\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentName(Component), getCurrentFiberStackInDev);\n      }\n    }\n  }\n\n  var context;\n\n  {\n    var unmaskedContext=getUnmaskedContext(workInProgress, Component, true);\n    context=getMaskedContext(workInProgress, unmaskedContext);\n  }\n\n  var nextChildren;\n  prepareToReadContext(workInProgress, renderExpirationTime);\n\n  {\n    ReactCurrentOwner$1.current=workInProgress;\n    setIsRendering(true);\n    nextChildren=renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);\n\n    if(workInProgress.mode & StrictMode){\n      // Only double-render components with Hooks\n      if(workInProgress.memoizedState!==null){\n        nextChildren=renderWithHooks(current, workInProgress, Component, nextProps, context, renderExpirationTime);\n      }\n    }\n\n    setIsRendering(false);\n  }\n\n  if(current!==null&&!didReceiveUpdate){\n    bailoutHooks(current, workInProgress, renderExpirationTime);\n    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n  } // React DevTools reads this flag.\n\n\n  workInProgress.effectTag |=PerformedWork;\n  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nfunction updateClassComponent(current, workInProgress, Component, nextProps, renderExpirationTime){\n  {\n    if(workInProgress.type!==workInProgress.elementType){\n      // Lazy component props can't be validated in createElement\n      // because they're only guaranteed to be resolved here.\n      var innerPropTypes=Component.propTypes;\n\n      if(innerPropTypes){\n        checkPropTypes(innerPropTypes, nextProps, // Resolved props\n        'prop', getComponentName(Component), getCurrentFiberStackInDev);\n      }\n    }\n  } // Push context providers early to prevent context stack mismatches.\n  // During mounting we don't know the child context yet as the instance doesn't exist.\n  // We will invalidate the child context in finishClassComponent() right after rendering.\n\n\n  var hasContext;\n\n  if(isContextProvider(Component)){\n    hasContext=true;\n    pushContextProvider(workInProgress);\n  }else{\n    hasContext=false;\n  }\n\n  prepareToReadContext(workInProgress, renderExpirationTime);\n  var instance=workInProgress.stateNode;\n  var shouldUpdate;\n\n  if(instance===null){\n    if(current!==null){\n      // A class component without an instance only mounts if it suspended\n      // inside a non-concurrent tree, in an inconsistent state. We want to\n      // treat it like a new mount, even though an empty version of it already\n      // committed. Disconnect the alternate pointers.\n      current.alternate=null;\n      workInProgress.alternate=null; // Since this is conceptually a new fiber, schedule a Placement effect\n\n      workInProgress.effectTag |=Placement;\n    } // In the initial pass we might need to construct the instance.\n\n\n    constructClassInstance(workInProgress, Component, nextProps);\n    mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n    shouldUpdate=true;\n  }else if(current===null){\n    // In a resume, we'll already have an instance we can reuse.\n    shouldUpdate=resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n  }else{\n    shouldUpdate=updateClassInstance(current, workInProgress, Component, nextProps, renderExpirationTime);\n  }\n\n  var nextUnitOfWork=finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);\n\n  {\n    var inst=workInProgress.stateNode;\n\n    if(inst.props!==nextProps){\n      if(!didWarnAboutReassigningProps){\n        error('It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type)||'a component');\n      }\n\n      didWarnAboutReassigningProps=true;\n    }\n  }\n\n  return nextUnitOfWork;\n}\n\nfunction finishClassComponent(current, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime){\n  // Refs should update even if shouldComponentUpdate returns false\n  markRef(current, workInProgress);\n  var didCaptureError=(workInProgress.effectTag & DidCapture)!==NoEffect;\n\n  if(!shouldUpdate&&!didCaptureError){\n    // Context providers should defer to sCU for rendering\n    if(hasContext){\n      invalidateContextProvider(workInProgress, Component, false);\n    }\n\n    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n  }\n\n  var instance=workInProgress.stateNode; // Rerender\n\n  ReactCurrentOwner$1.current=workInProgress;\n  var nextChildren;\n\n  if(didCaptureError&&typeof Component.getDerivedStateFromError!=='function'){\n    // If we captured an error, but getDerivedStateFromError is not defined,\n    // unmount all the children. componentDidCatch will schedule an update to\n    // re-render a fallback. This is temporary until we migrate everyone to\n    // the new API.\n    // TODO: Warn in a future release.\n    nextChildren=null;\n\n    {\n      stopProfilerTimerIfRunning();\n    }\n  }else{\n    {\n      setIsRendering(true);\n      nextChildren=instance.render();\n\n      if(workInProgress.mode & StrictMode){\n        instance.render();\n      }\n\n      setIsRendering(false);\n    }\n  } // React DevTools reads this flag.\n\n\n  workInProgress.effectTag |=PerformedWork;\n\n  if(current!==null&&didCaptureError){\n    // If we're recovering from an error, reconcile without reusing any of\n    // the existing children. Conceptually, the normal children and the children\n    // that are shown on error are two different sets, so we shouldn't reuse\n    // normal children even if their identities match.\n    forceUnmountCurrentAndReconcile(current, workInProgress, nextChildren, renderExpirationTime);\n  }else{\n    reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  } // Memoize state using the values we just used to render.\n  // TODO: Restructure so we never read values from the instance.\n\n\n  workInProgress.memoizedState=instance.state; // The context might have changed so we need to recalculate it.\n\n  if(hasContext){\n    invalidateContextProvider(workInProgress, Component, true);\n  }\n\n  return workInProgress.child;\n}\n\nfunction pushHostRootContext(workInProgress){\n  var root=workInProgress.stateNode;\n\n  if(root.pendingContext){\n    pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext!==root.context);\n  }else if(root.context){\n    // Should always be set\n    pushTopLevelContextObject(workInProgress, root.context, false);\n  }\n\n  pushHostContainer(workInProgress, root.containerInfo);\n}\n\nfunction updateHostRoot(current, workInProgress, renderExpirationTime){\n  pushHostRootContext(workInProgress);\n  var updateQueue=workInProgress.updateQueue;\n\n  if(!(current!==null&&updateQueue!==null)){\n    {\n      throw Error(\"If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n\n  var nextProps=workInProgress.pendingProps;\n  var prevState=workInProgress.memoizedState;\n  var prevChildren=prevState!==null ? prevState.element:null;\n  cloneUpdateQueue(current, workInProgress);\n  processUpdateQueue(workInProgress, nextProps, null, renderExpirationTime);\n  var nextState=workInProgress.memoizedState; // Caution: React DevTools currently depends on this property\n  // being called \"element\".\n\n  var nextChildren=nextState.element;\n\n  if(nextChildren===prevChildren){\n    // If the state is the same as before, that's a bailout because we had\n    // no work that expires at this time.\n    resetHydrationState();\n    return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n  }\n\n  var root=workInProgress.stateNode;\n\n  if(root.hydrate&&enterHydrationState(workInProgress)){\n    // If we don't have any current children this might be the first pass.\n    // We always try to hydrate. If this isn't a hydration pass there won't\n    // be any children to hydrate which is effectively the same thing as\n    // not hydrating.\n    var child=mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n    workInProgress.child=child;\n    var node=child;\n\n    while (node){\n      // Mark each child as hydrating. This is a fast path to know whether this\n      // tree is part of a hydrating tree. This is used to determine if a child\n      // node has fully mounted yet, and for scheduling event replaying.\n      // Conceptually this is similar to Placement in that a new subtree is\n      // inserted into the React tree here. It just happens to not need DOM\n      // mutations because it already exists.\n      node.effectTag=node.effectTag & ~Placement | Hydrating;\n      node=node.sibling;\n    }\n  }else{\n    // Otherwise reset hydration state in case we aborted and resumed another\n    // root.\n    reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n    resetHydrationState();\n  }\n\n  return workInProgress.child;\n}\n\nfunction updateHostComponent(current, workInProgress, renderExpirationTime){\n  pushHostContext(workInProgress);\n\n  if(current===null){\n    tryToClaimNextHydratableInstance(workInProgress);\n  }\n\n  var type=workInProgress.type;\n  var nextProps=workInProgress.pendingProps;\n  var prevProps=current!==null ? current.memoizedProps:null;\n  var nextChildren=nextProps.children;\n  var isDirectTextChild=shouldSetTextContent(type, nextProps);\n\n  if(isDirectTextChild){\n    // We special case a direct text child of a host node. This is a common\n    // case. We won't handle it as a reified child. We will instead handle\n    // this in the host environment that also has access to this prop. That\n    // avoids allocating another HostText fiber and traversing it.\n    nextChildren=null;\n  }else if(prevProps!==null&&shouldSetTextContent(type, prevProps)){\n    // If we're switching from a direct text child to a normal child, or to\n    // empty, we need to schedule the text content to be reset.\n    workInProgress.effectTag |=ContentReset;\n  }\n\n  markRef(current, workInProgress); // Check the host config to see if the children are offscreen/hidden.\n\n  if(workInProgress.mode & ConcurrentMode&&renderExpirationTime!==Never&&shouldDeprioritizeSubtree(type, nextProps)){\n    {\n      markSpawnedWork(Never);\n    } // Schedule this fiber to re-render at offscreen priority. Then bailout.\n\n\n    workInProgress.expirationTime=workInProgress.childExpirationTime=Never;\n    return null;\n  }\n\n  reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nfunction updateHostText(current, workInProgress){\n  if(current===null){\n    tryToClaimNextHydratableInstance(workInProgress);\n  } // Nothing to do here. This is terminal. We'll do the completion step\n  // immediately after.\n\n\n  return null;\n}\n\nfunction mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime){\n  if(_current!==null){\n    // A lazy component only mounts if it suspended inside a non-\n    // concurrent tree, in an inconsistent state. We want to treat it like\n    // a new mount, even though an empty version of it already committed.\n    // Disconnect the alternate pointers.\n    _current.alternate=null;\n    workInProgress.alternate=null; // Since this is conceptually a new fiber, schedule a Placement effect\n\n    workInProgress.effectTag |=Placement;\n  }\n\n  var props=workInProgress.pendingProps; // We can't start a User Timing measurement with correct label yet.\n  // Cancel and resume right after we know the tag.\n\n  cancelWorkTimer(workInProgress);\n  var Component=readLazyComponentType(elementType); // Store the unwrapped component in the type.\n\n  workInProgress.type=Component;\n  var resolvedTag=workInProgress.tag=resolveLazyComponentTag(Component);\n  startWorkTimer(workInProgress);\n  var resolvedProps=resolveDefaultProps(Component, props);\n  var child;\n\n  switch (resolvedTag){\n    case FunctionComponent:\n      {\n        {\n          validateFunctionComponentInDev(workInProgress, Component);\n          workInProgress.type=Component=resolveFunctionForHotReloading(Component);\n        }\n\n        child=updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);\n        return child;\n      }\n\n    case ClassComponent:\n      {\n        {\n          workInProgress.type=Component=resolveClassForHotReloading(Component);\n        }\n\n        child=updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);\n        return child;\n      }\n\n    case ForwardRef:\n      {\n        {\n          workInProgress.type=Component=resolveForwardRefForHotReloading(Component);\n        }\n\n        child=updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);\n        return child;\n      }\n\n    case MemoComponent:\n      {\n        {\n          if(workInProgress.type!==workInProgress.elementType){\n            var outerPropTypes=Component.propTypes;\n\n            if(outerPropTypes){\n              checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only\n              'prop', getComponentName(Component), getCurrentFiberStackInDev);\n            }\n          }\n        }\n\n        child=updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too\n        updateExpirationTime, renderExpirationTime);\n        return child;\n      }\n  }\n\n  var hint='';\n\n  {\n    if(Component!==null&&typeof Component==='object'&&Component.$$typeof===REACT_LAZY_TYPE){\n      hint=' Did you wrap a component in React.lazy() more than once?';\n    }\n  } // This message intentionally doesn't mention ForwardRef or MemoComponent\n  // because the fact that it's a separate type of work is an\n  // implementation detail.\n\n\n  {\n    {\n      throw Error(\"Element type is invalid. Received a promise that resolves to: \" + Component + \". Lazy element type must resolve to a class or function.\" + hint);\n    }\n  }\n}\n\nfunction mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime){\n  if(_current!==null){\n    // An incomplete component only mounts if it suspended inside a non-\n    // concurrent tree, in an inconsistent state. We want to treat it like\n    // a new mount, even though an empty version of it already committed.\n    // Disconnect the alternate pointers.\n    _current.alternate=null;\n    workInProgress.alternate=null; // Since this is conceptually a new fiber, schedule a Placement effect\n\n    workInProgress.effectTag |=Placement;\n  } // Promote the fiber to a class and try rendering again.\n\n\n  workInProgress.tag=ClassComponent; // The rest of this function is a fork of `updateClassComponent`\n  // Push context providers early to prevent context stack mismatches.\n  // During mounting we don't know the child context yet as the instance doesn't exist.\n  // We will invalidate the child context in finishClassComponent() right after rendering.\n\n  var hasContext;\n\n  if(isContextProvider(Component)){\n    hasContext=true;\n    pushContextProvider(workInProgress);\n  }else{\n    hasContext=false;\n  }\n\n  prepareToReadContext(workInProgress, renderExpirationTime);\n  constructClassInstance(workInProgress, Component, nextProps);\n  mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);\n  return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);\n}\n\nfunction mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime){\n  if(_current!==null){\n    // An indeterminate component only mounts if it suspended inside a non-\n    // concurrent tree, in an inconsistent state. We want to treat it like\n    // a new mount, even though an empty version of it already committed.\n    // Disconnect the alternate pointers.\n    _current.alternate=null;\n    workInProgress.alternate=null; // Since this is conceptually a new fiber, schedule a Placement effect\n\n    workInProgress.effectTag |=Placement;\n  }\n\n  var props=workInProgress.pendingProps;\n  var context;\n\n  {\n    var unmaskedContext=getUnmaskedContext(workInProgress, Component, false);\n    context=getMaskedContext(workInProgress, unmaskedContext);\n  }\n\n  prepareToReadContext(workInProgress, renderExpirationTime);\n  var value;\n\n  {\n    if(Component.prototype&&typeof Component.prototype.render==='function'){\n      var componentName=getComponentName(Component)||'Unknown';\n\n      if(!didWarnAboutBadClass[componentName]){\n        error(\"The <%s /> component appears to have a render method, but doesn't extend React.Component. \" + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);\n\n        didWarnAboutBadClass[componentName]=true;\n      }\n    }\n\n    if(workInProgress.mode & StrictMode){\n      ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);\n    }\n\n    setIsRendering(true);\n    ReactCurrentOwner$1.current=workInProgress;\n    value=renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);\n    setIsRendering(false);\n  } // React DevTools reads this flag.\n\n\n  workInProgress.effectTag |=PerformedWork;\n\n  if(typeof value==='object'&&value!==null&&typeof value.render==='function'&&value.$$typeof===undefined){\n    {\n      var _componentName=getComponentName(Component)||'Unknown';\n\n      if(!didWarnAboutModulePatternComponent[_componentName]){\n        error('The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + \"If you can't use a class try assigning the prototype on the function as a workaround. \" + \"`%s.prototype=React.Component.prototype`. Don't use an arrow function since it \" + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);\n\n        didWarnAboutModulePatternComponent[_componentName]=true;\n      }\n    } // Proceed under the assumption that this is a class instance\n\n\n    workInProgress.tag=ClassComponent; // Throw out any hooks that were used.\n\n    workInProgress.memoizedState=null;\n    workInProgress.updateQueue=null; // Push context providers early to prevent context stack mismatches.\n    // During mounting we don't know the child context yet as the instance doesn't exist.\n    // We will invalidate the child context in finishClassComponent() right after rendering.\n\n    var hasContext=false;\n\n    if(isContextProvider(Component)){\n      hasContext=true;\n      pushContextProvider(workInProgress);\n    }else{\n      hasContext=false;\n    }\n\n    workInProgress.memoizedState=value.state!==null&&value.state!==undefined ? value.state:null;\n    initializeUpdateQueue(workInProgress);\n    var getDerivedStateFromProps=Component.getDerivedStateFromProps;\n\n    if(typeof getDerivedStateFromProps==='function'){\n      applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);\n    }\n\n    adoptClassInstance(workInProgress, value);\n    mountClassInstance(workInProgress, Component, props, renderExpirationTime);\n    return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);\n  }else{\n    // Proceed under the assumption that this is a function component\n    workInProgress.tag=FunctionComponent;\n\n    {\n\n      if(workInProgress.mode & StrictMode){\n        // Only double-render components with Hooks\n        if(workInProgress.memoizedState!==null){\n          value=renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);\n        }\n      }\n    }\n\n    reconcileChildren(null, workInProgress, value, renderExpirationTime);\n\n    {\n      validateFunctionComponentInDev(workInProgress, Component);\n    }\n\n    return workInProgress.child;\n  }\n}\n\nfunction validateFunctionComponentInDev(workInProgress, Component){\n  {\n    if(Component){\n      if(Component.childContextTypes){\n        error('%s(...): childContextTypes cannot be defined on a function component.', Component.displayName||Component.name||'Component');\n      }\n    }\n\n    if(workInProgress.ref!==null){\n      var info='';\n      var ownerName=getCurrentFiberOwnerNameInDevOrNull();\n\n      if(ownerName){\n        info +='\\n\\nCheck the render method of `' + ownerName + '`.';\n      }\n\n      var warningKey=ownerName||workInProgress._debugID||'';\n      var debugSource=workInProgress._debugSource;\n\n      if(debugSource){\n        warningKey=debugSource.fileName + ':' + debugSource.lineNumber;\n      }\n\n      if(!didWarnAboutFunctionRefs[warningKey]){\n        didWarnAboutFunctionRefs[warningKey]=true;\n\n        error('Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);\n      }\n    }\n\n    if(typeof Component.getDerivedStateFromProps==='function'){\n      var _componentName2=getComponentName(Component)||'Unknown';\n\n      if(!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]){\n        error('%s: Function components do not support getDerivedStateFromProps.', _componentName2);\n\n        didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]=true;\n      }\n    }\n\n    if(typeof Component.contextType==='object'&&Component.contextType!==null){\n      var _componentName3=getComponentName(Component)||'Unknown';\n\n      if(!didWarnAboutContextTypeOnFunctionComponent[_componentName3]){\n        error('%s: Function components do not support contextType.', _componentName3);\n\n        didWarnAboutContextTypeOnFunctionComponent[_componentName3]=true;\n      }\n    }\n  }\n}\n\nvar SUSPENDED_MARKER={\n  dehydrated: null,\n  retryTime: NoWork\n};\n\nfunction shouldRemainOnFallback(suspenseContext, current, workInProgress){\n  // If the context is telling us that we should show a fallback, and we're not\n  // already showing content, then we should show the fallback instead.\n  return hasSuspenseContext(suspenseContext, ForceSuspenseFallback)&&(current===null||current.memoizedState!==null);\n}\n\nfunction updateSuspenseComponent(current, workInProgress, renderExpirationTime){\n  var mode=workInProgress.mode;\n  var nextProps=workInProgress.pendingProps; // This is used by DevTools to force a boundary to suspend.\n\n  {\n    if(shouldSuspend(workInProgress)){\n      workInProgress.effectTag |=DidCapture;\n    }\n  }\n\n  var suspenseContext=suspenseStackCursor.current;\n  var nextDidTimeout=false;\n  var didSuspend=(workInProgress.effectTag & DidCapture)!==NoEffect;\n\n  if(didSuspend||shouldRemainOnFallback(suspenseContext, current)){\n    // Something in this boundary's subtree already suspended. Switch to\n    // rendering the fallback children.\n    nextDidTimeout=true;\n    workInProgress.effectTag &=~DidCapture;\n  }else{\n    // Attempting the main content\n    if(current===null||current.memoizedState!==null){\n      // This is a new mount or this boundary is already showing a fallback state.\n      // Mark this subtree context as having at least one invisible parent that could\n      // handle the fallback state.\n      // Boundaries without fallbacks or should be avoided are not considered since\n      // they cannot handle preferred fallback states.\n      if(nextProps.fallback!==undefined&&nextProps.unstable_avoidThisFallback!==true){\n        suspenseContext=addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);\n      }\n    }\n  }\n\n  suspenseContext=setDefaultShallowSuspenseContext(suspenseContext);\n  pushSuspenseContext(workInProgress, suspenseContext); // This next part is a bit confusing. If the children timeout, we switch to\n  // showing the fallback children in place of the \"primary\" children.\n  // However, we don't want to delete the primary children because then their\n  // state will be lost (both the React state and the host state, e.g.\n  // uncontrolled form inputs). Instead we keep them mounted and hide them.\n  // Both the fallback children AND the primary children are rendered at the\n  // same time. Once the primary children are un-suspended, we can delete\n  // the fallback children — don't need to preserve their state.\n  //\n  // The two sets of children are siblings in the host environment, but\n  // semantically, for purposes of reconciliation, they are two separate sets.\n  // So we store them using two fragment fibers.\n  //\n  // However, we want to avoid allocating extra fibers for every placeholder.\n  // They're only necessary when the children time out, because that's the\n  // only time when both sets are mounted.\n  //\n  // So, the extra fragment fibers are only used if the children time out.\n  // Otherwise, we render the primary children directly. This requires some\n  // custom reconciliation logic to preserve the state of the primary\n  // children. It's essentially a very basic form of re-parenting.\n\n  if(current===null){\n    // If we're currently hydrating, try to hydrate this boundary.\n    // But only if this has a fallback.\n    if(nextProps.fallback!==undefined){\n      tryToClaimNextHydratableInstance(workInProgress); // This could've been a dehydrated suspense component.\n    } // This is the initial mount. This branch is pretty simple because there's\n    // no previous state that needs to be preserved.\n\n\n    if(nextDidTimeout){\n      // Mount separate fragments for primary and fallback children.\n      var nextFallbackChildren=nextProps.fallback;\n      var primaryChildFragment=createFiberFromFragment(null, mode, NoWork, null);\n      primaryChildFragment.return=workInProgress;\n\n      if((workInProgress.mode & BlockingMode)===NoMode){\n        // Outside of blocking mode, we commit the effects from the\n        // partially completed, timed-out tree, too.\n        var progressedState=workInProgress.memoizedState;\n        var progressedPrimaryChild=progressedState!==null ? workInProgress.child.child:workInProgress.child;\n        primaryChildFragment.child=progressedPrimaryChild;\n        var progressedChild=progressedPrimaryChild;\n\n        while (progressedChild!==null){\n          progressedChild.return=primaryChildFragment;\n          progressedChild=progressedChild.sibling;\n        }\n      }\n\n      var fallbackChildFragment=createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);\n      fallbackChildFragment.return=workInProgress;\n      primaryChildFragment.sibling=fallbackChildFragment; // Skip the primary children, and continue working on the\n      // fallback children.\n\n      workInProgress.memoizedState=SUSPENDED_MARKER;\n      workInProgress.child=primaryChildFragment;\n      return fallbackChildFragment;\n    }else{\n      // Mount the primary children without an intermediate fragment fiber.\n      var nextPrimaryChildren=nextProps.children;\n      workInProgress.memoizedState=null;\n      return workInProgress.child=mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);\n    }\n  }else{\n    // This is an update. This branch is more complicated because we need to\n    // ensure the state of the primary children is preserved.\n    var prevState=current.memoizedState;\n\n    if(prevState!==null){\n      // wrapped in a fragment fiber.\n\n\n      var currentPrimaryChildFragment=current.child;\n      var currentFallbackChildFragment=currentPrimaryChildFragment.sibling;\n\n      if(nextDidTimeout){\n        // Still timed out. Reuse the current primary children by cloning\n        // its fragment. We're going to skip over these entirely.\n        var _nextFallbackChildren2=nextProps.fallback;\n\n        var _primaryChildFragment2=createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps);\n\n        _primaryChildFragment2.return=workInProgress;\n\n        if((workInProgress.mode & BlockingMode)===NoMode){\n          // Outside of blocking mode, we commit the effects from the\n          // partially completed, timed-out tree, too.\n          var _progressedState=workInProgress.memoizedState;\n\n          var _progressedPrimaryChild=_progressedState!==null ? workInProgress.child.child:workInProgress.child;\n\n          if(_progressedPrimaryChild!==currentPrimaryChildFragment.child){\n            _primaryChildFragment2.child=_progressedPrimaryChild;\n            var _progressedChild2=_progressedPrimaryChild;\n\n            while (_progressedChild2!==null){\n              _progressedChild2.return=_primaryChildFragment2;\n              _progressedChild2=_progressedChild2.sibling;\n            }\n          }\n        } // Because primaryChildFragment is a new fiber that we're inserting as the\n        // parent of a new tree, we need to set its treeBaseDuration.\n\n\n        if(workInProgress.mode & ProfileMode){\n          // treeBaseDuration is the sum of all the child tree base durations.\n          var _treeBaseDuration=0;\n          var _hiddenChild=_primaryChildFragment2.child;\n\n          while (_hiddenChild!==null){\n            _treeBaseDuration +=_hiddenChild.treeBaseDuration;\n            _hiddenChild=_hiddenChild.sibling;\n          }\n\n          _primaryChildFragment2.treeBaseDuration=_treeBaseDuration;\n        } // Clone the fallback child fragment, too. These we'll continue\n        // working on.\n\n\n        var _fallbackChildFragment2=createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren2);\n\n        _fallbackChildFragment2.return=workInProgress;\n        _primaryChildFragment2.sibling=_fallbackChildFragment2;\n        _primaryChildFragment2.childExpirationTime=NoWork; // Skip the primary children, and continue working on the\n        // fallback children.\n\n        workInProgress.memoizedState=SUSPENDED_MARKER;\n        workInProgress.child=_primaryChildFragment2;\n        return _fallbackChildFragment2;\n      }else{\n        // No longer suspended. Switch back to showing the primary children,\n        // and remove the intermediate fragment fiber.\n        var _nextPrimaryChildren=nextProps.children;\n        var currentPrimaryChild=currentPrimaryChildFragment.child;\n        var primaryChild=reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime); // If this render doesn't suspend, we need to delete the fallback\n        // children. Wait until the complete phase, after we've confirmed the\n        // fallback is no longer needed.\n        // TODO: Would it be better to store the fallback fragment on\n        // the stateNode?\n        // Continue rendering the children, like we normally do.\n\n        workInProgress.memoizedState=null;\n        return workInProgress.child=primaryChild;\n      }\n    }else{\n      // The current tree has not already timed out. That means the primary\n      // children are not wrapped in a fragment fiber.\n      var _currentPrimaryChild=current.child;\n\n      if(nextDidTimeout){\n        // Timed out. Wrap the children in a fragment fiber to keep them\n        // separate from the fallback children.\n        var _nextFallbackChildren3=nextProps.fallback;\n\n        var _primaryChildFragment3=createFiberFromFragment(// It shouldn't matter what the pending props are because we aren't\n        // going to render this fragment.\n        null, mode, NoWork, null);\n\n        _primaryChildFragment3.return=workInProgress;\n        _primaryChildFragment3.child=_currentPrimaryChild;\n\n        if(_currentPrimaryChild!==null){\n          _currentPrimaryChild.return=_primaryChildFragment3;\n        } // Even though we're creating a new fiber, there are no new children,\n        // because we're reusing an already mounted tree. So we don't need to\n        // schedule a placement.\n        // primaryChildFragment.effectTag |=Placement;\n\n\n        if((workInProgress.mode & BlockingMode)===NoMode){\n          // Outside of blocking mode, we commit the effects from the\n          // partially completed, timed-out tree, too.\n          var _progressedState2=workInProgress.memoizedState;\n\n          var _progressedPrimaryChild2=_progressedState2!==null ? workInProgress.child.child:workInProgress.child;\n\n          _primaryChildFragment3.child=_progressedPrimaryChild2;\n          var _progressedChild3=_progressedPrimaryChild2;\n\n          while (_progressedChild3!==null){\n            _progressedChild3.return=_primaryChildFragment3;\n            _progressedChild3=_progressedChild3.sibling;\n          }\n        } // Because primaryChildFragment is a new fiber that we're inserting as the\n        // parent of a new tree, we need to set its treeBaseDuration.\n\n\n        if(workInProgress.mode & ProfileMode){\n          // treeBaseDuration is the sum of all the child tree base durations.\n          var _treeBaseDuration2=0;\n          var _hiddenChild2=_primaryChildFragment3.child;\n\n          while (_hiddenChild2!==null){\n            _treeBaseDuration2 +=_hiddenChild2.treeBaseDuration;\n            _hiddenChild2=_hiddenChild2.sibling;\n          }\n\n          _primaryChildFragment3.treeBaseDuration=_treeBaseDuration2;\n        } // Create a fragment from the fallback children, too.\n\n\n        var _fallbackChildFragment3=createFiberFromFragment(_nextFallbackChildren3, mode, renderExpirationTime, null);\n\n        _fallbackChildFragment3.return=workInProgress;\n        _primaryChildFragment3.sibling=_fallbackChildFragment3;\n        _fallbackChildFragment3.effectTag |=Placement;\n        _primaryChildFragment3.childExpirationTime=NoWork; // Skip the primary children, and continue working on the\n        // fallback children.\n\n        workInProgress.memoizedState=SUSPENDED_MARKER;\n        workInProgress.child=_primaryChildFragment3;\n        return _fallbackChildFragment3;\n      }else{\n        // Still haven't timed out. Continue rendering the children, like we\n        // normally do.\n        workInProgress.memoizedState=null;\n        var _nextPrimaryChildren2=nextProps.children;\n        return workInProgress.child=reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);\n      }\n    }\n  }\n}\n\nfunction scheduleWorkOnFiber(fiber, renderExpirationTime){\n  if(fiber.expirationTime < renderExpirationTime){\n    fiber.expirationTime=renderExpirationTime;\n  }\n\n  var alternate=fiber.alternate;\n\n  if(alternate!==null&&alternate.expirationTime < renderExpirationTime){\n    alternate.expirationTime=renderExpirationTime;\n  }\n\n  scheduleWorkOnParentPath(fiber.return, renderExpirationTime);\n}\n\nfunction propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime){\n  // Mark any Suspense boundaries with fallbacks as having work to do.\n  // If they were previously forced into fallbacks, they may now be able\n  // to unblock.\n  var node=firstChild;\n\n  while (node!==null){\n    if(node.tag===SuspenseComponent){\n      var state=node.memoizedState;\n\n      if(state!==null){\n        scheduleWorkOnFiber(node, renderExpirationTime);\n      }\n    }else if(node.tag===SuspenseListComponent){\n      // If the tail is hidden there might not be an Suspense boundaries\n      // to schedule work on. In this case we have to schedule it on the\n      // list itself.\n      // We don't have to traverse to the children of the list since\n      // the list will propagate the change when it rerenders.\n      scheduleWorkOnFiber(node, renderExpirationTime);\n    }else if(node.child!==null){\n      node.child.return=node;\n      node=node.child;\n      continue;\n    }\n\n    if(node===workInProgress){\n      return;\n    }\n\n    while (node.sibling===null){\n      if(node.return===null||node.return===workInProgress){\n        return;\n      }\n\n      node=node.return;\n    }\n\n    node.sibling.return=node.return;\n    node=node.sibling;\n  }\n}\n\nfunction findLastContentRow(firstChild){\n  // This is going to find the last row among these children that is already\n  // showing content on the screen, as opposed to being in fallback state or\n  // new. If a row has multiple Suspense boundaries, any of them being in the\n  // fallback state, counts as the whole row being in a fallback state.\n  // Note that the \"rows\" will be workInProgress, but any nested children\n  // will still be current since we haven't rendered them yet. The mounted\n  // order may not be the same as the new order. We use the new order.\n  var row=firstChild;\n  var lastContentRow=null;\n\n  while (row!==null){\n    var currentRow=row.alternate; // New rows can't be content rows.\n\n    if(currentRow!==null&&findFirstSuspended(currentRow)===null){\n      lastContentRow=row;\n    }\n\n    row=row.sibling;\n  }\n\n  return lastContentRow;\n}\n\nfunction validateRevealOrder(revealOrder){\n  {\n    if(revealOrder!==undefined&&revealOrder!=='forwards'&&revealOrder!=='backwards'&&revealOrder!=='together'&&!didWarnAboutRevealOrder[revealOrder]){\n      didWarnAboutRevealOrder[revealOrder]=true;\n\n      if(typeof revealOrder==='string'){\n        switch (revealOrder.toLowerCase()){\n          case 'together':\n          case 'forwards':\n          case 'backwards':\n            {\n              error('\"%s\" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase \"%s\" instead.', revealOrder, revealOrder.toLowerCase());\n\n              break;\n            }\n\n          case 'forward':\n          case 'backward':\n            {\n              error('\"%s\" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use \"%ss\" instead.', revealOrder, revealOrder.toLowerCase());\n\n              break;\n            }\n\n          default:\n            error('\"%s\" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean \"together\", \"forwards\" or \"backwards\"?', revealOrder);\n\n            break;\n        }\n      }else{\n        error('%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean \"together\", \"forwards\" or \"backwards\"?', revealOrder);\n      }\n    }\n  }\n}\n\nfunction validateTailOptions(tailMode, revealOrder){\n  {\n    if(tailMode!==undefined&&!didWarnAboutTailOptions[tailMode]){\n      if(tailMode!=='collapsed'&&tailMode!=='hidden'){\n        didWarnAboutTailOptions[tailMode]=true;\n\n        error('\"%s\" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean \"collapsed\" or \"hidden\"?', tailMode);\n      }else if(revealOrder!=='forwards'&&revealOrder!=='backwards'){\n        didWarnAboutTailOptions[tailMode]=true;\n\n        error('<SuspenseList tail=\"%s\" /> is only valid if revealOrder is ' + '\"forwards\" or \"backwards\". ' + 'Did you mean to specify revealOrder=\"forwards\"?', tailMode);\n      }\n    }\n  }\n}\n\nfunction validateSuspenseListNestedChild(childSlot, index){\n  {\n    var isArray=Array.isArray(childSlot);\n    var isIterable = !isArray&&typeof getIteratorFn(childSlot)==='function';\n\n    if(isArray||isIterable){\n      var type=isArray ? 'array':'iterable';\n\n      error('A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);\n\n      return false;\n    }\n  }\n\n  return true;\n}\n\nfunction validateSuspenseListChildren(children, revealOrder){\n  {\n    if((revealOrder==='forwards'||revealOrder==='backwards')&&children!==undefined&&children!==null&&children!==false){\n      if(Array.isArray(children)){\n        for (var i=0; i < children.length; i++){\n          if(!validateSuspenseListNestedChild(children[i], i)){\n            return;\n          }\n        }\n      }else{\n        var iteratorFn=getIteratorFn(children);\n\n        if(typeof iteratorFn==='function'){\n          var childrenIterator=iteratorFn.call(children);\n\n          if(childrenIterator){\n            var step=childrenIterator.next();\n            var _i=0;\n\n            for (; !step.done; step=childrenIterator.next()){\n              if(!validateSuspenseListNestedChild(step.value, _i)){\n                return;\n              }\n\n              _i++;\n            }\n          }\n        }else{\n          error('A single row was passed to a <SuspenseList revealOrder=\"%s\" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);\n        }\n      }\n    }\n  }\n}\n\nfunction initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, lastEffectBeforeRendering){\n  var renderState=workInProgress.memoizedState;\n\n  if(renderState===null){\n    workInProgress.memoizedState={\n      isBackwards: isBackwards,\n      rendering: null,\n      renderingStartTime: 0,\n      last: lastContentRow,\n      tail: tail,\n      tailExpiration: 0,\n      tailMode: tailMode,\n      lastEffect: lastEffectBeforeRendering\n    };\n  }else{\n    // We can reuse the existing object from previous renders.\n    renderState.isBackwards=isBackwards;\n    renderState.rendering=null;\n    renderState.renderingStartTime=0;\n    renderState.last=lastContentRow;\n    renderState.tail=tail;\n    renderState.tailExpiration=0;\n    renderState.tailMode=tailMode;\n    renderState.lastEffect=lastEffectBeforeRendering;\n  }\n} // This can end up rendering this component multiple passes.\n// The first pass splits the children fibers into two sets. A head and tail.\n// We first render the head. If anything is in fallback state, we do another\n// pass through beginWork to rerender all children (including the tail) with\n// the force suspend context. If the first render didn't have anything in\n// in fallback state. Then we render each row in the tail one-by-one.\n// That happens in the completeWork phase without going back to beginWork.\n\n\nfunction updateSuspenseListComponent(current, workInProgress, renderExpirationTime){\n  var nextProps=workInProgress.pendingProps;\n  var revealOrder=nextProps.revealOrder;\n  var tailMode=nextProps.tail;\n  var newChildren=nextProps.children;\n  validateRevealOrder(revealOrder);\n  validateTailOptions(tailMode, revealOrder);\n  validateSuspenseListChildren(newChildren, revealOrder);\n  reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);\n  var suspenseContext=suspenseStackCursor.current;\n  var shouldForceFallback=hasSuspenseContext(suspenseContext, ForceSuspenseFallback);\n\n  if(shouldForceFallback){\n    suspenseContext=setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);\n    workInProgress.effectTag |=DidCapture;\n  }else{\n    var didSuspendBefore=current!==null&&(current.effectTag & DidCapture)!==NoEffect;\n\n    if(didSuspendBefore){\n      // If we previously forced a fallback, we need to schedule work\n      // on any nested boundaries to let them know to try to render\n      // again. This is the same as context updating.\n      propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);\n    }\n\n    suspenseContext=setDefaultShallowSuspenseContext(suspenseContext);\n  }\n\n  pushSuspenseContext(workInProgress, suspenseContext);\n\n  if((workInProgress.mode & BlockingMode)===NoMode){\n    // Outside of blocking mode, SuspenseList doesn't work so we just\n    // use make it a noop by treating it as the default revealOrder.\n    workInProgress.memoizedState=null;\n  }else{\n    switch (revealOrder){\n      case 'forwards':\n        {\n          var lastContentRow=findLastContentRow(workInProgress.child);\n          var tail;\n\n          if(lastContentRow===null){\n            // The whole list is part of the tail.\n            // TODO: We could fast path by just rendering the tail now.\n            tail=workInProgress.child;\n            workInProgress.child=null;\n          }else{\n            // Disconnect the tail rows after the content row.\n            // We're going to render them separately later.\n            tail=lastContentRow.sibling;\n            lastContentRow.sibling=null;\n          }\n\n          initSuspenseListRenderState(workInProgress, false, // isBackwards\n          tail, lastContentRow, tailMode, workInProgress.lastEffect);\n          break;\n        }\n\n      case 'backwards':\n        {\n          // We're going to find the first row that has existing content.\n          // At the same time we're going to reverse the list of everything\n          // we pass in the meantime. That's going to be our tail in reverse\n          // order.\n          var _tail=null;\n          var row=workInProgress.child;\n          workInProgress.child=null;\n\n          while (row!==null){\n            var currentRow=row.alternate; // New rows can't be content rows.\n\n            if(currentRow!==null&&findFirstSuspended(currentRow)===null){\n              // This is the beginning of the main content.\n              workInProgress.child=row;\n              break;\n            }\n\n            var nextRow=row.sibling;\n            row.sibling=_tail;\n            _tail=row;\n            row=nextRow;\n          } // TODO: If workInProgress.child is null, we can continue on the tail immediately.\n\n\n          initSuspenseListRenderState(workInProgress, true, // isBackwards\n          _tail, null, // last\n          tailMode, workInProgress.lastEffect);\n          break;\n        }\n\n      case 'together':\n        {\n          initSuspenseListRenderState(workInProgress, false, // isBackwards\n          null, // tail\n          null, // last\n          undefined, workInProgress.lastEffect);\n          break;\n        }\n\n      default:\n        {\n          // The default reveal order is the same as not having\n          // a boundary.\n          workInProgress.memoizedState=null;\n        }\n    }\n  }\n\n  return workInProgress.child;\n}\n\nfunction updatePortalComponent(current, workInProgress, renderExpirationTime){\n  pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n  var nextChildren=workInProgress.pendingProps;\n\n  if(current===null){\n    // Portals are special because we don't append the children during mount\n    // but at commit. Therefore we need to track insertions which the normal\n    // flow doesn't do during mount. This doesn't happen at the root because\n    // the root always starts with a \"current\" with a null child.\n    // TODO: Consider unifying this with how the root works.\n    workInProgress.child=reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);\n  }else{\n    reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);\n  }\n\n  return workInProgress.child;\n}\n\nfunction updateContextProvider(current, workInProgress, renderExpirationTime){\n  var providerType=workInProgress.type;\n  var context=providerType._context;\n  var newProps=workInProgress.pendingProps;\n  var oldProps=workInProgress.memoizedProps;\n  var newValue=newProps.value;\n\n  {\n    var providerPropTypes=workInProgress.type.propTypes;\n\n    if(providerPropTypes){\n      checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);\n    }\n  }\n\n  pushProvider(workInProgress, newValue);\n\n  if(oldProps!==null){\n    var oldValue=oldProps.value;\n    var changedBits=calculateChangedBits(context, newValue, oldValue);\n\n    if(changedBits===0){\n      // No change. Bailout early if children are the same.\n      if(oldProps.children===newProps.children&&!hasContextChanged()){\n        return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n      }\n    }else{\n      // The context value changed. Search for matching consumers and schedule\n      // them to update.\n      propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);\n    }\n  }\n\n  var newChildren=newProps.children;\n  reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nvar hasWarnedAboutUsingContextAsConsumer=false;\n\nfunction updateContextConsumer(current, workInProgress, renderExpirationTime){\n  var context=workInProgress.type; // The logic below for Context differs depending on PROD or DEV mode. In\n  // DEV mode, we create a separate object for Context.Consumer that acts\n  // like a proxy to Context. This proxy object adds unnecessary code in PROD\n  // so we use the old behaviour (Context.Consumer references Context) to\n  // reduce size and overhead. The separate object references context via\n  // a property called \"_context\", which also gives us the ability to check\n  // in DEV mode if this property exists or not and warn if it does not.\n\n  {\n    if(context._context===undefined){\n      // This may be because it's a Context (rather than a Consumer).\n      // Or it may be because it's older React where they're the same thing.\n      // We only want to warn if we're sure it's a new React.\n      if(context!==context.Consumer){\n        if(!hasWarnedAboutUsingContextAsConsumer){\n          hasWarnedAboutUsingContextAsConsumer=true;\n\n          error('Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n        }\n      }\n    }else{\n      context=context._context;\n    }\n  }\n\n  var newProps=workInProgress.pendingProps;\n  var render=newProps.children;\n\n  {\n    if(typeof render!=='function'){\n      error('A context consumer was rendered with multiple children, or a child ' + \"that isn't a function. A context consumer expects a single child \" + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.');\n    }\n  }\n\n  prepareToReadContext(workInProgress, renderExpirationTime);\n  var newValue=readContext(context, newProps.unstable_observedBits);\n  var newChildren;\n\n  {\n    ReactCurrentOwner$1.current=workInProgress;\n    setIsRendering(true);\n    newChildren=render(newValue);\n    setIsRendering(false);\n  } // React DevTools reads this flag.\n\n\n  workInProgress.effectTag |=PerformedWork;\n  reconcileChildren(current, workInProgress, newChildren, renderExpirationTime);\n  return workInProgress.child;\n}\n\nfunction markWorkInProgressReceivedUpdate(){\n  didReceiveUpdate=true;\n}\n\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime){\n  cancelWorkTimer(workInProgress);\n\n  if(current!==null){\n    // Reuse previous dependencies\n    workInProgress.dependencies=current.dependencies;\n  }\n\n  {\n    // Don't update \"base\" render times for bailouts.\n    stopProfilerTimerIfRunning();\n  }\n\n  var updateExpirationTime=workInProgress.expirationTime;\n\n  if(updateExpirationTime!==NoWork){\n    markUnprocessedUpdateTime(updateExpirationTime);\n  } // Check if the children have any pending work.\n\n\n  var childExpirationTime=workInProgress.childExpirationTime;\n\n  if(childExpirationTime < renderExpirationTime){\n    // The children don't have any work either. We can skip them.\n    // TODO: Once we add back resuming, we should check if the children are\n    // a work-in-progress set. If so, we need to transfer their effects.\n    return null;\n  }else{\n    // This fiber doesn't have work, but its subtree does. Clone the child\n    // fibers and continue.\n    cloneChildFibers(current, workInProgress);\n    return workInProgress.child;\n  }\n}\n\nfunction remountFiber(current, oldWorkInProgress, newWorkInProgress){\n  {\n    var returnFiber=oldWorkInProgress.return;\n\n    if(returnFiber===null){\n      throw new Error('Cannot swap the root fiber.');\n    } // Disconnect from the old current.\n    // It will get deleted.\n\n\n    current.alternate=null;\n    oldWorkInProgress.alternate=null; // Connect to the new tree.\n\n    newWorkInProgress.index=oldWorkInProgress.index;\n    newWorkInProgress.sibling=oldWorkInProgress.sibling;\n    newWorkInProgress.return=oldWorkInProgress.return;\n    newWorkInProgress.ref=oldWorkInProgress.ref; // Replace the child/sibling pointers above it.\n\n    if(oldWorkInProgress===returnFiber.child){\n      returnFiber.child=newWorkInProgress;\n    }else{\n      var prevSibling=returnFiber.child;\n\n      if(prevSibling===null){\n        throw new Error('Expected parent to have a child.');\n      }\n\n      while (prevSibling.sibling!==oldWorkInProgress){\n        prevSibling=prevSibling.sibling;\n\n        if(prevSibling===null){\n          throw new Error('Expected to find the previous sibling.');\n        }\n      }\n\n      prevSibling.sibling=newWorkInProgress;\n    } // Delete the old fiber and place the new one.\n    // Since the old fiber is disconnected, we have to schedule it manually.\n\n\n    var last=returnFiber.lastEffect;\n\n    if(last!==null){\n      last.nextEffect=current;\n      returnFiber.lastEffect=current;\n    }else{\n      returnFiber.firstEffect=returnFiber.lastEffect=current;\n    }\n\n    current.nextEffect=null;\n    current.effectTag=Deletion;\n    newWorkInProgress.effectTag |=Placement; // Restart work from the new fiber.\n\n    return newWorkInProgress;\n  }\n}\n\nfunction beginWork(current, workInProgress, renderExpirationTime){\n  var updateExpirationTime=workInProgress.expirationTime;\n\n  {\n    if(workInProgress._debugNeedsRemount&&current!==null){\n      // This will restart the begin phase with a new fiber.\n      return remountFiber(current, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner||null, workInProgress.mode, workInProgress.expirationTime));\n    }\n  }\n\n  if(current!==null){\n    var oldProps=current.memoizedProps;\n    var newProps=workInProgress.pendingProps;\n\n    if(oldProps!==newProps||hasContextChanged()||(// Force a re-render if the implementation changed due to hot reload:\n     workInProgress.type!==current.type)){\n      // If props or context changed, mark the fiber as having performed work.\n      // This may be unset if the props are determined to be equal later (memo).\n      didReceiveUpdate=true;\n    }else if(updateExpirationTime < renderExpirationTime){\n      didReceiveUpdate=false; // This fiber does not have any pending work. Bailout without entering\n      // the begin phase. There's still some bookkeeping we that needs to be done\n      // in this optimized path, mostly pushing stuff onto the stack.\n\n      switch (workInProgress.tag){\n        case HostRoot:\n          pushHostRootContext(workInProgress);\n          resetHydrationState();\n          break;\n\n        case HostComponent:\n          pushHostContext(workInProgress);\n\n          if(workInProgress.mode & ConcurrentMode&&renderExpirationTime!==Never&&shouldDeprioritizeSubtree(workInProgress.type, newProps)){\n            {\n              markSpawnedWork(Never);\n            } // Schedule this fiber to re-render at offscreen priority. Then bailout.\n\n\n            workInProgress.expirationTime=workInProgress.childExpirationTime=Never;\n            return null;\n          }\n\n          break;\n\n        case ClassComponent:\n          {\n            var Component=workInProgress.type;\n\n            if(isContextProvider(Component)){\n              pushContextProvider(workInProgress);\n            }\n\n            break;\n          }\n\n        case HostPortal:\n          pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n          break;\n\n        case ContextProvider:\n          {\n            var newValue=workInProgress.memoizedProps.value;\n            pushProvider(workInProgress, newValue);\n            break;\n          }\n\n        case Profiler:\n          {\n            // Profiler should only call onRender when one of its descendants actually rendered.\n            var hasChildWork=workInProgress.childExpirationTime >=renderExpirationTime;\n\n            if(hasChildWork){\n              workInProgress.effectTag |=Update;\n            }\n          }\n\n          break;\n\n        case SuspenseComponent:\n          {\n            var state=workInProgress.memoizedState;\n\n            if(state!==null){\n              // whether to retry the primary children, or to skip over it and\n              // go straight to the fallback. Check the priority of the primary\n              // child fragment.\n\n\n              var primaryChildFragment=workInProgress.child;\n              var primaryChildExpirationTime=primaryChildFragment.childExpirationTime;\n\n              if(primaryChildExpirationTime!==NoWork&&primaryChildExpirationTime >=renderExpirationTime){\n                // The primary children have pending work. Use the normal path\n                // to attempt to render the primary children again.\n                return updateSuspenseComponent(current, workInProgress, renderExpirationTime);\n              }else{\n                pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current)); // The primary children do not have pending work with sufficient\n                // priority. Bailout.\n\n                var child=bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n\n                if(child!==null){\n                  // The fallback children have pending work. Skip over the\n                  // primary children and work on the fallback.\n                  return child.sibling;\n                }else{\n                  return null;\n                }\n              }\n            }else{\n              pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));\n            }\n\n            break;\n          }\n\n        case SuspenseListComponent:\n          {\n            var didSuspendBefore=(current.effectTag & DidCapture)!==NoEffect;\n\n            var _hasChildWork=workInProgress.childExpirationTime >=renderExpirationTime;\n\n            if(didSuspendBefore){\n              if(_hasChildWork){\n                // If something was in fallback state last time, and we have all the\n                // same children then we're still in progressive loading state.\n                // Something might get unblocked by state updates or retries in the\n                // tree which will affect the tail. So we need to use the normal\n                // path to compute the correct tail.\n                return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);\n              } // If none of the children had any work, that means that none of\n              // them got retried so they'll still be blocked in the same way\n              // as before. We can fast bail out.\n\n\n              workInProgress.effectTag |=DidCapture;\n            } // If nothing suspended before and we're rendering the same children,\n            // then the tail doesn't matter. Anything new that suspends will work\n            // in the \"together\" mode, so we can continue from the state we had.\n\n\n            var renderState=workInProgress.memoizedState;\n\n            if(renderState!==null){\n              // Reset to the \"together\" mode in case we've started a different\n              // update in the past but didn't complete it.\n              renderState.rendering=null;\n              renderState.tail=null;\n            }\n\n            pushSuspenseContext(workInProgress, suspenseStackCursor.current);\n\n            if(_hasChildWork){\n              break;\n            }else{\n              // If none of the children had any work, that means that none of\n              // them got retried so they'll still be blocked in the same way\n              // as before. We can fast bail out.\n              return null;\n            }\n          }\n      }\n\n      return bailoutOnAlreadyFinishedWork(current, workInProgress, renderExpirationTime);\n    }else{\n      // An update was scheduled on this fiber, but there are no new props\n      // nor legacy context. Set this to false. If an update queue or context\n      // consumer produces a changed value, it will set this to true. Otherwise,\n      // the component will assume the children have not changed and bail out.\n      didReceiveUpdate=false;\n    }\n  }else{\n    didReceiveUpdate=false;\n  } // Before entering the begin phase, clear pending update priority.\n  // TODO: This assumes that we're about to evaluate the component and process\n  // the update queue. However, there's an exception: SimpleMemoComponent\n  // sometimes bails out later in the begin phase. This indicates that we should\n  // move this assignment out of the common path and into each branch.\n\n\n  workInProgress.expirationTime=NoWork;\n\n  switch (workInProgress.tag){\n    case IndeterminateComponent:\n      {\n        return mountIndeterminateComponent(current, workInProgress, workInProgress.type, renderExpirationTime);\n      }\n\n    case LazyComponent:\n      {\n        var elementType=workInProgress.elementType;\n        return mountLazyComponent(current, workInProgress, elementType, updateExpirationTime, renderExpirationTime);\n      }\n\n    case FunctionComponent:\n      {\n        var _Component=workInProgress.type;\n        var unresolvedProps=workInProgress.pendingProps;\n        var resolvedProps=workInProgress.elementType===_Component ? unresolvedProps:resolveDefaultProps(_Component, unresolvedProps);\n        return updateFunctionComponent(current, workInProgress, _Component, resolvedProps, renderExpirationTime);\n      }\n\n    case ClassComponent:\n      {\n        var _Component2=workInProgress.type;\n        var _unresolvedProps=workInProgress.pendingProps;\n\n        var _resolvedProps=workInProgress.elementType===_Component2 ? _unresolvedProps:resolveDefaultProps(_Component2, _unresolvedProps);\n\n        return updateClassComponent(current, workInProgress, _Component2, _resolvedProps, renderExpirationTime);\n      }\n\n    case HostRoot:\n      return updateHostRoot(current, workInProgress, renderExpirationTime);\n\n    case HostComponent:\n      return updateHostComponent(current, workInProgress, renderExpirationTime);\n\n    case HostText:\n      return updateHostText(current, workInProgress);\n\n    case SuspenseComponent:\n      return updateSuspenseComponent(current, workInProgress, renderExpirationTime);\n\n    case HostPortal:\n      return updatePortalComponent(current, workInProgress, renderExpirationTime);\n\n    case ForwardRef:\n      {\n        var type=workInProgress.type;\n        var _unresolvedProps2=workInProgress.pendingProps;\n\n        var _resolvedProps2=workInProgress.elementType===type ? _unresolvedProps2:resolveDefaultProps(type, _unresolvedProps2);\n\n        return updateForwardRef(current, workInProgress, type, _resolvedProps2, renderExpirationTime);\n      }\n\n    case Fragment:\n      return updateFragment(current, workInProgress, renderExpirationTime);\n\n    case Mode:\n      return updateMode(current, workInProgress, renderExpirationTime);\n\n    case Profiler:\n      return updateProfiler(current, workInProgress, renderExpirationTime);\n\n    case ContextProvider:\n      return updateContextProvider(current, workInProgress, renderExpirationTime);\n\n    case ContextConsumer:\n      return updateContextConsumer(current, workInProgress, renderExpirationTime);\n\n    case MemoComponent:\n      {\n        var _type2=workInProgress.type;\n        var _unresolvedProps3=workInProgress.pendingProps; // Resolve outer props first, then resolve inner props.\n\n        var _resolvedProps3=resolveDefaultProps(_type2, _unresolvedProps3);\n\n        {\n          if(workInProgress.type!==workInProgress.elementType){\n            var outerPropTypes=_type2.propTypes;\n\n            if(outerPropTypes){\n              checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only\n              'prop', getComponentName(_type2), getCurrentFiberStackInDev);\n            }\n          }\n        }\n\n        _resolvedProps3=resolveDefaultProps(_type2.type, _resolvedProps3);\n        return updateMemoComponent(current, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);\n      }\n\n    case SimpleMemoComponent:\n      {\n        return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);\n      }\n\n    case IncompleteClassComponent:\n      {\n        var _Component3=workInProgress.type;\n        var _unresolvedProps4=workInProgress.pendingProps;\n\n        var _resolvedProps4=workInProgress.elementType===_Component3 ? _unresolvedProps4:resolveDefaultProps(_Component3, _unresolvedProps4);\n\n        return mountIncompleteClassComponent(current, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);\n      }\n\n    case SuspenseListComponent:\n      {\n        return updateSuspenseListComponent(current, workInProgress, renderExpirationTime);\n      }\n  }\n\n  {\n    {\n      throw Error(\"Unknown unit of work tag (\" + workInProgress.tag + \"). This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n}\n\nfunction markUpdate(workInProgress){\n  // Tag the fiber with an update effect. This turns a Placement into\n  // a PlacementAndUpdate.\n  workInProgress.effectTag |=Update;\n}\n\nfunction markRef$1(workInProgress){\n  workInProgress.effectTag |=Ref;\n}\n\nvar appendAllChildren;\nvar updateHostContainer;\nvar updateHostComponent$1;\nvar updateHostText$1;\n\n{\n  // Mutation mode\n  appendAllChildren=function (parent, workInProgress, needsVisibilityToggle, isHidden){\n    // We only have the top Fiber that was created but we need recurse down its\n    // children to find all the terminal nodes.\n    var node=workInProgress.child;\n\n    while (node!==null){\n      if(node.tag===HostComponent||node.tag===HostText){\n        appendInitialChild(parent, node.stateNode);\n      }else if(node.tag===HostPortal) ; else if(node.child!==null){\n        node.child.return=node;\n        node=node.child;\n        continue;\n      }\n\n      if(node===workInProgress){\n        return;\n      }\n\n      while (node.sibling===null){\n        if(node.return===null||node.return===workInProgress){\n          return;\n        }\n\n        node=node.return;\n      }\n\n      node.sibling.return=node.return;\n      node=node.sibling;\n    }\n  };\n\n  updateHostContainer=function (workInProgress){// Noop\n  };\n\n  updateHostComponent$1=function (current, workInProgress, type, newProps, rootContainerInstance){\n    // If we have an alternate, that means this is an update and we need to\n    // schedule a side-effect to do the updates.\n    var oldProps=current.memoizedProps;\n\n    if(oldProps===newProps){\n      // In mutation mode, this is sufficient for a bailout because\n      // we won't touch this node even if children changed.\n      return;\n    } // If we get updated because one of our children updated, we don't\n    // have newProps so we'll have to reuse them.\n    // TODO: Split the update API as separate for the props vs. children.\n    // Even better would be if children weren't special cased at all tho.\n\n\n    var instance=workInProgress.stateNode;\n    var currentHostContext=getHostContext(); // TODO: Experiencing an error where oldProps is null. Suggests a host\n    // component is hitting the resume path. Figure out why. Possibly\n    // related to `hidden`.\n\n    var updatePayload=prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext); // TODO: Type this specific to this type of component.\n\n    workInProgress.updateQueue=updatePayload; // If the update payload indicates that there is a change or if there\n    // is a new ref we mark this as an update. All the work is done in commitWork.\n\n    if(updatePayload){\n      markUpdate(workInProgress);\n    }\n  };\n\n  updateHostText$1=function (current, workInProgress, oldText, newText){\n    // If the text differs, mark it as an update. All the work in done in commitWork.\n    if(oldText!==newText){\n      markUpdate(workInProgress);\n    }\n  };\n}\n\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback){\n  switch (renderState.tailMode){\n    case 'hidden':\n      {\n        // Any insertions at the end of the tail list after this point\n        // should be invisible. If there are already mounted boundaries\n        // anything before them are not considered for collapsing.\n        // Therefore we need to go through the whole tail to find if\n        // there are any.\n        var tailNode=renderState.tail;\n        var lastTailNode=null;\n\n        while (tailNode!==null){\n          if(tailNode.alternate!==null){\n            lastTailNode=tailNode;\n          }\n\n          tailNode=tailNode.sibling;\n        } // Next we're simply going to delete all insertions after the\n        // last rendered item.\n\n\n        if(lastTailNode===null){\n          // All remaining items in the tail are insertions.\n          renderState.tail=null;\n        }else{\n          // Detach the insertion after the last node that was already\n          // inserted.\n          lastTailNode.sibling=null;\n        }\n\n        break;\n      }\n\n    case 'collapsed':\n      {\n        // Any insertions at the end of the tail list after this point\n        // should be invisible. If there are already mounted boundaries\n        // anything before them are not considered for collapsing.\n        // Therefore we need to go through the whole tail to find if\n        // there are any.\n        var _tailNode=renderState.tail;\n        var _lastTailNode=null;\n\n        while (_tailNode!==null){\n          if(_tailNode.alternate!==null){\n            _lastTailNode=_tailNode;\n          }\n\n          _tailNode=_tailNode.sibling;\n        } // Next we're simply going to delete all insertions after the\n        // last rendered item.\n\n\n        if(_lastTailNode===null){\n          // All remaining items in the tail are insertions.\n          if(!hasRenderedATailFallback&&renderState.tail!==null){\n            // We suspended during the head. We want to show at least one\n            // row at the tail. So we'll keep on and cut off the rest.\n            renderState.tail.sibling=null;\n          }else{\n            renderState.tail=null;\n          }\n        }else{\n          // Detach the insertion after the last node that was already\n          // inserted.\n          _lastTailNode.sibling=null;\n        }\n\n        break;\n      }\n  }\n}\n\nfunction completeWork(current, workInProgress, renderExpirationTime){\n  var newProps=workInProgress.pendingProps;\n\n  switch (workInProgress.tag){\n    case IndeterminateComponent:\n    case LazyComponent:\n    case SimpleMemoComponent:\n    case FunctionComponent:\n    case ForwardRef:\n    case Fragment:\n    case Mode:\n    case Profiler:\n    case ContextConsumer:\n    case MemoComponent:\n      return null;\n\n    case ClassComponent:\n      {\n        var Component=workInProgress.type;\n\n        if(isContextProvider(Component)){\n          popContext(workInProgress);\n        }\n\n        return null;\n      }\n\n    case HostRoot:\n      {\n        popHostContainer(workInProgress);\n        popTopLevelContextObject(workInProgress);\n        var fiberRoot=workInProgress.stateNode;\n\n        if(fiberRoot.pendingContext){\n          fiberRoot.context=fiberRoot.pendingContext;\n          fiberRoot.pendingContext=null;\n        }\n\n        if(current===null||current.child===null){\n          // If we hydrated, pop so that we can delete any remaining children\n          // that weren't hydrated.\n          var wasHydrated=popHydrationState(workInProgress);\n\n          if(wasHydrated){\n            // If we hydrated, then we'll need to schedule an update for\n            // the commit side-effects on the root.\n            markUpdate(workInProgress);\n          }\n        }\n\n        updateHostContainer(workInProgress);\n        return null;\n      }\n\n    case HostComponent:\n      {\n        popHostContext(workInProgress);\n        var rootContainerInstance=getRootHostContainer();\n        var type=workInProgress.type;\n\n        if(current!==null&&workInProgress.stateNode!=null){\n          updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);\n\n          if(current.ref!==workInProgress.ref){\n            markRef$1(workInProgress);\n          }\n        }else{\n          if(!newProps){\n            if(!(workInProgress.stateNode!==null)){\n              {\n                throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");\n              }\n            } // This can happen when we abort work.\n\n\n            return null;\n          }\n\n          var currentHostContext=getHostContext(); // TODO: Move createInstance to beginWork and keep it on a context\n          // \"stack\" as the parent. Then append children as we go in beginWork\n          // or completeWork depending on whether we want to add them top->down or\n          // bottom->up. Top->down is faster in IE11.\n\n          var _wasHydrated=popHydrationState(workInProgress);\n\n          if(_wasHydrated){\n            // TODO: Move this and createInstance step into the beginPhase\n            // to consolidate.\n            if(prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)){\n              // If changes to the hydrated node need to be applied at the\n              // commit-phase we mark this as such.\n              markUpdate(workInProgress);\n            }\n          }else{\n            var instance=createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);\n            appendAllChildren(instance, workInProgress, false, false); // This needs to be set before we mount Flare event listeners\n\n            workInProgress.stateNode=instance;\n            // (eg DOM renderer supports auto-focus for certain elements).\n            // Make sure such renderers get scheduled for later work.\n\n\n            if(finalizeInitialChildren(instance, type, newProps, rootContainerInstance)){\n              markUpdate(workInProgress);\n            }\n          }\n\n          if(workInProgress.ref!==null){\n            // If there is a ref on a host node we need to schedule a callback\n            markRef$1(workInProgress);\n          }\n        }\n\n        return null;\n      }\n\n    case HostText:\n      {\n        var newText=newProps;\n\n        if(current&&workInProgress.stateNode!=null){\n          var oldText=current.memoizedProps; // If we have an alternate, that means this is an update and we need\n          // to schedule a side-effect to do the updates.\n\n          updateHostText$1(current, workInProgress, oldText, newText);\n        }else{\n          if(typeof newText!=='string'){\n            if(!(workInProgress.stateNode!==null)){\n              {\n                throw Error(\"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\");\n              }\n            } // This can happen when we abort work.\n\n          }\n\n          var _rootContainerInstance=getRootHostContainer();\n\n          var _currentHostContext=getHostContext();\n\n          var _wasHydrated2=popHydrationState(workInProgress);\n\n          if(_wasHydrated2){\n            if(prepareToHydrateHostTextInstance(workInProgress)){\n              markUpdate(workInProgress);\n            }\n          }else{\n            workInProgress.stateNode=createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);\n          }\n        }\n\n        return null;\n      }\n\n    case SuspenseComponent:\n      {\n        popSuspenseContext(workInProgress);\n        var nextState=workInProgress.memoizedState;\n\n        if((workInProgress.effectTag & DidCapture)!==NoEffect){\n          // Something suspended. Re-render with the fallback children.\n          workInProgress.expirationTime=renderExpirationTime; // Do not reset the effect list.\n\n          return workInProgress;\n        }\n\n        var nextDidTimeout=nextState!==null;\n        var prevDidTimeout=false;\n\n        if(current===null){\n          if(workInProgress.memoizedProps.fallback!==undefined){\n            popHydrationState(workInProgress);\n          }\n        }else{\n          var prevState=current.memoizedState;\n          prevDidTimeout=prevState!==null;\n\n          if(!nextDidTimeout&&prevState!==null){\n            // We just switched from the fallback to the normal children.\n            // Delete the fallback.\n            // TODO: Would it be better to store the fallback fragment on\n            // the stateNode during the begin phase?\n            var currentFallbackChild=current.child.sibling;\n\n            if(currentFallbackChild!==null){\n              // Deletions go at the beginning of the return fiber's effect list\n              var first=workInProgress.firstEffect;\n\n              if(first!==null){\n                workInProgress.firstEffect=currentFallbackChild;\n                currentFallbackChild.nextEffect=first;\n              }else{\n                workInProgress.firstEffect=workInProgress.lastEffect=currentFallbackChild;\n                currentFallbackChild.nextEffect=null;\n              }\n\n              currentFallbackChild.effectTag=Deletion;\n            }\n          }\n        }\n\n        if(nextDidTimeout&&!prevDidTimeout){\n          // If this subtreee is running in blocking mode we can suspend,\n          // otherwise we won't suspend.\n          // TODO: This will still suspend a synchronous tree if anything\n          // in the concurrent tree already suspended during this render.\n          // This is a known bug.\n          if((workInProgress.mode & BlockingMode)!==NoMode){\n            // TODO: Move this back to throwException because this is too late\n            // if this is a large tree which is common for initial loads. We\n            // don't know if we should restart a render or not until we get\n            // this marker, and this is too late.\n            // If this render already had a ping or lower pri updates,\n            // and this is the first time we know we're going to suspend we\n            // should be able to immediately restart from within throwException.\n            var hasInvisibleChildContext=current===null&&workInProgress.memoizedProps.unstable_avoidThisFallback!==true;\n\n            if(hasInvisibleChildContext||hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)){\n              // If this was in an invisible tree or a new render, then showing\n              // this boundary is ok.\n              renderDidSuspend();\n            }else{\n              // Otherwise, we're going to have to hide content so we should\n              // suspend for longer if possible.\n              renderDidSuspendDelayIfPossible();\n            }\n          }\n        }\n\n        {\n          // TODO: Only schedule updates if these values are non equal, i.e. it changed.\n          if(nextDidTimeout||prevDidTimeout){\n            // If this boundary just timed out, schedule an effect to attach a\n            // retry listener to the promise. This flag is also used to hide the\n            // primary children. In mutation mode, we also need the flag to\n            // *unhide* children that were previously hidden, so check if this\n            // is currently timed out, too.\n            workInProgress.effectTag |=Update;\n          }\n        }\n\n        return null;\n      }\n\n    case HostPortal:\n      popHostContainer(workInProgress);\n      updateHostContainer(workInProgress);\n      return null;\n\n    case ContextProvider:\n      // Pop provider fiber\n      popProvider(workInProgress);\n      return null;\n\n    case IncompleteClassComponent:\n      {\n        // Same as class component case. I put it down here so that the tags are\n        // sequential to ensure this switch is compiled to a jump table.\n        var _Component=workInProgress.type;\n\n        if(isContextProvider(_Component)){\n          popContext(workInProgress);\n        }\n\n        return null;\n      }\n\n    case SuspenseListComponent:\n      {\n        popSuspenseContext(workInProgress);\n        var renderState=workInProgress.memoizedState;\n\n        if(renderState===null){\n          // We're running in the default, \"independent\" mode.\n          // We don't do anything in this mode.\n          return null;\n        }\n\n        var didSuspendAlready=(workInProgress.effectTag & DidCapture)!==NoEffect;\n        var renderedTail=renderState.rendering;\n\n        if(renderedTail===null){\n          // We just rendered the head.\n          if(!didSuspendAlready){\n            // This is the first pass. We need to figure out if anything is still\n            // suspended in the rendered set.\n            // If new content unsuspended, but there's still some content that\n            // didn't. Then we need to do a second pass that forces everything\n            // to keep showing their fallbacks.\n            // We might be suspended if something in this render pass suspended, or\n            // something in the previous committed pass suspended. Otherwise,\n            // there's no chance so we can skip the expensive call to\n            // findFirstSuspended.\n            var cannotBeSuspended=renderHasNotSuspendedYet()&&(current===null||(current.effectTag & DidCapture)===NoEffect);\n\n            if(!cannotBeSuspended){\n              var row=workInProgress.child;\n\n              while (row!==null){\n                var suspended=findFirstSuspended(row);\n\n                if(suspended!==null){\n                  didSuspendAlready=true;\n                  workInProgress.effectTag |=DidCapture;\n                  cutOffTailIfNeeded(renderState, false); // If this is a newly suspended tree, it might not get committed as\n                  // part of the second pass. In that case nothing will subscribe to\n                  // its thennables. Instead, we'll transfer its thennables to the\n                  // SuspenseList so that it can retry if they resolve.\n                  // There might be multiple of these in the list but since we're\n                  // going to wait for all of them anyway, it doesn't really matter\n                  // which ones gets to ping. In theory we could get clever and keep\n                  // track of how many dependencies remain but it gets tricky because\n                  // in the meantime, we can add/remove/change items and dependencies.\n                  // We might bail out of the loop before finding any but that\n                  // doesn't matter since that means that the other boundaries that\n                  // we did find already has their listeners attached.\n\n                  var newThennables=suspended.updateQueue;\n\n                  if(newThennables!==null){\n                    workInProgress.updateQueue=newThennables;\n                    workInProgress.effectTag |=Update;\n                  } // Rerender the whole list, but this time, we'll force fallbacks\n                  // to stay in place.\n                  // Reset the effect list before doing the second pass since that's now invalid.\n\n\n                  if(renderState.lastEffect===null){\n                    workInProgress.firstEffect=null;\n                  }\n\n                  workInProgress.lastEffect=renderState.lastEffect; // Reset the child fibers to their original state.\n\n                  resetChildFibers(workInProgress, renderExpirationTime); // Set up the Suspense Context to force suspense and immediately\n                  // rerender the children.\n\n                  pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));\n                  return workInProgress.child;\n                }\n\n                row=row.sibling;\n              }\n            }\n          }else{\n            cutOffTailIfNeeded(renderState, false);\n          } // Next we're going to render the tail.\n\n        }else{\n          // Append the rendered row to the child list.\n          if(!didSuspendAlready){\n            var _suspended=findFirstSuspended(renderedTail);\n\n            if(_suspended!==null){\n              workInProgress.effectTag |=DidCapture;\n              didSuspendAlready=true; // Ensure we transfer the update queue to the parent so that it doesn't\n              // get lost if this row ends up dropped during a second pass.\n\n              var _newThennables=_suspended.updateQueue;\n\n              if(_newThennables!==null){\n                workInProgress.updateQueue=_newThennables;\n                workInProgress.effectTag |=Update;\n              }\n\n              cutOffTailIfNeeded(renderState, true); // This might have been modified.\n\n              if(renderState.tail===null&&renderState.tailMode==='hidden'&&!renderedTail.alternate){\n                // We need to delete the row we just rendered.\n                // Reset the effect list to what it was before we rendered this\n                // child. The nested children have already appended themselves.\n                var lastEffect=workInProgress.lastEffect=renderState.lastEffect; // Remove any effects that were appended after this point.\n\n                if(lastEffect!==null){\n                  lastEffect.nextEffect=null;\n                } // We're done.\n\n\n                return null;\n              }\n            }else if(// The time it took to render last row is greater than time until\n            // the expiration.\n            now() * 2 - renderState.renderingStartTime > renderState.tailExpiration&&renderExpirationTime > Never){\n              // We have now passed our CPU deadline and we'll just give up further\n              // attempts to render the main content and only render fallbacks.\n              // The assumption is that this is usually faster.\n              workInProgress.effectTag |=DidCapture;\n              didSuspendAlready=true;\n              cutOffTailIfNeeded(renderState, false); // Since nothing actually suspended, there will nothing to ping this\n              // to get it started back up to attempt the next item. If we can show\n              // them, then they really have the same priority as this render.\n              // So we'll pick it back up the very next render pass once we've had\n              // an opportunity to yield for paint.\n\n              var nextPriority=renderExpirationTime - 1;\n              workInProgress.expirationTime=workInProgress.childExpirationTime=nextPriority;\n\n              {\n                markSpawnedWork(nextPriority);\n              }\n            }\n          }\n\n          if(renderState.isBackwards){\n            // The effect list of the backwards tail will have been added\n            // to the end. This breaks the guarantee that life-cycles fire in\n            // sibling order but that isn't a strong guarantee promised by React.\n            // Especially since these might also just pop in during future commits.\n            // Append to the beginning of the list.\n            renderedTail.sibling=workInProgress.child;\n            workInProgress.child=renderedTail;\n          }else{\n            var previousSibling=renderState.last;\n\n            if(previousSibling!==null){\n              previousSibling.sibling=renderedTail;\n            }else{\n              workInProgress.child=renderedTail;\n            }\n\n            renderState.last=renderedTail;\n          }\n        }\n\n        if(renderState.tail!==null){\n          // We still have tail rows to render.\n          if(renderState.tailExpiration===0){\n            // Heuristic for how long we're willing to spend rendering rows\n            // until we just give up and show what we have so far.\n            var TAIL_EXPIRATION_TIMEOUT_MS=500;\n            renderState.tailExpiration=now() + TAIL_EXPIRATION_TIMEOUT_MS; // TODO: This is meant to mimic the train model or JND but this\n            // is a per component value. It should really be since the start\n            // of the total render or last commit. Consider using something like\n            // globalMostRecentFallbackTime. That doesn't account for being\n            // suspended for part of the time or when it's a new render.\n            // It should probably use a global start time value instead.\n          } // Pop a row.\n\n\n          var next=renderState.tail;\n          renderState.rendering=next;\n          renderState.tail=next.sibling;\n          renderState.lastEffect=workInProgress.lastEffect;\n          renderState.renderingStartTime=now();\n          next.sibling=null; // Restore the context.\n          // TODO: We can probably just avoid popping it instead and only\n          // setting it the first time we go from not suspended to suspended.\n\n          var suspenseContext=suspenseStackCursor.current;\n\n          if(didSuspendAlready){\n            suspenseContext=setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);\n          }else{\n            suspenseContext=setDefaultShallowSuspenseContext(suspenseContext);\n          }\n\n          pushSuspenseContext(workInProgress, suspenseContext); // Do a pass over the next row.\n\n          return next;\n        }\n\n        return null;\n      }\n  }\n\n  {\n    {\n      throw Error(\"Unknown unit of work tag (\" + workInProgress.tag + \"). This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n}\n\nfunction unwindWork(workInProgress, renderExpirationTime){\n  switch (workInProgress.tag){\n    case ClassComponent:\n      {\n        var Component=workInProgress.type;\n\n        if(isContextProvider(Component)){\n          popContext(workInProgress);\n        }\n\n        var effectTag=workInProgress.effectTag;\n\n        if(effectTag & ShouldCapture){\n          workInProgress.effectTag=effectTag & ~ShouldCapture | DidCapture;\n          return workInProgress;\n        }\n\n        return null;\n      }\n\n    case HostRoot:\n      {\n        popHostContainer(workInProgress);\n        popTopLevelContextObject(workInProgress);\n        var _effectTag=workInProgress.effectTag;\n\n        if(!((_effectTag & DidCapture)===NoEffect)){\n          {\n            throw Error(\"The root failed to unmount after an error. This is likely a bug in React. Please file an issue.\");\n          }\n        }\n\n        workInProgress.effectTag=_effectTag & ~ShouldCapture | DidCapture;\n        return workInProgress;\n      }\n\n    case HostComponent:\n      {\n        // TODO: popHydrationState\n        popHostContext(workInProgress);\n        return null;\n      }\n\n    case SuspenseComponent:\n      {\n        popSuspenseContext(workInProgress);\n\n        var _effectTag2=workInProgress.effectTag;\n\n        if(_effectTag2 & ShouldCapture){\n          workInProgress.effectTag=_effectTag2 & ~ShouldCapture | DidCapture; // Captured a suspense effect. Re-render the boundary.\n\n          return workInProgress;\n        }\n\n        return null;\n      }\n\n    case SuspenseListComponent:\n      {\n        popSuspenseContext(workInProgress); // SuspenseList doesn't actually catch anything. It should've been\n        // caught by a nested boundary. If not, it should bubble through.\n\n        return null;\n      }\n\n    case HostPortal:\n      popHostContainer(workInProgress);\n      return null;\n\n    case ContextProvider:\n      popProvider(workInProgress);\n      return null;\n\n    default:\n      return null;\n  }\n}\n\nfunction unwindInterruptedWork(interruptedWork){\n  switch (interruptedWork.tag){\n    case ClassComponent:\n      {\n        var childContextTypes=interruptedWork.type.childContextTypes;\n\n        if(childContextTypes!==null&&childContextTypes!==undefined){\n          popContext(interruptedWork);\n        }\n\n        break;\n      }\n\n    case HostRoot:\n      {\n        popHostContainer(interruptedWork);\n        popTopLevelContextObject(interruptedWork);\n        break;\n      }\n\n    case HostComponent:\n      {\n        popHostContext(interruptedWork);\n        break;\n      }\n\n    case HostPortal:\n      popHostContainer(interruptedWork);\n      break;\n\n    case SuspenseComponent:\n      popSuspenseContext(interruptedWork);\n      break;\n\n    case SuspenseListComponent:\n      popSuspenseContext(interruptedWork);\n      break;\n\n    case ContextProvider:\n      popProvider(interruptedWork);\n      break;\n  }\n}\n\nfunction createCapturedValue(value, source){\n  // If the value is an error, call this function immediately after it is thrown\n  // so the stack is accurate.\n  return {\n    value: value,\n    source: source,\n    stack: getStackByFiberInDevAndProd(source)\n  };\n}\n\nfunction logCapturedError(capturedError){\n\n  var error=capturedError.error;\n\n  {\n    var componentName=capturedError.componentName,\n        componentStack=capturedError.componentStack,\n        errorBoundaryName=capturedError.errorBoundaryName,\n        errorBoundaryFound=capturedError.errorBoundaryFound,\n        willRetry=capturedError.willRetry; // Browsers support silencing uncaught errors by calling\n    // `preventDefault()` in window `error` handler.\n    // We record this information as an expando on the error.\n\n    if(error!=null&&error._suppressLogging){\n      if(errorBoundaryFound&&willRetry){\n        // The error is recoverable and was silenced.\n        // Ignore it and don't print the stack addendum.\n        // This is handy for testing error boundaries without noise.\n        return;\n      } // The error is fatal. Since the silencing might have\n      // been accidental, we'll surface it anyway.\n      // However, the browser would have silenced the original error\n      // so we'll print it first, and then print the stack addendum.\n\n\n      console['error'](error); // Don't transform to our wrapper\n      // For a more detailed description of this block, see:\n      // https://github.com/facebook/react/pull/13384\n    }\n\n    var componentNameMessage=componentName ? \"The above error occurred in the <\" + componentName + \"> component:\":'The above error occurred in one of your React components:';\n    var errorBoundaryMessage; // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.\n\n    if(errorBoundaryFound&&errorBoundaryName){\n      if(willRetry){\n        errorBoundaryMessage=\"React will try to recreate this component tree from scratch \" + (\"using the error boundary you provided, \" + errorBoundaryName + \".\");\n      }else{\n        errorBoundaryMessage=\"This error was initially handled by the error boundary \" + errorBoundaryName + \".\\n\" + \"Recreating the tree from scratch failed so React will unmount the tree.\";\n      }\n    }else{\n      errorBoundaryMessage='Consider adding an error boundary to your tree to customize error handling behavior.\\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';\n    }\n\n    var combinedMessage=\"\" + componentNameMessage + componentStack + \"\\n\\n\" + (\"\" + errorBoundaryMessage); // In development, we provide our own message with just the component stack.\n    // We don't include the original error message and JS stack because the browser\n    // has already printed it. Even if the application swallows the error, it is still\n    // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.\n\n    console['error'](combinedMessage); // Don't transform to our wrapper\n  }\n}\n\nvar didWarnAboutUndefinedSnapshotBeforeUpdate=null;\n\n{\n  didWarnAboutUndefinedSnapshotBeforeUpdate=new Set();\n}\n\nvar PossiblyWeakSet=typeof WeakSet==='function' ? WeakSet:Set;\nfunction logError(boundary, errorInfo){\n  var source=errorInfo.source;\n  var stack=errorInfo.stack;\n\n  if(stack===null&&source!==null){\n    stack=getStackByFiberInDevAndProd(source);\n  }\n\n  var capturedError={\n    componentName: source!==null ? getComponentName(source.type):null,\n    componentStack: stack!==null ? stack:'',\n    error: errorInfo.value,\n    errorBoundary: null,\n    errorBoundaryName: null,\n    errorBoundaryFound: false,\n    willRetry: false\n  };\n\n  if(boundary!==null&&boundary.tag===ClassComponent){\n    capturedError.errorBoundary=boundary.stateNode;\n    capturedError.errorBoundaryName=getComponentName(boundary.type);\n    capturedError.errorBoundaryFound=true;\n    capturedError.willRetry=true;\n  }\n\n  try {\n    logCapturedError(capturedError);\n  } catch (e){\n    // This method must not throw, or React internal state will get messed up.\n    // If console.error is overridden, or logCapturedError() shows a dialog that throws,\n    // we want to report this error outside of the normal stack as a last resort.\n    // https://github.com/facebook/react/issues/13188\n    setTimeout(function (){\n      throw e;\n    });\n  }\n}\n\nvar callComponentWillUnmountWithTimer=function (current, instance){\n  startPhaseTimer(current, 'componentWillUnmount');\n  instance.props=current.memoizedProps;\n  instance.state=current.memoizedState;\n  instance.componentWillUnmount();\n  stopPhaseTimer();\n}; // Capture errors so they don't interrupt unmounting.\n\n\nfunction safelyCallComponentWillUnmount(current, instance){\n  {\n    invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current, instance);\n\n    if(hasCaughtError()){\n      var unmountError=clearCaughtError();\n      captureCommitPhaseError(current, unmountError);\n    }\n  }\n}\n\nfunction safelyDetachRef(current){\n  var ref=current.ref;\n\n  if(ref!==null){\n    if(typeof ref==='function'){\n      {\n        invokeGuardedCallback(null, ref, null, null);\n\n        if(hasCaughtError()){\n          var refError=clearCaughtError();\n          captureCommitPhaseError(current, refError);\n        }\n      }\n    }else{\n      ref.current=null;\n    }\n  }\n}\n\nfunction safelyCallDestroy(current, destroy){\n  {\n    invokeGuardedCallback(null, destroy, null);\n\n    if(hasCaughtError()){\n      var error=clearCaughtError();\n      captureCommitPhaseError(current, error);\n    }\n  }\n}\n\nfunction commitBeforeMutationLifeCycles(current, finishedWork){\n  switch (finishedWork.tag){\n    case FunctionComponent:\n    case ForwardRef:\n    case SimpleMemoComponent:\n    case Block:\n      {\n        return;\n      }\n\n    case ClassComponent:\n      {\n        if(finishedWork.effectTag & Snapshot){\n          if(current!==null){\n            var prevProps=current.memoizedProps;\n            var prevState=current.memoizedState;\n            startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');\n            var instance=finishedWork.stateNode; // We could update instance props and state here,\n            // but instead we rely on them being set during last render.\n            // TODO: revisit this when we implement resuming.\n\n            {\n              if(finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps){\n                if(instance.props!==finishedWork.memoizedProps){\n                  error('Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n                }\n\n                if(instance.state!==finishedWork.memoizedState){\n                  error('Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n                }\n              }\n            }\n\n            var snapshot=instance.getSnapshotBeforeUpdate(finishedWork.elementType===finishedWork.type ? prevProps:resolveDefaultProps(finishedWork.type, prevProps), prevState);\n\n            {\n              var didWarnSet=didWarnAboutUndefinedSnapshotBeforeUpdate;\n\n              if(snapshot===undefined&&!didWarnSet.has(finishedWork.type)){\n                didWarnSet.add(finishedWork.type);\n\n                error('%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));\n              }\n            }\n\n            instance.__reactInternalSnapshotBeforeUpdate=snapshot;\n            stopPhaseTimer();\n          }\n        }\n\n        return;\n      }\n\n    case HostRoot:\n    case HostComponent:\n    case HostText:\n    case HostPortal:\n    case IncompleteClassComponent:\n      // Nothing to do for these component types\n      return;\n  }\n\n  {\n    {\n      throw Error(\"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n}\n\nfunction commitHookEffectListUnmount(tag, finishedWork){\n  var updateQueue=finishedWork.updateQueue;\n  var lastEffect=updateQueue!==null ? updateQueue.lastEffect:null;\n\n  if(lastEffect!==null){\n    var firstEffect=lastEffect.next;\n    var effect=firstEffect;\n\n    do {\n      if((effect.tag & tag)===tag){\n        // Unmount\n        var destroy=effect.destroy;\n        effect.destroy=undefined;\n\n        if(destroy!==undefined){\n          destroy();\n        }\n      }\n\n      effect=effect.next;\n    } while (effect!==firstEffect);\n  }\n}\n\nfunction commitHookEffectListMount(tag, finishedWork){\n  var updateQueue=finishedWork.updateQueue;\n  var lastEffect=updateQueue!==null ? updateQueue.lastEffect:null;\n\n  if(lastEffect!==null){\n    var firstEffect=lastEffect.next;\n    var effect=firstEffect;\n\n    do {\n      if((effect.tag & tag)===tag){\n        // Mount\n        var create=effect.create;\n        effect.destroy=create();\n\n        {\n          var destroy=effect.destroy;\n\n          if(destroy!==undefined&&typeof destroy!=='function'){\n            var addendum=void 0;\n\n            if(destroy===null){\n              addendum=' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';\n            }else if(typeof destroy.then==='function'){\n              addendum='\\n\\nIt looks like you wrote useEffect(async ()=> ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\\n\\n' + 'useEffect(()=> {\\n' + '  async function fetchData(){\\n' + '    // You can await here\\n' + '    const response=await MyAPI.getData(someId);\\n' + '    // ...\\n' + '  }\\n' + '  fetchData();\\n' + \"}, [someId]); // Or [] if effect doesn't need props or state\\n\\n\" + 'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching';\n            }else{\n              addendum=' You returned: ' + destroy;\n            }\n\n            error('An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));\n          }\n        }\n      }\n\n      effect=effect.next;\n    } while (effect!==firstEffect);\n  }\n}\n\nfunction commitPassiveHookEffects(finishedWork){\n  if((finishedWork.effectTag & Passive)!==NoEffect){\n    switch (finishedWork.tag){\n      case FunctionComponent:\n      case ForwardRef:\n      case SimpleMemoComponent:\n      case Block:\n        {\n          // TODO (#17945) We should call all passive destroy functions (for all fibers)\n          // before calling any create functions. The current approach only serializes\n          // these for a single fiber.\n          commitHookEffectListUnmount(Passive$1 | HasEffect, finishedWork);\n          commitHookEffectListMount(Passive$1 | HasEffect, finishedWork);\n          break;\n        }\n    }\n  }\n}\n\nfunction commitLifeCycles(finishedRoot, current, finishedWork, committedExpirationTime){\n  switch (finishedWork.tag){\n    case FunctionComponent:\n    case ForwardRef:\n    case SimpleMemoComponent:\n    case Block:\n      {\n        // At this point layout effects have already been destroyed (during mutation phase).\n        // This is done to prevent sibling component effects from interfering with each other,\n        // e.g. a destroy function in one component should never override a ref set\n        // by a create function in another component during the same commit.\n        commitHookEffectListMount(Layout | HasEffect, finishedWork);\n\n        return;\n      }\n\n    case ClassComponent:\n      {\n        var instance=finishedWork.stateNode;\n\n        if(finishedWork.effectTag & Update){\n          if(current===null){\n            startPhaseTimer(finishedWork, 'componentDidMount'); // We could update instance props and state here,\n            // but instead we rely on them being set during last render.\n            // TODO: revisit this when we implement resuming.\n\n            {\n              if(finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps){\n                if(instance.props!==finishedWork.memoizedProps){\n                  error('Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n                }\n\n                if(instance.state!==finishedWork.memoizedState){\n                  error('Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n                }\n              }\n            }\n\n            instance.componentDidMount();\n            stopPhaseTimer();\n          }else{\n            var prevProps=finishedWork.elementType===finishedWork.type ? current.memoizedProps:resolveDefaultProps(finishedWork.type, current.memoizedProps);\n            var prevState=current.memoizedState;\n            startPhaseTimer(finishedWork, 'componentDidUpdate'); // We could update instance props and state here,\n            // but instead we rely on them being set during last render.\n            // TODO: revisit this when we implement resuming.\n\n            {\n              if(finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps){\n                if(instance.props!==finishedWork.memoizedProps){\n                  error('Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n                }\n\n                if(instance.state!==finishedWork.memoizedState){\n                  error('Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n                }\n              }\n            }\n\n            instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);\n            stopPhaseTimer();\n          }\n        }\n\n        var updateQueue=finishedWork.updateQueue;\n\n        if(updateQueue!==null){\n          {\n            if(finishedWork.type===finishedWork.elementType&&!didWarnAboutReassigningProps){\n              if(instance.props!==finishedWork.memoizedProps){\n                error('Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n              }\n\n              if(instance.state!==finishedWork.memoizedState){\n                error('Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type)||'instance');\n              }\n            }\n          } // We could update instance props and state here,\n          // but instead we rely on them being set during last render.\n          // TODO: revisit this when we implement resuming.\n\n\n          commitUpdateQueue(finishedWork, updateQueue, instance);\n        }\n\n        return;\n      }\n\n    case HostRoot:\n      {\n        var _updateQueue=finishedWork.updateQueue;\n\n        if(_updateQueue!==null){\n          var _instance=null;\n\n          if(finishedWork.child!==null){\n            switch (finishedWork.child.tag){\n              case HostComponent:\n                _instance=getPublicInstance(finishedWork.child.stateNode);\n                break;\n\n              case ClassComponent:\n                _instance=finishedWork.child.stateNode;\n                break;\n            }\n          }\n\n          commitUpdateQueue(finishedWork, _updateQueue, _instance);\n        }\n\n        return;\n      }\n\n    case HostComponent:\n      {\n        var _instance2=finishedWork.stateNode; // Renderers may schedule work to be done after host components are mounted\n        // (eg DOM renderer may schedule auto-focus for inputs and form controls).\n        // These effects should only be committed when components are first mounted,\n        // aka when there is no current/alternate.\n\n        if(current===null&&finishedWork.effectTag & Update){\n          var type=finishedWork.type;\n          var props=finishedWork.memoizedProps;\n          commitMount(_instance2, type, props);\n        }\n\n        return;\n      }\n\n    case HostText:\n      {\n        // We have no life-cycles associated with text.\n        return;\n      }\n\n    case HostPortal:\n      {\n        // We have no life-cycles associated with portals.\n        return;\n      }\n\n    case Profiler:\n      {\n        {\n          var onRender=finishedWork.memoizedProps.onRender;\n\n          if(typeof onRender==='function'){\n            {\n              onRender(finishedWork.memoizedProps.id, current===null ? 'mount':'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);\n            }\n          }\n        }\n\n        return;\n      }\n\n    case SuspenseComponent:\n      {\n        commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n        return;\n      }\n\n    case SuspenseListComponent:\n    case IncompleteClassComponent:\n    case FundamentalComponent:\n    case ScopeComponent:\n      return;\n  }\n\n  {\n    {\n      throw Error(\"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n}\n\nfunction hideOrUnhideAllChildren(finishedWork, isHidden){\n  {\n    // We only have the top Fiber that was inserted but we need to recurse down its\n    // children to find all the terminal nodes.\n    var node=finishedWork;\n\n    while (true){\n      if(node.tag===HostComponent){\n        var instance=node.stateNode;\n\n        if(isHidden){\n          hideInstance(instance);\n        }else{\n          unhideInstance(node.stateNode, node.memoizedProps);\n        }\n      }else if(node.tag===HostText){\n        var _instance3=node.stateNode;\n\n        if(isHidden){\n          hideTextInstance(_instance3);\n        }else{\n          unhideTextInstance(_instance3, node.memoizedProps);\n        }\n      }else if(node.tag===SuspenseComponent&&node.memoizedState!==null&&node.memoizedState.dehydrated===null){\n        // Found a nested Suspense component that timed out. Skip over the\n        // primary child fragment, which should remain hidden.\n        var fallbackChildFragment=node.child.sibling;\n        fallbackChildFragment.return=node;\n        node=fallbackChildFragment;\n        continue;\n      }else if(node.child!==null){\n        node.child.return=node;\n        node=node.child;\n        continue;\n      }\n\n      if(node===finishedWork){\n        return;\n      }\n\n      while (node.sibling===null){\n        if(node.return===null||node.return===finishedWork){\n          return;\n        }\n\n        node=node.return;\n      }\n\n      node.sibling.return=node.return;\n      node=node.sibling;\n    }\n  }\n}\n\nfunction commitAttachRef(finishedWork){\n  var ref=finishedWork.ref;\n\n  if(ref!==null){\n    var instance=finishedWork.stateNode;\n    var instanceToUse;\n\n    switch (finishedWork.tag){\n      case HostComponent:\n        instanceToUse=getPublicInstance(instance);\n        break;\n\n      default:\n        instanceToUse=instance;\n    } // Moved outside to ensure DCE works with this flag\n\n    if(typeof ref==='function'){\n      ref(instanceToUse);\n    }else{\n      {\n        if(!ref.hasOwnProperty('current')){\n          error('Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));\n        }\n      }\n\n      ref.current=instanceToUse;\n    }\n  }\n}\n\nfunction commitDetachRef(current){\n  var currentRef=current.ref;\n\n  if(currentRef!==null){\n    if(typeof currentRef==='function'){\n      currentRef(null);\n    }else{\n      currentRef.current=null;\n    }\n  }\n} // User-originating errors (lifecycles and refs) should not interrupt\n// deletion, so don't let them throw. Host-originating errors should\n// interrupt deletion, so it's okay\n\n\nfunction commitUnmount(finishedRoot, current, renderPriorityLevel){\n  onCommitUnmount(current);\n\n  switch (current.tag){\n    case FunctionComponent:\n    case ForwardRef:\n    case MemoComponent:\n    case SimpleMemoComponent:\n    case Block:\n      {\n        var updateQueue=current.updateQueue;\n\n        if(updateQueue!==null){\n          var lastEffect=updateQueue.lastEffect;\n\n          if(lastEffect!==null){\n            var firstEffect=lastEffect.next;\n\n            {\n              // When the owner fiber is deleted, the destroy function of a passive\n              // effect hook is called during the synchronous commit phase. This is\n              // a concession to implementation complexity. Calling it in the\n              // passive effect phase (like they usually are, when dependencies\n              // change during an update) would require either traversing the\n              // children of the deleted fiber again, or including unmount effects\n              // as part of the fiber effect list.\n              //\n              // Because this is during the sync commit phase, we need to change\n              // the priority.\n              //\n              // TODO: Reconsider this implementation trade off.\n              var priorityLevel=renderPriorityLevel > NormalPriority ? NormalPriority:renderPriorityLevel;\n              runWithPriority$1(priorityLevel, function (){\n                var effect=firstEffect;\n\n                do {\n                  var _destroy=effect.destroy;\n\n                  if(_destroy!==undefined){\n                    safelyCallDestroy(current, _destroy);\n                  }\n\n                  effect=effect.next;\n                } while (effect!==firstEffect);\n              });\n            }\n          }\n        }\n\n        return;\n      }\n\n    case ClassComponent:\n      {\n        safelyDetachRef(current);\n        var instance=current.stateNode;\n\n        if(typeof instance.componentWillUnmount==='function'){\n          safelyCallComponentWillUnmount(current, instance);\n        }\n\n        return;\n      }\n\n    case HostComponent:\n      {\n\n        safelyDetachRef(current);\n        return;\n      }\n\n    case HostPortal:\n      {\n        // TODO: this is recursive.\n        // We are also not using this parent because\n        // the portal will get pushed immediately.\n        {\n          unmountHostComponents(finishedRoot, current, renderPriorityLevel);\n        }\n\n        return;\n      }\n\n    case FundamentalComponent:\n      {\n\n        return;\n      }\n\n    case DehydratedFragment:\n      {\n\n        return;\n      }\n\n    case ScopeComponent:\n      {\n\n        return;\n      }\n  }\n}\n\nfunction commitNestedUnmounts(finishedRoot, root, renderPriorityLevel){\n  // While we're inside a removed host node we don't want to call\n  // removeChild on the inner nodes because they're removed by the top\n  // call anyway. We also want to call componentWillUnmount on all\n  // composites before this host node is removed from the tree. Therefore\n  // we do an inner loop while we're still inside the host node.\n  var node=root;\n\n  while (true){\n    commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because they may contain more composite or host nodes.\n    // Skip portals because commitUnmount() currently visits them recursively.\n\n    if(node.child!==null&&(// If we use mutation we drill down into portals using commitUnmount above.\n    // If we don't use mutation we drill down into portals here instead.\n     node.tag!==HostPortal)){\n      node.child.return=node;\n      node=node.child;\n      continue;\n    }\n\n    if(node===root){\n      return;\n    }\n\n    while (node.sibling===null){\n      if(node.return===null||node.return===root){\n        return;\n      }\n\n      node=node.return;\n    }\n\n    node.sibling.return=node.return;\n    node=node.sibling;\n  }\n}\n\nfunction detachFiber(current){\n  var alternate=current.alternate; // Cut off the return pointers to disconnect it from the tree. Ideally, we\n  // should clear the child pointer of the parent alternate to let this\n  // get GC:ed but we don't know which for sure which parent is the current\n  // one so we'll settle for GC:ing the subtree of this child. This child\n  // itself will be GC:ed when the parent updates the next time.\n\n  current.return=null;\n  current.child=null;\n  current.memoizedState=null;\n  current.updateQueue=null;\n  current.dependencies=null;\n  current.alternate=null;\n  current.firstEffect=null;\n  current.lastEffect=null;\n  current.pendingProps=null;\n  current.memoizedProps=null;\n  current.stateNode=null;\n\n  if(alternate!==null){\n    detachFiber(alternate);\n  }\n}\n\nfunction getHostParentFiber(fiber){\n  var parent=fiber.return;\n\n  while (parent!==null){\n    if(isHostParent(parent)){\n      return parent;\n    }\n\n    parent=parent.return;\n  }\n\n  {\n    {\n      throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n}\n\nfunction isHostParent(fiber){\n  return fiber.tag===HostComponent||fiber.tag===HostRoot||fiber.tag===HostPortal;\n}\n\nfunction getHostSibling(fiber){\n  // We're going to search forward into the tree until we find a sibling host\n  // node. Unfortunately, if multiple insertions are done in a row we have to\n  // search past them. This leads to exponential search for the next sibling.\n  // TODO: Find a more efficient way to do this.\n  var node=fiber;\n\n  siblings: while (true){\n    // If we didn't find anything, let's try the next sibling.\n    while (node.sibling===null){\n      if(node.return===null||isHostParent(node.return)){\n        // If we pop out of the root or hit the parent the fiber we are the\n        // last sibling.\n        return null;\n      }\n\n      node=node.return;\n    }\n\n    node.sibling.return=node.return;\n    node=node.sibling;\n\n    while (node.tag!==HostComponent&&node.tag!==HostText&&node.tag!==DehydratedFragment){\n      // If it is not host node and, we might have a host node inside it.\n      // Try to search down until we find one.\n      if(node.effectTag & Placement){\n        // If we don't have a child, try the siblings instead.\n        continue siblings;\n      } // If we don't have a child, try the siblings instead.\n      // We also skip portals because they are not part of this host tree.\n\n\n      if(node.child===null||node.tag===HostPortal){\n        continue siblings;\n      }else{\n        node.child.return=node;\n        node=node.child;\n      }\n    } // Check if this host node is stable or about to be placed.\n\n\n    if(!(node.effectTag & Placement)){\n      // Found it!\n      return node.stateNode;\n    }\n  }\n}\n\nfunction commitPlacement(finishedWork){\n\n\n  var parentFiber=getHostParentFiber(finishedWork); // Note: these two variables *must* always be updated together.\n\n  var parent;\n  var isContainer;\n  var parentStateNode=parentFiber.stateNode;\n\n  switch (parentFiber.tag){\n    case HostComponent:\n      parent=parentStateNode;\n      isContainer=false;\n      break;\n\n    case HostRoot:\n      parent=parentStateNode.containerInfo;\n      isContainer=true;\n      break;\n\n    case HostPortal:\n      parent=parentStateNode.containerInfo;\n      isContainer=true;\n      break;\n\n    case FundamentalComponent:\n\n    // eslint-disable-next-line-no-fallthrough\n\n    default:\n      {\n        {\n          throw Error(\"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.\");\n        }\n      }\n\n  }\n\n  if(parentFiber.effectTag & ContentReset){\n    // Reset the text content of the parent before doing any insertions\n    resetTextContent(parent); // Clear ContentReset from the effect tag\n\n    parentFiber.effectTag &=~ContentReset;\n  }\n\n  var before=getHostSibling(finishedWork); // We only have the top Fiber that was inserted but we need to recurse down its\n  // children to find all the terminal nodes.\n\n  if(isContainer){\n    insertOrAppendPlacementNodeIntoContainer(finishedWork, before, parent);\n  }else{\n    insertOrAppendPlacementNode(finishedWork, before, parent);\n  }\n}\n\nfunction insertOrAppendPlacementNodeIntoContainer(node, before, parent){\n  var tag=node.tag;\n  var isHost=tag===HostComponent||tag===HostText;\n\n  if(isHost||enableFundamentalAPI){\n    var stateNode=isHost ? node.stateNode:node.stateNode.instance;\n\n    if(before){\n      insertInContainerBefore(parent, stateNode, before);\n    }else{\n      appendChildToContainer(parent, stateNode);\n    }\n  }else if(tag===HostPortal) ; else {\n    var child=node.child;\n\n    if(child!==null){\n      insertOrAppendPlacementNodeIntoContainer(child, before, parent);\n      var sibling=child.sibling;\n\n      while (sibling!==null){\n        insertOrAppendPlacementNodeIntoContainer(sibling, before, parent);\n        sibling=sibling.sibling;\n      }\n    }\n  }\n}\n\nfunction insertOrAppendPlacementNode(node, before, parent){\n  var tag=node.tag;\n  var isHost=tag===HostComponent||tag===HostText;\n\n  if(isHost||enableFundamentalAPI){\n    var stateNode=isHost ? node.stateNode:node.stateNode.instance;\n\n    if(before){\n      insertBefore(parent, stateNode, before);\n    }else{\n      appendChild(parent, stateNode);\n    }\n  }else if(tag===HostPortal) ; else {\n    var child=node.child;\n\n    if(child!==null){\n      insertOrAppendPlacementNode(child, before, parent);\n      var sibling=child.sibling;\n\n      while (sibling!==null){\n        insertOrAppendPlacementNode(sibling, before, parent);\n        sibling=sibling.sibling;\n      }\n    }\n  }\n}\n\nfunction unmountHostComponents(finishedRoot, current, renderPriorityLevel){\n  // We only have the top Fiber that was deleted but we need to recurse down its\n  // children to find all the terminal nodes.\n  var node=current; // Each iteration, currentParent is populated with node's host parent if not\n  // currentParentIsValid.\n\n  var currentParentIsValid=false; // Note: these two variables *must* always be updated together.\n\n  var currentParent;\n  var currentParentIsContainer;\n\n  while (true){\n    if(!currentParentIsValid){\n      var parent=node.return;\n\n      findParent: while (true){\n        if(!(parent!==null)){\n          {\n            throw Error(\"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\");\n          }\n        }\n\n        var parentStateNode=parent.stateNode;\n\n        switch (parent.tag){\n          case HostComponent:\n            currentParent=parentStateNode;\n            currentParentIsContainer=false;\n            break findParent;\n\n          case HostRoot:\n            currentParent=parentStateNode.containerInfo;\n            currentParentIsContainer=true;\n            break findParent;\n\n          case HostPortal:\n            currentParent=parentStateNode.containerInfo;\n            currentParentIsContainer=true;\n            break findParent;\n\n        }\n\n        parent=parent.return;\n      }\n\n      currentParentIsValid=true;\n    }\n\n    if(node.tag===HostComponent||node.tag===HostText){\n      commitNestedUnmounts(finishedRoot, node, renderPriorityLevel); // After all the children have unmounted, it is now safe to remove the\n      // node from the tree.\n\n      if(currentParentIsContainer){\n        removeChildFromContainer(currentParent, node.stateNode);\n      }else{\n        removeChild(currentParent, node.stateNode);\n      } // Don't visit children because we already visited them.\n\n    }else if(node.tag===HostPortal){\n      if(node.child!==null){\n        // When we go into a portal, it becomes the parent to remove from.\n        // We will reassign it back when we pop the portal on the way up.\n        currentParent=node.stateNode.containerInfo;\n        currentParentIsContainer=true; // Visit children because portals might contain host components.\n\n        node.child.return=node;\n        node=node.child;\n        continue;\n      }\n    }else{\n      commitUnmount(finishedRoot, node, renderPriorityLevel); // Visit children because we may find more host components below.\n\n      if(node.child!==null){\n        node.child.return=node;\n        node=node.child;\n        continue;\n      }\n    }\n\n    if(node===current){\n      return;\n    }\n\n    while (node.sibling===null){\n      if(node.return===null||node.return===current){\n        return;\n      }\n\n      node=node.return;\n\n      if(node.tag===HostPortal){\n        // When we go out of the portal, we need to restore the parent.\n        // Since we don't keep a stack of them, we will search for it.\n        currentParentIsValid=false;\n      }\n    }\n\n    node.sibling.return=node.return;\n    node=node.sibling;\n  }\n}\n\nfunction commitDeletion(finishedRoot, current, renderPriorityLevel){\n  {\n    // Recursively delete all host nodes from the parent.\n    // Detach refs and call componentWillUnmount() on the whole subtree.\n    unmountHostComponents(finishedRoot, current, renderPriorityLevel);\n  }\n\n  detachFiber(current);\n}\n\nfunction commitWork(current, finishedWork){\n\n  switch (finishedWork.tag){\n    case FunctionComponent:\n    case ForwardRef:\n    case MemoComponent:\n    case SimpleMemoComponent:\n    case Block:\n      {\n        // Layout effects are destroyed during the mutation phase so that all\n        // destroy functions for all fibers are called before any create functions.\n        // This prevents sibling component effects from interfering with each other,\n        // e.g. a destroy function in one component should never override a ref set\n        // by a create function in another component during the same commit.\n        commitHookEffectListUnmount(Layout | HasEffect, finishedWork);\n        return;\n      }\n\n    case ClassComponent:\n      {\n        return;\n      }\n\n    case HostComponent:\n      {\n        var instance=finishedWork.stateNode;\n\n        if(instance!=null){\n          // Commit the work prepared earlier.\n          var newProps=finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps\n          // as the newProps. The updatePayload will contain the real change in\n          // this case.\n\n          var oldProps=current!==null ? current.memoizedProps:newProps;\n          var type=finishedWork.type; // TODO: Type the updateQueue to be specific to host components.\n\n          var updatePayload=finishedWork.updateQueue;\n          finishedWork.updateQueue=null;\n\n          if(updatePayload!==null){\n            commitUpdate(instance, updatePayload, type, oldProps, newProps);\n          }\n        }\n\n        return;\n      }\n\n    case HostText:\n      {\n        if(!(finishedWork.stateNode!==null)){\n          {\n            throw Error(\"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.\");\n          }\n        }\n\n        var textInstance=finishedWork.stateNode;\n        var newText=finishedWork.memoizedProps; // For hydration we reuse the update path but we treat the oldProps\n        // as the newProps. The updatePayload will contain the real change in\n        // this case.\n\n        var oldText=current!==null ? current.memoizedProps:newText;\n        commitTextUpdate(textInstance, oldText, newText);\n        return;\n      }\n\n    case HostRoot:\n      {\n        {\n          var _root=finishedWork.stateNode;\n\n          if(_root.hydrate){\n            // We've just hydrated. No need to hydrate again.\n            _root.hydrate=false;\n            commitHydratedContainer(_root.containerInfo);\n          }\n        }\n\n        return;\n      }\n\n    case Profiler:\n      {\n        return;\n      }\n\n    case SuspenseComponent:\n      {\n        commitSuspenseComponent(finishedWork);\n        attachSuspenseRetryListeners(finishedWork);\n        return;\n      }\n\n    case SuspenseListComponent:\n      {\n        attachSuspenseRetryListeners(finishedWork);\n        return;\n      }\n\n    case IncompleteClassComponent:\n      {\n        return;\n      }\n  }\n\n  {\n    {\n      throw Error(\"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  }\n}\n\nfunction commitSuspenseComponent(finishedWork){\n  var newState=finishedWork.memoizedState;\n  var newDidTimeout;\n  var primaryChildParent=finishedWork;\n\n  if(newState===null){\n    newDidTimeout=false;\n  }else{\n    newDidTimeout=true;\n    primaryChildParent=finishedWork.child;\n    markCommitTimeOfFallback();\n  }\n\n  if(primaryChildParent!==null){\n    hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);\n  }\n}\n\nfunction commitSuspenseHydrationCallbacks(finishedRoot, finishedWork){\n\n  var newState=finishedWork.memoizedState;\n\n  if(newState===null){\n    var current=finishedWork.alternate;\n\n    if(current!==null){\n      var prevState=current.memoizedState;\n\n      if(prevState!==null){\n        var suspenseInstance=prevState.dehydrated;\n\n        if(suspenseInstance!==null){\n          commitHydratedSuspenseInstance(suspenseInstance);\n        }\n      }\n    }\n  }\n}\n\nfunction attachSuspenseRetryListeners(finishedWork){\n  // If this boundary just timed out, then it will have a set of thenables.\n  // For each thenable, attach a listener so that when it resolves, React\n  // attempts to re-render the boundary in the primary (pre-timeout) state.\n  var thenables=finishedWork.updateQueue;\n\n  if(thenables!==null){\n    finishedWork.updateQueue=null;\n    var retryCache=finishedWork.stateNode;\n\n    if(retryCache===null){\n      retryCache=finishedWork.stateNode=new PossiblyWeakSet();\n    }\n\n    thenables.forEach(function (thenable){\n      // Memoize using the boundary fiber to prevent redundant listeners.\n      var retry=resolveRetryThenable.bind(null, finishedWork, thenable);\n\n      if(!retryCache.has(thenable)){\n        {\n          if(thenable.__reactDoNotTraceInteractions!==true){\n            retry=tracing.unstable_wrap(retry);\n          }\n        }\n\n        retryCache.add(thenable);\n        thenable.then(retry, retry);\n      }\n    });\n  }\n}\n\nfunction commitResetTextContent(current){\n\n  resetTextContent(current.stateNode);\n}\n\nvar PossiblyWeakMap$1=typeof WeakMap==='function' ? WeakMap:Map;\n\nfunction createRootErrorUpdate(fiber, errorInfo, expirationTime){\n  var update=createUpdate(expirationTime, null); // Unmount the root by rendering null.\n\n  update.tag=CaptureUpdate; // Caution: React DevTools currently depends on this property\n  // being called \"element\".\n\n  update.payload={\n    element: null\n  };\n  var error=errorInfo.value;\n\n  update.callback=function (){\n    onUncaughtError(error);\n    logError(fiber, errorInfo);\n  };\n\n  return update;\n}\n\nfunction createClassErrorUpdate(fiber, errorInfo, expirationTime){\n  var update=createUpdate(expirationTime, null);\n  update.tag=CaptureUpdate;\n  var getDerivedStateFromError=fiber.type.getDerivedStateFromError;\n\n  if(typeof getDerivedStateFromError==='function'){\n    var error$1=errorInfo.value;\n\n    update.payload=function (){\n      logError(fiber, errorInfo);\n      return getDerivedStateFromError(error$1);\n    };\n  }\n\n  var inst=fiber.stateNode;\n\n  if(inst!==null&&typeof inst.componentDidCatch==='function'){\n    update.callback=function callback(){\n      {\n        markFailedErrorBoundaryForHotReloading(fiber);\n      }\n\n      if(typeof getDerivedStateFromError!=='function'){\n        // To preserve the preexisting retry behavior of error boundaries,\n        // we keep track of which ones already failed during this batch.\n        // This gets reset before we yield back to the browser.\n        // TODO: Warn in strict mode if getDerivedStateFromError is\n        // not defined.\n        markLegacyErrorBoundaryAsFailed(this); // Only log here if componentDidCatch is the only error boundary method defined\n\n        logError(fiber, errorInfo);\n      }\n\n      var error$1=errorInfo.value;\n      var stack=errorInfo.stack;\n      this.componentDidCatch(error$1, {\n        componentStack: stack!==null ? stack:''\n      });\n\n      {\n        if(typeof getDerivedStateFromError!=='function'){\n          // If componentDidCatch is the only error boundary method defined,\n          // then it needs to call setState to recover from errors.\n          // If no state update is scheduled then the boundary will swallow the error.\n          if(fiber.expirationTime!==Sync){\n            error('%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type)||'Unknown');\n          }\n        }\n      }\n    };\n  }else{\n    update.callback=function (){\n      markFailedErrorBoundaryForHotReloading(fiber);\n    };\n  }\n\n  return update;\n}\n\nfunction attachPingListener(root, renderExpirationTime, thenable){\n  // Attach a listener to the promise to \"ping\" the root and retry. But\n  // only if one does not already exist for the current render expiration\n  // time (which acts like a \"thread ID\" here).\n  var pingCache=root.pingCache;\n  var threadIDs;\n\n  if(pingCache===null){\n    pingCache=root.pingCache=new PossiblyWeakMap$1();\n    threadIDs=new Set();\n    pingCache.set(thenable, threadIDs);\n  }else{\n    threadIDs=pingCache.get(thenable);\n\n    if(threadIDs===undefined){\n      threadIDs=new Set();\n      pingCache.set(thenable, threadIDs);\n    }\n  }\n\n  if(!threadIDs.has(renderExpirationTime)){\n    // Memoize using the thread ID to prevent redundant listeners.\n    threadIDs.add(renderExpirationTime);\n    var ping=pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);\n    thenable.then(ping, ping);\n  }\n}\n\nfunction throwException(root, returnFiber, sourceFiber, value, renderExpirationTime){\n  // The source fiber did not complete.\n  sourceFiber.effectTag |=Incomplete; // Its effect list is no longer valid.\n\n  sourceFiber.firstEffect=sourceFiber.lastEffect=null;\n\n  if(value!==null&&typeof value==='object'&&typeof value.then==='function'){\n    // This is a thenable.\n    var thenable=value;\n\n    if((sourceFiber.mode & BlockingMode)===NoMode){\n      // Reset the memoizedState to what it was before we attempted\n      // to render it.\n      var currentSource=sourceFiber.alternate;\n\n      if(currentSource){\n        sourceFiber.updateQueue=currentSource.updateQueue;\n        sourceFiber.memoizedState=currentSource.memoizedState;\n        sourceFiber.expirationTime=currentSource.expirationTime;\n      }else{\n        sourceFiber.updateQueue=null;\n        sourceFiber.memoizedState=null;\n      }\n    }\n\n    var hasInvisibleParentBoundary=hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext); // Schedule the nearest Suspense to re-render the timed out view.\n\n    var _workInProgress=returnFiber;\n\n    do {\n      if(_workInProgress.tag===SuspenseComponent&&shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)){\n        // Found the nearest boundary.\n        // Stash the promise on the boundary fiber. If the boundary times out, we'll\n        // attach another listener to flip the boundary back to its normal state.\n        var thenables=_workInProgress.updateQueue;\n\n        if(thenables===null){\n          var updateQueue=new Set();\n          updateQueue.add(thenable);\n          _workInProgress.updateQueue=updateQueue;\n        }else{\n          thenables.add(thenable);\n        } // If the boundary is outside of blocking mode, we should *not*\n        // suspend the commit. Pretend as if the suspended component rendered\n        // null and keep rendering. In the commit phase, we'll schedule a\n        // subsequent synchronous update to re-render the Suspense.\n        //\n        // Note: It doesn't matter whether the component that suspended was\n        // inside a blocking mode tree. If the Suspense is outside of it, we\n        // should *not* suspend the commit.\n\n\n        if((_workInProgress.mode & BlockingMode)===NoMode){\n          _workInProgress.effectTag |=DidCapture; // We're going to commit this fiber even though it didn't complete.\n          // But we shouldn't call any lifecycle methods or callbacks. Remove\n          // all lifecycle effect tags.\n\n          sourceFiber.effectTag &=~(LifecycleEffectMask | Incomplete);\n\n          if(sourceFiber.tag===ClassComponent){\n            var currentSourceFiber=sourceFiber.alternate;\n\n            if(currentSourceFiber===null){\n              // This is a new mount. Change the tag so it's not mistaken for a\n              // completed class component. For example, we should not call\n              // componentWillUnmount if it is deleted.\n              sourceFiber.tag=IncompleteClassComponent;\n            }else{\n              // When we try rendering again, we should not reuse the current fiber,\n              // since it's known to be in an inconsistent state. Use a force update to\n              // prevent a bail out.\n              var update=createUpdate(Sync, null);\n              update.tag=ForceUpdate;\n              enqueueUpdate(sourceFiber, update);\n            }\n          } // The source fiber did not complete. Mark it with Sync priority to\n          // indicate that it still has pending work.\n\n\n          sourceFiber.expirationTime=Sync; // Exit without suspending.\n\n          return;\n        } // Confirmed that the boundary is in a concurrent mode tree. Continue\n        // with the normal suspend path.\n        //\n        // After this we'll use a set of heuristics to determine whether this\n        // render pass will run to completion or restart or \"suspend\" the commit.\n        // The actual logic for this is spread out in different places.\n        //\n        // This first principle is that if we're going to suspend when we complete\n        // a root, then we should also restart if we get an update or ping that\n        // might unsuspend it, and vice versa. The only reason to suspend is\n        // because you think you might want to restart before committing. However,\n        // it doesn't make sense to restart only while in the period we're suspended.\n        //\n        // Restarting too aggressively is also not good because it starves out any\n        // intermediate loading state. So we use heuristics to determine when.\n        // Suspense Heuristics\n        //\n        // If nothing threw a Promise or all the same fallbacks are already showing,\n        // then don't suspend/restart.\n        //\n        // If this is an initial render of a new tree of Suspense boundaries and\n        // those trigger a fallback, then don't suspend/restart. We want to ensure\n        // that we can show the initial loading state as quickly as possible.\n        //\n        // If we hit a \"Delayed\" case, such as when we'd switch from content back into\n        // a fallback, then we should always suspend/restart. SuspenseConfig applies to\n        // this case. If none is defined, JND is used instead.\n        //\n        // If we're already showing a fallback and it gets \"retried\", allowing us to show\n        // another level, but there's still an inner boundary that would show a fallback,\n        // then we suspend/restart for 500ms since the last time we showed a fallback\n        // anywhere in the tree. This effectively throttles progressive loading into a\n        // consistent train of commits. This also gives us an opportunity to restart to\n        // get to the completed state slightly earlier.\n        //\n        // If there's ambiguity due to batching it's resolved in preference of:\n        // 1) \"delayed\", 2) \"initial render\", 3) \"retry\".\n        //\n        // We want to ensure that a \"busy\" state doesn't get force committed. We want to\n        // ensure that new initial loading states can commit as soon as possible.\n\n\n        attachPingListener(root, renderExpirationTime, thenable);\n        _workInProgress.effectTag |=ShouldCapture;\n        _workInProgress.expirationTime=renderExpirationTime;\n        return;\n      } // This boundary already captured during this render. Continue to the next\n      // boundary.\n\n\n      _workInProgress=_workInProgress.return;\n    } while (_workInProgress!==null); // No boundary was found. Fallthrough to error mode.\n    // TODO: Use invariant so the message is stripped in prod?\n\n\n    value=new Error((getComponentName(sourceFiber.type)||'A React component') + ' suspended while rendering, but no fallback UI was specified.\\n' + '\\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));\n  } // We didn't find a boundary that could handle this type of exception. Start\n  // over and traverse parent path again, this time treating the exception\n  // as an error.\n\n\n  renderDidError();\n  value=createCapturedValue(value, sourceFiber);\n  var workInProgress=returnFiber;\n\n  do {\n    switch (workInProgress.tag){\n      case HostRoot:\n        {\n          var _errorInfo=value;\n          workInProgress.effectTag |=ShouldCapture;\n          workInProgress.expirationTime=renderExpirationTime;\n\n          var _update=createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);\n\n          enqueueCapturedUpdate(workInProgress, _update);\n          return;\n        }\n\n      case ClassComponent:\n        // Capture and retry\n        var errorInfo=value;\n        var ctor=workInProgress.type;\n        var instance=workInProgress.stateNode;\n\n        if((workInProgress.effectTag & DidCapture)===NoEffect&&(typeof ctor.getDerivedStateFromError==='function'||instance!==null&&typeof instance.componentDidCatch==='function'&&!isAlreadyFailedLegacyErrorBoundary(instance))){\n          workInProgress.effectTag |=ShouldCapture;\n          workInProgress.expirationTime=renderExpirationTime; // Schedule the error boundary to re-render using updated state\n\n          var _update2=createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);\n\n          enqueueCapturedUpdate(workInProgress, _update2);\n          return;\n        }\n\n        break;\n    }\n\n    workInProgress=workInProgress.return;\n  } while (workInProgress!==null);\n}\n\nvar ceil=Math.ceil;\nvar ReactCurrentDispatcher$1=ReactSharedInternals.ReactCurrentDispatcher,\n    ReactCurrentOwner$2=ReactSharedInternals.ReactCurrentOwner,\n    IsSomeRendererActing=ReactSharedInternals.IsSomeRendererActing;\nvar NoContext=\n\n0;\nvar BatchedContext=\n\n1;\nvar EventContext=\n\n2;\nvar DiscreteEventContext=\n\n4;\nvar LegacyUnbatchedContext=\n\n8;\nvar RenderContext=\n\n16;\nvar CommitContext=\n\n32;\nvar RootIncomplete=0;\nvar RootFatalErrored=1;\nvar RootErrored=2;\nvar RootSuspended=3;\nvar RootSuspendedWithDelay=4;\nvar RootCompleted=5;\n// Describes where we are in the React execution stack\nvar executionContext=NoContext; // The root we're working on\n\nvar workInProgressRoot=null; // The fiber we're working on\n\nvar workInProgress=null; // The expiration time we're rendering\n\nvar renderExpirationTime$1=NoWork; // Whether to root completed, errored, suspended, etc.\n\nvar workInProgressRootExitStatus=RootIncomplete; // A fatal error, if one is thrown\n\nvar workInProgressRootFatalError=null; // Most recent event time among processed updates during this render.\n// This is conceptually a time stamp but expressed in terms of an ExpirationTime\n// because we deal mostly with expiration times in the hot path, so this avoids\n// the conversion happening in the hot path.\n\nvar workInProgressRootLatestProcessedExpirationTime=Sync;\nvar workInProgressRootLatestSuspenseTimeout=Sync;\nvar workInProgressRootCanSuspendUsingConfig=null; // The work left over by components that were visited during this render. Only\n// includes unprocessed updates, not work in bailed out children.\n\nvar workInProgressRootNextUnprocessedUpdateTime=NoWork; // If we're pinged while rendering we don't always restart immediately.\n// This flag determines if it might be worthwhile to restart if an opportunity\n// happens latere.\n\nvar workInProgressRootHasPendingPing=false; // The most recent time we committed a fallback. This lets us ensure a train\n// model where we don't commit new loading states in too quick succession.\n\nvar globalMostRecentFallbackTime=0;\nvar FALLBACK_THROTTLE_MS=500;\nvar nextEffect=null;\nvar hasUncaughtError=false;\nvar firstUncaughtError=null;\nvar legacyErrorBoundariesThatAlreadyFailed=null;\nvar rootDoesHavePassiveEffects=false;\nvar rootWithPendingPassiveEffects=null;\nvar pendingPassiveEffectsRenderPriority=NoPriority;\nvar pendingPassiveEffectsExpirationTime=NoWork;\nvar rootsWithPendingDiscreteUpdates=null; // Use these to prevent an infinite loop of nested updates\n\nvar NESTED_UPDATE_LIMIT=50;\nvar nestedUpdateCount=0;\nvar rootWithNestedUpdates=null;\nvar NESTED_PASSIVE_UPDATE_LIMIT=50;\nvar nestedPassiveUpdateCount=0;\nvar interruptedBy=null; // Marks the need to reschedule pending interactions at these expiration times\n// during the commit phase. This enables them to be traced across components\n// that spawn new work during render. E.g. hidden boundaries, suspended SSR\n// hydration or SuspenseList.\n\nvar spawnedWorkDuringRender=null; // Expiration times are computed by adding to the current time (the start\n// time). However, if two updates are scheduled within the same event, we\n// should treat their start times as simultaneous, even if the actual clock\n// time has advanced between the first and second call.\n// In other words, because expiration times determine how updates are batched,\n// we want all updates of like priority that occur within the same event to\n// receive the same expiration time. Otherwise we get tearing.\n\nvar currentEventTime=NoWork;\nfunction requestCurrentTimeForUpdate(){\n  if((executionContext & (RenderContext | CommitContext))!==NoContext){\n    // We're inside React, so it's fine to read the actual time.\n    return msToExpirationTime(now());\n  } // We're not inside React, so we may be in the middle of a browser event.\n\n\n  if(currentEventTime!==NoWork){\n    // Use the same start time for all updates until we enter React again.\n    return currentEventTime;\n  } // This is the first update since React yielded. Compute a new start time.\n\n\n  currentEventTime=msToExpirationTime(now());\n  return currentEventTime;\n}\nfunction getCurrentTime(){\n  return msToExpirationTime(now());\n}\nfunction computeExpirationForFiber(currentTime, fiber, suspenseConfig){\n  var mode=fiber.mode;\n\n  if((mode & BlockingMode)===NoMode){\n    return Sync;\n  }\n\n  var priorityLevel=getCurrentPriorityLevel();\n\n  if((mode & ConcurrentMode)===NoMode){\n    return priorityLevel===ImmediatePriority ? Sync:Batched;\n  }\n\n  if((executionContext & RenderContext)!==NoContext){\n    // Use whatever time we're already rendering\n    // TODO: Should there be a way to opt out, like with `runWithPriority`?\n    return renderExpirationTime$1;\n  }\n\n  var expirationTime;\n\n  if(suspenseConfig!==null){\n    // Compute an expiration time based on the Suspense timeout.\n    expirationTime=computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0||LOW_PRIORITY_EXPIRATION);\n  }else{\n    // Compute an expiration time based on the Scheduler priority.\n    switch (priorityLevel){\n      case ImmediatePriority:\n        expirationTime=Sync;\n        break;\n\n      case UserBlockingPriority$1:\n        // TODO: Rename this to computeUserBlockingExpiration\n        expirationTime=computeInteractiveExpiration(currentTime);\n        break;\n\n      case NormalPriority:\n      case LowPriority:\n        // TODO: Handle LowPriority\n        // TODO: Rename this to... something better.\n        expirationTime=computeAsyncExpiration(currentTime);\n        break;\n\n      case IdlePriority:\n        expirationTime=Idle;\n        break;\n\n      default:\n        {\n          {\n            throw Error(\"Expected a valid priority level\");\n          }\n        }\n\n    }\n  } // If we're in the middle of rendering a tree, do not update at the same\n  // expiration time that is already rendering.\n  // TODO: We shouldn't have to do this if the update is on a different root.\n  // Refactor computeExpirationForFiber + scheduleUpdate so we have access to\n  // the root when we check for this condition.\n\n\n  if(workInProgressRoot!==null&&expirationTime===renderExpirationTime$1){\n    // This is a trick to move this update into a separate batch\n    expirationTime -=1;\n  }\n\n  return expirationTime;\n}\nfunction scheduleUpdateOnFiber(fiber, expirationTime){\n  checkForNestedUpdates();\n  warnAboutRenderPhaseUpdatesInDEV(fiber);\n  var root=markUpdateTimeFromFiberToRoot(fiber, expirationTime);\n\n  if(root===null){\n    warnAboutUpdateOnUnmountedFiberInDEV(fiber);\n    return;\n  }\n\n  checkForInterruption(fiber, expirationTime);\n  recordScheduleUpdate(); // TODO: computeExpirationForFiber also reads the priority. Pass the\n  // priority as an argument to that function and this one.\n\n  var priorityLevel=getCurrentPriorityLevel();\n\n  if(expirationTime===Sync){\n    if(// Check if we're inside unbatchedUpdates\n    (executionContext & LegacyUnbatchedContext)!==NoContext&&// Check if we're not already rendering\n    (executionContext & (RenderContext | CommitContext))===NoContext){\n      // Register pending interactions on the root to avoid losing traced interaction data.\n      schedulePendingInteractions(root, expirationTime); // This is a legacy edge case. The initial mount of a ReactDOM.render-ed\n      // root inside of batchedUpdates should be synchronous, but layout updates\n      // should be deferred until the end of the batch.\n\n      performSyncWorkOnRoot(root);\n    }else{\n      ensureRootIsScheduled(root);\n      schedulePendingInteractions(root, expirationTime);\n\n      if(executionContext===NoContext){\n        // Flush the synchronous work now, unless we're already working or inside\n        // a batch. This is intentionally inside scheduleUpdateOnFiber instead of\n        // scheduleCallbackForFiber to preserve the ability to schedule a callback\n        // without immediately flushing it. We only do this for user-initiated\n        // updates, to preserve historical behavior of legacy mode.\n        flushSyncCallbackQueue();\n      }\n    }\n  }else{\n    ensureRootIsScheduled(root);\n    schedulePendingInteractions(root, expirationTime);\n  }\n\n  if((executionContext & DiscreteEventContext)!==NoContext&&(// Only updates at user-blocking priority or greater are considered\n  // discrete, even inside a discrete event.\n  priorityLevel===UserBlockingPriority$1||priorityLevel===ImmediatePriority)){\n    // This is the result of a discrete event. Track the lowest priority\n    // discrete update per root so we can flush them early, if needed.\n    if(rootsWithPendingDiscreteUpdates===null){\n      rootsWithPendingDiscreteUpdates=new Map([[root, expirationTime]]);\n    }else{\n      var lastDiscreteTime=rootsWithPendingDiscreteUpdates.get(root);\n\n      if(lastDiscreteTime===undefined||lastDiscreteTime > expirationTime){\n        rootsWithPendingDiscreteUpdates.set(root, expirationTime);\n      }\n    }\n  }\n}\nvar scheduleWork=scheduleUpdateOnFiber; // This is split into a separate function so we can mark a fiber with pending\n// work without treating it as a typical update that originates from an event;\n// e.g. retrying a Suspense boundary isn't an update, but it does schedule work\n// on a fiber.\n\nfunction markUpdateTimeFromFiberToRoot(fiber, expirationTime){\n  // Update the source fiber's expiration time\n  if(fiber.expirationTime < expirationTime){\n    fiber.expirationTime=expirationTime;\n  }\n\n  var alternate=fiber.alternate;\n\n  if(alternate!==null&&alternate.expirationTime < expirationTime){\n    alternate.expirationTime=expirationTime;\n  } // Walk the parent path to the root and update the child expiration time.\n\n\n  var node=fiber.return;\n  var root=null;\n\n  if(node===null&&fiber.tag===HostRoot){\n    root=fiber.stateNode;\n  }else{\n    while (node!==null){\n      alternate=node.alternate;\n\n      if(node.childExpirationTime < expirationTime){\n        node.childExpirationTime=expirationTime;\n\n        if(alternate!==null&&alternate.childExpirationTime < expirationTime){\n          alternate.childExpirationTime=expirationTime;\n        }\n      }else if(alternate!==null&&alternate.childExpirationTime < expirationTime){\n        alternate.childExpirationTime=expirationTime;\n      }\n\n      if(node.return===null&&node.tag===HostRoot){\n        root=node.stateNode;\n        break;\n      }\n\n      node=node.return;\n    }\n  }\n\n  if(root!==null){\n    if(workInProgressRoot===root){\n      // Received an update to a tree that's in the middle of rendering. Mark\n      // that's unprocessed work on this root.\n      markUnprocessedUpdateTime(expirationTime);\n\n      if(workInProgressRootExitStatus===RootSuspendedWithDelay){\n        // The root already suspended with a delay, which means this render\n        // definitely won't finish. Since we have a new update, let's mark it as\n        // suspended now, right before marking the incoming update. This has the\n        // effect of interrupting the current render and switching to the update.\n        // TODO: This happens to work when receiving an update during the render\n        // phase, because of the trick inside computeExpirationForFiber to\n        // subtract 1 from `renderExpirationTime` to move it into a\n        // separate bucket. But we should probably model it with an exception,\n        // using the same mechanism we use to force hydration of a subtree.\n        // TODO: This does not account for low pri updates that were already\n        // scheduled before the root started rendering. Need to track the next\n        // pending expiration time (perhaps by backtracking the return path) and\n        // then trigger a restart in the `renderDidSuspendDelayIfPossible` path.\n        markRootSuspendedAtTime(root, renderExpirationTime$1);\n      }\n    } // Mark that the root has a pending update.\n\n\n    markRootUpdatedAtTime(root, expirationTime);\n  }\n\n  return root;\n}\n\nfunction getNextRootExpirationTimeToWorkOn(root){\n  // Determines the next expiration time that the root should render, taking\n  // into account levels that may be suspended, or levels that may have\n  // received a ping.\n  var lastExpiredTime=root.lastExpiredTime;\n\n  if(lastExpiredTime!==NoWork){\n    return lastExpiredTime;\n  } // \"Pending\" refers to any update that hasn't committed yet, including if it\n  // suspended. The \"suspended\" range is therefore a subset.\n\n\n  var firstPendingTime=root.firstPendingTime;\n\n  if(!isRootSuspendedAtTime(root, firstPendingTime)){\n    // The highest priority pending time is not suspended. Let's work on that.\n    return firstPendingTime;\n  } // If the first pending time is suspended, check if there's a lower priority\n  // pending level that we know about. Or check if we received a ping. Work\n  // on whichever is higher priority.\n\n\n  var lastPingedTime=root.lastPingedTime;\n  var nextKnownPendingLevel=root.nextKnownPendingLevel;\n  var nextLevel=lastPingedTime > nextKnownPendingLevel ? lastPingedTime:nextKnownPendingLevel;\n\n  if(nextLevel <=Idle&&firstPendingTime!==nextLevel){\n    // Don't work on Idle/Never priority unless everything else is committed.\n    return NoWork;\n  }\n\n  return nextLevel;\n} // Use this function to schedule a task for a root. There's only one task per\n// root; if a task was already scheduled, we'll check to make sure the\n// expiration time of the existing task is the same as the expiration time of\n// the next level that the root has work on. This function is called on every\n// update, and right before exiting a task.\n\n\nfunction ensureRootIsScheduled(root){\n  var lastExpiredTime=root.lastExpiredTime;\n\n  if(lastExpiredTime!==NoWork){\n    // Special case: Expired work should flush synchronously.\n    root.callbackExpirationTime=Sync;\n    root.callbackPriority=ImmediatePriority;\n    root.callbackNode=scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));\n    return;\n  }\n\n  var expirationTime=getNextRootExpirationTimeToWorkOn(root);\n  var existingCallbackNode=root.callbackNode;\n\n  if(expirationTime===NoWork){\n    // There's nothing to work on.\n    if(existingCallbackNode!==null){\n      root.callbackNode=null;\n      root.callbackExpirationTime=NoWork;\n      root.callbackPriority=NoPriority;\n    }\n\n    return;\n  } // TODO: If this is an update, we already read the current time. Pass the\n  // time as an argument.\n\n\n  var currentTime=requestCurrentTimeForUpdate();\n  var priorityLevel=inferPriorityFromExpirationTime(currentTime, expirationTime); // If there's an existing render task, confirm it has the correct priority and\n  // expiration time. Otherwise, we'll cancel it and schedule a new one.\n\n  if(existingCallbackNode!==null){\n    var existingCallbackPriority=root.callbackPriority;\n    var existingCallbackExpirationTime=root.callbackExpirationTime;\n\n    if(// Callback must have the exact same expiration time.\n    existingCallbackExpirationTime===expirationTime&&// Callback must have greater or equal priority.\n    existingCallbackPriority >=priorityLevel){\n      // Existing callback is sufficient.\n      return;\n    } // Need to schedule a new task.\n    // TODO: Instead of scheduling a new task, we should be able to change the\n    // priority of the existing one.\n\n\n    cancelCallback(existingCallbackNode);\n  }\n\n  root.callbackExpirationTime=expirationTime;\n  root.callbackPriority=priorityLevel;\n  var callbackNode;\n\n  if(expirationTime===Sync){\n    // Sync React callbacks are scheduled on a special internal queue\n    callbackNode=scheduleSyncCallback(performSyncWorkOnRoot.bind(null, root));\n  }else{\n    callbackNode=scheduleCallback(priorityLevel, performConcurrentWorkOnRoot.bind(null, root), // Compute a task timeout based on the expiration time. This also affects\n    // ordering because tasks are processed in timeout order.\n    {\n      timeout: expirationTimeToMs(expirationTime) - now()\n    });\n  }\n\n  root.callbackNode=callbackNode;\n} // This is the entry point for every concurrent task, i.e. anything that\n// goes through Scheduler.\n\n\nfunction performConcurrentWorkOnRoot(root, didTimeout){\n  // Since we know we're in a React event, we can clear the current\n  // event time. The next update will compute a new event time.\n  currentEventTime=NoWork;\n\n  if(didTimeout){\n    // The render task took too long to complete. Mark the current time as\n    // expired to synchronously render all expired work in a single batch.\n    var currentTime=requestCurrentTimeForUpdate();\n    markRootExpiredAtTime(root, currentTime); // This will schedule a synchronous callback.\n\n    ensureRootIsScheduled(root);\n    return null;\n  } // Determine the next expiration time to work on, using the fields stored\n  // on the root.\n\n\n  var expirationTime=getNextRootExpirationTimeToWorkOn(root);\n\n  if(expirationTime!==NoWork){\n    var originalCallbackNode=root.callbackNode;\n\n    if(!((executionContext & (RenderContext | CommitContext))===NoContext)){\n      {\n        throw Error(\"Should not already be working.\");\n      }\n    }\n\n    flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack\n    // and prepare a fresh one. Otherwise we'll continue where we left off.\n\n    if(root!==workInProgressRoot||expirationTime!==renderExpirationTime$1){\n      prepareFreshStack(root, expirationTime);\n      startWorkOnPendingInteractions(root, expirationTime);\n    } // If we have a work-in-progress fiber, it means there's still work to do\n    // in this root.\n\n\n    if(workInProgress!==null){\n      var prevExecutionContext=executionContext;\n      executionContext |=RenderContext;\n      var prevDispatcher=pushDispatcher();\n      var prevInteractions=pushInteractions(root);\n      startWorkLoopTimer(workInProgress);\n\n      do {\n        try {\n          workLoopConcurrent();\n          break;\n        } catch (thrownValue){\n          handleError(root, thrownValue);\n        }\n      } while (true);\n\n      resetContextDependencies();\n      executionContext=prevExecutionContext;\n      popDispatcher(prevDispatcher);\n\n      {\n        popInteractions(prevInteractions);\n      }\n\n      if(workInProgressRootExitStatus===RootFatalErrored){\n        var fatalError=workInProgressRootFatalError;\n        stopInterruptedWorkLoopTimer();\n        prepareFreshStack(root, expirationTime);\n        markRootSuspendedAtTime(root, expirationTime);\n        ensureRootIsScheduled(root);\n        throw fatalError;\n      }\n\n      if(workInProgress!==null){\n        // There's still work left over. Exit without committing.\n        stopInterruptedWorkLoopTimer();\n      }else{\n        // We now have a consistent tree. The next step is either to commit it,\n        // or, if something suspended, wait to commit it after a timeout.\n        stopFinishedWorkLoopTimer();\n        var finishedWork=root.finishedWork=root.current.alternate;\n        root.finishedExpirationTime=expirationTime;\n        finishConcurrentRender(root, finishedWork, workInProgressRootExitStatus, expirationTime);\n      }\n\n      ensureRootIsScheduled(root);\n\n      if(root.callbackNode===originalCallbackNode){\n        // The task node scheduled for this root is the same one that's\n        // currently executed. Need to return a continuation.\n        return performConcurrentWorkOnRoot.bind(null, root);\n      }\n    }\n  }\n\n  return null;\n}\n\nfunction finishConcurrentRender(root, finishedWork, exitStatus, expirationTime){\n  // Set this to null to indicate there's no in-progress render.\n  workInProgressRoot=null;\n\n  switch (exitStatus){\n    case RootIncomplete:\n    case RootFatalErrored:\n      {\n        {\n          {\n            throw Error(\"Root did not complete. This is a bug in React.\");\n          }\n        }\n      }\n    // Flow knows about invariant, so it complains if I add a break\n    // statement, but eslint doesn't know about invariant, so it complains\n    // if I do. eslint-disable-next-line no-fallthrough\n\n    case RootErrored:\n      {\n        // If this was an async render, the error may have happened due to\n        // a mutation in a concurrent event. Try rendering one more time,\n        // synchronously, to see if the error goes away. If there are\n        // lower priority updates, let's include those, too, in case they\n        // fix the inconsistency. Render at Idle to include all updates.\n        // If it was Idle or Never or some not-yet-invented time, render\n        // at that time.\n        markRootExpiredAtTime(root, expirationTime > Idle ? Idle:expirationTime); // We assume that this second render pass will be synchronous\n        // and therefore not hit this path again.\n\n        break;\n      }\n\n    case RootSuspended:\n      {\n        markRootSuspendedAtTime(root, expirationTime);\n        var lastSuspendedTime=root.lastSuspendedTime;\n\n        if(expirationTime===lastSuspendedTime){\n          root.nextKnownPendingLevel=getRemainingExpirationTime(finishedWork);\n        } // We have an acceptable loading state. We need to figure out if we\n        // should immediately commit it or wait a bit.\n        // If we have processed new updates during this render, we may now\n        // have a new loading state ready. We want to ensure that we commit\n        // that as soon as possible.\n\n\n        var hasNotProcessedNewUpdates=workInProgressRootLatestProcessedExpirationTime===Sync;\n\n        if(hasNotProcessedNewUpdates&&// do not delay if we're inside an act() scope\n        !(IsThisRendererActing.current)){\n          // If we have not processed any new updates during this pass, then\n          // this is either a retry of an existing fallback state or a\n          // hidden tree. Hidden trees shouldn't be batched with other work\n          // and after that's fixed it can only be a retry. We're going to\n          // throttle committing retries so that we don't show too many\n          // loading states too quickly.\n          var msUntilTimeout=globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); // Don't bother with a very short suspense time.\n\n          if(msUntilTimeout > 10){\n            if(workInProgressRootHasPendingPing){\n              var lastPingedTime=root.lastPingedTime;\n\n              if(lastPingedTime===NoWork||lastPingedTime >=expirationTime){\n                // This render was pinged but we didn't get to restart\n                // earlier so try restarting now instead.\n                root.lastPingedTime=expirationTime;\n                prepareFreshStack(root, expirationTime);\n                break;\n              }\n            }\n\n            var nextTime=getNextRootExpirationTimeToWorkOn(root);\n\n            if(nextTime!==NoWork&&nextTime!==expirationTime){\n              // There's additional work on this root.\n              break;\n            }\n\n            if(lastSuspendedTime!==NoWork&&lastSuspendedTime!==expirationTime){\n              // We should prefer to render the fallback of at the last\n              // suspended level. Ping the last suspended level to try\n              // rendering it again.\n              root.lastPingedTime=lastSuspendedTime;\n              break;\n            } // The render is suspended, it hasn't timed out, and there's no\n            // lower priority work to do. Instead of committing the fallback\n            // immediately, wait for more data to arrive.\n\n\n            root.timeoutHandle=scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);\n            break;\n          }\n        } // The work expired. Commit immediately.\n\n\n        commitRoot(root);\n        break;\n      }\n\n    case RootSuspendedWithDelay:\n      {\n        markRootSuspendedAtTime(root, expirationTime);\n        var _lastSuspendedTime=root.lastSuspendedTime;\n\n        if(expirationTime===_lastSuspendedTime){\n          root.nextKnownPendingLevel=getRemainingExpirationTime(finishedWork);\n        }\n\n        if(// do not delay if we're inside an act() scope\n        !(IsThisRendererActing.current)){\n          // We're suspended in a state that should be avoided. We'll try to\n          // avoid committing it for as long as the timeouts let us.\n          if(workInProgressRootHasPendingPing){\n            var _lastPingedTime=root.lastPingedTime;\n\n            if(_lastPingedTime===NoWork||_lastPingedTime >=expirationTime){\n              // This render was pinged but we didn't get to restart earlier\n              // so try restarting now instead.\n              root.lastPingedTime=expirationTime;\n              prepareFreshStack(root, expirationTime);\n              break;\n            }\n          }\n\n          var _nextTime=getNextRootExpirationTimeToWorkOn(root);\n\n          if(_nextTime!==NoWork&&_nextTime!==expirationTime){\n            // There's additional work on this root.\n            break;\n          }\n\n          if(_lastSuspendedTime!==NoWork&&_lastSuspendedTime!==expirationTime){\n            // We should prefer to render the fallback of at the last\n            // suspended level. Ping the last suspended level to try\n            // rendering it again.\n            root.lastPingedTime=_lastSuspendedTime;\n            break;\n          }\n\n          var _msUntilTimeout;\n\n          if(workInProgressRootLatestSuspenseTimeout!==Sync){\n            // We have processed a suspense config whose expiration time we\n            // can use as the timeout.\n            _msUntilTimeout=expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();\n          }else if(workInProgressRootLatestProcessedExpirationTime===Sync){\n            // This should never normally happen because only new updates\n            // cause delayed states, so we should have processed something.\n            // However, this could also happen in an offscreen tree.\n            _msUntilTimeout=0;\n          }else{\n            // If we don't have a suspense config, we're going to use a\n            // heuristic to determine how long we can suspend.\n            var eventTimeMs=inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);\n            var currentTimeMs=now();\n            var timeUntilExpirationMs=expirationTimeToMs(expirationTime) - currentTimeMs;\n            var timeElapsed=currentTimeMs - eventTimeMs;\n\n            if(timeElapsed < 0){\n              // We get this wrong some time since we estimate the time.\n              timeElapsed=0;\n            }\n\n            _msUntilTimeout=jnd(timeElapsed) - timeElapsed; // Clamp the timeout to the expiration time. TODO: Once the\n            // event time is exact instead of inferred from expiration time\n            // we don't need this.\n\n            if(timeUntilExpirationMs < _msUntilTimeout){\n              _msUntilTimeout=timeUntilExpirationMs;\n            }\n          } // Don't bother with a very short suspense time.\n\n\n          if(_msUntilTimeout > 10){\n            // The render is suspended, it hasn't timed out, and there's no\n            // lower priority work to do. Instead of committing the fallback\n            // immediately, wait for more data to arrive.\n            root.timeoutHandle=scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);\n            break;\n          }\n        } // The work expired. Commit immediately.\n\n\n        commitRoot(root);\n        break;\n      }\n\n    case RootCompleted:\n      {\n        // The work completed. Ready to commit.\n        if(// do not delay if we're inside an act() scope\n        !(IsThisRendererActing.current)&&workInProgressRootLatestProcessedExpirationTime!==Sync&&workInProgressRootCanSuspendUsingConfig!==null){\n          // If we have exceeded the minimum loading delay, which probably\n          // means we have shown a spinner already, we might have to suspend\n          // a bit longer to ensure that the spinner is shown for\n          // enough time.\n          var _msUntilTimeout2=computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);\n\n          if(_msUntilTimeout2 > 10){\n            markRootSuspendedAtTime(root, expirationTime);\n            root.timeoutHandle=scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);\n            break;\n          }\n        }\n\n        commitRoot(root);\n        break;\n      }\n\n    default:\n      {\n        {\n          {\n            throw Error(\"Unknown root exit status.\");\n          }\n        }\n      }\n  }\n} // This is the entry point for synchronous tasks that don't go\n// through Scheduler\n\n\nfunction performSyncWorkOnRoot(root){\n  // Check if there's expired work on this root. Otherwise, render at Sync.\n  var lastExpiredTime=root.lastExpiredTime;\n  var expirationTime=lastExpiredTime!==NoWork ? lastExpiredTime:Sync;\n\n  if(!((executionContext & (RenderContext | CommitContext))===NoContext)){\n    {\n      throw Error(\"Should not already be working.\");\n    }\n  }\n\n  flushPassiveEffects(); // If the root or expiration time have changed, throw out the existing stack\n  // and prepare a fresh one. Otherwise we'll continue where we left off.\n\n  if(root!==workInProgressRoot||expirationTime!==renderExpirationTime$1){\n    prepareFreshStack(root, expirationTime);\n    startWorkOnPendingInteractions(root, expirationTime);\n  } // If we have a work-in-progress fiber, it means there's still work to do\n  // in this root.\n\n\n  if(workInProgress!==null){\n    var prevExecutionContext=executionContext;\n    executionContext |=RenderContext;\n    var prevDispatcher=pushDispatcher();\n    var prevInteractions=pushInteractions(root);\n    startWorkLoopTimer(workInProgress);\n\n    do {\n      try {\n        workLoopSync();\n        break;\n      } catch (thrownValue){\n        handleError(root, thrownValue);\n      }\n    } while (true);\n\n    resetContextDependencies();\n    executionContext=prevExecutionContext;\n    popDispatcher(prevDispatcher);\n\n    {\n      popInteractions(prevInteractions);\n    }\n\n    if(workInProgressRootExitStatus===RootFatalErrored){\n      var fatalError=workInProgressRootFatalError;\n      stopInterruptedWorkLoopTimer();\n      prepareFreshStack(root, expirationTime);\n      markRootSuspendedAtTime(root, expirationTime);\n      ensureRootIsScheduled(root);\n      throw fatalError;\n    }\n\n    if(workInProgress!==null){\n      // This is a sync render, so we should have finished the whole tree.\n      {\n        {\n          throw Error(\"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.\");\n        }\n      }\n    }else{\n      // We now have a consistent tree. Because this is a sync render, we\n      // will commit it even if something suspended.\n      stopFinishedWorkLoopTimer();\n      root.finishedWork=root.current.alternate;\n      root.finishedExpirationTime=expirationTime;\n      finishSyncRender(root);\n    } // Before exiting, make sure there's a callback scheduled for the next\n    // pending level.\n\n\n    ensureRootIsScheduled(root);\n  }\n\n  return null;\n}\n\nfunction finishSyncRender(root){\n  // Set this to null to indicate there's no in-progress render.\n  workInProgressRoot=null;\n  commitRoot(root);\n}\nfunction flushDiscreteUpdates(){\n  // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.\n  // However, `act` uses `batchedUpdates`, so there's no way to distinguish\n  // those two cases. Need to fix this before exposing flushDiscreteUpdates\n  // as a public API.\n  if((executionContext & (BatchedContext | RenderContext | CommitContext))!==NoContext){\n    {\n      if((executionContext & RenderContext)!==NoContext){\n        error('unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');\n      }\n    } // We're already rendering, so we can't synchronously flush pending work.\n    // This is probably a nested event dispatch triggered by a lifecycle/effect,\n    // like `el.focus()`. Exit.\n\n\n    return;\n  }\n\n  flushPendingDiscreteUpdates(); // If the discrete updates scheduled passive effects, flush them now so that\n  // they fire before the next serial event.\n\n  flushPassiveEffects();\n}\nfunction syncUpdates(fn, a, b, c){\n  return runWithPriority$1(ImmediatePriority, fn.bind(null, a, b, c));\n}\n\nfunction flushPendingDiscreteUpdates(){\n  if(rootsWithPendingDiscreteUpdates!==null){\n    // For each root with pending discrete updates, schedule a callback to\n    // immediately flush them.\n    var roots=rootsWithPendingDiscreteUpdates;\n    rootsWithPendingDiscreteUpdates=null;\n    roots.forEach(function (expirationTime, root){\n      markRootExpiredAtTime(root, expirationTime);\n      ensureRootIsScheduled(root);\n    });// Now flush the immediate queue.\n\n    flushSyncCallbackQueue();\n  }\n}\n\nfunction batchedUpdates$1(fn, a){\n  var prevExecutionContext=executionContext;\n  executionContext |=BatchedContext;\n\n  try {\n    return fn(a);\n  } finally {\n    executionContext=prevExecutionContext;\n\n    if(executionContext===NoContext){\n      // Flush the immediate callbacks that were scheduled during this batch\n      flushSyncCallbackQueue();\n    }\n  }\n}\nfunction batchedEventUpdates$1(fn, a){\n  var prevExecutionContext=executionContext;\n  executionContext |=EventContext;\n\n  try {\n    return fn(a);\n  } finally {\n    executionContext=prevExecutionContext;\n\n    if(executionContext===NoContext){\n      // Flush the immediate callbacks that were scheduled during this batch\n      flushSyncCallbackQueue();\n    }\n  }\n}\nfunction discreteUpdates$1(fn, a, b, c, d){\n  var prevExecutionContext=executionContext;\n  executionContext |=DiscreteEventContext;\n\n  try {\n    // Should this\n    return runWithPriority$1(UserBlockingPriority$1, fn.bind(null, a, b, c, d));\n  } finally {\n    executionContext=prevExecutionContext;\n\n    if(executionContext===NoContext){\n      // Flush the immediate callbacks that were scheduled during this batch\n      flushSyncCallbackQueue();\n    }\n  }\n}\nfunction unbatchedUpdates(fn, a){\n  var prevExecutionContext=executionContext;\n  executionContext &=~BatchedContext;\n  executionContext |=LegacyUnbatchedContext;\n\n  try {\n    return fn(a);\n  } finally {\n    executionContext=prevExecutionContext;\n\n    if(executionContext===NoContext){\n      // Flush the immediate callbacks that were scheduled during this batch\n      flushSyncCallbackQueue();\n    }\n  }\n}\nfunction flushSync(fn, a){\n  if((executionContext & (RenderContext | CommitContext))!==NoContext){\n    {\n      {\n        throw Error(\"flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.\");\n      }\n    }\n  }\n\n  var prevExecutionContext=executionContext;\n  executionContext |=BatchedContext;\n\n  try {\n    return runWithPriority$1(ImmediatePriority, fn.bind(null, a));\n  } finally {\n    executionContext=prevExecutionContext; // Flush the immediate callbacks that were scheduled during this batch.\n    // Note that this will happen even if batchedUpdates is higher up\n    // the stack.\n\n    flushSyncCallbackQueue();\n  }\n}\n\nfunction prepareFreshStack(root, expirationTime){\n  root.finishedWork=null;\n  root.finishedExpirationTime=NoWork;\n  var timeoutHandle=root.timeoutHandle;\n\n  if(timeoutHandle!==noTimeout){\n    // The root previous suspended and scheduled a timeout to commit a fallback\n    // state. Now that we have additional work, cancel the timeout.\n    root.timeoutHandle=noTimeout; // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above\n\n    cancelTimeout(timeoutHandle);\n  }\n\n  if(workInProgress!==null){\n    var interruptedWork=workInProgress.return;\n\n    while (interruptedWork!==null){\n      unwindInterruptedWork(interruptedWork);\n      interruptedWork=interruptedWork.return;\n    }\n  }\n\n  workInProgressRoot=root;\n  workInProgress=createWorkInProgress(root.current, null);\n  renderExpirationTime$1=expirationTime;\n  workInProgressRootExitStatus=RootIncomplete;\n  workInProgressRootFatalError=null;\n  workInProgressRootLatestProcessedExpirationTime=Sync;\n  workInProgressRootLatestSuspenseTimeout=Sync;\n  workInProgressRootCanSuspendUsingConfig=null;\n  workInProgressRootNextUnprocessedUpdateTime=NoWork;\n  workInProgressRootHasPendingPing=false;\n\n  {\n    spawnedWorkDuringRender=null;\n  }\n\n  {\n    ReactStrictModeWarnings.discardPendingWarnings();\n  }\n}\n\nfunction handleError(root, thrownValue){\n  do {\n    try {\n      // Reset module-level state that was set during the render phase.\n      resetContextDependencies();\n      resetHooksAfterThrow();\n      resetCurrentFiber();\n\n      if(workInProgress===null||workInProgress.return===null){\n        // Expected to be working on a non-root fiber. This is a fatal error\n        // because there's no ancestor that can handle it; the root is\n        // supposed to capture all errors that weren't caught by an error\n        // boundary.\n        workInProgressRootExitStatus=RootFatalErrored;\n        workInProgressRootFatalError=thrownValue; // Set `workInProgress` to null. This represents advancing to the next\n        // sibling, or the parent if there are no siblings. But since the root\n        // has no siblings nor a parent, we set it to null. Usually this is\n        // handled by `completeUnitOfWork` or `unwindWork`, but since we're\n        // interntionally not calling those, we need set it here.\n        // TODO: Consider calling `unwindWork` to pop the contexts.\n\n        workInProgress=null;\n        return null;\n      }\n\n      if(enableProfilerTimer&&workInProgress.mode & ProfileMode){\n        // Record the time spent rendering before an error was thrown. This\n        // avoids inaccurate Profiler durations in the case of a\n        // suspended render.\n        stopProfilerTimerIfRunningAndRecordDelta(workInProgress, true);\n      }\n\n      throwException(root, workInProgress.return, workInProgress, thrownValue, renderExpirationTime$1);\n      workInProgress=completeUnitOfWork(workInProgress);\n    } catch (yetAnotherThrownValue){\n      // Something in the return path also threw.\n      thrownValue=yetAnotherThrownValue;\n      continue;\n    } // Return to the normal work loop.\n\n\n    return;\n  } while (true);\n}\n\nfunction pushDispatcher(root){\n  var prevDispatcher=ReactCurrentDispatcher$1.current;\n  ReactCurrentDispatcher$1.current=ContextOnlyDispatcher;\n\n  if(prevDispatcher===null){\n    // The React isomorphic package does not include a default dispatcher.\n    // Instead the first renderer will lazily attach one, in order to give\n    // nicer error messages.\n    return ContextOnlyDispatcher;\n  }else{\n    return prevDispatcher;\n  }\n}\n\nfunction popDispatcher(prevDispatcher){\n  ReactCurrentDispatcher$1.current=prevDispatcher;\n}\n\nfunction pushInteractions(root){\n  {\n    var prevInteractions=tracing.__interactionsRef.current;\n    tracing.__interactionsRef.current=root.memoizedInteractions;\n    return prevInteractions;\n  }\n}\n\nfunction popInteractions(prevInteractions){\n  {\n    tracing.__interactionsRef.current=prevInteractions;\n  }\n}\n\nfunction markCommitTimeOfFallback(){\n  globalMostRecentFallbackTime=now();\n}\nfunction markRenderEventTimeAndConfig(expirationTime, suspenseConfig){\n  if(expirationTime < workInProgressRootLatestProcessedExpirationTime&&expirationTime > Idle){\n    workInProgressRootLatestProcessedExpirationTime=expirationTime;\n  }\n\n  if(suspenseConfig!==null){\n    if(expirationTime < workInProgressRootLatestSuspenseTimeout&&expirationTime > Idle){\n      workInProgressRootLatestSuspenseTimeout=expirationTime; // Most of the time we only have one config and getting wrong is not bad.\n\n      workInProgressRootCanSuspendUsingConfig=suspenseConfig;\n    }\n  }\n}\nfunction markUnprocessedUpdateTime(expirationTime){\n  if(expirationTime > workInProgressRootNextUnprocessedUpdateTime){\n    workInProgressRootNextUnprocessedUpdateTime=expirationTime;\n  }\n}\nfunction renderDidSuspend(){\n  if(workInProgressRootExitStatus===RootIncomplete){\n    workInProgressRootExitStatus=RootSuspended;\n  }\n}\nfunction renderDidSuspendDelayIfPossible(){\n  if(workInProgressRootExitStatus===RootIncomplete||workInProgressRootExitStatus===RootSuspended){\n    workInProgressRootExitStatus=RootSuspendedWithDelay;\n  } // Check if there's a lower priority update somewhere else in the tree.\n\n\n  if(workInProgressRootNextUnprocessedUpdateTime!==NoWork&&workInProgressRoot!==null){\n    // Mark the current render as suspended, and then mark that there's a\n    // pending update.\n    // TODO: This should immediately interrupt the current render, instead\n    // of waiting until the next time we yield.\n    markRootSuspendedAtTime(workInProgressRoot, renderExpirationTime$1);\n    markRootUpdatedAtTime(workInProgressRoot, workInProgressRootNextUnprocessedUpdateTime);\n  }\n}\nfunction renderDidError(){\n  if(workInProgressRootExitStatus!==RootCompleted){\n    workInProgressRootExitStatus=RootErrored;\n  }\n} // Called during render to determine if anything has suspended.\n// Returns false if we're not sure.\n\nfunction renderHasNotSuspendedYet(){\n  // If something errored or completed, we can't really be sure,\n  // so those are false.\n  return workInProgressRootExitStatus===RootIncomplete;\n}\n\nfunction inferTimeFromExpirationTime(expirationTime){\n  // We don't know exactly when the update was scheduled, but we can infer an\n  // approximate start time from the expiration time.\n  var earliestExpirationTimeMs=expirationTimeToMs(expirationTime);\n  return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;\n}\n\nfunction inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig){\n  // We don't know exactly when the update was scheduled, but we can infer an\n  // approximate start time from the expiration time by subtracting the timeout\n  // that was added to the event time.\n  var earliestExpirationTimeMs=expirationTimeToMs(expirationTime);\n  return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0||LOW_PRIORITY_EXPIRATION);\n} // The work loop is an extremely hot path. Tell Closure not to inline it.\n\n\n\n\nfunction workLoopSync(){\n  // Already timed out, so perform work without checking if we need to yield.\n  while (workInProgress!==null){\n    workInProgress=performUnitOfWork(workInProgress);\n  }\n}\n\n\n\nfunction workLoopConcurrent(){\n  // Perform work until Scheduler asks us to yield\n  while (workInProgress!==null&&!shouldYield()){\n    workInProgress=performUnitOfWork(workInProgress);\n  }\n}\n\nfunction performUnitOfWork(unitOfWork){\n  // The current, flushed, state of this fiber is the alternate. Ideally\n  // nothing should rely on this, but relying on it here means that we don't\n  // need an additional field on the work in progress.\n  var current=unitOfWork.alternate;\n  startWorkTimer(unitOfWork);\n  setCurrentFiber(unitOfWork);\n  var next;\n\n  if((unitOfWork.mode & ProfileMode)!==NoMode){\n    startProfilerTimer(unitOfWork);\n    next=beginWork$1(current, unitOfWork, renderExpirationTime$1);\n    stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);\n  }else{\n    next=beginWork$1(current, unitOfWork, renderExpirationTime$1);\n  }\n\n  resetCurrentFiber();\n  unitOfWork.memoizedProps=unitOfWork.pendingProps;\n\n  if(next===null){\n    // If this doesn't spawn new work, complete the current work.\n    next=completeUnitOfWork(unitOfWork);\n  }\n\n  ReactCurrentOwner$2.current=null;\n  return next;\n}\n\nfunction completeUnitOfWork(unitOfWork){\n  // Attempt to complete the current unit of work, then move to the next\n  // sibling. If there are no more siblings, return to the parent fiber.\n  workInProgress=unitOfWork;\n\n  do {\n    // The current, flushed, state of this fiber is the alternate. Ideally\n    // nothing should rely on this, but relying on it here means that we don't\n    // need an additional field on the work in progress.\n    var current=workInProgress.alternate;\n    var returnFiber=workInProgress.return; // Check if the work completed or if something threw.\n\n    if((workInProgress.effectTag & Incomplete)===NoEffect){\n      setCurrentFiber(workInProgress);\n      var next=void 0;\n\n      if((workInProgress.mode & ProfileMode)===NoMode){\n        next=completeWork(current, workInProgress, renderExpirationTime$1);\n      }else{\n        startProfilerTimer(workInProgress);\n        next=completeWork(current, workInProgress, renderExpirationTime$1); // Update render duration assuming we didn't error.\n\n        stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);\n      }\n\n      stopWorkTimer(workInProgress);\n      resetCurrentFiber();\n      resetChildExpirationTime(workInProgress);\n\n      if(next!==null){\n        // Completing this fiber spawned new work. Work on that next.\n        return next;\n      }\n\n      if(returnFiber!==null&&// Do not append effects to parents if a sibling failed to complete\n      (returnFiber.effectTag & Incomplete)===NoEffect){\n        // Append all the effects of the subtree and this fiber onto the effect\n        // list of the parent. The completion order of the children affects the\n        // side-effect order.\n        if(returnFiber.firstEffect===null){\n          returnFiber.firstEffect=workInProgress.firstEffect;\n        }\n\n        if(workInProgress.lastEffect!==null){\n          if(returnFiber.lastEffect!==null){\n            returnFiber.lastEffect.nextEffect=workInProgress.firstEffect;\n          }\n\n          returnFiber.lastEffect=workInProgress.lastEffect;\n        } // If this fiber had side-effects, we append it AFTER the children's\n        // side-effects. We can perform certain side-effects earlier if needed,\n        // by doing multiple passes over the effect list. We don't want to\n        // schedule our own side-effect on our own list because if end up\n        // reusing children we'll schedule this effect onto itself since we're\n        // at the end.\n\n\n        var effectTag=workInProgress.effectTag; // Skip both NoWork and PerformedWork tags when creating the effect\n        // list. PerformedWork effect is read by React DevTools but shouldn't be\n        // committed.\n\n        if(effectTag > PerformedWork){\n          if(returnFiber.lastEffect!==null){\n            returnFiber.lastEffect.nextEffect=workInProgress;\n          }else{\n            returnFiber.firstEffect=workInProgress;\n          }\n\n          returnFiber.lastEffect=workInProgress;\n        }\n      }\n    }else{\n      // This fiber did not complete because something threw. Pop values off\n      // the stack without entering the complete phase. If this is a boundary,\n      // capture values if possible.\n      var _next=unwindWork(workInProgress); // Because this fiber did not complete, don't reset its expiration time.\n\n\n      if((workInProgress.mode & ProfileMode)!==NoMode){\n        // Record the render duration for the fiber that errored.\n        stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false); // Include the time spent working on failed children before continuing.\n\n        var actualDuration=workInProgress.actualDuration;\n        var child=workInProgress.child;\n\n        while (child!==null){\n          actualDuration +=child.actualDuration;\n          child=child.sibling;\n        }\n\n        workInProgress.actualDuration=actualDuration;\n      }\n\n      if(_next!==null){\n        // If completing this work spawned new work, do that next. We'll come\n        // back here again.\n        // Since we're restarting, remove anything that is not a host effect\n        // from the effect tag.\n        // TODO: The name stopFailedWorkTimer is misleading because Suspense\n        // also captures and restarts.\n        stopFailedWorkTimer(workInProgress);\n        _next.effectTag &=HostEffectMask;\n        return _next;\n      }\n\n      stopWorkTimer(workInProgress);\n\n      if(returnFiber!==null){\n        // Mark the parent fiber as incomplete and clear its effect list.\n        returnFiber.firstEffect=returnFiber.lastEffect=null;\n        returnFiber.effectTag |=Incomplete;\n      }\n    }\n\n    var siblingFiber=workInProgress.sibling;\n\n    if(siblingFiber!==null){\n      // If there is more work to do in this returnFiber, do that next.\n      return siblingFiber;\n    } // Otherwise, return to the parent\n\n\n    workInProgress=returnFiber;\n  } while (workInProgress!==null); // We've reached the root.\n\n\n  if(workInProgressRootExitStatus===RootIncomplete){\n    workInProgressRootExitStatus=RootCompleted;\n  }\n\n  return null;\n}\n\nfunction getRemainingExpirationTime(fiber){\n  var updateExpirationTime=fiber.expirationTime;\n  var childExpirationTime=fiber.childExpirationTime;\n  return updateExpirationTime > childExpirationTime ? updateExpirationTime:childExpirationTime;\n}\n\nfunction resetChildExpirationTime(completedWork){\n  if(renderExpirationTime$1!==Never&&completedWork.childExpirationTime===Never){\n    // The children of this component are hidden. Don't bubble their\n    // expiration times.\n    return;\n  }\n\n  var newChildExpirationTime=NoWork; // Bubble up the earliest expiration time.\n\n  if((completedWork.mode & ProfileMode)!==NoMode){\n    // In profiling mode, resetChildExpirationTime is also used to reset\n    // profiler durations.\n    var actualDuration=completedWork.actualDuration;\n    var treeBaseDuration=completedWork.selfBaseDuration; // When a fiber is cloned, its actualDuration is reset to 0. This value will\n    // only be updated if work is done on the fiber (i.e. it doesn't bailout).\n    // When work is done, it should bubble to the parent's actualDuration. If\n    // the fiber has not been cloned though, (meaning no work was done), then\n    // this value will reflect the amount of time spent working on a previous\n    // render. In that case it should not bubble. We determine whether it was\n    // cloned by comparing the child pointer.\n\n    var shouldBubbleActualDurations=completedWork.alternate===null||completedWork.child!==completedWork.alternate.child;\n    var child=completedWork.child;\n\n    while (child!==null){\n      var childUpdateExpirationTime=child.expirationTime;\n      var childChildExpirationTime=child.childExpirationTime;\n\n      if(childUpdateExpirationTime > newChildExpirationTime){\n        newChildExpirationTime=childUpdateExpirationTime;\n      }\n\n      if(childChildExpirationTime > newChildExpirationTime){\n        newChildExpirationTime=childChildExpirationTime;\n      }\n\n      if(shouldBubbleActualDurations){\n        actualDuration +=child.actualDuration;\n      }\n\n      treeBaseDuration +=child.treeBaseDuration;\n      child=child.sibling;\n    }\n\n    completedWork.actualDuration=actualDuration;\n    completedWork.treeBaseDuration=treeBaseDuration;\n  }else{\n    var _child=completedWork.child;\n\n    while (_child!==null){\n      var _childUpdateExpirationTime=_child.expirationTime;\n      var _childChildExpirationTime=_child.childExpirationTime;\n\n      if(_childUpdateExpirationTime > newChildExpirationTime){\n        newChildExpirationTime=_childUpdateExpirationTime;\n      }\n\n      if(_childChildExpirationTime > newChildExpirationTime){\n        newChildExpirationTime=_childChildExpirationTime;\n      }\n\n      _child=_child.sibling;\n    }\n  }\n\n  completedWork.childExpirationTime=newChildExpirationTime;\n}\n\nfunction commitRoot(root){\n  var renderPriorityLevel=getCurrentPriorityLevel();\n  runWithPriority$1(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));\n  return null;\n}\n\nfunction commitRootImpl(root, renderPriorityLevel){\n  do {\n    // `flushPassiveEffects` will call `flushSyncUpdateQueue` at the end, which\n    // means `flushPassiveEffects` will sometimes result in additional\n    // passive effects. So we need to keep flushing in a loop until there are\n    // no more pending effects.\n    // TODO: Might be better if `flushPassiveEffects` did not automatically\n    // flush synchronous work at the end, to avoid factoring hazards like this.\n    flushPassiveEffects();\n  } while (rootWithPendingPassiveEffects!==null);\n\n  flushRenderPhaseStrictModeWarningsInDEV();\n\n  if(!((executionContext & (RenderContext | CommitContext))===NoContext)){\n    {\n      throw Error(\"Should not already be working.\");\n    }\n  }\n\n  var finishedWork=root.finishedWork;\n  var expirationTime=root.finishedExpirationTime;\n\n  if(finishedWork===null){\n    return null;\n  }\n\n  root.finishedWork=null;\n  root.finishedExpirationTime=NoWork;\n\n  if(!(finishedWork!==root.current)){\n    {\n      throw Error(\"Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.\");\n    }\n  } // commitRoot never returns a continuation; it always finishes synchronously.\n  // So we can clear these now to allow a new callback to be scheduled.\n\n\n  root.callbackNode=null;\n  root.callbackExpirationTime=NoWork;\n  root.callbackPriority=NoPriority;\n  root.nextKnownPendingLevel=NoWork;\n  startCommitTimer(); // Update the first and last pending times on this root. The new first\n  // pending time is whatever is left on the root fiber.\n\n  var remainingExpirationTimeBeforeCommit=getRemainingExpirationTime(finishedWork);\n  markRootFinishedAtTime(root, expirationTime, remainingExpirationTimeBeforeCommit);\n\n  if(root===workInProgressRoot){\n    // We can reset these now that they are finished.\n    workInProgressRoot=null;\n    workInProgress=null;\n    renderExpirationTime$1=NoWork;\n  } // This indicates that the last root we worked on is not the same one that\n  // we're committing now. This most commonly happens when a suspended root\n  // times out.\n  // Get the list of effects.\n\n\n  var firstEffect;\n\n  if(finishedWork.effectTag > PerformedWork){\n    // A fiber's effect list consists only of its children, not itself. So if\n    // the root has an effect, we need to add it to the end of the list. The\n    // resulting list is the set that would belong to the root's parent, if it\n    // had one; that is, all the effects in the tree including the root.\n    if(finishedWork.lastEffect!==null){\n      finishedWork.lastEffect.nextEffect=finishedWork;\n      firstEffect=finishedWork.firstEffect;\n    }else{\n      firstEffect=finishedWork;\n    }\n  }else{\n    // There is no effect on the root.\n    firstEffect=finishedWork.firstEffect;\n  }\n\n  if(firstEffect!==null){\n    var prevExecutionContext=executionContext;\n    executionContext |=CommitContext;\n    var prevInteractions=pushInteractions(root); // Reset this to null before calling lifecycles\n\n    ReactCurrentOwner$2.current=null; // The commit phase is broken into several sub-phases. We do a separate pass\n    // of the effect list for each phase: all mutation effects come before all\n    // layout effects, and so on.\n    // The first phase a \"before mutation\" phase. We use this phase to read the\n    // state of the host tree right before we mutate it. This is where\n    // getSnapshotBeforeUpdate is called.\n\n    startCommitSnapshotEffectsTimer();\n    prepareForCommit(root.containerInfo);\n    nextEffect=firstEffect;\n\n    do {\n      {\n        invokeGuardedCallback(null, commitBeforeMutationEffects, null);\n\n        if(hasCaughtError()){\n          if(!(nextEffect!==null)){\n            {\n              throw Error(\"Should be working on an effect.\");\n            }\n          }\n\n          var error=clearCaughtError();\n          captureCommitPhaseError(nextEffect, error);\n          nextEffect=nextEffect.nextEffect;\n        }\n      }\n    } while (nextEffect!==null);\n\n    stopCommitSnapshotEffectsTimer();\n\n    {\n      // Mark the current commit time to be shared by all Profilers in this\n      // batch. This enables them to be grouped later.\n      recordCommitTime();\n    } // The next phase is the mutation phase, where we mutate the host tree.\n\n\n    startCommitHostEffectsTimer();\n    nextEffect=firstEffect;\n\n    do {\n      {\n        invokeGuardedCallback(null, commitMutationEffects, null, root, renderPriorityLevel);\n\n        if(hasCaughtError()){\n          if(!(nextEffect!==null)){\n            {\n              throw Error(\"Should be working on an effect.\");\n            }\n          }\n\n          var _error=clearCaughtError();\n\n          captureCommitPhaseError(nextEffect, _error);\n          nextEffect=nextEffect.nextEffect;\n        }\n      }\n    } while (nextEffect!==null);\n\n    stopCommitHostEffectsTimer();\n    resetAfterCommit(root.containerInfo); // The work-in-progress tree is now the current tree. This must come after\n    // the mutation phase, so that the previous tree is still current during\n    // componentWillUnmount, but before the layout phase, so that the finished\n    // work is current during componentDidMount/Update.\n\n    root.current=finishedWork; // The next phase is the layout phase, where we call effects that read\n    // the host tree after it's been mutated. The idiomatic use case for this is\n    // layout, but class component lifecycles also fire here for legacy reasons.\n\n    startCommitLifeCyclesTimer();\n    nextEffect=firstEffect;\n\n    do {\n      {\n        invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);\n\n        if(hasCaughtError()){\n          if(!(nextEffect!==null)){\n            {\n              throw Error(\"Should be working on an effect.\");\n            }\n          }\n\n          var _error2=clearCaughtError();\n\n          captureCommitPhaseError(nextEffect, _error2);\n          nextEffect=nextEffect.nextEffect;\n        }\n      }\n    } while (nextEffect!==null);\n\n    stopCommitLifeCyclesTimer();\n    nextEffect=null; // Tell Scheduler to yield at the end of the frame, so the browser has an\n    // opportunity to paint.\n\n    requestPaint();\n\n    {\n      popInteractions(prevInteractions);\n    }\n\n    executionContext=prevExecutionContext;\n  }else{\n    // No effects.\n    root.current=finishedWork; // Measure these anyway so the flamegraph explicitly shows that there were\n    // no effects.\n    // TODO: Maybe there's a better way to report this.\n\n    startCommitSnapshotEffectsTimer();\n    stopCommitSnapshotEffectsTimer();\n\n    {\n      recordCommitTime();\n    }\n\n    startCommitHostEffectsTimer();\n    stopCommitHostEffectsTimer();\n    startCommitLifeCyclesTimer();\n    stopCommitLifeCyclesTimer();\n  }\n\n  stopCommitTimer();\n  var rootDidHavePassiveEffects=rootDoesHavePassiveEffects;\n\n  if(rootDoesHavePassiveEffects){\n    // This commit has passive effects. Stash a reference to them. But don't\n    // schedule a callback until after flushing layout work.\n    rootDoesHavePassiveEffects=false;\n    rootWithPendingPassiveEffects=root;\n    pendingPassiveEffectsExpirationTime=expirationTime;\n    pendingPassiveEffectsRenderPriority=renderPriorityLevel;\n  }else{\n    // We are done with the effect chain at this point so let's clear the\n    // nextEffect pointers to assist with GC. If we have passive effects, we'll\n    // clear this in flushPassiveEffects.\n    nextEffect=firstEffect;\n\n    while (nextEffect!==null){\n      var nextNextEffect=nextEffect.nextEffect;\n      nextEffect.nextEffect=null;\n      nextEffect=nextNextEffect;\n    }\n  } // Check if there's remaining work on this root\n\n\n  var remainingExpirationTime=root.firstPendingTime;\n\n  if(remainingExpirationTime!==NoWork){\n    {\n      if(spawnedWorkDuringRender!==null){\n        var expirationTimes=spawnedWorkDuringRender;\n        spawnedWorkDuringRender=null;\n\n        for (var i=0; i < expirationTimes.length; i++){\n          scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);\n        }\n      }\n\n      schedulePendingInteractions(root, remainingExpirationTime);\n    }\n  }else{\n    // If there's no remaining work, we can clear the set of already failed\n    // error boundaries.\n    legacyErrorBoundariesThatAlreadyFailed=null;\n  }\n\n  {\n    if(!rootDidHavePassiveEffects){\n      // If there are no passive effects, then we can complete the pending interactions.\n      // Otherwise, we'll wait until after the passive effects are flushed.\n      // Wait to do this until after remaining work has been scheduled,\n      // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.\n      finishPendingInteractions(root, expirationTime);\n    }\n  }\n\n  if(remainingExpirationTime===Sync){\n    // Count the number of times the root synchronously re-renders without\n    // finishing. If there are too many, it indicates an infinite update loop.\n    if(root===rootWithNestedUpdates){\n      nestedUpdateCount++;\n    }else{\n      nestedUpdateCount=0;\n      rootWithNestedUpdates=root;\n    }\n  }else{\n    nestedUpdateCount=0;\n  }\n\n  onCommitRoot(finishedWork.stateNode, expirationTime); // Always call this before exiting `commitRoot`, to ensure that any\n  // additional work on this root is scheduled.\n\n  ensureRootIsScheduled(root);\n\n  if(hasUncaughtError){\n    hasUncaughtError=false;\n    var _error3=firstUncaughtError;\n    firstUncaughtError=null;\n    throw _error3;\n  }\n\n  if((executionContext & LegacyUnbatchedContext)!==NoContext){\n    // This is a legacy edge case. We just committed the initial mount of\n    // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired\n    // synchronously, but layout updates should be deferred until the end\n    // of the batch.\n    return null;\n  } // If layout work was scheduled, flush it now.\n\n\n  flushSyncCallbackQueue();\n  return null;\n}\n\nfunction commitBeforeMutationEffects(){\n  while (nextEffect!==null){\n    var effectTag=nextEffect.effectTag;\n\n    if((effectTag & Snapshot)!==NoEffect){\n      setCurrentFiber(nextEffect);\n      recordEffect();\n      var current=nextEffect.alternate;\n      commitBeforeMutationLifeCycles(current, nextEffect);\n      resetCurrentFiber();\n    }\n\n    if((effectTag & Passive)!==NoEffect){\n      // If there are passive effects, schedule a callback to flush at\n      // the earliest opportunity.\n      if(!rootDoesHavePassiveEffects){\n        rootDoesHavePassiveEffects=true;\n        scheduleCallback(NormalPriority, function (){\n          flushPassiveEffects();\n          return null;\n        });\n      }\n    }\n\n    nextEffect=nextEffect.nextEffect;\n  }\n}\n\nfunction commitMutationEffects(root, renderPriorityLevel){\n  // TODO: Should probably move the bulk of this function to commitWork.\n  while (nextEffect!==null){\n    setCurrentFiber(nextEffect);\n    var effectTag=nextEffect.effectTag;\n\n    if(effectTag & ContentReset){\n      commitResetTextContent(nextEffect);\n    }\n\n    if(effectTag & Ref){\n      var current=nextEffect.alternate;\n\n      if(current!==null){\n        commitDetachRef(current);\n      }\n    } // The following switch statement is only concerned about placement,\n    // updates, and deletions. To avoid needing to add a case for every possible\n    // bitmap value, we remove the secondary effects from the effect tag and\n    // switch on that value.\n\n\n    var primaryEffectTag=effectTag & (Placement | Update | Deletion | Hydrating);\n\n    switch (primaryEffectTag){\n      case Placement:\n        {\n          commitPlacement(nextEffect); // Clear the \"placement\" from effect tag so that we know that this is\n          // inserted, before any life-cycles like componentDidMount gets called.\n          // TODO: findDOMNode doesn't rely on this any more but isMounted does\n          // and isMounted is deprecated anyway so we should be able to kill this.\n\n          nextEffect.effectTag &=~Placement;\n          break;\n        }\n\n      case PlacementAndUpdate:\n        {\n          // Placement\n          commitPlacement(nextEffect); // Clear the \"placement\" from effect tag so that we know that this is\n          // inserted, before any life-cycles like componentDidMount gets called.\n\n          nextEffect.effectTag &=~Placement; // Update\n\n          var _current=nextEffect.alternate;\n          commitWork(_current, nextEffect);\n          break;\n        }\n\n      case Hydrating:\n        {\n          nextEffect.effectTag &=~Hydrating;\n          break;\n        }\n\n      case HydratingAndUpdate:\n        {\n          nextEffect.effectTag &=~Hydrating; // Update\n\n          var _current2=nextEffect.alternate;\n          commitWork(_current2, nextEffect);\n          break;\n        }\n\n      case Update:\n        {\n          var _current3=nextEffect.alternate;\n          commitWork(_current3, nextEffect);\n          break;\n        }\n\n      case Deletion:\n        {\n          commitDeletion(root, nextEffect, renderPriorityLevel);\n          break;\n        }\n    } // TODO: Only record a mutation effect if primaryEffectTag is non-zero.\n\n\n    recordEffect();\n    resetCurrentFiber();\n    nextEffect=nextEffect.nextEffect;\n  }\n}\n\nfunction commitLayoutEffects(root, committedExpirationTime){\n  // TODO: Should probably move the bulk of this function to commitWork.\n  while (nextEffect!==null){\n    setCurrentFiber(nextEffect);\n    var effectTag=nextEffect.effectTag;\n\n    if(effectTag & (Update | Callback)){\n      recordEffect();\n      var current=nextEffect.alternate;\n      commitLifeCycles(root, current, nextEffect);\n    }\n\n    if(effectTag & Ref){\n      recordEffect();\n      commitAttachRef(nextEffect);\n    }\n\n    resetCurrentFiber();\n    nextEffect=nextEffect.nextEffect;\n  }\n}\n\nfunction flushPassiveEffects(){\n  if(pendingPassiveEffectsRenderPriority!==NoPriority){\n    var priorityLevel=pendingPassiveEffectsRenderPriority > NormalPriority ? NormalPriority:pendingPassiveEffectsRenderPriority;\n    pendingPassiveEffectsRenderPriority=NoPriority;\n    return runWithPriority$1(priorityLevel, flushPassiveEffectsImpl);\n  }\n}\n\nfunction flushPassiveEffectsImpl(){\n  if(rootWithPendingPassiveEffects===null){\n    return false;\n  }\n\n  var root=rootWithPendingPassiveEffects;\n  var expirationTime=pendingPassiveEffectsExpirationTime;\n  rootWithPendingPassiveEffects=null;\n  pendingPassiveEffectsExpirationTime=NoWork;\n\n  if(!((executionContext & (RenderContext | CommitContext))===NoContext)){\n    {\n      throw Error(\"Cannot flush passive effects while already rendering.\");\n    }\n  }\n\n  var prevExecutionContext=executionContext;\n  executionContext |=CommitContext;\n  var prevInteractions=pushInteractions(root);\n\n  {\n    // Note: This currently assumes there are no passive effects on the root fiber\n    // because the root is not part of its own effect list.\n    // This could change in the future.\n    var _effect2=root.current.firstEffect;\n\n    while (_effect2!==null){\n      {\n        setCurrentFiber(_effect2);\n        invokeGuardedCallback(null, commitPassiveHookEffects, null, _effect2);\n\n        if(hasCaughtError()){\n          if(!(_effect2!==null)){\n            {\n              throw Error(\"Should be working on an effect.\");\n            }\n          }\n\n          var _error5=clearCaughtError();\n\n          captureCommitPhaseError(_effect2, _error5);\n        }\n\n        resetCurrentFiber();\n      }\n\n      var nextNextEffect=_effect2.nextEffect; // Remove nextEffect pointer to assist GC\n\n      _effect2.nextEffect=null;\n      _effect2=nextNextEffect;\n    }\n  }\n\n  {\n    popInteractions(prevInteractions);\n    finishPendingInteractions(root, expirationTime);\n  }\n\n  executionContext=prevExecutionContext;\n  flushSyncCallbackQueue(); // If additional passive effects were scheduled, increment a counter. If this\n  // exceeds the limit, we'll fire a warning.\n\n  nestedPassiveUpdateCount=rootWithPendingPassiveEffects===null ? 0:nestedPassiveUpdateCount + 1;\n  return true;\n}\n\nfunction isAlreadyFailedLegacyErrorBoundary(instance){\n  return legacyErrorBoundariesThatAlreadyFailed!==null&&legacyErrorBoundariesThatAlreadyFailed.has(instance);\n}\nfunction markLegacyErrorBoundaryAsFailed(instance){\n  if(legacyErrorBoundariesThatAlreadyFailed===null){\n    legacyErrorBoundariesThatAlreadyFailed=new Set([instance]);\n  }else{\n    legacyErrorBoundariesThatAlreadyFailed.add(instance);\n  }\n}\n\nfunction prepareToThrowUncaughtError(error){\n  if(!hasUncaughtError){\n    hasUncaughtError=true;\n    firstUncaughtError=error;\n  }\n}\n\nvar onUncaughtError=prepareToThrowUncaughtError;\n\nfunction captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error){\n  var errorInfo=createCapturedValue(error, sourceFiber);\n  var update=createRootErrorUpdate(rootFiber, errorInfo, Sync);\n  enqueueUpdate(rootFiber, update);\n  var root=markUpdateTimeFromFiberToRoot(rootFiber, Sync);\n\n  if(root!==null){\n    ensureRootIsScheduled(root);\n    schedulePendingInteractions(root, Sync);\n  }\n}\n\nfunction captureCommitPhaseError(sourceFiber, error){\n  if(sourceFiber.tag===HostRoot){\n    // Error was thrown at the root. There is no parent, so the root\n    // itself should capture it.\n    captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);\n    return;\n  }\n\n  var fiber=sourceFiber.return;\n\n  while (fiber!==null){\n    if(fiber.tag===HostRoot){\n      captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);\n      return;\n    }else if(fiber.tag===ClassComponent){\n      var ctor=fiber.type;\n      var instance=fiber.stateNode;\n\n      if(typeof ctor.getDerivedStateFromError==='function'||typeof instance.componentDidCatch==='function'&&!isAlreadyFailedLegacyErrorBoundary(instance)){\n        var errorInfo=createCapturedValue(error, sourceFiber);\n        var update=createClassErrorUpdate(fiber, errorInfo, // TODO: This is always sync\n        Sync);\n        enqueueUpdate(fiber, update);\n        var root=markUpdateTimeFromFiberToRoot(fiber, Sync);\n\n        if(root!==null){\n          ensureRootIsScheduled(root);\n          schedulePendingInteractions(root, Sync);\n        }\n\n        return;\n      }\n    }\n\n    fiber=fiber.return;\n  }\n}\nfunction pingSuspendedRoot(root, thenable, suspendedTime){\n  var pingCache=root.pingCache;\n\n  if(pingCache!==null){\n    // The thenable resolved, so we no longer need to memoize, because it will\n    // never be thrown again.\n    pingCache.delete(thenable);\n  }\n\n  if(workInProgressRoot===root&&renderExpirationTime$1===suspendedTime){\n    // Received a ping at the same priority level at which we're currently\n    // rendering. We might want to restart this render. This should mirror\n    // the logic of whether or not a root suspends once it completes.\n    // TODO: If we're rendering sync either due to Sync, Batched or expired,\n    // we should probably never restart.\n    // If we're suspended with delay, we'll always suspend so we can always\n    // restart. If we're suspended without any updates, it might be a retry.\n    // If it's early in the retry we can restart. We can't know for sure\n    // whether we'll eventually process an update during this render pass,\n    // but it's somewhat unlikely that we get to a ping before that, since\n    // getting to the root most update is usually very fast.\n    if(workInProgressRootExitStatus===RootSuspendedWithDelay||workInProgressRootExitStatus===RootSuspended&&workInProgressRootLatestProcessedExpirationTime===Sync&&now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS){\n      // Restart from the root. Don't need to schedule a ping because\n      // we're already working on this tree.\n      prepareFreshStack(root, renderExpirationTime$1);\n    }else{\n      // Even though we can't restart right now, we might get an\n      // opportunity later. So we mark this render as having a ping.\n      workInProgressRootHasPendingPing=true;\n    }\n\n    return;\n  }\n\n  if(!isRootSuspendedAtTime(root, suspendedTime)){\n    // The root is no longer suspended at this time.\n    return;\n  }\n\n  var lastPingedTime=root.lastPingedTime;\n\n  if(lastPingedTime!==NoWork&&lastPingedTime < suspendedTime){\n    // There's already a lower priority ping scheduled.\n    return;\n  } // Mark the time at which this ping was scheduled.\n\n\n  root.lastPingedTime=suspendedTime;\n\n  ensureRootIsScheduled(root);\n  schedulePendingInteractions(root, suspendedTime);\n}\n\nfunction retryTimedOutBoundary(boundaryFiber, retryTime){\n  // The boundary fiber (a Suspense component or SuspenseList component)\n  // previously was rendered in its fallback state. One of the promises that\n  // suspended it has resolved, which means at least part of the tree was\n  // likely unblocked. Try rendering again, at a new expiration time.\n  if(retryTime===NoWork){\n    var suspenseConfig=null; // Retries don't carry over the already committed update.\n\n    var currentTime=requestCurrentTimeForUpdate();\n    retryTime=computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);\n  } // TODO: Special case idle priority?\n\n\n  var root=markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);\n\n  if(root!==null){\n    ensureRootIsScheduled(root);\n    schedulePendingInteractions(root, retryTime);\n  }\n}\nfunction resolveRetryThenable(boundaryFiber, thenable){\n  var retryTime=NoWork; // Default\n\n  var retryCache;\n\n  {\n    retryCache=boundaryFiber.stateNode;\n  }\n\n  if(retryCache!==null){\n    // The thenable resolved, so we no longer need to memoize, because it will\n    // never be thrown again.\n    retryCache.delete(thenable);\n  }\n\n  retryTimedOutBoundary(boundaryFiber, retryTime);\n} // Computes the next Just Noticeable Difference (JND) boundary.\n// The theory is that a person can't tell the difference between small differences in time.\n// Therefore, if we wait a bit longer than necessary that won't translate to a noticeable\n// difference in the experience. However, waiting for longer might mean that we can avoid\n// showing an intermediate loading state. The longer we have already waited, the harder it\n// is to tell small differences in time. Therefore, the longer we've already waited,\n// the longer we can wait additionally. At some point we have to give up though.\n// We pick a train model where the next boundary commits at a consistent schedule.\n// These particular numbers are vague estimates. We expect to adjust them based on research.\n\nfunction jnd(timeElapsed){\n  return timeElapsed < 120 ? 120:timeElapsed < 480 ? 480:timeElapsed < 1080 ? 1080:timeElapsed < 1920 ? 1920:timeElapsed < 3000 ? 3000:timeElapsed < 4320 ? 4320:ceil(timeElapsed / 1960) * 1960;\n}\n\nfunction computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig){\n  var busyMinDurationMs=suspenseConfig.busyMinDurationMs | 0;\n\n  if(busyMinDurationMs <=0){\n    return 0;\n  }\n\n  var busyDelayMs=suspenseConfig.busyDelayMs | 0; // Compute the time until this render pass would expire.\n\n  var currentTimeMs=now();\n  var eventTimeMs=inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);\n  var timeElapsed=currentTimeMs - eventTimeMs;\n\n  if(timeElapsed <=busyDelayMs){\n    // If we haven't yet waited longer than the initial delay, we don't\n    // have to wait any additional time.\n    return 0;\n  }\n\n  var msUntilTimeout=busyDelayMs + busyMinDurationMs - timeElapsed; // This is the value that is passed to `setTimeout`.\n\n  return msUntilTimeout;\n}\n\nfunction checkForNestedUpdates(){\n  if(nestedUpdateCount > NESTED_UPDATE_LIMIT){\n    nestedUpdateCount=0;\n    rootWithNestedUpdates=null;\n\n    {\n      {\n        throw Error(\"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\");\n      }\n    }\n  }\n\n  {\n    if(nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT){\n      nestedPassiveUpdateCount=0;\n\n      error('Maximum update depth exceeded. This can happen when a component ' + \"calls setState inside useEffect, but useEffect either doesn't \" + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');\n    }\n  }\n}\n\nfunction flushRenderPhaseStrictModeWarningsInDEV(){\n  {\n    ReactStrictModeWarnings.flushLegacyContextWarning();\n\n    {\n      ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();\n    }\n  }\n}\n\nfunction stopFinishedWorkLoopTimer(){\n  var didCompleteRoot=true;\n  stopWorkLoopTimer(interruptedBy, didCompleteRoot);\n  interruptedBy=null;\n}\n\nfunction stopInterruptedWorkLoopTimer(){\n  // TODO: Track which fiber caused the interruption.\n  var didCompleteRoot=false;\n  stopWorkLoopTimer(interruptedBy, didCompleteRoot);\n  interruptedBy=null;\n}\n\nfunction checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime){\n  if(workInProgressRoot!==null&&updateExpirationTime > renderExpirationTime$1){\n    interruptedBy=fiberThatReceivedUpdate;\n  }\n}\n\nvar didWarnStateUpdateForUnmountedComponent=null;\n\nfunction warnAboutUpdateOnUnmountedFiberInDEV(fiber){\n  {\n    var tag=fiber.tag;\n\n    if(tag!==HostRoot&&tag!==ClassComponent&&tag!==FunctionComponent&&tag!==ForwardRef&&tag!==MemoComponent&&tag!==SimpleMemoComponent&&tag!==Block){\n      // Only warn for user-defined components, not internal ones like Suspense.\n      return;\n    }\n    // the problematic code almost always lies inside that component.\n\n\n    var componentName=getComponentName(fiber.type)||'ReactComponent';\n\n    if(didWarnStateUpdateForUnmountedComponent!==null){\n      if(didWarnStateUpdateForUnmountedComponent.has(componentName)){\n        return;\n      }\n\n      didWarnStateUpdateForUnmountedComponent.add(componentName);\n    }else{\n      didWarnStateUpdateForUnmountedComponent=new Set([componentName]);\n    }\n\n    error(\"Can't perform a React state update on an unmounted component. This \" + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', tag===ClassComponent ? 'the componentWillUnmount method':'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));\n  }\n}\n\nvar beginWork$1;\n\n{\n  var dummyFiber=null;\n\n  beginWork$1=function (current, unitOfWork, expirationTime){\n    // If a component throws an error, we replay it again in a synchronously\n    // dispatched event, so that the debugger will treat it as an uncaught\n    // error See ReactErrorUtils for more information.\n    // Before entering the begin phase, copy the work-in-progress onto a dummy\n    // fiber. If beginWork throws, we'll use this to reset the state.\n    var originalWorkInProgressCopy=assignFiberPropertiesInDEV(dummyFiber, unitOfWork);\n\n    try {\n      return beginWork(current, unitOfWork, expirationTime);\n    } catch (originalError){\n      if(originalError!==null&&typeof originalError==='object'&&typeof originalError.then==='function'){\n        // Don't replay promises. Treat everything else like an error.\n        throw originalError;\n      } // Keep this code in sync with handleError; any changes here must have\n      // corresponding changes there.\n\n\n      resetContextDependencies();\n      resetHooksAfterThrow(); // Don't reset current debug fiber, since we're about to work on the\n      // same fiber again.\n      // Unwind the failed stack frame\n\n      unwindInterruptedWork(unitOfWork); // Restore the original properties of the fiber.\n\n      assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);\n\n      if(unitOfWork.mode & ProfileMode){\n        // Reset the profiler timer.\n        startProfilerTimer(unitOfWork);\n      } // Run beginWork again.\n\n\n      invokeGuardedCallback(null, beginWork, null, current, unitOfWork, expirationTime);\n\n      if(hasCaughtError()){\n        var replayError=clearCaughtError(); // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.\n        // Rethrow this error instead of the original one.\n\n        throw replayError;\n      }else{\n        // This branch is reachable if the render phase is impure.\n        throw originalError;\n      }\n    }\n  };\n}\n\nvar didWarnAboutUpdateInRender=false;\nvar didWarnAboutUpdateInRenderForAnotherComponent;\n\n{\n  didWarnAboutUpdateInRenderForAnotherComponent=new Set();\n}\n\nfunction warnAboutRenderPhaseUpdatesInDEV(fiber){\n  {\n    if(isRendering&&(executionContext & RenderContext)!==NoContext){\n      switch (fiber.tag){\n        case FunctionComponent:\n        case ForwardRef:\n        case SimpleMemoComponent:\n          {\n            var renderingComponentName=workInProgress&&getComponentName(workInProgress.type)||'Unknown'; // Dedupe by the rendering component because it's the one that needs to be fixed.\n\n            var dedupeKey=renderingComponentName;\n\n            if(!didWarnAboutUpdateInRenderForAnotherComponent.has(dedupeKey)){\n              didWarnAboutUpdateInRenderForAnotherComponent.add(dedupeKey);\n              var setStateComponentName=getComponentName(fiber.type)||'Unknown';\n\n              error('Cannot update a component (`%s`) while rendering a ' + 'different component (`%s`). To locate the bad setState() call inside `%s`, ' + 'follow the stack trace as described in https://fb.me/setstate-in-render', setStateComponentName, renderingComponentName, renderingComponentName);\n            }\n\n            break;\n          }\n\n        case ClassComponent:\n          {\n            if(!didWarnAboutUpdateInRender){\n              error('Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure ' + 'function of props and state.');\n\n              didWarnAboutUpdateInRender=true;\n            }\n\n            break;\n          }\n      }\n    }\n  }\n} // a 'shared' variable that changes when act() opens/closes in tests.\n\n\nvar IsThisRendererActing={\n  current: false\n};\nfunction warnIfNotScopedWithMatchingAct(fiber){\n  {\n    if(IsSomeRendererActing.current===true&&IsThisRendererActing.current!==true){\n      error(\"It looks like you're using the wrong act() around your test interactions.\\n\" + 'Be sure to use the matching version of act() corresponding to your renderer:\\n\\n' + '// for react-dom:\\n' + \"import {act} from 'react-dom/test-utils';\\n\" + '// ...\\n' + 'act(()=> ...);\\n\\n' + '// for react-test-renderer:\\n' + \"import TestRenderer from 'react-test-renderer';\\n\" + 'const {act}=TestRenderer;\\n' + '// ...\\n' + 'act(()=> ...);' + '%s', getStackByFiberInDevAndProd(fiber));\n    }\n  }\n}\nfunction warnIfNotCurrentlyActingEffectsInDEV(fiber){\n  {\n    if((fiber.mode & StrictMode)!==NoMode&&IsSomeRendererActing.current===false&&IsThisRendererActing.current===false){\n      error('An update to %s ran an effect, but was not wrapped in act(...).\\n\\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\\n\\n' + 'act(()=> {\\n' + '  \\n' + '});\\n' + '\\n\\n' + \"This ensures that you're testing the behavior the user would see \" + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));\n    }\n  }\n}\n\nfunction warnIfNotCurrentlyActingUpdatesInDEV(fiber){\n  {\n    if(executionContext===NoContext&&IsSomeRendererActing.current===false&&IsThisRendererActing.current===false){\n      error('An update to %s inside a test was not wrapped in act(...).\\n\\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\\n\\n' + 'act(()=> {\\n' + '  \\n' + '});\\n' + '\\n\\n' + \"This ensures that you're testing the behavior the user would see \" + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));\n    }\n  }\n}\n\nvar warnIfNotCurrentlyActingUpdatesInDev=warnIfNotCurrentlyActingUpdatesInDEV; // In tests, we want to enforce a mocked scheduler.\n\nvar didWarnAboutUnmockedScheduler=false; // TODO Before we release concurrent mode, revisit this and decide whether a mocked\n// scheduler is the actual recommendation. The alternative could be a testing build,\n// a new lib, or whatever; we dunno just yet. This message is for early adopters\n// to get their tests right.\n\nfunction warnIfUnmockedScheduler(fiber){\n  {\n    if(didWarnAboutUnmockedScheduler===false&&Scheduler.unstable_flushAllWithoutAsserting===undefined){\n      if(fiber.mode & BlockingMode||fiber.mode & ConcurrentMode){\n        didWarnAboutUnmockedScheduler=true;\n\n        error('In Concurrent or Sync modes, the \"scheduler\" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \\n' + \"jest.mock('scheduler', ()=> require('scheduler/unstable_mock'));\\n\\n\" + 'For more info, visit https://fb.me/react-mock-scheduler');\n      }\n    }\n  }\n}\n\nfunction computeThreadID(root, expirationTime){\n  // Interaction threads are unique per root and expiration time.\n  return expirationTime * 1000 + root.interactionThreadID;\n}\n\nfunction markSpawnedWork(expirationTime){\n\n  if(spawnedWorkDuringRender===null){\n    spawnedWorkDuringRender=[expirationTime];\n  }else{\n    spawnedWorkDuringRender.push(expirationTime);\n  }\n}\n\nfunction scheduleInteractions(root, expirationTime, interactions){\n\n  if(interactions.size > 0){\n    var pendingInteractionMap=root.pendingInteractionMap;\n    var pendingInteractions=pendingInteractionMap.get(expirationTime);\n\n    if(pendingInteractions!=null){\n      interactions.forEach(function (interaction){\n        if(!pendingInteractions.has(interaction)){\n          // Update the pending async work count for previously unscheduled interaction.\n          interaction.__count++;\n        }\n\n        pendingInteractions.add(interaction);\n      });\n    }else{\n      pendingInteractionMap.set(expirationTime, new Set(interactions)); // Update the pending async work count for the current interactions.\n\n      interactions.forEach(function (interaction){\n        interaction.__count++;\n      });\n    }\n\n    var subscriber=tracing.__subscriberRef.current;\n\n    if(subscriber!==null){\n      var threadID=computeThreadID(root, expirationTime);\n      subscriber.onWorkScheduled(interactions, threadID);\n    }\n  }\n}\n\nfunction schedulePendingInteractions(root, expirationTime){\n\n  scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);\n}\n\nfunction startWorkOnPendingInteractions(root, expirationTime){\n  // we can accurately attribute time spent working on it, And so that cascading\n  // work triggered during the render phase will be associated with it.\n\n\n  var interactions=new Set();\n  root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime){\n    if(scheduledExpirationTime >=expirationTime){\n      scheduledInteractions.forEach(function (interaction){\n        return interactions.add(interaction);\n      });\n    }\n  });// Store the current set of interactions on the FiberRoot for a few reasons:\n  // We can re-use it in hot functions like performConcurrentWorkOnRoot()\n  // without having to recalculate it. We will also use it in commitWork() to\n  // pass to any Profiler onRender() hooks. This also provides DevTools with a\n  // way to access it when the onCommitRoot() hook is called.\n\n  root.memoizedInteractions=interactions;\n\n  if(interactions.size > 0){\n    var subscriber=tracing.__subscriberRef.current;\n\n    if(subscriber!==null){\n      var threadID=computeThreadID(root, expirationTime);\n\n      try {\n        subscriber.onWorkStarted(interactions, threadID);\n      } catch (error){\n        // If the subscriber throws, rethrow it in a separate task\n        scheduleCallback(ImmediatePriority, function (){\n          throw error;\n        });\n      }\n    }\n  }\n}\n\nfunction finishPendingInteractions(root, committedExpirationTime){\n\n  var earliestRemainingTimeAfterCommit=root.firstPendingTime;\n  var subscriber;\n\n  try {\n    subscriber=tracing.__subscriberRef.current;\n\n    if(subscriber!==null&&root.memoizedInteractions.size > 0){\n      var threadID=computeThreadID(root, committedExpirationTime);\n      subscriber.onWorkStopped(root.memoizedInteractions, threadID);\n    }\n  } catch (error){\n    // If the subscriber throws, rethrow it in a separate task\n    scheduleCallback(ImmediatePriority, function (){\n      throw error;\n    });\n  } finally {\n    // Clear completed interactions from the pending Map.\n    // Unless the render was suspended or cascading work was scheduled,\n    // In which case– leave pending interactions until the subsequent render.\n    var pendingInteractionMap=root.pendingInteractionMap;\n    pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime){\n      // Only decrement the pending interaction count if we're done.\n      // If there's still work at the current priority,\n      // That indicates that we are waiting for suspense data.\n      if(scheduledExpirationTime > earliestRemainingTimeAfterCommit){\n        pendingInteractionMap.delete(scheduledExpirationTime);\n        scheduledInteractions.forEach(function (interaction){\n          interaction.__count--;\n\n          if(subscriber!==null&&interaction.__count===0){\n            try {\n              subscriber.onInteractionScheduledWorkCompleted(interaction);\n            } catch (error){\n              // If the subscriber throws, rethrow it in a separate task\n              scheduleCallback(ImmediatePriority, function (){\n                throw error;\n              });\n            }\n          }\n        });\n      }\n    });\n  }\n}\n\nvar onScheduleFiberRoot=null;\nvar onCommitFiberRoot=null;\nvar onCommitFiberUnmount=null;\nvar hasLoggedError=false;\nvar isDevToolsPresent=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=='undefined';\nfunction injectInternals(internals){\n  if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==='undefined'){\n    // No DevTools\n    return false;\n  }\n\n  var hook=__REACT_DEVTOOLS_GLOBAL_HOOK__;\n\n  if(hook.isDisabled){\n    // This isn't a real property on the hook, but it can be set to opt out\n    // of DevTools integration and associated warnings and logs.\n    // https://github.com/facebook/react/issues/3877\n    return true;\n  }\n\n  if(!hook.supportsFiber){\n    {\n      error('The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');\n    } // DevTools exists, even though it doesn't support Fiber.\n\n\n    return true;\n  }\n\n  try {\n    var rendererID=hook.inject(internals); // We have successfully injected, so now it is safe to set up hooks.\n\n    if(true){\n      // Only used by Fast Refresh\n      if(typeof hook.onScheduleFiberRoot==='function'){\n        onScheduleFiberRoot=function (root, children){\n          try {\n            hook.onScheduleFiberRoot(rendererID, root, children);\n          } catch (err){\n            if(true&&!hasLoggedError){\n              hasLoggedError=true;\n\n              error('React instrumentation encountered an error: %s', err);\n            }\n          }\n        };\n      }\n    }\n\n    onCommitFiberRoot=function (root, expirationTime){\n      try {\n        var didError=(root.current.effectTag & DidCapture)===DidCapture;\n\n        if(enableProfilerTimer){\n          var currentTime=getCurrentTime();\n          var priorityLevel=inferPriorityFromExpirationTime(currentTime, expirationTime);\n          hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);\n        }else{\n          hook.onCommitFiberRoot(rendererID, root, undefined, didError);\n        }\n      } catch (err){\n        if(true){\n          if(!hasLoggedError){\n            hasLoggedError=true;\n\n            error('React instrumentation encountered an error: %s', err);\n          }\n        }\n      }\n    };\n\n    onCommitFiberUnmount=function (fiber){\n      try {\n        hook.onCommitFiberUnmount(rendererID, fiber);\n      } catch (err){\n        if(true){\n          if(!hasLoggedError){\n            hasLoggedError=true;\n\n            error('React instrumentation encountered an error: %s', err);\n          }\n        }\n      }\n    };\n  } catch (err){\n    // Catch all errors because it is unsafe to throw during initialization.\n    {\n      error('React instrumentation encountered an error: %s.', err);\n    }\n  } // DevTools exists\n\n\n  return true;\n}\nfunction onScheduleRoot(root, children){\n  if(typeof onScheduleFiberRoot==='function'){\n    onScheduleFiberRoot(root, children);\n  }\n}\nfunction onCommitRoot(root, expirationTime){\n  if(typeof onCommitFiberRoot==='function'){\n    onCommitFiberRoot(root, expirationTime);\n  }\n}\nfunction onCommitUnmount(fiber){\n  if(typeof onCommitFiberUnmount==='function'){\n    onCommitFiberUnmount(fiber);\n  }\n}\n\nvar hasBadMapPolyfill;\n\n{\n  hasBadMapPolyfill=false;\n\n  try {\n    var nonExtensibleObject=Object.preventExtensions({});\n    var testMap=new Map([[nonExtensibleObject, null]]);\n    var testSet=new Set([nonExtensibleObject]); // This is necessary for Rollup to not consider these unused.\n    // https://github.com/rollup/rollup/issues/1771\n    // TODO: we can remove these if Rollup fixes the bug.\n\n    testMap.set(0, 0);\n    testSet.add(0);\n  } catch (e){\n    // TODO: Consider warning about bad polyfills\n    hasBadMapPolyfill=true;\n  }\n}\n\nvar debugCounter=1;\n\nfunction FiberNode(tag, pendingProps, key, mode){\n  // Instance\n  this.tag=tag;\n  this.key=key;\n  this.elementType=null;\n  this.type=null;\n  this.stateNode=null; // Fiber\n\n  this.return=null;\n  this.child=null;\n  this.sibling=null;\n  this.index=0;\n  this.ref=null;\n  this.pendingProps=pendingProps;\n  this.memoizedProps=null;\n  this.updateQueue=null;\n  this.memoizedState=null;\n  this.dependencies=null;\n  this.mode=mode; // Effects\n\n  this.effectTag=NoEffect;\n  this.nextEffect=null;\n  this.firstEffect=null;\n  this.lastEffect=null;\n  this.expirationTime=NoWork;\n  this.childExpirationTime=NoWork;\n  this.alternate=null;\n\n  {\n    // Note: The following is done to avoid a v8 performance cliff.\n    //\n    // Initializing the fields below to smis and later updating them with\n    // double values will cause Fibers to end up having separate shapes.\n    // This behavior/bug has something to do with Object.preventExtension().\n    // Fortunately this only impacts DEV builds.\n    // Unfortunately it makes React unusably slow for some applications.\n    // To work around this, initialize the fields below with doubles.\n    //\n    // Learn more about this here:\n    // https://github.com/facebook/react/issues/14365\n    // https://bugs.chromium.org/p/v8/issues/detail?id=8538\n    this.actualDuration=Number.NaN;\n    this.actualStartTime=Number.NaN;\n    this.selfBaseDuration=Number.NaN;\n    this.treeBaseDuration=Number.NaN; // It's okay to replace the initial doubles with smis after initialization.\n    // This won't trigger the performance cliff mentioned above,\n    // and it simplifies other profiler code (including DevTools).\n\n    this.actualDuration=0;\n    this.actualStartTime=-1;\n    this.selfBaseDuration=0;\n    this.treeBaseDuration=0;\n  } // This is normally DEV-only except www when it adds listeners.\n  // TODO: remove the User Timing integration in favor of Root Events.\n\n\n  {\n    this._debugID=debugCounter++;\n    this._debugIsCurrentlyTiming=false;\n  }\n\n  {\n    this._debugSource=null;\n    this._debugOwner=null;\n    this._debugNeedsRemount=false;\n    this._debugHookTypes=null;\n\n    if(!hasBadMapPolyfill&&typeof Object.preventExtensions==='function'){\n      Object.preventExtensions(this);\n    }\n  }\n} // This is a constructor function, rather than a POJO constructor, still\n// please ensure we do the following:\n// 1) Nobody should add any instance methods on this. Instance methods can be\n//    more difficult to predict when they get optimized and they are almost\n//    never inlined properly in static compilers.\n// 2) Nobody should rely on `instanceof Fiber` for type testing. We should\n//    always know when it is a fiber.\n// 3) We might want to experiment with using numeric keys since they are easier\n//    to optimize in a non-JIT environment.\n// 4) We can easily go from a constructor to a createFiber object literal if that\n//    is faster.\n// 5) It should be easy to port this to a C struct and keep a C implementation\n//    compatible.\n\n\nvar createFiber=function (tag, pendingProps, key, mode){\n  // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors\n  return new FiberNode(tag, pendingProps, key, mode);\n};\n\nfunction shouldConstruct(Component){\n  var prototype=Component.prototype;\n  return !!(prototype&&prototype.isReactComponent);\n}\n\nfunction isSimpleFunctionComponent(type){\n  return typeof type==='function'&&!shouldConstruct(type)&&type.defaultProps===undefined;\n}\nfunction resolveLazyComponentTag(Component){\n  if(typeof Component==='function'){\n    return shouldConstruct(Component) ? ClassComponent:FunctionComponent;\n  }else if(Component!==undefined&&Component!==null){\n    var $$typeof=Component.$$typeof;\n\n    if($$typeof===REACT_FORWARD_REF_TYPE){\n      return ForwardRef;\n    }\n\n    if($$typeof===REACT_MEMO_TYPE){\n      return MemoComponent;\n    }\n  }\n\n  return IndeterminateComponent;\n} // This is used to create an alternate fiber to do work on.\n\nfunction createWorkInProgress(current, pendingProps){\n  var workInProgress=current.alternate;\n\n  if(workInProgress===null){\n    // We use a double buffering pooling technique because we know that we'll\n    // only ever need at most two versions of a tree. We pool the \"other\" unused\n    // node that we're free to reuse. This is lazily created to avoid allocating\n    // extra objects for things that are never updated. It also allow us to\n    // reclaim the extra memory if needed.\n    workInProgress=createFiber(current.tag, pendingProps, current.key, current.mode);\n    workInProgress.elementType=current.elementType;\n    workInProgress.type=current.type;\n    workInProgress.stateNode=current.stateNode;\n\n    {\n      // DEV-only fields\n      {\n        workInProgress._debugID=current._debugID;\n      }\n\n      workInProgress._debugSource=current._debugSource;\n      workInProgress._debugOwner=current._debugOwner;\n      workInProgress._debugHookTypes=current._debugHookTypes;\n    }\n\n    workInProgress.alternate=current;\n    current.alternate=workInProgress;\n  }else{\n    workInProgress.pendingProps=pendingProps; // We already have an alternate.\n    // Reset the effect tag.\n\n    workInProgress.effectTag=NoEffect; // The effect list is no longer valid.\n\n    workInProgress.nextEffect=null;\n    workInProgress.firstEffect=null;\n    workInProgress.lastEffect=null;\n\n    {\n      // We intentionally reset, rather than copy, actualDuration & actualStartTime.\n      // This prevents time from endlessly accumulating in new commits.\n      // This has the downside of resetting values for different priority renders,\n      // But works for yielding (the common case) and should support resuming.\n      workInProgress.actualDuration=0;\n      workInProgress.actualStartTime=-1;\n    }\n  }\n\n  workInProgress.childExpirationTime=current.childExpirationTime;\n  workInProgress.expirationTime=current.expirationTime;\n  workInProgress.child=current.child;\n  workInProgress.memoizedProps=current.memoizedProps;\n  workInProgress.memoizedState=current.memoizedState;\n  workInProgress.updateQueue=current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so\n  // it cannot be shared with the current fiber.\n\n  var currentDependencies=current.dependencies;\n  workInProgress.dependencies=currentDependencies===null ? null:{\n    expirationTime: currentDependencies.expirationTime,\n    firstContext: currentDependencies.firstContext,\n    responders: currentDependencies.responders\n  }; // These will be overridden during the parent's reconciliation\n\n  workInProgress.sibling=current.sibling;\n  workInProgress.index=current.index;\n  workInProgress.ref=current.ref;\n\n  {\n    workInProgress.selfBaseDuration=current.selfBaseDuration;\n    workInProgress.treeBaseDuration=current.treeBaseDuration;\n  }\n\n  {\n    workInProgress._debugNeedsRemount=current._debugNeedsRemount;\n\n    switch (workInProgress.tag){\n      case IndeterminateComponent:\n      case FunctionComponent:\n      case SimpleMemoComponent:\n        workInProgress.type=resolveFunctionForHotReloading(current.type);\n        break;\n\n      case ClassComponent:\n        workInProgress.type=resolveClassForHotReloading(current.type);\n        break;\n\n      case ForwardRef:\n        workInProgress.type=resolveForwardRefForHotReloading(current.type);\n        break;\n    }\n  }\n\n  return workInProgress;\n} // Used to reuse a Fiber for a second pass.\n\nfunction resetWorkInProgress(workInProgress, renderExpirationTime){\n  // This resets the Fiber to what createFiber or createWorkInProgress would\n  // have set the values to before during the first pass. Ideally this wouldn't\n  // be necessary but unfortunately many code paths reads from the workInProgress\n  // when they should be reading from current and writing to workInProgress.\n  // We assume pendingProps, index, key, ref, return are still untouched to\n  // avoid doing another reconciliation.\n  // Reset the effect tag but keep any Placement tags, since that's something\n  // that child fiber is setting, not the reconciliation.\n  workInProgress.effectTag &=Placement; // The effect list is no longer valid.\n\n  workInProgress.nextEffect=null;\n  workInProgress.firstEffect=null;\n  workInProgress.lastEffect=null;\n  var current=workInProgress.alternate;\n\n  if(current===null){\n    // Reset to createFiber's initial values.\n    workInProgress.childExpirationTime=NoWork;\n    workInProgress.expirationTime=renderExpirationTime;\n    workInProgress.child=null;\n    workInProgress.memoizedProps=null;\n    workInProgress.memoizedState=null;\n    workInProgress.updateQueue=null;\n    workInProgress.dependencies=null;\n\n    {\n      // Note: We don't reset the actualTime counts. It's useful to accumulate\n      // actual time across multiple render passes.\n      workInProgress.selfBaseDuration=0;\n      workInProgress.treeBaseDuration=0;\n    }\n  }else{\n    // Reset to the cloned values that createWorkInProgress would've.\n    workInProgress.childExpirationTime=current.childExpirationTime;\n    workInProgress.expirationTime=current.expirationTime;\n    workInProgress.child=current.child;\n    workInProgress.memoizedProps=current.memoizedProps;\n    workInProgress.memoizedState=current.memoizedState;\n    workInProgress.updateQueue=current.updateQueue; // Clone the dependencies object. This is mutated during the render phase, so\n    // it cannot be shared with the current fiber.\n\n    var currentDependencies=current.dependencies;\n    workInProgress.dependencies=currentDependencies===null ? null:{\n      expirationTime: currentDependencies.expirationTime,\n      firstContext: currentDependencies.firstContext,\n      responders: currentDependencies.responders\n    };\n\n    {\n      // Note: We don't reset the actualTime counts. It's useful to accumulate\n      // actual time across multiple render passes.\n      workInProgress.selfBaseDuration=current.selfBaseDuration;\n      workInProgress.treeBaseDuration=current.treeBaseDuration;\n    }\n  }\n\n  return workInProgress;\n}\nfunction createHostRootFiber(tag){\n  var mode;\n\n  if(tag===ConcurrentRoot){\n    mode=ConcurrentMode | BlockingMode | StrictMode;\n  }else if(tag===BlockingRoot){\n    mode=BlockingMode | StrictMode;\n  }else{\n    mode=NoMode;\n  }\n\n  if(isDevToolsPresent){\n    // Always collect profile timings when DevTools are present.\n    // This enables DevTools to start capturing timing at any point–\n    // Without some nodes in the tree having empty base times.\n    mode |=ProfileMode;\n  }\n\n  return createFiber(HostRoot, null, null, mode);\n}\nfunction createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, expirationTime){\n  var fiber;\n  var fiberTag=IndeterminateComponent; // The resolved type is set if we know what the final type will be. I.e. it's not lazy.\n\n  var resolvedType=type;\n\n  if(typeof type==='function'){\n    if(shouldConstruct(type)){\n      fiberTag=ClassComponent;\n\n      {\n        resolvedType=resolveClassForHotReloading(resolvedType);\n      }\n    }else{\n      {\n        resolvedType=resolveFunctionForHotReloading(resolvedType);\n      }\n    }\n  }else if(typeof type==='string'){\n    fiberTag=HostComponent;\n  }else{\n    getTag: switch (type){\n      case REACT_FRAGMENT_TYPE:\n        return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);\n\n      case REACT_CONCURRENT_MODE_TYPE:\n        fiberTag=Mode;\n        mode |=ConcurrentMode | BlockingMode | StrictMode;\n        break;\n\n      case REACT_STRICT_MODE_TYPE:\n        fiberTag=Mode;\n        mode |=StrictMode;\n        break;\n\n      case REACT_PROFILER_TYPE:\n        return createFiberFromProfiler(pendingProps, mode, expirationTime, key);\n\n      case REACT_SUSPENSE_TYPE:\n        return createFiberFromSuspense(pendingProps, mode, expirationTime, key);\n\n      case REACT_SUSPENSE_LIST_TYPE:\n        return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);\n\n      default:\n        {\n          if(typeof type==='object'&&type!==null){\n            switch (type.$$typeof){\n              case REACT_PROVIDER_TYPE:\n                fiberTag=ContextProvider;\n                break getTag;\n\n              case REACT_CONTEXT_TYPE:\n                // This is a consumer\n                fiberTag=ContextConsumer;\n                break getTag;\n\n              case REACT_FORWARD_REF_TYPE:\n                fiberTag=ForwardRef;\n\n                {\n                  resolvedType=resolveForwardRefForHotReloading(resolvedType);\n                }\n\n                break getTag;\n\n              case REACT_MEMO_TYPE:\n                fiberTag=MemoComponent;\n                break getTag;\n\n              case REACT_LAZY_TYPE:\n                fiberTag=LazyComponent;\n                resolvedType=null;\n                break getTag;\n\n              case REACT_BLOCK_TYPE:\n                fiberTag=Block;\n                break getTag;\n\n            }\n          }\n\n          var info='';\n\n          {\n            if(type===undefined||typeof type==='object'&&type!==null&&Object.keys(type).length===0){\n              info +=' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and \" + 'named imports.';\n            }\n\n            var ownerName=owner ? getComponentName(owner.type):null;\n\n            if(ownerName){\n              info +='\\n\\nCheck the render method of `' + ownerName + '`.';\n            }\n          }\n\n          {\n            {\n              throw Error(\"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: \" + (type==null ? type:typeof type) + \".\" + info);\n            }\n          }\n        }\n    }\n  }\n\n  fiber=createFiber(fiberTag, pendingProps, key, mode);\n  fiber.elementType=type;\n  fiber.type=resolvedType;\n  fiber.expirationTime=expirationTime;\n  return fiber;\n}\nfunction createFiberFromElement(element, mode, expirationTime){\n  var owner=null;\n\n  {\n    owner=element._owner;\n  }\n\n  var type=element.type;\n  var key=element.key;\n  var pendingProps=element.props;\n  var fiber=createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);\n\n  {\n    fiber._debugSource=element._source;\n    fiber._debugOwner=element._owner;\n  }\n\n  return fiber;\n}\nfunction createFiberFromFragment(elements, mode, expirationTime, key){\n  var fiber=createFiber(Fragment, elements, key, mode);\n  fiber.expirationTime=expirationTime;\n  return fiber;\n}\n\nfunction createFiberFromProfiler(pendingProps, mode, expirationTime, key){\n  {\n    if(typeof pendingProps.id!=='string'||typeof pendingProps.onRender!=='function'){\n      error('Profiler must specify an \"id\" string and \"onRender\" function as props');\n    }\n  }\n\n  var fiber=createFiber(Profiler, pendingProps, key, mode | ProfileMode); // TODO: The Profiler fiber shouldn't have a type. It has a tag.\n\n  fiber.elementType=REACT_PROFILER_TYPE;\n  fiber.type=REACT_PROFILER_TYPE;\n  fiber.expirationTime=expirationTime;\n  return fiber;\n}\n\nfunction createFiberFromSuspense(pendingProps, mode, expirationTime, key){\n  var fiber=createFiber(SuspenseComponent, pendingProps, key, mode); // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.\n  // This needs to be fixed in getComponentName so that it relies on the tag\n  // instead.\n\n  fiber.type=REACT_SUSPENSE_TYPE;\n  fiber.elementType=REACT_SUSPENSE_TYPE;\n  fiber.expirationTime=expirationTime;\n  return fiber;\n}\nfunction createFiberFromSuspenseList(pendingProps, mode, expirationTime, key){\n  var fiber=createFiber(SuspenseListComponent, pendingProps, key, mode);\n\n  {\n    // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.\n    // This needs to be fixed in getComponentName so that it relies on the tag\n    // instead.\n    fiber.type=REACT_SUSPENSE_LIST_TYPE;\n  }\n\n  fiber.elementType=REACT_SUSPENSE_LIST_TYPE;\n  fiber.expirationTime=expirationTime;\n  return fiber;\n}\nfunction createFiberFromText(content, mode, expirationTime){\n  var fiber=createFiber(HostText, content, null, mode);\n  fiber.expirationTime=expirationTime;\n  return fiber;\n}\nfunction createFiberFromHostInstanceForDeletion(){\n  var fiber=createFiber(HostComponent, null, null, NoMode); // TODO: These should not need a type.\n\n  fiber.elementType='DELETED';\n  fiber.type='DELETED';\n  return fiber;\n}\nfunction createFiberFromPortal(portal, mode, expirationTime){\n  var pendingProps=portal.children!==null ? portal.children:[];\n  var fiber=createFiber(HostPortal, pendingProps, portal.key, mode);\n  fiber.expirationTime=expirationTime;\n  fiber.stateNode={\n    containerInfo: portal.containerInfo,\n    pendingChildren: null,\n    // Used by persistent updates\n    implementation: portal.implementation\n  };\n  return fiber;\n} // Used for stashing WIP properties to replay failed work in DEV.\n\nfunction assignFiberPropertiesInDEV(target, source){\n  if(target===null){\n    // This Fiber's initial properties will always be overwritten.\n    // We only use a Fiber to ensure the same hidden class so DEV isn't slow.\n    target=createFiber(IndeterminateComponent, null, null, NoMode);\n  } // This is intentionally written as a list of all properties.\n  // We tried to use Object.assign() instead but this is called in\n  // the hottest path, and Object.assign() was too slow:\n  // https://github.com/facebook/react/issues/12502\n  // This code is DEV-only so size is not a concern.\n\n\n  target.tag=source.tag;\n  target.key=source.key;\n  target.elementType=source.elementType;\n  target.type=source.type;\n  target.stateNode=source.stateNode;\n  target.return=source.return;\n  target.child=source.child;\n  target.sibling=source.sibling;\n  target.index=source.index;\n  target.ref=source.ref;\n  target.pendingProps=source.pendingProps;\n  target.memoizedProps=source.memoizedProps;\n  target.updateQueue=source.updateQueue;\n  target.memoizedState=source.memoizedState;\n  target.dependencies=source.dependencies;\n  target.mode=source.mode;\n  target.effectTag=source.effectTag;\n  target.nextEffect=source.nextEffect;\n  target.firstEffect=source.firstEffect;\n  target.lastEffect=source.lastEffect;\n  target.expirationTime=source.expirationTime;\n  target.childExpirationTime=source.childExpirationTime;\n  target.alternate=source.alternate;\n\n  {\n    target.actualDuration=source.actualDuration;\n    target.actualStartTime=source.actualStartTime;\n    target.selfBaseDuration=source.selfBaseDuration;\n    target.treeBaseDuration=source.treeBaseDuration;\n  }\n\n  {\n    target._debugID=source._debugID;\n  }\n\n  target._debugSource=source._debugSource;\n  target._debugOwner=source._debugOwner;\n  target._debugIsCurrentlyTiming=source._debugIsCurrentlyTiming;\n  target._debugNeedsRemount=source._debugNeedsRemount;\n  target._debugHookTypes=source._debugHookTypes;\n  return target;\n}\n\nfunction FiberRootNode(containerInfo, tag, hydrate){\n  this.tag=tag;\n  this.current=null;\n  this.containerInfo=containerInfo;\n  this.pendingChildren=null;\n  this.pingCache=null;\n  this.finishedExpirationTime=NoWork;\n  this.finishedWork=null;\n  this.timeoutHandle=noTimeout;\n  this.context=null;\n  this.pendingContext=null;\n  this.hydrate=hydrate;\n  this.callbackNode=null;\n  this.callbackPriority=NoPriority;\n  this.firstPendingTime=NoWork;\n  this.firstSuspendedTime=NoWork;\n  this.lastSuspendedTime=NoWork;\n  this.nextKnownPendingLevel=NoWork;\n  this.lastPingedTime=NoWork;\n  this.lastExpiredTime=NoWork;\n\n  {\n    this.interactionThreadID=tracing.unstable_getThreadID();\n    this.memoizedInteractions=new Set();\n    this.pendingInteractionMap=new Map();\n  }\n}\n\nfunction createFiberRoot(containerInfo, tag, hydrate, hydrationCallbacks){\n  var root=new FiberRootNode(containerInfo, tag, hydrate);\n  // stateNode is any.\n\n\n  var uninitializedFiber=createHostRootFiber(tag);\n  root.current=uninitializedFiber;\n  uninitializedFiber.stateNode=root;\n  initializeUpdateQueue(uninitializedFiber);\n  return root;\n}\nfunction isRootSuspendedAtTime(root, expirationTime){\n  var firstSuspendedTime=root.firstSuspendedTime;\n  var lastSuspendedTime=root.lastSuspendedTime;\n  return firstSuspendedTime!==NoWork&&firstSuspendedTime >=expirationTime&&lastSuspendedTime <=expirationTime;\n}\nfunction markRootSuspendedAtTime(root, expirationTime){\n  var firstSuspendedTime=root.firstSuspendedTime;\n  var lastSuspendedTime=root.lastSuspendedTime;\n\n  if(firstSuspendedTime < expirationTime){\n    root.firstSuspendedTime=expirationTime;\n  }\n\n  if(lastSuspendedTime > expirationTime||firstSuspendedTime===NoWork){\n    root.lastSuspendedTime=expirationTime;\n  }\n\n  if(expirationTime <=root.lastPingedTime){\n    root.lastPingedTime=NoWork;\n  }\n\n  if(expirationTime <=root.lastExpiredTime){\n    root.lastExpiredTime=NoWork;\n  }\n}\nfunction markRootUpdatedAtTime(root, expirationTime){\n  // Update the range of pending times\n  var firstPendingTime=root.firstPendingTime;\n\n  if(expirationTime > firstPendingTime){\n    root.firstPendingTime=expirationTime;\n  } // Update the range of suspended times. Treat everything lower priority or\n  // equal to this update as unsuspended.\n\n\n  var firstSuspendedTime=root.firstSuspendedTime;\n\n  if(firstSuspendedTime!==NoWork){\n    if(expirationTime >=firstSuspendedTime){\n      // The entire suspended range is now unsuspended.\n      root.firstSuspendedTime=root.lastSuspendedTime=root.nextKnownPendingLevel=NoWork;\n    }else if(expirationTime >=root.lastSuspendedTime){\n      root.lastSuspendedTime=expirationTime + 1;\n    } // This is a pending level. Check if it's higher priority than the next\n    // known pending level.\n\n\n    if(expirationTime > root.nextKnownPendingLevel){\n      root.nextKnownPendingLevel=expirationTime;\n    }\n  }\n}\nfunction markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime){\n  // Update the range of pending times\n  root.firstPendingTime=remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or\n  // equal to this update as unsuspended.\n\n  if(finishedExpirationTime <=root.lastSuspendedTime){\n    // The entire suspended range is now unsuspended.\n    root.firstSuspendedTime=root.lastSuspendedTime=root.nextKnownPendingLevel=NoWork;\n  }else if(finishedExpirationTime <=root.firstSuspendedTime){\n    // Part of the suspended range is now unsuspended. Narrow the range to\n    // include everything between the unsuspended time (non-inclusive) and the\n    // last suspended time.\n    root.firstSuspendedTime=finishedExpirationTime - 1;\n  }\n\n  if(finishedExpirationTime <=root.lastPingedTime){\n    // Clear the pinged time\n    root.lastPingedTime=NoWork;\n  }\n\n  if(finishedExpirationTime <=root.lastExpiredTime){\n    // Clear the expired time\n    root.lastExpiredTime=NoWork;\n  }\n}\nfunction markRootExpiredAtTime(root, expirationTime){\n  var lastExpiredTime=root.lastExpiredTime;\n\n  if(lastExpiredTime===NoWork||lastExpiredTime > expirationTime){\n    root.lastExpiredTime=expirationTime;\n  }\n}\n\nvar didWarnAboutNestedUpdates;\nvar didWarnAboutFindNodeInStrictMode;\n\n{\n  didWarnAboutNestedUpdates=false;\n  didWarnAboutFindNodeInStrictMode={};\n}\n\nfunction getContextForSubtree(parentComponent){\n  if(!parentComponent){\n    return emptyContextObject;\n  }\n\n  var fiber=get(parentComponent);\n  var parentContext=findCurrentUnmaskedContext(fiber);\n\n  if(fiber.tag===ClassComponent){\n    var Component=fiber.type;\n\n    if(isContextProvider(Component)){\n      return processChildContext(fiber, Component, parentContext);\n    }\n  }\n\n  return parentContext;\n}\n\nfunction findHostInstanceWithWarning(component, methodName){\n  {\n    var fiber=get(component);\n\n    if(fiber===undefined){\n      if(typeof component.render==='function'){\n        {\n          {\n            throw Error(\"Unable to find node on an unmounted component.\");\n          }\n        }\n      }else{\n        {\n          {\n            throw Error(\"Argument appears to not be a ReactComponent. Keys: \" + Object.keys(component));\n          }\n        }\n      }\n    }\n\n    var hostFiber=findCurrentHostFiber(fiber);\n\n    if(hostFiber===null){\n      return null;\n    }\n\n    if(hostFiber.mode & StrictMode){\n      var componentName=getComponentName(fiber.type)||'Component';\n\n      if(!didWarnAboutFindNodeInStrictMode[componentName]){\n        didWarnAboutFindNodeInStrictMode[componentName]=true;\n\n        if(fiber.mode & StrictMode){\n          error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));\n        }else{\n          error('%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-find-node%s', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));\n        }\n      }\n    }\n\n    return hostFiber.stateNode;\n  }\n}\n\nfunction createContainer(containerInfo, tag, hydrate, hydrationCallbacks){\n  return createFiberRoot(containerInfo, tag, hydrate);\n}\nfunction updateContainer(element, container, parentComponent, callback){\n  {\n    onScheduleRoot(container, element);\n  }\n\n  var current$1=container.current;\n  var currentTime=requestCurrentTimeForUpdate();\n\n  {\n    // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests\n    if('undefined'!==typeof jest){\n      warnIfUnmockedScheduler(current$1);\n      warnIfNotScopedWithMatchingAct(current$1);\n    }\n  }\n\n  var suspenseConfig=requestCurrentSuspenseConfig();\n  var expirationTime=computeExpirationForFiber(currentTime, current$1, suspenseConfig);\n  var context=getContextForSubtree(parentComponent);\n\n  if(container.context===null){\n    container.context=context;\n  }else{\n    container.pendingContext=context;\n  }\n\n  {\n    if(isRendering&&current!==null&&!didWarnAboutNestedUpdates){\n      didWarnAboutNestedUpdates=true;\n\n      error('Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\\n\\n' + 'Check the render method of %s.', getComponentName(current.type)||'Unknown');\n    }\n  }\n\n  var update=createUpdate(expirationTime, suspenseConfig); // Caution: React DevTools currently depends on this property\n  // being called \"element\".\n\n  update.payload={\n    element: element\n  };\n  callback=callback===undefined ? null:callback;\n\n  if(callback!==null){\n    {\n      if(typeof callback!=='function'){\n        error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);\n      }\n    }\n\n    update.callback=callback;\n  }\n\n  enqueueUpdate(current$1, update);\n  scheduleWork(current$1, expirationTime);\n  return expirationTime;\n}\nfunction getPublicRootInstance(container){\n  var containerFiber=container.current;\n\n  if(!containerFiber.child){\n    return null;\n  }\n\n  switch (containerFiber.child.tag){\n    case HostComponent:\n      return getPublicInstance(containerFiber.child.stateNode);\n\n    default:\n      return containerFiber.child.stateNode;\n  }\n}\n\nfunction markRetryTimeImpl(fiber, retryTime){\n  var suspenseState=fiber.memoizedState;\n\n  if(suspenseState!==null&&suspenseState.dehydrated!==null){\n    if(suspenseState.retryTime < retryTime){\n      suspenseState.retryTime=retryTime;\n    }\n  }\n} // Increases the priority of thennables when they resolve within this boundary.\n\n\nfunction markRetryTimeIfNotHydrated(fiber, retryTime){\n  markRetryTimeImpl(fiber, retryTime);\n  var alternate=fiber.alternate;\n\n  if(alternate){\n    markRetryTimeImpl(alternate, retryTime);\n  }\n}\n\nfunction attemptUserBlockingHydration$1(fiber){\n  if(fiber.tag!==SuspenseComponent){\n    // We ignore HostRoots here because we can't increase\n    // their priority and they should not suspend on I/O,\n    // since you have to wrap anything that might suspend in\n    // Suspense.\n    return;\n  }\n\n  var expTime=computeInteractiveExpiration(requestCurrentTimeForUpdate());\n  scheduleWork(fiber, expTime);\n  markRetryTimeIfNotHydrated(fiber, expTime);\n}\nfunction attemptContinuousHydration$1(fiber){\n  if(fiber.tag!==SuspenseComponent){\n    // We ignore HostRoots here because we can't increase\n    // their priority and they should not suspend on I/O,\n    // since you have to wrap anything that might suspend in\n    // Suspense.\n    return;\n  }\n\n  scheduleWork(fiber, ContinuousHydration);\n  markRetryTimeIfNotHydrated(fiber, ContinuousHydration);\n}\nfunction attemptHydrationAtCurrentPriority$1(fiber){\n  if(fiber.tag!==SuspenseComponent){\n    // We ignore HostRoots here because we can't increase\n    // their priority other than synchronously flush it.\n    return;\n  }\n\n  var currentTime=requestCurrentTimeForUpdate();\n  var expTime=computeExpirationForFiber(currentTime, fiber, null);\n  scheduleWork(fiber, expTime);\n  markRetryTimeIfNotHydrated(fiber, expTime);\n}\nfunction findHostInstanceWithNoPortals(fiber){\n  var hostFiber=findCurrentHostFiberWithNoPortals(fiber);\n\n  if(hostFiber===null){\n    return null;\n  }\n\n  if(hostFiber.tag===FundamentalComponent){\n    return hostFiber.stateNode.instance;\n  }\n\n  return hostFiber.stateNode;\n}\n\nvar shouldSuspendImpl=function (fiber){\n  return false;\n};\n\nfunction shouldSuspend(fiber){\n  return shouldSuspendImpl(fiber);\n}\nvar overrideHookState=null;\nvar overrideProps=null;\nvar scheduleUpdate=null;\nvar setSuspenseHandler=null;\n\n{\n  var copyWithSetImpl=function (obj, path, idx, value){\n    if(idx >=path.length){\n      return value;\n    }\n\n    var key=path[idx];\n    var updated=Array.isArray(obj) ? obj.slice():_assign({}, obj); // $FlowFixMe number or string is fine here\n\n    updated[key]=copyWithSetImpl(obj[key], path, idx + 1, value);\n    return updated;\n  };\n\n  var copyWithSet=function (obj, path, value){\n    return copyWithSetImpl(obj, path, 0, value);\n  }; // Support DevTools editable values for useState and useReducer.\n\n\n  overrideHookState=function (fiber, id, path, value){\n    // For now, the \"id\" of stateful hooks is just the stateful hook index.\n    // This may change in the future with e.g. nested hooks.\n    var currentHook=fiber.memoizedState;\n\n    while (currentHook!==null&&id > 0){\n      currentHook=currentHook.next;\n      id--;\n    }\n\n    if(currentHook!==null){\n      var newState=copyWithSet(currentHook.memoizedState, path, value);\n      currentHook.memoizedState=newState;\n      currentHook.baseState=newState; // We aren't actually adding an update to the queue,\n      // because there is no update we can add for useReducer hooks that won't trigger an error.\n      // (There's no appropriate action type for DevTools overrides.)\n      // As a result though, React will see the scheduled update as a noop and bailout.\n      // Shallow cloning props works as a workaround for now to bypass the bailout check.\n\n      fiber.memoizedProps=_assign({}, fiber.memoizedProps);\n      scheduleWork(fiber, Sync);\n    }\n  }; // Support DevTools props for function components, forwardRef, memo, host components, etc.\n\n\n  overrideProps=function (fiber, path, value){\n    fiber.pendingProps=copyWithSet(fiber.memoizedProps, path, value);\n\n    if(fiber.alternate){\n      fiber.alternate.pendingProps=fiber.pendingProps;\n    }\n\n    scheduleWork(fiber, Sync);\n  };\n\n  scheduleUpdate=function (fiber){\n    scheduleWork(fiber, Sync);\n  };\n\n  setSuspenseHandler=function (newShouldSuspendImpl){\n    shouldSuspendImpl=newShouldSuspendImpl;\n  };\n}\n\nfunction injectIntoDevTools(devToolsConfig){\n  var findFiberByHostInstance=devToolsConfig.findFiberByHostInstance;\n  var ReactCurrentDispatcher=ReactSharedInternals.ReactCurrentDispatcher;\n  return injectInternals(_assign({}, devToolsConfig, {\n    overrideHookState: overrideHookState,\n    overrideProps: overrideProps,\n    setSuspenseHandler: setSuspenseHandler,\n    scheduleUpdate: scheduleUpdate,\n    currentDispatcherRef: ReactCurrentDispatcher,\n    findHostInstanceByFiber: function (fiber){\n      var hostFiber=findCurrentHostFiber(fiber);\n\n      if(hostFiber===null){\n        return null;\n      }\n\n      return hostFiber.stateNode;\n    },\n    findFiberByHostInstance: function (instance){\n      if(!findFiberByHostInstance){\n        // Might not be implemented by the renderer.\n        return null;\n      }\n\n      return findFiberByHostInstance(instance);\n    },\n    // React Refresh\n    findHostInstancesForRefresh:  findHostInstancesForRefresh ,\n    scheduleRefresh:  scheduleRefresh ,\n    scheduleRoot:  scheduleRoot ,\n    setRefreshHandler:  setRefreshHandler ,\n    // Enables DevTools to append owner stacks to error messages in DEV mode.\n    getCurrentFiber:  function (){\n      return current;\n    }\n  }));\n}\nvar IsSomeRendererActing$1=ReactSharedInternals.IsSomeRendererActing;\n\nfunction ReactDOMRoot(container, options){\n  this._internalRoot=createRootImpl(container, ConcurrentRoot, options);\n}\n\nfunction ReactDOMBlockingRoot(container, tag, options){\n  this._internalRoot=createRootImpl(container, tag, options);\n}\n\nReactDOMRoot.prototype.render=ReactDOMBlockingRoot.prototype.render=function (children){\n  var root=this._internalRoot;\n\n  {\n    if(typeof arguments[1]==='function'){\n      error('render(...): does not support the second callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');\n    }\n\n    var container=root.containerInfo;\n\n    if(container.nodeType!==COMMENT_NODE){\n      var hostInstance=findHostInstanceWithNoPortals(root.current);\n\n      if(hostInstance){\n        if(hostInstance.parentNode!==container){\n          error('render(...): It looks like the React-rendered content of the ' + 'root container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + \"root.unmount() to empty a root's container.\");\n        }\n      }\n    }\n  }\n\n  updateContainer(children, root, null, null);\n};\n\nReactDOMRoot.prototype.unmount=ReactDOMBlockingRoot.prototype.unmount=function (){\n  {\n    if(typeof arguments[0]==='function'){\n      error('unmount(...): does not support a callback argument. ' + 'To execute a side effect after rendering, declare it in a component body with useEffect().');\n    }\n  }\n\n  var root=this._internalRoot;\n  var container=root.containerInfo;\n  updateContainer(null, root, null, function (){\n    unmarkContainerAsRoot(container);\n  });\n};\n\nfunction createRootImpl(container, tag, options){\n  // Tag is either LegacyRoot or Concurrent Root\n  var hydrate=options!=null&&options.hydrate===true;\n  var hydrationCallbacks=options!=null&&options.hydrationOptions||null;\n  var root=createContainer(container, tag, hydrate);\n  markContainerAsRoot(root.current, container);\n\n  if(hydrate&&tag!==LegacyRoot){\n    var doc=container.nodeType===DOCUMENT_NODE ? container:container.ownerDocument;\n    eagerlyTrapReplayableEvents(container, doc);\n  }\n\n  return root;\n}\nfunction createLegacyRoot(container, options){\n  return new ReactDOMBlockingRoot(container, LegacyRoot, options);\n}\nfunction isValidContainer(node){\n  return !!(node&&(node.nodeType===ELEMENT_NODE||node.nodeType===DOCUMENT_NODE||node.nodeType===DOCUMENT_FRAGMENT_NODE||node.nodeType===COMMENT_NODE&&node.nodeValue===' react-mount-point-unstable '));\n}\n\nvar ReactCurrentOwner$3=ReactSharedInternals.ReactCurrentOwner;\nvar topLevelUpdateWarnings;\nvar warnedAboutHydrateAPI=false;\n\n{\n  topLevelUpdateWarnings=function (container){\n    if(container._reactRootContainer&&container.nodeType!==COMMENT_NODE){\n      var hostInstance=findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);\n\n      if(hostInstance){\n        if(hostInstance.parentNode!==container){\n          error('render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.');\n        }\n      }\n    }\n\n    var isRootRenderedBySomeReact = !!container._reactRootContainer;\n    var rootEl=getReactRootElementInContainer(container);\n    var hasNonRootReactChild = !!(rootEl&&getInstanceFromNode$1(rootEl));\n\n    if(hasNonRootReactChild&&!isRootRenderedBySomeReact){\n      error('render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.');\n    }\n\n    if(container.nodeType===ELEMENT_NODE&&container.tagName&&container.tagName.toUpperCase()==='BODY'){\n      error('render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.');\n    }\n  };\n}\n\nfunction getReactRootElementInContainer(container){\n  if(!container){\n    return null;\n  }\n\n  if(container.nodeType===DOCUMENT_NODE){\n    return container.documentElement;\n  }else{\n    return container.firstChild;\n  }\n}\n\nfunction shouldHydrateDueToLegacyHeuristic(container){\n  var rootElement=getReactRootElementInContainer(container);\n  return !!(rootElement&&rootElement.nodeType===ELEMENT_NODE&&rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));\n}\n\nfunction legacyCreateRootFromDOMContainer(container, forceHydrate){\n  var shouldHydrate=forceHydrate||shouldHydrateDueToLegacyHeuristic(container); // First clear any existing content.\n\n  if(!shouldHydrate){\n    var warned=false;\n    var rootSibling;\n\n    while (rootSibling=container.lastChild){\n      {\n        if(!warned&&rootSibling.nodeType===ELEMENT_NODE&&rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)){\n          warned=true;\n\n          error('render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');\n        }\n      }\n\n      container.removeChild(rootSibling);\n    }\n  }\n\n  {\n    if(shouldHydrate&&!forceHydrate&&!warnedAboutHydrateAPI){\n      warnedAboutHydrateAPI=true;\n\n      warn('render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');\n    }\n  }\n\n  return createLegacyRoot(container, shouldHydrate ? {\n    hydrate: true\n  }:undefined);\n}\n\nfunction warnOnInvalidCallback$1(callback, callerName){\n  {\n    if(callback!==null&&typeof callback!=='function'){\n      error('%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);\n    }\n  }\n}\n\nfunction legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback){\n  {\n    topLevelUpdateWarnings(container);\n    warnOnInvalidCallback$1(callback===undefined ? null:callback, 'render');\n  } // TODO: Without `any` type, Flow says \"Property cannot be accessed on any\n  // member of intersection type.\" Whyyyyyy.\n\n\n  var root=container._reactRootContainer;\n  var fiberRoot;\n\n  if(!root){\n    // Initial mount\n    root=container._reactRootContainer=legacyCreateRootFromDOMContainer(container, forceHydrate);\n    fiberRoot=root._internalRoot;\n\n    if(typeof callback==='function'){\n      var originalCallback=callback;\n\n      callback=function (){\n        var instance=getPublicRootInstance(fiberRoot);\n        originalCallback.call(instance);\n      };\n    } // Initial mount should not be batched.\n\n\n    unbatchedUpdates(function (){\n      updateContainer(children, fiberRoot, parentComponent, callback);\n    });\n  }else{\n    fiberRoot=root._internalRoot;\n\n    if(typeof callback==='function'){\n      var _originalCallback=callback;\n\n      callback=function (){\n        var instance=getPublicRootInstance(fiberRoot);\n\n        _originalCallback.call(instance);\n      };\n    } // Update\n\n\n    updateContainer(children, fiberRoot, parentComponent, callback);\n  }\n\n  return getPublicRootInstance(fiberRoot);\n}\n\nfunction findDOMNode(componentOrElement){\n  {\n    var owner=ReactCurrentOwner$3.current;\n\n    if(owner!==null&&owner.stateNode!==null){\n      var warnedAboutRefsInRender=owner.stateNode._warnedAboutRefsInRender;\n\n      if(!warnedAboutRefsInRender){\n        error('%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type)||'A component');\n      }\n\n      owner.stateNode._warnedAboutRefsInRender=true;\n    }\n  }\n\n  if(componentOrElement==null){\n    return null;\n  }\n\n  if(componentOrElement.nodeType===ELEMENT_NODE){\n    return componentOrElement;\n  }\n\n  {\n    return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');\n  }\n}\nfunction hydrate(element, container, callback){\n  if(!isValidContainer(container)){\n    {\n      throw Error(\"Target container is not a DOM element.\");\n    }\n  }\n\n  {\n    var isModernRoot=isContainerMarkedAsRoot(container)&&container._reactRootContainer===undefined;\n\n    if(isModernRoot){\n      error('You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?');\n    }\n  } // TODO: throw or warn if we couldn't hydrate?\n\n\n  return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);\n}\nfunction render(element, container, callback){\n  if(!isValidContainer(container)){\n    {\n      throw Error(\"Target container is not a DOM element.\");\n    }\n  }\n\n  {\n    var isModernRoot=isContainerMarkedAsRoot(container)&&container._reactRootContainer===undefined;\n\n    if(isModernRoot){\n      error('You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. ' + 'Did you mean to call root.render(element)?');\n    }\n  }\n\n  return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);\n}\nfunction unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback){\n  if(!isValidContainer(containerNode)){\n    {\n      throw Error(\"Target container is not a DOM element.\");\n    }\n  }\n\n  if(!(parentComponent!=null&&has(parentComponent))){\n    {\n      throw Error(\"parentComponent must be a valid React Component\");\n    }\n  }\n\n  return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);\n}\nfunction unmountComponentAtNode(container){\n  if(!isValidContainer(container)){\n    {\n      throw Error(\"unmountComponentAtNode(...): Target container is not a DOM element.\");\n    }\n  }\n\n  {\n    var isModernRoot=isContainerMarkedAsRoot(container)&&container._reactRootContainer===undefined;\n\n    if(isModernRoot){\n      error('You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.createRoot(). This is not supported. Did you mean to call root.unmount()?');\n    }\n  }\n\n  if(container._reactRootContainer){\n    {\n      var rootEl=getReactRootElementInContainer(container);\n      var renderedByDifferentReact=rootEl&&!getInstanceFromNode$1(rootEl);\n\n      if(renderedByDifferentReact){\n        error(\"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by another copy of React.');\n      }\n    } // Unmount should not be batched.\n\n\n    unbatchedUpdates(function (){\n      legacyRenderSubtreeIntoContainer(null, null, container, false, function (){\n        // $FlowFixMe This should probably use `delete container._reactRootContainer`\n        container._reactRootContainer=null;\n        unmarkContainerAsRoot(container);\n      });\n    });// If you call unmountComponentAtNode twice in quick succession, you'll\n    // get `true` twice. That's probably fine?\n\n    return true;\n  }else{\n    {\n      var _rootEl=getReactRootElementInContainer(container);\n\n      var hasNonRootReactChild = !!(_rootEl&&getInstanceFromNode$1(_rootEl)); // Check if the container itself is a React root node.\n\n      var isContainerReactRoot=container.nodeType===ELEMENT_NODE&&isValidContainer(container.parentNode)&&!!container.parentNode._reactRootContainer;\n\n      if(hasNonRootReactChild){\n        error(\"unmountComponentAtNode(): The node you're attempting to unmount \" + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.':'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.');\n      }\n    }\n\n    return false;\n  }\n}\n\nfunction createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.\nimplementation){\n  var key=arguments.length > 3&&arguments[3]!==undefined ? arguments[3]:null;\n  return {\n    // This tag allow us to uniquely identify this as a React Portal\n    $$typeof: REACT_PORTAL_TYPE,\n    key: key==null ? null:'' + key,\n    children: children,\n    containerInfo: containerInfo,\n    implementation: implementation\n  };\n}\n\nvar ReactVersion='16.14.0';\n\nsetAttemptUserBlockingHydration(attemptUserBlockingHydration$1);\nsetAttemptContinuousHydration(attemptContinuousHydration$1);\nsetAttemptHydrationAtCurrentPriority(attemptHydrationAtCurrentPriority$1);\nvar didWarnAboutUnstableCreatePortal=false;\n\n{\n  if(typeof Map!=='function'||// $FlowIssue Flow incorrectly thinks Map has no prototype\n  Map.prototype==null||typeof Map.prototype.forEach!=='function'||typeof Set!=='function'||// $FlowIssue Flow incorrectly thinks Set has no prototype\n  Set.prototype==null||typeof Set.prototype.clear!=='function'||typeof Set.prototype.forEach!=='function'){\n    error('React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');\n  }\n}\n\nsetRestoreImplementation(restoreControlledState$3);\nsetBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);\n\nfunction createPortal$1(children, container){\n  var key=arguments.length > 2&&arguments[2]!==undefined ? arguments[2]:null;\n\n  if(!isValidContainer(container)){\n    {\n      throw Error(\"Target container is not a DOM element.\");\n    }\n  } // TODO: pass ReactDOM portal implementation as third argument\n  // $FlowFixMe The Flow type is opaque but there's no way to actually create it.\n\n\n  return createPortal(children, container, null, key);\n}\n\nfunction renderSubtreeIntoContainer(parentComponent, element, containerNode, callback){\n\n  return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);\n}\n\nfunction unstable_createPortal(children, container){\n  var key=arguments.length > 2&&arguments[2]!==undefined ? arguments[2]:null;\n\n  {\n    if(!didWarnAboutUnstableCreatePortal){\n      didWarnAboutUnstableCreatePortal=true;\n\n      warn('The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the \"unstable_\" prefix.');\n    }\n  }\n\n  return createPortal$1(children, container, key);\n}\n\nvar Internals={\n  // Keep in sync with ReactDOMUnstableNativeDependencies.js\n  // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.\n  Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]\n};\nvar foundDevTools=injectIntoDevTools({\n  findFiberByHostInstance: getClosestInstanceFromNode,\n  bundleType:  1 ,\n  version: ReactVersion,\n  rendererPackageName: 'react-dom'\n});\n\n{\n  if(!foundDevTools&&canUseDOM&&window.top===window.self){\n    // If we're in Chrome or Firefox, provide a download link if not installed.\n    if(navigator.userAgent.indexOf('Chrome') > -1&&navigator.userAgent.indexOf('Edge')===-1||navigator.userAgent.indexOf('Firefox') > -1){\n      var protocol=window.location.protocol; // Don't warn in exotic cases like chrome-extension://.\n\n      if(/^(https?|file):$/.test(protocol)){\n        // eslint-disable-next-line react-internal/no-production-logging\n        console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol==='file:' ? '\\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq':''), 'font-weight:bold');\n      }\n    }\n  }\n}\n\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Internals;\nexports.createPortal=createPortal$1;\nexports.findDOMNode=findDOMNode;\nexports.flushSync=flushSync;\nexports.hydrate=hydrate;\nexports.render=render;\nexports.unmountComponentAtNode=unmountComponentAtNode;\nexports.unstable_batchedUpdates=batchedUpdates$1;\nexports.unstable_createPortal=unstable_createPortal;\nexports.unstable_renderSubtreeIntoContainer=renderSubtreeIntoContainer;\nexports.version=ReactVersion;\n  })();\n}\n\n\n//# sourceURL=webpack:///./node_modules/react-dom/cjs/react-dom.development.js?");
}),
"./node_modules/react-dom/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nfunction checkDCE(){\n  \n  if(\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==='undefined'||\n    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=='function'\n){\n    return;\n  }\n  if(true){\n    // This branch is unreachable because this function is only called\n    // in production, but the condition is true only in development.\n    // Therefore if the branch is still here, dead code elimination wasn't\n    // properly applied.\n    // Don't change the message. React DevTools relies on it. Also make sure\n    // this message doesn't occur elsewhere in this function, or it will cause\n    // a false positive.\n    throw new Error('^_^');\n  }\n  try {\n    // Verify that the code above has been dead code eliminated (DCE'd).\n    __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n  } catch (err){\n    // DevTools shouldn't crash React, no matter what.\n    // We should still report in case we break this code.\n    console.error(err);\n  }\n}\n\nif(false){}else{\n  module.exports=__webpack_require__( \"./node_modules/react-dom/cjs/react-dom.development.js\");\n}\n\n\n//# sourceURL=webpack:///./node_modules/react-dom/index.js?");
}),
"./node_modules/react-is/cjs/react-is.development.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\n\nif(true){\n  (function(){\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol=typeof Symbol==='function'&&Symbol.for;\nvar REACT_ELEMENT_TYPE=hasSymbol ? Symbol.for('react.element'):0xeac7;\nvar REACT_PORTAL_TYPE=hasSymbol ? Symbol.for('react.portal'):0xeaca;\nvar REACT_FRAGMENT_TYPE=hasSymbol ? Symbol.for('react.fragment'):0xeacb;\nvar REACT_STRICT_MODE_TYPE=hasSymbol ? Symbol.for('react.strict_mode'):0xeacc;\nvar REACT_PROFILER_TYPE=hasSymbol ? Symbol.for('react.profiler'):0xead2;\nvar REACT_PROVIDER_TYPE=hasSymbol ? Symbol.for('react.provider'):0xeacd;\nvar REACT_CONTEXT_TYPE=hasSymbol ? Symbol.for('react.context'):0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE=hasSymbol ? Symbol.for('react.async_mode'):0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE=hasSymbol ? Symbol.for('react.concurrent_mode'):0xeacf;\nvar REACT_FORWARD_REF_TYPE=hasSymbol ? Symbol.for('react.forward_ref'):0xead0;\nvar REACT_SUSPENSE_TYPE=hasSymbol ? Symbol.for('react.suspense'):0xead1;\nvar REACT_SUSPENSE_LIST_TYPE=hasSymbol ? Symbol.for('react.suspense_list'):0xead8;\nvar REACT_MEMO_TYPE=hasSymbol ? Symbol.for('react.memo'):0xead3;\nvar REACT_LAZY_TYPE=hasSymbol ? Symbol.for('react.lazy'):0xead4;\nvar REACT_BLOCK_TYPE=hasSymbol ? Symbol.for('react.block'):0xead9;\nvar REACT_FUNDAMENTAL_TYPE=hasSymbol ? Symbol.for('react.fundamental'):0xead5;\nvar REACT_RESPONDER_TYPE=hasSymbol ? Symbol.for('react.responder'):0xead6;\nvar REACT_SCOPE_TYPE=hasSymbol ? Symbol.for('react.scope'):0xead7;\n\nfunction isValidElementType(type){\n  return typeof type==='string'||typeof type==='function'||// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n  type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||typeof type==='object'&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object){\n  if(typeof object==='object'&&object!==null){\n    var $$typeof=object.$$typeof;\n\n    switch ($$typeof){\n      case REACT_ELEMENT_TYPE:\n        var type=object.type;\n\n        switch (type){\n          case REACT_ASYNC_MODE_TYPE:\n          case REACT_CONCURRENT_MODE_TYPE:\n          case REACT_FRAGMENT_TYPE:\n          case REACT_PROFILER_TYPE:\n          case REACT_STRICT_MODE_TYPE:\n          case REACT_SUSPENSE_TYPE:\n            return type;\n\n          default:\n            var $$typeofType=type&&type.$$typeof;\n\n            switch ($$typeofType){\n              case REACT_CONTEXT_TYPE:\n              case REACT_FORWARD_REF_TYPE:\n              case REACT_LAZY_TYPE:\n              case REACT_MEMO_TYPE:\n              case REACT_PROVIDER_TYPE:\n                return $$typeofType;\n\n              default:\n                return $$typeof;\n            }\n\n        }\n\n      case REACT_PORTAL_TYPE:\n        return $$typeof;\n    }\n  }\n\n  return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode=REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode=REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer=REACT_CONTEXT_TYPE;\nvar ContextProvider=REACT_PROVIDER_TYPE;\nvar Element=REACT_ELEMENT_TYPE;\nvar ForwardRef=REACT_FORWARD_REF_TYPE;\nvar Fragment=REACT_FRAGMENT_TYPE;\nvar Lazy=REACT_LAZY_TYPE;\nvar Memo=REACT_MEMO_TYPE;\nvar Portal=REACT_PORTAL_TYPE;\nvar Profiler=REACT_PROFILER_TYPE;\nvar StrictMode=REACT_STRICT_MODE_TYPE;\nvar Suspense=REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode=false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object){\n  {\n    if(!hasWarnedAboutDeprecatedIsAsyncMode){\n      hasWarnedAboutDeprecatedIsAsyncMode=true; // Using console['warn'] to evade Babel and ESLint\n\n      console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n    }\n  }\n\n  return isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object){\n  return typeOf(object)===REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object){\n  return typeOf(object)===REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object){\n  return typeOf(object)===REACT_PROVIDER_TYPE;\n}\nfunction isElement(object){\n  return typeof object==='object'&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object){\n  return typeOf(object)===REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object){\n  return typeOf(object)===REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object){\n  return typeOf(object)===REACT_LAZY_TYPE;\n}\nfunction isMemo(object){\n  return typeOf(object)===REACT_MEMO_TYPE;\n}\nfunction isPortal(object){\n  return typeOf(object)===REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object){\n  return typeOf(object)===REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object){\n  return typeOf(object)===REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object){\n  return typeOf(object)===REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode=AsyncMode;\nexports.ConcurrentMode=ConcurrentMode;\nexports.ContextConsumer=ContextConsumer;\nexports.ContextProvider=ContextProvider;\nexports.Element=Element;\nexports.ForwardRef=ForwardRef;\nexports.Fragment=Fragment;\nexports.Lazy=Lazy;\nexports.Memo=Memo;\nexports.Portal=Portal;\nexports.Profiler=Profiler;\nexports.StrictMode=StrictMode;\nexports.Suspense=Suspense;\nexports.isAsyncMode=isAsyncMode;\nexports.isConcurrentMode=isConcurrentMode;\nexports.isContextConsumer=isContextConsumer;\nexports.isContextProvider=isContextProvider;\nexports.isElement=isElement;\nexports.isForwardRef=isForwardRef;\nexports.isFragment=isFragment;\nexports.isLazy=isLazy;\nexports.isMemo=isMemo;\nexports.isPortal=isPortal;\nexports.isProfiler=isProfiler;\nexports.isStrictMode=isStrictMode;\nexports.isSuspense=isSuspense;\nexports.isValidElementType=isValidElementType;\nexports.typeOf=typeOf;\n  })();\n}\n\n\n//# sourceURL=webpack:///./node_modules/react-is/cjs/react-is.development.js?");
}),
"./node_modules/react-is/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nif(false){}else{\n  module.exports=__webpack_require__( \"./node_modules/react-is/cjs/react-is.development.js\");\n}\n\n\n//# sourceURL=webpack:///./node_modules/react-is/index.js?");
}),
"./node_modules/react/cjs/react.development.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\n\nif(true){\n  (function(){\n'use strict';\n\nvar _assign=__webpack_require__( \"./node_modules/object-assign/index.js\");\nvar checkPropTypes=__webpack_require__( \"./node_modules/prop-types/checkPropTypes.js\");\n\nvar ReactVersion='16.14.0';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol=typeof Symbol==='function'&&Symbol.for;\nvar REACT_ELEMENT_TYPE=hasSymbol ? Symbol.for('react.element'):0xeac7;\nvar REACT_PORTAL_TYPE=hasSymbol ? Symbol.for('react.portal'):0xeaca;\nvar REACT_FRAGMENT_TYPE=hasSymbol ? Symbol.for('react.fragment'):0xeacb;\nvar REACT_STRICT_MODE_TYPE=hasSymbol ? Symbol.for('react.strict_mode'):0xeacc;\nvar REACT_PROFILER_TYPE=hasSymbol ? Symbol.for('react.profiler'):0xead2;\nvar REACT_PROVIDER_TYPE=hasSymbol ? Symbol.for('react.provider'):0xeacd;\nvar REACT_CONTEXT_TYPE=hasSymbol ? Symbol.for('react.context'):0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\nvar REACT_CONCURRENT_MODE_TYPE=hasSymbol ? Symbol.for('react.concurrent_mode'):0xeacf;\nvar REACT_FORWARD_REF_TYPE=hasSymbol ? Symbol.for('react.forward_ref'):0xead0;\nvar REACT_SUSPENSE_TYPE=hasSymbol ? Symbol.for('react.suspense'):0xead1;\nvar REACT_SUSPENSE_LIST_TYPE=hasSymbol ? Symbol.for('react.suspense_list'):0xead8;\nvar REACT_MEMO_TYPE=hasSymbol ? Symbol.for('react.memo'):0xead3;\nvar REACT_LAZY_TYPE=hasSymbol ? Symbol.for('react.lazy'):0xead4;\nvar REACT_BLOCK_TYPE=hasSymbol ? Symbol.for('react.block'):0xead9;\nvar REACT_FUNDAMENTAL_TYPE=hasSymbol ? Symbol.for('react.fundamental'):0xead5;\nvar REACT_RESPONDER_TYPE=hasSymbol ? Symbol.for('react.responder'):0xead6;\nvar REACT_SCOPE_TYPE=hasSymbol ? Symbol.for('react.scope'):0xead7;\nvar MAYBE_ITERATOR_SYMBOL=typeof Symbol==='function'&&Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL='@@iterator';\nfunction getIteratorFn(maybeIterable){\n  if(maybeIterable===null||typeof maybeIterable!=='object'){\n    return null;\n  }\n\n  var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n  if(typeof maybeIterator==='function'){\n    return maybeIterator;\n  }\n\n  return null;\n}\n\n\nvar ReactCurrentDispatcher={\n  \n  current: null\n};\n\n\nvar ReactCurrentBatchConfig={\n  suspense: null\n};\n\n\nvar ReactCurrentOwner={\n  \n  current: null\n};\n\nvar BEFORE_SLASH_RE=/^(.*)[\\\\\\/]/;\nfunction describeComponentFrame (name, source, ownerName){\n  var sourceInfo='';\n\n  if(source){\n    var path=source.fileName;\n    var fileName=path.replace(BEFORE_SLASH_RE, '');\n\n    {\n      // In DEV, include code for a common special case:\n      // prefer \"folder/index.js\" instead of just \"index.js\".\n      if(/^index\\./.test(fileName)){\n        var match=path.match(BEFORE_SLASH_RE);\n\n        if(match){\n          var pathBeforeSlash=match[1];\n\n          if(pathBeforeSlash){\n            var folderName=pathBeforeSlash.replace(BEFORE_SLASH_RE, '');\n            fileName=folderName + '/' + fileName;\n          }\n        }\n      }\n    }\n\n    sourceInfo=' (at ' + fileName + ':' + source.lineNumber + ')';\n  }else if(ownerName){\n    sourceInfo=' (created by ' + ownerName + ')';\n  }\n\n  return '\\n    in ' + (name||'Unknown') + sourceInfo;\n}\n\nvar Resolved=1;\nfunction refineResolvedLazyComponent(lazyComponent){\n  return lazyComponent._status===Resolved ? lazyComponent._result:null;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName){\n  var functionName=innerType.displayName||innerType.name||'';\n  return outerType.displayName||(functionName!=='' ? wrapperName + \"(\" + functionName + \")\":wrapperName);\n}\n\nfunction getComponentName(type){\n  if(type==null){\n    // Host root, text node or just invalid type.\n    return null;\n  }\n\n  {\n    if(typeof type.tag==='number'){\n      error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');\n    }\n  }\n\n  if(typeof type==='function'){\n    return type.displayName||type.name||null;\n  }\n\n  if(typeof type==='string'){\n    return type;\n  }\n\n  switch (type){\n    case REACT_FRAGMENT_TYPE:\n      return 'Fragment';\n\n    case REACT_PORTAL_TYPE:\n      return 'Portal';\n\n    case REACT_PROFILER_TYPE:\n      return \"Profiler\";\n\n    case REACT_STRICT_MODE_TYPE:\n      return 'StrictMode';\n\n    case REACT_SUSPENSE_TYPE:\n      return 'Suspense';\n\n    case REACT_SUSPENSE_LIST_TYPE:\n      return 'SuspenseList';\n  }\n\n  if(typeof type==='object'){\n    switch (type.$$typeof){\n      case REACT_CONTEXT_TYPE:\n        return 'Context.Consumer';\n\n      case REACT_PROVIDER_TYPE:\n        return 'Context.Provider';\n\n      case REACT_FORWARD_REF_TYPE:\n        return getWrappedName(type, type.render, 'ForwardRef');\n\n      case REACT_MEMO_TYPE:\n        return getComponentName(type.type);\n\n      case REACT_BLOCK_TYPE:\n        return getComponentName(type.render);\n\n      case REACT_LAZY_TYPE:\n        {\n          var thenable=type;\n          var resolvedThenable=refineResolvedLazyComponent(thenable);\n\n          if(resolvedThenable){\n            return getComponentName(resolvedThenable);\n          }\n\n          break;\n        }\n    }\n  }\n\n  return null;\n}\n\nvar ReactDebugCurrentFrame={};\nvar currentlyValidatingElement=null;\nfunction setCurrentlyValidatingElement(element){\n  {\n    currentlyValidatingElement=element;\n  }\n}\n\n{\n  // Stack implementation injected by the current renderer.\n  ReactDebugCurrentFrame.getCurrentStack=null;\n\n  ReactDebugCurrentFrame.getStackAddendum=function (){\n    var stack=''; // Add an extra top frame while an element is being validated\n\n    if(currentlyValidatingElement){\n      var name=getComponentName(currentlyValidatingElement.type);\n      var owner=currentlyValidatingElement._owner;\n      stack +=describeComponentFrame(name, currentlyValidatingElement._source, owner&&getComponentName(owner.type));\n    } // Delegate to the injected renderer-specific implementation\n\n\n    var impl=ReactDebugCurrentFrame.getCurrentStack;\n\n    if(impl){\n      stack +=impl()||'';\n    }\n\n    return stack;\n  };\n}\n\n\nvar IsSomeRendererActing={\n  current: false\n};\n\nvar ReactSharedInternals={\n  ReactCurrentDispatcher: ReactCurrentDispatcher,\n  ReactCurrentBatchConfig: ReactCurrentBatchConfig,\n  ReactCurrentOwner: ReactCurrentOwner,\n  IsSomeRendererActing: IsSomeRendererActing,\n  // Used by renderers to avoid bundling object-assign twice in UMD bundles:\n  assign: _assign\n};\n\n{\n  _assign(ReactSharedInternals, {\n    // These should not be included in production.\n    ReactDebugCurrentFrame: ReactDebugCurrentFrame,\n    // Shim for React DOM 16.0.0 which still destructured (but not used) this.\n    // TODO: remove in React 17.0.\n    ReactComponentTreeHook: {}\n  });\n}\n\n// by calls to these methods by a Babel plugin.\n//\n// In PROD (or in packages without access to React internals),\n// they are left as they are instead.\n\nfunction warn(format){\n  {\n    for (var _len=arguments.length, args=new Array(_len > 1 ? _len - 1:0), _key=1; _key < _len; _key++){\n      args[_key - 1]=arguments[_key];\n    }\n\n    printWarning('warn', format, args);\n  }\n}\nfunction error(format){\n  {\n    for (var _len2=arguments.length, args=new Array(_len2 > 1 ? _len2 - 1:0), _key2=1; _key2 < _len2; _key2++){\n      args[_key2 - 1]=arguments[_key2];\n    }\n\n    printWarning('error', format, args);\n  }\n}\n\nfunction printWarning(level, format, args){\n  // When changing this logic, you might want to also\n  // update consoleWithStackDev.www.js as well.\n  {\n    var hasExistingStack=args.length > 0&&typeof args[args.length - 1]==='string'&&args[args.length - 1].indexOf('\\n    in')===0;\n\n    if(!hasExistingStack){\n      var ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame;\n      var stack=ReactDebugCurrentFrame.getStackAddendum();\n\n      if(stack!==''){\n        format +='%s';\n        args=args.concat([stack]);\n      }\n    }\n\n    var argsWithFormat=args.map(function (item){\n      return '' + item;\n    });// Careful: RN currently depends on this prefix\n\n    argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n    // breaks IE9: https://github.com/facebook/react/issues/13610\n    // eslint-disable-next-line react-internal/no-production-logging\n\n    Function.prototype.apply.call(console[level], console, argsWithFormat);\n\n    try {\n      // --- Welcome to debugging React ---\n      // This error was thrown as a convenience so that you can use this stack\n      // to find the callsite that caused this warning to fire.\n      var argIndex=0;\n      var message='Warning: ' + format.replace(/%s/g, function (){\n        return args[argIndex++];\n      });\n      throw new Error(message);\n    } catch (x){}\n  }\n}\n\nvar didWarnStateUpdateForUnmountedComponent={};\n\nfunction warnNoop(publicInstance, callerName){\n  {\n    var _constructor=publicInstance.constructor;\n    var componentName=_constructor&&(_constructor.displayName||_constructor.name)||'ReactClass';\n    var warningKey=componentName + \".\" + callerName;\n\n    if(didWarnStateUpdateForUnmountedComponent[warningKey]){\n      return;\n    }\n\n    error(\"Can't call %s on a component that is not yet mounted. \" + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state={};` ' + 'class property with the desired state in the %s component.', callerName, componentName);\n\n    didWarnStateUpdateForUnmountedComponent[warningKey]=true;\n  }\n}\n\n\n\nvar ReactNoopUpdateQueue={\n  \n  isMounted: function (publicInstance){\n    return false;\n  },\n\n  \n  enqueueForceUpdate: function (publicInstance, callback, callerName){\n    warnNoop(publicInstance, 'forceUpdate');\n  },\n\n  \n  enqueueReplaceState: function (publicInstance, completeState, callback, callerName){\n    warnNoop(publicInstance, 'replaceState');\n  },\n\n  \n  enqueueSetState: function (publicInstance, partialState, callback, callerName){\n    warnNoop(publicInstance, 'setState');\n  }\n};\n\nvar emptyObject={};\n\n{\n  Object.freeze(emptyObject);\n}\n\n\n\nfunction Component(props, context, updater){\n  this.props=props;\n  this.context=context; // If a component has string refs, we will assign a different object later.\n\n  this.refs=emptyObject; // We initialize the default updater but the real one gets injected by the\n  // renderer.\n\n  this.updater=updater||ReactNoopUpdateQueue;\n}\n\nComponent.prototype.isReactComponent={};\n\n\nComponent.prototype.setState=function (partialState, callback){\n  if(!(typeof partialState==='object'||typeof partialState==='function'||partialState==null)){\n    {\n      throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");\n    }\n  }\n\n  this.updater.enqueueSetState(this, partialState, callback, 'setState');\n};\n\n\n\nComponent.prototype.forceUpdate=function (callback){\n  this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');\n};\n\n\n\n{\n  var deprecatedAPIs={\n    isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n    replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n  };\n\n  var defineDeprecationWarning=function (methodName, info){\n    Object.defineProperty(Component.prototype, methodName, {\n      get: function (){\n        warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n\n        return undefined;\n      }\n    });\n  };\n\n  for (var fnName in deprecatedAPIs){\n    if(deprecatedAPIs.hasOwnProperty(fnName)){\n      defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n    }\n  }\n}\n\nfunction ComponentDummy(){}\n\nComponentDummy.prototype=Component.prototype;\n\n\nfunction PureComponent(props, context, updater){\n  this.props=props;\n  this.context=context; // If a component has string refs, we will assign a different object later.\n\n  this.refs=emptyObject;\n  this.updater=updater||ReactNoopUpdateQueue;\n}\n\nvar pureComponentPrototype=PureComponent.prototype=new ComponentDummy();\npureComponentPrototype.constructor=PureComponent; // Avoid an extra prototype jump for these methods.\n\n_assign(pureComponentPrototype, Component.prototype);\n\npureComponentPrototype.isPureReactComponent=true;\n\n// an immutable object with a single mutable value\nfunction createRef(){\n  var refObject={\n    current: null\n  };\n\n  {\n    Object.seal(refObject);\n  }\n\n  return refObject;\n}\n\nvar hasOwnProperty=Object.prototype.hasOwnProperty;\nvar RESERVED_PROPS={\n  key: true,\n  ref: true,\n  __self: true,\n  __source: true\n};\nvar specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;\n\n{\n  didWarnAboutStringRefs={};\n}\n\nfunction hasValidRef(config){\n  {\n    if(hasOwnProperty.call(config, 'ref')){\n      var getter=Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n      if(getter&&getter.isReactWarning){\n        return false;\n      }\n    }\n  }\n\n  return config.ref!==undefined;\n}\n\nfunction hasValidKey(config){\n  {\n    if(hasOwnProperty.call(config, 'key')){\n      var getter=Object.getOwnPropertyDescriptor(config, 'key').get;\n\n      if(getter&&getter.isReactWarning){\n        return false;\n      }\n    }\n  }\n\n  return config.key!==undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName){\n  var warnAboutAccessingKey=function (){\n    {\n      if(!specialPropKeyWarningShown){\n        specialPropKeyWarningShown=true;\n\n        error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n      }\n    }\n  };\n\n  warnAboutAccessingKey.isReactWarning=true;\n  Object.defineProperty(props, 'key', {\n    get: warnAboutAccessingKey,\n    configurable: true\n  });\n}\n\nfunction defineRefPropWarningGetter(props, displayName){\n  var warnAboutAccessingRef=function (){\n    {\n      if(!specialPropRefWarningShown){\n        specialPropRefWarningShown=true;\n\n        error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);\n      }\n    }\n  };\n\n  warnAboutAccessingRef.isReactWarning=true;\n  Object.defineProperty(props, 'ref', {\n    get: warnAboutAccessingRef,\n    configurable: true\n  });\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config){\n  {\n    if(typeof config.ref==='string'&&ReactCurrentOwner.current&&config.__self&&ReactCurrentOwner.current.stateNode!==config.__self){\n      var componentName=getComponentName(ReactCurrentOwner.current.type);\n\n      if(!didWarnAboutStringRefs[componentName]){\n        error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);\n\n        didWarnAboutStringRefs[componentName]=true;\n      }\n    }\n  }\n}\n\n\n\nvar ReactElement=function (type, key, ref, self, source, owner, props){\n  var element={\n    // This tag allows us to uniquely identify this as a React Element\n    $$typeof: REACT_ELEMENT_TYPE,\n    // Built-in properties that belong on the element\n    type: type,\n    key: key,\n    ref: ref,\n    props: props,\n    // Record the component responsible for creating this element.\n    _owner: owner\n  };\n\n  {\n    // The validation flag is currently mutative. We put it on\n    // an external backing store so that we can freeze the whole object.\n    // This can be replaced with a WeakMap once they are implemented in\n    // commonly used development environments.\n    element._store={}; // To make comparing ReactElements easier for testing purposes, we make\n    // the validation flag non-enumerable (where possible, which should\n    // include every environment we run tests in), so the test framework\n    // ignores it.\n\n    Object.defineProperty(element._store, 'validated', {\n      configurable: false,\n      enumerable: false,\n      writable: true,\n      value: false\n    });// self and source are DEV only properties.\n\n    Object.defineProperty(element, '_self', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: self\n    });// Two elements created in two different places should be considered\n    // equal for testing purposes and therefore we hide it from enumeration.\n\n    Object.defineProperty(element, '_source', {\n      configurable: false,\n      enumerable: false,\n      writable: false,\n      value: source\n    });\n\n    if(Object.freeze){\n      Object.freeze(element.props);\n      Object.freeze(element);\n    }\n  }\n\n  return element;\n};\n\n\nfunction createElement(type, config, children){\n  var propName; // Reserved names are extracted\n\n  var props={};\n  var key=null;\n  var ref=null;\n  var self=null;\n  var source=null;\n\n  if(config!=null){\n    if(hasValidRef(config)){\n      ref=config.ref;\n\n      {\n        warnIfStringRefCannotBeAutoConverted(config);\n      }\n    }\n\n    if(hasValidKey(config)){\n      key='' + config.key;\n    }\n\n    self=config.__self===undefined ? null:config.__self;\n    source=config.__source===undefined ? null:config.__source; // Remaining properties are added to a new props object\n\n    for (propName in config){\n      if(hasOwnProperty.call(config, propName)&&!RESERVED_PROPS.hasOwnProperty(propName)){\n        props[propName]=config[propName];\n      }\n    }\n  } // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n\n\n  var childrenLength=arguments.length - 2;\n\n  if(childrenLength===1){\n    props.children=children;\n  }else if(childrenLength > 1){\n    var childArray=Array(childrenLength);\n\n    for (var i=0; i < childrenLength; i++){\n      childArray[i]=arguments[i + 2];\n    }\n\n    {\n      if(Object.freeze){\n        Object.freeze(childArray);\n      }\n    }\n\n    props.children=childArray;\n  } // Resolve default props\n\n\n  if(type&&type.defaultProps){\n    var defaultProps=type.defaultProps;\n\n    for (propName in defaultProps){\n      if(props[propName]===undefined){\n        props[propName]=defaultProps[propName];\n      }\n    }\n  }\n\n  {\n    if(key||ref){\n      var displayName=typeof type==='function' ? type.displayName||type.name||'Unknown':type;\n\n      if(key){\n        defineKeyPropWarningGetter(props, displayName);\n      }\n\n      if(ref){\n        defineRefPropWarningGetter(props, displayName);\n      }\n    }\n  }\n\n  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n}\nfunction cloneAndReplaceKey(oldElement, newKey){\n  var newElement=ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n  return newElement;\n}\n\n\nfunction cloneElement(element, config, children){\n  if(!!(element===null||element===undefined)){\n    {\n      throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \" + element + \".\");\n    }\n  }\n\n  var propName; // Original props are copied\n\n  var props=_assign({}, element.props); // Reserved names are extracted\n\n\n  var key=element.key;\n  var ref=element.ref; // Self is preserved since the owner is preserved.\n\n  var self=element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n  // transpiler, and the original source is probably a better indicator of the\n  // true owner.\n\n  var source=element._source; // Owner will be preserved, unless ref is overridden\n\n  var owner=element._owner;\n\n  if(config!=null){\n    if(hasValidRef(config)){\n      // Silently steal the ref from the parent.\n      ref=config.ref;\n      owner=ReactCurrentOwner.current;\n    }\n\n    if(hasValidKey(config)){\n      key='' + config.key;\n    } // Remaining properties override existing props\n\n\n    var defaultProps;\n\n    if(element.type&&element.type.defaultProps){\n      defaultProps=element.type.defaultProps;\n    }\n\n    for (propName in config){\n      if(hasOwnProperty.call(config, propName)&&!RESERVED_PROPS.hasOwnProperty(propName)){\n        if(config[propName]===undefined&&defaultProps!==undefined){\n          // Resolve default props\n          props[propName]=defaultProps[propName];\n        }else{\n          props[propName]=config[propName];\n        }\n      }\n    }\n  } // Children can be more than one argument, and those are transferred onto\n  // the newly allocated props object.\n\n\n  var childrenLength=arguments.length - 2;\n\n  if(childrenLength===1){\n    props.children=children;\n  }else if(childrenLength > 1){\n    var childArray=Array(childrenLength);\n\n    for (var i=0; i < childrenLength; i++){\n      childArray[i]=arguments[i + 2];\n    }\n\n    props.children=childArray;\n  }\n\n  return ReactElement(element.type, key, ref, self, source, owner, props);\n}\n\n\nfunction isValidElement(object){\n  return typeof object==='object'&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE;\n}\n\nvar SEPARATOR='.';\nvar SUBSEPARATOR=':';\n\n\nfunction escape(key){\n  var escapeRegex=/[=:]/g;\n  var escaperLookup={\n    '=': '=0',\n    ':': '=2'\n  };\n  var escapedString=('' + key).replace(escapeRegex, function (match){\n    return escaperLookup[match];\n  });\n  return '$' + escapedString;\n}\n\n\n\nvar didWarnAboutMaps=false;\nvar userProvidedKeyEscapeRegex=/\\/+/g;\n\nfunction escapeUserProvidedKey(text){\n  return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');\n}\n\nvar POOL_SIZE=10;\nvar traverseContextPool=[];\n\nfunction getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext){\n  if(traverseContextPool.length){\n    var traverseContext=traverseContextPool.pop();\n    traverseContext.result=mapResult;\n    traverseContext.keyPrefix=keyPrefix;\n    traverseContext.func=mapFunction;\n    traverseContext.context=mapContext;\n    traverseContext.count=0;\n    return traverseContext;\n  }else{\n    return {\n      result: mapResult,\n      keyPrefix: keyPrefix,\n      func: mapFunction,\n      context: mapContext,\n      count: 0\n    };\n  }\n}\n\nfunction releaseTraverseContext(traverseContext){\n  traverseContext.result=null;\n  traverseContext.keyPrefix=null;\n  traverseContext.func=null;\n  traverseContext.context=null;\n  traverseContext.count=0;\n\n  if(traverseContextPool.length < POOL_SIZE){\n    traverseContextPool.push(traverseContext);\n  }\n}\n\n\n\nfunction traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext){\n  var type=typeof children;\n\n  if(type==='undefined'||type==='boolean'){\n    // All of the above are perceived as null.\n    children=null;\n  }\n\n  var invokeCallback=false;\n\n  if(children===null){\n    invokeCallback=true;\n  }else{\n    switch (type){\n      case 'string':\n      case 'number':\n        invokeCallback=true;\n        break;\n\n      case 'object':\n        switch (children.$$typeof){\n          case REACT_ELEMENT_TYPE:\n          case REACT_PORTAL_TYPE:\n            invokeCallback=true;\n        }\n\n    }\n  }\n\n  if(invokeCallback){\n    callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array\n    // so that it's consistent if the number of children grows.\n    nameSoFar==='' ? SEPARATOR + getComponentKey(children, 0):nameSoFar);\n    return 1;\n  }\n\n  var child;\n  var nextName;\n  var subtreeCount=0; // Count of children found in the current subtree.\n\n  var nextNamePrefix=nameSoFar==='' ? SEPARATOR:nameSoFar + SUBSEPARATOR;\n\n  if(Array.isArray(children)){\n    for (var i=0; i < children.length; i++){\n      child=children[i];\n      nextName=nextNamePrefix + getComponentKey(child, i);\n      subtreeCount +=traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n    }\n  }else{\n    var iteratorFn=getIteratorFn(children);\n\n    if(typeof iteratorFn==='function'){\n\n      {\n        // Warn about using Maps as children\n        if(iteratorFn===children.entries){\n          if(!didWarnAboutMaps){\n            warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');\n          }\n\n          didWarnAboutMaps=true;\n        }\n      }\n\n      var iterator=iteratorFn.call(children);\n      var step;\n      var ii=0;\n\n      while (!(step=iterator.next()).done){\n        child=step.value;\n        nextName=nextNamePrefix + getComponentKey(child, ii++);\n        subtreeCount +=traverseAllChildrenImpl(child, nextName, callback, traverseContext);\n      }\n    }else if(type==='object'){\n      var addendum='';\n\n      {\n        addendum=' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();\n      }\n\n      var childrenString='' + children;\n\n      {\n        {\n          throw Error(\"Objects are not valid as a React child (found: \" + (childrenString==='[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}':childrenString) + \").\" + addendum);\n        }\n      }\n    }\n  }\n\n  return subtreeCount;\n}\n\n\n\nfunction traverseAllChildren(children, callback, traverseContext){\n  if(children==null){\n    return 0;\n  }\n\n  return traverseAllChildrenImpl(children, '', callback, traverseContext);\n}\n\n\n\nfunction getComponentKey(component, index){\n  // Do some typechecking here since we call this blindly. We want to ensure\n  // that we don't block potential future ES APIs.\n  if(typeof component==='object'&&component!==null&&component.key!=null){\n    // Explicit key\n    return escape(component.key);\n  } // Implicit key determined by the index in the set\n\n\n  return index.toString(36);\n}\n\nfunction forEachSingleChild(bookKeeping, child, name){\n  var func=bookKeeping.func,\n      context=bookKeeping.context;\n  func.call(context, child, bookKeeping.count++);\n}\n/**\n * Iterates through children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenforeach\n *\n * The provided forEachFunc(child, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} forEachFunc\n * @param {*} forEachContext Context for forEachContext.\n */\n\n\nfunction forEachChildren(children, forEachFunc, forEachContext){\n  if(children==null){\n    return children;\n  }\n\n  var traverseContext=getPooledTraverseContext(null, null, forEachFunc, forEachContext);\n  traverseAllChildren(children, forEachSingleChild, traverseContext);\n  releaseTraverseContext(traverseContext);\n}\n\nfunction mapSingleChildIntoContext(bookKeeping, child, childKey){\n  var result=bookKeeping.result,\n      keyPrefix=bookKeeping.keyPrefix,\n      func=bookKeeping.func,\n      context=bookKeeping.context;\n  var mappedChild=func.call(context, child, bookKeeping.count++);\n\n  if(Array.isArray(mappedChild)){\n    mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c){\n      return c;\n    });\n  }else if(mappedChild!=null){\n    if(isValidElement(mappedChild)){\n      mappedChild=cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as\n      // traverseAllChildren used to do for objects as children\n      keyPrefix + (mappedChild.key&&(!child||child.key!==mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/':'') + childKey);\n    }\n\n    result.push(mappedChild);\n  }\n}\n\nfunction mapIntoWithKeyPrefixInternal(children, array, prefix, func, context){\n  var escapedPrefix='';\n\n  if(prefix!=null){\n    escapedPrefix=escapeUserProvidedKey(prefix) + '/';\n  }\n\n  var traverseContext=getPooledTraverseContext(array, escapedPrefix, func, context);\n  traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);\n  releaseTraverseContext(traverseContext);\n}\n/**\n * Maps children that are typically specified as `props.children`.\n *\n * See https://reactjs.org/docs/react-api.html#reactchildrenmap\n *\n * The provided mapFunction(child, key, index) will be called for each\n * leaf child.\n *\n * @param {?*} children Children tree container.\n * @param {function(*, int)} func The map function.\n * @param {*} context Context for mapFunction.\n * @return {object} Object containing the ordered map of results.\n */\n\n\nfunction mapChildren(children, func, context){\n  if(children==null){\n    return children;\n  }\n\n  var result=[];\n  mapIntoWithKeyPrefixInternal(children, result, null, func, context);\n  return result;\n}\n\n\n\nfunction countChildren(children){\n  return traverseAllChildren(children, function (){\n    return null;\n  }, null);\n}\n\n\n\nfunction toArray(children){\n  var result=[];\n  mapIntoWithKeyPrefixInternal(children, result, null, function (child){\n    return child;\n  });\n  return result;\n}\n\n\n\nfunction onlyChild(children){\n  if(!isValidElement(children)){\n    {\n      throw Error(\"React.Children.only expected to receive a single React element child.\");\n    }\n  }\n\n  return children;\n}\n\nfunction createContext(defaultValue, calculateChangedBits){\n  if(calculateChangedBits===undefined){\n    calculateChangedBits=null;\n  }else{\n    {\n      if(calculateChangedBits!==null&&typeof calculateChangedBits!=='function'){\n        error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);\n      }\n    }\n  }\n\n  var context={\n    $$typeof: REACT_CONTEXT_TYPE,\n    _calculateChangedBits: calculateChangedBits,\n    // As a workaround to support multiple concurrent renderers, we categorize\n    // some renderers as primary and others as secondary. We only expect\n    // there to be two concurrent renderers at most: React Native (primary) and\n    // Fabric (secondary); React DOM (primary) and React ART (secondary).\n    // Secondary renderers store their context values on separate fields.\n    _currentValue: defaultValue,\n    _currentValue2: defaultValue,\n    // Used to track how many concurrent renderers this context currently\n    // supports within in a single renderer. Such as parallel server rendering.\n    _threadCount: 0,\n    // These are circular\n    Provider: null,\n    Consumer: null\n  };\n  context.Provider={\n    $$typeof: REACT_PROVIDER_TYPE,\n    _context: context\n  };\n  var hasWarnedAboutUsingNestedContextConsumers=false;\n  var hasWarnedAboutUsingConsumerProvider=false;\n\n  {\n    // A separate object, but proxies back to the original context object for\n    // backwards compatibility. It has a different $$typeof, so we can properly\n    // warn for the incorrect usage of Context as a Consumer.\n    var Consumer={\n      $$typeof: REACT_CONTEXT_TYPE,\n      _context: context,\n      _calculateChangedBits: context._calculateChangedBits\n    }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here\n\n    Object.defineProperties(Consumer, {\n      Provider: {\n        get: function (){\n          if(!hasWarnedAboutUsingConsumerProvider){\n            hasWarnedAboutUsingConsumerProvider=true;\n\n            error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');\n          }\n\n          return context.Provider;\n        },\n        set: function (_Provider){\n          context.Provider=_Provider;\n        }\n      },\n      _currentValue: {\n        get: function (){\n          return context._currentValue;\n        },\n        set: function (_currentValue){\n          context._currentValue=_currentValue;\n        }\n      },\n      _currentValue2: {\n        get: function (){\n          return context._currentValue2;\n        },\n        set: function (_currentValue2){\n          context._currentValue2=_currentValue2;\n        }\n      },\n      _threadCount: {\n        get: function (){\n          return context._threadCount;\n        },\n        set: function (_threadCount){\n          context._threadCount=_threadCount;\n        }\n      },\n      Consumer: {\n        get: function (){\n          if(!hasWarnedAboutUsingNestedContextConsumers){\n            hasWarnedAboutUsingNestedContextConsumers=true;\n\n            error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');\n          }\n\n          return context.Consumer;\n        }\n      }\n    });// $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty\n\n    context.Consumer=Consumer;\n  }\n\n  {\n    context._currentRenderer=null;\n    context._currentRenderer2=null;\n  }\n\n  return context;\n}\n\nfunction lazy(ctor){\n  var lazyType={\n    $$typeof: REACT_LAZY_TYPE,\n    _ctor: ctor,\n    // React uses these fields to store the result.\n    _status: -1,\n    _result: null\n  };\n\n  {\n    // In production, this would just set it on the object.\n    var defaultProps;\n    var propTypes;\n    Object.defineProperties(lazyType, {\n      defaultProps: {\n        configurable: true,\n        get: function (){\n          return defaultProps;\n        },\n        set: function (newDefaultProps){\n          error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n          defaultProps=newDefaultProps; // Match production behavior more closely:\n\n          Object.defineProperty(lazyType, 'defaultProps', {\n            enumerable: true\n          });\n        }\n      },\n      propTypes: {\n        configurable: true,\n        get: function (){\n          return propTypes;\n        },\n        set: function (newPropTypes){\n          error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');\n\n          propTypes=newPropTypes; // Match production behavior more closely:\n\n          Object.defineProperty(lazyType, 'propTypes', {\n            enumerable: true\n          });\n        }\n      }\n    });\n  }\n\n  return lazyType;\n}\n\nfunction forwardRef(render){\n  {\n    if(render!=null&&render.$$typeof===REACT_MEMO_TYPE){\n      error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');\n    }else if(typeof render!=='function'){\n      error('forwardRef requires a render function but was given %s.', render===null ? 'null':typeof render);\n    }else{\n      if(render.length!==0&&render.length!==2){\n        error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length===1 ? 'Did you forget to use the ref parameter?':'Any additional parameter will be undefined.');\n      }\n    }\n\n    if(render!=null){\n      if(render.defaultProps!=null||render.propTypes!=null){\n        error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');\n      }\n    }\n  }\n\n  return {\n    $$typeof: REACT_FORWARD_REF_TYPE,\n    render: render\n  };\n}\n\nfunction isValidElementType(type){\n  return typeof type==='string'||typeof type==='function'||// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n  type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||typeof type==='object'&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE);\n}\n\nfunction memo(type, compare){\n  {\n    if(!isValidElementType(type)){\n      error('memo: The first argument must be a component. Instead ' + 'received: %s', type===null ? 'null':typeof type);\n    }\n  }\n\n  return {\n    $$typeof: REACT_MEMO_TYPE,\n    type: type,\n    compare: compare===undefined ? null:compare\n  };\n}\n\nfunction resolveDispatcher(){\n  var dispatcher=ReactCurrentDispatcher.current;\n\n  if(!(dispatcher!==null)){\n    {\n      throw Error(\"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.\");\n    }\n  }\n\n  return dispatcher;\n}\n\nfunction useContext(Context, unstable_observedBits){\n  var dispatcher=resolveDispatcher();\n\n  {\n    if(unstable_observedBits!==undefined){\n      error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits==='number'&&Array.isArray(arguments[2]) ? '\\n\\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks':'');\n    } // TODO: add a more generic warning for invalid values.\n\n\n    if(Context._context!==undefined){\n      var realContext=Context._context; // Don't deduplicate because this legitimately causes bugs\n      // and nobody should be using this in existing code.\n\n      if(realContext.Consumer===Context){\n        error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');\n      }else if(realContext.Provider===Context){\n        error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');\n      }\n    }\n  }\n\n  return dispatcher.useContext(Context, unstable_observedBits);\n}\nfunction useState(initialState){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useState(initialState);\n}\nfunction useReducer(reducer, initialArg, init){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useReducer(reducer, initialArg, init);\n}\nfunction useRef(initialValue){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useRef(initialValue);\n}\nfunction useEffect(create, deps){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useEffect(create, deps);\n}\nfunction useLayoutEffect(create, deps){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useLayoutEffect(create, deps);\n}\nfunction useCallback(callback, deps){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useCallback(callback, deps);\n}\nfunction useMemo(create, deps){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useMemo(create, deps);\n}\nfunction useImperativeHandle(ref, create, deps){\n  var dispatcher=resolveDispatcher();\n  return dispatcher.useImperativeHandle(ref, create, deps);\n}\nfunction useDebugValue(value, formatterFn){\n  {\n    var dispatcher=resolveDispatcher();\n    return dispatcher.useDebugValue(value, formatterFn);\n  }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n  propTypesMisspellWarningShown=false;\n}\n\nfunction getDeclarationErrorAddendum(){\n  if(ReactCurrentOwner.current){\n    var name=getComponentName(ReactCurrentOwner.current.type);\n\n    if(name){\n      return '\\n\\nCheck the render method of `' + name + '`.';\n    }\n  }\n\n  return '';\n}\n\nfunction getSourceInfoErrorAddendum(source){\n  if(source!==undefined){\n    var fileName=source.fileName.replace(/^.*[\\\\\\/]/, '');\n    var lineNumber=source.lineNumber;\n    return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n  }\n\n  return '';\n}\n\nfunction getSourceInfoErrorAddendumForProps(elementProps){\n  if(elementProps!==null&&elementProps!==undefined){\n    return getSourceInfoErrorAddendum(elementProps.__source);\n  }\n\n  return '';\n}\n\n\n\nvar ownerHasKeyUseWarning={};\n\nfunction getCurrentComponentErrorInfo(parentType){\n  var info=getDeclarationErrorAddendum();\n\n  if(!info){\n    var parentName=typeof parentType==='string' ? parentType:parentType.displayName||parentType.name;\n\n    if(parentName){\n      info=\"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n    }\n  }\n\n  return info;\n}\n\n\n\nfunction validateExplicitKey(element, parentType){\n  if(!element._store||element._store.validated||element.key!=null){\n    return;\n  }\n\n  element._store.validated=true;\n  var currentComponentErrorInfo=getCurrentComponentErrorInfo(parentType);\n\n  if(ownerHasKeyUseWarning[currentComponentErrorInfo]){\n    return;\n  }\n\n  ownerHasKeyUseWarning[currentComponentErrorInfo]=true; // Usually the current owner is the offender, but if it accepts children as a\n  // property, it may be the creator of the child that's responsible for\n  // assigning it a key.\n\n  var childOwner='';\n\n  if(element&&element._owner&&element._owner!==ReactCurrentOwner.current){\n    // Give the component that originally created this child.\n    childOwner=\" It was passed a child from \" + getComponentName(element._owner.type) + \".\";\n  }\n\n  setCurrentlyValidatingElement(element);\n\n  {\n    error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);\n  }\n\n  setCurrentlyValidatingElement(null);\n}\n\n\n\nfunction validateChildKeys(node, parentType){\n  if(typeof node!=='object'){\n    return;\n  }\n\n  if(Array.isArray(node)){\n    for (var i=0; i < node.length; i++){\n      var child=node[i];\n\n      if(isValidElement(child)){\n        validateExplicitKey(child, parentType);\n      }\n    }\n  }else if(isValidElement(node)){\n    // This element was passed in a valid location.\n    if(node._store){\n      node._store.validated=true;\n    }\n  }else if(node){\n    var iteratorFn=getIteratorFn(node);\n\n    if(typeof iteratorFn==='function'){\n      // Entry iterators used to provide implicit keys,\n      // but now we print a separate warning for them later.\n      if(iteratorFn!==node.entries){\n        var iterator=iteratorFn.call(node);\n        var step;\n\n        while (!(step=iterator.next()).done){\n          if(isValidElement(step.value)){\n            validateExplicitKey(step.value, parentType);\n          }\n        }\n      }\n    }\n  }\n}\n\n\n\nfunction validatePropTypes(element){\n  {\n    var type=element.type;\n\n    if(type===null||type===undefined||typeof type==='string'){\n      return;\n    }\n\n    var name=getComponentName(type);\n    var propTypes;\n\n    if(typeof type==='function'){\n      propTypes=type.propTypes;\n    }else if(typeof type==='object'&&(type.$$typeof===REACT_FORWARD_REF_TYPE||// Note: Memo only checks outer props here.\n    // Inner props are checked in the reconciler.\n    type.$$typeof===REACT_MEMO_TYPE)){\n      propTypes=type.propTypes;\n    }else{\n      return;\n    }\n\n    if(propTypes){\n      setCurrentlyValidatingElement(element);\n      checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);\n      setCurrentlyValidatingElement(null);\n    }else if(type.PropTypes!==undefined&&!propTypesMisspellWarningShown){\n      propTypesMisspellWarningShown=true;\n\n      error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name||'Unknown');\n    }\n\n    if(typeof type.getDefaultProps==='function'&&!type.getDefaultProps.isReactClassApproved){\n      error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n    }\n  }\n}\n\n\n\nfunction validateFragmentProps(fragment){\n  {\n    setCurrentlyValidatingElement(fragment);\n    var keys=Object.keys(fragment.props);\n\n    for (var i=0; i < keys.length; i++){\n      var key=keys[i];\n\n      if(key!=='children'&&key!=='key'){\n        error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n        break;\n      }\n    }\n\n    if(fragment.ref!==null){\n      error('Invalid attribute `ref` supplied to `React.Fragment`.');\n    }\n\n    setCurrentlyValidatingElement(null);\n  }\n}\nfunction createElementWithValidation(type, props, children){\n  var validType=isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n  // succeed and there will likely be errors in render.\n\n  if(!validType){\n    var info='';\n\n    if(type===undefined||typeof type==='object'&&type!==null&&Object.keys(type).length===0){\n      info +=' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n    }\n\n    var sourceInfo=getSourceInfoErrorAddendumForProps(props);\n\n    if(sourceInfo){\n      info +=sourceInfo;\n    }else{\n      info +=getDeclarationErrorAddendum();\n    }\n\n    var typeString;\n\n    if(type===null){\n      typeString='null';\n    }else if(Array.isArray(type)){\n      typeString='array';\n    }else if(type!==undefined&&type.$$typeof===REACT_ELEMENT_TYPE){\n      typeString=\"<\" + (getComponentName(type.type)||'Unknown') + \" />\";\n      info=' Did you accidentally export a JSX literal instead of a component?';\n    }else{\n      typeString=typeof type;\n    }\n\n    {\n      error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n    }\n  }\n\n  var element=createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.\n  // TODO: Drop this when these are no longer allowed as the type argument.\n\n  if(element==null){\n    return element;\n  } // Skip key warning if the type isn't valid since our key validation logic\n  // doesn't expect a non-string/function type and can throw confusing errors.\n  // We don't want exception behavior to differ between dev and prod.\n  // (Rendering will throw with a helpful message and as soon as the type is\n  // fixed, the key warnings will appear.)\n\n\n  if(validType){\n    for (var i=2; i < arguments.length; i++){\n      validateChildKeys(arguments[i], type);\n    }\n  }\n\n  if(type===REACT_FRAGMENT_TYPE){\n    validateFragmentProps(element);\n  }else{\n    validatePropTypes(element);\n  }\n\n  return element;\n}\nvar didWarnAboutDeprecatedCreateFactory=false;\nfunction createFactoryWithValidation(type){\n  var validatedFactory=createElementWithValidation.bind(null, type);\n  validatedFactory.type=type;\n\n  {\n    if(!didWarnAboutDeprecatedCreateFactory){\n      didWarnAboutDeprecatedCreateFactory=true;\n\n      warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');\n    } // Legacy hook: remove it\n\n\n    Object.defineProperty(validatedFactory, 'type', {\n      enumerable: false,\n      get: function (){\n        warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');\n\n        Object.defineProperty(this, 'type', {\n          value: type\n        });\n        return type;\n      }\n    });\n  }\n\n  return validatedFactory;\n}\nfunction cloneElementWithValidation(element, props, children){\n  var newElement=cloneElement.apply(this, arguments);\n\n  for (var i=2; i < arguments.length; i++){\n    validateChildKeys(arguments[i], newElement.type);\n  }\n\n  validatePropTypes(newElement);\n  return newElement;\n}\n\n{\n\n  try {\n    var frozenObject=Object.freeze({});\n    var testMap=new Map([[frozenObject, null]]);\n    var testSet=new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.\n    // https://github.com/rollup/rollup/issues/1771\n    // TODO: we can remove these if Rollup fixes the bug.\n\n    testMap.set(0, 0);\n    testSet.add(0);\n  } catch (e){\n  }\n}\n\nvar createElement$1=createElementWithValidation ;\nvar cloneElement$1=cloneElementWithValidation ;\nvar createFactory=createFactoryWithValidation ;\nvar Children={\n  map: mapChildren,\n  forEach: forEachChildren,\n  count: countChildren,\n  toArray: toArray,\n  only: onlyChild\n};\n\nexports.Children=Children;\nexports.Component=Component;\nexports.Fragment=REACT_FRAGMENT_TYPE;\nexports.Profiler=REACT_PROFILER_TYPE;\nexports.PureComponent=PureComponent;\nexports.StrictMode=REACT_STRICT_MODE_TYPE;\nexports.Suspense=REACT_SUSPENSE_TYPE;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ReactSharedInternals;\nexports.cloneElement=cloneElement$1;\nexports.createContext=createContext;\nexports.createElement=createElement$1;\nexports.createFactory=createFactory;\nexports.createRef=createRef;\nexports.forwardRef=forwardRef;\nexports.isValidElement=isValidElement;\nexports.lazy=lazy;\nexports.memo=memo;\nexports.useCallback=useCallback;\nexports.useContext=useContext;\nexports.useDebugValue=useDebugValue;\nexports.useEffect=useEffect;\nexports.useImperativeHandle=useImperativeHandle;\nexports.useLayoutEffect=useLayoutEffect;\nexports.useMemo=useMemo;\nexports.useReducer=useReducer;\nexports.useRef=useRef;\nexports.useState=useState;\nexports.version=ReactVersion;\n  })();\n}\n\n\n//# sourceURL=webpack:///./node_modules/react/cjs/react.development.js?");
}),
"./node_modules/react/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nif(false){}else{\n  module.exports=__webpack_require__( \"./node_modules/react/cjs/react.development.js\");\n}\n\n\n//# sourceURL=webpack:///./node_modules/react/index.js?");
}),
"./node_modules/scheduler/cjs/scheduler-tracing.development.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\n\nif(true){\n  (function(){\n'use strict';\n\nvar DEFAULT_THREAD_ID=0; // Counters used to generate unique IDs.\n\nvar interactionIDCounter=0;\nvar threadIDCounter=0; // Set of currently traced interactions.\n// Interactions \"stack\"–\n// Meaning that newly traced interactions are appended to the previously active set.\n// When an interaction goes out of scope, the previous set (if any) is restored.\n\nexports.__interactionsRef=null; // Listener(s) to notify when interactions begin and end.\n\nexports.__subscriberRef=null;\n\n{\n  exports.__interactionsRef={\n    current: new Set()\n  };\n  exports.__subscriberRef={\n    current: null\n  };\n}\nfunction unstable_clear(callback){\n\n  var prevInteractions=exports.__interactionsRef.current;\n  exports.__interactionsRef.current=new Set();\n\n  try {\n    return callback();\n  } finally {\n    exports.__interactionsRef.current=prevInteractions;\n  }\n}\nfunction unstable_getCurrent(){\n  {\n    return exports.__interactionsRef.current;\n  }\n}\nfunction unstable_getThreadID(){\n  return ++threadIDCounter;\n}\nfunction unstable_trace(name, timestamp, callback){\n  var threadID=arguments.length > 3&&arguments[3]!==undefined ? arguments[3]:DEFAULT_THREAD_ID;\n\n  var interaction={\n    __count: 1,\n    id: interactionIDCounter++,\n    name: name,\n    timestamp: timestamp\n  };\n  var prevInteractions=exports.__interactionsRef.current; // Traced interactions should stack/accumulate.\n  // To do that, clone the current interactions.\n  // The previous set will be restored upon completion.\n\n  var interactions=new Set(prevInteractions);\n  interactions.add(interaction);\n  exports.__interactionsRef.current=interactions;\n  var subscriber=exports.__subscriberRef.current;\n  var returnValue;\n\n  try {\n    if(subscriber!==null){\n      subscriber.onInteractionTraced(interaction);\n    }\n  } finally {\n    try {\n      if(subscriber!==null){\n        subscriber.onWorkStarted(interactions, threadID);\n      }\n    } finally {\n      try {\n        returnValue=callback();\n      } finally {\n        exports.__interactionsRef.current=prevInteractions;\n\n        try {\n          if(subscriber!==null){\n            subscriber.onWorkStopped(interactions, threadID);\n          }\n        } finally {\n          interaction.__count--; // If no async work was scheduled for this interaction,\n          // Notify subscribers that it's completed.\n\n          if(subscriber!==null&&interaction.__count===0){\n            subscriber.onInteractionScheduledWorkCompleted(interaction);\n          }\n        }\n      }\n    }\n  }\n\n  return returnValue;\n}\nfunction unstable_wrap(callback){\n  var threadID=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:DEFAULT_THREAD_ID;\n\n  var wrappedInteractions=exports.__interactionsRef.current;\n  var subscriber=exports.__subscriberRef.current;\n\n  if(subscriber!==null){\n    subscriber.onWorkScheduled(wrappedInteractions, threadID);\n  } // Update the pending async work count for the current interactions.\n  // Update after calling subscribers in case of error.\n\n\n  wrappedInteractions.forEach(function (interaction){\n    interaction.__count++;\n  });\n  var hasRun=false;\n\n  function wrapped(){\n    var prevInteractions=exports.__interactionsRef.current;\n    exports.__interactionsRef.current=wrappedInteractions;\n    subscriber=exports.__subscriberRef.current;\n\n    try {\n      var returnValue;\n\n      try {\n        if(subscriber!==null){\n          subscriber.onWorkStarted(wrappedInteractions, threadID);\n        }\n      } finally {\n        try {\n          returnValue=callback.apply(undefined, arguments);\n        } finally {\n          exports.__interactionsRef.current=prevInteractions;\n\n          if(subscriber!==null){\n            subscriber.onWorkStopped(wrappedInteractions, threadID);\n          }\n        }\n      }\n\n      return returnValue;\n    } finally {\n      if(!hasRun){\n        // We only expect a wrapped function to be executed once,\n        // But in the event that it's executed more than once–\n        // Only decrement the outstanding interaction counts once.\n        hasRun=true; // Update pending async counts for all wrapped interactions.\n        // If this was the last scheduled async work for any of them,\n        // Mark them as completed.\n\n        wrappedInteractions.forEach(function (interaction){\n          interaction.__count--;\n\n          if(subscriber!==null&&interaction.__count===0){\n            subscriber.onInteractionScheduledWorkCompleted(interaction);\n          }\n        });\n      }\n    }\n  }\n\n  wrapped.cancel=function cancel(){\n    subscriber=exports.__subscriberRef.current;\n\n    try {\n      if(subscriber!==null){\n        subscriber.onWorkCanceled(wrappedInteractions, threadID);\n      }\n    } finally {\n      // Update pending async counts for all wrapped interactions.\n      // If this was the last scheduled async work for any of them,\n      // Mark them as completed.\n      wrappedInteractions.forEach(function (interaction){\n        interaction.__count--;\n\n        if(subscriber&&interaction.__count===0){\n          subscriber.onInteractionScheduledWorkCompleted(interaction);\n        }\n      });\n    }\n  };\n\n  return wrapped;\n}\n\nvar subscribers=null;\n\n{\n  subscribers=new Set();\n}\n\nfunction unstable_subscribe(subscriber){\n  {\n    subscribers.add(subscriber);\n\n    if(subscribers.size===1){\n      exports.__subscriberRef.current={\n        onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,\n        onInteractionTraced: onInteractionTraced,\n        onWorkCanceled: onWorkCanceled,\n        onWorkScheduled: onWorkScheduled,\n        onWorkStarted: onWorkStarted,\n        onWorkStopped: onWorkStopped\n      };\n    }\n  }\n}\nfunction unstable_unsubscribe(subscriber){\n  {\n    subscribers.delete(subscriber);\n\n    if(subscribers.size===0){\n      exports.__subscriberRef.current=null;\n    }\n  }\n}\n\nfunction onInteractionTraced(interaction){\n  var didCatchError=false;\n  var caughtError=null;\n  subscribers.forEach(function (subscriber){\n    try {\n      subscriber.onInteractionTraced(interaction);\n    } catch (error){\n      if(!didCatchError){\n        didCatchError=true;\n        caughtError=error;\n      }\n    }\n  });\n\n  if(didCatchError){\n    throw caughtError;\n  }\n}\n\nfunction onInteractionScheduledWorkCompleted(interaction){\n  var didCatchError=false;\n  var caughtError=null;\n  subscribers.forEach(function (subscriber){\n    try {\n      subscriber.onInteractionScheduledWorkCompleted(interaction);\n    } catch (error){\n      if(!didCatchError){\n        didCatchError=true;\n        caughtError=error;\n      }\n    }\n  });\n\n  if(didCatchError){\n    throw caughtError;\n  }\n}\n\nfunction onWorkScheduled(interactions, threadID){\n  var didCatchError=false;\n  var caughtError=null;\n  subscribers.forEach(function (subscriber){\n    try {\n      subscriber.onWorkScheduled(interactions, threadID);\n    } catch (error){\n      if(!didCatchError){\n        didCatchError=true;\n        caughtError=error;\n      }\n    }\n  });\n\n  if(didCatchError){\n    throw caughtError;\n  }\n}\n\nfunction onWorkStarted(interactions, threadID){\n  var didCatchError=false;\n  var caughtError=null;\n  subscribers.forEach(function (subscriber){\n    try {\n      subscriber.onWorkStarted(interactions, threadID);\n    } catch (error){\n      if(!didCatchError){\n        didCatchError=true;\n        caughtError=error;\n      }\n    }\n  });\n\n  if(didCatchError){\n    throw caughtError;\n  }\n}\n\nfunction onWorkStopped(interactions, threadID){\n  var didCatchError=false;\n  var caughtError=null;\n  subscribers.forEach(function (subscriber){\n    try {\n      subscriber.onWorkStopped(interactions, threadID);\n    } catch (error){\n      if(!didCatchError){\n        didCatchError=true;\n        caughtError=error;\n      }\n    }\n  });\n\n  if(didCatchError){\n    throw caughtError;\n  }\n}\n\nfunction onWorkCanceled(interactions, threadID){\n  var didCatchError=false;\n  var caughtError=null;\n  subscribers.forEach(function (subscriber){\n    try {\n      subscriber.onWorkCanceled(interactions, threadID);\n    } catch (error){\n      if(!didCatchError){\n        didCatchError=true;\n        caughtError=error;\n      }\n    }\n  });\n\n  if(didCatchError){\n    throw caughtError;\n  }\n}\n\nexports.unstable_clear=unstable_clear;\nexports.unstable_getCurrent=unstable_getCurrent;\nexports.unstable_getThreadID=unstable_getThreadID;\nexports.unstable_subscribe=unstable_subscribe;\nexports.unstable_trace=unstable_trace;\nexports.unstable_unsubscribe=unstable_unsubscribe;\nexports.unstable_wrap=unstable_wrap;\n  })();\n}\n\n\n//# sourceURL=webpack:///./node_modules/scheduler/cjs/scheduler-tracing.development.js?");
}),
"./node_modules/scheduler/cjs/scheduler.development.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\n\n\n\n\nif(true){\n  (function(){\n'use strict';\n\nvar enableSchedulerDebugging=false;\nvar enableProfiling=true;\n\nvar requestHostCallback;\nvar requestHostTimeout;\nvar cancelHostTimeout;\nvar shouldYieldToHost;\nvar requestPaint;\n\nif(// If Scheduler runs in a non-DOM environment, it falls back to a naive\n// implementation using setTimeout.\ntypeof window==='undefined'||// Check if MessageChannel is supported, too.\ntypeof MessageChannel!=='function'){\n  // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,\n  // fallback to a naive implementation.\n  var _callback=null;\n  var _timeoutID=null;\n\n  var _flushCallback=function (){\n    if(_callback!==null){\n      try {\n        var currentTime=exports.unstable_now();\n        var hasRemainingTime=true;\n\n        _callback(hasRemainingTime, currentTime);\n\n        _callback=null;\n      } catch (e){\n        setTimeout(_flushCallback, 0);\n        throw e;\n      }\n    }\n  };\n\n  var initialTime=Date.now();\n\n  exports.unstable_now=function (){\n    return Date.now() - initialTime;\n  };\n\n  requestHostCallback=function (cb){\n    if(_callback!==null){\n      // Protect against re-entrancy.\n      setTimeout(requestHostCallback, 0, cb);\n    }else{\n      _callback=cb;\n      setTimeout(_flushCallback, 0);\n    }\n  };\n\n  requestHostTimeout=function (cb, ms){\n    _timeoutID=setTimeout(cb, ms);\n  };\n\n  cancelHostTimeout=function (){\n    clearTimeout(_timeoutID);\n  };\n\n  shouldYieldToHost=function (){\n    return false;\n  };\n\n  requestPaint=exports.unstable_forceFrameRate=function (){};\n}else{\n  // Capture local references to native APIs, in case a polyfill overrides them.\n  var performance=window.performance;\n  var _Date=window.Date;\n  var _setTimeout=window.setTimeout;\n  var _clearTimeout=window.clearTimeout;\n\n  if(typeof console!=='undefined'){\n    // TODO: Scheduler no longer requires these methods to be polyfilled. But\n    // maybe we want to continue warning if they don't exist, to preserve the\n    // option to rely on it in the future?\n    var requestAnimationFrame=window.requestAnimationFrame;\n    var cancelAnimationFrame=window.cancelAnimationFrame; // TODO: Remove fb.me link\n\n    if(typeof requestAnimationFrame!=='function'){\n      // Using console['error'] to evade Babel and ESLint\n      console['error'](\"This browser doesn't support requestAnimationFrame. \" + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');\n    }\n\n    if(typeof cancelAnimationFrame!=='function'){\n      // Using console['error'] to evade Babel and ESLint\n      console['error'](\"This browser doesn't support cancelAnimationFrame. \" + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');\n    }\n  }\n\n  if(typeof performance==='object'&&typeof performance.now==='function'){\n    exports.unstable_now=function (){\n      return performance.now();\n    };\n  }else{\n    var _initialTime=_Date.now();\n\n    exports.unstable_now=function (){\n      return _Date.now() - _initialTime;\n    };\n  }\n\n  var isMessageLoopRunning=false;\n  var scheduledHostCallback=null;\n  var taskTimeoutID=-1; // Scheduler periodically yields in case there is other work on the main\n  // thread, like user events. By default, it yields multiple times per frame.\n  // It does not attempt to align with frame boundaries, since most tasks don't\n  // need to be frame aligned; for those that do, use requestAnimationFrame.\n\n  var yieldInterval=5;\n  var deadline=0; // TODO: Make this configurable\n\n  {\n    // `isInputPending` is not available. Since we have no way of knowing if\n    // there's pending input, always yield at the end of the frame.\n    shouldYieldToHost=function (){\n      return exports.unstable_now() >=deadline;\n    }; // Since we yield every frame regardless, `requestPaint` has no effect.\n\n\n    requestPaint=function (){};\n  }\n\n  exports.unstable_forceFrameRate=function (fps){\n    if(fps < 0||fps > 125){\n      // Using console['error'] to evade Babel and ESLint\n      console['error']('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');\n      return;\n    }\n\n    if(fps > 0){\n      yieldInterval=Math.floor(1000 / fps);\n    }else{\n      // reset the framerate\n      yieldInterval=5;\n    }\n  };\n\n  var performWorkUntilDeadline=function (){\n    if(scheduledHostCallback!==null){\n      var currentTime=exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync\n      // cycle. This means there's always time remaining at the beginning of\n      // the message event.\n\n      deadline=currentTime + yieldInterval;\n      var hasTimeRemaining=true;\n\n      try {\n        var hasMoreWork=scheduledHostCallback(hasTimeRemaining, currentTime);\n\n        if(!hasMoreWork){\n          isMessageLoopRunning=false;\n          scheduledHostCallback=null;\n        }else{\n          // If there's more work, schedule the next message event at the end\n          // of the preceding one.\n          port.postMessage(null);\n        }\n      } catch (error){\n        // If a scheduler task throws, exit the current browser task so the\n        // error can be observed.\n        port.postMessage(null);\n        throw error;\n      }\n    }else{\n      isMessageLoopRunning=false;\n    } // Yielding to the browser will give it a chance to paint, so we can\n  };\n\n  var channel=new MessageChannel();\n  var port=channel.port2;\n  channel.port1.onmessage=performWorkUntilDeadline;\n\n  requestHostCallback=function (callback){\n    scheduledHostCallback=callback;\n\n    if(!isMessageLoopRunning){\n      isMessageLoopRunning=true;\n      port.postMessage(null);\n    }\n  };\n\n  requestHostTimeout=function (callback, ms){\n    taskTimeoutID=_setTimeout(function (){\n      callback(exports.unstable_now());\n    }, ms);\n  };\n\n  cancelHostTimeout=function (){\n    _clearTimeout(taskTimeoutID);\n\n    taskTimeoutID=-1;\n  };\n}\n\nfunction push(heap, node){\n  var index=heap.length;\n  heap.push(node);\n  siftUp(heap, node, index);\n}\nfunction peek(heap){\n  var first=heap[0];\n  return first===undefined ? null:first;\n}\nfunction pop(heap){\n  var first=heap[0];\n\n  if(first!==undefined){\n    var last=heap.pop();\n\n    if(last!==first){\n      heap[0]=last;\n      siftDown(heap, last, 0);\n    }\n\n    return first;\n  }else{\n    return null;\n  }\n}\n\nfunction siftUp(heap, node, i){\n  var index=i;\n\n  while (true){\n    var parentIndex=index - 1 >>> 1;\n    var parent=heap[parentIndex];\n\n    if(parent!==undefined&&compare(parent, node) > 0){\n      // The parent is larger. Swap positions.\n      heap[parentIndex]=node;\n      heap[index]=parent;\n      index=parentIndex;\n    }else{\n      // The parent is smaller. Exit.\n      return;\n    }\n  }\n}\n\nfunction siftDown(heap, node, i){\n  var index=i;\n  var length=heap.length;\n\n  while (index < length){\n    var leftIndex=(index + 1) * 2 - 1;\n    var left=heap[leftIndex];\n    var rightIndex=leftIndex + 1;\n    var right=heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.\n\n    if(left!==undefined&&compare(left, node) < 0){\n      if(right!==undefined&&compare(right, left) < 0){\n        heap[index]=right;\n        heap[rightIndex]=node;\n        index=rightIndex;\n      }else{\n        heap[index]=left;\n        heap[leftIndex]=node;\n        index=leftIndex;\n      }\n    }else if(right!==undefined&&compare(right, node) < 0){\n      heap[index]=right;\n      heap[rightIndex]=node;\n      index=rightIndex;\n    }else{\n      // Neither child is smaller. Exit.\n      return;\n    }\n  }\n}\n\nfunction compare(a, b){\n  // Compare sort index first, then task id.\n  var diff=a.sortIndex - b.sortIndex;\n  return diff!==0 ? diff:a.id - b.id;\n}\n\n// TODO: Use symbols?\nvar NoPriority=0;\nvar ImmediatePriority=1;\nvar UserBlockingPriority=2;\nvar NormalPriority=3;\nvar LowPriority=4;\nvar IdlePriority=5;\n\nvar runIdCounter=0;\nvar mainThreadIdCounter=0;\nvar profilingStateSize=4;\nvar sharedProfilingBuffer=// $FlowFixMe Flow doesn't know about SharedArrayBuffer\ntypeof SharedArrayBuffer==='function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT):// $FlowFixMe Flow doesn't know about ArrayBuffer\ntypeof ArrayBuffer==='function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT):null // Don't crash the init path on IE9\n;\nvar profilingState=sharedProfilingBuffer!==null ? new Int32Array(sharedProfilingBuffer):[]; // We can't read this but it helps save bytes for null checks\n\nvar PRIORITY=0;\nvar CURRENT_TASK_ID=1;\nvar CURRENT_RUN_ID=2;\nvar QUEUE_SIZE=3;\n\n{\n  profilingState[PRIORITY]=NoPriority; // This is maintained with a counter, because the size of the priority queue\n  // array might include canceled tasks.\n\n  profilingState[QUEUE_SIZE]=0;\n  profilingState[CURRENT_TASK_ID]=0;\n} // Bytes per element is 4\n\n\nvar INITIAL_EVENT_LOG_SIZE=131072;\nvar MAX_EVENT_LOG_SIZE=524288; // Equivalent to 2 megabytes\n\nvar eventLogSize=0;\nvar eventLogBuffer=null;\nvar eventLog=null;\nvar eventLogIndex=0;\nvar TaskStartEvent=1;\nvar TaskCompleteEvent=2;\nvar TaskErrorEvent=3;\nvar TaskCancelEvent=4;\nvar TaskRunEvent=5;\nvar TaskYieldEvent=6;\nvar SchedulerSuspendEvent=7;\nvar SchedulerResumeEvent=8;\n\nfunction logEvent(entries){\n  if(eventLog!==null){\n    var offset=eventLogIndex;\n    eventLogIndex +=entries.length;\n\n    if(eventLogIndex + 1 > eventLogSize){\n      eventLogSize *=2;\n\n      if(eventLogSize > MAX_EVENT_LOG_SIZE){\n        // Using console['error'] to evade Babel and ESLint\n        console['error'](\"Scheduler Profiling: Event log exceeded maximum size. Don't \" + 'forget to call `stopLoggingProfilingEvents()`.');\n        stopLoggingProfilingEvents();\n        return;\n      }\n\n      var newEventLog=new Int32Array(eventLogSize * 4);\n      newEventLog.set(eventLog);\n      eventLogBuffer=newEventLog.buffer;\n      eventLog=newEventLog;\n    }\n\n    eventLog.set(entries, offset);\n  }\n}\n\nfunction startLoggingProfilingEvents(){\n  eventLogSize=INITIAL_EVENT_LOG_SIZE;\n  eventLogBuffer=new ArrayBuffer(eventLogSize * 4);\n  eventLog=new Int32Array(eventLogBuffer);\n  eventLogIndex=0;\n}\nfunction stopLoggingProfilingEvents(){\n  var buffer=eventLogBuffer;\n  eventLogSize=0;\n  eventLogBuffer=null;\n  eventLog=null;\n  eventLogIndex=0;\n  return buffer;\n}\nfunction markTaskStart(task, ms){\n  {\n    profilingState[QUEUE_SIZE]++;\n\n    if(eventLog!==null){\n      // performance.now returns a float, representing milliseconds. When the\n      // event is logged, it's coerced to an int. Convert to microseconds to\n      // maintain extra degrees of precision.\n      logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);\n    }\n  }\n}\nfunction markTaskCompleted(task, ms){\n  {\n    profilingState[PRIORITY]=NoPriority;\n    profilingState[CURRENT_TASK_ID]=0;\n    profilingState[QUEUE_SIZE]--;\n\n    if(eventLog!==null){\n      logEvent([TaskCompleteEvent, ms * 1000, task.id]);\n    }\n  }\n}\nfunction markTaskCanceled(task, ms){\n  {\n    profilingState[QUEUE_SIZE]--;\n\n    if(eventLog!==null){\n      logEvent([TaskCancelEvent, ms * 1000, task.id]);\n    }\n  }\n}\nfunction markTaskErrored(task, ms){\n  {\n    profilingState[PRIORITY]=NoPriority;\n    profilingState[CURRENT_TASK_ID]=0;\n    profilingState[QUEUE_SIZE]--;\n\n    if(eventLog!==null){\n      logEvent([TaskErrorEvent, ms * 1000, task.id]);\n    }\n  }\n}\nfunction markTaskRun(task, ms){\n  {\n    runIdCounter++;\n    profilingState[PRIORITY]=task.priorityLevel;\n    profilingState[CURRENT_TASK_ID]=task.id;\n    profilingState[CURRENT_RUN_ID]=runIdCounter;\n\n    if(eventLog!==null){\n      logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);\n    }\n  }\n}\nfunction markTaskYield(task, ms){\n  {\n    profilingState[PRIORITY]=NoPriority;\n    profilingState[CURRENT_TASK_ID]=0;\n    profilingState[CURRENT_RUN_ID]=0;\n\n    if(eventLog!==null){\n      logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);\n    }\n  }\n}\nfunction markSchedulerSuspended(ms){\n  {\n    mainThreadIdCounter++;\n\n    if(eventLog!==null){\n      logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);\n    }\n  }\n}\nfunction markSchedulerUnsuspended(ms){\n  {\n    if(eventLog!==null){\n      logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);\n    }\n  }\n}\n\n\n// Math.pow(2, 30) - 1\n// 0b111111111111111111111111111111\n\nvar maxSigned31BitInt=1073741823; // Times out immediately\n\nvar IMMEDIATE_PRIORITY_TIMEOUT=-1; // Eventually times out\n\nvar USER_BLOCKING_PRIORITY=250;\nvar NORMAL_PRIORITY_TIMEOUT=5000;\nvar LOW_PRIORITY_TIMEOUT=10000; // Never times out\n\nvar IDLE_PRIORITY=maxSigned31BitInt; // Tasks are stored on a min heap\n\nvar taskQueue=[];\nvar timerQueue=[]; // Incrementing id counter. Used to maintain insertion order.\n\nvar taskIdCounter=1; // Pausing the scheduler is useful for debugging.\nvar currentTask=null;\nvar currentPriorityLevel=NormalPriority; // This is set while performing work, to prevent re-entrancy.\n\nvar isPerformingWork=false;\nvar isHostCallbackScheduled=false;\nvar isHostTimeoutScheduled=false;\n\nfunction advanceTimers(currentTime){\n  // Check for tasks that are no longer delayed and add them to the queue.\n  var timer=peek(timerQueue);\n\n  while (timer!==null){\n    if(timer.callback===null){\n      // Timer was cancelled.\n      pop(timerQueue);\n    }else if(timer.startTime <=currentTime){\n      // Timer fired. Transfer to the task queue.\n      pop(timerQueue);\n      timer.sortIndex=timer.expirationTime;\n      push(taskQueue, timer);\n\n      {\n        markTaskStart(timer, currentTime);\n        timer.isQueued=true;\n      }\n    }else{\n      // Remaining timers are pending.\n      return;\n    }\n\n    timer=peek(timerQueue);\n  }\n}\n\nfunction handleTimeout(currentTime){\n  isHostTimeoutScheduled=false;\n  advanceTimers(currentTime);\n\n  if(!isHostCallbackScheduled){\n    if(peek(taskQueue)!==null){\n      isHostCallbackScheduled=true;\n      requestHostCallback(flushWork);\n    }else{\n      var firstTimer=peek(timerQueue);\n\n      if(firstTimer!==null){\n        requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n      }\n    }\n  }\n}\n\nfunction flushWork(hasTimeRemaining, initialTime){\n  {\n    markSchedulerUnsuspended(initialTime);\n  } // We'll need a host callback the next time work is scheduled.\n\n\n  isHostCallbackScheduled=false;\n\n  if(isHostTimeoutScheduled){\n    // We scheduled a timeout but it's no longer needed. Cancel it.\n    isHostTimeoutScheduled=false;\n    cancelHostTimeout();\n  }\n\n  isPerformingWork=true;\n  var previousPriorityLevel=currentPriorityLevel;\n\n  try {\n    if(enableProfiling){\n      try {\n        return workLoop(hasTimeRemaining, initialTime);\n      } catch (error){\n        if(currentTask!==null){\n          var currentTime=exports.unstable_now();\n          markTaskErrored(currentTask, currentTime);\n          currentTask.isQueued=false;\n        }\n\n        throw error;\n      }\n    }else{\n      // No catch in prod codepath.\n      return workLoop(hasTimeRemaining, initialTime);\n    }\n  } finally {\n    currentTask=null;\n    currentPriorityLevel=previousPriorityLevel;\n    isPerformingWork=false;\n\n    {\n      var _currentTime=exports.unstable_now();\n\n      markSchedulerSuspended(_currentTime);\n    }\n  }\n}\n\nfunction workLoop(hasTimeRemaining, initialTime){\n  var currentTime=initialTime;\n  advanceTimers(currentTime);\n  currentTask=peek(taskQueue);\n\n  while (currentTask!==null&&!(enableSchedulerDebugging)){\n    if(currentTask.expirationTime > currentTime&&(!hasTimeRemaining||shouldYieldToHost())){\n      // This currentTask hasn't expired, and we've reached the deadline.\n      break;\n    }\n\n    var callback=currentTask.callback;\n\n    if(callback!==null){\n      currentTask.callback=null;\n      currentPriorityLevel=currentTask.priorityLevel;\n      var didUserCallbackTimeout=currentTask.expirationTime <=currentTime;\n      markTaskRun(currentTask, currentTime);\n      var continuationCallback=callback(didUserCallbackTimeout);\n      currentTime=exports.unstable_now();\n\n      if(typeof continuationCallback==='function'){\n        currentTask.callback=continuationCallback;\n        markTaskYield(currentTask, currentTime);\n      }else{\n        {\n          markTaskCompleted(currentTask, currentTime);\n          currentTask.isQueued=false;\n        }\n\n        if(currentTask===peek(taskQueue)){\n          pop(taskQueue);\n        }\n      }\n\n      advanceTimers(currentTime);\n    }else{\n      pop(taskQueue);\n    }\n\n    currentTask=peek(taskQueue);\n  } // Return whether there's additional work\n\n\n  if(currentTask!==null){\n    return true;\n  }else{\n    var firstTimer=peek(timerQueue);\n\n    if(firstTimer!==null){\n      requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n    }\n\n    return false;\n  }\n}\n\nfunction unstable_runWithPriority(priorityLevel, eventHandler){\n  switch (priorityLevel){\n    case ImmediatePriority:\n    case UserBlockingPriority:\n    case NormalPriority:\n    case LowPriority:\n    case IdlePriority:\n      break;\n\n    default:\n      priorityLevel=NormalPriority;\n  }\n\n  var previousPriorityLevel=currentPriorityLevel;\n  currentPriorityLevel=priorityLevel;\n\n  try {\n    return eventHandler();\n  } finally {\n    currentPriorityLevel=previousPriorityLevel;\n  }\n}\n\nfunction unstable_next(eventHandler){\n  var priorityLevel;\n\n  switch (currentPriorityLevel){\n    case ImmediatePriority:\n    case UserBlockingPriority:\n    case NormalPriority:\n      // Shift down to normal priority\n      priorityLevel=NormalPriority;\n      break;\n\n    default:\n      // Anything lower than normal priority should remain at the current level.\n      priorityLevel=currentPriorityLevel;\n      break;\n  }\n\n  var previousPriorityLevel=currentPriorityLevel;\n  currentPriorityLevel=priorityLevel;\n\n  try {\n    return eventHandler();\n  } finally {\n    currentPriorityLevel=previousPriorityLevel;\n  }\n}\n\nfunction unstable_wrapCallback(callback){\n  var parentPriorityLevel=currentPriorityLevel;\n  return function (){\n    // This is a fork of runWithPriority, inlined for performance.\n    var previousPriorityLevel=currentPriorityLevel;\n    currentPriorityLevel=parentPriorityLevel;\n\n    try {\n      return callback.apply(this, arguments);\n    } finally {\n      currentPriorityLevel=previousPriorityLevel;\n    }\n  };\n}\n\nfunction timeoutForPriorityLevel(priorityLevel){\n  switch (priorityLevel){\n    case ImmediatePriority:\n      return IMMEDIATE_PRIORITY_TIMEOUT;\n\n    case UserBlockingPriority:\n      return USER_BLOCKING_PRIORITY;\n\n    case IdlePriority:\n      return IDLE_PRIORITY;\n\n    case LowPriority:\n      return LOW_PRIORITY_TIMEOUT;\n\n    case NormalPriority:\n    default:\n      return NORMAL_PRIORITY_TIMEOUT;\n  }\n}\n\nfunction unstable_scheduleCallback(priorityLevel, callback, options){\n  var currentTime=exports.unstable_now();\n  var startTime;\n  var timeout;\n\n  if(typeof options==='object'&&options!==null){\n    var delay=options.delay;\n\n    if(typeof delay==='number'&&delay > 0){\n      startTime=currentTime + delay;\n    }else{\n      startTime=currentTime;\n    }\n\n    timeout=typeof options.timeout==='number' ? options.timeout:timeoutForPriorityLevel(priorityLevel);\n  }else{\n    timeout=timeoutForPriorityLevel(priorityLevel);\n    startTime=currentTime;\n  }\n\n  var expirationTime=startTime + timeout;\n  var newTask={\n    id: taskIdCounter++,\n    callback: callback,\n    priorityLevel: priorityLevel,\n    startTime: startTime,\n    expirationTime: expirationTime,\n    sortIndex: -1\n  };\n\n  {\n    newTask.isQueued=false;\n  }\n\n  if(startTime > currentTime){\n    // This is a delayed task.\n    newTask.sortIndex=startTime;\n    push(timerQueue, newTask);\n\n    if(peek(taskQueue)===null&&newTask===peek(timerQueue)){\n      // All tasks are delayed, and this is the task with the earliest delay.\n      if(isHostTimeoutScheduled){\n        // Cancel an existing timeout.\n        cancelHostTimeout();\n      }else{\n        isHostTimeoutScheduled=true;\n      } // Schedule a timeout.\n\n\n      requestHostTimeout(handleTimeout, startTime - currentTime);\n    }\n  }else{\n    newTask.sortIndex=expirationTime;\n    push(taskQueue, newTask);\n\n    {\n      markTaskStart(newTask, currentTime);\n      newTask.isQueued=true;\n    } // Schedule a host callback, if needed. If we're already performing work,\n    // wait until the next time we yield.\n\n\n    if(!isHostCallbackScheduled&&!isPerformingWork){\n      isHostCallbackScheduled=true;\n      requestHostCallback(flushWork);\n    }\n  }\n\n  return newTask;\n}\n\nfunction unstable_pauseExecution(){\n}\n\nfunction unstable_continueExecution(){\n\n  if(!isHostCallbackScheduled&&!isPerformingWork){\n    isHostCallbackScheduled=true;\n    requestHostCallback(flushWork);\n  }\n}\n\nfunction unstable_getFirstCallbackNode(){\n  return peek(taskQueue);\n}\n\nfunction unstable_cancelCallback(task){\n  {\n    if(task.isQueued){\n      var currentTime=exports.unstable_now();\n      markTaskCanceled(task, currentTime);\n      task.isQueued=false;\n    }\n  } // Null out the callback to indicate the task has been canceled. (Can't\n  // remove from the queue because you can't remove arbitrary nodes from an\n  // array based heap, only the first one.)\n\n\n  task.callback=null;\n}\n\nfunction unstable_getCurrentPriorityLevel(){\n  return currentPriorityLevel;\n}\n\nfunction unstable_shouldYield(){\n  var currentTime=exports.unstable_now();\n  advanceTimers(currentTime);\n  var firstTask=peek(taskQueue);\n  return firstTask!==currentTask&&currentTask!==null&&firstTask!==null&&firstTask.callback!==null&&firstTask.startTime <=currentTime&&firstTask.expirationTime < currentTask.expirationTime||shouldYieldToHost();\n}\n\nvar unstable_requestPaint=requestPaint;\nvar unstable_Profiling={\n  startLoggingProfilingEvents: startLoggingProfilingEvents,\n  stopLoggingProfilingEvents: stopLoggingProfilingEvents,\n  sharedProfilingBuffer: sharedProfilingBuffer\n} ;\n\nexports.unstable_IdlePriority=IdlePriority;\nexports.unstable_ImmediatePriority=ImmediatePriority;\nexports.unstable_LowPriority=LowPriority;\nexports.unstable_NormalPriority=NormalPriority;\nexports.unstable_Profiling=unstable_Profiling;\nexports.unstable_UserBlockingPriority=UserBlockingPriority;\nexports.unstable_cancelCallback=unstable_cancelCallback;\nexports.unstable_continueExecution=unstable_continueExecution;\nexports.unstable_getCurrentPriorityLevel=unstable_getCurrentPriorityLevel;\nexports.unstable_getFirstCallbackNode=unstable_getFirstCallbackNode;\nexports.unstable_next=unstable_next;\nexports.unstable_pauseExecution=unstable_pauseExecution;\nexports.unstable_requestPaint=unstable_requestPaint;\nexports.unstable_runWithPriority=unstable_runWithPriority;\nexports.unstable_scheduleCallback=unstable_scheduleCallback;\nexports.unstable_shouldYield=unstable_shouldYield;\nexports.unstable_wrapCallback=unstable_wrapCallback;\n  })();\n}\n\n\n//# sourceURL=webpack:///./node_modules/scheduler/cjs/scheduler.development.js?");
}),
"./node_modules/scheduler/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nif(false){}else{\n  module.exports=__webpack_require__( \"./node_modules/scheduler/cjs/scheduler.development.js\");\n}\n\n\n//# sourceURL=webpack:///./node_modules/scheduler/index.js?");
}),
"./node_modules/scheduler/tracing.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nif(false){}else{\n  module.exports=__webpack_require__( \"./node_modules/scheduler/cjs/scheduler-tracing.development.js\");\n}\n\n\n//# sourceURL=webpack:///./node_modules/scheduler/tracing.js?");
}),
"./node_modules/setimmediate/setImmediate.js":
(function(module, exports, __webpack_require__){
eval("(function(global, process){(function (global, undefined){\n    \"use strict\";\n\n    if(global.setImmediate){\n        return;\n    }\n\n    var nextHandle=1; // Spec says greater than zero\n    var tasksByHandle={};\n    var currentlyRunningATask=false;\n    var doc=global.document;\n    var registerImmediate;\n\n    function setImmediate(callback){\n      // Callback can either be a function or a string\n      if(typeof callback!==\"function\"){\n        callback=new Function(\"\" + callback);\n      }\n      // Copy function arguments\n      var args=new Array(arguments.length - 1);\n      for (var i=0; i < args.length; i++){\n          args[i]=arguments[i + 1];\n      }\n      // Store and register the task\n      var task={ callback: callback, args: args };\n      tasksByHandle[nextHandle]=task;\n      registerImmediate(nextHandle);\n      return nextHandle++;\n    }\n\n    function clearImmediate(handle){\n        delete tasksByHandle[handle];\n    }\n\n    function run(task){\n        var callback=task.callback;\n        var args=task.args;\n        switch (args.length){\n        case 0:\n            callback();\n            break;\n        case 1:\n            callback(args[0]);\n            break;\n        case 2:\n            callback(args[0], args[1]);\n            break;\n        case 3:\n            callback(args[0], args[1], args[2]);\n            break;\n        default:\n            callback.apply(undefined, args);\n            break;\n        }\n    }\n\n    function runIfPresent(handle){\n        // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n        // So if we're currently running a task, we'll need to delay this invocation.\n        if(currentlyRunningATask){\n            // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n            // \"too much recursion\" error.\n            setTimeout(runIfPresent, 0, handle);\n        }else{\n            var task=tasksByHandle[handle];\n            if(task){\n                currentlyRunningATask=true;\n                try {\n                    run(task);\n                } finally {\n                    clearImmediate(handle);\n                    currentlyRunningATask=false;\n                }\n            }\n        }\n    }\n\n    function installNextTickImplementation(){\n        registerImmediate=function(handle){\n            process.nextTick(function (){ runIfPresent(handle); });\n        };\n    }\n\n    function canUsePostMessage(){\n        // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n        // where `global.postMessage` means something completely different and can't be used for this purpose.\n        if(global.postMessage&&!global.importScripts){\n            var postMessageIsAsynchronous=true;\n            var oldOnMessage=global.onmessage;\n            global.onmessage=function(){\n                postMessageIsAsynchronous=false;\n            };\n            global.postMessage(\"\", \"*\");\n            global.onmessage=oldOnMessage;\n            return postMessageIsAsynchronous;\n        }\n    }\n\n    function installPostMessageImplementation(){\n        // Installs an event handler on `global` for the `message` event: see\n        // * https://developer.mozilla.org/en/DOM/window.postMessage\n        // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n\n        var messagePrefix=\"setImmediate$\" + Math.random() + \"$\";\n        var onGlobalMessage=function(event){\n            if(event.source===global&&\n                typeof event.data===\"string\"&&\n                event.data.indexOf(messagePrefix)===0){\n                runIfPresent(+event.data.slice(messagePrefix.length));\n            }\n        };\n\n        if(global.addEventListener){\n            global.addEventListener(\"message\", onGlobalMessage, false);\n        }else{\n            global.attachEvent(\"onmessage\", onGlobalMessage);\n        }\n\n        registerImmediate=function(handle){\n            global.postMessage(messagePrefix + handle, \"*\");\n        };\n    }\n\n    function installMessageChannelImplementation(){\n        var channel=new MessageChannel();\n        channel.port1.onmessage=function(event){\n            var handle=event.data;\n            runIfPresent(handle);\n        };\n\n        registerImmediate=function(handle){\n            channel.port2.postMessage(handle);\n        };\n    }\n\n    function installReadyStateChangeImplementation(){\n        var html=doc.documentElement;\n        registerImmediate=function(handle){\n            // Create a <script>element; its readystatechange event will be fired asynchronously once it is inserted\n            // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n            var script=doc.createElement(\"script\");\n            script.onreadystatechange=function (){\n                runIfPresent(handle);\n                script.onreadystatechange=null;\n                html.removeChild(script);\n                script=null;\n            };\n            html.appendChild(script);\n        };\n    }\n\n    function installSetTimeoutImplementation(){\n        registerImmediate=function(handle){\n            setTimeout(runIfPresent, 0, handle);\n        };\n    }\n\n    // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.\n    var attachTo=Object.getPrototypeOf&&Object.getPrototypeOf(global);\n    attachTo=attachTo&&attachTo.setTimeout ? attachTo:global;\n\n    // Don't get fooled by e.g. browserify environments.\n    if({}.toString.call(global.process)===\"[object process]\"){\n        // For Node.js before 0.9\n        installNextTickImplementation();\n\n    }else if(canUsePostMessage()){\n        // For non-IE10 modern browsers\n        installPostMessageImplementation();\n\n    }else if(global.MessageChannel){\n        // For web workers, where supported\n        installMessageChannelImplementation();\n\n    }else if(doc&&\"onreadystatechange\" in doc.createElement(\"script\")){\n        // For IE 6–8\n        installReadyStateChangeImplementation();\n\n    }else{\n        // For older browsers\n        installSetTimeoutImplementation();\n    }\n\n    attachTo.setImmediate=setImmediate;\n    attachTo.clearImmediate=clearImmediate;\n}(typeof self===\"undefined\" ? typeof global===\"undefined\" ? this:global:self));\n\n}.call(this, __webpack_require__( \"./node_modules/webpack/buildin/global.js\"), __webpack_require__( \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack:///./node_modules/setimmediate/setImmediate.js?");
}),
"./node_modules/tlds/index.json":
(function(module){
eval("module.exports=JSON.parse(\"[\\\"aaa\\\",\\\"aarp\\\",\\\"abarth\\\",\\\"abb\\\",\\\"abbott\\\",\\\"abbvie\\\",\\\"abc\\\",\\\"able\\\",\\\"abogado\\\",\\\"abudhabi\\\",\\\"ac\\\",\\\"academy\\\",\\\"accenture\\\",\\\"accountant\\\",\\\"accountants\\\",\\\"aco\\\",\\\"actor\\\",\\\"ad\\\",\\\"adac\\\",\\\"ads\\\",\\\"adult\\\",\\\"ae\\\",\\\"aeg\\\",\\\"aero\\\",\\\"aetna\\\",\\\"af\\\",\\\"afamilycompany\\\",\\\"afl\\\",\\\"africa\\\",\\\"ag\\\",\\\"agakhan\\\",\\\"agency\\\",\\\"ai\\\",\\\"aig\\\",\\\"airbus\\\",\\\"airforce\\\",\\\"airtel\\\",\\\"akdn\\\",\\\"al\\\",\\\"alfaromeo\\\",\\\"alibaba\\\",\\\"alipay\\\",\\\"allfinanz\\\",\\\"allstate\\\",\\\"ally\\\",\\\"alsace\\\",\\\"alstom\\\",\\\"am\\\",\\\"amazon\\\",\\\"americanexpress\\\",\\\"americanfamily\\\",\\\"amex\\\",\\\"amfam\\\",\\\"amica\\\",\\\"amsterdam\\\",\\\"analytics\\\",\\\"android\\\",\\\"anquan\\\",\\\"anz\\\",\\\"ao\\\",\\\"aol\\\",\\\"apartments\\\",\\\"app\\\",\\\"apple\\\",\\\"aq\\\",\\\"aquarelle\\\",\\\"ar\\\",\\\"arab\\\",\\\"aramco\\\",\\\"archi\\\",\\\"army\\\",\\\"arpa\\\",\\\"art\\\",\\\"arte\\\",\\\"as\\\",\\\"asda\\\",\\\"asia\\\",\\\"associates\\\",\\\"at\\\",\\\"athleta\\\",\\\"attorney\\\",\\\"au\\\",\\\"auction\\\",\\\"audi\\\",\\\"audible\\\",\\\"audio\\\",\\\"auspost\\\",\\\"author\\\",\\\"auto\\\",\\\"autos\\\",\\\"avianca\\\",\\\"aw\\\",\\\"aws\\\",\\\"ax\\\",\\\"axa\\\",\\\"az\\\",\\\"azure\\\",\\\"ba\\\",\\\"baby\\\",\\\"baidu\\\",\\\"banamex\\\",\\\"bananarepublic\\\",\\\"band\\\",\\\"bank\\\",\\\"bar\\\",\\\"barcelona\\\",\\\"barclaycard\\\",\\\"barclays\\\",\\\"barefoot\\\",\\\"bargains\\\",\\\"baseball\\\",\\\"basketball\\\",\\\"bauhaus\\\",\\\"bayern\\\",\\\"bb\\\",\\\"bbc\\\",\\\"bbt\\\",\\\"bbva\\\",\\\"bcg\\\",\\\"bcn\\\",\\\"bd\\\",\\\"be\\\",\\\"beats\\\",\\\"beauty\\\",\\\"beer\\\",\\\"bentley\\\",\\\"berlin\\\",\\\"best\\\",\\\"bestbuy\\\",\\\"bet\\\",\\\"bf\\\",\\\"bg\\\",\\\"bh\\\",\\\"bharti\\\",\\\"bi\\\",\\\"bible\\\",\\\"bid\\\",\\\"bike\\\",\\\"bing\\\",\\\"bingo\\\",\\\"bio\\\",\\\"biz\\\",\\\"bj\\\",\\\"black\\\",\\\"blackfriday\\\",\\\"blockbuster\\\",\\\"blog\\\",\\\"bloomberg\\\",\\\"blue\\\",\\\"bm\\\",\\\"bms\\\",\\\"bmw\\\",\\\"bn\\\",\\\"bnpparibas\\\",\\\"bo\\\",\\\"boats\\\",\\\"boehringer\\\",\\\"bofa\\\",\\\"bom\\\",\\\"bond\\\",\\\"boo\\\",\\\"book\\\",\\\"booking\\\",\\\"bosch\\\",\\\"bostik\\\",\\\"boston\\\",\\\"bot\\\",\\\"boutique\\\",\\\"box\\\",\\\"br\\\",\\\"bradesco\\\",\\\"bridgestone\\\",\\\"broadway\\\",\\\"broker\\\",\\\"brother\\\",\\\"brussels\\\",\\\"bs\\\",\\\"bt\\\",\\\"budapest\\\",\\\"bugatti\\\",\\\"build\\\",\\\"builders\\\",\\\"business\\\",\\\"buy\\\",\\\"buzz\\\",\\\"bv\\\",\\\"bw\\\",\\\"by\\\",\\\"bz\\\",\\\"bzh\\\",\\\"ca\\\",\\\"cab\\\",\\\"cafe\\\",\\\"cal\\\",\\\"call\\\",\\\"calvinklein\\\",\\\"cam\\\",\\\"camera\\\",\\\"camp\\\",\\\"cancerresearch\\\",\\\"canon\\\",\\\"capetown\\\",\\\"capital\\\",\\\"capitalone\\\",\\\"car\\\",\\\"caravan\\\",\\\"cards\\\",\\\"care\\\",\\\"career\\\",\\\"careers\\\",\\\"cars\\\",\\\"casa\\\",\\\"case\\\",\\\"cash\\\",\\\"casino\\\",\\\"cat\\\",\\\"catering\\\",\\\"catholic\\\",\\\"cba\\\",\\\"cbn\\\",\\\"cbre\\\",\\\"cbs\\\",\\\"cc\\\",\\\"cd\\\",\\\"center\\\",\\\"ceo\\\",\\\"cern\\\",\\\"cf\\\",\\\"cfa\\\",\\\"cfd\\\",\\\"cg\\\",\\\"ch\\\",\\\"chanel\\\",\\\"channel\\\",\\\"charity\\\",\\\"chase\\\",\\\"chat\\\",\\\"cheap\\\",\\\"chintai\\\",\\\"christmas\\\",\\\"chrome\\\",\\\"church\\\",\\\"ci\\\",\\\"cipriani\\\",\\\"circle\\\",\\\"cisco\\\",\\\"citadel\\\",\\\"citi\\\",\\\"citic\\\",\\\"city\\\",\\\"cityeats\\\",\\\"ck\\\",\\\"cl\\\",\\\"claims\\\",\\\"cleaning\\\",\\\"click\\\",\\\"clinic\\\",\\\"clinique\\\",\\\"clothing\\\",\\\"cloud\\\",\\\"club\\\",\\\"clubmed\\\",\\\"cm\\\",\\\"cn\\\",\\\"co\\\",\\\"coach\\\",\\\"codes\\\",\\\"coffee\\\",\\\"college\\\",\\\"cologne\\\",\\\"com\\\",\\\"comcast\\\",\\\"commbank\\\",\\\"community\\\",\\\"company\\\",\\\"compare\\\",\\\"computer\\\",\\\"comsec\\\",\\\"condos\\\",\\\"construction\\\",\\\"consulting\\\",\\\"contact\\\",\\\"contractors\\\",\\\"cooking\\\",\\\"cookingchannel\\\",\\\"cool\\\",\\\"coop\\\",\\\"corsica\\\",\\\"country\\\",\\\"coupon\\\",\\\"coupons\\\",\\\"courses\\\",\\\"cpa\\\",\\\"cr\\\",\\\"credit\\\",\\\"creditcard\\\",\\\"creditunion\\\",\\\"cricket\\\",\\\"crown\\\",\\\"crs\\\",\\\"cruise\\\",\\\"cruises\\\",\\\"csc\\\",\\\"cu\\\",\\\"cuisinella\\\",\\\"cv\\\",\\\"cw\\\",\\\"cx\\\",\\\"cy\\\",\\\"cymru\\\",\\\"cyou\\\",\\\"cz\\\",\\\"dabur\\\",\\\"dad\\\",\\\"dance\\\",\\\"data\\\",\\\"date\\\",\\\"dating\\\",\\\"datsun\\\",\\\"day\\\",\\\"dclk\\\",\\\"dds\\\",\\\"de\\\",\\\"deal\\\",\\\"dealer\\\",\\\"deals\\\",\\\"degree\\\",\\\"delivery\\\",\\\"dell\\\",\\\"deloitte\\\",\\\"delta\\\",\\\"democrat\\\",\\\"dental\\\",\\\"dentist\\\",\\\"desi\\\",\\\"design\\\",\\\"dev\\\",\\\"dhl\\\",\\\"diamonds\\\",\\\"diet\\\",\\\"digital\\\",\\\"direct\\\",\\\"directory\\\",\\\"discount\\\",\\\"discover\\\",\\\"dish\\\",\\\"diy\\\",\\\"dj\\\",\\\"dk\\\",\\\"dm\\\",\\\"dnp\\\",\\\"do\\\",\\\"docs\\\",\\\"doctor\\\",\\\"dog\\\",\\\"domains\\\",\\\"dot\\\",\\\"download\\\",\\\"drive\\\",\\\"dtv\\\",\\\"dubai\\\",\\\"duck\\\",\\\"dunlop\\\",\\\"dupont\\\",\\\"durban\\\",\\\"dvag\\\",\\\"dvr\\\",\\\"dz\\\",\\\"earth\\\",\\\"eat\\\",\\\"ec\\\",\\\"eco\\\",\\\"edeka\\\",\\\"edu\\\",\\\"education\\\",\\\"ee\\\",\\\"eg\\\",\\\"email\\\",\\\"emerck\\\",\\\"energy\\\",\\\"engineer\\\",\\\"engineering\\\",\\\"enterprises\\\",\\\"epson\\\",\\\"equipment\\\",\\\"er\\\",\\\"ericsson\\\",\\\"erni\\\",\\\"es\\\",\\\"esq\\\",\\\"estate\\\",\\\"et\\\",\\\"etisalat\\\",\\\"eu\\\",\\\"eurovision\\\",\\\"eus\\\",\\\"events\\\",\\\"exchange\\\",\\\"expert\\\",\\\"exposed\\\",\\\"express\\\",\\\"extraspace\\\",\\\"fage\\\",\\\"fail\\\",\\\"fairwinds\\\",\\\"faith\\\",\\\"family\\\",\\\"fan\\\",\\\"fans\\\",\\\"farm\\\",\\\"farmers\\\",\\\"fashion\\\",\\\"fast\\\",\\\"fedex\\\",\\\"feedback\\\",\\\"ferrari\\\",\\\"ferrero\\\",\\\"fi\\\",\\\"fiat\\\",\\\"fidelity\\\",\\\"fido\\\",\\\"film\\\",\\\"final\\\",\\\"finance\\\",\\\"financial\\\",\\\"fire\\\",\\\"firestone\\\",\\\"firmdale\\\",\\\"fish\\\",\\\"fishing\\\",\\\"fit\\\",\\\"fitness\\\",\\\"fj\\\",\\\"fk\\\",\\\"flickr\\\",\\\"flights\\\",\\\"flir\\\",\\\"florist\\\",\\\"flowers\\\",\\\"fly\\\",\\\"fm\\\",\\\"fo\\\",\\\"foo\\\",\\\"food\\\",\\\"foodnetwork\\\",\\\"football\\\",\\\"ford\\\",\\\"forex\\\",\\\"forsale\\\",\\\"forum\\\",\\\"foundation\\\",\\\"fox\\\",\\\"fr\\\",\\\"free\\\",\\\"fresenius\\\",\\\"frl\\\",\\\"frogans\\\",\\\"frontdoor\\\",\\\"frontier\\\",\\\"ftr\\\",\\\"fujitsu\\\",\\\"fun\\\",\\\"fund\\\",\\\"furniture\\\",\\\"futbol\\\",\\\"fyi\\\",\\\"ga\\\",\\\"gal\\\",\\\"gallery\\\",\\\"gallo\\\",\\\"gallup\\\",\\\"game\\\",\\\"games\\\",\\\"gap\\\",\\\"garden\\\",\\\"gay\\\",\\\"gb\\\",\\\"gbiz\\\",\\\"gd\\\",\\\"gdn\\\",\\\"ge\\\",\\\"gea\\\",\\\"gent\\\",\\\"genting\\\",\\\"george\\\",\\\"gf\\\",\\\"gg\\\",\\\"ggee\\\",\\\"gh\\\",\\\"gi\\\",\\\"gift\\\",\\\"gifts\\\",\\\"gives\\\",\\\"giving\\\",\\\"gl\\\",\\\"glade\\\",\\\"glass\\\",\\\"gle\\\",\\\"global\\\",\\\"globo\\\",\\\"gm\\\",\\\"gmail\\\",\\\"gmbh\\\",\\\"gmo\\\",\\\"gmx\\\",\\\"gn\\\",\\\"godaddy\\\",\\\"gold\\\",\\\"goldpoint\\\",\\\"golf\\\",\\\"goo\\\",\\\"goodyear\\\",\\\"goog\\\",\\\"google\\\",\\\"gop\\\",\\\"got\\\",\\\"gov\\\",\\\"gp\\\",\\\"gq\\\",\\\"gr\\\",\\\"grainger\\\",\\\"graphics\\\",\\\"gratis\\\",\\\"green\\\",\\\"gripe\\\",\\\"grocery\\\",\\\"group\\\",\\\"gs\\\",\\\"gt\\\",\\\"gu\\\",\\\"guardian\\\",\\\"gucci\\\",\\\"guge\\\",\\\"guide\\\",\\\"guitars\\\",\\\"guru\\\",\\\"gw\\\",\\\"gy\\\",\\\"hair\\\",\\\"hamburg\\\",\\\"hangout\\\",\\\"haus\\\",\\\"hbo\\\",\\\"hdfc\\\",\\\"hdfcbank\\\",\\\"health\\\",\\\"healthcare\\\",\\\"help\\\",\\\"helsinki\\\",\\\"here\\\",\\\"hermes\\\",\\\"hgtv\\\",\\\"hiphop\\\",\\\"hisamitsu\\\",\\\"hitachi\\\",\\\"hiv\\\",\\\"hk\\\",\\\"hkt\\\",\\\"hm\\\",\\\"hn\\\",\\\"hockey\\\",\\\"holdings\\\",\\\"holiday\\\",\\\"homedepot\\\",\\\"homegoods\\\",\\\"homes\\\",\\\"homesense\\\",\\\"honda\\\",\\\"horse\\\",\\\"hospital\\\",\\\"host\\\",\\\"hosting\\\",\\\"hot\\\",\\\"hoteles\\\",\\\"hotels\\\",\\\"hotmail\\\",\\\"house\\\",\\\"how\\\",\\\"hr\\\",\\\"hsbc\\\",\\\"ht\\\",\\\"hu\\\",\\\"hughes\\\",\\\"hyatt\\\",\\\"hyundai\\\",\\\"ibm\\\",\\\"icbc\\\",\\\"ice\\\",\\\"icu\\\",\\\"id\\\",\\\"ie\\\",\\\"ieee\\\",\\\"ifm\\\",\\\"ikano\\\",\\\"il\\\",\\\"im\\\",\\\"imamat\\\",\\\"imdb\\\",\\\"immo\\\",\\\"immobilien\\\",\\\"in\\\",\\\"inc\\\",\\\"industries\\\",\\\"infiniti\\\",\\\"info\\\",\\\"ing\\\",\\\"ink\\\",\\\"institute\\\",\\\"insurance\\\",\\\"insure\\\",\\\"int\\\",\\\"international\\\",\\\"intuit\\\",\\\"investments\\\",\\\"io\\\",\\\"ipiranga\\\",\\\"iq\\\",\\\"ir\\\",\\\"irish\\\",\\\"is\\\",\\\"ismaili\\\",\\\"ist\\\",\\\"istanbul\\\",\\\"it\\\",\\\"itau\\\",\\\"itv\\\",\\\"jaguar\\\",\\\"java\\\",\\\"jcb\\\",\\\"je\\\",\\\"jeep\\\",\\\"jetzt\\\",\\\"jewelry\\\",\\\"jio\\\",\\\"jll\\\",\\\"jm\\\",\\\"jmp\\\",\\\"jnj\\\",\\\"jo\\\",\\\"jobs\\\",\\\"joburg\\\",\\\"jot\\\",\\\"joy\\\",\\\"jp\\\",\\\"jpmorgan\\\",\\\"jprs\\\",\\\"juegos\\\",\\\"juniper\\\",\\\"kaufen\\\",\\\"kddi\\\",\\\"ke\\\",\\\"kerryhotels\\\",\\\"kerrylogistics\\\",\\\"kerryproperties\\\",\\\"kfh\\\",\\\"kg\\\",\\\"kh\\\",\\\"ki\\\",\\\"kia\\\",\\\"kim\\\",\\\"kinder\\\",\\\"kindle\\\",\\\"kitchen\\\",\\\"kiwi\\\",\\\"km\\\",\\\"kn\\\",\\\"koeln\\\",\\\"komatsu\\\",\\\"kosher\\\",\\\"kp\\\",\\\"kpmg\\\",\\\"kpn\\\",\\\"kr\\\",\\\"krd\\\",\\\"kred\\\",\\\"kuokgroup\\\",\\\"kw\\\",\\\"ky\\\",\\\"kyoto\\\",\\\"kz\\\",\\\"la\\\",\\\"lacaixa\\\",\\\"lamborghini\\\",\\\"lamer\\\",\\\"lancaster\\\",\\\"lancia\\\",\\\"land\\\",\\\"landrover\\\",\\\"lanxess\\\",\\\"lasalle\\\",\\\"lat\\\",\\\"latino\\\",\\\"latrobe\\\",\\\"law\\\",\\\"lawyer\\\",\\\"lb\\\",\\\"lc\\\",\\\"lds\\\",\\\"lease\\\",\\\"leclerc\\\",\\\"lefrak\\\",\\\"legal\\\",\\\"lego\\\",\\\"lexus\\\",\\\"lgbt\\\",\\\"li\\\",\\\"lidl\\\",\\\"life\\\",\\\"lifeinsurance\\\",\\\"lifestyle\\\",\\\"lighting\\\",\\\"like\\\",\\\"lilly\\\",\\\"limited\\\",\\\"limo\\\",\\\"lincoln\\\",\\\"linde\\\",\\\"link\\\",\\\"lipsy\\\",\\\"live\\\",\\\"living\\\",\\\"lixil\\\",\\\"lk\\\",\\\"llc\\\",\\\"llp\\\",\\\"loan\\\",\\\"loans\\\",\\\"locker\\\",\\\"locus\\\",\\\"loft\\\",\\\"lol\\\",\\\"london\\\",\\\"lotte\\\",\\\"lotto\\\",\\\"love\\\",\\\"lpl\\\",\\\"lplfinancial\\\",\\\"lr\\\",\\\"ls\\\",\\\"lt\\\",\\\"ltd\\\",\\\"ltda\\\",\\\"lu\\\",\\\"lundbeck\\\",\\\"luxe\\\",\\\"luxury\\\",\\\"lv\\\",\\\"ly\\\",\\\"ma\\\",\\\"macys\\\",\\\"madrid\\\",\\\"maif\\\",\\\"maison\\\",\\\"makeup\\\",\\\"man\\\",\\\"management\\\",\\\"mango\\\",\\\"map\\\",\\\"market\\\",\\\"marketing\\\",\\\"markets\\\",\\\"marriott\\\",\\\"marshalls\\\",\\\"maserati\\\",\\\"mattel\\\",\\\"mba\\\",\\\"mc\\\",\\\"mckinsey\\\",\\\"md\\\",\\\"me\\\",\\\"med\\\",\\\"media\\\",\\\"meet\\\",\\\"melbourne\\\",\\\"meme\\\",\\\"memorial\\\",\\\"men\\\",\\\"menu\\\",\\\"merckmsd\\\",\\\"mg\\\",\\\"mh\\\",\\\"miami\\\",\\\"microsoft\\\",\\\"mil\\\",\\\"mini\\\",\\\"mint\\\",\\\"mit\\\",\\\"mitsubishi\\\",\\\"mk\\\",\\\"ml\\\",\\\"mlb\\\",\\\"mls\\\",\\\"mm\\\",\\\"mma\\\",\\\"mn\\\",\\\"mo\\\",\\\"mobi\\\",\\\"mobile\\\",\\\"moda\\\",\\\"moe\\\",\\\"moi\\\",\\\"mom\\\",\\\"monash\\\",\\\"money\\\",\\\"monster\\\",\\\"mormon\\\",\\\"mortgage\\\",\\\"moscow\\\",\\\"moto\\\",\\\"motorcycles\\\",\\\"mov\\\",\\\"movie\\\",\\\"mp\\\",\\\"mq\\\",\\\"mr\\\",\\\"ms\\\",\\\"msd\\\",\\\"mt\\\",\\\"mtn\\\",\\\"mtr\\\",\\\"mu\\\",\\\"museum\\\",\\\"mutual\\\",\\\"mv\\\",\\\"mw\\\",\\\"mx\\\",\\\"my\\\",\\\"mz\\\",\\\"na\\\",\\\"nab\\\",\\\"nagoya\\\",\\\"name\\\",\\\"natura\\\",\\\"navy\\\",\\\"nba\\\",\\\"nc\\\",\\\"ne\\\",\\\"nec\\\",\\\"net\\\",\\\"netbank\\\",\\\"netflix\\\",\\\"network\\\",\\\"neustar\\\",\\\"new\\\",\\\"news\\\",\\\"next\\\",\\\"nextdirect\\\",\\\"nexus\\\",\\\"nf\\\",\\\"nfl\\\",\\\"ng\\\",\\\"ngo\\\",\\\"nhk\\\",\\\"ni\\\",\\\"nico\\\",\\\"nike\\\",\\\"nikon\\\",\\\"ninja\\\",\\\"nissan\\\",\\\"nissay\\\",\\\"nl\\\",\\\"no\\\",\\\"nokia\\\",\\\"northwesternmutual\\\",\\\"norton\\\",\\\"now\\\",\\\"nowruz\\\",\\\"nowtv\\\",\\\"np\\\",\\\"nr\\\",\\\"nra\\\",\\\"nrw\\\",\\\"ntt\\\",\\\"nu\\\",\\\"nyc\\\",\\\"nz\\\",\\\"obi\\\",\\\"observer\\\",\\\"off\\\",\\\"office\\\",\\\"okinawa\\\",\\\"olayan\\\",\\\"olayangroup\\\",\\\"oldnavy\\\",\\\"ollo\\\",\\\"om\\\",\\\"omega\\\",\\\"one\\\",\\\"ong\\\",\\\"onl\\\",\\\"online\\\",\\\"ooo\\\",\\\"open\\\",\\\"oracle\\\",\\\"orange\\\",\\\"org\\\",\\\"organic\\\",\\\"origins\\\",\\\"osaka\\\",\\\"otsuka\\\",\\\"ott\\\",\\\"ovh\\\",\\\"pa\\\",\\\"page\\\",\\\"panasonic\\\",\\\"paris\\\",\\\"pars\\\",\\\"partners\\\",\\\"parts\\\",\\\"party\\\",\\\"passagens\\\",\\\"pay\\\",\\\"pccw\\\",\\\"pe\\\",\\\"pet\\\",\\\"pf\\\",\\\"pfizer\\\",\\\"pg\\\",\\\"ph\\\",\\\"pharmacy\\\",\\\"phd\\\",\\\"philips\\\",\\\"phone\\\",\\\"photo\\\",\\\"photography\\\",\\\"photos\\\",\\\"physio\\\",\\\"pics\\\",\\\"pictet\\\",\\\"pictures\\\",\\\"pid\\\",\\\"pin\\\",\\\"ping\\\",\\\"pink\\\",\\\"pioneer\\\",\\\"pizza\\\",\\\"pk\\\",\\\"pl\\\",\\\"place\\\",\\\"play\\\",\\\"playstation\\\",\\\"plumbing\\\",\\\"plus\\\",\\\"pm\\\",\\\"pn\\\",\\\"pnc\\\",\\\"pohl\\\",\\\"poker\\\",\\\"politie\\\",\\\"porn\\\",\\\"post\\\",\\\"pr\\\",\\\"pramerica\\\",\\\"praxi\\\",\\\"press\\\",\\\"prime\\\",\\\"pro\\\",\\\"prod\\\",\\\"productions\\\",\\\"prof\\\",\\\"progressive\\\",\\\"promo\\\",\\\"properties\\\",\\\"property\\\",\\\"protection\\\",\\\"pru\\\",\\\"prudential\\\",\\\"ps\\\",\\\"pt\\\",\\\"pub\\\",\\\"pw\\\",\\\"pwc\\\",\\\"py\\\",\\\"qa\\\",\\\"qpon\\\",\\\"quebec\\\",\\\"quest\\\",\\\"qvc\\\",\\\"racing\\\",\\\"radio\\\",\\\"raid\\\",\\\"re\\\",\\\"read\\\",\\\"realestate\\\",\\\"realtor\\\",\\\"realty\\\",\\\"recipes\\\",\\\"red\\\",\\\"redstone\\\",\\\"redumbrella\\\",\\\"rehab\\\",\\\"reise\\\",\\\"reisen\\\",\\\"reit\\\",\\\"reliance\\\",\\\"ren\\\",\\\"rent\\\",\\\"rentals\\\",\\\"repair\\\",\\\"report\\\",\\\"republican\\\",\\\"rest\\\",\\\"restaurant\\\",\\\"review\\\",\\\"reviews\\\",\\\"rexroth\\\",\\\"rich\\\",\\\"richardli\\\",\\\"ricoh\\\",\\\"ril\\\",\\\"rio\\\",\\\"rip\\\",\\\"rmit\\\",\\\"ro\\\",\\\"rocher\\\",\\\"rocks\\\",\\\"rodeo\\\",\\\"rogers\\\",\\\"room\\\",\\\"rs\\\",\\\"rsvp\\\",\\\"ru\\\",\\\"rugby\\\",\\\"ruhr\\\",\\\"run\\\",\\\"rw\\\",\\\"rwe\\\",\\\"ryukyu\\\",\\\"sa\\\",\\\"saarland\\\",\\\"safe\\\",\\\"safety\\\",\\\"sakura\\\",\\\"sale\\\",\\\"salon\\\",\\\"samsclub\\\",\\\"samsung\\\",\\\"sandvik\\\",\\\"sandvikcoromant\\\",\\\"sanofi\\\",\\\"sap\\\",\\\"sarl\\\",\\\"sas\\\",\\\"save\\\",\\\"saxo\\\",\\\"sb\\\",\\\"sbi\\\",\\\"sbs\\\",\\\"sc\\\",\\\"sca\\\",\\\"scb\\\",\\\"schaeffler\\\",\\\"schmidt\\\",\\\"scholarships\\\",\\\"school\\\",\\\"schule\\\",\\\"schwarz\\\",\\\"science\\\",\\\"scjohnson\\\",\\\"scot\\\",\\\"sd\\\",\\\"se\\\",\\\"search\\\",\\\"seat\\\",\\\"secure\\\",\\\"security\\\",\\\"seek\\\",\\\"select\\\",\\\"sener\\\",\\\"services\\\",\\\"ses\\\",\\\"seven\\\",\\\"sew\\\",\\\"sex\\\",\\\"sexy\\\",\\\"sfr\\\",\\\"sg\\\",\\\"sh\\\",\\\"shangrila\\\",\\\"sharp\\\",\\\"shaw\\\",\\\"shell\\\",\\\"shia\\\",\\\"shiksha\\\",\\\"shoes\\\",\\\"shop\\\",\\\"shopping\\\",\\\"shouji\\\",\\\"show\\\",\\\"showtime\\\",\\\"si\\\",\\\"silk\\\",\\\"sina\\\",\\\"singles\\\",\\\"site\\\",\\\"sj\\\",\\\"sk\\\",\\\"ski\\\",\\\"skin\\\",\\\"sky\\\",\\\"skype\\\",\\\"sl\\\",\\\"sling\\\",\\\"sm\\\",\\\"smart\\\",\\\"smile\\\",\\\"sn\\\",\\\"sncf\\\",\\\"so\\\",\\\"soccer\\\",\\\"social\\\",\\\"softbank\\\",\\\"software\\\",\\\"sohu\\\",\\\"solar\\\",\\\"solutions\\\",\\\"song\\\",\\\"sony\\\",\\\"soy\\\",\\\"spa\\\",\\\"space\\\",\\\"sport\\\",\\\"spot\\\",\\\"sr\\\",\\\"srl\\\",\\\"ss\\\",\\\"st\\\",\\\"stada\\\",\\\"staples\\\",\\\"star\\\",\\\"statebank\\\",\\\"statefarm\\\",\\\"stc\\\",\\\"stcgroup\\\",\\\"stockholm\\\",\\\"storage\\\",\\\"store\\\",\\\"stream\\\",\\\"studio\\\",\\\"study\\\",\\\"style\\\",\\\"su\\\",\\\"sucks\\\",\\\"supplies\\\",\\\"supply\\\",\\\"support\\\",\\\"surf\\\",\\\"surgery\\\",\\\"suzuki\\\",\\\"sv\\\",\\\"swatch\\\",\\\"swiftcover\\\",\\\"swiss\\\",\\\"sx\\\",\\\"sy\\\",\\\"sydney\\\",\\\"systems\\\",\\\"sz\\\",\\\"tab\\\",\\\"taipei\\\",\\\"talk\\\",\\\"taobao\\\",\\\"target\\\",\\\"tatamotors\\\",\\\"tatar\\\",\\\"tattoo\\\",\\\"tax\\\",\\\"taxi\\\",\\\"tc\\\",\\\"tci\\\",\\\"td\\\",\\\"tdk\\\",\\\"team\\\",\\\"tech\\\",\\\"technology\\\",\\\"tel\\\",\\\"temasek\\\",\\\"tennis\\\",\\\"teva\\\",\\\"tf\\\",\\\"tg\\\",\\\"th\\\",\\\"thd\\\",\\\"theater\\\",\\\"theatre\\\",\\\"tiaa\\\",\\\"tickets\\\",\\\"tienda\\\",\\\"tiffany\\\",\\\"tips\\\",\\\"tires\\\",\\\"tirol\\\",\\\"tj\\\",\\\"tjmaxx\\\",\\\"tjx\\\",\\\"tk\\\",\\\"tkmaxx\\\",\\\"tl\\\",\\\"tm\\\",\\\"tmall\\\",\\\"tn\\\",\\\"to\\\",\\\"today\\\",\\\"tokyo\\\",\\\"tools\\\",\\\"top\\\",\\\"toray\\\",\\\"toshiba\\\",\\\"total\\\",\\\"tours\\\",\\\"town\\\",\\\"toyota\\\",\\\"toys\\\",\\\"tr\\\",\\\"trade\\\",\\\"trading\\\",\\\"training\\\",\\\"travel\\\",\\\"travelchannel\\\",\\\"travelers\\\",\\\"travelersinsurance\\\",\\\"trust\\\",\\\"trv\\\",\\\"tt\\\",\\\"tube\\\",\\\"tui\\\",\\\"tunes\\\",\\\"tushu\\\",\\\"tv\\\",\\\"tvs\\\",\\\"tw\\\",\\\"tz\\\",\\\"ua\\\",\\\"ubank\\\",\\\"ubs\\\",\\\"ug\\\",\\\"uk\\\",\\\"unicom\\\",\\\"university\\\",\\\"uno\\\",\\\"uol\\\",\\\"ups\\\",\\\"us\\\",\\\"uy\\\",\\\"uz\\\",\\\"va\\\",\\\"vacations\\\",\\\"vana\\\",\\\"vanguard\\\",\\\"vc\\\",\\\"ve\\\",\\\"vegas\\\",\\\"ventures\\\",\\\"verisign\\\",\\\"vermögensberater\\\",\\\"vermögensberatung\\\",\\\"versicherung\\\",\\\"vet\\\",\\\"vg\\\",\\\"vi\\\",\\\"viajes\\\",\\\"video\\\",\\\"vig\\\",\\\"viking\\\",\\\"villas\\\",\\\"vin\\\",\\\"vip\\\",\\\"virgin\\\",\\\"visa\\\",\\\"vision\\\",\\\"viva\\\",\\\"vivo\\\",\\\"vlaanderen\\\",\\\"vn\\\",\\\"vodka\\\",\\\"volkswagen\\\",\\\"volvo\\\",\\\"vote\\\",\\\"voting\\\",\\\"voto\\\",\\\"voyage\\\",\\\"vu\\\",\\\"vuelos\\\",\\\"wales\\\",\\\"walmart\\\",\\\"walter\\\",\\\"wang\\\",\\\"wanggou\\\",\\\"watch\\\",\\\"watches\\\",\\\"weather\\\",\\\"weatherchannel\\\",\\\"webcam\\\",\\\"weber\\\",\\\"website\\\",\\\"wed\\\",\\\"wedding\\\",\\\"weibo\\\",\\\"weir\\\",\\\"wf\\\",\\\"whoswho\\\",\\\"wien\\\",\\\"wiki\\\",\\\"williamhill\\\",\\\"win\\\",\\\"windows\\\",\\\"wine\\\",\\\"winners\\\",\\\"wme\\\",\\\"wolterskluwer\\\",\\\"woodside\\\",\\\"work\\\",\\\"works\\\",\\\"world\\\",\\\"wow\\\",\\\"ws\\\",\\\"wtc\\\",\\\"wtf\\\",\\\"xbox\\\",\\\"xerox\\\",\\\"xfinity\\\",\\\"xihuan\\\",\\\"xin\\\",\\\"xxx\\\",\\\"xyz\\\",\\\"yachts\\\",\\\"yahoo\\\",\\\"yamaxun\\\",\\\"yandex\\\",\\\"ye\\\",\\\"yodobashi\\\",\\\"yoga\\\",\\\"yokohama\\\",\\\"you\\\",\\\"youtube\\\",\\\"yt\\\",\\\"yun\\\",\\\"za\\\",\\\"zappos\\\",\\\"zara\\\",\\\"zero\\\",\\\"zip\\\",\\\"zm\\\",\\\"zone\\\",\\\"zuerich\\\",\\\"zw\\\",\\\"ελ\\\",\\\"ευ\\\",\\\"бг\\\",\\\"бел\\\",\\\"дети\\\",\\\"ею\\\",\\\"католик\\\",\\\"ком\\\",\\\"мкд\\\",\\\"мон\\\",\\\"москва\\\",\\\"онлайн\\\",\\\"орг\\\",\\\"рус\\\",\\\"рф\\\",\\\"сайт\\\",\\\"срб\\\",\\\"укр\\\",\\\"қаз\\\",\\\"հայ\\\",\\\"ישראל\\\",\\\"קום\\\",\\\"ابوظبي\\\",\\\"اتصالات\\\",\\\"ارامكو\\\",\\\"الاردن\\\",\\\"البحرين\\\",\\\"الجزائر\\\",\\\"السعودية\\\",\\\"العليان\\\",\\\"المغرب\\\",\\\"امارات\\\",\\\"ایران\\\",\\\"بارت\\\",\\\"بازار\\\",\\\"بيتك\\\",\\\"بھارت\\\",\\\"تونس\\\",\\\"سودان\\\",\\\"سورية\\\",\\\"شبكة\\\",\\\"عراق\\\",\\\"عرب\\\",\\\"عمان\\\",\\\"فلسطين\\\",\\\"قطر\\\",\\\"كاثوليك\\\",\\\"كوم\\\",\\\"مصر\\\",\\\"مليسيا\\\",\\\"موريتانيا\\\",\\\"موقع\\\",\\\"همراه\\\",\\\"پاکستان\\\",\\\"ڀارت\\\",\\\"कॉम\\\",\\\"नेट\\\",\\\"भारत\\\",\\\"भारतम्\\\",\\\"भारोत\\\",\\\"संगठन\\\",\\\"বাংলা\\\",\\\"ভারত\\\",\\\"ভাৰত\\\",\\\"ਭਾਰਤ\\\",\\\"ભારત\\\",\\\"ଭାରତ\\\",\\\"இந்தியா\\\",\\\"இலங்கை\\\",\\\"சிங்கப்பூர்\\\",\\\"భారత్\\\",\\\"ಭಾರತ\\\",\\\"ഭാരതം\\\",\\\"ලංකා\\\",\\\"คอม\\\",\\\"ไทย\\\",\\\"ລາວ\\\",\\\"გე\\\",\\\"みんな\\\",\\\"アマゾン\\\",\\\"クラウド\\\",\\\"グーグル\\\",\\\"コム\\\",\\\"ストア\\\",\\\"セール\\\",\\\"ファッション\\\",\\\"ポイント\\\",\\\"世界\\\",\\\"中信\\\",\\\"中国\\\",\\\"中國\\\",\\\"中文网\\\",\\\"亚马逊\\\",\\\"企业\\\",\\\"佛山\\\",\\\"信息\\\",\\\"健康\\\",\\\"八卦\\\",\\\"公司\\\",\\\"公益\\\",\\\"台湾\\\",\\\"台灣\\\",\\\"商城\\\",\\\"商店\\\",\\\"商标\\\",\\\"嘉里\\\",\\\"嘉里大酒店\\\",\\\"在线\\\",\\\"大众汽车\\\",\\\"大拿\\\",\\\"天主教\\\",\\\"娱乐\\\",\\\"家電\\\",\\\"广东\\\",\\\"微博\\\",\\\"慈善\\\",\\\"我爱你\\\",\\\"手机\\\",\\\"招聘\\\",\\\"政务\\\",\\\"政府\\\",\\\"新加坡\\\",\\\"新闻\\\",\\\"时尚\\\",\\\"書籍\\\",\\\"机构\\\",\\\"淡马锡\\\",\\\"游戏\\\",\\\"澳門\\\",\\\"点看\\\",\\\"移动\\\",\\\"组织机构\\\",\\\"网址\\\",\\\"网店\\\",\\\"网站\\\",\\\"网络\\\",\\\"联通\\\",\\\"诺基亚\\\",\\\"谷歌\\\",\\\"购物\\\",\\\"通販\\\",\\\"集团\\\",\\\"電訊盈科\\\",\\\"飞利浦\\\",\\\"食品\\\",\\\"餐厅\\\",\\\"香格里拉\\\",\\\"香港\\\",\\\"닷넷\\\",\\\"닷컴\\\",\\\"삼성\\\",\\\"한국\\\"]\");\n\n//# sourceURL=webpack:///./node_modules/tlds/index.json?");
}),
"./node_modules/ua-parser-js/src/ua-parser.js":
(function(module, exports, __webpack_require__){
eval("var __WEBPACK_AMD_DEFINE_RESULT__;\n\n(function (window, undefined){\n\n    'use strict';\n\n    //////////////\n    // Constants\n    /////////////\n\n\n    var LIBVERSION='0.7.28',\n        EMPTY='',\n        UNKNOWN='?',\n        FUNC_TYPE='function',\n        UNDEF_TYPE='undefined',\n        OBJ_TYPE='object',\n        STR_TYPE='string',\n        MAJOR='major', // deprecated\n        MODEL='model',\n        NAME='name',\n        TYPE='type',\n        VENDOR='vendor',\n        VERSION='version',\n        ARCHITECTURE='architecture',\n        CONSOLE='console',\n        MOBILE='mobile',\n        TABLET='tablet',\n        SMARTTV='smarttv',\n        WEARABLE='wearable',\n        EMBEDDED='embedded',\n        UA_MAX_LENGTH=255;\n\n\n    ///////////\n    // Helper\n    //////////\n\n\n    var util={\n        extend:function (regexes, extensions){\n            var mergedRegexes={};\n            for (var i in regexes){\n                if(extensions[i]&&extensions[i].length % 2===0){\n                    mergedRegexes[i]=extensions[i].concat(regexes[i]);\n                }else{\n                    mergedRegexes[i]=regexes[i];\n                }\n            }\n            return mergedRegexes;\n        },\n        has:function (str1, str2){\n            return typeof str1===STR_TYPE ? str2.toLowerCase().indexOf(str1.toLowerCase())!==-1:false;\n        },\n        lowerize:function (str){\n            return str.toLowerCase();\n        },\n        major:function (version){\n            return typeof(version)===STR_TYPE ? version.replace(/[^\\d\\.]/g,'').split(\".\")[0]:undefined;\n        },\n        trim:function (str, len){\n            str=str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n            return typeof(len)===UNDEF_TYPE ? str:str.substring(0, UA_MAX_LENGTH);\n        }\n    };\n\n\n    ///////////////\n    // Map helper\n    //////////////\n\n\n    var mapper={\n\n        rgx:function (ua, arrays){\n\n            var i=0, j, k, p, q, matches, match;\n\n            // loop through all regexes maps\n            while (i < arrays.length&&!matches){\n\n                var regex=arrays[i],       // even sequence (0,2,4,..)\n                    props=arrays[i + 1];   // odd sequence (1,3,5,..)\n                j=k = 0;\n\n                // try matching uastring with regexes\n                while (j < regex.length&&!matches){\n\n                    matches=regex[j++].exec(ua);\n\n                    if(!!matches){\n                        for (p=0; p < props.length; p++){\n                            match=matches[++k];\n                            q=props[p];\n                            // check if given property is actually array\n                            if(typeof q===OBJ_TYPE&&q.length > 0){\n                                if(q.length==2){\n                                    if(typeof q[1]==FUNC_TYPE){\n                                        // assign modified match\n                                        this[q[0]]=q[1].call(this, match);\n                                    }else{\n                                        // assign given value, ignore regex match\n                                        this[q[0]]=q[1];\n                                    }\n                                }else if(q.length==3){\n                                    // check whether function or regex\n                                    if(typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)){\n                                        // call function (usually string mapper)\n                                        this[q[0]]=match ? q[1].call(this, match, q[2]):undefined;\n                                    }else{\n                                        // sanitize match using given regex\n                                        this[q[0]]=match ? match.replace(q[1], q[2]):undefined;\n                                    }\n                                }else if(q.length==4){\n                                        this[q[0]]=match ? q[3].call(this, match.replace(q[1], q[2])):undefined;\n                                }\n                            }else{\n                                this[q]=match ? match:undefined;\n                            }\n                        }\n                    }\n                }\n                i +=2;\n            }\n        },\n\n        str:function (str, map){\n\n            for (var i in map){\n                // check if array\n                if(typeof map[i]===OBJ_TYPE&&map[i].length > 0){\n                    for (var j=0; j < map[i].length; j++){\n                        if(util.has(map[i][j], str)){\n                            return (i===UNKNOWN) ? undefined:i;\n                        }\n                    }\n                }else if(util.has(map[i], str)){\n                    return (i===UNKNOWN) ? undefined:i;\n                }\n            }\n            return str;\n        }\n    };\n\n\n    ///////////////\n    // String map\n    //////////////\n\n\n    var maps={\n\n        browser:{\n            // Safari < 3.0\n            oldSafari:{\n                version:{\n                    '1.0':'/8',\n                    '1.2':'/1',\n                    '1.3':'/3',\n                    '2.0':'/412',\n                    '2.0.2':'/416',\n                    '2.0.3':'/417',\n                    '2.0.4':'/419',\n                    '?':'/'\n                }\n            },\n            oldEdge:{\n                version:{\n                    '0.1':'12.',\n                    '21':'13.',\n                    '31':'14.',\n                    '39':'15.',\n                    '41':'16.',\n                    '42':'17.',\n                    '44':'18.'\n                }\n            }\n        },\n\n        os:{\n            windows:{\n                version:{\n                    'ME':'4.90',\n                    'NT 3.11':'NT3.51',\n                    'NT 4.0':'NT4.0',\n                    '2000':'NT 5.0',\n                    'XP':['NT 5.1', 'NT 5.2'],\n                    'Vista':'NT 6.0',\n                    '7':'NT 6.1',\n                    '8':'NT 6.2',\n                    '8.1':'NT 6.3',\n                    '10':['NT 6.4', 'NT 10.0'],\n                    'RT':'ARM'\n                }\n            }\n        }\n    };\n\n\n    //////////////\n    // Regex map\n    /////////////\n\n\n    var regexes={\n\n        browser:[[\n\n            /\\b(?:crmo|crios)\\/([\\w\\.]+)/i                                      // Chrome for Android/iOS\n            ], [VERSION, [NAME, 'Chrome']], [\n            /edg(?:e|ios|a)?\\/([\\w\\.]+)/i                                       // Microsoft Edge\n            ], [VERSION, [NAME, 'Edge']], [\n            // breaking change (reserved for next major release):\n            ///edge\\/([\\w\\.]+)/i                                                  // Old Edge (Trident)\n            //], [[VERSION, mapper.str, maps.browser.oldEdge.version], [NAME, 'Edge']], [\n\n            // Presto based\n            /(opera\\smini)\\/([\\w\\.-]+)/i,                                       // Opera Mini\n            /(opera\\s[mobiletab]{3,6})\\b.+version\\/([\\w\\.-]+)/i,                // Opera Mobi/Tablet\n            /(opera)(?:.+version\\/|[\\/\\s]+)([\\w\\.]+)/i,                         // Opera\n            ], [NAME, VERSION], [\n            /opios[\\/\\s]+([\\w\\.]+)/i                                            // Opera mini on iphone >=8.0\n            ], [VERSION, [NAME, 'Opera Mini']], [\n            /\\sopr\\/([\\w\\.]+)/i                                                 // Opera Webkit\n            ], [VERSION, [NAME, 'Opera']], [\n\n            // Mixed\n            /(kindle)\\/([\\w\\.]+)/i,                                             // Kindle\n            /(lunascape|maxthon|netfront|jasmine|blazer)[\\/\\s]?([\\w\\.]*)/i,     // Lunascape/Maxthon/Netfront/Jasmine/Blazer\n            // Trident based\n            /(avant\\s|iemobile|slim)(?:browser)?[\\/\\s]?([\\w\\.]*)/i,             // Avant/IEMobile/SlimBrowser\n            /(ba?idubrowser)[\\/\\s]?([\\w\\.]+)/i,                                 // Baidu Browser\n            /(?:ms|\\()(ie)\\s([\\w\\.]+)/i,                                        // Internet Explorer\n\n            // Webkit/KHTML based\n            /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\\/([\\w\\.-]+)/i,\n                                                                                // Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS/Bowser/QupZilla/Falkon\n            /(rekonq|puffin|brave|whale|qqbrowserlite|qq)\\/([\\w\\.]+)/i,         // Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ, aka ShouQ\n            /(weibo)__([\\d\\.]+)/i                                               // Weibo\n            ], [NAME, VERSION], [\n            /(?:[\\s\\/]uc?\\s?browser|(?:juc.+)ucweb)[\\/\\s]?([\\w\\.]+)/i           // UCBrowser\n            ], [VERSION, [NAME, 'UCBrowser']], [\n            /(?:windowswechat)?\\sqbcore\\/([\\w\\.]+)\\b.*(?:windowswechat)?/i      // WeChat Desktop for Windows Built-in Browser\n            ], [VERSION, [NAME, 'WeChat(Win) Desktop']], [\n            /micromessenger\\/([\\w\\.]+)/i                                        // WeChat\n            ], [VERSION, [NAME, 'WeChat']], [\n            /konqueror\\/([\\w\\.]+)/i                                             // Konqueror\n            ], [VERSION, [NAME, 'Konqueror']], [\n            /trident.+rv[:\\s]([\\w\\.]{1,9})\\b.+like\\sgecko/i                     // IE11\n            ], [VERSION, [NAME, 'IE']], [\n            /yabrowser\\/([\\w\\.]+)/i                                             // Yandex\n            ], [VERSION, [NAME, 'Yandex']], [\n            /(avast|avg)\\/([\\w\\.]+)/i                                           // Avast/AVG Secure Browser\n            ], [[NAME, /(.+)/, '$1 Secure Browser'], VERSION], [\n            /focus\\/([\\w\\.]+)/i                                                 // Firefox Focus\n            ], [VERSION, [NAME, 'Firefox Focus']], [\n            /opt\\/([\\w\\.]+)/i                                                   // Opera Touch\n            ], [VERSION, [NAME, 'Opera Touch']], [\n            /coc_coc_browser\\/([\\w\\.]+)/i                                       // Coc Coc Browser\n            ], [VERSION, [NAME, 'Coc Coc']], [\n            /dolfin\\/([\\w\\.]+)/i                                                // Dolphin\n            ], [VERSION, [NAME, 'Dolphin']], [\n            /coast\\/([\\w\\.]+)/i                                                 // Opera Coast\n            ], [VERSION, [NAME, 'Opera Coast']],\n            [/xiaomi\\/miuibrowser\\/([\\w\\.]+)/i                                  // MIUI Browser\n            ], [VERSION, [NAME, 'MIUI Browser']], [\n            /fxios\\/([\\w\\.-]+)/i                                                // Firefox for iOS\n            ], [VERSION, [NAME, 'Firefox']], [\n            /(qihu|qhbrowser|qihoobrowser|360browser)/i                         // 360\n            ], [[NAME, '360 Browser']], [\n            /(oculus|samsung|sailfish)browser\\/([\\w\\.]+)/i\n            ], [[NAME, /(.+)/, '$1 Browser'], VERSION], [                       // Oculus/Samsung/Sailfish Browser\n            /(comodo_dragon)\\/([\\w\\.]+)/i                                       // Comodo Dragon\n            ], [[NAME, /_/g, ' '], VERSION], [\n            /\\s(electron)\\/([\\w\\.]+)\\ssafari/i,                                 // Electron-based App\n            /(tesla)(?:\\sqtcarbrowser|\\/(20[12]\\d\\.[\\w\\.-]+))/i,                // Tesla\n            /m?(qqbrowser|baiduboxapp|2345Explorer)[\\/\\s]?([\\w\\.]+)/i           // QQBrowser/Baidu App/2345 Browser\n            ], [NAME, VERSION], [\n            /(MetaSr)[\\/\\s]?([\\w\\.]+)/i,                                        // SouGouBrowser\n            /(LBBROWSER)/i                                                      // LieBao Browser\n            ], [NAME], [\n\n            // WebView\n            /;fbav\\/([\\w\\.]+);/i                                                // Facebook App for iOS & Android with version\n            ], [VERSION, [NAME, 'Facebook']], [\n            /FBAN\\/FBIOS|FB_IAB\\/FB4A/i                                         // Facebook App for iOS & Android without version\n            ], [[NAME, 'Facebook']], [\n            /safari\\s(line)\\/([\\w\\.]+)/i,                                       // Line App for iOS\n            /\\b(line)\\/([\\w\\.]+)\\/iab/i,                                        // Line App for Android\n            /(chromium|instagram)[\\/\\s]([\\w\\.-]+)/i                             // Chromium/Instagram\n            ], [NAME, VERSION], [\n            /\\bgsa\\/([\\w\\.]+)\\s.*safari\\//i                                     // Google Search Appliance on iOS\n            ], [VERSION, [NAME, 'GSA']], [\n\n            /headlesschrome(?:\\/([\\w\\.]+)|\\s)/i                                 // Chrome Headless\n            ], [VERSION, [NAME, 'Chrome Headless']], [\n\n            /\\swv\\).+(chrome)\\/([\\w\\.]+)/i                                      // Chrome WebView\n            ], [[NAME, 'Chrome WebView'], VERSION], [\n\n            /droid.+\\sversion\\/([\\w\\.]+)\\b.+(?:mobile\\ssafari|safari)/i         // Android Browser\n            ], [VERSION, [NAME, 'Android Browser']], [\n\n            /(chrome|omniweb|arora|[tizenoka]{5}\\s?browser)\\/v?([\\w\\.]+)/i      // Chrome/OmniWeb/Arora/Tizen/Nokia\n            ], [NAME, VERSION], [\n\n            /version\\/([\\w\\.]+)\\s.*mobile\\/\\w+\\s(safari)/i                      // Mobile Safari\n            ], [VERSION, [NAME, 'Mobile Safari']], [\n            /version\\/([\\w\\.]+)\\s.*(mobile\\s?safari|safari)/i                   // Safari & Safari Mobile\n            ], [VERSION, NAME], [\n            /webkit.+?(mobile\\s?safari|safari)(\\/[\\w\\.]+)/i                     // Safari < 3.0\n            ], [NAME, [VERSION, mapper.str, maps.browser.oldSafari.version]], [\n\n            /(webkit|khtml)\\/([\\w\\.]+)/i\n            ], [NAME, VERSION], [\n\n            // Gecko based\n            /(navigator|netscape)\\/([\\w\\.-]+)/i                                 // Netscape\n            ], [[NAME, 'Netscape'], VERSION], [\n            /ile\\svr;\\srv:([\\w\\.]+)\\).+firefox/i                                // Firefox Reality\n            ], [VERSION, [NAME, 'Firefox Reality']], [\n            /ekiohf.+(flow)\\/([\\w\\.]+)/i,                                       // Flow\n            /(swiftfox)/i,                                                      // Swiftfox\n            /(icedragon|iceweasel|camino|chimera|fennec|maemo\\sbrowser|minimo|conkeror)[\\/\\s]?([\\w\\.\\+]+)/i,\n                                                                                // IceDragon/Iceweasel/Camino/Chimera/Fennec/Maemo/Minimo/Conkeror\n            /(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([\\w\\.-]+)$/i,\n                                                                                // Firefox/SeaMonkey/K-Meleon/IceCat/IceApe/Firebird/Phoenix\n            /(firefox)\\/([\\w\\.]+)\\s[\\w\\s\\-]+\\/[\\w\\.]+$/i,                       // Other Firefox-based\n            /(mozilla)\\/([\\w\\.]+)\\s.+rv\\:.+gecko\\/\\d+/i,                        // Mozilla\n\n            // Other\n            /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\\/\\s]?([\\w\\.]+)/i,\n                                                                                // Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Sleipnir\n            /(links)\\s\\(([\\w\\.]+)/i,                                            // Links\n            /(gobrowser)\\/?([\\w\\.]*)/i,                                         // GoBrowser\n            /(ice\\s?browser)\\/v?([\\w\\._]+)/i,                                   // ICE Browser\n            /(mosaic)[\\/\\s]([\\w\\.]+)/i                                          // Mosaic\n            ], [NAME, VERSION]\n        ],\n\n        cpu:[[\n\n            /(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\\)]/i                     // AMD64 (x64)\n            ], [[ARCHITECTURE, 'amd64']], [\n\n            /(ia32(?=;))/i                                                      // IA32 (quicktime)\n            ], [[ARCHITECTURE, util.lowerize]], [\n\n            /((?:i[346]|x)86)[;\\)]/i                                            // IA32 (x86)\n            ], [[ARCHITECTURE, 'ia32']], [\n\n            /\\b(aarch64|armv?8e?l?)\\b/i                                         // ARM64\n            ], [[ARCHITECTURE, 'arm64']], [\n\n            /\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i                                   // ARMHF\n            ], [[ARCHITECTURE, 'armhf']], [\n\n            // PocketPC mistakenly identified as PowerPC\n            /windows\\s(ce|mobile);\\sppc;/i\n            ], [[ARCHITECTURE, 'arm']], [\n\n            /((?:ppc|powerpc)(?:64)?)(?:\\smac|;|\\))/i                           // PowerPC\n            ], [[ARCHITECTURE, /ower/, '', util.lowerize]], [\n\n            /(sun4\\w)[;\\)]/i                                                    // SPARC\n            ], [[ARCHITECTURE, 'sparc']], [\n\n            /((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\\s)avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i\n                                                                                // IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC\n            ], [[ARCHITECTURE, util.lowerize]]\n        ],\n\n        device:[[\n\n            //////////////////////////\n            // MOBILES & TABLETS\n            // Ordered by popularity\n            /////////////////////////\n\n            // Samsung\n            /\\b(sch-i[89]0\\d|shw-m380s|sm-[pt]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus\\s10)/i\n            ], [MODEL, [VENDOR, 'Samsung'], [TYPE, TABLET]], [\n            /\\b((?:s[cgp]h|gt|sm)-\\w+|galaxy\\snexus)/i,\n            /\\ssamsung[\\s-]([\\w-]+)/i,\n            /sec-(sgh\\w+)/i\n            ], [MODEL, [VENDOR, 'Samsung'], [TYPE, MOBILE]], [\n\n            // Apple\n            /\\((ip(?:hone|od)[\\s\\w]*);/i                                        // iPod/iPhone\n            ], [MODEL, [VENDOR, 'Apple'], [TYPE, MOBILE]], [\n            /\\((ipad);[\\w\\s\\),;-]+apple/i,                                      // iPad\n            /applecoremedia\\/[\\w\\.]+\\s\\((ipad)/i,\n            /\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i\n            ], [MODEL, [VENDOR, 'Apple'], [TYPE, TABLET]], [\n\n            // Huawei\n            /\\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\\d{2})/i,\n            ], [MODEL, [VENDOR, 'Huawei'], [TYPE, TABLET]], [\n            /d\\/huawei([\\w\\s-]+)[;\\)]/i,\n            /\\b(nexus\\s6p|vog-[at]?l\\d\\d|ane-[at]?l[x\\d]\\d|eml-a?l\\d\\da?|lya-[at]?l\\d[\\dc]|clt-a?l\\d\\di?|ele-l\\d\\d)/i,\n            /\\b(\\w{2,4}-[atu][ln][01259][019])[;\\)\\s]/i\n            ], [MODEL, [VENDOR, 'Huawei'], [TYPE, MOBILE]], [\n\n            // Xiaomi\n            /\\b(poco[\\s\\w]+)(?:\\sbuild|\\))/i,                                   // Xiaomi POCO\n            /\\b;\\s(\\w+)\\sbuild\\/hm\\1/i,                                         // Xiaomi Hongmi 'numeric' models\n            /\\b(hm[\\s\\-_]?note?[\\s_]?(?:\\d\\w)?)\\sbuild/i,                       // Xiaomi Hongmi\n            /\\b(redmi[\\s\\-_]?(?:note|k)?[\\w\\s_]+)(?:\\sbuild|\\))/i,              // Xiaomi Redmi\n            /\\b(mi[\\s\\-_]?(?:a\\d|one|one[\\s_]plus|note lte)?[\\s_]?(?:\\d?\\w?)[\\s_]?(?:plus)?)\\sbuild/i  // Xiaomi Mi\n            ], [[MODEL, /_/g, ' '], [VENDOR, 'Xiaomi'], [TYPE, MOBILE]], [\n            /\\b(mi[\\s\\-_]?(?:pad)(?:[\\w\\s_]+))(?:\\sbuild|\\))/i                  // Mi Pad tablets\n            ],[[MODEL, /_/g, ' '], [VENDOR, 'Xiaomi'], [TYPE, TABLET]], [\n\n            // OPPO\n            /;\\s(\\w+)\\sbuild.+\\soppo/i,\n            /\\s(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007)\\b/i\n            ], [MODEL, [VENDOR, 'OPPO'], [TYPE, MOBILE]], [\n\n            // Vivo\n            /\\svivo\\s(\\w+)(?:\\sbuild|\\))/i,\n            /\\s(v[12]\\d{3}\\w?[at])(?:\\sbuild|;)/i\n            ], [MODEL, [VENDOR, 'Vivo'], [TYPE, MOBILE]], [\n\n            // Realme\n            /\\s(rmx[12]\\d{3})(?:\\sbuild|;)/i\n            ], [MODEL, [VENDOR, 'Realme'], [TYPE, MOBILE]], [\n\n            // Motorola\n            /\\s(milestone|droid(?:[2-4x]|\\s(?:bionic|x2|pro|razr))?:?(\\s4g)?)\\b[\\w\\s]+build\\//i,\n            /\\smot(?:orola)?[\\s-](\\w*)/i,\n            /((?:moto[\\s\\w\\(\\)]+|xt\\d{3,4}|nexus\\s6)(?=\\sbuild|\\)))/i\n            ], [MODEL, [VENDOR, 'Motorola'], [TYPE, MOBILE]], [\n            /\\s(mz60\\d|xoom[\\s2]{0,2})\\sbuild\\//i\n            ], [MODEL, [VENDOR, 'Motorola'], [TYPE, TABLET]], [\n\n            // LG\n            /((?=lg)?[vl]k\\-?\\d{3})\\sbuild|\\s3\\.[\\s\\w;-]{10}lg?-([06cv9]{3,4})/i\n            ], [MODEL, [VENDOR, 'LG'], [TYPE, TABLET]], [\n            /(lm-?f100[nv]?|nexus\\s[45])/i,\n            /lg[e;\\s\\/-]+((?!browser|netcast)\\w+)/i,\n            /\\blg(\\-?[\\d\\w]+)\\sbuild/i\n            ], [MODEL, [VENDOR, 'LG'], [TYPE, MOBILE]], [\n\n            // Lenovo\n            /(ideatab[\\w\\-\\s]+)/i,\n            /lenovo\\s?(s(?:5000|6000)(?:[\\w-]+)|tab(?:[\\s\\w]+)|yt[\\d\\w-]{6}|tb[\\d\\w-]{6})/i        // Lenovo tablets\n            ], [MODEL, [VENDOR, 'Lenovo'], [TYPE, TABLET]], [\n\n            // Nokia\n            /(?:maemo|nokia).*(n900|lumia\\s\\d+)/i,\n            /nokia[\\s_-]?([\\w\\.-]*)/i\n            ], [[MODEL, /_/g, ' '], [VENDOR, 'Nokia'], [TYPE, MOBILE]], [\n\n            // Google\n            /droid.+;\\s(pixel\\sc)[\\s)]/i                                        // Google Pixel C\n            ], [MODEL, [VENDOR, 'Google'], [TYPE, TABLET]], [\n            /droid.+;\\s(pixel[\\s\\daxl]{0,6})(?:\\sbuild|\\))/i                    // Google Pixel\n            ], [MODEL, [VENDOR, 'Google'], [TYPE, MOBILE]], [\n\n            // Sony\n            /droid.+\\s([c-g]\\d{4}|so[-l]\\w+|xq-a\\w[4-7][12])(?=\\sbuild\\/|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i\n            ], [MODEL, [VENDOR, 'Sony'], [TYPE, MOBILE]], [\n            /sony\\stablet\\s[ps]\\sbuild\\//i,\n            /(?:sony)?sgp\\w+(?:\\sbuild\\/|\\))/i\n            ], [[MODEL, 'Xperia Tablet'], [VENDOR, 'Sony'], [TYPE, TABLET]], [\n\n            // OnePlus\n            /\\s(kb2005|in20[12]5|be20[12][59])\\b/i,\n            /\\ba000(1)\\sbuild/i,                                                // OnePlus\n            /\\boneplus\\s(a\\d{4})[\\s)]/i\n            ], [MODEL, [VENDOR, 'OnePlus'], [TYPE, MOBILE]], [\n\n            // Amazon\n            /(alexa)webm/i,\n            /(kf[a-z]{2}wi)(\\sbuild\\/|\\))/i,                                    // Kindle Fire without Silk\n            /(kf[a-z]+)(\\sbuild\\/|\\)).+silk\\//i                                 // Kindle Fire HD\n            ], [MODEL, [VENDOR, 'Amazon'], [TYPE, TABLET]], [\n            /(sd|kf)[0349hijorstuw]+(\\sbuild\\/|\\)).+silk\\//i                    // Fire Phone\n            ], [[MODEL, 'Fire Phone'], [VENDOR, 'Amazon'], [TYPE, MOBILE]], [\n\n            // BlackBerry\n            /\\((playbook);[\\w\\s\\),;-]+(rim)/i                                   // BlackBerry PlayBook\n            ], [MODEL, VENDOR, [TYPE, TABLET]], [\n            /((?:bb[a-f]|st[hv])100-\\d)/i,\n            /\\(bb10;\\s(\\w+)/i                                                   // BlackBerry 10\n            ], [MODEL, [VENDOR, 'BlackBerry'], [TYPE, MOBILE]], [\n\n            // Asus\n            /(?:\\b|asus_)(transfo[prime\\s]{4,10}\\s\\w+|eeepc|slider\\s\\w+|nexus\\s7|padfone|p00[cj])/i\n            ], [MODEL, [VENDOR, 'ASUS'], [TYPE, TABLET]], [\n            /\\s(z[es]6[027][01][km][ls]|zenfone\\s\\d\\w?)\\b/i\n            ], [MODEL, [VENDOR, 'ASUS'], [TYPE, MOBILE]], [\n\n            // HTC\n            /(nexus\\s9)/i                                                       // HTC Nexus 9\n            ], [MODEL, [VENDOR, 'HTC'], [TYPE, TABLET]], [\n            /(htc)[;_\\s-]{1,2}([\\w\\s]+(?=\\)|\\sbuild)|\\w+)/i,                    // HTC\n\n            // ZTE\n            /(zte)-(\\w*)/i,\n            /(alcatel|geeksphone|nexian|panasonic|(?=;\\s)sony)[_\\s-]?([\\w-]*)/i // Alcatel/GeeksPhone/Nexian/Panasonic/Sony\n            ], [VENDOR, [MODEL, /_/g, ' '], [TYPE, MOBILE]], [\n\n            // Acer\n            /droid[x\\d\\.\\s;]+\\s([ab][1-7]\\-?[0178a]\\d\\d?)/i\n            ], [MODEL, [VENDOR, 'Acer'], [TYPE, TABLET]], [\n\n            // Meizu\n            /droid.+;\\s(m[1-5]\\snote)\\sbuild/i,\n            /\\bmz-([\\w-]{2,})/i\n            ], [MODEL, [VENDOR, 'Meizu'], [TYPE, MOBILE]], [\n\n            // MIXED\n            /(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\\s_-]?([\\w-]*)/i,\n                                                                                // BlackBerry/BenQ/Palm/Sony-Ericsson/Acer/Asus/Dell/Meizu/Motorola/Polytron\n            /(hp)\\s([\\w\\s]+\\w)/i,                                               // HP iPAQ\n            /(asus)-?(\\w+)/i,                                                   // Asus\n            /(microsoft);\\s(lumia[\\s\\w]+)/i,                                    // Microsoft Lumia\n            /(lenovo)[_\\s-]?([\\w-]+)/i,                                         // Lenovo\n            /linux;.+(jolla);/i,                                                // Jolla\n            /droid.+;\\s(oppo)\\s?([\\w\\s]+)\\sbuild/i                              // OPPO\n            ], [VENDOR, MODEL, [TYPE, MOBILE]], [\n\n            /(archos)\\s(gamepad2?)/i,                                           // Archos\n            /(hp).+(touchpad(?!.+tablet)|tablet)/i,                             // HP TouchPad\n            /(kindle)\\/([\\w\\.]+)/i,                                             // Kindle\n            /\\s(nook)[\\w\\s]+build\\/(\\w+)/i,                                     // Nook\n            /(dell)\\s(strea[kpr\\s\\d]*[\\dko])/i,                                 // Dell Streak\n            /[;\\/]\\s?(le[\\s\\-]+pan)[\\s\\-]+(\\w{1,9})\\sbuild/i,                   // Le Pan Tablets\n            /[;\\/]\\s?(trinity)[\\-\\s]*(t\\d{3})\\sbuild/i,                         // Trinity Tablets\n            /\\b(gigaset)[\\s\\-]+(q\\w{1,9})\\sbuild/i,                             // Gigaset Tablets\n            /\\b(vodafone)\\s([\\w\\s]+)(?:\\)|\\sbuild)/i                            // Vodafone\n            ], [VENDOR, MODEL, [TYPE, TABLET]], [\n\n            /\\s(surface\\sduo)\\s/i                                               // Surface Duo\n            ], [MODEL, [VENDOR, 'Microsoft'], [TYPE, TABLET]], [\n            /droid\\s[\\d\\.]+;\\s(fp\\du?)\\sbuild/i\n            ], [MODEL, [VENDOR, 'Fairphone'], [TYPE, MOBILE]], [\n            /\\s(u304aa)\\sbuild/i                                                // AT&T\n            ], [MODEL, [VENDOR, 'AT&T'], [TYPE, MOBILE]], [\n            /sie-(\\w*)/i                                                        // Siemens\n            ], [MODEL, [VENDOR, 'Siemens'], [TYPE, MOBILE]], [\n            /[;\\/]\\s?(rct\\w+)\\sbuild/i                                          // RCA Tablets\n            ], [MODEL, [VENDOR, 'RCA'], [TYPE, TABLET]], [\n            /[;\\/\\s](venue[\\d\\s]{2,7})\\sbuild/i                                 // Dell Venue Tablets\n            ], [MODEL, [VENDOR, 'Dell'], [TYPE, TABLET]], [\n            /[;\\/]\\s?(q(?:mv|ta)\\w+)\\sbuild/i                                   // Verizon Tablet\n            ], [MODEL, [VENDOR, 'Verizon'], [TYPE, TABLET]], [\n            /[;\\/]\\s(?:barnes[&\\s]+noble\\s|bn[rt])([\\w\\s\\+]*)\\sbuild/i          // Barnes & Noble Tablet\n            ], [MODEL, [VENDOR, 'Barnes & Noble'], [TYPE, TABLET]], [\n            /[;\\/]\\s(tm\\d{3}\\w+)\\sbuild/i\n            ], [MODEL, [VENDOR, 'NuVision'], [TYPE, TABLET]], [\n            /;\\s(k88)\\sbuild/i                                                  // ZTE K Series Tablet\n            ], [MODEL, [VENDOR, 'ZTE'], [TYPE, TABLET]], [\n            /;\\s(nx\\d{3}j)\\sbuild/i                                             // ZTE Nubia\n            ], [MODEL, [VENDOR, 'ZTE'], [TYPE, MOBILE]], [\n            /[;\\/]\\s?(gen\\d{3})\\sbuild.*49h/i                                   // Swiss GEN Mobile\n            ], [MODEL, [VENDOR, 'Swiss'], [TYPE, MOBILE]], [\n            /[;\\/]\\s?(zur\\d{3})\\sbuild/i                                        // Swiss ZUR Tablet\n            ], [MODEL, [VENDOR, 'Swiss'], [TYPE, TABLET]], [\n            /[;\\/]\\s?((zeki)?tb.*\\b)\\sbuild/i                                   // Zeki Tablets\n            ], [MODEL, [VENDOR, 'Zeki'], [TYPE, TABLET]], [\n            /[;\\/]\\s([yr]\\d{2})\\sbuild/i,\n            /[;\\/]\\s(dragon[\\-\\s]+touch\\s|dt)(\\w{5})\\sbuild/i                   // Dragon Touch Tablet\n            ], [[VENDOR, 'Dragon Touch'], MODEL, [TYPE, TABLET]], [\n            /[;\\/]\\s?(ns-?\\w{0,9})\\sbuild/i                                     // Insignia Tablets\n            ], [MODEL, [VENDOR, 'Insignia'], [TYPE, TABLET]], [\n            /[;\\/]\\s?((nxa|Next)-?\\w{0,9})\\sbuild/i                             // NextBook Tablets\n            ], [MODEL, [VENDOR, 'NextBook'], [TYPE, TABLET]], [\n            /[;\\/]\\s?(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05]))\\sbuild/i\n            ], [[VENDOR, 'Voice'], MODEL, [TYPE, MOBILE]], [                    // Voice Xtreme Phones\n            /[;\\/]\\s?(lvtel\\-)?(v1[12])\\sbuild/i                                // LvTel Phones\n            ], [[VENDOR, 'LvTel'], MODEL, [TYPE, MOBILE]], [\n            /;\\s(ph-1)\\s/i\n            ], [MODEL, [VENDOR, 'Essential'], [TYPE, MOBILE]], [                // Essential PH-1\n            /[;\\/]\\s?(v(100md|700na|7011|917g).*\\b)\\sbuild/i                    // Envizen Tablets\n            ], [MODEL, [VENDOR, 'Envizen'], [TYPE, TABLET]], [\n            /[;\\/]\\s?(trio[\\s\\w\\-\\.]+)\\sbuild/i                                 // MachSpeed Tablets\n            ], [MODEL, [VENDOR, 'MachSpeed'], [TYPE, TABLET]], [\n            /[;\\/]\\s?tu_(1491)\\sbuild/i                                         // Rotor Tablets\n            ], [MODEL, [VENDOR, 'Rotor'], [TYPE, TABLET]], [\n            /(shield[\\w\\s]+)\\sbuild/i                                           // Nvidia Shield Tablets\n            ], [MODEL, [VENDOR, 'Nvidia'], [TYPE, TABLET]], [\n            /(sprint)\\s(\\w+)/i                                                  // Sprint Phones\n            ], [VENDOR, MODEL, [TYPE, MOBILE]], [\n            /(kin\\.[onetw]{3})/i                                                // Microsoft Kin\n            ], [[MODEL, /\\./g, ' '], [VENDOR, 'Microsoft'], [TYPE, MOBILE]], [\n            /droid\\s[\\d\\.]+;\\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i     // Zebra\n            ], [MODEL, [VENDOR, 'Zebra'], [TYPE, TABLET]], [\n            /droid\\s[\\d\\.]+;\\s(ec30|ps20|tc[2-8]\\d[kx])\\)/i\n            ], [MODEL, [VENDOR, 'Zebra'], [TYPE, MOBILE]], [\n\n            ///////////////////\n            // CONSOLES\n            ///////////////////\n\n            /\\s(ouya)\\s/i,                                                      // Ouya\n            /(nintendo)\\s([wids3utch]+)/i                                       // Nintendo\n            ], [VENDOR, MODEL, [TYPE, CONSOLE]], [\n            /droid.+;\\s(shield)\\sbuild/i                                        // Nvidia\n            ], [MODEL, [VENDOR, 'Nvidia'], [TYPE, CONSOLE]], [\n            /(playstation\\s[345portablevi]+)/i                                  // Playstation\n            ], [MODEL, [VENDOR, 'Sony'], [TYPE, CONSOLE]], [\n            /[\\s\\(;](xbox(?:\\sone)?(?!;\\sxbox))[\\s\\);]/i                        // Microsoft Xbox\n            ], [MODEL, [VENDOR, 'Microsoft'], [TYPE, CONSOLE]], [\n\n            ///////////////////\n            // SMARTTVS\n            ///////////////////\n\n            /smart-tv.+(samsung)/i                                              // Samsung\n            ], [VENDOR, [TYPE, SMARTTV]], [\n            /hbbtv.+maple;(\\d+)/i\n            ], [[MODEL, /^/, 'SmartTV'], [VENDOR, 'Samsung'], [TYPE, SMARTTV]], [\n            /(?:linux;\\snetcast.+smarttv|lg\\snetcast\\.tv-201\\d)/i,              // LG SmartTV\n            ], [[VENDOR, 'LG'], [TYPE, SMARTTV]], [\n            /(apple)\\s?tv/i                                                     // Apple TV\n            ], [VENDOR, [MODEL, 'Apple TV'], [TYPE, SMARTTV]], [\n            /crkey/i                                                            // Google Chromecast\n            ], [[MODEL, 'Chromecast'], [VENDOR, 'Google'], [TYPE, SMARTTV]], [\n            /droid.+aft([\\w])(\\sbuild\\/|\\))/i                                   // Fire TV\n            ], [MODEL, [VENDOR, 'Amazon'], [TYPE, SMARTTV]], [\n            /\\(dtv[\\);].+(aquos)/i                                              // Sharp\n            ], [MODEL, [VENDOR, 'Sharp'], [TYPE, SMARTTV]], [\n            /hbbtv\\/\\d+\\.\\d+\\.\\d+\\s+\\([\\w\\s]*;\\s*(\\w[^;]*);([^;]*)/i            // HbbTV devices\n            ], [[VENDOR, util.trim], [MODEL, util.trim], [TYPE, SMARTTV]], [\n            /[\\s\\/\\(](android\\s|smart[-\\s]?|opera\\s)tv[;\\)\\s]/i                 // SmartTV from Unidentified Vendors\n            ], [[TYPE, SMARTTV]], [\n\n            ///////////////////\n            // WEARABLES\n            ///////////////////\n\n            /((pebble))app\\/[\\d\\.]+\\s/i                                         // Pebble\n            ], [VENDOR, MODEL, [TYPE, WEARABLE]], [\n            /droid.+;\\s(glass)\\s\\d/i                                            // Google Glass\n            ], [MODEL, [VENDOR, 'Google'], [TYPE, WEARABLE]], [\n            /droid\\s[\\d\\.]+;\\s(wt63?0{2,3})\\)/i\n            ], [MODEL, [VENDOR, 'Zebra'], [TYPE, WEARABLE]], [\n\n            ///////////////////\n            // EMBEDDED\n            ///////////////////\n\n            /(tesla)(?:\\sqtcarbrowser|\\/20[12]\\d\\.[\\w\\.-]+)/i                   // Tesla\n            ], [VENDOR, [TYPE, EMBEDDED]], [\n\n            ////////////////////\n            // MIXED (GENERIC)\n            ///////////////////\n\n            /droid .+?; ([^;]+?)(?: build|\\) applewebkit).+? mobile safari/i    // Android Phones from Unidentified Vendors\n            ], [MODEL, [TYPE, MOBILE]], [\n            /droid .+?;\\s([^;]+?)(?: build|\\) applewebkit).+?(?! mobile) safari/i  // Android Tablets from Unidentified Vendors\n            ], [MODEL, [TYPE, TABLET]], [\n            /\\s(tablet|tab)[;\\/]/i,                                             // Unidentifiable Tablet\n            /\\s(mobile)(?:[;\\/]|\\ssafari)/i                                     // Unidentifiable Mobile\n            ], [[TYPE, util.lowerize]], [\n            /(android[\\w\\.\\s\\-]{0,9});.+build/i                                 // Generic Android Device\n            ], [MODEL, [VENDOR, 'Generic']], [\n            /(phone)/i\n            ], [[TYPE, MOBILE]]\n        ],\n\n        engine:[[\n\n            /windows.+\\sedge\\/([\\w\\.]+)/i                                       // EdgeHTML\n            ], [VERSION, [NAME, 'EdgeHTML']], [\n\n            /webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i                         // Blink\n            ], [VERSION, [NAME, 'Blink']], [\n\n            /(presto)\\/([\\w\\.]+)/i,                                             // Presto\n            /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna\n            /ekioh(flow)\\/([\\w\\.]+)/i,                                          // Flow\n            /(khtml|tasman|links)[\\/\\s]\\(?([\\w\\.]+)/i,                          // KHTML/Tasman/Links\n            /(icab)[\\/\\s]([23]\\.[\\d\\.]+)/i                                      // iCab\n            ], [NAME, VERSION], [\n\n            /rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i                                     // Gecko\n            ], [VERSION, NAME]\n        ],\n\n        os:[[\n\n            // Windows\n            /microsoft\\s(windows)\\s(vista|xp)/i                                 // Windows (iTunes)\n            ], [NAME, VERSION], [\n            /(windows)\\snt\\s6\\.2;\\s(arm)/i,                                     // Windows RT\n            /(windows\\sphone(?:\\sos)*)[\\s\\/]?([\\d\\.\\s\\w]*)/i,                   // Windows Phone\n            /(windows\\smobile|windows)[\\s\\/]?([ntce\\d\\.\\s]+\\w)(?!.+xbox)/i\n            ], [NAME, [VERSION, mapper.str, maps.os.windows.version]], [\n            /(win(?=3|9|n)|win\\s9x\\s)([nt\\d\\.]+)/i\n            ], [[NAME, 'Windows'], [VERSION, mapper.str, maps.os.windows.version]], [\n\n            // iOS/macOS\n            /ip[honead]{2,4}\\b(?:.*os\\s([\\w]+)\\slike\\smac|;\\sopera)/i,          // iOS\n            /cfnetwork\\/.+darwin/i\n            ], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [\n            /(mac\\sos\\sx)\\s?([\\w\\s\\.]*)/i,\n            /(macintosh|mac(?=_powerpc)\\s)(?!.+haiku)/i                         // Mac OS\n            ], [[NAME, 'Mac OS'], [VERSION, /_/g, '.']], [\n\n            // Mobile OSes                                                      // Android/WebOS/Palm/QNX/Bada/RIM/MeeGo/Contiki/Sailfish OS\n            /(android|webos|palm\\sos|qnx|bada|rim\\stablet\\sos|meego|sailfish|contiki)[\\/\\s-]?([\\w\\.]*)/i,\n            /(blackberry)\\w*\\/([\\w\\.]*)/i,                                      // Blackberry\n            /(tizen|kaios)[\\/\\s]([\\w\\.]+)/i,                                    // Tizen/KaiOS\n            /\\((series40);/i                                                    // Series 40\n            ], [NAME, VERSION], [\n            /\\(bb(10);/i                                                        // BlackBerry 10\n            ], [VERSION, [NAME, 'BlackBerry']], [\n            /(?:symbian\\s?os|symbos|s60(?=;)|series60)[\\/\\s-]?([\\w\\.]*)/i       // Symbian\n            ], [VERSION, [NAME, 'Symbian']], [\n            /mozilla.+\\(mobile;.+gecko.+firefox/i                               // Firefox OS\n            ], [[NAME, 'Firefox OS']], [\n            /web0s;.+rt(tv)/i,\n            /\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i                              // WebOS\n            ], [VERSION, [NAME, 'webOS']], [\n\n            // Google Chromecast\n            /crkey\\/([\\d\\.]+)/i                                                 // Google Chromecast\n            ], [VERSION, [NAME, 'Chromecast']], [\n            /(cros)\\s[\\w]+\\s([\\w\\.]+\\w)/i                                       // Chromium OS\n            ], [[NAME, 'Chromium OS'], VERSION],[\n\n            // Console\n            /(nintendo|playstation)\\s([wids345portablevuch]+)/i,                // Nintendo/Playstation\n            /(xbox);\\s+xbox\\s([^\\);]+)/i,                                       // Microsoft Xbox (360, One, X, S, Series X, Series S)\n\n            // GNU/Linux based\n            /(mint)[\\/\\s\\(\\)]?(\\w*)/i,                                          // Mint\n            /(mageia|vectorlinux)[;\\s]/i,                                       // Mageia/VectorLinux\n            /(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\\sgnu\\/linux)?(?:\\slinux)?[\\/\\s-]?(?!chrom|package)([\\w\\.-]*)/i,\n                                                                                // Joli/Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware\n                                                                                // Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk/Linpus\n            /(hurd|linux)\\s?([\\w\\.]*)/i,                                        // Hurd/Linux\n            /(gnu)\\s?([\\w\\.]*)/i,                                               // GNU\n\n            // BSD based\n            /\\s([frentopc-]{0,4}bsd|dragonfly)\\s?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,  // FreeBSD/NetBSD/OpenBSD/PC-BSD/DragonFly\n            /(haiku)\\s(\\w+)/i                                                   // Haiku\n            ], [NAME, VERSION], [\n\n            // Other\n            /(sunos)\\s?([\\w\\.\\d]*)/i                                            // Solaris\n            ], [[NAME, 'Solaris'], VERSION], [\n            /((?:open)?solaris)[\\/\\s-]?([\\w\\.]*)/i,                             // Solaris\n            /(aix)\\s((\\d)(?=\\.|\\)|\\s)[\\w\\.])*/i,                                // AIX\n            /(plan\\s9|minix|beos|os\\/2|amigaos|morphos|risc\\sos|openvms|fuchsia)/i,  // Plan9/Minix/BeOS/OS2/AmigaOS/MorphOS/RISCOS/OpenVMS/Fuchsia\n            /(unix)\\s?([\\w\\.]*)/i                                               // UNIX\n            ], [NAME, VERSION]\n        ]\n    };\n\n\n    /////////////////\n    // Constructor\n    ////////////////\n    var UAParser=function (ua, extensions){\n\n        if(typeof ua==='object'){\n            extensions=ua;\n            ua=undefined;\n        }\n\n        if(!(this instanceof UAParser)){\n            return new UAParser(ua, extensions).getResult();\n        }\n\n        var _ua=ua||((typeof window!=='undefined'&&window.navigator&&window.navigator.userAgent) ? window.navigator.userAgent:EMPTY);\n        var _rgxmap=extensions ? util.extend(regexes, extensions):regexes;\n\n        this.getBrowser=function (){\n            var _browser={ name: undefined, version: undefined };\n            mapper.rgx.call(_browser, _ua, _rgxmap.browser);\n            _browser.major=util.major(_browser.version); // deprecated\n            return _browser;\n        };\n        this.getCPU=function (){\n            var _cpu={ architecture: undefined };\n            mapper.rgx.call(_cpu, _ua, _rgxmap.cpu);\n            return _cpu;\n        };\n        this.getDevice=function (){\n            var _device={ vendor: undefined, model: undefined, type: undefined };\n            mapper.rgx.call(_device, _ua, _rgxmap.device);\n            return _device;\n        };\n        this.getEngine=function (){\n            var _engine={ name: undefined, version: undefined };\n            mapper.rgx.call(_engine, _ua, _rgxmap.engine);\n            return _engine;\n        };\n        this.getOS=function (){\n            var _os={ name: undefined, version: undefined };\n            mapper.rgx.call(_os, _ua, _rgxmap.os);\n            return _os;\n        };\n        this.getResult=function (){\n            return {\n                ua:this.getUA(),\n                browser:this.getBrowser(),\n                engine:this.getEngine(),\n                os:this.getOS(),\n                device:this.getDevice(),\n                cpu:this.getCPU()\n            };\n        };\n        this.getUA=function (){\n            return _ua;\n        };\n        this.setUA=function (ua){\n            _ua=(typeof ua===STR_TYPE&&ua.length > UA_MAX_LENGTH) ? util.trim(ua, UA_MAX_LENGTH):ua;\n            return this;\n        };\n        this.setUA(_ua);\n        return this;\n    };\n\n    UAParser.VERSION=LIBVERSION;\n    UAParser.BROWSER={\n        NAME:NAME,\n        MAJOR:MAJOR, // deprecated\n        VERSION:VERSION\n    };\n    UAParser.CPU={\n        ARCHITECTURE:ARCHITECTURE\n    };\n    UAParser.DEVICE={\n        MODEL:MODEL,\n        VENDOR:VENDOR,\n        TYPE:TYPE,\n        CONSOLE:CONSOLE,\n        MOBILE:MOBILE,\n        SMARTTV:SMARTTV,\n        TABLET:TABLET,\n        WEARABLE: WEARABLE,\n        EMBEDDED: EMBEDDED\n    };\n    UAParser.ENGINE={\n        NAME:NAME,\n        VERSION:VERSION\n    };\n    UAParser.OS={\n        NAME:NAME,\n        VERSION:VERSION\n    };\n\n    ///////////\n    // Export\n    //////////\n\n\n    // check js environment\n    if(typeof(exports)!==UNDEF_TYPE){\n        // nodejs env\n        if(typeof module!==UNDEF_TYPE&&module.exports){\n            exports=module.exports=UAParser;\n        }\n        exports.UAParser=UAParser;\n    }else{\n        // requirejs env (optional)\n        if(true){\n            !(__WEBPACK_AMD_DEFINE_RESULT__=(function (){\n                return UAParser;\n            }).call(exports, __webpack_require__, exports, module),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__));\n        }else{}\n    }\n\n    // jQuery/Zepto specific (optional)\n    // Note:\n    //   In AMD env the global scope should be kept clean, but jQuery is an exception.\n    //   jQuery always exports to global scope, unless jQuery.noConflict(true) is used,\n    //   and we should catch that.\n    var $=typeof window!=='undefined'&&(window.jQuery||window.Zepto);\n    if($&&!$.ua){\n        var parser=new UAParser();\n        $.ua=parser.getResult();\n        $.ua.get=function (){\n            return parser.getUA();\n        };\n        $.ua.set=function (uastring){\n            parser.setUA(uastring);\n            var result=parser.getResult();\n            for (var prop in result){\n                $.ua[prop]=result[prop];\n            }\n        };\n    }\n\n})(typeof window==='object' ? window:this);\n\n\n//# sourceURL=webpack:///./node_modules/ua-parser-js/src/ua-parser.js?");
}),
"./node_modules/union-class-names/lib/index.js":
(function(module, exports, __webpack_require__){
"use strict";
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _typeof=typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\" ? function (obj){ return typeof obj; }:function (obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol ? \"symbol\":typeof obj; };\n\nexports.default=unionClassNames;\n\nvar union=function union(){\n  for (var _len=arguments.length, arrs=Array(_len), _key=0; _key < _len; _key++){\n    arrs[_key]=arguments[_key];\n  }\n\n  if(arrs){\n    var _ret=function (){\n      var result=[];\n      arrs.forEach(function (arr){\n        if(arr){\n          arr.forEach(function (obj){\n            if(result.indexOf(obj) < 0){\n              result.push(obj);\n            }\n          });\n        }\n      });\n      return {\n        v: result\n      };\n    }();\n\n    if((typeof _ret==='undefined' ? 'undefined':_typeof(_ret))===\"object\") return _ret.v;\n  }\n\n  return undefined;\n};\n\n\nfunction unionClassNames(existingClassNames, additionalClassNames){\n  if(!existingClassNames&&!additionalClassNames) return '';\n  if(!existingClassNames) return additionalClassNames;\n  if(!additionalClassNames) return existingClassNames;\n  return union(existingClassNames.split(' '), additionalClassNames.split(' ')).join(' ');\n}\n\n//# sourceURL=webpack:///./node_modules/union-class-names/lib/index.js?");
}),
"./node_modules/webpack/buildin/global.js":
(function(module, exports){
eval("var g;\n\n// This works in non-strict mode\ng=(function(){\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg=g||new Function(\"return this\")();\n} catch (e){\n\t// This works if the window reference is available\n\tif(typeof window===\"object\") g=window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global){ ...}\n\nmodule.exports=g;\n\n\n//# sourceURL=webpack:///(webpack)/buildin/global.js?");
}),
"./src/columnmodal.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext;\n\nvar ColumnModalComponent=function ColumnModalComponent(props){\n  var submit=function submit(cols){\n    props.share(cols);\n    props.close(false);\n  };\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibe_editor_modal\"\n  }, wp.element.createElement(\"span\", {\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  }), wp.element.createElement(\"div\", {\n    className: \"ve_modal-content\"\n  }, wp.element.createElement(\"div\", {\n    className: \"ve_modal-header\"\n  }, wp.element.createElement(\"h3\", null, window.vibebp.translations.choose_column_type), wp.element.createElement(\"span\", {\n    className: \"vicon vicon-close\",\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"ve_modal-body\"\n  }, wp.element.createElement(\"div\", {\n    className: \"block_type\"\n  }, wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([1, 1]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(0.956522,0,0,1,0.0434783,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 23.051,1 21.882,1L3.118,1C1.949,1 1,1.908 1,3.025L1,43.975C1,45.092 1.949,46 3.118,46L21.882,46C23.051,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(0.956522,0,0,1,24.0435,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,2.978C24,1.887 23.073,1 21.932,1L3.068,1C1.927,1 1,1.887 1,2.978L1,44.022C1,45.113 1.927,46 3.068,46L21.932,46C23.073,46 24,45.113 24,44.022L24,2.978Z\"\n  }), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([1, 2]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(0.73913,0,0,1,0.26087,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(1.17391,0,0,1,18.8261,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,2.978C24,1.887 23.245,1 22.315,1L2.685,1C1.755,1 1,1.887 1,2.978L1,44.022C1,45.113 1.755,46 2.685,46L22.315,46C23.245,46 24,45.113 24,44.022L24,2.978Z\"\n  }), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([2, 1]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.73913,0,0,1,47.7391,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-1.17391,0,0,1,29.1738,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,2.978C24,1.887 23.245,1 22.315,1L2.685,1C1.755,1 1,1.887 1,2.978L1,44.022C1,45.113 1.755,46 2.685,46L22.315,46C23.245,46 24,45.113 24,44.022L24,2.978Z\"\n  }), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([3, 1]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.565217,0.000307558,-0.00054414,-1,47.578,46.9872)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.394,1 20.416,1L4.584,1C2.606,1 1,1.908 1,3.025L1,43.975C1,45.092 2.606,46 4.584,46L20.416,46C22.394,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-1.3913,0.000757065,-0.00054414,-1,34.4041,46.9943)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,2.978C24,1.887 23.363,1 22.578,1L2.422,1C1.637,1 1,1.887 1,2.978L1,44.022C1,45.113 1.637,46 2.422,46L22.578,46C23.363,46 24,45.113 24,44.022L24,2.978Z\"\n  }), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([1, 3]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(1.3913,0,0,1,13.6087,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,2.978C24,1.887 23.363,1 22.578,1L2.422,1C1.637,1 1,1.887 1,2.978L1,44.022C1,45.113 1.637,46 2.422,46L22.578,46C23.363,46 24,45.113 24,44.022L24,2.978Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(0.565217,0,0,1,0.434783,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.394,1 20.416,1L4.584,1C2.606,1 1,1.908 1,3.025L1,43.975C1,45.092 2.606,46 4.584,46L20.416,46C22.394,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([1, 1, 1]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(0.73913,0,0,1,0.26087,0)\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.863579,0,0,1,21.7258,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.863579,0,0,1,42.9123,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.863579,0,0,1,64.0988,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([1, 1, 2]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(0.73913,0,0,1,0.26087,0)\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.628285,0,0,1,16.0788,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.628285,0,0,1,32.3141,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-1.27534,0,0,1,64.5106,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([1, 2, 1]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.73913,0,0,1,47.739,0)\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.628285,0,0,1,16.0788,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.628285,0,0,1,63.4317,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-1.33417,0,0,1,48.3341,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \"), \" \")), wp.element.createElement(\"a\", {\n    onClick: function onClick(e){\n      submit([2, 1, 1]);\n    }\n  }, wp.element.createElement(\"svg\", {\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 48 48\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.73913,0,0,1,47.739,0)\"\n  }, \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.628285,0,0,1,16.0788,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-0.628285,0,0,1,32.3141,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \", wp.element.createElement(\"g\", {\n    transform: \"matrix(-1.27534,0,0,1,64.5106,0)\"\n  }, \" \", wp.element.createElement(\"path\", {\n    d: \"M24,3.025C24,1.908 22.772,1 21.26,1L3.74,1C2.228,1 1,1.908 1,3.025L1,43.975C1,45.092 2.228,46 3.74,46L21.26,46C22.772,46 24,45.092 24,43.975L24,3.025Z\"\n  }), \" \"), \" \"), \" \"))))));\n};\n\n __webpack_exports__[\"default\"]=(ColumnModalComponent);\n\n//# sourceURL=webpack:///./src/columnmodal.js?");
}),
"./src/components/aicontent.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext;\nvar _wp$data=wp.data,\n    select=_wp$data.select,\n    dispatch=_wp$data.dispatch;\n\nvar AiContentGenerator=function AiContentGenerator(props){\n  var _useState=useState(false),\n      _useState2=_slicedToArray(_useState, 2),\n      isGenerating=_useState2[0],\n      setIsGenerating=_useState2[1];\n\n  var _useState3=useState(''),\n      _useState4=_slicedToArray(_useState3, 2),\n      prompt=_useState4[0],\n      setPrompt=_useState4[1];\n\n  var _useState5=useState(''),\n      _useState6=_slicedToArray(_useState5, 2),\n      generatedContent=_useState6[0],\n      setGeneratedContent=_useState6[1];\n\n  var generateContent=function generateContent(){\n    setIsGenerating(true);\n    fetch(\"\".concat(window.vibebp.api.url, \"/generateAIContent?force\"), {\n      method: 'post',\n      body: JSON.stringify({\n        prompt: prompt,\n        token: select('vibebp').getToken()\n      })\n    }).then(function (res){\n      return res.json();\n    }).then(function (res){\n      setIsGenerating(false);\n\n      if(res.status){\n        setGeneratedContent(res.content);\n      }\n\n      if(res.hasOwnProperty('message')){\n        dispatch('vibebp').addNotification({\n          text: res.message\n        });\n      }\n    });\n  };\n\n  var submitContent=function submitContent(){\n    document.dispatchEvent(new CustomEvent('vibebp_editor_modal_output_ai', {\n      detail: generatedContent\n    }));\n    setGeneratedContent('');\n    props.close(false);\n  };\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibe_editor_modal\"\n  }, wp.element.createElement(\"span\", {\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  }), wp.element.createElement(\"div\", {\n    className: \"ve_modal-content\"\n  }, wp.element.createElement(\"div\", {\n    className: \"ve_modal-header\"\n  }, wp.element.createElement(\"h3\", null, window.vibebp.translations.ai_content_generator), wp.element.createElement(\"span\", {\n    className: \"vicon vicon-close\",\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"ve_modal-body\"\n  }, wp.element.createElement(\"div\", {\n    className: \"ai_block_gen\"\n  }, wp.element.createElement(\"strong\", null, window.vibebp.translations.type_ai_prompt), window.vibebp.settings.ai_prompts.length ? wp.element.createElement(\"select\", {\n    onChange: function onChange(e){\n      return setPrompt(e.target.value);\n    }\n  }, wp.element.createElement(\"option\", {\n    value: \"\"\n  }, window.vibebp.translations.type_ai_prompt), window.vibebp.settings.ai_prompts.map(function (p){\n    return wp.element.createElement(\"option\", null, p);\n  })):'', wp.element.createElement(\"input\", {\n    type: true,\n    value: prompt,\n    onChange: function onChange(e){\n      return setPrompt(e.target.value);\n    }\n  }), generatedContent.length ? wp.element.createElement(\"div\", null, wp.element.createElement(\"strong\", null, window.vibebp.translations.generated_ai_content), wp.element.createElement(\"textarea\", {\n    value: generatedContent\n  })):'', wp.element.createElement(\"div\", null, generatedContent.length ? wp.element.createElement(\"div\", null, wp.element.createElement(\"a\", {\n    className: \"button is-primary\",\n    onClick: submitContent\n  }, window.vibebp.translations.add_content), wp.element.createElement(\"a\", {\n    className: \"link\"\n  }, window.vibebp.translations.cancel)):wp.element.createElement(\"a\", {\n    className: isGenerating ? 'button is-primary is-loading':'button is-primary',\n    onClick: generateContent\n  }, window.vibebp.translations.generate_content))))));\n};\n\n __webpack_exports__[\"default\"]=(AiContentGenerator);\n\n//# sourceURL=webpack:///./src/components/aicontent.js?");
}),
"./src/components/editor-header.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return editorheader; });\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render;\nfunction editorheader(_ref){\n  var move=_ref.move;\n  return wp.element.createElement(\"div\", {\n    className: \"vibe_rich_editor_header\"\n  }, wp.element.createElement(\"span\", null, wp.element.createElement(\"span\", {\n    className: \"vibe_rich_editor_control\",\n    onClick: function onClick(e){\n      move('up');\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-arrow-up\"\n  })), wp.element.createElement(\"span\", {\n    className: \"vibe_rich_editor_control\",\n    onClick: function onClick(e){\n      move('down');\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-arrow-down\"\n  })), wp.element.createElement(\"span\", {\n    className: \"vibe_rich_editor_control\",\n    onClick: function onClick(e){\n      move('remove');\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-close\"\n  }))));\n}\n\n//# sourceURL=webpack:///./src/components/editor-header.js?");
}),
"./src/components/generate-content.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return GenerateContent; });\n var _veditor__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/veditor.js\");\n var _functions__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/functions.js\");\n var _editor_header__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/components/editor-header.js\");\n var _editor__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/editor.js\");\n var _shortcodes_flashcards__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/components/shortcodes/flashcards.js\");\n var _shortcodes_scratchcard__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__( \"./src/components/shortcodes/scratchcard.js\");\n var _shortcodes_imagereveal__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__( \"./src/components/shortcodes/imagereveal.js\");\n var _shortcodes_hotspots__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__( \"./src/components/shortcodes/hotspots.js\");\n var _shortcodes_memorygame__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__( \"./src/components/shortcodes/memorygame.js\");\n var _shortcodes_embed_viewer__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__( \"./src/components/shortcodes/embed-viewer.js\");\n var _shortcodes_cardstack__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__( \"./src/components/shortcodes/cardstack.js\");\nfunction _extends(){ _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    useState=_wp$element.useState,\n    Fragment=_wp$element.Fragment;\nvar select=wp.data.select;\n\n\n\n\n\n\n\n\n\n\n\nfunction GenerateContent(_ref){\n  var element=_ref.element,\n      i=_ref.i,\n      _update=_ref.update,\n      components=_ref.components,\n      _move=_ref.move,\n      plugins=_ref.plugins;\n\n  var _useState=useState({\n    type: 'mine',\n    paged: 1,\n    s: '',\n    orderby: 'recent',\n    order: 'DESC'\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      formArgs=_useState2[0],\n      setFormArgs=_useState2[1];\n\n  var _useState3=useState([]),\n      _useState4=_slicedToArray(_useState3, 2),\n      forms=_useState4[0],\n      setForms=_useState4[1];\n\n  var _useState5=useState(false),\n      _useState6=_slicedToArray(_useState5, 2),\n      fullForm=_useState6[0],\n      setFullForm=_useState6[1];\n\n  var _useState7=useState(false),\n      _useState8=_slicedToArray(_useState7, 2),\n      editorContentTriggered=_useState8[0],\n      setEditorContentTriggered=_useState8[1];\n\n  var _useState9=useState({\n    form: false\n  }),\n      _useState10=_slicedToArray(_useState9, 2),\n      isLoading=_useState10[0],\n      setIsloading=_useState10[1];\n\n  var _useState11=useState(null),\n      _useState12=_slicedToArray(_useState11, 2),\n      abortCtrl=_useState12[0],\n      setAbortCtrl=_useState12[1];\n\n  var onEditorChange=function onEditorChange(editorState){\n    var nelement=_objectSpread({}, element);\n\n    nelement.content=editorState;\n\n    _update(nelement, 'editor');\n  };\n\n  var searchForms=Object(_functions__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(function (s){\n    if(abortCtrl){\n      abortCtrl.abort();\n    }\n\n    var ac=new AbortController();\n    var opts=abortCtrl ? {\n      signal: ac.signal\n    }:{};\n    setAbortCtrl(ac);\n    setForms([]);\n\n    if(s.length){\n      setIsloading(_objectSpread(_objectSpread({}, isLoading), {}, {\n        form: true\n      }));\n\n      var nformArgs=_objectSpread({}, formArgs);\n\n      nformArgs['s']=s;\n      setFormArgs(nformArgs);\n      fetch(\"\".concat(window.vibeforms.api.url, \"/user/forms\"), _objectSpread(_objectSpread({\n        method: 'post'\n      }, opts), {}, {\n        body: JSON.stringify(_objectSpread(_objectSpread({}, nformArgs), {}, {\n          embed: true,\n          token: select('vibebp').getToken()\n        }))\n      })).then(function (res){\n        return res.json();\n      }).then(function (data){\n        setIsloading(_objectSpread(_objectSpread({}, isLoading), {}, {\n          form: true\n        }));\n\n        if(data.status){\n          setForms(data.forms);\n        }else{\n          setForms([]);\n        }\n      })[\"catch\"](function (err){\n        setIsloading(_objectSpread(_objectSpread({}, isLoading), {}, {\n          form: true\n        }));\n\n        if(err.name==='AbortError'){}else{\n          setAbortCtrl(null);\n          console.error('Uh oh, an error!', err);\n        }\n      });\n    }\n  }, 500, null);\n\n  var apply_shortcode_editore_styling=function apply_shortcode_editore_styling(attributes){\n    var style={};\n\n    if(Array.isArray(attributes)&&attributes.length){\n      attributes.map(function (attr, i){\n        var value=attr.hasOwnProperty('value') ? attr.value:attr[\"default\"];\n\n        if(attr.hasOwnProperty('suffix')){\n          style[attr['parameter']]=value + attr['suffix'];\n        }else{\n          style[attr['parameter']]=value;\n        }\n      });\n    }\n\n    return style;\n  };\n\n  var fraction_string=function fraction_string(cols){\n    var str='';\n    cols.map(function (s){\n      str=str + s + 'fr' + ' ';\n    }).toString();\n    return str;\n  };\n\n  var update_attribute=function update_attribute(i, value){\n    var nelement=_objectSpread({}, element);\n\n    nelement['shortcode']['attributes'][i].value=value;\n\n    _update(nelement, 'shortcode');\n  };\n\n  var remove_column_block=function remove_column_block(j, i){\n    var nelement=_objectSpread({}, element);\n\n    if(nelement.content&&nelement.content.length){\n      if(nelement.content.length==1){\n        _move('remove');\n      }else{\n        nelement.content.splice(j, 1);\n        nelement.columns.splice(j, 1);\n      }\n    }\n\n    _update(nelement, 'column');\n  };\n\n  var content_to_html=function content_to_html(content){\n    if(!editorContentTriggered){\n      document.dispatchEvent(new Event('VibeBP_Editor_Content'));\n      setEditorContentTriggered(true);\n    }\n\n    var attributes={};\n\n    if(content.hasOwnProperty('attributes')&&_typeof(content.attributes)=='object'){\n      Object.keys(content.attributes).map(function (k){\n        attributes['data-' + k]=content.attributes[k];\n      });\n    }\n\n    switch (content.type){\n      case 'image':\n        return wp.element.createElement(\"div\", {\n          style: {\n            display: 'inline-block'\n          }\n        }, wp.element.createElement(\"img\", _extends({\n          src: content.url,\n          className: \"content_to_html_image\"\n        }, attributes)));\n        break;\n\n      case 'video':\n        return wp.element.createElement(\"div\", null, wp.element.createElement(\"video\", _extends({\n          className: \"video_plyr\",\n          ref: function ref(_ref2){\n            if(_ref2){\n              new Plyr(_ref2);\n            }\n          },\n          controls: true\n        }, attributes), wp.element.createElement(\"source\", {\n          src: content.url,\n          type: \"video/mp4\"\n        })));\n        break;\n\n      case 'audio':\n        return wp.element.createElement(\"div\", null, wp.element.createElement(\"audio\", _extends({\n          className: \"audio_plyr\",\n          ref: function ref(_ref3){\n            if(_ref3){\n              new Plyr(_ref3);\n            }\n          },\n          controls: true\n        }, attributes), wp.element.createElement(\"source\", {\n          src: content.url,\n          type: \"audio/mp3\"\n        })));\n        break;\n\n      case 'file':\n        return wp.element.createElement(\"a\", _extends({\n          href: content.url,\n          target: \"_blank\"\n        }, attributes), content.name);\n        break;\n\n      case 'document':\n        return wp.element.createElement(\"div\", {\n          \"class\": \"pdf_object\"\n        }, wp.element.createElement(\"object\", _extends({\n          data: content.url,\n          type: \"application/pdf\",\n          width: \"100%\",\n          height: \"800\"\n        }, attributes), wp.element.createElement(\"embed\", {\n          src: content.url,\n          type: \"application/pdf\"\n        })));\n        break;\n        break;\n\n      default:\n        break;\n    }\n  };\n\n  switch (element.type){\n    case 'rich_text':\n      return wp.element.createElement(\"div\", {\n        className: \"vibe_rich_editor\"\n      }, Array.isArray(components)&&components.length==1&&components[0]=='editor' ? '':wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        move: function move(action){\n          return _move(action);\n        }\n      }), wp.element.createElement(_veditor__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n        content: element.content,\n        update: onEditorChange,\n        show: function show(type){\n          if(type=='media'){\n            setMediaModalShow(!media_modal_show);\n          }\n\n          if(type=='column'){\n            setColumnModalShow(!column_modal_show);\n          }\n\n          if(type=='shortcode'){\n            setShortCodesModalShow(!shortcodes_modal_show);\n          }\n        },\n        plugins: plugins\n      }));\n      break;\n\n    case 'columns':\n      if(Array.isArray(element.columns)&&element.columns.length&&Array.isArray(element.content)&&element.content.length){\n        return wp.element.createElement(\"div\", {\n          className: \"columns_editor\"\n        }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n          move: function move(action){\n            return _move(action);\n          }\n        }), wp.element.createElement(\"div\", {\n          style: {\n            'display': 'grid',\n            'gridTemplateColumns': fraction_string(element.columns),\n            'gridGap': '1rem'\n          }\n        }, element.columns.map(function (c, j){\n          return wp.element.createElement(\"div\", {\n            className: \"vibe_re_editor\"\n          }, wp.element.createElement(\"span\", null, wp.element.createElement(\"span\", {\n            className: \"vibe_rich_editor_control\",\n            onClick: function onClick(e){\n              remove_column_block(j, i);\n            }\n          }, wp.element.createElement(\"span\", {\n            className: \"vicon vicon-close\"\n          }))), wp.element.createElement(_editor__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n            content: element.content[j],\n            update: function update(updated_content){\n              var nelement=_objectSpread({}, element);\n\n              nelement.content[j]=updated_content;\n\n              _update(nelement, 'editor');\n            }\n          }));\n        })));\n      }\n\n      break;\n\n    case 'media':\n      return wp.element.createElement(\"div\", {\n        className: \"media_editor\"\n      }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n        move: function move(action){\n          return _move(action);\n        }\n      }), wp.element.createElement(\"div\", {\n        className: \"media_type\"\n      }, content_to_html(element.content)));\n      break;\n\n    case 'shortcode':\n      if(element.shortcode){\n        var name='';\n        var randomId='';\n\n        switch (element.shortcode.key){\n          case 'note':\n            if(element.shortcode.attributes&&element.shortcode.attributes.length){\n              return wp.element.createElement(\"div\", {\n                className: \"shortcode_editor\"\n              }, wp.element.createElement(\"div\", {\n                className: 'vibe_' + element.shortcode.key\n              }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n                move: function move(action){\n                  return _move(action);\n                }\n              }), wp.element.createElement(\"div\", {\n                className: \"attributes\"\n              }, element.shortcode.attributes.map(function (attribute, index){\n                var value=attribute[\"default\"];\n\n                if(attribute.hasOwnProperty('value')){\n                  value=attribute.value;\n                }\n\n                switch (attribute.field_type){\n                  case 'number':\n                    return wp.element.createElement(\"span\", null, wp.element.createElement(\"label\", null, attribute.label), wp.element.createElement(\"input\", {\n                      value: value,\n                      type: \"number\",\n                      onChange: function onChange(e){\n                        update_attribute(index, e.target.value);\n                      }\n                    }));\n                    break;\n\n                  case 'color':\n                    return wp.element.createElement(\"span\", null, wp.element.createElement(\"label\", null, attribute.label), wp.element.createElement(\"input\", {\n                      value: value,\n                      type: \"color\",\n                      onChange: function onChange(e){\n                        update_attribute(index, e.target.value);\n                      }\n                    }));\n                    break;\n                }\n              })), wp.element.createElement(\"div\", {\n                className: \"vibe_re_editor\",\n                style: apply_shortcode_editore_styling(element.shortcode.attributes)\n              }, wp.element.createElement(_editor__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                content: element.content,\n                update: function update(updated_content){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content=updated_content;\n\n                  _update(nelement, 'editor');\n                }\n              }))));\n            }\n\n            break;\n\n          case 'accordion':\n            name='accordion' + Math.round(Math.random() * 100000);\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(\"div\", {\n              className: \"add_new\"\n            }, wp.element.createElement(\"span\", {\n              className: \"vicon vicon-plus\",\n              onClick: function onClick(){\n                var nelement=_objectSpread({}, element);\n\n                nelement.content.push({\n                  title: '',\n                  content: ''\n                });\n\n                _update(nelement, 'shortcode');\n              }\n            }, window.vibeEditor.translations.add_accordion_tab)), element.content&&element.content.length ? wp.element.createElement(\"div\", {\n              className: \"vibeeditor_accordion\"\n            }, element.content.map(function (a, j){\n              randomId=name + j + 1;\n              return wp.element.createElement(\"div\", {\n                className: \"vibeeditor_toggle\"\n              }, wp.element.createElement(\"input\", {\n                type: \"radio\",\n                id: randomId\n              }), wp.element.createElement(\"span\", null, wp.element.createElement(\"span\", {\n                className: \"vicon vicon-close\",\n                onClick: function onClick(){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content.splice(j, 1);\n\n                  _update(nelement, 'shortcode');\n                }\n              }), wp.element.createElement(\"label\", {\n                \"for\": randomId\n              }, wp.element.createElement(\"input\", {\n                value: a.title,\n                onChange: function onChange(e){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content[j].title=e.target.value;\n\n                  _update(nelement);\n                },\n                type: \"text\",\n                placeholder: window.vibeEditor.translations.enter_title\n              }), wp.element.createElement(\"span\", {\n                className: \"vicon vicon-arrow-right\"\n              }))), wp.element.createElement(\"div\", {\n                className: \"vibeeditor_toggle_content\"\n              }, wp.element.createElement(\"div\", {\n                className: \"vibe_re_editor\"\n              }, wp.element.createElement(_editor__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                content: element.content[j].content,\n                update: function update(updated_content){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content[j].content=updated_content;\n\n                  _update(nelement, 'editor');\n                }\n              }))));\n            })):''));\n            break;\n\n          case 'tab':\n            name='tabs_' + Math.round(Math.random() * 100000);\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(\"div\", {\n              className: \"add_new\"\n            }, wp.element.createElement(\"span\", {\n              className: \"vicon vicon-plus\",\n              onClick: function onClick(){\n                var nelement=_objectSpread({}, element);\n\n                nelement.content.push({\n                  title: '',\n                  content: ''\n                });\n\n                _update(nelement, 'shortcode');\n              }\n            }, window.vibeEditor.translations.add_tab)), element.content&&element.content.length ? wp.element.createElement(\"div\", {\n              className: \"vibeeditor_tabs_wrapper\"\n            }, wp.element.createElement(\"div\", {\n              className: \"vibeeditor_tabs\"\n            }, element.content.map(function (a, j){\n              randomId=name + j + 1;\n              return wp.element.createElement(\"label\", {\n                \"for\": randomId,\n                className: \"vibeeditor_tab_title\"\n              }, a.title&&a.title.length ? a.title:window.vibeEditor.translations.enter_title);\n            })), wp.element.createElement(\"div\", {\n              className: \"vibeeditor_tabs_content_wrapper\"\n            }, element.content.map(function (a, j){\n              randomId=name + j + 1;\n              return wp.element.createElement(Fragment, null, wp.element.createElement(\"input\", {\n                type: \"radio\",\n                id: randomId,\n                name: name\n              }), wp.element.createElement(\"div\", {\n                className: 'vibeeditor_tab_content ' + randomId\n              }, wp.element.createElement(\"span\", null, wp.element.createElement(\"span\", {\n                className: \"vicon vicon-close\",\n                onClick: function onClick(){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content.splice(j, 1);\n\n                  _update(nelement, 'shortcode');\n                }\n              }), wp.element.createElement(\"input\", {\n                value: a.title,\n                onChange: function onChange(e){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content[j].title=e.target.value;\n\n                  _update(nelement, 'shortcode');\n                },\n                type: \"text\",\n                placeholder: window.vibeEditor.translations.enter_title\n              })), wp.element.createElement(\"div\", {\n                className: \"vibe_re_editor\"\n              }, wp.element.createElement(_editor__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n                content: element.content[j].content,\n                update: function update(updated_content){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content[j].content=updated_content;\n\n                  _update(nelement, 'shortcode');\n                }\n              }))));\n            }))):''));\n            break;\n\n          case 'vibe_forms':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(\"div\", {\n              className: \"add_new\"\n            }, wp.element.createElement(\"div\", {\n              \"class\": \"field\"\n            }, wp.element.createElement(\"div\", {\n              \"class\": \"control \".concat(isLoading.form ? 'is-loading':'')\n            }, wp.element.createElement(\"input\", {\n              type: \"text\",\n              placeholder: window.vibeEditor.translations.search,\n              onChange: function onChange(e){\n                return searchForms(e.target.value);\n              }\n            })))), forms&&forms.length ? wp.element.createElement(\"div\", {\n              className: \"all_forms\"\n            }, forms.map(function (form){\n              return wp.element.createElement(\"span\", {\n                className: \"form\"\n              }, wp.element.createElement(\"span\", null, form.post_title), wp.element.createElement(\"span\", {\n                className: \"vicon vicon-plus\",\n                onClick: function onClick(){\n                  var nelement=_objectSpread({}, element);\n\n                  console.log(form);\n                  nelement.content.push({\n                    id: form.id,\n                    post_title: form.post_title\n                  });//nelement.content.push(form);\n\n                  _update(nelement, 'shortcode');\n                }\n              }));\n            })):'', window.vibeforms&&element.content&&element.content.length ? wp.element.createElement(\"div\", {\n              className: \"all_forms\"\n            }, element.content.map(function (form, j){\n              return wp.element.createElement(\"span\", {\n                className: \"form\"\n              }, wp.element.createElement(\"span\", {\n                onClick: function onClick(){\n                  setFullForm(form);\n                }\n              }, form.post_title), wp.element.createElement(\"span\", {\n                className: \"vicon vicon-close\",\n                onClick: function onClick(){\n                  var nelement=_objectSpread({}, element);\n\n                  nelement.content.splice(j, 1);\n\n                  _update(nelement, 'shortcode');\n                }\n              }));\n            })):''));\n            break;\n\n          case 'flashcard':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(_shortcodes_flashcards__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n              element: element,\n              update: function update(nelement){\n                _update(nelement, 'shortcode');\n              }\n            })));\n            break;\n\n          case 'scratchcard':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(_shortcodes_scratchcard__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n              element: element,\n              update: function update(nelement){\n                _update(nelement, 'shortcode');\n              }\n            })));\n            break;\n\n          case 'imagerevealer':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(_shortcodes_imagereveal__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n              element: element,\n              update: function update(nelement){\n                _update(nelement, 'shortcode');\n              }\n            })));\n            break;\n\n          case 'hotspots':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(_shortcodes_hotspots__WEBPACK_IMPORTED_MODULE_7__[\"default\"], {\n              element: element,\n              update: function update(nelement){\n                _update(nelement, 'shortcode');\n              }\n            })));\n            break;\n\n          case 'memorygame':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(_shortcodes_memorygame__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n              element: element,\n              update: function update(nelement){\n                _update(nelement, 'shortcode');\n              }\n            })));\n            break;\n\n          case 'cardstack':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(_shortcodes_cardstack__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n              element: element,\n              update: function update(nelement){\n                _update(nelement, 'shortcode');\n              }\n            })));\n            break;\n\n          case 'html':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(\"div\", {\n              className: \"vibeeditor_html\"\n            }, wp.element.createElement(\"div\", {\n              className: \"vibebp_form\"\n            }, wp.element.createElement(\"div\", {\n              className: \"vibebp_form_field\"\n            }, wp.element.createElement(\"label\", null, window.vibeEditor.translations.enter_html), wp.element.createElement(\"textarea\", {\n              onChange: function onChange(e){\n                var nelement=_objectSpread({}, element);\n\n                nelement.content=e.target.value;\n\n                _update(nelement, 'html');\n              },\n              value: element.content\n            }))))));\n            break;\n\n          case 'youtube':\n          case 'vimeo':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(\"div\", {\n              className: \"vibeeditor_html\"\n            }, wp.element.createElement(\"div\", {\n              className: \"vibebp_form\"\n            }, wp.element.createElement(\"div\", {\n              className: \"vibebp_form_field\"\n            }, wp.element.createElement(\"label\", null, window.vibeEditor.translations.enter_url_id), wp.element.createElement(\"input\", {\n              type: \"text\",\n              onChange: function onChange(e){\n                var nelement=_objectSpread({}, element);\n\n                nelement.content=e.target.value;\n\n                _update(nelement, 'video');\n              },\n              value: element.content\n            }))))));\n            break;\n\n          case 'document':\n          case 'spreadsheet':\n          case 'interactive':\n            return wp.element.createElement(\"div\", {\n              className: \"shortcode_editor\"\n            }, wp.element.createElement(\"div\", {\n              className: 'vibe_' + element.shortcode.key\n            }, wp.element.createElement(_editor_header__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n              move: function move(action){\n                return _move(action);\n              }\n            }), wp.element.createElement(_shortcodes_embed_viewer__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n              element: element,\n              update: function update(nelement){\n                _update(nelement, 'embed');\n              }\n            })));\n            break;\n\n          default:\n            break;\n        }\n      }\n\n      break;\n\n    default:\n      break;\n  }\n}\n\n//# sourceURL=webpack:///./src/components/generate-content.js?");
}),
"./src/components/shortcodes/cardstack.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return CardStack; });\n var _mediamodal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/mediamodal.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    Fragment=_wp$element.Fragment;\n\nfunction CardStack(_ref){\n  var element=_ref.element,\n      update=_ref.update;\n\n  var _useState=useState({\n    image: false\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      media_modal_show_cardstack=_useState2[0],\n      setMediaModalShowCardStack=_useState2[1];\n\n  var opacityImagesUpdate=function opacityImagesUpdate(){\n    element.content.images.map(function (imageUrl){\n      document.querySelectorAll(\".vibeeditor_cardstack .vibe_editor_modal .ve_modal-body .allMedia .single_media img[src*=\\\"\".concat(imageUrl, \"\\\"]\")).forEach(function (image){\n        image.style.opacity=0.2;\n      });\n    });\n  };\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibeeditor_cardstack\"\n  }, wp.element.createElement(\"section\", {\n    className: \"vibeeditor_cardstack__cards\"\n  }, element.content&&element.content.images&&Array.isArray(element.content.images) ? wp.element.createElement(Fragment, null, element.content.images.map(function (imageUrl, j){\n    return wp.element.createElement(\"div\", {\n      className: \"vibeeditor_cardstack__card\",\n      \"data-card\": imageUrl\n    }, wp.element.createElement(\"img\", {\n      className: \"_image\",\n      src: imageUrl\n    }), wp.element.createElement(\"span\", {\n      className: \"vicon vicon-close remove\",\n      onClick: function onClick(e){\n        var nelement=_objectSpread({}, element);\n\n        nelement.content.images.splice(j, 1);\n        update(nelement);\n      }\n    }));\n  })):''), wp.element.createElement(\"div\", {\n    className: \"action\"\n  }, wp.element.createElement(\"select\", {\n    value: element.content&&element.content.type,\n    onChange: function onChange(e){\n      var nelement=_objectSpread({}, element);\n\n      nelement.content.type=e.target.value;\n      update(nelement);\n    }\n  }, wp.element.createElement(\"option\", {\n    value: null\n  }, window.vibeEditor.translations.select_type), window.vibeEditor.settings.cardstack.types.map(function (t){\n    return wp.element.createElement(\"option\", {\n      value: t.value\n    }, t.label);\n  })), wp.element.createElement(\"span\", {\n    className: \"button is-primary\",\n    onClick: function onClick(){\n      setMediaModalShowCardStack(_objectSpread(_objectSpread({}, media_modal_show_cardstack), {}, {\n        image: true\n      }));\n    }\n  }, window.vibeEditor.translations.choose_images)), media_modal_show_cardstack.image ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowCardStack(_objectSpread(_objectSpread({}, media_modal_show_cardstack), {}, {\n        image: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.images){\n        nelement.content.images=[];\n      }\n\n      if(!nelement.content.images.includes(data.url)){\n        nelement.content.images.push(data.url);\n        update(nelement);\n        opacityImagesUpdate();\n      }\n    },\n    autoclose: true\n  }):'');\n}\n\n//# sourceURL=webpack:///./src/components/shortcodes/cardstack.js?");
}),
"./src/components/shortcodes/embed-viewer.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _mediamodal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/mediamodal.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState;\n\n\nvar EmbedViewer=function EmbedViewer(_ref){\n  var element=_ref.element,\n      update=_ref.update;\n\n  var _useState=useState(false),\n      _useState2=_slicedToArray(_useState, 2),\n      media_modal_show=_useState2[0],\n      setMediaModalShow=_useState2[1];\n\n  return wp.element.createElement(\"div\", {\n    className: \"embedviewer_\".concat(element.shortcode.key, \" embedviewer_creator\").concat(element.shortcode.key, \" vibeeditor_shortcode_embedviewer\")\n  }, element.content&&element.content.url ? wp.element.createElement(\"div\", null, wp.element.createElement(\"iframe\", {\n    src: \"https://view.officeapps.live.com/op/embed.aspx?src=\".concat(element.content.url)\n  })):wp.element.createElement(\"div\", {\n    className: \"upload_media\",\n    onClick: function onClick(){\n      return setMediaModalShow(true);\n    }\n  }, wp.element.createElement(\"label\", {\n    \"for\": \"vibe_editor_upload_media\"\n  }, wp.element.createElement(\"span\", {\n    \"class\": \"vicon vicon-plus\"\n  }))), media_modal_show ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: element.shortcode.key,\n    close: function close(){\n      setMediaModalShow(false);\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content){\n        nelement.content={};\n      }\n\n      nelement.content.url=data.url;\n      update(nelement);\n    }\n  }):'');\n};\n\n __webpack_exports__[\"default\"]=(EmbedViewer);\n\n//# sourceURL=webpack:///./src/components/shortcodes/embed-viewer.js?");
}),
"./src/components/shortcodes/flashcards.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _mediamodal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/mediamodal.js\");\n var _editor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/editor.js\");\n var _functions__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/functions.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    Fragment=_wp$element.Fragment;\n\n\n\n\nvar FlashCard=function FlashCard(_ref){\n  var element=_ref.element,\n      _update=_ref.update;\n  var randomId=Object(_functions__WEBPACK_IMPORTED_MODULE_2__[\"randomString\"])(15);\n\n  var _useState=useState({\n    front: false,\n    back: false\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      media_modal_show_flashcard=_useState2[0],\n      setMediaModalShowFlashCard=_useState2[1];\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibeeditor_flashcard\"\n  }, wp.element.createElement(\"div\", {\n    className: \"flashcard\"\n  }, wp.element.createElement(\"div\", {\n    className: \"flashcard_card\"\n  }, wp.element.createElement(\"input\", {\n    type: \"checkbox\",\n    id: randomId,\n    className: \"flashcard_more\"\n  }), wp.element.createElement(\"div\", {\n    className: \"shortcode_content\"\n  }, wp.element.createElement(\"div\", {\n    className: \"front\"\n  }, wp.element.createElement(\"div\", {\n    className: (element.content.front ? element.content.front[\"class\"]:'') + ' inner'\n  }, element.content&&element.content.front&&element.content.front.image ? wp.element.createElement(\"span\", {\n    className: \"flashcard_background_image_wrapper\"\n  }, wp.element.createElement(\"img\", {\n    className: \"flashcard_background_image\",\n    src: element.content.front.image\n  }), wp.element.createElement(\"span\", {\n    className: \"remove tip vicon vicon-close\",\n    title: window.vibeEditor.translations.remove_background_image,\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      delete nelement.content.front.image;\n\n      _update(nelement);\n    }\n  })):'', wp.element.createElement(\"div\", {\n    className: element.content&&element.content.front&&element.content.front.image ? 'editor_over_image':'editor_over_image not_set'\n  }, element.content&&element.content.front&&element.content.front.image ? wp.element.createElement(\"div\", {\n    className: \"vibe_re_editor\"\n  }, wp.element.createElement(_editor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    content: element.content&&element.content.front&&element.content.front.content ? element.content.front.content:null,\n    update: function update(updated_content){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front.content=updated_content;\n\n      _update(nelement);\n    }\n  })):'', wp.element.createElement(Fragment, null, element.content&&element.content.front&&element.content.front.image ? '':wp.element.createElement(\"span\", {\n    className: \"flashcard_front\",\n    onClick: function onClick(){\n      setMediaModalShowFlashCard(_objectSpread(_objectSpread({}, media_modal_show_flashcard), {}, {\n        front: true\n      }));\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"flashcard_label\"\n  }, window.vibeEditor.translations.select_card_image), wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 24 24\",\n    fill: \"none\",\n    stroke: \"currentColor\",\n    \"stroke-width\": \"1\",\n    \"stroke-linecap\": \"round\",\n    \"stroke-linejoin\": \"round\",\n    \"class\": \"feather feather-image\"\n  }, wp.element.createElement(\"rect\", {\n    x: \"3\",\n    y: \"3\",\n    width: \"18\",\n    height: \"18\",\n    rx: \"2\",\n    ry: \"2\"\n  }), wp.element.createElement(\"circle\", {\n    cx: \"8.5\",\n    cy: \"8.5\",\n    r: \"1.5\"\n  }), wp.element.createElement(\"polyline\", {\n    points: \"21 15 16 10 5 21\"\n  })))), wp.element.createElement(\"div\", {\n    className: \"action\"\n  }, wp.element.createElement(\"div\", {\n    className: \"flash_card_styles\",\n    title: window.vibeEditor.translations.select_card_style\n  }, wp.element.createElement(\"span\", {\n    className: element.content.front&&element.content.front[\"class\"]=='bottom_right' ? 'bottom_right active':'bottom_right',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front[\"class\"]='bottom_right';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 32.833 54)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(5 38)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: element.content.front&&element.content.front[\"class\"]=='center_center' ? 'center_center active':'center_center',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front[\"class\"]='center_center';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 22.833 36)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(-5.454 20.2)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: !element.content.front||!element.content.front[\"class\"]||element.content.front&&element.content.front[\"class\"]=='top_left' ? 'top_left active':'top_left',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front[\"class\"]='top_left';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 13.833 16)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(-14.454 .2)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: element.content.front&&element.content.front[\"class\"]=='top_right' ? 'top_right active':'top_right',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front[\"class\"]='top_right';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 32.833 16)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(4.546 .2)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: element.content.front&&element.content.front[\"class\"]=='bottom_left' ? 'bottom_left active':'center_center',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front[\"class\"]='bottom_left';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 14.833 56)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(-13.454 40.2)\"\n  }, \" T \"), \" \"))), wp.element.createElement(\"label\", {\n    \"for\": randomId,\n    className: \"flipbutton\"\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-reload\"\n  })))))), wp.element.createElement(\"div\", {\n    className: \"back\"\n  }, wp.element.createElement(\"div\", {\n    className: (element.content.back&&element.content.back[\"class\"] ? element.content.back[\"class\"]:'') + ' inner'\n  }, element.content&&element.content.back&&element.content.back.image ? wp.element.createElement(\"span\", {\n    className: \"flashcard_background_image_wrapper\"\n  }, wp.element.createElement(\"img\", {\n    className: \"flashcard_background_image\",\n    src: element.content.back.image\n  }), wp.element.createElement(\"span\", {\n    className: \"remove tip vicon vicon-close\",\n    title: window.vibeEditor.translations.remove_background_image,\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      if(nelement.content.back.image){\n        delete nelement.content.back.image;\n      }\n\n      _update(nelement);\n    }\n  })):'', wp.element.createElement(\"div\", {\n    className: element.content&&element.content.back&&element.content.back.image ? 'editor_over_image':'editor_over_image not_set'\n  }, element.content&&element.content.back&&element.content.back.image ? wp.element.createElement(\"div\", {\n    className: \"vibe_re_editor\"\n  }, wp.element.createElement(_editor__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    content: element.content&&element.content.back&&element.content.back.content ? element.content.back.content:null,\n    update: function update(updated_content){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back.content=updated_content;\n\n      _update(nelement);\n    }\n  })):'', wp.element.createElement(Fragment, null, element.content&&element.content.back&&element.content.back.image ? '':wp.element.createElement(\"span\", {\n    className: \"flashcard_back\",\n    onClick: function onClick(){\n      setMediaModalShowFlashCard(_objectSpread(_objectSpread({}, media_modal_show_flashcard), {}, {\n        back: true\n      }));\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"flashcard_label\"\n  }, window.vibeEditor.translations.select_card_image), wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    width: \"100%\",\n    height: \"100%\",\n    viewBox: \"0 0 24 24\",\n    fill: \"none\",\n    stroke: \"currentColor\",\n    \"stroke-width\": \"1\",\n    \"stroke-linecap\": \"round\",\n    \"stroke-linejoin\": \"round\",\n    \"class\": \"feather feather-image\"\n  }, wp.element.createElement(\"rect\", {\n    x: \"3\",\n    y: \"3\",\n    width: \"18\",\n    height: \"18\",\n    rx: \"2\",\n    ry: \"2\"\n  }), wp.element.createElement(\"circle\", {\n    cx: \"8.5\",\n    cy: \"8.5\",\n    r: \"1.5\"\n  }), wp.element.createElement(\"polyline\", {\n    points: \"21 15 16 10 5 21\"\n  })))), wp.element.createElement(\"div\", {\n    className: \"action\"\n  }, wp.element.createElement(\"div\", {\n    className: \"flash_card_styles\",\n    title: window.vibeEditor.translations.select_card_style\n  }, wp.element.createElement(\"span\", {\n    className: element.content.back&&element.content.back[\"class\"]=='bottom_right' ? 'bottom_right active':'bottom_right',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back[\"class\"]='bottom_right';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 32.833 54)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(5 38)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: element.content.back&&element.content.back[\"class\"]=='center_center' ? 'center_center active':'center_center',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back[\"class\"]='center_center';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 22.833 36)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(-5.454 20.2)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: element.content.back&&element.content.back[\"class\"]=='top_left' ? 'top_left active':'top_left',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back[\"class\"]='top_left';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 13.833 16)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(-14.454 .2)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: element.content.back&&element.content.back[\"class\"]=='top_right' ? 'top_right active':'top_right',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back[\"class\"]='top_right';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 32.833 16)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(4.546 .2)\"\n  }, \" T \"), \" \")), wp.element.createElement(\"span\", {\n    className: element.content.back&&element.content.back[\"class\"]=='bottom_left' ? 'bottom_left active':'center_center',\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back[\"class\"]='bottom_left';\n\n      _update(nelement);\n    }\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    fillRule: \"evenodd\",\n    strokeLinecap: \"round\",\n    strokeLinejoin: \"round\",\n    clipRule: \"evenodd\",\n    viewBox: \"0 0 100 100\"\n  }, \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 20.833a8.337 8.337 0 00-8.333-8.333H20.833a8.337 8.337 0 00-8.333 8.333v58.334a8.337 8.337 0 008.333 8.333h58.334a8.337 8.337 0 008.333-8.333V20.833z\"\n  }), \" \", wp.element.createElement(\"path\", {\n    fill: \"none\",\n    stroke: \"#000\",\n    strokeWidth: \"4.17\",\n    d: \"M87.5 42.262c0-16.426-7.001-29.762-15.625-29.762h-43.75C19.501 12.5 12.5 25.836 12.5 42.262v15.476c0 16.426 7.001 29.762 15.625 29.762h43.75c8.624 0 15.625-13.336 15.625-29.762V42.262z\",\n    transform: \"matrix(.53333 0 0 .28 14.833 56)\"\n  }), \" \", wp.element.createElement(\"text\", {\n    x: \"48.836\",\n    y: \"36.957\",\n    fontFamily: \"'Arial-BoldMT', 'Arial', sans-serif\",\n    fontSize: \"20\",\n    fontWeight: \"700\",\n    transform: \"translate(-13.454 40.2)\"\n  }, \" T \"), \" \"))), wp.element.createElement(\"label\", {\n    \"for\": randomId,\n    className: \"flipbutton\"\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-reload\"\n  }))))))))), media_modal_show_flashcard.front ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowFlashCard(_objectSpread(_objectSpread({}, media_modal_show_flashcard), {}, {\n        front: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front.image=data.url;\n\n      _update(nelement);\n    }\n  }):'', media_modal_show_flashcard.back ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowFlashCard(_objectSpread(_objectSpread({}, media_modal_show_flashcard), {}, {\n        back: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back.image=data.url;\n\n      _update(nelement);\n    }\n  }):'');\n};\n\n __webpack_exports__[\"default\"]=(FlashCard);\n\n//# sourceURL=webpack:///./src/components/shortcodes/flashcards.js?");
}),
"./src/components/shortcodes/hotspots.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return HotSpots; });\n var _mediamodal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/mediamodal.js\");\n var _editor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/editor.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    useState=_wp$element.useState,\n    useRef=_wp$element.useRef;\n\n\nfunction HotSpots(_ref){\n  var element=_ref.element,\n      update=_ref.update;\n\n  var _useState=useState({\n    image: false\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      media_modal_show_hotspots=_useState2[0],\n      setMediaModalShowHotspots=_useState2[1];\n\n  var imageRef=useRef();\n\n  var _useState3=useState(-1),\n      _useState4=_slicedToArray(_useState3, 2),\n      active=_useState4[0],\n      setActive=_useState4[1];\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibeeditor_hotspots\"\n  }, wp.element.createElement(\"div\", {\n    className: \"hotspots\"\n  }, element.content&&element.content.image ? wp.element.createElement(\"div\", {\n    className: \"image_container\"\n  }, wp.element.createElement(\"img\", {\n    ref: imageRef,\n    className: \"_image\",\n    src: element.content.image,\n    onClick: function onClick(e){\n      var nelement=_objectSpread({}, element);\n\n      if(nelement.content.hasOwnProperty('pins')){\n        nelement.content.pins.push({\n          x: e.nativeEvent.offsetX * 100 / imageRef.current.width,\n          y: e.nativeEvent.offsetY * 100 / imageRef.current.height,\n          content: ''\n        });\n      }else{\n        nelement.content=_objectSpread(_objectSpread({}, nelement.content), {}, {\n          pins: []\n        });\n      }\n\n      update(nelement);\n    }\n  }), element.content&&element.content.pins&&Array.isArray(element.content.pins) ? element.content.pins.map(function (hotspot, j){\n    return wp.element.createElement(\"span\", {\n      className: \"hotspot_point\",\n      style: {\n        left: hotspot.x + '%',\n        top: hotspot.y + '%'\n      }\n    }, wp.element.createElement(\"span\", {\n      className: \"pin vicon vicon-pin\",\n      onClick: function onClick(e){\n        return setActive(active==-1 ? j:-1);\n      }\n    }), active==j ? wp.element.createElement(\"span\", {\n      className: \"hotspot_textarea\"\n    }, wp.element.createElement(\"div\", {\n      className: \"vibe_re_editor\"\n    }, wp.element.createElement(\"textarea\", {\n      value: hotspot.content,\n      onChange: function onChange(e){\n        var nelement=_objectSpread({}, element);\n\n        nelement.content.pins[j].content=e.target.value;\n        update(nelement);\n      }\n    })), wp.element.createElement(\"span\", {\n      className: \"vicon vicon-close remove\",\n      onClick: function onClick(e){\n        var nelement=_objectSpread({}, element);\n\n        nelement.content.pins.splice(j, 1);\n        update(nelement);\n      }\n    })):'');\n  }):''):wp.element.createElement(\"label\", {\n    \"for\": \"hotspot_image\",\n    className: \"hotspot_image\",\n    onClick: function onClick(){\n      setMediaModalShowHotspots(_objectSpread(_objectSpread({}, media_modal_show_hotspots), {}, {\n        image: true\n      }));\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon-plus\"\n  }))), media_modal_show_hotspots.image ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowHotspots(_objectSpread(_objectSpread({}, media_modal_show_hotspots), {}, {\n        image: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      nelement.content.image=data.url;\n      update(nelement);\n    }\n  }):'');\n}\n\n//# sourceURL=webpack:///./src/components/shortcodes/hotspots.js?");
}),
"./src/components/shortcodes/imagereveal.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _mediamodal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/mediamodal.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    Fragment=_wp$element.Fragment;\n\n\nvar ImageReveal=function ImageReveal(_ref){\n  var element=_ref.element,\n      update=_ref.update;\n\n  var _useState=useState({\n    front: false,\n    back: false\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      media_modal_show_imagerevealer=_useState2[0],\n      setMediaModalShowImageRevealerCard=_useState2[1];\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibeeditor_imagerevealer\"\n  }, wp.element.createElement(\"div\", {\n    className: \"imagerevealer\"\n  }, wp.element.createElement(\"div\", {\n    className: \"shortcode_content\"\n  }, wp.element.createElement(\"div\", {\n    className: \"back\"\n  }, element.content&&element.content.back&&element.content.back.image ? wp.element.createElement(Fragment, null, wp.element.createElement(\"img\", {\n    className: \"_image\",\n    src: element.content.back.image\n  }), wp.element.createElement(\"span\", {\n    className: \"action_remove vicon vicon-close\",\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      delete nelement.content.back.image;\n      update(nelement);\n    }\n  })):wp.element.createElement(\"span\", {\n    className: \"bg_image_select\",\n    onClick: function onClick(){\n      setMediaModalShowImageRevealerCard(_objectSpread(_objectSpread({}, media_modal_show_imagerevealer), {}, {\n        back: true\n      }));\n    }\n  }, window.vibeEditor.translations.choose_back_image)), wp.element.createElement(\"div\", {\n    className: \"front\"\n  }, element.content&&element.content.front&&element.content.front.image ? wp.element.createElement(Fragment, null, wp.element.createElement(\"img\", {\n    className: \"_image\",\n    src: element.content.front.image\n  }), wp.element.createElement(\"span\", {\n    className: \"action_remove vicon vicon-close\",\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      delete nelement.content.front.image;\n      update(nelement);\n    }\n  })):wp.element.createElement(\"span\", {\n    className: \"bg_image_select\",\n    onClick: function onClick(){\n      setMediaModalShowImageRevealerCard(_objectSpread(_objectSpread({}, media_modal_show_imagerevealer), {}, {\n        front: true\n      }));\n    }\n  }, window.vibeEditor.translations.choose_front_image)))), media_modal_show_imagerevealer.front ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowImageRevealerCard(_objectSpread(_objectSpread({}, media_modal_show_imagerevealer), {}, {\n        front: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front.image=data.url;\n      update(nelement);\n    }\n  }):'', media_modal_show_imagerevealer.back ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowImageRevealerCard(_objectSpread(_objectSpread({}, media_modal_show_imagerevealer), {}, {\n        back: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back.image=data.url;\n      update(nelement);\n    }\n  }):'');\n};\n\n __webpack_exports__[\"default\"]=(ImageReveal);\n\n//# sourceURL=webpack:///./src/components/shortcodes/imagereveal.js?");
}),
"./src/components/shortcodes/memorygame.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return MemoryGame; });\n var _mediamodal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/mediamodal.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment;\n\nfunction MemoryGame(_ref){\n  var element=_ref.element,\n      update=_ref.update;\n\n  var _useState=useState({\n    image: false\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      media_modal_show_memorygame=_useState2[0],\n      setMediaModalShowMemoryGame=_useState2[1];\n\n  var opacityImagesUpdate=function opacityImagesUpdate(){\n    element.content.images.map(function (imageUrl){\n      document.querySelectorAll(\".vibeeditor_memorygame .vibe_editor_modal .ve_modal-body .allMedia .single_media img[src*=\\\"\".concat(imageUrl, \"\\\"]\")).forEach(function (image){\n        image.style.opacity=0.2;\n      });\n    });\n  };\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibeeditor_memorygame\"\n  }, wp.element.createElement(\"div\", {\n    className: \"memorygame\"\n  }, wp.element.createElement(\"section\", {\n    className: \"memorygame__cards js-cards\",\n    style: {\n      gridTemplateColumns: \"repeat(\".concat(element.content.columns||5, \", 1fr)\")\n    }\n  }, element.content&&element.content.images&&Array.isArray(element.content.images) ? wp.element.createElement(Fragment, null, element.content.images.map(function (imageUrl, j){\n    return wp.element.createElement(\"div\", {\n      className: \"memorygame__card js-card\",\n      \"data-card\": imageUrl\n    }, wp.element.createElement(\"div\", {\n      className: \"memorygame__back-card\"\n    }, wp.element.createElement(\"img\", {\n      className: \"_image\",\n      src: imageUrl\n    }), wp.element.createElement(\"span\", {\n      className: \"vicon vicon-close remove\",\n      onClick: function onClick(e){\n        var nelement=_objectSpread({}, element);\n\n        nelement.content.images.splice(j, 1);\n        update(nelement);\n      }\n    })));\n  }), element.content.images.map(function (imageUrl, j){\n    return wp.element.createElement(\"div\", {\n      className: \"memorygame__card js-card\",\n      \"data-card\": imageUrl\n    }, wp.element.createElement(\"div\", {\n      className: \"memorygame__back-card\"\n    }, wp.element.createElement(\"img\", {\n      className: \"_image\",\n      src: imageUrl\n    })));\n  })):'')), wp.element.createElement(\"div\", {\n    className: \"action\"\n  }, wp.element.createElement(\"select\", {\n    value: element.content&&element.content.columns,\n    onChange: function onChange(e){\n      var nelement=_objectSpread({}, element);\n\n      nelement.content.columns=e.target.value;\n      update(nelement);\n    }\n  }, wp.element.createElement(\"option\", {\n    value: null\n  }, window.vibeEditor.translations.select_columns), window.vibeEditor.settings.memorygame.columns.map(function (column){\n    return wp.element.createElement(\"option\", {\n      value: column.value\n    }, column.label);\n  })), wp.element.createElement(\"span\", {\n    className: \"button is-primary\",\n    onClick: function onClick(){\n      setMediaModalShowMemoryGame(_objectSpread(_objectSpread({}, media_modal_show_memorygame), {}, {\n        image: true\n      }));\n    }\n  }, window.vibeEditor.translations.choose_images)), media_modal_show_memorygame.image ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowMemoryGame(_objectSpread(_objectSpread({}, media_modal_show_memorygame), {}, {\n        image: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.images){\n        nelement.content.images=[];\n      }\n\n      if(!nelement.content.images.includes(data.url)){\n        nelement.content.images.push(data.url);\n        update(nelement);\n        opacityImagesUpdate();\n      }\n    },\n    autoclose: true\n  }):'');\n}\n\n//# sourceURL=webpack:///./src/components/shortcodes/memorygame.js?");
}),
"./src/components/shortcodes/scratchcard.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _mediamodal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/mediamodal.js\");\n var _editor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/editor.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useRef=_wp$element.useRef,\n    Fragment=_wp$element.Fragment;\n\n\n\nvar ScratchCard=function ScratchCard(_ref){\n  var element=_ref.element,\n      update=_ref.update;\n  var imageRef=useRef();\n\n  var _useState=useState(-1),\n      _useState2=_slicedToArray(_useState, 2),\n      active=_useState2[0],\n      setActive=_useState2[1];\n\n  var _useState3=useState({\n    front: false,\n    back: false\n  }),\n      _useState4=_slicedToArray(_useState3, 2),\n      media_modal_show_scratchcard=_useState4[0],\n      setMediaModalShowScratchCard=_useState4[1];\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibeeditor_scratchcard\"\n  }, wp.element.createElement(\"div\", {\n    className: \"scratchcard\"\n  }, wp.element.createElement(\"div\", {\n    className: \"shortcode_content\"\n  }, wp.element.createElement(\"div\", {\n    className: \"back\"\n  }, element.content&&element.content.back&&element.content.back.image ? wp.element.createElement(Fragment, null, wp.element.createElement(\"img\", {\n    className: \"_image\",\n    src: element.content.back.image\n  }), wp.element.createElement(\"span\", {\n    className: \"action_remove vicon vicon-close\",\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      delete nelement.content.front.image;\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      delete nelement.content.back.image;\n      update(nelement);\n    }\n  })):wp.element.createElement(\"span\", {\n    className: \"bg_image_select\",\n    onClick: function onClick(){\n      setMediaModalShowScratchCard(_objectSpread(_objectSpread({}, media_modal_show_scratchcard), {}, {\n        back: true\n      }));\n    }\n  }, window.vibeEditor.translations.choose_back_image)), wp.element.createElement(\"div\", {\n    className: \"front\"\n  }, element.content&&element.content.front&&element.content.front.image ? wp.element.createElement(Fragment, null, wp.element.createElement(\"img\", {\n    className: \"_image\",\n    src: element.content.front.image\n  }), wp.element.createElement(\"span\", {\n    className: \"action_remove vicon vicon-close\",\n    onClick: function onClick(){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      delete nelement.content.front.image;\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      delete nelement.content.back.image;\n      update(nelement);\n    }\n  })):wp.element.createElement(\"span\", {\n    className: \"bg_image_select\",\n    onClick: function onClick(){\n      setMediaModalShowScratchCard(_objectSpread(_objectSpread({}, media_modal_show_scratchcard), {}, {\n        front: true\n      }));\n    }\n  }, window.vibeEditor.translations.choose_front_image)))), media_modal_show_scratchcard.front ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowScratchCard(_objectSpread(_objectSpread({}, media_modal_show_scratchcard), {}, {\n        front: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.front){\n        nelement.content.front={};\n      }\n\n      nelement.content.front.image=data.url;\n      update(nelement);\n    }\n  }):'', media_modal_show_scratchcard.back ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post_mime_type: 'image',\n    close: function close(){\n      setMediaModalShowScratchCard(_objectSpread(_objectSpread({}, media_modal_show_scratchcard), {}, {\n        back: false\n      }));\n    },\n    share: function share(data){\n      var nelement=_objectSpread({}, element);\n\n      if(!nelement.content.back){\n        nelement.content.back={};\n      }\n\n      nelement.content.back.image=data.url;\n      update(nelement);\n    }\n  }):'');\n};\n\n __webpack_exports__[\"default\"]=(ScratchCard);\n\n//# sourceURL=webpack:///./src/components/shortcodes/scratchcard.js?");
}),
"./src/editor.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/index.js\");\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0__);\n var _columnmodal__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/columnmodal.js\");\n var _mediamodal__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/mediamodal.js\");\n var _shortcodes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/shortcodes.js\");\n var _components_generate_content__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/components/generate-content.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\nvar _wp$data=wp.data,\n    dispatch=_wp$data.dispatch,\n    select=_wp$data.select;\n\n\n\n\n\n\nvar VibeEditorComponent=function VibeEditorComponent(props){\n  var _useState=useState(false),\n      _useState2=_slicedToArray(_useState, 2),\n      column_modal_show=_useState2[0],\n      setColumnModalShow=_useState2[1];\n\n  var _useState3=useState(false),\n      _useState4=_slicedToArray(_useState3, 2),\n      media_modal_show=_useState4[0],\n      setMediaModalShow=_useState4[1];\n\n  var _useState5=useState(false),\n      _useState6=_slicedToArray(_useState5, 2),\n      shortcodes_modal_show=_useState6[0],\n      setShortCodesModalShow=_useState6[1];\n\n  var _useState7=useState(),\n      _useState8=_slicedToArray(_useState7, 2),\n      currentEditorState=_useState8[0],\n      setCurrentEditorState=_useState8[1];\n\n  var _useState9=useState([]),\n      _useState10=_slicedToArray(_useState9, 2),\n      refs=_useState10[0],\n      setRefs=_useState10[1];\n\n  var _useState11=useState([]),\n      _useState12=_slicedToArray(_useState11, 2),\n      content=_useState12[0],\n      setContent=_useState12[1];\n\n  var _useState13=useState(false),\n      _useState14=_slicedToArray(_useState13, 2),\n      imageInEditor=_useState14[0],\n      setImageInEditor=_useState14[1];\n\n  useEffect(function (){\n    setContent(props.content);\n  }, [props.content]); //props.content depdency\n\n  var getCurrentBlock=function getCurrentBlock(editorState){\n    var currentSelection=editorState.getSelection();\n    var blockKey=currentSelection.getStartKey();\n    return editorState.getCurrentContent().getBlockForKey(blockKey);\n  };\n\n  var getCurrentLetter=function getCurrentLetter(editorState){\n    var currentBlock=getCurrentBlock(editorState);\n    var blockText=currentBlock.getText();\n    return blockText[editorState.getSelection().getStartOffset() - 1];\n  };\n\n  var _move=function move(action, i){\n    var ncontent=Array.isArray(content) ? _toConsumableArray(content):[];\n\n    switch (action){\n      case 'up':\n        if(i&&i >=1){\n          var temp=_objectSpread({}, ncontent[i - 1]);\n\n          ncontent[i - 1]=_objectSpread({}, ncontent[i]);\n          ncontent[i]=_objectSpread({}, temp);\n          setContent(ncontent);\n          props.update(ncontent);\n        }\n\n        break;\n\n      case 'down':\n        if(ncontent.length - 1 > i){\n          var _temp=_objectSpread({}, ncontent[i + 1]);\n\n          ncontent[i + 1]=_objectSpread({}, ncontent[i]);\n          ncontent[i]=_objectSpread({}, _temp);\n          setContent(ncontent);\n          props.update(ncontent);\n        }\n\n        break;\n\n      case 'remove':\n        ncontent.splice(i, 1);\n        setContent(ncontent);\n        props.update(ncontent);\n        break;\n\n      default:\n        break;\n    }\n  };\n\n  var rich_text_block_creater=function rich_text_block_creater(con){\n    var ncontent=Array.isArray(content) ? _toConsumableArray(content):[];\n    ncontent.push({\n      type: 'rich_text',\n      content: Object(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0__[\"createEditorStateWithText\"])('')\n    });\n    setContent(ncontent);\n    props.update(ncontent);\n  };\n\n  var columns_block_creater=function columns_block_creater(cols){\n    var ncontent=Array.isArray(content) ? _toConsumableArray(content):[];\n\n    if(Array.isArray(cols)&&cols.length){\n      var col_content=[];\n      cols.map(function (){\n        col_content.push([]);\n      });\n      ncontent.push({\n        type: 'columns',\n        columns: cols,\n        content: col_content\n      });\n      setContent(ncontent);\n      props.update(ncontent);\n    }\n  };\n\n  var shortcode_block_creator=function shortcode_block_creator(shortcode){\n    var ncontent=Array.isArray(content) ? _toConsumableArray(content):[];\n    ncontent.push({\n      type: 'shortcode',\n      content: [],\n      shortcode: shortcode\n    });\n    setContent(ncontent);\n    props.update(ncontent);\n  };\n\n  var media_block_creater=function media_block_creater(media){\n    if(imageInEditor!==false&&media.type=='image'){\n      var editorState=imageInEditor.getEditorState();\n      imageInEditor.setEditorState(imagePlugin.addImage(editorState, media.url, media.attributes));\n      setImageInEditor(false);\n    }else{\n      var ncontent=Array.isArray(content) ? _toConsumableArray(content):[];\n      ncontent.push({\n        type: 'media',\n        content: media\n      });\n      setContent(ncontent);\n      props.update(ncontent);\n    }\n  };\n\n  return wp.element.createElement(Fragment, null, wp.element.createElement(\"div\", {\n    className: \"vibe_editor\"\n  }, Array.isArray(props.components)&&props.components.length==1&&props.components[0]=='editor' ? '':wp.element.createElement(\"div\", {\n    className: \"vibe_editor_elements\"\n  }, wp.element.createElement(\"div\", {\n    className: \"vibe_editor_element\",\n    onClick: function onClick(e){\n      rich_text_block_creater(content);\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-text\"\n  })), wp.element.createElement(\"div\", {\n    className: \"vibe_editor_element\",\n    onClick: function onClick(e){\n      setMediaModalShow(!media_modal_show);\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-image\"\n  })), wp.element.createElement(\"div\", {\n    className: \"vibe_editor_element\",\n    onClick: function onClick(e){\n      setColumnModalShow(true);\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-layout-column2\"\n  })), wp.element.createElement(\"div\", {\n    className: \"vibe_editor_element\",\n    onClick: function onClick(e){\n      setShortCodesModalShow(true);\n    }\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-shortcode\"\n  })), select('vibebp').getUser().caps.hasOwnProperty('manage_options') ? '' //<a className={isSavingTemplate?'button is-primary small is-loading':'button is-primary small'}>{window.vibeEditor.translations.save_content_template}</a>\n:''), wp.element.createElement(\"div\", {\n    className: \"vibe_rows\"\n  }, Array.isArray(content)&&content.length ? content.map(function (element, i){\n    return wp.element.createElement(_components_generate_content__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n      element: element,\n      i: i,\n      move: function move(action){\n        return _move(action, i);\n      },\n      components: props.components,\n      plugins: props.plugins,\n      update: function update(nelement, type){\n        var ncontent=_toConsumableArray(content);\n\n        ncontent[i]=nelement;\n        props.update(ncontent, type);\n      }\n    });\n  }):''), wp.element.createElement(Fragment, null, column_modal_show ? wp.element.createElement(_columnmodal__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    close: setColumnModalShow,\n    share: function share(data){\n      columns_block_creater(data);\n    }\n  }):'', media_modal_show ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n    close: setMediaModalShow,\n    share: function share(data){\n      media_block_creater(data);\n    }\n  }):'', shortcodes_modal_show ? wp.element.createElement(_shortcodes__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n    close: setShortCodesModalShow,\n    share: function share(data){\n      shortcode_block_creator(data);\n    }\n  }):'')));\n};\n\n __webpack_exports__[\"default\"]=(VibeEditorComponent);\n\n//# sourceURL=webpack:///./src/editor.js?");
}),
"./src/functions.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"useThrottledEffect\", function(){ return useThrottledEffect; });\n __webpack_require__.d(__webpack_exports__, \"IsJsonString\", function(){ return IsJsonString; });\n __webpack_require__.d(__webpack_exports__, \"vibeformexist\", function(){ return vibeformexist; });\n __webpack_require__.d(__webpack_exports__, \"randomString\", function(){ return randomString; });\n __webpack_require__.d(__webpack_exports__, \"shuffledArray\", function(){ return shuffledArray; });\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\n\nvar debounce=function debounce(func, wait, immediate){\n  var timeout;\n  return function (){\n    var context=this,\n        args=arguments;\n\n    var later=function later(){\n      timeout=null;\n\n      if(!immediate){\n        func.apply(context, args);\n      }\n    };\n\n    var callNow=immediate&&!timeout;\n    clearTimeout(timeout);\n    timeout=setTimeout(later, wait||200);\n\n    if(callNow){\n      func.apply(context, args);\n      console.log('now');\n    }\n  };\n};\n\n __webpack_exports__[\"default\"]=(debounce);\nvar useThrottledEffect=function useThrottledEffect(callback, delay){\n  var deps=arguments.length > 2&&arguments[2]!==undefined ? arguments[2]:[];\n  var lastRan=useRef(Date.now());\n  useEffect(function (){\n    var handler=setTimeout(function (){\n      if(Date.now() - lastRan.current >=delay){\n        callback();\n        lastRan.current=Date.now();\n      }\n    }, delay - (Date.now() - lastRan.current));\n    return function (){\n      clearTimeout(handler);\n    };\n  }, [delay].concat(_toConsumableArray(deps)));\n};\nvar IsJsonString=function IsJsonString(str){\n  try {\n    JSON.parse(str);\n  } catch (e){\n    return false;\n  }\n\n  return true;\n};\nvar vibeformexist=function vibeformexist(){\n  return window.hasOwnProperty('vibeforms');\n};\nvar randomString=function randomString(length){\n  var chars='0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split('');\n\n  if(!length){\n    length=Math.floor(Math.random() * chars.length);\n  }\n\n  var str='';\n\n  for (var i=0; i < length; i++){\n    str +=chars[Math.floor(Math.random() * chars.length)];\n  }\n\n  return str;\n};\nvar shuffledArray=function shuffledArray(arr){\n  return arr.sort(function (){\n    return .5 - Math.random();\n  });\n};\n\n//# sourceURL=webpack:///./src/functions.js?");
}),
"./src/index.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _functions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/functions.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_1__);\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/index.js\");\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_2__);\n var draft_js_export_html__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./node_modules/draft-js-export-html/esm/main.js\");\n var _editor__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/editor.js\");\n var _sass_main_scss__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__( \"./_sass/main.scss\");\n var _sass_main_scss__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_sass_main_scss__WEBPACK_IMPORTED_MODULE_5__);\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useCallback=_wp$element.useCallback;\n\n\n\n\n\n\n\n\nvar VibeEditor=function VibeEditor(props){\n  var _useState=useState([]),\n      _useState2=_slicedToArray(_useState, 2),\n      updateEditorContent=_useState2[0],\n      setUpdateEditorContent=_useState2[1]; //save in db using stringify\n\n\n  var _useState3=useState([]),\n      _useState4=_slicedToArray(_useState3, 2),\n      editorContent=_useState4[0],\n      setEditorContent=_useState4[1]; //actual editor array\n\n\n  var _useState5=useState(''),\n      _useState6=_slicedToArray(_useState5, 2),\n      rawHtml=_useState6[0],\n      setRawHtml=_useState6[1]; //html save in post_content\n\n\n  var _useState7=useState(null),\n      _useState8=_slicedToArray(_useState7, 2),\n      timeoutID=_useState8[0],\n      setTimeoutID=_useState8[1];\n\n  useEffect(function (){\n    updateContentFromProps();\n    console.log('init');\n  }, []);\n  useEffect(function (){\n    if(props.reinit){\n      updateContentFromProps();\n    }\n  }, [props.reinit]);\n\n  var updateContentFromProps=function updateContentFromProps(){\n    var updated_content=[];\n\n    if(props.raw.length&&IsEditorHtml(props.content)){\n      var raw=_toConsumableArray(props.raw);\n\n      updated_content=processEditorState(raw);\n    }else if(!props.raw.length&&props.content.length > 4){\n      if(props.content.indexOf('vibe_editor') > -1||props.hasOwnProperty('components')&&props.components.includes('editor')){\n        var blocksFromHTML=Object(draft_js__WEBPACK_IMPORTED_MODULE_1__[\"convertFromHTML\"])(props.content);\n        var state=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"ContentState\"].createFromBlockArray(blocksFromHTML.contentBlocks, blocksFromHTML.entityMap);\n        updated_content=[{\n          type: 'rich_text',\n          content: draft_js__WEBPACK_IMPORTED_MODULE_1__[\"EditorState\"].createWithContent(state)\n        }];\n      }else{\n        updated_content=[{\n          type: 'shortcode',\n          shortcode: {\n            key: 'html'\n          },\n          content: props.content\n        }];\n      }\n    }else if(Array.isArray(props.components)&&props.components.length){\n      if(props.components.length==1&&props.components[0]=='editor'){\n        updated_content=[{\n          type: 'rich_text',\n          content: Object(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_2__[\"createEditorStateWithText\"])('')\n        }];\n      }\n    }else if(props.content.length){\n      updated_content=[{\n        type: 'shortcode',\n        shortcode: {\n          key: 'html'\n        },\n        content: props.content\n      }];\n    }\n\n    update(updated_content);\n  };\n\n  var IsEditorHtml=function IsEditorHtml(ncontent){\n    return ['vibe_editor_rich_text', 'vibe_editor_columns', 'vibe_editor_media', 'vibe_editor_shortcode'].some(function (value){\n      return ncontent.indexOf(value) > -1;\n    });\n  };\n\n  function isJson(item){\n    item=typeof item!==\"string\" ? JSON.stringify(item):item;\n\n    try {\n      item=JSON.parse(item);\n    } catch (e){\n      return false;\n    }\n\n    if(_typeof(item)===\"object\"&&item!==null){\n      return true;\n    }\n\n    return false;\n  } //content is actual draft js and raw will contain at the end string content\n\n\n  var processEditorState=function processEditorState(content){\n    var raw=[];\n\n    if(Array.isArray(content)&&content.length){\n      content.map(function (r, i){\n        raw[i]=_objectSpread({}, r);\n\n        if(window.reset_editor){\n          raw[i].content='';\n        }\n\n        if(r.type=='rich_text'){\n          if(r.content){\n            var parsed={};\n            var error=false;\n\n            try {\n              if(r.content.split('\\\\') > 1){\n                parsed=JSON.parse(r.content.replaceAll('\\\\', '\\\\\\\\'));\n              }else{\n                parsed=JSON.parse(r.content);\n              }\n            } catch (err){\n              error=true;\n            }\n\n            if(error||_typeof(parsed)!='object'){\n              raw[i].content=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"EditorState\"].createEmpty();\n            }else{\n              raw[i].content=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"EditorState\"].createWithContent(Object(draft_js__WEBPACK_IMPORTED_MODULE_1__[\"convertFromRaw\"])(parsed));\n            }\n          }else{\n            raw[i].content=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"EditorState\"].createEmpty();\n          }\n        }else if(r.type=='shortcode'){\n          if(r.shortcode.key=='note'){\n            raw[i].content=processEditorState(r.content);\n          }else if(r.shortcode.key=='accordion'||r.shortcode.key=='tab'){\n            raw[i].content=_toConsumableArray(r.content);\n            r.content.map(function (_short, j){\n              raw[i].content[j]=_objectSpread({}, _short);\n              raw[i].content[j].content=processEditorState(_short.content);\n            });\n          }else if(r.shortcode.key=='flashcard'){\n            raw[i].content={\n              front: _objectSpread(_objectSpread({}, r.content.front), {}, {\n                content: processEditorState(r.content.front&&r.content.front.content ? r.content.front.content:null)\n              }),\n              back: _objectSpread(_objectSpread({}, r.content.back), {}, {\n                content: processEditorState(r.content.back&&r.content.back.content ? r.content.back.content:null)\n              })\n            };\n          }else if(r.shortcode.key=='scratchcard'||r.shortcode.key=='imagerevealer'){\n            raw[i].content={\n              front: _objectSpread({}, r.content.front),\n              back: _objectSpread({}, r.content.back)\n            };\n          }else if(r.shortcode.key=='hotspots'){\n            if(r.content.image&&r.content.pins&&Array.isArray(r.content.pins)){\n              r.content.pins.map(function (pin, j){\n                r.content.pins[j]=_objectSpread(_objectSpread({}, pin), {}, {\n                  content: pin.content\n                });\n              });\n              raw[i].content=_objectSpread({}, r.content);\n            }\n          }else if(r.shortcode.key=='memorygame'){\n            raw[i].content=_objectSpread({}, r.content);\n          }else{\n            raw[i].content=r.content;\n          }\n        }else if(r.type=='columns'){\n          if(Array.isArray(r.content)&&r.content.length){\n            raw[i].content=_toConsumableArray(r.content);\n            r.content.map(function (ac, j){\n              if(Array.isArray(ac)&&ac.length){\n                raw[i].content[j]=processEditorState(ac);\n              }\n            });\n          }\n        }\n      });\n    }\n\n    return raw;\n  };\n\n  var processRaw=function processRaw(content){\n    var html='';\n\n    if(Array.isArray(content)&&content.length){\n      content.map(function (c){\n        if(c.type==='rich_text'){\n          html +='<div class=\"vibe_editor_rich_text\">';\n\n          if(Array.isArray(c.content)){}\n\n          if(!Array.isArray(c.content)&&typeof c.content.getCurrentContent=='function'){\n            var options={\n              blockStyleFn: function blockStyleFn(block){\n                var style={};\n\n                if(block.getData().get('color')){\n                  style['color']=block.getData().get('color');\n                }\n\n                if(block.getData().get('size')){\n                  style['fontSize']=block.getData().get('size');\n                }\n\n                if(block.getData().get('margin')){\n                  style['margin']=block.getData().get('margin');\n                }\n\n                if(block.getType()=='code-block'){\n                  if(typeof block.getData()._root!='undefined'&&Array.isArray(block.getData()._root.entries)){\n                    var lang=block.getData()._root.entries[0][1];\n\n                    return {\n                      attributes: {\n                        \"class\": 'language-' + lang\n                      }\n                    };\n                  }\n                }\n\n                var alignmentStyles=['left', 'right', 'center'];\n                alignmentStyles.map(function (s){\n                  if(block.getInlineStyleAt(0).has(s)){\n                    style.textAlign=s;\n                  }\n                });\n                return {\n                  style: style\n                };\n              },\n              entityStyleFn: function entityStyleFn(entity){\n                var entityType=entity.get('type').toLowerCase();\n\n                if(entityType==='image'){\n                  var data=entity.getData();\n                  var style={};\n\n                  if(data.hasOwnProperty('alignment')){\n                    style['float']=data.alignment;\n                  }\n\n                  if(data.hasOwnProperty('width')){\n                    style['width']=data.width + '%';\n                  }\n\n                  var attributes={};\n                  Object.keys(data).map(function (k){\n                    var nk=k;\n\n                    if(k!='src'){\n                      nk='data-' + k;\n                    }\n\n                    attributes[k]=data[k];\n                  });\n                  return {\n                    element: 'img',\n                    attributes: attributes,\n                    style: style\n                  };\n                }\n\n                if(entityType==='video'){\n                  var _data=entity.getData();\n\n                  var _attributes={};\n                  Object.keys(_data).map(function (k){\n                    var nk=k;\n\n                    if(k!='src'){\n                      nk='data-' + k;\n                    }\n\n                    _attributes[k]=_data[k];\n                  });\n                  return {\n                    element: 'video',\n                    attributes: _attributes\n                  };\n                }\n\n                if(entityType==='audio'){\n                  var _data2=entity.getData();\n\n                  var _attributes2={};\n                  Object.keys(_data2).map(function (k){\n                    var nk=k;\n\n                    if(k!='src'){\n                      nk='data-' + k;\n                    }\n\n                    _attributes2[k]=_data2[k];\n                  });\n                  return {\n                    element: 'audio',\n                    attributes: _attributes2\n                  };\n                }\n\n                if(entityType==='inlinetex'&&entity.getData().hasOwnProperty('teX')){\n                  var _data3=entity.getData();\n\n                  _data3['class']='mathjax';\n                  _data3['teX']=_data3['teX'].replace(/([^\\/])\\\\([^\\/])/g, \"$1\\\\\\$2\");\n                  return {\n                    element: 'span',\n                    attributes: _data3\n                  };\n                }\n\n                if(entityType==='link'){\n                  var _data4=entity.getData();\n\n                  var _style={};\n                  var _attributes3={\n                    href: _data4.url.url,\n                    target: _data4.url.target\n                  };\n\n                  if(_data4.hasOwnProperty('attributes')){\n                    _attributes3=_objectSpread(_objectSpread({}, _data4.attributes), _attributes3);\n                  }\n\n                  return {\n                    element: 'a',\n                    attributes: _attributes3\n                  };\n                }\n\n                if(entityType==='tooltip'){\n                  var _data5=entity.getData();\n\n                  var _style2={};\n                  return {\n                    element: 'a',\n                    attributes: {\n                      title: _data5.title,\n                      \"class\": 'tip'\n                    },\n                    style: _style2\n                  };\n                }\n\n                if(entityType==='highlight'){\n                  var _data6=entity.getData();\n\n                  var _style3=_data6.highlight;\n                  return {\n                    element: 'span',\n                    attributes: {\n                      \"class\": 'highlight'\n                    },\n                    style: _style3\n                  };\n                }\n              },\n              blockRenderers: {\n                atomic: function atomic(block){},\n                unstyled: function unstyled(block){\n                  if(typeof window[block.getKey()]!='undefined'&&window[block.getKey()].hasOwnProperty('status')&&window[block.getKey()].status){\n                    var _html='<' + window[block.getKey()].element;\n\n                    if(Array.isArray(window[block.getKey()].attributes)){\n                      window[block.getKey()].attributes.map(function (attribute){\n                        _html +=' ' + attribute.key + '=' + attribute.value;\n                      });\n                    }\n\n                    _html +='>' + window[block.getKey()].content + '</' + window[block.getKey()].element + '>';\n                    window[block.getKey()].status=0;\n                    return _html;\n                  }\n                }\n              }\n            };\n            html +=Object(draft_js_export_html__WEBPACK_IMPORTED_MODULE_3__[\"stateToHTML\"])(c.content.getCurrentContent(), options);\n          }\n\n          html +='</div>';\n        }else if(c.type==='columns'){\n          html +='<div class=\"vibe_editor_columns_wrapper\">\\\n\t\t\t\t\t<div class=\"vibe_editor_columns_' + c.columns.join('_') + ' \">';\n\n          if(c.content.length){\n            c.content.map(function (col){\n              html +='<div class=\"vibe_editor_column_content\">';\n              html +=processRaw(col); //already array\n\n              html +='</div>';\n            });\n          }\n\n          html +='</div></div>';\n        }else if(c.type==='media'){\n          html +='<div class=\"vibe_editor_media\">';\n          var attributes='';\n\n          if(c.content.hasOwnProperty('attributes')){\n            Object.keys(c.content.attributes).map(function (k){\n              attributes +=' data-' + k + '=\"' + c.content.attributes[k] + '\"';\n            });\n          }\n\n          if(c.content.type=='image'){\n            html +='<img src=\"' + c.content.url + '\" ' + attributes + ' title=\"' + c.content.name + '\" />';\n          }\n\n          if(c.content.type=='video'){\n            html +='<video class=\"video_plyr\" ' + attributes + ' title=\"' + c.content.name + '\" controls><source src=\"' + c.content.url + '\" type=\"video/mp4\" /></video>';\n          }\n\n          if(c.content.type=='audio'){\n            html +='<audio class=\"audio_plyr\" ' + attributes + ' title=\"' + c.content.name + '\" controls><source src=\"' + c.content.url + '\" type=\"audio/mp3\" /></audio>';\n          }\n\n          if(c.content.type=='document'){\n            html +='<div class=\"vbp_pdf_object\"><object data=\"' + c.content.url + '\" type=\"application/pdf\" ' + attributes + ' title=\"' + c.content.name + '\" width=\"100%\" height=\"800\"><embed src=\"' + c.content.url + '\" type=\"application/pdf\" /></object></div>';\n          }\n\n          if(c.content.type=='zip'){\n            html +='<a href=\"' + c.content.url + '\" ' + attributes + ' class=\"link\" title=\"' + c.content.name + '\">' + c.content.name + '</a>';\n          }\n\n          html +='</div>';\n        }else if(c.type=='shortcode'){\n          html +='<div class=\"vibe_editor_shortcode\">';\n\n          if(c.shortcode.key=='note'){\n            var style='';\n\n            if(c.shortcode.attributes.length){\n              c.shortcode.attributes.map(function (attribute){\n                if(attribute.value){\n                  style +=attribute.parameter + ':' + attribute.value;\n\n                  if(attribute.hasOwnProperty('suffix')){\n                    style +=attribute.suffix;\n                  }\n\n                  style +=';';\n                }\n              });\n            }\n\n            html +='<div class=\"vibe_editor_note\" style=\"' + style + '\">';\n\n            if(c.content.length){\n              c.content.map(function (col){\n                html +='<div class=\"vibe_editor_column_content\">';\n                html +=processRaw([col]);\n                html +='</div>';\n              });\n            }\n\n            html +='</div>';\n          }else if(c.shortcode.key=='accordion'){\n            if(c.content&&c.content.length){\n              var name='accordion_' + Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"randomString\"])(15);\n              html +='<div class=\"vibebp_accordion_wrapper\">';\n              c.content.map(function (accordion, i){\n                var id=name + '_' + i;\n                html +='<div class=\"vibebp_accordion_toggle\">';\n                html +='<input type=\"radio\" name=\"' + name + '\" id=\"' + id + '\" ' + (i==0 ? 'checked':'') + '><label for=\"' + id + '\" class=\"vibebp_accordion_title\">' + accordion.title + '</label>';\n                html +='<div class=\"vibe_editor_column_content vibebp_accordion_toggle_content\">';\n\n                if(Array.isArray(accordion.content)&&accordion.content.length){\n                  html +=processRaw(accordion.content);\n                }\n\n                html +='</div>';\n                html +='</div>';\n              });\n              html +='</div>';\n            }\n          }else if(c.shortcode.key=='tab'){\n            if(c.content&&c.content.length){\n              var _name='tabs_' + Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"randomString\"])(15);\n\n              html +='<div class=\"vibebp_tabs_wrapper\"><div class=\"vibebp_tab_titles\">';\n              c.content.map(function (tab, i){\n                var id=_name + '_' + i;\n                html +='<label for=\"' + id + '\" class=\"vibebp_tab_title\">' + tab.title + '</label>';\n              });\n              html +='</div><div class=\"vibebp_tab_content_wrapper\">';\n              c.content.map(function (tab, i){\n                var id=_name + '_' + i;\n                html +='<input type=\"radio\" name=\"' + _name + '\" id=\"' + id + '\" ' + (i==0 ? 'checked':'') + '><div class=\"vibebp_tab_content vibe_editor_column_content ' + id + '\">';\n\n                if(Array.isArray(tab.content)&&tab.content.length){\n                  html +=processRaw(tab.content);\n                }\n\n                html +='</div>';\n              });\n              html +='</div></div>';\n            }\n          }else if(c.shortcode.key=='flashcard'){\n            var randomId=Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"randomString\"])(15);\n            html +='<div class=\"flashcard\">';\n            html +='<div class=\"flashcard_card\">';\n            html +='<input type=\"checkbox\" id=\"' + randomId + '\" class=\"flashcard_more\" />';\n            html +='<label for=\"' + randomId + '\" class=\"shortcode_content\">'; //front start\n\n            html +='<div class=\"front\">';\n            html +='<div class=\"inner\">';\n\n            if(c.content.front&&c.content.front.image){\n              html +='<img class=\"flashcard_background_image\" src=\"' + c.content.front.image + '\"/>';\n            }\n\n            var front_class=c.content.front&&c.content.front.text_align ? \"flashcard_content_html \" + c.content.front.text_align.toString():\"flashcard_content_html\";\n            html +='<div class=\"' + front_class + '\">' + processRaw(c.content.front&&c.content.front.content) + '</div>';\n            html +='<div class=\"action\">';\n            html +='<div></div>';\n            html +='</div>';\n            html +='</div>';\n            html +='</div>'; //front end\n            //back start\n\n            html +='<div class=\"back\">';\n            html +='<div class=\"inner\">';\n\n            if(c.content.back&&c.content.back.image){\n              html +='<img class=\"flashcard_background_image\" src=\"' + c.content.back.image + '\"/>';\n            }\n\n            var back_class=c.content.back&&c.content.back.text_align ? \"flashcard_content_html \" + c.content.back.text_align.toString():\"flashcard_content_html\";\n            html +='<div class=\"' + back_class + '\">' + processRaw(c.content.back&&c.content.back.content) + '</div>';\n            html +='<div class=\"action\">';\n            html +='<div></div>';\n            html +='</div>';\n            html +='</div>';\n            html +='</div>'; //back end\n\n            html +='</label>';\n            html +='</div>';\n            html +='</div>';\n          }else if(c.shortcode.key=='scratchcard'){\n            html +='<figure class=\"scratcardContainer\">';\n\n            if(c.content.back&&c.content.back.image&&c.content.front&&c.content.front.image){\n              html +='<canvas class=\"scratchcard\" back-image=' + c.content.back.image + ' front-image=' + c.content.front.image + ' style=\"background-image:url(' + c.content.back.image + ');\"></canvas>';\n            }\n\n            html +='<span class=\"hed\"></span>';\n            html +='</figure>';\n          }else if(c.shortcode.key=='imagerevealer'){\n            if(c.content.back&&c.content.back.image&&c.content.front&&c.content.front.image){\n              html +='<div class=\"imagerevealerContainer\">';\n              html +='<div class=\"cocoen\">';\n              html +='<img src=' + c.content.front.image + ' alt=\"\">';\n              html +='<img src=' + c.content.back.image + ' alt=\"\">';\n              html +='</div>';\n              html +='</div>';\n            }\n          }else if(c.shortcode.key=='youtube'||c.shortcode.key=='vimeo'){\n            html +='<div class=\"' + c.shortcode.key + '_html_view\">';\n            html +='<div class=\"vibe_editor_media\">';\n            html +='<div class=\"video_plyr\" data-plyr-provider=\"' + c.shortcode.key + '\" data-plyr-embed-id=\"' + c.content + '\"></div>';\n            html +='</div>';\n            html +='</div>';\n          }else if(c.shortcode.key=='html'){\n            //do not wrap used in if raw not present\n            if(c.content){\n              html +=c.content;\n            }\n          }else if(c.shortcode.key=='hotspots'){\n            if(c.content&&c.content.image&&c.content.pins&&Array.isArray(c.content.pins)){\n              html +='<div class=\"hotspotsContainer\">';\n              html +='<div class=\"hotspots\">';\n              html +='<div class=\"image_container\">';\n              html +='<img class=\"_image\" src=' + c.content.image + ' alt=\"\">';\n              c.content.pins.map(function (pin){\n                var style=\"left:\" + pin.x + \"%;top:\" + pin.y + \"%;\";\n                html +='<span class=\"hotspot_point\" style=' + style + '>';\n                html +='<span class=\"pin-open vicon vicon-pin\"></span>';\n                html +='<span class=\"_box\">';\n                html +=pin.content;\n                html +='</span>';\n                html +='</span>';\n              });\n              html +='</div>';\n              html +='</div>';\n              html +='</div>';\n            }\n          }else if(c.shortcode.key=='memorygame'){\n            if(c.content&&c.content.images&&Array.isArray(c.content.images)&&c.content.columns){\n              html +=\"<div class=\\\"memorygame\\\"><section class=\\\"memorygame__cards js-cards grid_columns_\".concat(c.content.columns, \"\\\">\");\n              Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"shuffledArray\"])(Array(2).fill(c.content.images).flat()).map(function (imageUrl, j){\n                html +=\"<div class=\\\"memorygame__card js-card\\\" data-card=\".concat(imageUrl, \"><div class=\\\"memorygame__front-card\\\"><img class=\\\"_image\\\" src=\").concat(imageUrl, \" /></div><div class=\\\"memorygame__back-card\\\"><span class=\\\"vicon vicon-eye\\\"></span></div></div>\");\n              });\n              html +=\"</section></div>\";\n            }\n          }else if(c.shortcode.key=='interactive'||c.shortcode.key=='document'||c.shortcode.key=='spreadsheet'){\n            if(c.content&&c.content.url){\n              html +=\"<div class=\\\"embedviewer_\".concat(c.shortcode.key, \" vibeeditor_shortcode_embedviewer \\\"><iframe src=\\\"https://view.officeapps.live.com/op/embed.aspx?src=\").concat(c.content.url, \"\\\" width='100%' frameborder='0'></iframe></div>\");\n            }\n          }else if(c.shortcode.key=='cardstack'){\n            if(c.content&&c.content.images&&Array.isArray(c.content.images)&&c.content.type){\n              html +=\"<div class=\\\"cardstackContainer\\\">\";\n              html +=\"<ul id=\\\"cardstack_\".concat(c.content.type, \"\\\" class=\\\"cardstack cardstack--\").concat(c.content.type, \" cardstack_\").concat(c.content.type, \"\\\">\");\n              c.content.images.map(function (imageUrl){\n                html +=\"<li class=\\\"cardstack__item\\\"><img src=\".concat(imageUrl, \" /></li>\");\n              });\n              html +=\"</ul>\";\n              html +=\"</div>\";\n            }\n          }else if(c.shortcode.key=='vibe_forms'){\n            if(c.content&&c.content.length){\n              html +=\"<div class=\\\"vibeformsContainer\\\">\";\n              c.content.map(function (formData){\n                html +=\"<div class=\\\"formview\\\" formid=\".concat(formData.id, \"></div>\");\n              });\n              html +=\"</div>\";\n            }\n          }\n\n          html +='</div>';\n        }\n      });\n    }\n\n    return html;\n  };\n\n  var processUpdatedContent=function processUpdatedContent(content){\n    var updated_content=[];\n\n    if(Array.isArray(content)&&content.length){\n      content.map(function (c, i){\n        updated_content[i]=_objectSpread({}, c);\n        updated_content[i].content='';\n\n        if(c.type=='rich_text'){\n          if(!Array.isArray(c.content)&&_typeof(c.content)=='object'){\n            var raw=JSON.stringify(Object(draft_js__WEBPACK_IMPORTED_MODULE_1__[\"convertToRaw\"])(c.content.getCurrentContent())); //.replace(/\\\\\"/g, '\"');\n\n            updated_content[i]={\n              type: 'rich_text',\n              content: raw\n            };\n          }\n        }else if(c.type=='media'){\n          updated_content[i]={\n            type: 'media',\n            content: c.content\n          };\n        }else{\n          if(c.type=='columns'){\n            if(Array.isArray(c.content)&&c.content.length){\n              updated_content[i].content=_toConsumableArray(c.content);\n              c.content.map(function (ac, j){\n                if(Array.isArray(ac)&&ac.length){\n                  updated_content[i].content[j]=processUpdatedContent(ac);\n                }\n              });\n            }\n          }else if(c.type=='shortcode'){\n            if(c.shortcode.key=='note'){\n              updated_content[i].content=processUpdatedContent(c.content);\n            }else if(c.shortcode.key=='tab'||c.shortcode.key=='accordion'){\n              if(Array.isArray(c.content)&&c.content.length){\n                updated_content[i].content=_toConsumableArray(c.content);\n                c.content.map(function (ac, j){\n                  updated_content[i].content[j]={\n                    title: ac.title,\n                    content: processUpdatedContent(ac.content)\n                  };\n                });\n              }\n            }else if(c.shortcode.key=='flashcard'){\n              updated_content[i].content={\n                front: _objectSpread(_objectSpread({}, c.content.front), {}, {\n                  content: processUpdatedContent(c.content.front&&c.content.front.content ? c.content.front.content:null)\n                }),\n                back: _objectSpread(_objectSpread({}, c.content.back), {}, {\n                  content: processUpdatedContent(c.content.back&&c.content.back.content ? c.content.back.content:null)\n                })\n              };\n            }else if(c.shortcode.key=='scratchcard'||c.shortcode.key=='imagerevealer'){\n              updated_content[i].content={\n                front: _objectSpread({}, c.content.front),\n                back: _objectSpread({}, c.content.back)\n              };\n            }else if(c.shortcode.key=='hotspots'){\n              if(c.content.image&&c.content.pins&&Array.isArray(c.content.pins)){\n                c.content.pins.map(function (pin, j){\n                  c.content.pins[j]=_objectSpread(_objectSpread({}, pin), {}, {\n                    content: pin.content\n                  });\n                });\n                updated_content[i].content=_objectSpread({}, c.content);\n              }\n            }else if(c.shortcode.key=='memorygame'||c.shortcode.key=='cardstack'){\n              updated_content[i].content=_objectSpread({}, c.content);\n            }else{\n              updated_content[i].content=c.content;\n            }\n          }\n        }\n      });\n    }\n\n    return updated_content;\n  }; //update_content coming from child with updated values [{type:'rich_text', content:{}},{type:'shortcode', content:[],..]\n\n\n  var update=function update(updated_content){\n    //...Clone does not work here, carefull\n    console.log('update');\n    var raw_html=processRaw(_toConsumableArray(updated_content));\n    setRawHtml(raw_html);\n    setEditorContent(updated_content);\n    var nupdated_content=processUpdatedContent(_toConsumableArray(updated_content));\n    setUpdateEditorContent(nupdated_content);\n  };\n\n  useEffect(function (){\n    return function (){\n      clearTimeout(timeoutID);\n    };\n  }, [timeoutID]);\n  Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"useThrottledEffect\"])(function (){\n    if(updateEditorContent.length){\n      var event=new CustomEvent('vibe_editor_content_update_' + props.update, {\n        detail: {\n          'editor_content': updateEditorContent,\n          'raw_html': rawHtml\n        }\n      });\n      document.dispatchEvent(event);\n    }\n  }, 500, [updateEditorContent]);\n\n  var updateEContent=function updateEContent(updated_content, type){\n    if(editorContent!=updated_content){\n      if(type&&type=='editor'){\n        setTimeoutID(setTimeout(function (){\n          console.log('updateEContent');\n          setEditorContent(updated_content);\n          var raw_html=processRaw(_toConsumableArray(updated_content));\n          setRawHtml(raw_html);\n          var nupdated_content=processUpdatedContent(_toConsumableArray(updated_content));\n          setUpdateEditorContent(nupdated_content);\n        }, 500));\n      }else{\n        update(updated_content);\n      }\n    }\n  };\n\n  return wp.element.createElement(\"div\", {\n    className: \"myeditor\"\n  }, wp.element.createElement(_editor__WEBPACK_IMPORTED_MODULE_4__[\"default\"], {\n    content: editorContent,\n    components: props.components,\n    plugins: props.plugins,\n    update: updateEContent\n  }));\n};\n\n __webpack_exports__[\"default\"]=(_editor__WEBPACK_IMPORTED_MODULE_4__[\"default\"]);\ndocument.addEventListener('load_vibe_editor', function (e){\n  var plugins=[];\n\n  if(e.detail.hasOwnProperty('plugins')){\n    plugins=e.detail.plugins;\n  }\n\n  var components=[];\n\n  if(e.detail.hasOwnProperty('components')){\n    components=e.detail.components;\n  }\n\n  var reinit=false;\n\n  if(e.detail.hasOwnProperty('reinit')){\n    reinit=e.detail.reinit;\n  }\n\n  render(wp.element.createElement(VibeEditor, {\n    content: e.detail.content,\n    raw: e.detail.raw,\n    components: components,\n    plugins: plugins,\n    update: e.detail.updater,\n    reinit: reinit\n  }), document.querySelector(e.detail.selector));\n}, false);\n\n//# sourceURL=webpack:///./src/index.js?");
}),
"./src/mediamodal.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _functions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/functions.js\");\n var _bp_src_profile_components_giphy__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"../bp/src/profile/components/giphy.js\");\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\nvar _wp$data=wp.data,\n    dispatch=_wp$data.dispatch,\n    select=_wp$data.select;\n\n\n\nvar MediaModalComponent=function MediaModalComponent(props){\n  var ref=useRef(null);\n\n  var _useState=useState(false),\n      _useState2=_slicedToArray(_useState, 2),\n      isLoading=_useState2[0],\n      setisLoading=_useState2[1];\n\n  var _useState3=useState([]),\n      _useState4=_slicedToArray(_useState3, 2),\n      allMedia=_useState4[0],\n      setAllMedia=_useState4[1];\n\n  var _useState5=useState([]),\n      _useState6=_slicedToArray(_useState5, 2),\n      uploaded_files=_useState6[0],\n      setuploaded_files=_useState6[1];\n\n  var _useState7=useState(false),\n      _useState8=_slicedToArray(_useState7, 2),\n      more=_useState8[0],\n      setMore=_useState8[1];\n\n  var _useState9=useState(false),\n      _useState10=_slicedToArray(_useState9, 2),\n      isPagination=_useState10[0],\n      setIsPagination=_useState10[1];\n\n  var _useState11=useState(0),\n      _useState12=_slicedToArray(_useState11, 2),\n      progress=_useState12[0],\n      setProgress=_useState12[1];\n\n  var _useState13=useState('media'),\n      _useState14=_slicedToArray(_useState13, 2),\n      mediaTab=_useState14[0],\n      setMediaTab=_useState14[1];\n\n  var _useState15=useState(function (){\n    var nargs={\n      \"posts_per_page\": 20,\n      \"paged\": 1,\n      \"search_terms\": \"\",\n      \"orderby\": \"\"\n    };\n\n    if(props.hasOwnProperty('post_mime_type')&&typeof props.post_mime_type!=='undefined'){\n      nargs['post_mime_type']=props.post_mime_type;\n    }\n\n    return nargs;\n  }),\n      _useState16=_slicedToArray(_useState15, 2),\n      args=_useState16[0],\n      setArgs=_useState16[1];\n\n  var _useState17=useState([]),\n      _useState18=_slicedToArray(_useState17, 2),\n      eventsOnce=_useState18[0],\n      setEventsOnce=_useState18[1];\n\n  var _useState19=useState({\n    name: \"\",\n    url: \"\",\n    type: \"file\"\n  }),\n      _useState20=_slicedToArray(_useState19, 2),\n      embedData=_useState20[0],\n      setEmbedData=_useState20[1];\n\n  useEffect(function (){\n    if(document.querySelector('.vibebp_myprofile')){\n      if(!document.querySelector('.vibebp_myprofile').classList.contains('popup_active')){\n        document.querySelector('.vibebp_myprofile').classList.add('popup_active');\n      }\n    }\n\n    return function (){\n      if(document.querySelector('.vibebp_myprofile')){\n        if(document.querySelector('.vibebp_myprofile').classList.contains('popup_active')){\n          document.querySelector('.vibebp_myprofile').classList.remove('popup_active');\n        }\n      }\n    };\n  }, []);\n  Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"useThrottledEffect\"])(function (){\n    setisLoading(true);\n    fetch(\"\".concat(window.vibebp.api.url, \"/user/fetch_media?force\"), {\n      method: 'post',\n      body: JSON.stringify(_objectSpread(_objectSpread({}, args), {}, {\n        token: select('vibebp').getToken()\n      }))\n    }).then(function (res){\n      return res.json();\n    }).then(function (res){\n      setisLoading(false);\n\n      if(res.status){\n        if(isPagination){\n          var medias=_toConsumableArray(allMedia);\n\n          res.data.map(function (media){\n            medias.push(media);\n          });\n          setAllMedia(medias);\n          setIsPagination(false);\n\n          if(medias.length < parseInt(data.total)){\n            setMore(true);\n          }else{\n            setMore(false);\n          }\n        }else{\n          setAllMedia(res.data);\n\n          if(res.data.length < parseInt(res.total)){\n            setMore(true);\n          }else{\n            setMore(false);\n          }\n        }\n      }\n    })[\"catch\"](function (err){\n      setisLoading(false);\n    });\n  }, 500, [args]);\n  useEffect(function (){\n    dispatch('vibebp').setData('mediaTab', mediaTab);\n    document.dispatchEvent(new CustomEvent('vibebp_media_tab', {\n      detail: {\n        tab: mediaTab,\n        props: props,\n        args: args\n      }\n    }));\n\n    if(eventsOnce.indexOf(mediaTab)==-1){\n      document.addEventListener('vibebp_media_tab_submit', function (e){\n        console.log(e);\n        props.share(e.detail.media);\n        props.close(false);\n      }, false); //Run event trigger & listerner once\n\n      setEventsOnce([].concat(_toConsumableArray(eventsOnce), [mediaTab]));\n    }\n  }, [mediaTab]);\n\n  var submit=function submit(media){\n    props.share(media);\n  };\n\n  var upload_media=function upload_media(e){\n    if(e.target.files[0]){\n      var file=e.target.files[0];\n      var size=file.size / 1024 / 1024;\n\n      if(tus.isSupported&&tus.canStoreURLs&&size > 4){\n        var url=\"\".concat(window.vibebp.api.url, \"/user/upload_media_stream?upload\");\n        var uploader=new tus.Upload(e.target.files[0], {\n          endpoint: url,\n          chunkSize: 2 * 1024 * 1024,\n          retryDelays: [0, 3000],\n          metadata: {\n            token: select('vibebp').getToken(),\n            filename: e.target.files[0].name,\n            filetype: e.target.files[0].type\n          },\n          onError: function onError(error){\n            if(error.hasOwnProperty('message')){\n              dispatch('vibebp').addNotification({\n                text: error.message\n              });\n            }\n          },\n          onProgress: function onProgress(bytesUploaded, bytesTotal){\n            var percentage=(bytesUploaded / bytesTotal * 100).toFixed(2);\n            setProgress(percentage);\n\n            if(percentage==100){\n              setTimeout(function (){\n                setArgs({\n                  \"posts_per_page\": 20,\n                  \"paged\": 1,\n                  \"search_terms\": \"\",\n                  \"orderby\": \"\"\n                });//Force reload media\n\n                setProgress(0);\n                setMediaTab('media');\n              }, 500);\n            }\n          },\n          onSuccess: function onSuccess(){\n            localStorage.removeItem(uploader._urlStorageKey);\n            uploader.url=uploader.url.replace('?upload', '');\n            fetch(\"\".concat(uploader.url, \"/complete_stream?nocache\"), {\n              method: 'post',\n              body: JSON.stringify({\n                token: select('vibebp').getToken()\n              })\n            }).then(function (res){\n              return res.json();\n            }).then(function (res){\n              if(res.status){\n                setArgs({\n                  \"posts_per_page\": 20,\n                  \"paged\": 1,\n                  \"search_terms\": \"\",\n                  \"orderby\": \"\"\n                });//Force reload media\n\n                setProgress(0);\n                setMediaTab('media');\n              }\n\n              if(res.hasOwnProperty('message')){\n                dispatch('vibebp').addNotification({\n                  text: res.message\n                });\n              }\n            });\n          }\n        });\n        uploader.findPreviousUploads().then(function (previousUploads){\n          if(previousUploads.length > 0){\n            uploader.resumeFromPreviousUpload(previousUploads[0]);\n          }\n\n          uploader.start();\n        });\n        tus.Upload.terminate(url).then(function (){// Upload has been terminated\n        })[\"catch\"](function (err){// An error occurred during the termination\n        });\n      }else{\n        var formdata=new FormData();\n        formdata.append(\"file\", e.target.files[0]);\n        formdata.append(\"body\", JSON.stringify({\n          token: select('vibebp').getToken()\n        }));\n        fetch(\"\".concat(window.vibebp.api.url, \"/user/upload_media?force\"), {\n          method: 'post',\n          body: formdata\n        }).then(function (res){\n          return res.json();\n        }).then(function (res){\n          if(res.status){\n            var medias=_toConsumableArray(allMedia);\n\n            medias.unshift(res.data);\n            setAllMedia(medias);\n            setMediaTab('media');\n          }else{\n            if(res.hasOwnPropoerty('message')){\n              dispatch('vibebp').addNotification({\n                text: res.message\n              });\n            }\n          }\n        });\n      }\n    }\n  };\n\n  useEffect(function (){\n    if(ref){\n      new Plyr(ref);\n    }\n\n    return function (){};\n  }, [ref]);\n\n  var content_to_html=function content_to_html(content){\n    switch (content.type){\n      case 'image':\n        return wp.element.createElement(\"img\", {\n          src: content.url,\n          className: \"content_to_html_image\"\n        });\n        break;\n\n      case 'video':\n        return wp.element.createElement(\"video\", {\n          className: \"video_plyr\",\n          controls: true,\n          ref: function ref(_ref){\n            new Plyr(_ref);\n          }\n        }, wp.element.createElement(\"source\", {\n          src: content.url,\n          type: \"video/mp4\"\n        }));\n        break;\n\n      case 'audio':\n        return wp.element.createElement(\"audio\", {\n          className: \"audio_plyr\",\n          controls: true,\n          ref: function ref(_ref2){\n            new Plyr(_ref2);\n          }\n        }, wp.element.createElement(\"source\", {\n          src: content.url,\n          type: \"audio/mp3\"\n        }));\n        break;\n\n      case 'document':\n      case 'spreadsheet':\n      case 'interactive':\n        return wp.element.createElement(\"span\", {\n          \"class\": \"modal_document\"\n        }, content.name);\n        break;\n\n      default:\n return wp.element.createElement(\"span\", {\n          \"class\": \"modal_document\"\n        }, content.name);\n        break;\n\n         break;\n    }\n  };\n\n  var deleteMedia=function deleteMedia(media){\n    var nallMedia=_toConsumableArray(allMedia);\n\n    nallMedia.splice(nallMedia.findIndex(function (e){\n      return e.id==media.id;\n    }), 1);\n    setAllMedia(nallMedia);\n    fetch(\"\".concat(window.vibebp.api.url, \"/user/delete_media\"), {\n      method: 'post',\n      body: JSON.stringify({\n        token: select('vibebp').getToken(),\n        'media': media\n      })\n    }).then(function (res){\n      return res.json();\n    }).then(function (res){\n      if(res.hasOwnProperty('message')){\n        dispatch('vibebp').addNotification({\n          text: res.message\n        });\n      }\n    });\n  };\n\n  return wp.element.createElement(\"div\", {\n    className: \"vibe_editor_modal\"\n  }, wp.element.createElement(\"span\", {\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  }), wp.element.createElement(\"div\", {\n    className: \"ve_modal-content\"\n  }, wp.element.createElement(\"div\", {\n    className: \"ve_modal-header\"\n  }, wp.element.createElement(\"div\", null, window.vibebp.settings.media_tabs ? Object.keys(window.vibebp.settings.media_tabs).map(function (media_tab){\n    if(media_tab=='upload'&&window.vibebp.settings.hasOwnProperty('upload_capability')&&window.vibebp.settings.upload_capability){\n      var user=select('vibebp').getUser();\n\n      if(typeof user!=='undefined'&&user.hasOwnProperty('caps')&&typeof user.caps!=='undefined'){\n        var allow=0;\n\n        if(Array.isArray(user.caps)){\n          if(user.caps.findIndex(function (cap, i){\n            return cap==window.vibebp.settings.upload_capability;\n          }) > -1){\n            allow=1;\n          }\n        }else{\n          if(_typeof(user.caps)==='object'){\n            Object.keys(user.caps).map(function (k, i){\n              if(k===window.vibebp.settings.upload_capability&&user.caps[k]){\n                allow=1;\n              }\n            });\n          }\n        }\n\n        if(props.hasOwnProperty('allow_upload')&&props.allow_upload){\n          allow=1;\n        }\n\n        if(allow){\n          return wp.element.createElement(\"a\", {\n            className: mediaTab==media_tab ? 'active':'',\n            onClick: function onClick(){\n              setMediaTab(media_tab);\n            }\n          }, window.vibebp.settings.media_tabs[media_tab]);\n        }\n      }\n    }else{\n      return wp.element.createElement(\"a\", {\n        className: mediaTab==media_tab ? 'active':'',\n        onClick: function onClick(){\n          setMediaTab(media_tab);\n        }\n      }, window.vibebp.settings.media_tabs[media_tab]);\n    }\n  }):''), wp.element.createElement(\"span\", {\n    className: \"vicon vicon-close\",\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"ve_modal-body\"\n  }, mediaTab=='media' ? wp.element.createElement(Fragment, null, wp.element.createElement(\"div\", {\n    className: \"vibebp_form\"\n  }, wp.element.createElement(\"div\", {\n    className: \"vibebp_form_field\"\n  }, wp.element.createElement(\"input\", {\n    type: \"text\",\n    placeholder: window.vibebp.translations.search_text,\n    onBlur: function onBlur(e){\n      return setArgs(_objectSpread(_objectSpread({}, args), {}, {\n        search_terms: e.target.value\n      }));\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"vibebp_form_field\"\n  }, wp.element.createElement(\"select\", {\n    onChange: function onChange(e){\n      setArgs(_objectSpread(_objectSpread({}, args), {}, {\n        order: e.target.value\n      }));\n    }\n  }, Object.keys(window.vibeEditor.media_order).map(function (order){\n    return wp.element.createElement(\"option\", {\n      value: order\n    }, window.vibeEditor.media_order[order]);\n  })))), allMedia&&allMedia.length ? wp.element.createElement(\"div\", {\n    className: \"allMedia\"\n  }, allMedia.map(function (media, i){\n    return wp.element.createElement(\"div\", {\n      className: \"single_media\"\n    }, wp.element.createElement(\"span\", {\n      onClick: function onClick(e){\n        submit(media);\n\n        if(!props.hasOwnProperty('autoclose')){\n          props.close(false);\n        }\n      }\n    }, content_to_html(media), media.hasOwnProperty('drive')&&media.drive ? wp.element.createElement(\"span\", {\n      className: \"drive_label\",\n      style: {}\n    }, wp.element.createElement(\"span\", {\n      className: \"vicon vicon-harddrive\"\n    })):''), wp.element.createElement(\"span\", {\n      className: \"vicon vicon-close\",\n      onClick: function onClick(){\n        return deleteMedia(media);\n      }\n    }));\n  })):wp.element.createElement(\"div\", {\n    className: \"vbp_message\"\n  }, window.vibebp.translations.no_media), isLoading ? wp.element.createElement(\"div\", {\n    className: \"loading-roller\"\n  }, wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null)):more ? wp.element.createElement(\"a\", {\n    className: \"link\",\n    onClick: function onClick(){\n      setArgs(_objectSpread(_objectSpread({}, args), {}, {\n        paged: args.paged + 1\n      }));\n      setIsPagination(true);\n    }\n  }, window.vibebp.translations.more):''):mediaTab==='upload' ? wp.element.createElement(Fragment, null, wp.element.createElement(\"div\", {\n    className: \"upload_media\"\n  }, wp.element.createElement(\"label\", {\n    \"for\": \"vibe_editor_upload_media\"\n  }, window.vibebp.translations.upload_media, progress ? wp.element.createElement(\"div\", {\n    className: \"vibebp_progress_wrapper\"\n  }, wp.element.createElement(\"span\", {\n    className: \"progress_wrapper\"\n  }, wp.element.createElement(\"span\", {\n    className: \"progress_bar\",\n    style: {\n      width: progress + '%'\n    }\n  })), wp.element.createElement(\"span\", null, progress, \"%\")):wp.element.createElement(\"span\", {\n    className: \"vicon vicon-plus\"\n  })), wp.element.createElement(\"input\", {\n    type: \"file\",\n    id: \"vibe_editor_upload_media\",\n    onChange: function onChange(e){\n      return upload_media(e);\n    }\n  }), uploaded_files&&uploaded_files.length ? wp.element.createElement(\"div\", {\n    className: \"uploaded\"\n  }, wp.element.createElement(\"strong\", null, window.vibebp.translations.uploaded_media), wp.element.createElement(\"div\", {\n    className: \"uploaded_files\"\n  }, uploaded_files.map(function (media, i){\n    return wp.element.createElement(\"div\", {\n      className: \"single_media\",\n      onClick: function onClick(e){\n        submit(media);\n      }\n    }, content_to_html(media));\n  }))):'')):mediaTab==='embed' ? wp.element.createElement(Fragment, null, wp.element.createElement(\"div\", {\n    className: \"embed_media\"\n  }, wp.element.createElement(\"label\", {\n    \"for\": \"vibe_editor_embed_name\"\n  }, \" \", window.vibebp.translations.enter_emabed_name, \" \"), wp.element.createElement(\"input\", {\n    type: \"text\",\n    id: \"vibe_editor_embed_name\",\n    onChange: function onChange(e){\n      return setEmbedData(_objectSpread(_objectSpread({}, embedData), {}, {\n        name: e.target.value\n      }));\n    }\n  }), wp.element.createElement(\"label\", {\n    \"for\": \"vibe_editor_embed_url\"\n  }, \" \", window.vibebp.translations.enter_embed_url, \" \"), wp.element.createElement(\"input\", {\n    type: \"text\",\n    id: \"vibe_editor_embed_url\",\n    onChange: function onChange(e){\n      return setEmbedData(_objectSpread(_objectSpread({}, embedData), {}, {\n        url: e.target.value\n      }));\n    }\n  }), wp.element.createElement(\"select\", {\n    onChange: function onChange(e){\n      return setEmbedData(_objectSpread(_objectSpread({}, embedData), {}, {\n        type: e.target.value\n      }));\n    },\n    value: embedData.type\n  }, Object.keys(window.vibeEditor.embed_types).map(function (type){\n    if(props.hasOwnProperty('post_mime_type')&&typeof props.post_mime_type!=='undefined'){\n      if(props.post_mime_type.split(',').indexOf(type) < 0){\n        return;\n      }\n    }\n\n    return wp.element.createElement(\"option\", {\n      value: type\n    }, window.vibeEditor.embed_types[type]);\n  })), !(Object.values(embedData).findIndex(function (em){\n    return em==''||em==null;\n  }) > -1) ? wp.element.createElement(\"button\", {\n    className: \"button is-primary\",\n    onClick: function onClick(){\n      submit(embedData);\n      props.close(false);\n    }\n  }, window.vibebp.translations.embed):'')):mediaTab=='giphy' ? wp.element.createElement(_bp_src_profile_components_giphy__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n    update: function update(fx, img){\n      submit({\n        type: 'image',\n        url: img.images.downsized.url,\n        name: img.title\n      });\n      props.close(false);\n    }\n  }):wp.element.createElement(\"div\", {\n    className: mediaTab\n  }))));\n};\n\n __webpack_exports__[\"default\"]=(MediaModalComponent);\n\n//# sourceURL=webpack:///./src/mediamodal.js?");
}),
"./src/plugins/anchor/components/AddLinkForm.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prop_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prop-types/index.js\");\n var prop_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n var clsx__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2__);\n var draft_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_3__);\n var _utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/anchor/utils/URLUtils.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\n// import React, {\n//   useState,\n//   useRef,\n//   useEffect,\n//   ReactElement,\n//   ChangeEvent,\n//   KeyboardEvent,\n//   ComponentType,\n// } from 'react';\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\n\n\n\n\n\n\nvar AddLinkForm=function AddLinkForm(props){\n  var _useState=useState({\n    target: '_self',\n    url: ''\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      value=_useState2[0],\n      setValue=_useState2[1];\n\n  var _useState3=useState(false),\n      _useState4=_slicedToArray(_useState3, 2),\n      isValid=_useState4[0],\n      setIsValid=_useState4[1];\n\n  var input=useRef(null);\n  useEffect(function (){\n    if(input.current){\n      input.current.focus();\n    }\n  }, []);\n\n  var isUrl=function isUrl(urlValue){\n    if(props.validateUrl){\n      return props.validateUrl(urlValue);\n    }\n\n    return _utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isUrl(urlValue);\n  };\n\n  var onChange=function onChange(event){\n    var newValue=event.target.value;\n    setIsValid(isUrl(_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].normalizeUrl(newValue)));\n    setValue(_objectSpread(_objectSpread({}, value), {}, {\n      url: newValue\n    }));\n  };\n\n  var onTargetChange=function onTargetChange(event){\n    setValue(_objectSpread(_objectSpread({}, value), {}, {\n      target: event.target.value\n    }));\n  };\n\n  var onClose=function onClose(){\n    return props.onOverrideContent(undefined);\n  };\n\n  var submit=function submit(){\n    console.log('Submit');\n    var getEditorState=props.getEditorState,\n        setEditorState=props.setEditorState;\n    var url=value.url;\n\n    if(!_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].isMail(_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].normaliseMail(url))){\n      url=_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].normalizeUrl(url);\n\n      if(!isUrl(url)){\n        setIsValid(false);\n        return;\n      }\n    }else{\n      url=_utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__[\"default\"].normaliseMail(url);\n    }\n\n    setEditorState(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2___default.a.createLinkAtSelection(getEditorState(), _objectSpread(_objectSpread({}, value), {}, {\n      url: url\n    })));\n    input.current.blur();\n    onClose();\n  };\n\n  var onKeyDown=function onKeyDown(event){\n    if(event.key==='Enter'){\n      event.preventDefault();\n      submit();\n    }else if(event.key==='Escape'){\n      event.preventDefault();\n      onClose();\n    }\n  };\n\n  var theme=props.theme,\n      placeholder=props.placeholder;\n  var className=isValid ? 'success':'error';\n  return wp.element.createElement(\"div\", {\n    className: \"veditor_link_form\"\n  }, wp.element.createElement(\"input\", {\n    className: className,\n    onChange: onChange,\n    onKeyDown: onKeyDown,\n    placeholder: placeholder,\n    ref: input,\n    type: \"text\",\n    value: value.url\n  }), wp.element.createElement(\"select\", {\n    onChange: onTargetChange,\n    value: value.target\n  }, wp.element.createElement(\"option\", {\n    value: \"_self\"\n  }, window.vibeEditor.translations.same_window), wp.element.createElement(\"option\", {\n    value: \"_blank\"\n  }, window.vibeEditor.translations.new_window)), wp.element.createElement(\"div\", null, wp.element.createElement(\"a\", {\n    className: \"button\",\n    onClick: submit\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-check\"\n  })), wp.element.createElement(\"a\", {\n    className: \"link\",\n    onClick: onClose\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-close\"\n  }))));\n};\n\nAddLinkForm.propTypes={\n  getEditorState: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired,\n  setEditorState: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired,\n  onOverrideContent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired,\n  theme: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object.isRequired,\n  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,\n  validateUrl: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func\n};\nAddLinkForm.defaultProps={\n  placeholder: 'Enter a URL and press enter'\n};\n __webpack_exports__[\"default\"]=(AddLinkForm);\n\n//# sourceURL=webpack:///./src/plugins/anchor/components/AddLinkForm.js?");
}),
"./src/plugins/anchor/components/DefaultLinkButton.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"DefaultLinkButtonProps\", function(){ return DefaultLinkButtonProps; });\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return DefaultLinkButton; });\n var clsx__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n//import React, { ReactElement, MouseEvent } from 'react';\n\nvar DefaultLinkButtonProps={\n  hasLinkSelected: false,\n  onRemoveLinkAtSelection: false,\n  onAddLinkClick: false,\n  theme: false\n};\nfunction DefaultLinkButton(_ref){\n  var hasLinkSelected=_ref.hasLinkSelected,\n      onRemoveLinkAtSelection=_ref.onRemoveLinkAtSelection,\n      onAddLinkClick=_ref.onAddLinkClick,\n      theme=_ref.theme;\n  var className=Object(clsx__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(theme.button, hasLinkSelected&&theme.active);\n  return wp.element.createElement(\"div\", {\n    className: theme.buttonWrapper,\n    onMouseDown: function onMouseDown(event){\n      event.preventDefault();\n    }\n  }, wp.element.createElement(\"button\", {\n    className: className,\n    onClick: hasLinkSelected ? onRemoveLinkAtSelection:onAddLinkClick,\n    type: \"button\"\n  }, wp.element.createElement(\"svg\", {\n    height: \"24\",\n    viewBox: \"0 0 24 24\",\n    width: \"24\",\n    xmlns: \"http://www.w3.org/2000/svg\"\n  }, wp.element.createElement(\"path\", {\n    d: \"M0 0h24v24H0z\",\n    fill: \"none\"\n  }), wp.element.createElement(\"path\", {\n    d: \"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z\"\n  }))));\n}\n\n//# sourceURL=webpack:///./src/plugins/anchor/components/DefaultLinkButton.js?");
}),
"./src/plugins/anchor/components/Link.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prop_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prop-types/index.js\");\n var prop_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_1__);\n//import React, { ReactElement, ReactNode } from 'react';\n\n\nvar propTypes={\n  className: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,\n  children: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.node.isRequired,\n  entityKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,\n  getEditorState: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired\n};\n\nvar Link=function Link(_ref){\n  var children=_ref.children,\n      className=_ref.className,\n      entityKey=_ref.entityKey,\n      getEditorState=_ref.getEditorState,\n      target=_ref.target;\n  var entity=getEditorState().getCurrentContent().getEntity(entityKey);\n  var entityData=entity ? entity.getData():undefined;\n  var href=entityData&&entityData.url||undefined;\n  var ntarget=entityData&&entityData.target||'_self';\n  return wp.element.createElement(\"a\", {\n    className: className,\n    title: href,\n    href: href,\n    target: ntarget,\n    rel: \"noopener noreferrer\"\n  }, children);\n};\n\nLink.propTypes=propTypes;\n __webpack_exports__[\"default\"]=(Link);\n\n//# sourceURL=webpack:///./src/plugins/anchor/components/Link.js?");
}),
"./src/plugins/anchor/components/LinkButton.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prop_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prop-types/index.js\");\n var prop_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__);\n var _AddLinkForm__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/anchor/components/AddLinkForm.js\");\n var ___WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/anchor/index.js\");\n var _DefaultLinkButton__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/anchor/components/DefaultLinkButton.js\");\nfunction _extends(){ _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\n//import React, { ComponentType, MouseEvent, ReactElement } from 'react';\n\n\n\n\n\n\nvar LinkButton=function LinkButton(_ref){\n  var ownTheme=_ref.ownTheme,\n      placeholder=_ref.placeholder,\n      onOverrideContent=_ref.onOverrideContent,\n      validateUrl=_ref.validateUrl,\n      theme=_ref.theme,\n      onRemoveLinkAtSelection=_ref.onRemoveLinkAtSelection,\n      store=_ref.store,\n      InnerLinkButton=_ref.linkButton;\n\n  var onAddLinkClick=function onAddLinkClick(event){\n    event.preventDefault();\n    event.stopPropagation();\n\n    var content=function content(contentProps){\n      return wp.element.createElement(_AddLinkForm__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _extends({}, contentProps, {\n        placeholder: placeholder,\n        theme: ownTheme,\n        validateUrl: validateUrl\n      }));\n    };\n\n    onOverrideContent(content);\n  };\n\n  var editorState=store.getEditorState();\n  var hasLinkSelected=editorState ? draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default.a.hasEntity(editorState, 'LINK'):false;\n  return wp.element.createElement(InnerLinkButton, {\n    onRemoveLinkAtSelection: onRemoveLinkAtSelection,\n    hasLinkSelected: hasLinkSelected,\n    onAddLinkClick: onAddLinkClick,\n    theme: theme\n  });\n};\n\nLinkButton.propTypes={\n  placeholder: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,\n  store: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object.isRequired,\n  ownTheme: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object.isRequired,\n  onRemoveLinkAtSelection: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired,\n  validateUrl: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func\n};\n __webpack_exports__[\"default\"]=(LinkButton);\n\n//# sourceURL=webpack:///./src/plugins/anchor/components/LinkButton.js?");
}),
"./src/plugins/anchor/index.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"AnchorPluginConfig\", function(){ return AnchorPluginConfig; });\n __webpack_require__.d(__webpack_exports__, \"AnchorPluginStore\", function(){ return AnchorPluginStore; });\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/index.js\");\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__);\n var draft_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_2__);\n var _components_Link__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/anchor/components/Link.js\");\n var _components_LinkButton__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/anchor/components/LinkButton.js\");\n var _linkStrategy__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__( \"./src/plugins/anchor/linkStrategy.js\");\n var _components_DefaultLinkButton__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__( \"./src/plugins/anchor/components/DefaultLinkButton.js\");\n __webpack_require__.d(__webpack_exports__, \"DefaultLinkButtonProps\", function(){ return _components_DefaultLinkButton__WEBPACK_IMPORTED_MODULE_6__[\"DefaultLinkButtonProps\"]; });\n\nfunction _extends(){ _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\n// import React, {\n//   AnchorHTMLAttributes,\n//   ComponentType,\n//   ReactElement,\n// } from 'react';\n\n\n\n\n\n\n\n\nvar AnchorPluginConfig={\n  theme: false,\n  placeholder: '',\n  Link: '',\n  linkTarget: '_self',\n  validateUrl: function validateUrl(url){},\n  LinkButton: wp.element.createElement(_components_DefaultLinkButton__WEBPACK_IMPORTED_MODULE_6__[\"DefaultLinkButtonProps\"], null)\n};\nvar AnchorPluginStore={\n  getEditorState: function getEditorState(){},\n  setEditorState: function setEditorState(state){}\n};\n\nvar AnchorPlugin=function AnchorPlugin(config){\n  var theme=config.theme,\n      placeholder=config.placeholder,\n      Link=config.Link,\n      linkTarget=config.linkTarget,\n      validateUrl=config.validateUrl,\n      linkButton=config.LinkButton;\n  var store=AnchorPluginStore={\n    getEditorState: undefined,\n    setEditorState: undefined\n  };\n\n  var DecoratedDefaultLink=function DecoratedDefaultLink(props){\n    return wp.element.createElement(_components_Link__WEBPACK_IMPORTED_MODULE_3__[\"default\"], _extends({}, props, {\n      className: \"valid\",\n      target: linkTarget\n    }));\n  };\n\n  var DecoratedLinkButton=function DecoratedLinkButton(props){\n    return wp.element.createElement(_components_LinkButton__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _extends({}, props, {\n      ownTheme: theme,\n      store: store,\n      placeholder: placeholder,\n      onRemoveLinkAtSelection: function onRemoveLinkAtSelection(){\n        return store.setEditorState(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default.a.removeLinkAtSelection(store.getEditorState()));\n      },\n      validateUrl: validateUrl,\n      linkButton: linkButton||_components_DefaultLinkButton__WEBPACK_IMPORTED_MODULE_6__[\"default\"]\n    }));\n  };\n\n  return {\n    initialize: function initialize(_ref){\n      var getEditorState=_ref.getEditorState,\n          setEditorState=_ref.setEditorState;\n      store.getEditorState=getEditorState;\n      store.setEditorState=setEditorState;\n    },\n    decorators: [{\n      strategy: _linkStrategy__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n      component: Link||DecoratedDefaultLink\n    }],\n    LinkButton: DecoratedLinkButton\n  };\n};\n\n __webpack_exports__[\"default\"]=(AnchorPlugin);\n\n//# sourceURL=webpack:///./src/plugins/anchor/index.js?");
}),
"./src/plugins/anchor/linkStrategy.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"matchesEntityType\", function(){ return matchesEntityType; });\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return strategy; });\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n\nvar matchesEntityType=function matchesEntityType(type){\n  return type==='LINK';\n};\nfunction strategy(contentBlock){\n  var callback=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:function (start, end){};\n  var contentState=arguments.length > 2 ? arguments[2]:undefined;\n  if(!contentState) return;\n  contentBlock.findEntityRanges(function (character){\n    var entityKey=character.getEntity();\n    return entityKey!==null&&matchesEntityType(contentState.getEntity(entityKey).getType());\n  }, callback);\n}\n\n//# sourceURL=webpack:///./src/plugins/anchor/linkStrategy.js?");
}),
"./src/plugins/anchor/utils/URLUtils.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prepend_http__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prepend-http/index.js\");\n var prepend_http__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prepend_http__WEBPACK_IMPORTED_MODULE_0__);\n var _urlRegex__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/anchor/utils/urlRegex.js\");\n var _mailRegex__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/anchor/utils/mailRegex.js\");\n\n\n\n __webpack_exports__[\"default\"]=({\n  isUrl: function isUrl(text){\n    return Object(_urlRegex__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().test(text);\n  },\n  isMail: function isMail(text){\n    return Object(_mailRegex__WEBPACK_IMPORTED_MODULE_2__[\"default\"])().test(text);\n  },\n  normaliseMail: function normaliseMail(email){\n    if(email.toLowerCase().startsWith('mailto:')){\n      return email;\n    }\n\n    return \"mailto:\".concat(email);\n  },\n  normalizeUrl: function normalizeUrl(url){\n    return prepend_http__WEBPACK_IMPORTED_MODULE_0___default()(url);\n  }\n});\n\n//# sourceURL=webpack:///./src/plugins/anchor/utils/URLUtils.js?");
}),
"./src/plugins/anchor/utils/mailRegex.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_exports__[\"default\"]=(function (){\n  return /^((mailto:[^<>()/[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@(([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{2,})$/i;\n});\n\n//# sourceURL=webpack:///./src/plugins/anchor/utils/mailRegex.js?");
}),
"./src/plugins/anchor/utils/urlRegex.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return urlRegex; });\n var tlds__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/tlds/index.json\");\nvar tlds__WEBPACK_IMPORTED_MODULE_0___namespace=__webpack_require__.t( \"./node_modules/tlds/index.json\", 1);\n\nvar v4='(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}';\nvar v6seg='[0-9a-fA-F]{1,4}';\nvar v6=\"\\n(\\n(?:\".concat(v6seg, \":){7}(?:\").concat(v6seg, \"|:)|                                // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\\n(?:\").concat(v6seg, \":){6}(?:\").concat(v4, \"|:\").concat(v6seg, \"|:)|                         // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\\n(?:\").concat(v6seg, \":){5}(?::\").concat(v4, \"|(:\").concat(v6seg, \"){1,2}|:)|                 // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\\n(?:\").concat(v6seg, \":){4}(?:(:\").concat(v6seg, \"){0,1}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\\n(?:\").concat(v6seg, \":){3}(?:(:\").concat(v6seg, \"){0,2}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\\n(?:\").concat(v6seg, \":){2}(?:(:\").concat(v6seg, \"){0,3}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\\n(?:\").concat(v6seg, \":){1}(?:(:\").concat(v6seg, \"){0,4}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\\n(?::((?::\").concat(v6seg, \"){0,5}:\").concat(v4, \"|(?::\").concat(v6seg, \"){1,7}|:))           // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\\n)(%[0-9a-zA-Z]{1,})?                                           // %eth0            %1\\n\").replace(/\\s*\\/\\/.*$/gm, '').replace(/\\n/g, '').trim();\n\nvar ipRegex=function ipRegex(opts){\n  return opts&&opts.exact ? new RegExp(\"(?:^\".concat(v4, \"$)|(?:^\").concat(v6, \"$)\")):new RegExp(\"(?:\".concat(v4, \")|(?:\").concat(v6, \")\"), 'g');\n};\n\nipRegex.v4=function (opts){\n  return opts&&opts.exact ? new RegExp(\"^\".concat(v4, \"$\")):new RegExp(v4, 'g');\n};\n\nipRegex.v6=function (opts){\n  return opts&&opts.exact ? new RegExp(\"^\".concat(v6, \"$\")):new RegExp(v6, 'g');\n};\n\nfunction urlRegex(_opts){\n  var opts=Object.assign({\n    strict: true\n  }, _opts);\n  var protocol=\"(?:(?:[a-z]+:)?//)\".concat(opts.strict ? '':'?');\n  var auth='(?:\\\\S+(?::\\\\S*)?@)?';\n  var ip=ipRegex.v4().source;\n  var host=\"(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)\";\n  var domain=\"(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*\";\n  var tld=\"(?:\\\\.\".concat(opts.strict ? \"(?:[a-z\\\\u00a1-\\\\uffff]{2,})\":\"(?:\".concat(tlds__WEBPACK_IMPORTED_MODULE_0__.sort(function (a, b){\n    return b.length - a.length;\n  }).join('|'), \")\"), \")\\\\.?\");\n  var port='(?::\\\\d{2,5})?';\n  var path='(?:[/?#][^\\\\s\"]*)?';\n  var regex=\"(?:\".concat(protocol, \"|www\\\\.)\").concat(auth, \"(?:localhost|\").concat(ip, \"|\").concat(host).concat(domain).concat(tld, \")\").concat(port).concat(path);\n  return opts.exact ? new RegExp(\"(?:^\".concat(regex, \"$)\"), 'i'):new RegExp(regex, 'ig');\n}\n\n//# sourceURL=webpack:///./src/plugins/anchor/utils/urlRegex.js?");
}),
"./src/plugins/divider/components/DefaultDivider.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/react/index.js\");\n var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n //import dividerStyles from '../dividerStyles.css';\n\nvar Divider=function Divider(){\n  return wp.element.createElement(\"hr\", null);\n};\n\n __webpack_exports__[\"default\"]=(Divider);\n\n//# sourceURL=webpack:///./src/plugins/divider/components/DefaultDivider.js?");
}),
"./src/plugins/divider/components/DividerButton.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/react/index.js\");\n var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n var prop_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/prop-types/index.js\");\n var prop_types__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);\n var union_class_names__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/union-class-names/lib/index.js\");\n var union_class_names__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(union_class_names__WEBPACK_IMPORTED_MODULE_2__);\n var _utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/divider/utils.js\");\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }}\n\nfunction _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true }});if(superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p){ _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o, p){ o.__proto__=p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived){ var hasNativeReflectConstruct=_isNativeReflectConstruct(); return function _createSuperInternal(){ var Super=_getPrototypeOf(Derived), result; if(hasNativeReflectConstruct){ var NewTarget=_getPrototypeOf(this).constructor; result=Reflect.construct(Super, arguments, NewTarget); }else{ result=Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); };}\n\nfunction _possibleConstructorReturn(self, call){ if(call&&(_typeof(call)===\"object\"||typeof call===\"function\")){ return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct(){ if(typeof Reflect===\"undefined\"||!Reflect.construct) return false; if(Reflect.construct.sham) return false; if(typeof Proxy===\"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function (){})); return true; } catch (e){ return false; }}\n\nfunction _getPrototypeOf(o){ _getPrototypeOf=Object.setPrototypeOf ? Object.getPrototypeOf:function _getPrototypeOf(o){ return o.__proto__||Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\nvar DividerButton=function (_Component){\n  _inherits(DividerButton, _Component);\n\n  var _super=_createSuper(DividerButton);\n\n  function DividerButton(props){\n    var _this;\n\n    _classCallCheck(this, DividerButton);\n\n    _this=_super.call(this, props);\n    _this.handleClick=_this.handleClick.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n\n  _createClass(DividerButton, [{\n    key: \"handleClick\",\n    value: function handleClick(event){\n      event.preventDefault();\n      var editorState=this.props.getEditorState();\n      var newEditorState=this.props.addDivider(editorState);\n      this.props.setEditorState(newEditorState);\n    }\n  }, {\n    key: \"preventBubblingUp\",\n    value: function preventBubblingUp(event){\n      event.preventDefault();\n    }\n  }, {\n    key: \"blockTypeIsActive\",\n    value: function blockTypeIsActive(){\n      var editorState=this.props.getEditorState();\n      var type=editorState.getCurrentContent().getBlockForKey(editorState.getSelection().getStartKey()).getType();\n      return type===this.props.blockType;\n    }\n  }, {\n    key: \"render\",\n    value: function render(){\n      var theme=this.props.theme;\n      var className=this.blockTypeIsActive() ? union_class_names__WEBPACK_IMPORTED_MODULE_2___default()(theme.button, theme.active):theme.button;\n      return wp.element.createElement(\"div\", {\n        className: theme.buttonWrapper,\n        onMouseDown: this.preventBubblingUp\n      }, wp.element.createElement(\"button\", {\n        className: className,\n        onClick: this.handleClick,\n        type: \"button\"\n      }, wp.element.createElement(\"svg\", {\n        height: \"24\",\n        viewBox: \"0 0 24 24\",\n        width: \"24\",\n        xmlns: \"http://www.w3.org/2000/svg\"\n      }, wp.element.createElement(\"path\", {\n        d: \"M0 0h24v24H0z\",\n        fill: \"none\"\n      }), wp.element.createElement(\"path\", {\n        d: \"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"\n      }))));\n    }\n  }]);\n\n  return DividerButton;\n}(react__WEBPACK_IMPORTED_MODULE_0__[\"Component\"]);\n\nDividerButton.propTypes={\n  theme: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object,\n  getEditorState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,\n  setEditorState: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,\n  addDivider: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired\n};\nDividerButton.defaultProps={\n  theme: {}\n};\n __webpack_exports__[\"default\"]=(DividerButton);\n\n//# sourceURL=webpack:///./src/plugins/divider/components/DividerButton.js?");
}),
"./src/plugins/divider/index.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/react/index.js\");\n var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n var _components_DefaultDivider__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/divider/components/DefaultDivider.js\");\n var _components_DividerButton__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/divider/components/DividerButton.js\");\n var _modifiers_addDivider__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/divider/modifiers/addDivider.js\");\nfunction _extends(){ _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\n\n\n\n\nconsole.log('loaded divider');\n\nvar createDividerPlugin=function createDividerPlugin(){\n  var _ref=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{},\n      _ref$blockType=_ref.blockType,\n      blockType=_ref$blockType===void 0 ? 'divider':_ref$blockType,\n      _ref$component=_ref.component,\n      component=_ref$component===void 0 ? _components_DefaultDivider__WEBPACK_IMPORTED_MODULE_1__[\"default\"]:_ref$component;\n\n  return {\n    blockRendererFn: function blockRendererFn(block){\n      if(block.getType()===blockType){\n        return {\n          component: component,\n          editable: false\n        };\n      }\n    },\n    DividerButton: function DividerButton(props){\n      return wp.element.createElement(_components_DividerButton__WEBPACK_IMPORTED_MODULE_2__[\"default\"], _extends({}, props, {\n        blockType: blockType,\n        addDivider: Object(_modifiers_addDivider__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(blockType)\n      }));\n    },\n    addDivider: Object(_modifiers_addDivider__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(blockType)\n  };\n};\n\n __webpack_exports__[\"default\"]=(createDividerPlugin);\n\n//# sourceURL=webpack:///./src/plugins/divider/index.js?");
}),
"./src/plugins/divider/modifiers/addDivider.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/plugins/divider/utils.js\");\n\n __webpack_exports__[\"default\"]=(function (blockType){\n  return function (editorState){\n    return Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"insertCustomBlock\"])(editorState, blockType);\n  };\n});\n\n//# sourceURL=webpack:///./src/plugins/divider/modifiers/addDivider.js?");
}),
"./src/plugins/divider/utils.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"insertCustomBlock\", function(){ return insertCustomBlock; });\n var immutable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/immutable/dist/immutable.js\");\n var immutable__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(immutable__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_1__);\n\n // this function is almost same as `AtomicBlockUtils.insertAtomicBlock`\n// https://github.com/facebook/draft-js/blob/master/src/model/modifier/AtomicBlockUtils.js#L32\n\nvar insertCustomBlock=function insertCustomBlock(editorState, blockType){\n  var contentState=editorState.getCurrentContent();\n  var selectionState=editorState.getSelection();\n  var afterRemoval=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"Modifier\"].removeRange(contentState, selectionState, 'backward');\n  var targetSelection=afterRemoval.getSelectionAfter();\n  var afterSplit=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"Modifier\"].splitBlock(afterRemoval, targetSelection);\n  var insertionTarget=afterSplit.getSelectionAfter();\n  var asCustomBlock=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"Modifier\"].setBlockType(afterSplit, insertionTarget, blockType);\n  var fragmentArray=[new draft_js__WEBPACK_IMPORTED_MODULE_1__[\"ContentBlock\"]({\n    key: Object(draft_js__WEBPACK_IMPORTED_MODULE_1__[\"genKey\"])(),\n    type: blockType,\n    text: '',\n    characterList: Object(immutable__WEBPACK_IMPORTED_MODULE_0__[\"List\"])()\n  }), new draft_js__WEBPACK_IMPORTED_MODULE_1__[\"ContentBlock\"]({\n    key: Object(draft_js__WEBPACK_IMPORTED_MODULE_1__[\"genKey\"])(),\n    type: 'unstyled',\n    text: '',\n    characterList: Object(immutable__WEBPACK_IMPORTED_MODULE_0__[\"List\"])()\n  })];\n  var fragment=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"BlockMapBuilder\"].createFromArray(fragmentArray);\n  var withCustomBlock=draft_js__WEBPACK_IMPORTED_MODULE_1__[\"Modifier\"].replaceWithFragment(asCustomBlock, insertionTarget, fragment);\n  var newContent=withCustomBlock.merge({\n    selectionBefore: selectionState,\n    selectionAfter: withCustomBlock.getSelectionAfter().set('hasFocus', true)\n  });\n  return draft_js__WEBPACK_IMPORTED_MODULE_1__[\"EditorState\"].push(editorState, newContent, 'insert-fragment');\n};\n\n//# sourceURL=webpack:///./src/plugins/divider/utils.js?");
}),
"./src/plugins/highlight/components/AddHighlightForm.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prop_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prop-types/index.js\");\n var prop_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n var clsx__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2__);\n var draft_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_3__);\n var _utils_URLUtils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/highlight/utils/URLUtils.js\");\n var _colorpickr__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__( \"./src/plugins/highlight/components/colorpickr.js\");\n var _slider__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__( \"./src/plugins/highlight/components/slider.js\");\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\n\n\n\n\n\n\n\n\nvar AddHighlightForm=function AddHighlightForm(props){\n  var _useState=useState({}),\n      _useState2=_slicedToArray(_useState, 2),\n      value=_useState2[0],\n      setValue=_useState2[1];\n\n  var _onChange=function onChange(type, val){\n    var nvalue=_objectSpread({}, value);\n\n    nvalue[type]=val;\n    console.log(nvalue, 'onchange');\n    setValue(nvalue, function (){\n      submit();\n    });\n  };\n\n  var onClose=function onClose(){\n    return props.onOverrideContent(undefined);\n  };\n\n  var submit=function submit(){\n    var getEditorState=props.getEditorState,\n        setEditorState=props.setEditorState;\n    console.log(value, '--');\n    setEditorState(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_2___default.a.createHighlightAtSelection(getEditorState(), _objectSpread({}, value)));\n    onClose();\n  };\n\n  var onKeyDown=function onKeyDown(event){\n    if(event.key==='Enter'){\n      event.preventDefault();\n      submit();\n    }else if(event.key==='Escape'){\n      event.preventDefault();\n      onClose();\n    }\n  };\n\n  return wp.element.createElement(\"div\", {\n    className: \"veditor_highlight_form\"\n  }, wp.element.createElement(\"div\", {\n    className: \"highlight_control\"\n  }, wp.element.createElement(\"span\", null, window.vibeEditor.translations.select_bg_color), wp.element.createElement(_colorpickr__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n    update: function update(v){\n      return _onChange('background', v);\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"highlight_control\"\n  }, wp.element.createElement(\"span\", null, window.vibeEditor.translations.select_text_color), wp.element.createElement(_colorpickr__WEBPACK_IMPORTED_MODULE_5__[\"default\"], {\n    update: function update(v){\n      return _onChange('color', v);\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"highlight_control\"\n  }, wp.element.createElement(\"span\", null, window.vibeEditor.translations.select_fontsize), wp.element.createElement(_slider__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    min: \"1\",\n    max: \"10\",\n    update: function update(v){\n      return _onChange('fontSize', v);\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"highlight_control\"\n  }, wp.element.createElement(\"span\", null, window.vibeEditor.translations.margin), wp.element.createElement(_slider__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    min: \"1\",\n    max: \"10\",\n    update: function update(v){\n      return _onChange('margin', v);\n    },\n    multi: \"1\"\n  })), wp.element.createElement(\"div\", {\n    className: \"highlight_control\"\n  }, wp.element.createElement(\"span\", null, window.vibeEditor.translations.padding), wp.element.createElement(_slider__WEBPACK_IMPORTED_MODULE_6__[\"default\"], {\n    min: \"1\",\n    max: \"10\",\n    update: function update(v){\n      return _onChange('padding', v);\n    },\n    multi: \"1\"\n  })), wp.element.createElement(\"div\", {\n    className: \"highlight_control\"\n  }, wp.element.createElement(\"select\", {\n    onChange: function onChange(e){\n      return _onChange('font', e.target.value);\n    }\n  }, wp.element.createElement(\"option\", null, window.vibeEditor.translations.select_font), window.vibeEditor.font_styles.map(function (f){\n    return wp.element.createElement(\"option\", {\n      value: f\n    }, f);\n  }))), wp.element.createElement(\"div\", {\n    className: \"highlight_buttons\"\n  }, wp.element.createElement(\"a\", {\n    className: \"button\",\n    onClick: submit\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-check\"\n  })), wp.element.createElement(\"a\", {\n    className: \"link\",\n    onClick: onClose\n  }, wp.element.createElement(\"span\", {\n    className: \"vicon vicon-close\"\n  }))));\n};\n\nAddHighlightForm.propTypes={\n  getEditorState: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired,\n  setEditorState: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired,\n  onOverrideContent: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired\n};\nAddHighlightForm.defaultProps={\n  font: '',\n  fontSize: 1,\n  margin: 0,\n  padding: 0\n};\n __webpack_exports__[\"default\"]=(AddHighlightForm);\n\n//# sourceURL=webpack:///./src/plugins/highlight/components/AddHighlightForm.js?");
}),
"./src/plugins/highlight/components/DefaultHighlightButton.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"DefaultHighlightButtonProps\", function(){ return DefaultHighlightButtonProps; });\n var clsx__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/clsx/dist/clsx.m.js\");\n//import React, { ReactElement, MouseEvent } from 'react';\n\nvar DefaultHighlightButtonProps={\n  hasHighlightSelected: false,\n  onRemoveHighlightAtSelection: false,\n  onAddHighlightClick: false,\n  theme: false\n};\n\nvar DefaultHighlightButton=function DefaultHighlightButton(_ref){\n  var hasHighlightSelected=_ref.hasHighlightSelected,\n      onRemoveHighlightAtSelection=_ref.onRemoveHighlightAtSelection,\n      onAddHighlightClick=_ref.onAddHighlightClick,\n      theme=_ref.theme;\n  return wp.element.createElement(\"div\", {\n    className: \"draftJsToolbar__buttonWrapper__1Dmqh\",\n    onMouseDown: function onMouseDown(event){\n      event.preventDefault();\n    }\n  }, wp.element.createElement(\"button\", {\n    className: \"draftJsToolbar__button__qi1gf\",\n    onClick: hasHighlightSelected ? onRemoveHighlightAtSelection:onAddHighlightClick,\n    type: \"button\"\n  }, wp.element.createElement(\"svg\", {\n    xmlns: \"http://www.w3.org/2000/svg\",\n    width: \"24\",\n    height: \"24\",\n    viewBox: \"0 0 24 24\",\n    fill: \"none\",\n    stroke: \"currentColor\",\n    \"stroke-width\": \"1\",\n    \"stroke-linecap\": \"round\",\n    \"stroke-linejoin\": \"round\",\n    \"class\": \"feather feather-aperture\"\n  }, wp.element.createElement(\"circle\", {\n    cx: \"12\",\n    cy: \"12\",\n    r: \"10\",\n    fill: \"none\"\n  }), wp.element.createElement(\"line\", {\n    x1: \"14.31\",\n    y1: \"8\",\n    x2: \"20.05\",\n    y2: \"17.94\"\n  }), wp.element.createElement(\"line\", {\n    x1: \"9.69\",\n    y1: \"8\",\n    x2: \"21.17\",\n    y2: \"8\"\n  }), wp.element.createElement(\"line\", {\n    x1: \"7.38\",\n    y1: \"12\",\n    x2: \"13.12\",\n    y2: \"2.06\"\n  }), wp.element.createElement(\"line\", {\n    x1: \"9.69\",\n    y1: \"16\",\n    x2: \"3.95\",\n    y2: \"6.06\"\n  }), wp.element.createElement(\"line\", {\n    x1: \"14.31\",\n    y1: \"16\",\n    x2: \"2.83\",\n    y2: \"16\"\n  }), wp.element.createElement(\"line\", {\n    x1: \"16.62\",\n    y1: \"12\",\n    x2: \"10.88\",\n    y2: \"21.94\"\n  }))));\n};\n\n __webpack_exports__[\"default\"]=(DefaultHighlightButton);\n\n//# sourceURL=webpack:///./src/plugins/highlight/components/DefaultHighlightButton.js?");
}),
"./src/plugins/highlight/components/Highlight.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prop_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prop-types/index.js\");\n var prop_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_1__);\n//import React, { ReactElement, ReactNode } from 'react';\n\n\nvar propTypes={\n  className: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,\n  children: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.node.isRequired,\n  entityKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.string,\n  getEditorState: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired\n};\n\nvar Highlight=function Highlight(_ref){\n  var children=_ref.children,\n      className=_ref.className,\n      entityKey=_ref.entityKey,\n      getEditorState=_ref.getEditorState,\n      target=_ref.target;\n  var entity=getEditorState().getCurrentContent().getEntity(entityKey);\n  var entityData=entity ? entity.getData():'';\n  var style=entity ? entityData.highlight:{};\n  return wp.element.createElement(\"span\", {\n    className: \"highlight\",\n    style: style\n  }, children);\n};\n\nHighlight.propTypes=propTypes;\n __webpack_exports__[\"default\"]=(Highlight);\n\n//# sourceURL=webpack:///./src/plugins/highlight/components/Highlight.js?");
}),
"./src/plugins/highlight/components/HighlightButton.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prop_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prop-types/index.js\");\n var prop_types__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__);\n var _AddHighlightForm__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/highlight/components/AddHighlightForm.js\");\n var ___WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/highlight/index.js\");\n var _DefaultHighlightButton__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/highlight/components/DefaultHighlightButton.js\");\n//import React, { ComponentType, MouseEvent, ReactElement } from 'react';\n\n\n\n\n\n\nvar HighlightButton=function HighlightButton(_ref){\n  var ownTheme=_ref.ownTheme,\n      onOverrideContent=_ref.onOverrideContent,\n      onRemoveHighlightAtSelection=_ref.onRemoveHighlightAtSelection,\n      store=_ref.store,\n      InnerHighlightButton=_ref.highlightButton;\n\n  var onAddHighlightClick=function onAddHighlightClick(event){\n    event.preventDefault();\n    event.stopPropagation();\n\n    var content=function content(contentProps){\n      return wp.element.createElement(_AddHighlightForm__WEBPACK_IMPORTED_MODULE_2__[\"default\"], contentProps);\n    };\n\n    onOverrideContent(content);\n  };\n\n  var editorState=store.getEditorState();\n  var hasHighlightSelected=editorState ? draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default.a.hasEntity(editorState, 'HIGHLIGHT'):false;\n  return wp.element.createElement(InnerHighlightButton, {\n    onRemoveHighlightAtSelection: onRemoveHighlightAtSelection,\n    hasHighlightSelected: hasHighlightSelected,\n    onAddHighlightClick: onAddHighlightClick\n  });\n};\n\nHighlightButton.propTypes={\n  store: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.object.isRequired,\n  onRemoveHighlightAtSelection: prop_types__WEBPACK_IMPORTED_MODULE_0___default.a.func.isRequired\n};\n __webpack_exports__[\"default\"]=(HighlightButton);\n\n//# sourceURL=webpack:///./src/plugins/highlight/components/HighlightButton.js?");
}),
"./src/plugins/highlight/components/colorpickr.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\n\nvar ColorPicker=function ColorPicker(props){\n  var _useState=useState(''),\n      _useState2=_slicedToArray(_useState, 2),\n      pickr=_useState2[0],\n      setPickr=_useState2[1];\n\n  return wp.element.createElement(\"div\", {\n    className: \"veditor_pic_color\"\n  }, wp.element.createElement(\"input\", {\n    type: \"color\",\n    onChange: function onChange(e){\n      return props.update(e.target.value);\n    }\n  }));\n};\n\n __webpack_exports__[\"default\"]=(ColorPicker);\n\n//# sourceURL=webpack:///./src/plugins/highlight/components/colorpickr.js?");
}),
"./src/plugins/highlight/components/slider.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\n\nvar Slider=function Slider(props){\n  var _useState=useState(1),\n      _useState2=_slicedToArray(_useState, 2),\n      val=_useState2[0],\n      setVal=_useState2[1];\n\n  var _useState3=useState(false),\n      _useState4=_slicedToArray(_useState3, 2),\n      multi=_useState4[0],\n      setMulti=_useState4[1];\n\n  var input=useRef(null);\n  useEffect(function (){\n    if(props.val){\n      setVal(props.val);\n    }\n  }, [props.val]);\n  return wp.element.createElement(\"div\", {\n    className: \"veditor_slider\"\n  }, wp.element.createElement(\"div\", {\n    className: \"range-slider\"\n  }, !multi&&val ? wp.element.createElement(\"input\", {\n    ref: input,\n    type: \"range\",\n    min: props.min ? props.min:1,\n    max: props.max ? props.max:10,\n    value: val,\n    onChange: function onChange(e){\n      return props.update(e.target.value + 'rem');\n    }\n  }):'', wp.element.createElement(\"span\", {\n    \"class\": \"range-slider__value\"\n  }, val), props.multi ? wp.element.createElement(\"span\", {\n    className: multi ? 'vicon vicon-close':'vicon vicon-plus',\n    onClick: function onClick(){\n      if(multi){\n        setMulti(false);\n        setVal(val.toString());\n      }else{\n        setMulti(true);\n      }\n    }\n  }):'', multi ? wp.element.createElement(\"div\", {\n    className: \"multi_sliders\"\n  }, wp.element.createElement(\"input\", {\n    ref: input,\n    type: \"range\",\n    min: props.min ? props.min:1,\n    max: props.max ? props.max:10,\n    onChange: function onChange(e){\n      var x=val.split(' ');\n      x[0]=e.target.value + 'rem';\n      props.update(x.join(' '));\n    }\n  }), wp.element.createElement(\"input\", {\n    ref: input,\n    type: \"range\",\n    min: props.min ? props.min:1,\n    max: props.max ? props.max:10,\n    onChange: function onChange(e){\n      var x=val.split(' ');\n      x[1]=e.target.value + 'rem';\n      props.update(x.join(' '));\n    }\n  }), wp.element.createElement(\"input\", {\n    ref: input,\n    type: \"range\",\n    min: props.min ? props.min:1,\n    max: props.max ? props.max:10,\n    onChange: function onChange(e){\n      var x=val.split(' ');\n      x[2]=e.target.value + 'rem';\n      props.update(x.join(' '));\n    }\n  }), wp.element.createElement(\"input\", {\n    ref: input,\n    type: \"range\",\n    min: props.min ? props.min:1,\n    max: props.max ? props.max:10,\n    onChange: function onChange(e){\n      var x=val.split(' ');\n      x[3]=e.target.value + 'rem';\n      props.update(x.join(' '));\n    }\n  })):''));\n};\n\n __webpack_exports__[\"default\"]=(Slider);\n\n//# sourceURL=webpack:///./src/plugins/highlight/components/slider.js?");
}),
"./src/plugins/highlight/highlightStrategy.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"matchesEntityType\", function(){ return matchesEntityType; });\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return strategy; });\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n\nvar matchesEntityType=function matchesEntityType(type){\n  return type==='HIGHLIGHT';\n};\nfunction strategy(contentBlock){\n  var callback=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:function (start, end){};\n  var contentState=arguments.length > 2 ? arguments[2]:undefined;\n  if(!contentState) return;\n  contentBlock.findEntityRanges(function (character){\n    var entityKey=character.getEntity();\n    return entityKey!==null&&matchesEntityType(contentState.getEntity(entityKey).getType());\n  }, callback);\n}\n\n//# sourceURL=webpack:///./src/plugins/highlight/highlightStrategy.js?");
}),
"./src/plugins/highlight/index.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"HighlightPluginConfig\", function(){ return HighlightPluginConfig; });\n __webpack_require__.d(__webpack_exports__, \"HighlightPluginStore\", function(){ return HighlightPluginStore; });\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/index.js\");\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-plugins-utils/lib/index.js\");\n var draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1__);\n var draft_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_2__);\n var _components_Highlight__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/highlight/components/Highlight.js\");\n var _components_HighlightButton__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/highlight/components/HighlightButton.js\");\n var _highlightStrategy__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__( \"./src/plugins/highlight/highlightStrategy.js\");\n var _components_DefaultHighlightButton__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__( \"./src/plugins/highlight/components/DefaultHighlightButton.js\");\n __webpack_require__.d(__webpack_exports__, \"DefaultHighlightButtonProps\", function(){ return _components_DefaultHighlightButton__WEBPACK_IMPORTED_MODULE_6__[\"DefaultHighlightButtonProps\"]; });\n\nfunction _extends(){ _extends=Object.assign||function (target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]; for (var key in source){ if(Object.prototype.hasOwnProperty.call(source, key)){ target[key]=source[key]; }} } return target; }; return _extends.apply(this, arguments); }\n\n// import React, {\n//   AnchorHTMLAttributes,\n//   ComponentType,\n//   ReactElement,\n// } from 'react';\n\n\n\n\n\n\n\n\nvar HighlightPluginConfig={\n  theme: false,\n  css: {},\n  HighlightButton: wp.element.createElement(_components_DefaultHighlightButton__WEBPACK_IMPORTED_MODULE_6__[\"DefaultHighlightButtonProps\"], null)\n};\nvar HighlightPluginStore={\n  getEditorState: function getEditorState(){},\n  setEditorState: function setEditorState(state){}\n};\n\nvar HighlightPlugin=function HighlightPlugin(config){\n  var theme=config.theme,\n      placeholder=config.placeholder,\n      Highlight=config.Highlight,\n      highlightButton=config.HighlightButton;\n  var store=HighlightPluginStore={\n    getEditorState: '',\n    setEditorState: ''\n  };\n\n  var DecoratedDefaultHighlight=function DecoratedDefaultHighlight(props){\n    return wp.element.createElement(_components_Highlight__WEBPACK_IMPORTED_MODULE_3__[\"default\"], props);\n  };\n\n  var DecoratedHighlightButton=function DecoratedHighlightButton(props){\n    return wp.element.createElement(_components_HighlightButton__WEBPACK_IMPORTED_MODULE_4__[\"default\"], _extends({}, props, {\n      ownTheme: theme,\n      store: store,\n      placeholder: placeholder,\n      onRemoveHighlightAtSelection: function onRemoveHighlightAtSelection(){\n        return store.setEditorState(draft_js_plugins_utils__WEBPACK_IMPORTED_MODULE_1___default.a.removeHighlightAtSelection(store.getEditorState()));\n      },\n      highlightButton: highlightButton||_components_DefaultHighlightButton__WEBPACK_IMPORTED_MODULE_6__[\"default\"]\n    }));\n  };\n\n  return {\n    initialize: function initialize(_ref){\n      var getEditorState=_ref.getEditorState,\n          setEditorState=_ref.setEditorState;\n      store.getEditorState=getEditorState;\n      store.setEditorState=setEditorState;\n    },\n    decorators: [{\n      strategy: _highlightStrategy__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n      component: Highlight||DecoratedDefaultHighlight\n    }],\n    HighlightButton: DecoratedHighlightButton\n  };\n};\n\n __webpack_exports__[\"default\"]=(HighlightPlugin);\n\n//# sourceURL=webpack:///./src/plugins/highlight/index.js?");
}),
"./src/plugins/highlight/utils/URLUtils.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var prepend_http__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/prepend-http/index.js\");\n var prepend_http__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(prepend_http__WEBPACK_IMPORTED_MODULE_0__);\n var _urlRegex__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/highlight/utils/urlRegex.js\");\n var _mailRegex__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/highlight/utils/mailRegex.js\");\n\n\n\n __webpack_exports__[\"default\"]=({\n  isUrl: function isUrl(text){\n    return Object(_urlRegex__WEBPACK_IMPORTED_MODULE_1__[\"default\"])().test(text);\n  },\n  isMail: function isMail(text){\n    return Object(_mailRegex__WEBPACK_IMPORTED_MODULE_2__[\"default\"])().test(text);\n  },\n  normaliseMail: function normaliseMail(email){\n    if(email.toLowerCase().startsWith('mailto:')){\n      return email;\n    }\n\n    return \"mailto:\".concat(email);\n  },\n  normalizeUrl: function normalizeUrl(url){\n    return prepend_http__WEBPACK_IMPORTED_MODULE_0___default()(url);\n  }\n});\n\n//# sourceURL=webpack:///./src/plugins/highlight/utils/URLUtils.js?");
}),
"./src/plugins/highlight/utils/mailRegex.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_exports__[\"default\"]=(function (){\n  return /^((mailto:[^<>()/[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@(([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{2,})$/i;\n});\n\n//# sourceURL=webpack:///./src/plugins/highlight/utils/mailRegex.js?");
}),
"./src/plugins/highlight/utils/urlRegex.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return urlRegex; });\n var tlds__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/tlds/index.json\");\nvar tlds__WEBPACK_IMPORTED_MODULE_0___namespace=__webpack_require__.t( \"./node_modules/tlds/index.json\", 1);\n\nvar v4='(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])(?:\\\\.(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])){3}';\nvar v6seg='[0-9a-fA-F]{1,4}';\nvar v6=\"\\n(\\n(?:\".concat(v6seg, \":){7}(?:\").concat(v6seg, \"|:)|                                // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\\n(?:\").concat(v6seg, \":){6}(?:\").concat(v4, \"|:\").concat(v6seg, \"|:)|                         // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\\n(?:\").concat(v6seg, \":){5}(?::\").concat(v4, \"|(:\").concat(v6seg, \"){1,2}|:)|                 // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\\n(?:\").concat(v6seg, \":){4}(?:(:\").concat(v6seg, \"){0,1}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\\n(?:\").concat(v6seg, \":){3}(?:(:\").concat(v6seg, \"){0,2}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\\n(?:\").concat(v6seg, \":){2}(?:(:\").concat(v6seg, \"){0,3}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\\n(?:\").concat(v6seg, \":){1}(?:(:\").concat(v6seg, \"){0,4}:\").concat(v4, \"|(:\").concat(v6seg, \"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\\n(?::((?::\").concat(v6seg, \"){0,5}:\").concat(v4, \"|(?::\").concat(v6seg, \"){1,7}|:))           // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\\n)(%[0-9a-zA-Z]{1,})?                                           // %eth0            %1\\n\").replace(/\\s*\\/\\/.*$/gm, '').replace(/\\n/g, '').trim();\n\nvar ipRegex=function ipRegex(opts){\n  return opts&&opts.exact ? new RegExp(\"(?:^\".concat(v4, \"$)|(?:^\").concat(v6, \"$)\")):new RegExp(\"(?:\".concat(v4, \")|(?:\").concat(v6, \")\"), 'g');\n};\n\nipRegex.v4=function (opts){\n  return opts&&opts.exact ? new RegExp(\"^\".concat(v4, \"$\")):new RegExp(v4, 'g');\n};\n\nipRegex.v6=function (opts){\n  return opts&&opts.exact ? new RegExp(\"^\".concat(v6, \"$\")):new RegExp(v6, 'g');\n};\n\nfunction urlRegex(_opts){\n  var opts=Object.assign({\n    strict: true\n  }, _opts);\n  var protocol=\"(?:(?:[a-z]+:)?//)\".concat(opts.strict ? '':'?');\n  var auth='(?:\\\\S+(?::\\\\S*)?@)?';\n  var ip=ipRegex.v4().source;\n  var host=\"(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)\";\n  var domain=\"(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*\";\n  var tld=\"(?:\\\\.\".concat(opts.strict ? \"(?:[a-z\\\\u00a1-\\\\uffff]{2,})\":\"(?:\".concat(tlds__WEBPACK_IMPORTED_MODULE_0__.sort(function (a, b){\n    return b.length - a.length;\n  }).join('|'), \")\"), \")\\\\.?\");\n  var port='(?::\\\\d{2,5})?';\n  var path='(?:[/?#][^\\\\s\"]*)?';\n  var regex=\"(?:\".concat(protocol, \"|www\\\\.)\").concat(auth, \"(?:localhost|\").concat(ip, \"|\").concat(host).concat(domain).concat(tld, \")\").concat(port).concat(path);\n  return opts.exact ? new RegExp(\"(?:^\".concat(regex, \"$)\"), 'i'):new RegExp(regex, 'ig');\n}\n\n//# sourceURL=webpack:///./src/plugins/highlight/utils/urlRegex.js?");
}),
"./src/plugins/mathjax/components/InlineTeX.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return InlineTeX; });\n var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/react/index.js\");\n var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n var _MathJaxNode__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/mathjax/components/MathJaxNode.js\");\n var _TeXInput__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/mathjax/components/TeXInput.js\");\n var _modifiers_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/mathjax/modifiers/utils.js\");\n var _styles__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/mathjax/components/styles.js\");\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }}\n\nfunction _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true }});if(superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p){ _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o, p){ o.__proto__=p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived){ var hasNativeReflectConstruct=_isNativeReflectConstruct(); return function _createSuperInternal(){ var Super=_getPrototypeOf(Derived), result; if(hasNativeReflectConstruct){ var NewTarget=_getPrototypeOf(this).constructor; result=Reflect.construct(Super, arguments, NewTarget); }else{ result=Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); };}\n\nfunction _possibleConstructorReturn(self, call){ if(call&&(_typeof(call)===\"object\"||typeof call===\"function\")){ return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct(){ if(typeof Reflect===\"undefined\"||!Reflect.construct) return false; if(Reflect.construct.sham) return false; if(typeof Proxy===\"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function (){})); return true; } catch (e){ return false; }}\n\nfunction _getPrototypeOf(o){ _getPrototypeOf=Object.setPrototypeOf ? Object.getPrototypeOf:function _getPrototypeOf(o){ return o.__proto__||Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\nvar styles=_styles__WEBPACK_IMPORTED_MODULE_4__[\"default\"].inline;\n\nvar InlineTeX=function (_Component){\n  _inherits(InlineTeX, _Component);\n\n  var _super=_createSuper(InlineTeX);\n\n  function InlineTeX(props){\n    var _this;\n\n    _classCallCheck(this, InlineTeX);\n\n    _this=_super.call(this, props);\n    _this.state=_this.getInitialState();\n\n    _this._update=function (key){\n      if(_this.state.editMode) return;\n\n      var store=_this.props.getStore();\n\n      _this.setState({\n        editMode: true\n      }, function (){\n        store.setReadOnly(true);\n\n        if(key){\n          store.teXToUpdate={};\n        }\n      });\n    };\n\n    _this.onChange=function (newState){\n      var cb=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:function (){};\n\n      // Ne serait-ce pas mieux (plus simple) que l'entité\n      // porte l'état du composant (sauf editMode) ?\n      // Nécessite une grosse reprise du code...\n      // const {editMode, ...data}=newState\n      // const {\n      //   getEditorState: get,\n      //   setEditorState: set,\n      //   entityKey: ek\n      // }=this.props\n      // const es=get()\n      // const cs=es.getCurrentContent()\n      // set(EditorState.set(es, {\n      //   currentContent: cs.mergeEntityData(\n      //     ek, data\n      //)\n      // }))\n      _this.setState(newState, cb);\n    };\n\n    _this.getCaretPos=function (){\n      var dir=_this.props.getStore().teXToUpdate.dir;\n\n      if(!dir||dir==='l'){\n        return _this.state.teX.length;\n      }\n\n      return 0;\n    };\n\n    _this.save=function (after){\n      _this.setState({\n        editMode: false\n      }, function (){\n        var store=_this.props.getStore();\n\n        var _this$state=_this.state,\n            teX=_this$state.teX,\n            displaystyle=_this$state.displaystyle;\n        var _this$props=_this.props,\n            entityKey=_this$props.entityKey,\n            offsetKey=_this$props.offsetKey,\n            children=_this$props.children;\n\n        var contentState=_this.getCurrentEditorContent();\n\n        store.completion.updateMostUsedTeXCmds(teX, contentState.getEntity(entityKey).getData().teX);\n        Object(_modifiers_utils__WEBPACK_IMPORTED_MODULE_3__[\"finishEdit\"])(store).apply(void 0, _toConsumableArray(Object(_modifiers_utils__WEBPACK_IMPORTED_MODULE_3__[\"saveTeX\"])(_objectSpread({\n          after: after,\n          contentState: contentState,\n          teX: teX,\n          displaystyle: displaystyle,\n          entityKey: entityKey,\n          blockKey: offsetKey.split('-')[0]\n        }, react__WEBPACK_IMPORTED_MODULE_0___default.a.Children.map(children, function (c){\n          return {\n            startPos: c.props.start\n          };\n        })[0]))));\n      });\n    };\n\n    return _this;\n  }\n\n  _createClass(InlineTeX, [{\n    key: \"getInitialState\",\n    value: function getInitialState(){\n      var entityKey=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:this.props.entityKey;\n      var contentState=this.getCurrentEditorContent();\n      var entity=contentState.getEntity(entityKey);\n\n      var _entity$getData=entity.getData(),\n          teX=_entity$getData.teX,\n          displaystyle=_entity$getData.displaystyle; // return entity.getData()\n\n\n      return {\n        editMode: teX.length===0,\n        teX: teX,\n        displaystyle: displaystyle\n      };\n    }\n  }, {\n    key: \"componentWillMount\",\n    value: function componentWillMount(){\n      var store=this.props.getStore();\n\n      if(this.state.editMode){\n        store.setReadOnly(true);\n      }\n    } // componentWillUnmount(){\n    //   console.log(\"unmount\", this.props.entityKey);\n    // }\n\n  }, {\n    key: \"componentWillReceiveProps\",\n    value: function componentWillReceiveProps(nextProps){\n      var entityKey=nextProps.entityKey;\n      var store=nextProps.getStore();\n      var key=store.teXToUpdate.key;\n\n      if(key===entityKey){\n        this._update(key);\n      }\n\n      if(this.props.entityKey===entityKey){\n        return;\n      } // un composant est «recyclé» !!!\n      // arrive lorsqu'on insère une entité avant une entité de même\n      // type dans un même block\n\n\n      var newInternalState=this.getInitialState(entityKey);\n      this.setState(newInternalState, function (){\n        return newInternalState.editMode&&store.setReadOnly(true);\n      });\n    }\n  }, {\n    key: \"getCurrentEditorContent\",\n    value: function getCurrentEditorContent(){\n      return this.props.getStore().getEditorState().getCurrentContent();\n    }\n  }, {\n    key: \"render\",\n    value: function render(){\n      var _this2=this;\n\n      var _this$state2=this.state,\n          editMode=_this$state2.editMode,\n          teX=_this$state2.teX,\n          displaystyle=_this$state2.displaystyle;\n      var completion=this.props.getStore().completion;\n      var input=null;\n\n      if(editMode){\n        input=wp.element.createElement(_TeXInput__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n          onChange: this.onChange,\n          teX: teX,\n          displaystyle: displaystyle,\n          finishEdit: this.save,\n          completion: completion,\n          caretPosFn: this.getCaretPos,\n          style: styles.edit\n        });\n      }\n\n      var texContent=(displaystyle ? '\\\\displaystyle{':'') + teX + (displaystyle ? '}':'');\n      var rendered=wp.element.createElement(_MathJaxNode__WEBPACK_IMPORTED_MODULE_1__[\"default\"], {\n        inline: true,\n        key: this.props.entityKey\n      }, texContent);\n      var style=styles[editMode ? 'preview':'rendered'];\n      return wp.element.createElement(\"span\", {\n        style: {\n          position: editMode ? 'relative':undefined\n        }\n      }, input, wp.element.createElement(\"span\", {\n        onMouseDown: function onMouseDown(){\n          return _this2._update();\n        },\n        style: style,\n        contentEditable: false\n      }, rendered));\n    }\n  }]);\n\n  return InlineTeX;\n}(react__WEBPACK_IMPORTED_MODULE_0__[\"Component\"]);\n\n\n\n//# sourceURL=webpack:///./src/plugins/mathjax/components/InlineTeX.js?");
}),
"./src/plugins/mathjax/components/MathJaxNode.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/react/index.js\");\n var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n var _mathjax_processTeX__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/mathjax/mathjax/processTeX.js\");\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }}\n\nfunction _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true }});if(superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p){ _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o, p){ o.__proto__=p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived){ var hasNativeReflectConstruct=_isNativeReflectConstruct(); return function _createSuperInternal(){ var Super=_getPrototypeOf(Derived), result; if(hasNativeReflectConstruct){ var NewTarget=_getPrototypeOf(this).constructor; result=Reflect.construct(Super, arguments, NewTarget); }else{ result=Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); };}\n\nfunction _possibleConstructorReturn(self, call){ if(call&&(_typeof(call)===\"object\"||typeof call===\"function\")){ return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct(){ if(typeof Reflect===\"undefined\"||!Reflect.construct) return false; if(Reflect.construct.sham) return false; if(typeof Proxy===\"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function (){})); return true; } catch (e){ return false; }}\n\nfunction _getPrototypeOf(o){ _getPrototypeOf=Object.setPrototypeOf ? Object.getPrototypeOf:function _getPrototypeOf(o){ return o.__proto__||Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\nvar MathJaxNode=function (_Component){\n  _inherits(MathJaxNode, _Component);\n\n  var _super=_createSuper(MathJaxNode);\n\n  function MathJaxNode(props){\n    var _this;\n\n    _classCallCheck(this, MathJaxNode);\n\n    _this=_super.call(this, props);\n    _this.timeout=props.timeout;\n    _this.annul=null;\n    _this.state={\n      ready: window.MathJax&&window.MathJax.ready\n    };\n    return _this;\n  }\n\n  _createClass(MathJaxNode, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount(){\n      var _this2=this;\n\n      if(this.state.ready) this.typeset();else {\n        var check=this.props.check;\n        this.annul=setInterval(function (){\n          if(window.MathJax&&window.MathJax.isReady){\n            _this2.setState({\n              ready: true\n            });\n\n            clearInterval(_this2.annul);\n          }else{\n            if(_this2.timeout < 0){\n              clearInterval(_this2.annul);\n            }\n\n            _this2.timeout -=check;\n          }\n        }, check);\n      }\n    }\n    \n\n  }, {\n    key: \"shouldComponentUpdate\",\n    value: function shouldComponentUpdate(nextProps, nextState){\n      return nextProps.children!==this.props.children||nextProps.inline!==this.props.inline||nextState.ready!==this.state.ready;\n    }\n    \n\n  }, {\n    key: \"componentDidUpdate\",\n    value: function componentDidUpdate(prevProps){\n      var forceUpdate=prevProps.inline!==this.props.inline;\n      this.typeset(forceUpdate);\n    }\n    \n\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount(){\n      clearInterval(this.annul);\n      this.clear();\n    }\n    \n\n  }, {\n    key: \"setScriptText\",\n    value: function setScriptText(text){\n      var inline=this.props.inline;\n\n      if(!this.script){\n        this.script=document.createElement('script');\n        this.script.type=\"math/tex; \".concat(inline ? '':'mode=display');\n        this.node.appendChild(this.script);\n      }\n\n      if('text' in this.script){\n        // IE8, etc\n        this.script.text=text;\n      }else{\n        this.script.textContent=text;\n      }\n\n      return this.script;\n    }\n    \n\n  }, {\n    key: \"clear\",\n    value: function clear(){\n      var MathJax=window.MathJax;\n\n      if(!this.script||!MathJax||!MathJax.isReady){\n        return;\n      }\n\n      var jax=MathJax.Hub.getJaxFor(this.script);\n\n      if(jax){\n        jax.Remove();\n      }\n    }\n    \n\n  }, {\n    key: \"typeset\",\n    value: function typeset(forceUpdate){\n      var _this3=this;\n\n      var MathJax=window.MathJax;\n      var _this$props=this.props,\n          children=_this$props.children,\n          onRender=_this$props.onRender;\n      var text=children;\n\n      if(forceUpdate){\n        this.clear();\n      }\n\n      if(!forceUpdate&&this.script){\n        MathJax.Hub.Queue(function (){\n          var jax=MathJax.Hub.getJaxFor(_this3.script);\n          if(jax) jax.Text(text, onRender);else {\n            var script=_this3.setScriptText(text);\n\n            Object(_mathjax_processTeX__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(MathJax, script, onRender);\n          }\n        });\n      }else{\n        var script=this.setScriptText(text);\n        MathJax.Hub.Queue(function (){\n          return Object(_mathjax_processTeX__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(MathJax, script, onRender);\n        });\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render(){\n      var _this4=this;\n\n      if(this.state.ready){\n        return wp.element.createElement(\"span\", {\n          ref: function ref(node){\n            _this4.node=node;\n          }\n        });\n      }\n\n      return wp.element.createElement(\"span\", {\n        style: {\n          color: 'red'\n        }\n      }, this.props.children);\n    }\n  }]);\n\n  return MathJaxNode;\n}(react__WEBPACK_IMPORTED_MODULE_0__[\"Component\"]);\n\nMathJaxNode.defaultProps={\n  inline: false,\n  onRender: function onRender(){},\n  timeout: 10000,\n  check: 50\n};\n __webpack_exports__[\"default\"]=(MathJaxNode);\n\n//# sourceURL=webpack:///./src/plugins/mathjax/components/MathJaxNode.js?");
}),
"./src/plugins/mathjax/components/TeXBlock.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return TeXBlock; });\n var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/react/index.js\");\n var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n var _MathJaxNode__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/mathjax/components/MathJaxNode.js\");\n var _TeXInput__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/mathjax/components/TeXInput.js\");\n var _modifiers_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/mathjax/modifiers/utils.js\");\n var _styles__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/mathjax/components/styles.js\");\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }}\n\nfunction _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true }});if(superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p){ _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o, p){ o.__proto__=p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived){ var hasNativeReflectConstruct=_isNativeReflectConstruct(); return function _createSuperInternal(){ var Super=_getPrototypeOf(Derived), result; if(hasNativeReflectConstruct){ var NewTarget=_getPrototypeOf(this).constructor; result=Reflect.construct(Super, arguments, NewTarget); }else{ result=Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); };}\n\nfunction _possibleConstructorReturn(self, call){ if(call&&(_typeof(call)===\"object\"||typeof call===\"function\")){ return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct(){ if(typeof Reflect===\"undefined\"||!Reflect.construct) return false; if(Reflect.construct.sham) return false; if(typeof Proxy===\"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function (){})); return true; } catch (e){ return false; }}\n\nfunction _getPrototypeOf(o){ _getPrototypeOf=Object.setPrototypeOf ? Object.getPrototypeOf:function _getPrototypeOf(o){ return o.__proto__||Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\nvar styles=_styles__WEBPACK_IMPORTED_MODULE_4__[\"default\"].block;\n\nvar TeXBlock=function (_Component){\n  _inherits(TeXBlock, _Component);\n\n  var _super=_createSuper(TeXBlock);\n\n  function TeXBlock(props){\n    var _this;\n\n    _classCallCheck(this, TeXBlock);\n\n    _this=_super.call(this, props);\n    _this.state=_this.getInitialState();\n\n    _this._update=function (key){\n      if(_this.state.editMode){\n        return;\n      }\n\n      var store=_this.props.blockProps.getStore();\n\n      _this.setState({\n        editMode: true\n      }, function (){\n        store.setReadOnly(true);\n\n        if(key){\n          store.teXToUpdate={};\n        }\n      });\n    };\n\n    _this.onChange=function (_ref){\n      var teX=_ref.teX;\n\n      _this.setState({\n        teX: teX\n      });\n    };\n\n    _this.save=function (after){\n      _this.setState({\n        editMode: false\n      }, function (){\n        var store=_this.props.blockProps.getStore();\n\n        var teX=_this.state.teX;\n        var _this$props=_this.props,\n            contentState=_this$props.contentState,\n            block=_this$props.block;\n        store.completion.updateMostUsedTeXCmds(teX, block.getData().teX);\n        Object(_modifiers_utils__WEBPACK_IMPORTED_MODULE_3__[\"finishEdit\"])(store).apply(void 0, _toConsumableArray(Object(_modifiers_utils__WEBPACK_IMPORTED_MODULE_3__[\"saveTeX\"])({\n          after: after,\n          contentState: contentState,\n          teX: teX,\n          block: block\n        })));\n      });\n    };\n\n    _this.getCaretPos=function (){\n      var dir=_this.props.blockProps.getStore().teXToUpdate.dir;\n\n      if(!dir||dir==='l'){\n        return _this.state.teX.length;\n      }\n\n      return 0;\n    };\n\n    return _this;\n  }\n\n  _createClass(TeXBlock, [{\n    key: \"getInitialState\",\n    value: function getInitialState(){\n      var block=this.props.block;\n      var teX=block.getData().get('teX');\n      return {\n        editMode: teX.length===0,\n        teX: teX\n      };\n    }\n  }, {\n    key: \"componentWillMount\",\n    value: function componentWillMount(){\n      var store=this.props.blockProps.getStore();\n\n      if(this.state.editMode){\n        store.setReadOnly(true);\n      }\n    }\n  }, {\n    key: \"componentWillReceiveProps\",\n    value: function componentWillReceiveProps(nextProps){\n      var key=nextProps.blockProps.getStore().teXToUpdate.key;\n\n      if(key===nextProps.block.getKey()){\n        this._update(key);\n      }\n    }\n  }, {\n    key: \"render\",\n    value: function render(){\n      var _this2=this;\n\n      var _this$state=this.state,\n          editMode=_this$state.editMode,\n          teX=_this$state.teX,\n          displaystyle=_this$state.displaystyle;\n      var store=this.props.blockProps.getStore();\n      var completion=store.completion;\n      var input=null;\n\n      if(editMode){\n        // className={'TeXBlock-edit'}\n        input=wp.element.createElement(_TeXInput__WEBPACK_IMPORTED_MODULE_2__[\"default\"], {\n          onChange: this.onChange,\n          teX: teX,\n          displaystyle: displaystyle,\n          finishEdit: this.save,\n          completion: completion,\n          caretPosFn: this.getCaretPos,\n          style: styles.edit\n        });\n      }\n\n      var rendered=wp.element.createElement(_MathJaxNode__WEBPACK_IMPORTED_MODULE_1__[\"default\"], null, teX);\n      var style=styles[editMode ? 'preview':'rendered'];\n      return wp.element.createElement(\"div\", {\n        style: {\n          position: editMode ? 'relative':undefined\n        }\n      }, input, wp.element.createElement(\"div\", {\n        onMouseDown: function onMouseDown(){\n          return _this2._update();\n        },\n        style: style\n      }, rendered));\n    }\n  }]);\n\n  return TeXBlock;\n}(react__WEBPACK_IMPORTED_MODULE_0__[\"Component\"]);\n\n\n\n//# sourceURL=webpack:///./src/plugins/mathjax/components/TeXBlock.js?");
}),
"./src/plugins/mathjax/components/TeXInput.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/react/index.js\");\n var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\nfunction _typeof(obj){ \"@babel/helpers - typeof\"; if(typeof Symbol===\"function\"&&typeof Symbol.iterator===\"symbol\"){ _typeof=function _typeof(obj){ return typeof obj; };}else{ _typeof=function _typeof(obj){ return obj&&typeof Symbol===\"function\"&&obj.constructor===Symbol&&obj!==Symbol.prototype ? \"symbol\":typeof obj; };} return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor){ if(!(instance instanceof Constructor)){ throw new TypeError(\"Cannot call a class as a function\"); }}\n\nfunction _defineProperties(target, props){ for (var i=0; i < props.length; i++){ var descriptor=props[i]; descriptor.enumerable=descriptor.enumerable||false; descriptor.configurable=true; if(\"value\" in descriptor) descriptor.writable=true; Object.defineProperty(target, descriptor.key, descriptor); }}\n\nfunction _createClass(Constructor, protoProps, staticProps){ if(protoProps) _defineProperties(Constructor.prototype, protoProps); if(staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass){ if(typeof superClass!==\"function\"&&superClass!==null){ throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype=Object.create(superClass&&superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true }});if(superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p){ _setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o, p){ o.__proto__=p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived){ var hasNativeReflectConstruct=_isNativeReflectConstruct(); return function _createSuperInternal(){ var Super=_getPrototypeOf(Derived), result; if(hasNativeReflectConstruct){ var NewTarget=_getPrototypeOf(this).constructor; result=Reflect.construct(Super, arguments, NewTarget); }else{ result=Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); };}\n\nfunction _possibleConstructorReturn(self, call){ if(call&&(_typeof(call)===\"object\"||typeof call===\"function\")){ return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self){ if(self===void 0){ throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct(){ if(typeof Reflect===\"undefined\"||!Reflect.construct) return false; if(Reflect.construct.sham) return false; if(typeof Proxy===\"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function (){})); return true; } catch (e){ return false; }}\n\nfunction _getPrototypeOf(o){ _getPrototypeOf=Object.setPrototypeOf ? Object.getPrototypeOf:function _getPrototypeOf(o){ return o.__proto__||Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\nvar _isAlpha=function _isAlpha(key){\n  return key.length===1&&/[a-z]/.test(key.toLowerCase());\n};\n\nfunction indent(_ref){\n  var text=_ref.text,\n      start=_ref.start,\n      end=_ref.end;\n  var unindent=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:false;\n  var nl0=text.slice(0, start).split('\\n').length - 1;\n  var nl1=nl0 + (text.slice(start, end).split('\\n').length - 1);\n  var nStart=start;\n  var nEnd=end;\n  var nText=text.split('\\n').map(function (l, i){\n    if(i < nl0||i > nl1){\n      return l;\n    }\n\n    if(!unindent){\n      if(i===nl0){\n        nStart +=2;\n      }\n\n      nEnd +=2;\n      return \"  \".concat(l);\n    }\n\n    if(l.startsWith('  ')){\n      if(i===nl0){\n        nStart -=2;\n      }\n\n      nEnd -=2;\n      return l.slice(2);\n    }\n\n    if(l.startsWith(' ')){\n      if(i===nl0){\n        nStart -=1;\n      }\n\n      nEnd -=1;\n      return l.slice(1);\n    }\n\n    return l;\n  }).join('\\n');\n  return {\n    text: nText,\n    start: nStart,\n    end: nEnd\n  };\n}\n\nvar closeDelim={\n  '{': '}',\n  '(': ')',\n  '[': ']',\n  '|': '|'\n};\n\nvar TeXInput=function (_React$Component){\n  _inherits(TeXInput, _React$Component);\n\n  var _super=_createSuper(TeXInput);\n\n  function TeXInput(props){\n    var _this;\n\n    _classCallCheck(this, TeXInput);\n\n    _this=_super.call(this, props);\n    var onChange=props.onChange,\n        caretPosFn=props.caretPosFn;\n    var pos=caretPosFn();\n    _this.state={\n      start: pos,\n      end: pos\n    };\n    _this.completionList=[];\n    _this.index=0;\n\n    _this._onChange=function (){\n      return onChange({\n        teX: _this.teXinput.value\n      });\n    };\n\n    _this._onSelect=function (){\n      var _this$teXinput=_this.teXinput,\n          start=_this$teXinput.selectionStart,\n          end=_this$teXinput.selectionEnd;\n\n      _this.setState({\n        start: start,\n        end: end\n      });\n    };\n\n    _this._moveCaret=function (offset){\n      var relatif=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:false;\n      var value=_this.props.teX;\n      var _this$state=_this.state,\n          start=_this$state.start,\n          end=_this$state.end;\n      if(start!==end) return;\n      var newOffset=relatif ? start + offset:offset;\n\n      if(newOffset < 0){\n        newOffset=0;\n      }else if(newOffset > value.length){\n        newOffset=value.length;\n      }\n\n      _this.setState({\n        start: newOffset,\n        end: newOffset\n      });\n    };\n\n    _this._insertText=function (text){\n      var offset=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:0;\n      var value=_this.props.teX;\n      var _this$state2=_this.state,\n          start=_this$state2.start,\n          end=_this$state2.end;\n      value=value.slice(0, start) + text + value.slice(end);\n      start +=text.length + offset;\n\n      if(start < 0){\n        start=0;\n      }else if(start > value.length){\n        start=value.length;\n      }\n\n      end=start;\n      onChange({\n        teX: value\n      });\n\n      _this.setState({\n        start: start,\n        end: end\n      });\n    };\n\n    _this.onBlur=function (){\n      return _this.props.finishEdit();\n    };\n\n    _this.handleKey=_this.handleKey.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n\n  _createClass(TeXInput, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount(){\n      var _this2=this;\n\n      var _this$state3=this.state,\n          start=_this$state3.start,\n          end=_this$state3.end;\n      setTimeout(function (){\n        _this2.teXinput.focus();\n\n        _this2.teXinput.setSelectionRange(start, end);\n      }, 0);\n    }\n  }, {\n    key: \"shouldComponentUpdate\",\n    value: function shouldComponentUpdate(nextProps, nextState){\n      if(this.props.teX!==nextProps.teX){\n        return true;\n      }\n\n      var start=nextState.start,\n          end=nextState.end;\n      var _this$teXinput2=this.teXinput,\n          selectionStart=_this$teXinput2.selectionStart,\n          selectionEnd=_this$teXinput2.selectionEnd;\n\n      if(start===selectionStart&&end===selectionEnd){\n        return false;\n      }\n\n      return true;\n    }\n  }, {\n    key: \"componentDidUpdate\",\n    value: function componentDidUpdate(prevProps, prevState){\n      var s=prevState.start,\n          e=prevState.end;\n      var _this$state4=this.state,\n          ns=_this$state4.start,\n          ne=_this$state4.end;\n\n      if(s!==ns||e!==ne){\n        this.teXinput.setSelectionRange(ns, ne);\n      }\n    }\n  }, {\n    key: \"handleKey\",\n    value: function handleKey(evt){\n      var _this3=this;\n\n      var _this$props=this.props,\n          teX=_this$props.teX,\n          finishEdit=_this$props.finishEdit,\n          onChange=_this$props.onChange,\n          displaystyle=_this$props.displaystyle,\n          completion=_this$props.completion;\n      var _this$state5=this.state,\n          start=_this$state5.start,\n          end=_this$state5.end;\n      var inlineMode=displaystyle!==undefined;\n      var collapsed=start===end;\n      var cplDisable=completion.status==='none';\n      var key=evt.key;\n\n      if(!cplDisable&&key!=='Tab'&&key!=='Shift'){\n        this.completionList=[];\n        this.index=0;\n      }\n\n      switch (key){\n        case '$':\n          {\n            if(inlineMode){\n              evt.preventDefault();\n              onChange({\n                displaystyle: !displaystyle\n              });\n            }\n\n            break;\n          }\n\n        case 'Escape':\n          {\n            evt.preventDefault();\n            finishEdit(1);\n            break;\n          }\n\n        case 'ArrowLeft':\n          {\n            var atBegin=collapsed&&end===0;\n\n            if(atBegin){\n              evt.preventDefault();\n              finishEdit(0);\n            }\n\n            break;\n          }\n\n        case 'ArrowRight':\n          {\n            var atEnd=collapsed&&start===teX.length;\n\n            if(atEnd){\n              evt.preventDefault();\n              finishEdit(1);\n            }\n\n            break;\n          }\n\n        default:\n          if(Object.prototype.hasOwnProperty.call(closeDelim, key)){\n            // insertion d'un délimiteur\n            evt.preventDefault();\n\n            this._insertText(key + closeDelim[key], -1);\n          }else if(!cplDisable&&(_isAlpha(key)&&completion.status==='auto'||key==='Tab'&&this.completionList.length > 1||completion.status==='manual'&&evt.ctrlKey&&key===' ')){\n            // completion\n            this._handleCompletion(evt);\n          }else if(key==='Tab'){\n            // gestion de l'indentation\n            var lines=teX.split('\\n');\n\n            if(inlineMode||lines.length <=1){\n              // pas d'indentation dans ce cas\n              evt.preventDefault();\n              finishEdit(evt.shiftKey ? 0:1);\n            }else{\n              var _indent=indent({\n                text: teX,\n                start: start,\n                end: end\n              }, evt.shiftKey),\n                  text=_indent.text,\n                  ns=_indent.start,\n                  ne=_indent.end;\n\n              evt.preventDefault();\n              onChange({\n                teX: text\n              });\n              setTimeout(function (){\n                return _this3.setState({\n                  start: ns,\n                  end: ne\n                });\n              }, 0);\n            }\n          }\n\n      }\n    }\n  }, {\n    key: \"_handleCompletion\",\n    value: function _handleCompletion(evt){\n      var _this4=this;\n\n      var _this$props2=this.props,\n          completion=_this$props2.completion,\n          teX=_this$props2.teX,\n          onChange=_this$props2.onChange;\n      var _this$state6=this.state,\n          start=_this$state6.start,\n          end=_this$state6.end;\n      var key=evt.key;\n      var prefix=completion.getLastTeXCommand (teX.slice(0, start));\n      var pl=prefix.length;\n      var startCmd=start - pl;\n\n      var isAlpha=_isAlpha(key);\n\n      var ns=start;\n      var offset;\n\n      if(!pl){\n        return;\n      }\n\n      if(isAlpha||evt.ctrlKey&&key===' '){\n        this.completionList=completion.computeCompletionList(prefix + (isAlpha ? key:''));\n      }\n\n      var L=this.completionList.length;\n\n      if(L===0){\n        return;\n      }else if(L===1){\n        // une seule possibilité: insertion!\n        this.index=0;\n      }else if(key==='Tab'){\n        // Tab ou S-Tab: on circule...\n        offset=evt.shiftKey ? -1:1;\n        this.index +=offset;\n        this.index=this.index===-1 ? L - 1:this.index % L;\n      }else{\n        // isAlpha est true et plusieurs completions possibles\n        this.index=0;\n        ns=isAlpha ? ns + 1:ns; // pour avancer après la lettre insérée le cas échéant\n      }\n\n      var cmd=this.completionList[this.index];\n      var endCmd=startCmd + cmd.length;\n      var teXUpdated=teX.slice(0, startCmd) + cmd + teX.slice(end);\n      ns=L===1 ? endCmd:ns;\n      evt.preventDefault();\n      onChange({\n        teX: teXUpdated\n      });\n      setTimeout(function (){\n        return _this4.setState({\n          start: ns,\n          end: endCmd\n        });\n      }, 0);\n    } // handleKey(evt){\n    //   const key=evt.key\n    //   const { teX, finishEdit, onChange, displaystyle, completion }=this.props\n    //   const { start, end }=this.state\n    //   const inlineMode=displaystyle!==undefined\n    //   const collapsed=start===end\n    //   const atEnd=collapsed&&teX.length===end\n    //   const atBegin=collapsed&&end===0\n    //   const ArrowLeft=key==='ArrowLeft'\n    //   const ArrowRight=key==='ArrowRight'\n    //   const Escape=key==='Escape'\n    //   const Tab=key==='Tab'\n    //   const Space=key===' '\n    //   const $=key==='$'\n    //   const Shift=evt.shiftKey\n    //   const Ctrl=evt.ctrlKey\n    // const isDelim=Object.prototype.hasOwnProperty\n    //   .call(closeDelim, key)\n    //   const toggleDisplaystyle=$&&inlineMode\n    //   const findCompletion=Tab&&this.completionList.length > 1\n    //   const launchCompletion=Ctrl&&Space\n    //   const isAlpha=key.length===1&&\n    //     /[a-z]/.test(key.toLowerCase())\n    //   // sortie du mode édition\n    //   if((\n    //     ArrowLeft&&atBegin\n    //)||(\n    //     ArrowRight&&atEnd\n    //)||(\n    //     Tab&&this.completionList.length===0\n    //)||(\n    //     Escape\n    //)){\n    //     evt.preventDefault()\n    //     finishEdit(ArrowLeft ? 0:1)\n    //   }\n    //   if(toggleDisplaystyle){\n    //     evt.preventDefault()\n    //     onChange({ displaystyle: !displaystyle })\n    //   }\n    //   // insertion d'un délimiteur\n    //   if(isDelim){\n    //     evt.preventDefault()\n    //     this._insertText(key + closeDelim[key], -1)\n    //   }\n    //   // completion\n    //   if(!findCompletion){\n    //     this.index=0\n    //     this.completionList=[]\n    //   }\n    //   if(\n    //     completion.status!=='none'&&\n    //     (\n    //       (isAlpha&&completion.status==='auto')||\n    //       launchCompletion||\n    //       findCompletion\n    //)\n    //){\n    //     const prefix=getLastTeXCommand (teX.slice(0, start))\n    //     const pl=prefix.length\n    //     const startCmd=start - pl\n    //     let ns=start\n    //     let offset\n    //     if(!pl){ return }\n    //     if(isAlpha||launchCompletion){\n    //       this.completionList=computeCompletionList(\n    //         prefix + (launchCompletion ? '':key),\n    //         this.teXCommands,\n    //         this.mostUsedCommands,\n    //)\n    //     }\n    //     const L=this.completionList.length\n    //     if(L===0){\n    //       return\n    //     }else if(L===1){\n    //       // une seule possibilité: insertion!\n    //       this.index=0\n    //     }else if(findCompletion){\n    //       // Tab ou S-Tab: on circule...\n    //       offset=Shift ? -1:1\n    //       this.index +=offset\n    //       this.index=(this.index===-1) ? L - 1:this.index % L\n    //     }else{\n    //       // isAlpha est true et plusieurs completions possibles\n    //       this.index=0\n    //       ns=isAlpha ? ns + 1:ns // pour avancer après la lettre insérée le cas échéant\n    //     }\n    //     const cmd=this.completionList[this.index]\n    //     const endCmd=startCmd + cmd.length\n    //     const teXUpdated=teX.slice(0, startCmd) +\n    //       cmd + teX.slice(end)\n    //     ns=L===1 ? endCmd:ns\n    //     evt.preventDefault()\n    //     onChange({ teX: teXUpdated })\n    //     setTimeout(()=> this.setState({\n    //       start: ns,\n    //       end: endCmd,\n    //     }), 0)\n    //   }\n    // }\n\n  }, {\n    key: \"render\",\n    value: function render(){\n      var _this5=this;\n\n      var _this$props3=this.props,\n          teX=_this$props3.teX,\n          className=_this$props3.className,\n          style=_this$props3.style;\n      var teXArray=teX.split('\\n');\n      var rows=teXArray.length;\n      var cols=teXArray.map(function (tl){\n        return tl.length;\n      }).reduce(function (acc, size){\n        return size > acc ? size:acc;\n      }, 1);\n      return wp.element.createElement(\"textarea\", {\n        rows: rows,\n        cols: cols,\n        className: className,\n        value: teX,\n        onChange: this._onChange,\n        onSelect: this._onSelect,\n        onBlur: this.onBlur,\n        onKeyDown: this.handleKey,\n        ref: function ref(teXinput){\n          _this5.teXinput=teXinput;\n        },\n        style: style\n      });\n    }\n  }]);\n\n  return TeXInput;\n}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component);\n\n __webpack_exports__[\"default\"]=(TeXInput);\n\n//# sourceURL=webpack:///./src/plugins/mathjax/components/TeXInput.js?");
}),
"./src/plugins/mathjax/components/styles.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nvar commonEdit={\n  border: '0.5px solid red',\n  outline: 'none',\n  fontFamily: '\\'Inconsolata\\', \\'Menlo\\', monospace',\n  fontSize: '1em',\n  boxShadow: '5px 5px 5px rgba(0,0,0,0.7)',\n  background: 'yellow'\n};\nvar commonPreview={\n  position: 'absolute',\n\n  \n  left: '50%',\n  marginRright: '-50%',\n  transform: 'translate(-50%, 0)',\n  padding: '10px',\n  zIndex: 10,\n  background: 'ivory',\n  border: '1px solid #ccc',\n  borderRadius: '5px',\n  boxShadow: '5px 5px 5px rgba(0,0,0,0.7)'\n};\nvar commonRendered={\n  cursor: 'pointer'\n};\n __webpack_exports__[\"default\"]=({\n  inline: {\n    edit: _objectSpread(_objectSpread({}, commonEdit), {}, {\n      display: 'inline-block',\n      textAlign: 'center',\n      padding: '5px'\n    }),\n    preview: _objectSpread(_objectSpread({}, commonPreview), {}, {\n      top: '200%'\n      \n\n    }),\n    rendered: _objectSpread({}, commonRendered)\n  },\n  block: {\n    edit: _objectSpread(_objectSpread({}, commonEdit), {}, {\n      display: 'block',\n      margin: '10px auto 10px',\n      padding: '14px'\n    }),\n    preview: _objectSpread(_objectSpread({}, commonPreview), {}, {\n      top: 'calc(100%+1em)'\n    }),\n    rendered: _objectSpread({}, commonRendered)\n  }\n});\n\n//# sourceURL=webpack:///./src/plugins/mathjax/components/styles.js?");
}),
"./src/plugins/mathjax/index.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n var _utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/mathjax/utils.js\");\n var _mathjax_loadMathJax__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/mathjax/mathjax/loadMathJax.js\");\n var _mathjax_completion__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/mathjax/mathjax/completion.js\");\n var _modifiers_insertTeX__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/mathjax/modifiers/insertTeX.js\");\n var _components_InlineTeX__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__( \"./src/plugins/mathjax/components/InlineTeX.js\");\n var _components_TeXBlock__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__( \"./src/plugins/mathjax/components/TeXBlock.js\");\n\n\n\n\n\n\n\nvar defaultConfig={\n  macros: {},\n  completion: 'auto'\n};\n\nvar createMathjaxPlugin=function createMathjaxPlugin(){\n  var config=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:{};\n\n  var _Object$assign=Object.assign(defaultConfig, config),\n      macros=_Object$assign.macros,\n      completion=_Object$assign.completion,\n      script=_Object$assign.script,\n      mathjaxConfig=_Object$assign.mathjaxConfig;\n\n  Object(_mathjax_loadMathJax__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n    macros: macros,\n    script: script,\n    mathjaxConfig: mathjaxConfig\n  });\n  var store={\n    getEditorState: undefined,\n    setEditorState: undefined,\n    getReadOnly: undefined,\n    setReadOnly: undefined,\n    getEditorRef: undefined,\n    completion: Object(_mathjax_completion__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(completion, macros),\n    teXToUpdate: {}\n  };\n\n  var _insertTeX=function _insertTeX(){\n    var block=arguments.length > 0&&arguments[0]!==undefined ? arguments[0]:false;\n    console.log('_insertTeX');\n    var editorState=store.getEditorState();\n    store.setEditorState(Object(_modifiers_insertTeX__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(editorState, block));\n  };\n\n  var insertChar=function insertChar(_char){\n    var editorState=store.getEditorState();\n    var sel=editorState.getSelection();\n    var offset=sel.getStartOffset() - 1;\n    var newContentState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].replaceText(editorState.getCurrentContent(), sel.merge({\n      anchorOffset: offset,\n      focusOffset: offset + 1\n    }), _char);\n    store.setEditorState(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].push(editorState, newContentState, 'insert-characters'));\n  };\n\n  var keyBindingFn=function keyBindingFn(e, _ref){\n    var getEditorState=_ref.getEditorState;\n    return Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"myKeyBindingFn\"])(getEditorState)(e);\n  };\n\n  var blockRendererFn=function blockRendererFn(block){\n    if(block.getType()==='atomic'&&block.getData().get('mathjax')){\n      return {\n        component: _components_TeXBlock__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n        editable: false,\n        props: {\n          getStore: function getStore(){\n            return store;\n          }\n        }\n      };\n    }\n\n    return null;\n  }; // l'utilisation des flèches gauche ou droite\n  // amène le curseur sur une formule\n\n\n  var updateTeX=function updateTeX(key, dir){\n    // le composant associé à la formule\n    // se sert de cet indicateur\n    // pour se reconnaître\n    // cf.componentWillReceiveProps\n    store.teXToUpdate={\n      key: key,\n      dir: dir\n    };\n    var editorState=store.getEditorState();\n    store.setEditorState(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].forceSelection(editorState, editorState.getSelection()));\n  };\n\n  var handleKeyCommand=function handleKeyCommand (command\n  \n){\n    if(command==='insert-texblock'){\n      _insertTeX(true);\n\n      return 'handled';\n    }\n\n    if(command==='insert-inlinetex'){\n      _insertTeX();\n\n      return 'handled';\n    } // command de la forme 'enter-inline-math-<dir>-<entityKey>',\n    // lancée lorsque l'utilisateur déplace le curseur\n    // sur une formule à l'aide des flèches gauche/droite(dir:l ou r)\n\n\n    if(command.slice(0, 16)==='update-inlinetex'){\n      var dir=command.slice(17, 18);\n      var entityKey=command.slice(19);\n      updateTeX(entityKey, dir);\n      return 'handled';\n    }\n\n    if(command.slice(0, 15)==='update-texblock'){\n      var _dir=command.slice(16, 17);\n\n      var blockKey=command.slice(18);\n      updateTeX(blockKey, _dir);\n      return 'handled';\n    }\n\n    if(command.slice(0, 11)==='insert-char'){\n      var _char2=command.slice(12);\n\n      insertChar(_char2);\n      return 'handled';\n    }\n\n    return 'not-handled';\n  };\n\n  return {\n    initialize: function initialize(_ref2){\n      var getEditorState=_ref2.getEditorState,\n          setEditorState=_ref2.setEditorState,\n          getReadOnly=_ref2.getReadOnly,\n          setReadOnly=_ref2.setReadOnly,\n          getEditorRef=_ref2.getEditorRef;\n      store.getEditorState=getEditorState;\n      store.setEditorState=setEditorState;\n      store.getReadOnly=getReadOnly;\n      store.setReadOnly=setReadOnly;\n      store.getEditorRef=getEditorRef;\n      store.completion=store.completion(getEditorState()); // store.completion.mostUsedTeXCommands=\n      //   getInitialMostUsedTeXCmds(getEditorState())\n    },\n    decorators: [{\n      strategy: _utils__WEBPACK_IMPORTED_MODULE_1__[\"findInlineTeXEntities\"],\n      component: _components_InlineTeX__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n      props: {\n        getStore: function getStore(){\n          return store;\n        }\n      }\n    }],\n    keyBindingFn: keyBindingFn,\n    handleKeyCommand: handleKeyCommand,\n    blockRendererFn: blockRendererFn\n  };\n};\n\n __webpack_exports__[\"default\"]=(createMathjaxPlugin);\n\n//# sourceURL=webpack:///./src/plugins/mathjax/index.js?");
}),
"./src/plugins/mathjax/mathjax/completion.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n var _teXCommands__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/mathjax/mathjax/teXCommands.js\");\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\n\n\nvar teXCmdRegex=/\\\\([a-zA-Z]+)$/;\n\nvar getLastTeXCommand=function getLastTeXCommand (teX){\n  var res=teXCmdRegex.exec(teX);\n  return res ? res[1].toLowerCase():'';\n};\n\nvar _computeCompletionList=function computeCompletionList(cmdPrefix, commands){\n  var mostUsedCommands=arguments.length > 2&&arguments[2]!==undefined ? arguments[2]:{};\n\n  if(cmdPrefix===''){\n    return [];\n  }\n\n  var list=commands[cmdPrefix[0].toLowerCase()].filter(function (cmd){\n    return cmd.toLowerCase().startsWith(cmdPrefix.toLowerCase());\n  });\n\n  if(!mostUsedCommands){\n    return list;\n  }\n\n  list.sort(function (c1, c2){\n    var w1=Object.prototype.hasOwnProperty.call(mostUsedCommands, c1)&&mostUsedCommands[c1]||0;\n    var w2=Object.prototype.hasOwnProperty.call(mostUsedCommands, c2)&&mostUsedCommands[c2]||0;\n\n    if(w1===w2){\n      return 0;\n    }\n\n    if(w1 < w2){\n      return 1;\n    }\n\n    return -1;\n  });\n  return list;\n};\n\nfunction getMostUsedTeXCmds(teX){\n  var cmdRe=/\\\\([a-zA-Z]+)/;\n  var copy=teX;\n  var res={};\n  var search;\n  var cmd;\n\n  while (true){\n    search=cmdRe.exec(copy);\n    if(search===null) break;\n    cmd=search[1];\n    copy=copy.slice(search.index + cmd.length + 1);\n\n    if(Object.prototype.hasOwnProperty.call(res, cmd)){\n      res[cmd] +=1;\n    }else{\n      res[cmd]=1;\n    }\n  }\n\n  return res;\n}\n\nfunction getAllTeX(contentState){\n  var entityMapObj=Object(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"convertToRaw\"])(contentState).entityMap;\n  var entityKeys=Object.keys(entityMapObj);\n  var entityMap=entityKeys.map(function (k){\n    return entityMapObj[k];\n  });// Todo: lorsque drafjs sera en version 0.11.0,\n  // remplacer ce qui précède par\n  // const entityMap=contentState.getBlockMap()\n\n  var blockMap=contentState.getBlockMap();\n  var allTeX=entityMap.filter(function (e){\n    return e.type==='INLINETEX';\n  }) // Todo: lorsque drafjs sera en version 0.11.0,\n  // .filter(e=> e.get('type')==='INLINETEX');;\n  .reduce(function (red, e){\n    return red + e.data.teX;\n  }, ''); // Todo: lorsque drafjs sera en version 0.11.0,\n  // .reduce((red, e)=> red + e.get('data').teX, '')\n\n  allTeX=blockMap.filter(function (b){\n    return b.getData().mathjax;\n  }).reduce(function (red, b){\n    return red + b.getData().teX;\n  }, allTeX);\n  return allTeX;\n}\n\nfunction getInitialMostUsedTeXCmds(editorState){\n  return getMostUsedTeXCmds(getAllTeX(editorState.getCurrentContent()));\n}\n\nfunction _updateMostUsedTeXCmds(newTeX, mostUsedCommands, lastTex){\n  if(!mostUsedCommands){\n    return undefined;\n  }\n\n  var newest=getMostUsedTeXCmds(newTeX);\n  var old=getMostUsedTeXCmds(lastTex);\n\n  var muc=_objectSpread({}, mostUsedCommands);\n\n  var nk=Object.keys(newest);\n  var ok=Object.keys(old); // newest including newest inter old\n\n  var nmuc=nk.reduce(function (red, cmd){\n    var repeat=newest[cmd];\n\n    var nred=_objectSpread({}, red);\n\n    if(Object.prototype.hasOwnProperty.call(old, cmd)){\n      repeat -=old[cmd];\n    }\n\n    if(Object.prototype.hasOwnProperty.call(nred, cmd)){\n      nred[cmd] +=repeat;\n    }else{\n      nred[cmd]=repeat;\n    }\n\n    return nred;\n  }, muc); // old not inside newest\n\n  nmuc=ok.filter(function (k){\n    return nk.indexOf(k)===-1;\n  }).reduce(function (red, cmd){\n    var nred=_objectSpread({}, red);\n\n    if(Object.prototype.hasOwnProperty.call(nred, cmd)){\n      nred[cmd] -=old[cmd];\n    }\n\n    return nred;\n  }, nmuc); // console.log(nmuc)\n\n  return nmuc;\n}\n\nfunction mergeMacros(teXCmds, macros){\n  return Object.keys(macros).reduce(function (red, m){\n    var firstChar=m[0].toLowerCase();\n\n    var tmp=_toConsumableArray(red[firstChar]);\n\n    tmp.unshift(m);\n    tmp.sort();\n    return _objectSpread(_objectSpread({}, red), {}, _defineProperty({}, firstChar, tmp));\n  }, _objectSpread({}, teXCmds));\n}\n\n __webpack_exports__[\"default\"]=(function (status, macros){\n  return function (editorState){\n    return {\n      status: status,\n      teXCommandsAndMacros: status!=='none' ? mergeMacros(_teXCommands__WEBPACK_IMPORTED_MODULE_1__[\"default\"], macros):undefined,\n      mostUsedTeXCommands: status!=='none' ? getInitialMostUsedTeXCmds(editorState):undefined,\n      getLastTeXCommand: getLastTeXCommand,\n      updateMostUsedTeXCmds: function updateMostUsedTeXCmds(teX){\n        var lastTex=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:'';\n        this.mostUsedTeXCommands=_updateMostUsedTeXCmds(teX, this.mostUsedTeXCommands, lastTex);\n      },\n      computeCompletionList: function computeCompletionList(prefix){\n        return _computeCompletionList(prefix, this.teXCommandsAndMacros, this.mostUsedTeXCommands);\n      }\n    };\n  };\n});\n\n//# sourceURL=webpack:///./src/plugins/mathjax/mathjax/completion.js?");
}),
"./src/plugins/mathjax/mathjax/load.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return load; });\nfunction load(src, cb){\n  var head=document.head||document.getElementsByTagName('head')[0];\n  var script=document.createElement('script');\n  script.type='text/javascript';\n  script.async=true;\n  script.src=src;\n\n  if(cb){\n    script.onload=function (){\n      script.onerror=null;\n      script.onload=null;\n      cb(null, script);\n    };\n\n    script.onerror=function (){\n      script.onerror=null;\n      script.onload=null;\n      cb(new Error(\"Failed to load \".concat(src)), script);\n    };\n  }\n\n  head.appendChild(script);\n}\n\n//# sourceURL=webpack:///./src/plugins/mathjax/mathjax/load.js?");
}),
"./src/plugins/mathjax/mathjax/loadMathJax.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _load__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/plugins/mathjax/mathjax/load.js\");\n// const loadScript=require('load-script')\n // mathjax cdn shutdown the 30/04/2017!!! https://cdn.mathjax.org/mathjax/latest/MathJax.js\n\nvar DEFAULT_SCRIPT='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js';\nvar DEFAULT_OPTIONS={\n  jax: ['input/TeX', 'output/CommonHTML'],\n  TeX: {\n    extensions: ['autoload-all.js']\n  },\n  messageStyles: 'none',\n  showProcessingMessages: false,\n  showMathMenu: false,\n  showMathMenuMSIE: false,\n  preview: 'none',\n  delayStartupTypeset: true\n};\n\nvar loadMathJax=function loadMathJax(_ref){\n  var Macros=_ref.macros,\n      script=_ref.script,\n      mathjaxConfig=_ref.mathjaxConfig;\n  var config={};\n  config.script=script||DEFAULT_SCRIPT;\n  config.options=mathjaxConfig||DEFAULT_OPTIONS;\n\n  if(config.options.TeX===undefined){\n    config.options.TeX={};\n  }\n\n  var TeX=Object.assign(config.options.TeX, {\n    Macros: Macros\n  });\n  config.options=Object.assign(config.options, {\n    TeX: TeX\n  });\n\n  if(window.MathJax){\n    window.MathJax.Hub.Config(config.options);\n    window.MathJax.Hub.processSectionDelay=0;\n    return;\n  }\n\n  Object(_load__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(config.script, function (err){\n    if(!err){\n      window.MathJax.Hub.Config(config.options); // avoid flickering of the preview\n\n      window.MathJax.Hub.processSectionDelay=0;\n    }\n  });\n};\n\n __webpack_exports__[\"default\"]=(loadMathJax);\n\n//# sourceURL=webpack:///./src/plugins/mathjax/mathjax/loadMathJax.js?");
}),
"./src/plugins/mathjax/mathjax/processTeX.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return processTeX; });\nvar pendingScripts=[];\nvar pendingCallbacks=[];\nvar needsProcess=false;\n\nfunction doProcess(MathJax){\n  MathJax.Hub.Queue(function (){\n    var oldElementScripts=MathJax.Hub.elementScripts; // voir https://github.com/mathjax/MathJax/blob/master/unpacked/MathJax.js#L2445\n\n    MathJax.Hub.elementScripts=function (){\n      return (\n        \n        pendingScripts\n);\n    };\n\n    try {\n      return MathJax.Hub.Process(null, function (){\n        // Trigger all of the pending callbacks before clearing them\n        // out.\n        pendingCallbacks.forEach(function (cb){\n          return cb();\n        });// for (const callback of pendingCallbacks){\n        //   callback()\n        // }\n\n        pendingScripts=[];\n        pendingCallbacks=[];\n        needsProcess=false;\n      });\n    } catch (e){\n      // IE8 requires `catch` in order to use `finally`\n      throw e;\n    } finally {\n      MathJax.Hub.elementScripts=oldElementScripts;\n    }\n  });\n}\n\n\n\nfunction processTeX(MathJax, script, callback){\n  pendingScripts.push(script);\n  pendingCallbacks.push(callback);\n\n  if(!needsProcess){\n    needsProcess=true;\n    setTimeout(function (){\n      return doProcess(MathJax);\n    }, 0);\n  }\n}\n\n//# sourceURL=webpack:///./src/plugins/mathjax/mathjax/processTeX.js?");
}),
"./src/plugins/mathjax/mathjax/teXCommands.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_exports__[\"default\"]=({\n  a: ['above', 'abovewithdelims', 'acute', 'aleph', 'alpha', 'amalg', 'And', 'angle', 'approx', 'approxeq', // AMSsymbols\n  'arccos', 'arcsin', 'arctan', 'arg', 'array', 'Arrowvert', 'arrowvert', 'ast', 'asymp', 'atop', 'atopwithdelims'],\n  b: ['backepsilon', // AMSsymbols\n  'backprime', // AMSsymbols\n  'backsim', // AMSsymbols\n  'backsimeq', // AMSsymbols\n  'backslash', 'bar', 'barwedge', // AMSsymbols\n  'Bbb', 'Bbbk', // AMSsymbols\n  'bbox', // [bbox]\n  'bcancel', // cancel\n  'because', // AMSsymbols\n  'begin', 'begingroup', // begingroup      non-standard\n  'beta', 'beth', // AMSsymbols\n  'between', // AMSsymbols\n  'bf', 'Big', 'big', 'bigcap', 'bigcirc', 'bigcup', 'Bigg', 'bigg', 'Biggl', 'biggl', 'Biggm', 'biggm', 'Biggr', 'biggr', 'Bigl', 'bigl', 'Bigm', 'bigm', 'bigodot', 'bigoplus', 'bigotimes', 'Bigr', 'bigr', 'bigsqcup', 'bigstar', // AMSsymbols\n  'bigtriangledown', 'bigtriangleup', 'biguplus', 'bigvee', 'bigwedge', 'binom', // AMSmath\n  'blacklozenge', // AMSsymbols\n  'blacksquare', // AMSsymbols\n  'blacktriangle', // AMSsymbols\n  'blacktriangledown', // AMSsymbols\n  'blacktriangleleft', // AMSsymbols\n  'blacktriangleright', // AMSsymbols\n  'bmod', 'boldsymbol', // [boldsymbol]\n  'bot', 'bowtie', 'Box', // AMSsymbols\n  'boxdot', // AMSsymbols\n  'boxed', // AMSmath\n  'boxminus', // AMSsymbols\n  'boxplus', // AMSsymbols\n  'boxtimes', // AMSsymbols\n  'brace', 'bracevert', 'brack', 'breve', 'buildrel', 'bullet', 'Bumpeq', // AMSsymbols\n  'bumpeq' // AMSsymbols\n  ],\n  c: ['cal', 'cancel', // cancel\n  'cancelto', // cancel\n  'cap', 'Cap', // AMSsymbols\n  'cases', 'cdot', 'cdotp', 'cdots', 'ce', // mhchem\n  'cee', // mhchem\n  'centerdot', // AMSsymbols\n  'cf', // mhchem\n  'cfrac', // AMSmath\n  'check', 'checkmark', // AMSsymbols\n  'chi', 'choose', 'circ', 'circeq', // AMSsymbols\n  'circlearrowleft', // AMSsymbols\n  'circlearrowright', // AMSsymbols\n  'circledast', // AMSsymbols\n  'circledcirc', // AMSsymbols\n  'circleddash', // AMSsymbols\n  'circledR', // AMSsymbols\n  'circledS', // AMSsymbols\n  'class', // [HTML]           non-standard\n  'clubsuit', 'colon', 'color', // color\n  'colorbox', // color\n  'complement', // AMSsymbols\n  'cong', 'coprod', 'cos', 'cosh', 'cot', 'coth', 'cr', 'csc', 'cssId', // [HTML]           non-standard\n  'cup', 'Cup', // AMSsymbols\n  'curlyeqprec', // AMSsymbols\n  'curlyeqsucc', // AMSsymbols\n  'curlyvee', // AMSsymbols\n  'curlywedge', // AMSsymbols\n  'curvearrowleft', // AMSsymbols\n  'curvearrowright' // AMSsymbols\n  ],\n  d: ['dagger', 'daleth', // AMSsymbols\n  'dashleftarrow', // AMSsymbols\n  'dashrightarrow', // AMSsymbols\n  'dashv', 'dbinom', // AMSmath\n  'ddagger', 'ddddot', // AMSmath\n  'dddot', // AMSmath\n  'ddot', 'ddots', 'DeclareMathOperator', // AMSmath\n  'definecolor', // color\n  'def', // [newcommand]\n  'deg', 'Delta', 'delta', 'det', 'dfrac', // AMSmath\n  'diagdown', // AMSsymbols\n  'diagup', // AMSsymbols\n  'diamond', 'Diamond', // AMSsymbols\n  'diamondsuit', 'digamma', // AMSsymbols\n  'dim', 'displaylines', 'displaystyle', 'div', 'divideontimes', // AMSsymbols\n  'dot', 'doteq', 'Doteq', // AMSsymbols\n  'doteqdot', // AMSsymbols\n  'dotplus', // AMSsymbols\n  'dots', 'dotsb', 'dotsc', 'dotsi', 'dotsm', 'dotso', 'doublebarwedge', // AMSsymbols\n  'doublecap', // AMSsymbols\n  'doublecup', // AMSsymbols\n  'Downarrow', 'downarrow', 'downdownarrows', // AMSsymbols\n  'downharpoonleft', // AMSsymbols\n  'downharpoonright' // AMSsymbols\n  ],\n  e: ['ell', 'emptyset', 'enclose', // enclose         non-standard\n  'end', 'endgroup', // begingroup      non-standard\n  'enspace', 'epsilon', 'eqalign', 'eqalignno', 'eqcirc', // AMSsymbols\n  'eqref', // [AMSmath]\n  'eqsim', // AMSsymbols\n  'eqslantgtr', // AMSsymbols\n  'eqslantless', // AMSsymbols\n  'equiv', 'eta', 'eth', // AMSsymbols\n  'exists', 'exp'],\n  f: ['fallingdotseq', // AMSsymbols\n  'fbox', 'fcolorbox', // color\n  'Finv', // AMSsymbols\n  'flat', 'forall', 'frac', 'frak', 'frown'],\n  g: ['Game', // AMSsymbols\n  'Gamma', 'gamma', 'gcd', 'gdef', // begingroup\n  'ge', 'genfrac', // AMSmath\n  'geq', 'geqq', // AMSsymbols\n  'geqslant', // AMSsymbols\n  'gets', 'gg', 'ggg', // AMSsymbols\n  'gggtr', // AMSsymbols\n  'gimel', // AMSsymbols\n  'global', // begingroup\n  'gnapprox', // AMSsymbols\n  'gneq', // AMSsymbols\n  'gneqq', // AMSsymbols\n  'gnsim', // AMSsymbols\n  'grave', 'gt', 'gtrapprox', // AMSsymbols\n  'gtrdot', // AMSsymbols\n  'gtreqless', // AMSsymbols\n  'gtreqqless', // AMSsymbols\n  'gtrless', // AMSsymbols\n  'gtrsim', // AMSsymbols\n  'gvertneqq' // AMSsymbols\n  ],\n  h: ['hat', 'hbar', 'hbox', 'hdashline', 'heartsuit', 'hline', 'hom', 'hookleftarrow', 'hookrightarrow', 'hphantom', 'href', // [HTML]\n  'hskip', 'hslash', // AMSsymbols\n  'hspace', 'Huge', 'huge', 'idotsint' // AMSmath\n  ],\n  i: ['iff', 'iiiint', // AMSmath\n  'iiint', 'iint', 'Im', 'imath', 'impliedby', // AMSsymbols\n  'implies', // AMSsymbols\n  'in', 'inf', 'infty', 'injlim', // AMSmath\n  'int', 'intercal', // AMSsymbols\n  'intop', 'iota', 'it'],\n  j: ['jmath', 'Join' // AMSsymbols\n  ],\n  k: ['kappa', 'ker', 'kern'],\n  l: ['label', // [AMSmath]\n  'Lambda', 'lambda', 'land', 'langle', 'LARGE', 'Large', 'large', 'LaTeX', 'lbrace', 'lbrack', 'lceil', 'ldotp', 'ldots', 'le', 'leadsto', // AMSsymbols\n  'left', 'Leftarrow', 'leftarrow', 'leftarrowtail', // AMSsymbols\n  'leftharpoondown', 'leftharpoonup', 'leftleftarrows', // AMSsymbols\n  'Leftrightarrow', 'leftrightarrow', 'leftrightarrows', // AMSsymbols\n  'leftrightharpoons', // AMSsymbols\n  'leftrightsquigarrow', // AMSsymbols\n  'leftroot', 'leftthreetimes', // AMSsymbols\n  'leq', 'leqalignno', 'leqq', // AMSsymbols\n  'leqslant', // AMSsymbols\n  'lessapprox', // AMSsymbols\n  'lessdot', // AMSsymbols\n  'lesseqgtr', // AMSsymbols\n  'lesseqqgtr', // AMSsymbols\n  'lessgtr', // AMSsymbols\n  'lesssim', // AMSsymbols\n  'let', // [newcommand]\n  'lfloor', 'lg', 'lgroup', 'lhd', // AMSsymbols\n  'lim', 'liminf', 'limits', 'limsup', 'll', 'llap', 'llcorner', // AMSsymbols\n  'Lleftarrow', // AMSsymbols\n  'lll', // AMSsymbols\n  'llless', // AMSsymbols\n  'lmoustache', 'ln', 'lnapprox', // AMSsymbols\n  'lneq', // AMSsymbols\n  'lneqq', // AMSsymbols\n  'lnot', 'lnsim', // AMSsymbols\n  'log', 'Longleftarrow', 'longleftarrow', 'Longleftrightarrow', 'longleftrightarrow', 'longmapsto', 'Longrightarrow', 'longrightarrow', 'looparrowleft', // AMSsymbols\n  'looparrowright', // AMSsymbols\n  'lor', 'lower', 'lozenge', // AMSsymbols\n  'lrcorner', // AMSsymbols\n  'Lsh', // AMSsymbols\n  'lt', 'ltimes', // AMSsymbols\n  'lVert', // AMSmath\n  'lvert', // AMSmath\n  'lvertneqq' // AMSsymbols\n  ],\n  m: ['maltese', // AMSsymbols\n  'mapsto', 'mathbb', 'mathbf', 'mathbin', 'mathcal', 'mathchoice', // [mathchoice]\n  'mathclose', 'mathfrak', 'mathinner', 'mathit', 'mathop', 'mathopen', 'mathord', 'mathpunct', 'mathrel', 'mathring', // AMSmath\n  'mathrm', 'mathscr', 'mathsf', 'mathstrut', 'mathtip', // action          non-standard\n  'mathtt', 'matrix', 'max', 'mbox', 'measuredangle', // AMSsymbols\n  'mho', // AMSsymbols\n  'mid', 'middle', 'min', 'mit', 'mkern', 'mmlToken', // non-standard\n  'mod', 'models', 'moveleft', 'moveright', 'mp', 'mskip', 'mspace', 'mu', 'multimap' // AMSsymbols\n  ],\n  n: ['nabla', 'natural', 'ncong', // AMSsymbols\n  'ne', 'nearrow', 'neg', 'negmedspace', // AMSmath\n  'negthickspace', // AMSmath\n  'negthinspace', 'neq', 'newcommand', // [newcommand]\n  'newenvironment', // [newcommand]\n  'Newextarrow', // extpfeil\n  'newline', 'nexists', // AMSsymbols\n  'ngeq', // AMSsymbols\n  'ngeqq', // AMSsymbols\n  'ngeqslant', // AMSsymbols\n  'ngtr', // AMSsymbols\n  'ni', 'nLeftarrow', // AMSsymbols\n  'nleftarrow', // AMSsymbols\n  'nLeftrightarrow', // AMSsymbols\n  'nleftrightarrow', // AMSsymbols\n  'nleq', // AMSsymbols\n  'nleqq', // AMSsymbols\n  'nleqslant', // AMSsymbols\n  'nless', // AMSsymbols\n  'nmid', // AMSsymbols\n  'nobreakspace', // AMSmath\n  'nolimits', 'normalsize', 'not', 'notag', // [AMSmath]\n  'notin', 'nparallel', // AMSsymbols\n  'nprec', // AMSsymbols\n  'npreceq', // AMSsymbols\n  'nRightarrow', // AMSsymbols\n  'nrightarrow', // AMSsymbols\n  'nshortmid', // AMSsymbols\n  'nshortparallel', // AMSsymbols\n  'nsim', // AMSsymbols\n  'nsubseteq', // AMSsymbols\n  'nsubseteqq', // AMSsymbols\n  'nsucc', // AMSsymbols\n  'nsucceq', // AMSsymbols\n  'nsupseteq', // AMSsymbols\n  'nsupseteqq', // AMSsymbols\n  'ntriangleleft', // AMSsymbols\n  'ntrianglelefteq', // AMSsymbols\n  'ntriangleright', // AMSsymbols\n  'ntrianglerighteq', // AMSsymbols\n  'nu', 'nVDash', // AMSsymbols\n  'nVdash', // AMSsymbols\n  'nvDash', // AMSsymbols\n  'nvdash', // AMSsymbols\n  'nwarrow'],\n  o: ['odot', 'oint', 'oldstyle', 'Omega', 'omega', 'omicron', 'ominus', 'operatorname', // AMSmath\n  'oplus', 'oslash', 'otimes', 'over', 'overbrace', 'overleftarrow', 'overleftrightarrow', 'overline', 'overrightarrow', 'overset', 'overwithdelims', 'owns'],\n  p: ['parallel', 'partial', 'perp', 'phantom', 'Phi', 'phi', 'Pi', 'pi', 'pitchfork', // AMSsymbols\n  'pm', 'pmatrix', 'pmb', 'pmod', 'pod', 'Pr', 'prec', 'precapprox', // AMSsymbols\n  'preccurlyeq', // AMSsymbols\n  'preceq', 'precnapprox', // AMSsymbols\n  'precneqq', // AMSsymbols\n  'precnsim', // AMSsymbols\n  'precsim', // AMSsymbols\n  'prime', 'prod', 'projlim', // AMSmath\n  'propto', 'Psi', 'psi'],\n  q: ['qquad', 'quad'],\n  r: ['raise', 'rangle', 'rbrace', 'rbrack', 'rceil', 'Re', 'ref', // [AMSmath]\n  'renewcommand', // [newcommand]\n  'renewenvironment', // [newcommand]\n  'require', // non-standard\n  'restriction', // AMSsymbols\n  'rfloor', 'rgroup', 'rhd', // AMSsymbols\n  'rho', 'right', 'Rightarrow', 'rightarrow', 'rightarrowtail', // AMSsymbols\n  'rightharpoondown', 'rightharpoonup', 'rightleftarrows', // AMSsymbols\n  'rightleftharpoons', 'rightleftharpoons', // AMSsymbols\n  'rightrightarrows', // AMSsymbols\n  'rightsquigarrow', // AMSsymbols\n  'rightthreetimes', // AMSsymbols\n  'risingdotseq', // AMSsymbols\n  'rlap', 'rm', 'rmoustache', 'root', 'Rrightarrow', // AMSsymbols\n  'Rsh', // AMSsymbols\n  'rtimes', // AMSsymbols\n  'Rule', // non-standard\n  'rVert', // AMSmath\n  'rvert' // AMSmath\n  ],\n  s: ['S', 'scr', 'scriptscriptstyle', 'scriptsize', 'scriptstyle', 'searrow', 'sec', 'setminus', 'sf', 'sharp', 'shortmid', // AMSsymbols\n  'shortparallel', // AMSsymbols\n  'shoveleft', // AMSmath\n  'shoveright', // AMSmath\n  'sideset', // AMSmath\n  'Sigma', 'sigma', 'sim', 'simeq', 'sin', 'sinh', 'skew', 'small', 'smallfrown', // AMSsymbols\n  'smallint', 'smallsetminus', // AMSsymbols\n  'smallsmile', // AMSsymbols\n  'smash', 'smile', 'Space', 'space', 'spadesuit', 'sphericalangle', // AMSsymbols\n  'sqcap', 'sqcup', 'sqrt', 'sqsubset', // AMSsymbols\n  'sqsubseteq', 'sqsupset', // AMSsymbols\n  'sqsupseteq', 'square', // AMSsymbols\n  'stackrel', 'star', 'strut', 'style', // [HTML]          non-stanard\n  'subset', 'Subset', // AMSsymbols\n  'subseteq', 'subseteqq', // AMSsymbols\n  'subsetneq', // AMSsymbols\n  'subsetneqq', // AMSsymbols\n  'substack', // AMSmath\n  'succ', 'succapprox', // AMSsymbols\n  'succcurlyeq', // AMSsymbols\n  'succeq', 'succnapprox', // AMSsymbols\n  'succneqq', // AMSsymbols\n  'succnsim', // AMSsymbols\n  'succsim', // AMSsymbols\n  'sum', 'sup', 'supset', 'Supset', // AMSsymbols\n  'supseteq', 'supseteqq', // AMSsymbols\n  'supsetneq', // AMSsymbols\n  'supsetneqq', // AMSsymbols\n  'surd', 'swarrow'],\n  t: ['tag', // [AMSmath]\n  'tan', 'tanh', 'tau', 'tbinom', // AMSmath\n  'TeX', 'text', 'textbf', 'textit', 'textrm', 'textsf', 'textstyle', 'texttt', 'texttip', // action         non-standard\n  'tfrac', // AMSmath\n  'therefore', // AMSsymbols\n  'Theta', 'theta', 'thickapprox', // AMSsymbols\n  'thicksim', // AMSsymbols\n  'thinspace', 'tilde', 'times', 'tiny', 'Tiny', // non-standard\n  'to', 'toggle', // action         non-standard\n  'top', 'triangle', 'triangledown', // AMSsymbols\n  'triangleleft', 'trianglelefteq', // AMSsymbols\n  'triangleq', // AMSsymbols\n  'triangleright', 'trianglerighteq', // AMSsymbols\n  'tt', 'twoheadleftarrow', // AMSsymbols\n  'twoheadrightarrow' // AMSsymbols\n  ],\n  u: ['underbrace', 'underleftarrow', 'underleftrightarrow', 'underline', 'underrightarrow', 'underset', 'unicode', // [unicode]       non-standard\n  'unlhd', // AMSsymbols\n  'unrhd', // AMSsymbols\n  'Uparrow', 'uparrow', 'Updownarrow', 'updownarrow', 'upharpoonleft', // AMSsymbols\n  'upharpoonright', // AMSsymbols\n  'uplus', 'uproot', 'Upsilon', 'upsilon', 'upuparrows', // AMSsymbols\n  'urcorner' // AMSsymbols\n  ],\n  v: ['varDelta', // AMSsymbols\n  'varepsilon', 'varGamma', // AMSsymbols\n  'varinjlim', // AMSmath\n  'varkappa', // AMSsymbols\n  'varLambda', // AMSsymbols\n  'varliminf', // AMSmath\n  'varlimsup', // AMSmath\n  'varnothing', // AMSsymbols\n  'varOmega', // AMSsymbols\n  'varphi', 'varPhi', // AMSsymbols\n  'varpi', 'varPi', // AMSsymbols\n  'varprojlim', // AMSmath\n  'varpropto', // AMSsymbols\n  'varPsi', // AMSsymbols\n  'varrho', 'varsigma', 'varSigma', // AMSsymbols\n  'varsubsetneq', // AMSsymbols\n  'varsubsetneqq', // AMSsymbols\n  'vartheta', 'varTheta', // AMSsymbols\n  'vartriangle', // AMSsymbols\n  'vartriangleleft', // AMSsymbols\n  'vartriangleright', // AMSsymbols\n  'varUpsilon', // AMSsymbols\n  'varXi', // AMSsymbols\n  'vcenter', 'vdash', 'Vdash', // AMSsymbols\n  'vDash', // AMSsymbols\n  'vdots', 'vec', 'vee', 'veebar', // AMSsymbols\n  'verb', // [verb]\n  'Vert', 'vert', 'vphantom', 'Vvdash' // AMSsymbols\n  ],\n  w: ['wedge', 'widehat', 'widetilde', 'wp', 'wr'],\n  x: ['Xi', 'xi', 'xcancel', // cancel\n  'xleftarrow', // AMSmath\n  'xlongequal', // extpfeil\n  'xmapsto', // extpfeil\n  'xrightarrow', // AMSmath\n  'xtofrom', // extpfeil\n  'xtwoheadleftarrow', // extpfeil\n  'xtwoheadrightarrow' // extpfeil\n  ],\n  y: ['yen' // AMSsymbols\n  ],\n  z: ['zeta']\n});// Environments\n// LaTeX environments of the form \\begin{XXX} ... \\end{XXX}\n// are provided where XXX is one of the following:\n// align                  [AMSmath]\n// align*                 [AMSmath]\n// alignat                [AMSmath]\n// alignat*               [AMSmath]\n// aligned                [AMSmath]\n// alignedat              [AMSmath]\n// array\n// Bmatrix\n// bmatrix\n// cases\n// CD                      AMSmath\n// eqnarray\n// eqnarray*\n// equation\n// equation*\n// gather                 [AMSmath]\n// gather*                [AMSmath]\n// gathered               [AMSmath]\n// matrix\n// multline               [AMSmath]\n// multline*              [AMSmath]\n// pmatrix\n// smallmatrix             AMSmath\n// split                  [AMSmath]\n// subarray                AMSmath\n// Vmatrix\n// vmatrix\n\n//# sourceURL=webpack:///./src/plugins/mathjax/mathjax/teXCommands.js?");
}),
"./src/plugins/mathjax/modifiers/customInsertAtomicBlock.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return customInsertAtomicBlock; });\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n var _utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./src/plugins/mathjax/modifiers/utils.js\");\n // import { List, Repeat } from 'immutable'\n\n\nfunction customInsertAtomicBlock(editorState, data) // character=' ',\n{\n  var contentState=editorState.getCurrentContent();\n  var selectionState=editorState.getSelection();\n  var afterRemoval=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].removeRange(contentState, selectionState, 'backward');\n  var targetSelection=afterRemoval.getSelectionAfter();\n  var currentBlockEmpty=Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"isCurrentBlockEmpty\"])(afterRemoval, targetSelection);\n  var atEndOfBlock=Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"isAtEndOfBlock\"])(afterRemoval, targetSelection);\n  var atEndOfContent=Object(_utils__WEBPACK_IMPORTED_MODULE_1__[\"isAtEndOfContent\"])(afterRemoval, targetSelection); // Ne pas diviser un bloc vide, sauf s'il est à la fin du contenu\n\n  var afterSplit = !currentBlockEmpty||atEndOfContent ? draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].splitBlock(afterRemoval, targetSelection):afterRemoval;\n  var insertionTarget=afterSplit.getSelectionAfter();\n  var asAtomicBlock=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].setBlockType(afterSplit, insertionTarget, 'atomic'); // const charData=CharacterMetadata.create({entity: entityKey})\n  // const charData=CharacterMetadata.create()\n\n  var fragmentArray=[new draft_js__WEBPACK_IMPORTED_MODULE_0__[\"ContentBlock\"]({\n    key: Object(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"genKey\"])(),\n    type: 'atomic',\n    // text: character,\n    // characterList: List(Repeat(charData, character.length)),\n    data: data\n  })];\n\n  if(!atEndOfBlock||atEndOfContent){\n    // Pour éviter l'insertion d'un bloc vide inutile dans\n    // le cas où le curseur est la fin d'un bloc\n    fragmentArray.push(new draft_js__WEBPACK_IMPORTED_MODULE_0__[\"ContentBlock\"]({\n      key: Object(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"genKey\"])(),\n      type: 'unstyled' // text: '',\n      // characterList: List(),\n\n    }));\n  }\n\n  var fragment=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"BlockMapBuilder\"].createFromArray(fragmentArray);\n  var withAtomicBlock=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].replaceWithFragment(asAtomicBlock, insertionTarget, fragment);\n  var newContent=withAtomicBlock.merge({\n    selectionBefore: selectionState,\n    selectionAfter: withAtomicBlock.getSelectionAfter().set('hasFocus', false)\n  });\n  return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].push(editorState, newContent, 'insert-fragment');\n}\n\n//# sourceURL=webpack:///./src/plugins/mathjax/modifiers/customInsertAtomicBlock.js?");
}),
"./src/plugins/mathjax/modifiers/insertTeX.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"default\", function(){ return insertTeX; });\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n var immutable__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/immutable/dist/immutable.js\");\n var immutable__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(immutable__WEBPACK_IMPORTED_MODULE_1__);\n var _customInsertAtomicBlock__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/mathjax/modifiers/customInsertAtomicBlock.js\");\n var _utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./src/plugins/mathjax/modifiers/utils.js\");\n\n\n\n\n\nfunction insertInlineTeX(editorState){\n  var contentState=editorState.getCurrentContent();\n  var selection=editorState.getSelection();\n  var teX=''; // si la selection est étendue, utiliser le texte sélectionné\n  // pour initialiser la formule\n\n  if(!selection.isCollapsed()){\n    var blockKey=selection.getStartKey();\n\n    if(blockKey===selection.getEndKey()){\n      teX=contentState.getBlockForKey(blockKey).getText().slice(selection.getStartOffset(), selection.getEndOffset());\n    }\n\n    contentState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].removeRange(contentState, selection, 'backward');\n    selection=contentState.getSelectionAfter();\n  }\n\n  contentState=contentState.createEntity('INLINETEX', 'IMMUTABLE', {\n    teX: teX,\n    displaystyle: false\n  });\n  var entityKey=contentState.getLastCreatedEntityKey(); // insérer un espace si le curseur se trouve au début ou à la fin\n  // d'un bloc\n\n  var atBeginOfBlock=selection.getStartOffset()===0;\n  var atEndOfBlock=Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"isAtEndOfBlock\"])(contentState, selection);\n\n  if(atBeginOfBlock){\n    contentState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].insertText(contentState, selection, ' ');\n    selection=contentState.getSelectionAfter();\n  }\n\n  contentState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].insertText(contentState, selection, '\\t\\t', undefined, entityKey);\n  selection=contentState.getSelectionAfter();\n\n  if(atEndOfBlock){\n    contentState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].insertText(contentState, selection, ' ');\n  }\n\n  return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].push(editorState, contentState, 'apply-entity');\n}\n\nfunction insertTeXBlock(editorState){\n  return Object(_customInsertAtomicBlock__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(editorState, Object(immutable__WEBPACK_IMPORTED_MODULE_1__[\"Map\"])({\n    mathjax: true,\n    teX: ''\n  }));\n}\n\nfunction insertTeX(editorState){\n  var block=arguments.length > 1&&arguments[1]!==undefined ? arguments[1]:false;\n\n  if(block){\n    return insertTeXBlock(editorState);\n  }\n\n  return insertInlineTeX(editorState);\n}\n\n//# sourceURL=webpack:///./src/plugins/mathjax/modifiers/insertTeX.js?");
}),
"./src/plugins/mathjax/modifiers/utils.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"isAtEndOfBlock\", function(){ return isAtEndOfBlock; });\n __webpack_require__.d(__webpack_exports__, \"isAtEndOfContent\", function(){ return isAtEndOfContent; });\n __webpack_require__.d(__webpack_exports__, \"isCurrentBlockEmpty\", function(){ return isCurrentBlockEmpty; });\n __webpack_require__.d(__webpack_exports__, \"getNewBlockSelection\", function(){ return getNewBlockSelection; });\n __webpack_require__.d(__webpack_exports__, \"removeBlock\", function(){ return removeBlock; });\n __webpack_require__.d(__webpack_exports__, \"removeEntity\", function(){ return removeEntity; });\n __webpack_require__.d(__webpack_exports__, \"finishEdit\", function(){ return finishEdit; });\n __webpack_require__.d(__webpack_exports__, \"saveTeX\", function(){ return saveTeX; });\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n var immutable__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/immutable/dist/immutable.js\");\n var immutable__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(immutable__WEBPACK_IMPORTED_MODULE_1__);\nvar _excluded=[\"block\", \"entityKey\", \"displaystyle\", \"blockKey\", \"startPos\"];\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _objectWithoutProperties(source, excluded){ if(source==null) return {}; var target=_objectWithoutPropertiesLoose(source, excluded); var key, i; if(Object.getOwnPropertySymbols){ var sourceSymbolKeys=Object.getOwnPropertySymbols(source); for (i=0; i < sourceSymbolKeys.length; i++){ key=sourceSymbolKeys[i]; if(excluded.indexOf(key) >=0) continue; if(!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key]=source[key]; }} return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded){ if(source==null) return {}; var target={}; var sourceKeys=Object.keys(source); var key, i; for (i=0; i < sourceKeys.length; i++){ key=sourceKeys[i]; if(excluded.indexOf(key) >=0) continue; target[key]=source[key]; } return target; }\n\n\n\nfunction isAtEndOfBlock(contentState, selection){\n  var currentBlockKey=selection.getAnchorKey();\n  var currentBlock=contentState.getBlockForKey(currentBlockKey);\n  return currentBlock.getText().length===selection.getStartOffset();\n}\nfunction isAtEndOfContent(contentState, selection){\n  if(!isAtEndOfBlock(contentState, selection)){\n    return false;\n  }\n\n  var currentBlockKey=selection.getAnchorKey();\n  var lastBlockKey=contentState.getLastBlock().getKey();\n  return currentBlockKey===lastBlockKey;\n}\nfunction isCurrentBlockEmpty(contentState, selection){\n  var currentBlockKey=selection.getAnchorKey();\n  var currentBlock=contentState.getBlockForKey(currentBlockKey);\n  return currentBlock.getText().length===0;\n}\nfunction getNewBlockSelection(blockBefore, blockAfter, after){\n  if(!blockAfter&&!blockBefore){\n    return undefined;\n  }\n\n  var nextBlock;\n  var offset;\n\n  if(after){\n    nextBlock=blockAfter||blockBefore;\n    offset=blockAfter ? 0:nextBlock.getLength();\n  }else{\n    nextBlock=blockBefore||blockAfter;\n    offset=blockBefore ? nextBlock.getLength():0;\n  }\n\n  return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"SelectionState\"].createEmpty(nextBlock.getKey()).merge({\n    anchorOffset: offset,\n    focusOffset: offset,\n    hasFocus: true\n  });\n}\nfunction removeBlock(contentState, block){\n  var after=arguments.length > 2&&arguments[2]!==undefined ? arguments[2]:1;\n  var blockMap=contentState.getBlockMap();\n  var blockKey=block.getKey();\n  var blockAfter=contentState.getBlockAfter(blockKey);\n  var blockBefore=contentState.getBlockBefore(blockKey);\n\n  if(!blockAfter&&!blockBefore){\n    // peut mieux faire ...\n    if(block.getType()==='atomic'&&block.getData().mathjax\n    \n){\n        return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"ContentState\"].createFromText('');\n      }\n\n    return contentState;\n  }\n\n  var newBlockMap=blockMap[\"delete\"](blockKey);\n  return contentState.set('blockMap', newBlockMap).set('selectionAfter', getNewBlockSelection(blockBefore, blockAfter, after));\n}\nfunction removeEntity(contentState, blockKey, start, end){\n  var selToRemove=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"SelectionState\"].createEmpty(blockKey).merge({\n    anchorOffset: start,\n    focusOffset: end\n  });\n  return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].removeRange(contentState, selToRemove, 'backward');\n}\nfunction finishEdit(store){\n  return function (newContentState, newSelection, needRemove){\n    store.setReadOnly(false);\n    var newEditorState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].push(store.getEditorState(), newContentState, needRemove ? 'remove-range':'update-math');\n\n    if(newSelection!==undefined){\n      store.setEditorState(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].forceSelection(newEditorState, newSelection));\n      setTimeout(function (){\n        return store.getEditorRef().focus();\n      }, 5);\n    }else{\n      store.setEditorState(newEditorState);\n    }\n  };\n}\n\nfunction _saveInlineTeX(_ref){\n  var after=_ref.after,\n      contentState=_ref.contentState,\n      teX=_ref.teX,\n      displaystyle=_ref.displaystyle,\n      entityKey=_ref.entityKey,\n      blockKey=_ref.blockKey,\n      startPos=_ref.startPos;\n  var needRemove=teX.length===0;\n  var newContentState;\n  var newSelection;\n\n  if(needRemove){\n    newContentState=removeEntity(contentState, blockKey, startPos, startPos + 1);\n    newSelection=newContentState.getSelectionAfter();\n  }else{\n    newContentState=contentState.mergeEntityData(entityKey, {\n      teX: teX,\n      displaystyle: displaystyle\n    });\n\n    if(after!==undefined){\n      var offset=after ? startPos + 2:startPos;\n      newSelection=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"SelectionState\"].createEmpty(blockKey).merge({\n        anchorOffset: offset,\n        focusOffset: offset,\n        hasFocus: true\n      });\n    }\n  }\n\n  return [newContentState, newSelection, needRemove];\n}\n\nfunction _saveBlockTeX(_ref2){\n  var after=_ref2.after,\n      contentState=_ref2.contentState,\n      teX=_ref2.teX,\n      block=_ref2.block;\n  var needRemove=teX.length===0;\n  var blockKey=block.getKey();\n  var newContentState;\n  var newSelection;\n\n  if(needRemove){\n    newContentState=removeBlock(contentState, block, after);\n    newSelection=newContentState.getSelectionAfter();\n  }else{\n    newContentState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].mergeBlockData(contentState, draft_js__WEBPACK_IMPORTED_MODULE_0__[\"SelectionState\"].createEmpty(blockKey), Object(immutable__WEBPACK_IMPORTED_MODULE_1__[\"Map\"])({\n      teX: teX\n    }));\n\n    if(after!==undefined){\n      newSelection=getNewBlockSelection(contentState.getBlockBefore(blockKey), contentState.getBlockAfter(blockKey), after);\n    }\n  }\n\n  return [newContentState, newSelection, needRemove];\n}\n\nfunction saveTeX(_ref3){\n  var block=_ref3.block,\n      entityKey=_ref3.entityKey,\n      displaystyle=_ref3.displaystyle,\n      blockKey=_ref3.blockKey,\n      startPos=_ref3.startPos,\n      common=_objectWithoutProperties(_ref3, _excluded);\n\n  return entityKey ? _saveInlineTeX(_objectSpread(_objectSpread({}, common), {}, {\n    entityKey: entityKey,\n    displaystyle: displaystyle,\n    blockKey: blockKey,\n    startPos: startPos\n  })):_saveBlockTeX(_objectSpread(_objectSpread({}, common), {}, {\n    block: block\n  }));\n}\n\n//# sourceURL=webpack:///./src/plugins/mathjax/modifiers/utils.js?");
}),
"./src/plugins/mathjax/utils.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n __webpack_require__.d(__webpack_exports__, \"myKeyBindingFn\", function(){ return myKeyBindingFn; });\n __webpack_require__.d(__webpack_exports__, \"findInlineTeXEntities\", function(){ return findInlineTeXEntities; });\n __webpack_require__.d(__webpack_exports__, \"changeDecorator\", function(){ return changeDecorator; });\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n\nvar hasCommandModifier=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"KeyBindingUtil\"].hasCommandModifier;\nvar myKeyBindingFn=function myKeyBindingFn(getEditorState){\n  return function (e){\n    // J'aurais préféré CTRL+$ que CTRL+M, mais cela semble\n    // un peu compliqué car chrome gère mal e.key.\n    // if(e.key==='$'&&hasCommandModifier(e))\n    if(e.keyCode===\n    \n    77&&hasCommandModifier(e)){\n      return 'insert-texblock';\n    }\n\n    if(e.key===\n    \n    '$'\n    \n){\n        var c=getEditorState().getCurrentContent();\n        var s=getEditorState().getSelection();\n        if(!s.isCollapsed()) return 'insert-inlinetex';\n        var bk=s.getStartKey();\n        var b=c.getBlockForKey(bk);\n        var offset=s.getStartOffset() - 1;\n\n        if(b.getText()[offset]==='\\\\'){\n          return \"insert-char-\".concat(e.key);\n        }\n\n        return 'insert-inlinetex';\n      } // if(e.key==='*'){\n    //   return 'test'\n    // }\n    // gestion du cursor au cas où il est situé près d'une formule\n\n\n    if(e.key==='ArrowRight'||e.key==='ArrowLeft'){\n      var d=e.key==='ArrowRight' ? 'r':'l';\n\n      var _s=getEditorState().getSelection();\n\n      var _c=getEditorState().getCurrentContent();\n\n      if(!_s.isCollapsed()){\n        return undefined;\n      }\n\n      var _offset=_s.getStartOffset();\n\n      var blockKey=_s.getStartKey();\n\n      var cb=_c.getBlockForKey(blockKey);\n\n      if(cb.getLength()===_offset&&d==='r'){\n        var _b=_c.getBlockAfter(blockKey);\n\n        if(_b&&_b.getType()==='atomic'&&_b.getData().get('mathjax')){\n          return \"update-texblock-\".concat(d, \"-\").concat(_b.getKey());\n        }\n      }\n\n      if(_offset===0&&d==='l'){\n        var _b2=_c.getBlockBefore(blockKey);\n\n        if(_b2&&_b2.getType()==='atomic'&&_b2.getData().get('mathjax')){\n          return \"update-texblock-\".concat(d, \"-\").concat(_b2.getKey());\n        }\n      }\n\n      var ek=cb.getEntityAt(_offset - (e.key==='ArrowLeft' ? 1:0));\n\n      if(ek&&_c.getEntity(ek).getType()==='INLINETEX'){\n        return \"update-inlinetex-\".concat(d, \"-\").concat(ek);\n      }\n    }\n\n    return Object(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"getDefaultKeyBinding\"])(e);\n  };\n};\nfunction findInlineTeXEntities(contentBlock, callback, contentState){\n  contentBlock.findEntityRanges(function (character){\n    var entityKey=character.getEntity();\n    return entityKey!==null&&contentState.getEntity(entityKey).getType()==='INLINETEX';\n  }, callback);\n}\nfunction changeDecorator(editorState, decorator){\n  return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].create({\n    allowUndo: true,\n    currentContent: editorState.getCurrentContent(),\n    decorator: decorator,\n    selection: editorState.getSelection()\n  });\n}\n\n//# sourceURL=webpack:///./src/plugins/mathjax/utils.js?");
}),
"./src/shortcodes.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext;\n\nvar ShortCodes=function ShortCodes(props){\n  return wp.element.createElement(\"div\", {\n    className: \"vibe_editor_modal\"\n  }, wp.element.createElement(\"span\", {\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  }), wp.element.createElement(\"div\", {\n    className: \"ve_modal-content\"\n  }, wp.element.createElement(\"div\", {\n    className: \"ve_modal-header\"\n  }, wp.element.createElement(\"h3\", null, window.vibeEditor.translations.advance_elements), wp.element.createElement(\"span\", {\n    className: \"vicon vicon-close\",\n    onClick: function onClick(e){\n      props.close(false);\n    }\n  })), wp.element.createElement(\"div\", {\n    className: \"ve_modal-body\"\n  }, wp.element.createElement(\"div\", {\n    className: \"shortcodes_wrapper\"\n  }, window.vibeEditor.shortcodes.map(function (shortcode){\n    return wp.element.createElement(\"div\", {\n      className: \"shortcode\",\n      onClick: function onClick(){\n        props.share(shortcode);\n        props.close(false);\n      }\n    }, shortcode.icon.length > 50 ? wp.element.createElement(\"span\", {\n      dangerouslySetInnerHTML: {\n        __html: shortcode.icon\n      }\n    }):wp.element.createElement(\"span\", {\n      className: shortcode.icon\n    }), wp.element.createElement(\"strong\", null, shortcode.title));\n  })))));\n};\n\n __webpack_exports__[\"default\"]=(ShortCodes);\n\n//# sourceURL=webpack:///./src/shortcodes.js?");
}),
"./src/veditor.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var draft_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./node_modules/draft-js/lib/Draft.js\");\n var draft_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(draft_js__WEBPACK_IMPORTED_MODULE_0__);\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__( \"./node_modules/draft-js-plugins-editor/lib/index.js\");\n var draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_1__);\n var _plugins_anchor_index__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__( \"./src/plugins/anchor/index.js\");\n var draft_js_tooltip_plugin__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__( \"./node_modules/draft-js-tooltip-plugin/lib/index.js\");\n var draft_js_tooltip_plugin__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(draft_js_tooltip_plugin__WEBPACK_IMPORTED_MODULE_3__);\n var _plugins_mathjax__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__( \"./src/plugins/mathjax/index.js\");\n var _plugins_highlight_index__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__( \"./src/plugins/highlight/index.js\");\n var draft_js_inline_toolbar_plugin__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__( \"./node_modules/draft-js-inline-toolbar-plugin/lib/index.js\");\n var draft_js_inline_toolbar_plugin__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(draft_js_inline_toolbar_plugin__WEBPACK_IMPORTED_MODULE_6__);\n var draft_js_side_toolbar_plugin__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__( \"./node_modules/draft-js-side-toolbar-plugin/lib/index.js\");\n var draft_js_side_toolbar_plugin__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(draft_js_side_toolbar_plugin__WEBPACK_IMPORTED_MODULE_7__);\n var draft_js_image_plugin__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__( \"./node_modules/draft-js-image-plugin/lib/index.js\");\n var draft_js_image_plugin__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(draft_js_image_plugin__WEBPACK_IMPORTED_MODULE_8__);\n var draft_js_alignment_plugin__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__( \"./node_modules/draft-js-alignment-plugin/lib/index.js\");\n var draft_js_alignment_plugin__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(draft_js_alignment_plugin__WEBPACK_IMPORTED_MODULE_9__);\n var draft_js_focus_plugin__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__( \"./node_modules/draft-js-focus-plugin/lib/index.js\");\n var draft_js_focus_plugin__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(draft_js_focus_plugin__WEBPACK_IMPORTED_MODULE_10__);\n var draft_js_resizeable_plugin__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__( \"./node_modules/draft-js-resizeable-plugin/lib/index.js\");\n var draft_js_resizeable_plugin__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(draft_js_resizeable_plugin__WEBPACK_IMPORTED_MODULE_11__);\n var draft_js_drag_n_drop_plugin__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__( \"./node_modules/draft-js-drag-n-drop-plugin/lib/index.js\");\n var draft_js_drag_n_drop_plugin__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(draft_js_drag_n_drop_plugin__WEBPACK_IMPORTED_MODULE_12__);\n var draft_js_static_toolbar_plugin__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__( \"./node_modules/draft-js-static-toolbar-plugin/lib/index.js\");\n var draft_js_static_toolbar_plugin__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(draft_js_static_toolbar_plugin__WEBPACK_IMPORTED_MODULE_13__);\n var _plugins_divider_index__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__( \"./src/plugins/divider/index.js\");\n var _vibeform_fullform__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__( \"./src/vibeform/fullform.js\");\n var draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__( \"./node_modules/draft-js-buttons/lib/index.js\");\n var draft_js_buttons__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__);\n var draft_js_export_html__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__( \"./node_modules/draft-js-export-html/esm/main.js\");\n var _columnmodal__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__( \"./src/columnmodal.js\");\n var _mediamodal__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__( \"./src/mediamodal.js\");\n var _components_aicontent__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__( \"./src/components/aicontent.js\");\n var _shortcodes__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__( \"./src/shortcodes.js\");\n var _functions__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__( \"./src/functions.js\");\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    render=_wp$element.render,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    useContext=_wp$element.useContext,\n    useRef=_wp$element.useRef;\nvar _wp$data=wp.data,\n    dispatch=_wp$data.dispatch,\n    select=_wp$data.select;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n //import createVideoPlugin from '@draft-js-plugins/video';\n\n\n //import ImageAdd from './imageadd';\n\n\n\n\n\n\n\n\n\nvar VEDITOR=function VEDITOR(props){\n  var _useState=useState(function (){\n    if(props.content){\n      return props.content;\n    }else{\n      return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].createEmpty();\n    }\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      vibeEditorState=_useState2[0],\n      setVibeEditorState=_useState2[1];\n\n  var _useState3=useState(false),\n      _useState4=_slicedToArray(_useState3, 2),\n      fixedToolBar=_useState4[0],\n      setFixedToolBar=_useState4[1];\n\n  var _useState5=useState(false),\n      _useState6=_slicedToArray(_useState5, 2),\n      imageInEditor=_useState6[0],\n      setImageInEditor=_useState6[1];\n\n  var _useState7=useState(false),\n      _useState8=_slicedToArray(_useState7, 2),\n      media_modal_show=_useState8[0],\n      setMediaModalShow=_useState8[1];\n\n  var _useState9=useState(false),\n      _useState10=_slicedToArray(_useState9, 2),\n      customBlockModal=_useState10[0],\n      setCustomBlockModal=_useState10[1];\n\n  var _useState11=useState(false),\n      _useState12=_slicedToArray(_useState11, 2),\n      aiContentModel=_useState12[0],\n      setAIContentModel=_useState12[1];\n\n  var editorRef=useRef(null);\n\n  var _useState13=useState(function (){\n    var inlineToolbarPlugin=draft_js_inline_toolbar_plugin__WEBPACK_IMPORTED_MODULE_6___default()();\n    var sideToolbarPlugin=draft_js_side_toolbar_plugin__WEBPACK_IMPORTED_MODULE_7___default()({\n      position: 'left'\n    });\n    var toolbarPlugin=draft_js_static_toolbar_plugin__WEBPACK_IMPORTED_MODULE_13___default()(); //const codeEditorPlugin=createCodeEditorPlugin();\n\n    //const codeEditorPlugin=createCodeEditorPlugin();\n    var dividerPlugin=Object(_plugins_divider_index__WEBPACK_IMPORTED_MODULE_14__[\"default\"])();\n    var mathjaxPlugin=Object(_plugins_mathjax__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({});//const videoPlugin=createVideoPlugin({ decorator });\n\n    //const videoPlugin=createVideoPlugin({ decorator });\n    var imagePlugin=draft_js_image_plugin__WEBPACK_IMPORTED_MODULE_8___default()({\n      decorator: decorator\n    });\n    var focusPlugin=draft_js_focus_plugin__WEBPACK_IMPORTED_MODULE_10___default()();\n    var resizeablePlugin=draft_js_resizeable_plugin__WEBPACK_IMPORTED_MODULE_11___default()();\n    var blockDndPlugin=draft_js_drag_n_drop_plugin__WEBPACK_IMPORTED_MODULE_12___default()();\n    var alignmentPlugin=draft_js_alignment_plugin__WEBPACK_IMPORTED_MODULE_9___default()();\n    var linkPlugin=Object(_plugins_anchor_index__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n      placeholder: 'https://',\n      linkTarget: '_blank'\n    });\n    var tooltipPlugin=draft_js_tooltip_plugin__WEBPACK_IMPORTED_MODULE_3___default()({\n      placeholder: window.vibebp.translations.type_here\n    });\n    var highlightPlugin=Object(_plugins_highlight_index__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n      placeholder: window.vibeEditor.translations.select_color\n    });\n    var decorator=Object(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_1__[\"composeDecorators\"])(resizeablePlugin.decorator, alignmentPlugin.decorator, focusPlugin.decorator, blockDndPlugin.decorator);\n    var AlignmentTool=alignmentPlugin.AlignmentTool;\n    var SideToolbar=sideToolbarPlugin.SideToolbar;\n    var InlineToolbar=inlineToolbarPlugin.InlineToolbar;\n    var Toolbar=toolbarPlugin.Toolbar;\n    var LinkButton=linkPlugin.LinkButton;\n    var TipButton=tooltipPlugin.TipButton;\n    var HighlightButton=highlightPlugin.HighlightButton;\n    var DividerButton=dividerPlugin.DividerButton; //const {MathButton}=mathjaxPlugin;\n\n    //const {MathButton}=mathjaxPlugin;\n    var plugins=[toolbarPlugin, inlineToolbarPlugin, sideToolbarPlugin, linkPlugin, blockDndPlugin, focusPlugin, alignmentPlugin, resizeablePlugin, imagePlugin, //videoPlugin,\n    tooltipPlugin, highlightPlugin, mathjaxPlugin, dividerPlugin];\n    return {\n      plugins: plugins,\n      Toolbar: Toolbar,\n      SideToolbar: SideToolbar,\n      InlineToolbar: InlineToolbar,\n      AlignmentTool: AlignmentTool,\n      LinkButton: LinkButton,\n      TipButton: TipButton,\n      HighlightButton: HighlightButton,\n      DividerButton: DividerButton\n    };\n  }),\n      _useState14=_slicedToArray(_useState13, 1),\n      _useState14$=_useState14[0],\n      plugins=_useState14$.plugins,\n      Toolbar=_useState14$.Toolbar,\n      SideToolbar=_useState14$.SideToolbar,\n      AlignmentTool=_useState14$.AlignmentTool,\n      InlineToolbar=_useState14$.InlineToolbar,\n      LinkButton=_useState14$.LinkButton,\n      TipButton=_useState14$.TipButton,\n      HighlightButton=_useState14$.HighlightButton,\n      DividerButton=_useState14$.DividerButton;\n\n  var alignmentStyles=['left', 'right', 'center'];\n\n  var applyAlignment=function applyAlignment(newStyle){\n    var styleForRemove=alignmentStyles.filter(function (style){\n      return style!==newStyle;\n    });\n    var currentContent=vibeEditorState.getCurrentContent();\n    var selection=vibeEditorState.getSelection();\n    var focusBlock=currentContent.getBlockForKey(selection.getFocusKey());\n    var anchorBlock=currentContent.getBlockForKey(selection.getAnchorKey());\n    var isBackward=selection.getIsBackward();\n    var selectionMerge={\n      anchorOffset: 0,\n      focusOffset: focusBlock.getLength()\n    };\n\n    if(isBackward){\n      selectionMerge.anchorOffset=anchorBlock.getLength();\n    }\n\n    var finalSelection=selection.merge(selectionMerge);\n    var finalContent=styleForRemove.reduce(function (content, style){\n      return draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].removeInlineStyle(content, finalSelection, style);\n    }, currentContent);\n    var modifiedContent=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"Modifier\"].applyInlineStyle(finalContent, finalSelection, newStyle); //let nmodifiedContent=Modifier.setBlockData(finalContent, modifiedContent,{'align':newStyle});\n\n    var nextEditorState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].push(vibeEditorState, modifiedContent, 'change-inline-style');\n    setVibeEditorState(nextEditorState);\n  };\n\n  var blockStyleFn=function blockStyleFn(block){\n    var alignment='left';\n    block.findStyleRanges(function (e){\n      if(e.hasStyle('center')){\n        alignment='center';\n      }\n\n      if(e.hasStyle('right')){\n        alignment='right';\n      }\n    });\n    return \"editor-alignment-\".concat(alignment);\n  };\n\n  var vibeBlockRenderFn=function vibeBlockRenderFn(contentBlock){\n    if(contentBlock.getType()==='atomic'){\n      return {\n        component: Media,\n        editable: false\n      };\n    }\n  };\n\n  var onEditorChange=function onEditorChange(editorState){\n    setVibeEditorState(editorState);\n    props.update(editorState);\n  };\n\n  var focusEditor=function focusEditor(i, e){\n    e.preventDefault();\n    e.stopPropagation();\n  };\n\n  useEffect(function (){\n    if(props.content){\n      setVibeEditorState(props.content);\n    }\n  }, [props.content]); //\n\n  useEffect(function (){\n    localforage.getItem('fixedToolbar').then(function (fix){\n      if(fix){\n        setTimeout(function (){\n          setFixedToolBar(true);\n        }, 500);\n      }\n    });\n  }, [props.plugins]);\n\n  var Audio=function Audio(props){\n    return wp.element.createElement(\"audio\", {\n      controls: true,\n      src: props.src\n    });\n  };\n\n  var Image=function Image(props){\n    return wp.element.createElement(\"img\", {\n      src: props.src,\n      alt: \"Example\"\n    });\n  };\n\n  var Video=function Video(props){\n    return wp.element.createElement(\"video\", {\n      controls: true,\n      src: props.src\n    });\n  };\n\n  var Media=function Media(props){\n    var entity=props.contentState.getEntity(props.block.getEntityAt(0));\n\n    var _entity$getData=entity.getData(),\n        src=_entity$getData.src;\n\n    var type=entity.getType();\n    var media; //console.log('-->',type,props);\n\n    if(type==='audio'){\n      media=wp.element.createElement(Audio, {\n        src: src\n      });\n    }else if(type==='image'){\n      media=wp.element.createElement(Image, {\n        src: src\n      });\n    }else if(type==='video'){\n      media=wp.element.createElement(Video, {\n        src: src\n      });\n    }\n\n    return media;\n  };\n\n  var media_block_creater=function media_block_creater(media){\n    if(imageInEditor!==false){\n      var editorState=imageInEditor.getEditorState();\n\n      if(media.type=='image'){\n        imageInEditor.setEditorState(plugins[plugins.findIndex(function (e){\n          return e.hasOwnProperty('addImage');\n        })].addImage(editorState, media.url, media.attributes));\n      }else{\n        var attributes={\n          dataSrc: media.url,\n          type: media.type,\n          \"class\": 'video_plyr'\n        };\n        var contentState=editorState.getCurrentContent();\n        var contentStateWithEntity=contentState.createEntity(media.type, 'IMMUTABLE', _objectSpread({\n          src: media.url\n        }, attributes));\n        var entityKey=contentStateWithEntity.getLastCreatedEntityKey();\n        var newEditorState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].set(editorState, {\n          currentContent: contentStateWithEntity\n        });\n        imageInEditor.setEditorState(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"AtomicBlockUtils\"].insertAtomicBlock(newEditorState, entityKey, ' '));\n      }\n\n      setImageInEditor(false);\n    }else{\n      var ncontent=[];\n\n      if(Array.isArray(props.content)){\n        ncontent=_toConsumableArray(props.content);\n      }\n\n      ncontent.push({\n        type: 'media',\n        content: media\n      });//setContent(ncontent);\n\n      props.update(ncontent);\n    }\n  };\n\n  var appendBlocksFromHtml=function appendBlocksFromHtml(htmlString){\n    console.log(htmlString, vibeEditorState);\n    var newBlockMap=Object(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"convertFromHTML\"])(htmlString);\n    var contentState=vibeEditorState.getCurrentContent();\n    var blockMap=contentState.getBlocksAsArray();\n    console.log(htmlString);\n    newBlockMap.contentBlocks=blockMap.concat(newBlockMap.contentBlocks);\n    var newContentState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"ContentState\"].createFromBlockArray(newBlockMap, contentState.getEntityMap());\n    var newState=draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].moveSelectionToEnd(draft_js__WEBPACK_IMPORTED_MODULE_0__[\"EditorState\"].push(vibeEditorState, newContentState, 'change-block-data'));\n    console.log(newState);\n    setVibeEditorState(newState);\n  };\n\n  useEffect(function (){\n    document.addEventListener('vibebp_editor_modal_output_' + customBlockModal, function (e){\n      appendBlocksFromHtml(e.detail.html);\n    }, false);\n    document.addEventListener('vibebp_editor_modal_output_ai', function (e){\n      console.log(e.detail);\n      appendBlocksFromHtml(e.detail);\n    }, false);\n  }, [customBlockModal]);\n  return wp.element.createElement(Fragment, null, wp.element.createElement(\"div\", {\n    className: fixedToolBar ? 'editor_wrapper fixed_toolbar':'editor_wrapper',\n    onClick: function onClick(e){\n      setTimeout(function (){\n        if(e.target&&e.target.tagName!='INPUT'&&e.target.tagName!='SELECT'){\n          editorRef.current.focus();\n        }\n      }, 0);\n    }\n  }, wp.element.createElement(draft_js_plugins_editor__WEBPACK_IMPORTED_MODULE_1___default.a, {\n    ref: function ref(editor){\n      return editorRef.current=editor;\n    },\n    placeholder: window.vibebp.translations.type_here,\n    editorState: vibeEditorState,\n    onChange: onEditorChange,\n    textDirectionality: window.vibeEditor.textdirection,\n    blockStyleFn: blockStyleFn,\n    blockRendererFn: vibeBlockRenderFn,\n    plugins: plugins\n  }), fixedToolBar ? wp.element.createElement(Toolbar, null, function (externalProps){\n    return wp.element.createElement(Fragment, null, wp.element.createElement(\"div\", null, wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"BoldButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"ItalicButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"UnderlineButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"UnorderedListButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"OrderedListButton\"], externalProps), wp.element.createElement(LinkButton, externalProps), wp.element.createElement(TipButton, externalProps), wp.element.createElement(HighlightButton, externalProps)), wp.element.createElement(\"div\", null, wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"HeadlineOneButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"HeadlineTwoButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"HeadlineThreeButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"BlockquoteButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"CodeBlockButton\"], externalProps), wp.element.createElement(DividerButton, externalProps), wp.element.createElement(\"button\", {\n      className: \"draftJsToolbar__button__qi1gf vicon vicon-align-left\",\n      onMouseDown: function onMouseDown(){\n        return applyAlignment('left');\n      }\n    }), wp.element.createElement(\"button\", {\n      className: \"draftJsToolbar__button__qi1gf vicon vicon-align-center\",\n      onMouseDown: function onMouseDown(){\n        return applyAlignment('center');\n      }\n    }), wp.element.createElement(\"button\", {\n      className: \"draftJsToolbar__button__qi1gf vicon vicon-align-right\",\n      onMouseDown: function onMouseDown(){\n        return applyAlignment('right');\n      }\n    }), wp.element.createElement(\"div\", {\n      className: \"draftJsToolbar__buttonWrapper__1Dmqh\",\n      onClick: function onClick(){\n        setImageInEditor(externalProps);\n        setMediaModalShow(true);\n      }\n    }, wp.element.createElement(\"button\", {\n      \"class\": \"draftJsToolbar__button__qi1gf stroke\"\n    }, wp.element.createElement(\"svg\", {\n      xmlns: \"http://www.w3.org/2000/svg\",\n      width: \"24\",\n      height: \"24\",\n      viewBox: \"0 0 24 24\",\n      fill: \"none\",\n      stroke: \"currentColor\",\n      \"stroke-width\": \"2\",\n      \"stroke-linecap\": \"round\",\n      \"stroke-linejoin\": \"round\",\n      \"class\": \"feather feather-image\"\n    }, wp.element.createElement(\"rect\", {\n      x: \"3\",\n      y: \"3\",\n      width: \"18\",\n      height: \"18\",\n      rx: \"2\",\n      ry: \"2\"\n    }), wp.element.createElement(\"circle\", {\n      cx: \"8.5\",\n      cy: \"8.5\",\n      r: \"1.5\"\n    }), wp.element.createElement(\"polyline\", {\n      points: \"21 15 16 10 5 21\"\n    })))), wp.element.createElement(\"div\", {\n      className: \"draftJsToolbar__buttonWrapper__1Dmqh\",\n      onClick: function onClick(){\n        setAIContentModel(true);\n      }\n    }, wp.element.createElement(\"button\", {\n      \"class\": \"draftJsToolbar__button__qi1gf nostroke\"\n    }, wp.element.createElement(\"svg\", {\n      xmlns: \"http://www.w3.org/2000/svg\",\n      viewBox: \"0 0 24 24\"\n    }, wp.element.createElement(\"path\", {\n      d: \"M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM6 7C5.44772 7 5 7.44772 5 8V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V8C19 7.44772 18.5523 7 18 7H13H11H6ZM2 10H0V16H2V10ZM22 10H24V16H22V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM15 14.5C15.8284 14.5 16.5 13.8284 16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5Z\"\n    })))), window.vibeEditor.customBlocks.length ? window.vibeEditor.customBlocks.map(function (modal){\n      return wp.element.createElement(\"div\", {\n        className: \"draftJsToolbar__buttonWrapper__1Dmqh nostroke\",\n        onClick: function onClick(){\n          setCustomBlockModal(modal.id);\n          document.dispatchEvent(new Event('vibebp_editor_modal_' + modal.id));\n        }\n      }, wp.element.createElement(\"button\", {\n        className: 'draftJsToolbar__button__qi1gf vibebp_editor_modal_' + modal.id + '_button',\n        dangerouslySetInnerHTML: {\n          __html: modal.icon\n        }\n      }));\n    }):''), wp.element.createElement(\"div\", {\n      className: \"fix_toolbar\"\n    }, wp.element.createElement(\"span\", {\n      className: \"vicon vicon-pin-alt\",\n      onClick: function onClick(){\n        setFixedToolBar(false);\n        localforage.removeItem('fixedToolbar');\n      }\n    })));\n  }):wp.element.createElement(Fragment, null, wp.element.createElement(InlineToolbar, null, // may be use React.Fragment instead of div to improve perfomance after React 16\n  function (externalProps){\n    return wp.element.createElement(\"div\", null, wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"BoldButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"ItalicButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"UnderlineButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"UnorderedListButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"OrderedListButton\"], externalProps), wp.element.createElement(LinkButton, externalProps), wp.element.createElement(TipButton, externalProps), wp.element.createElement(HighlightButton, externalProps));\n  }), wp.element.createElement(SideToolbar, null, function (externalProps){\n    return wp.element.createElement(\"div\", null, wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"HeadlineOneButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"HeadlineTwoButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"HeadlineThreeButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"BlockquoteButton\"], externalProps), wp.element.createElement(draft_js_buttons__WEBPACK_IMPORTED_MODULE_16__[\"CodeBlockButton\"], externalProps), wp.element.createElement(DividerButton, externalProps), wp.element.createElement(\"button\", {\n      className: \"draftJsToolbar__button__qi1gf vicon vicon-align-left\",\n      onMouseDown: function onMouseDown(){\n        return applyAlignment('left');\n      }\n    }), wp.element.createElement(\"button\", {\n      className: \"draftJsToolbar__button__qi1gf vicon vicon-align-center\",\n      onMouseDown: function onMouseDown(){\n        return applyAlignment('center');\n      }\n    }), wp.element.createElement(\"button\", {\n      className: \"draftJsToolbar__button__qi1gf vicon vicon-align-right\",\n      onMouseDown: function onMouseDown(){\n        return applyAlignment('right');\n      }\n    }), wp.element.createElement(\"div\", {\n      \"class\": \"draftJsToolbar__buttonWrapper__1Dmqh\",\n      onClick: function onClick(){\n        setImageInEditor(externalProps);\n        setMediaModalShow(true);\n      }\n    }, wp.element.createElement(\"button\", {\n      className: \"draftJsToolbar__button__qi1gf stroke\"\n    }, wp.element.createElement(\"svg\", {\n      xmlns: \"http://www.w3.org/2000/svg\",\n      width: \"24\",\n      height: \"24\",\n      viewBox: \"0 0 24 24\",\n      fill: \"none\",\n      stroke: \"currentColor\",\n      \"stroke-width\": \"2\",\n      \"stroke-linecap\": \"round\",\n      \"stroke-linejoin\": \"round\",\n      \"class\": \"feather feather-image\"\n    }, wp.element.createElement(\"rect\", {\n      x: \"3\",\n      y: \"3\",\n      width: \"18\",\n      height: \"18\",\n      rx: \"2\",\n      ry: \"2\"\n    }), wp.element.createElement(\"circle\", {\n      cx: \"8.5\",\n      cy: \"8.5\",\n      r: \"1.5\"\n    }), wp.element.createElement(\"polyline\", {\n      points: \"21 15 16 10 5 21\"\n    })))), wp.element.createElement(\"div\", {\n      className: \"fix_toolbar\"\n    }, wp.element.createElement(\"span\", {\n      className: \"vicon vicon-pin\",\n      onClick: function onClick(){\n        setFixedToolBar(true);\n        localforage.setItem('fixedToolbar', 1);\n      }\n    })));\n  }))), media_modal_show ? wp.element.createElement(_mediamodal__WEBPACK_IMPORTED_MODULE_19__[\"default\"], {\n    close: setMediaModalShow,\n    share: media_block_creater\n  }):'', aiContentModel ? wp.element.createElement(_components_aicontent__WEBPACK_IMPORTED_MODULE_20__[\"default\"], {\n    close: function close(){\n      return setAIContentModel(false);\n    },\n    output: appendBlocksFromHtml\n  }):'', wp.element.createElement(Fragment, null, window.vibeEditor.customBlocks.length ? window.vibeEditor.customBlocks.map(function (modal){\n    return wp.element.createElement(\"div\", {\n      className: 'vibebp_editor_modal_' + modal.id\n    });\n  }):''));\n};\n\n __webpack_exports__[\"default\"]=(VEDITOR);\n\n//# sourceURL=webpack:///./src/veditor.js?");
}),
"./src/vibeform/formsubmission.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _functions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/functions.js\");\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction ownKeys(object, enumerableOnly){ var keys=Object.keys(object); if(Object.getOwnPropertySymbols){ var symbols=Object.getOwnPropertySymbols(object); if(enumerableOnly){ symbols=symbols.filter(function (sym){ return Object.getOwnPropertyDescriptor(object, sym).enumerable; });} keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target){ for (var i=1; i < arguments.length; i++){ var source=arguments[i]!=null ? arguments[i]:{}; if(i % 2){ ownKeys(Object(source), true).forEach(function (key){ _defineProperty(target, key, source[key]); });}else if(Object.getOwnPropertyDescriptors){ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); }else{ ownKeys(Object(source)).forEach(function (key){ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); });}} return target; }\n\nfunction _defineProperty(obj, key, value){ if(key in obj){ Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });}else{ obj[key]=value; } return obj; }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    render=_wp$element.render,\n    useContext=_wp$element.useContext;\nvar _wp$data=wp.data,\n    dispatch=_wp$data.dispatch,\n    select=_wp$data.select;\n\n\nvar FormSubmission=function FormSubmission(props){\n  var type='all';\n\n  if(props.hasOwnProperty('type')){\n    type=props.type;\n  }\n\n  var _useState=useState({\n    loading: false,\n    loadmore: false\n  }),\n      _useState2=_slicedToArray(_useState, 2),\n      isLoading=_useState2[0],\n      setIsLoading=_useState2[1];\n\n  var _useState3=useState(props.post),\n      _useState4=_slicedToArray(_useState3, 2),\n      post=_useState4[0],\n      setPost=_useState4[1];\n\n  var _useState5=useState({\n    paged: 1,\n    order: 'DESC',\n    type: type\n  }),\n      _useState6=_slicedToArray(_useState5, 2),\n      args=_useState6[0],\n      setArgs=_useState6[1];\n\n  var _useState7=useState([]),\n      _useState8=_slicedToArray(_useState7, 2),\n      formData=_useState8[0],\n      setFormData=_useState8[1]; // submission array({comment:[],user:{}})\n\n\n  var _useState9=useState({\n    ASC: window.vibeforms.translations.newer,\n    DESC: window.vibeforms.translations.older\n  }),\n      _useState10=_slicedToArray(_useState9, 2),\n      sorters=_useState10[0],\n      setSorters=_useState10[1];\n\n  var _useState11=useState(true),\n      _useState12=_slicedToArray(_useState11, 2),\n      disableLoadMore=_useState12[0],\n      setDisableLoadmore=_useState12[1];\n\n  var _useState13=useState([]),\n      _useState14=_slicedToArray(_useState13, 2),\n      columnsHeader=_useState14[0],\n      setColumnsHeader=_useState14[1];\n\n  Object(_functions__WEBPACK_IMPORTED_MODULE_0__[\"useThrottledEffect\"])(function (){\n    if(post.id&&post.post_content){\n      if(args.paged==1){\n        setIsLoading(_objectSpread(_objectSpread({}, isLoading), {}, {\n          loading: true\n        }));\n      }else{\n        setIsLoading(_objectSpread(_objectSpread({}, isLoading), {}, {\n          loadmore: true\n        }));\n      }\n\n      setDisableLoadmore(true);\n      fetch(\"\".concat(window.vibeforms.api.url, \"/user/form/submissions\"), {\n        method: 'post',\n        body: JSON.stringify({\n          post_id: post.id,\n          args: args,\n          token: select('vibebp').getToken()\n        })\n      }).then(function (res){\n        return res.json();\n      }).then(function (data){\n        setIsLoading(_objectSpread(_objectSpread({}, isLoading), {}, {\n          loading: false,\n          loadmore: false\n        }));\n\n        if(data.status){\n          if(args.paged==1){\n            setFormData(_toConsumableArray(data.data));\n            create_tabulator(_toConsumableArray(data.data));\n          }else{\n            var nform_data=_toConsumableArray(formData);\n\n            if(data.data.length){\n              data.data.map(function (d){\n                nform_data.push(d);\n              });\n            }\n\n            setFormData(nform_data);\n            create_tabulator(nform_data);\n          }\n\n          setDisableLoadmore(false);\n        }\n      });\n    }\n  }, 500, [args]);\n\n  var create_tabulator=function create_tabulator(data){\n    if(post.hasOwnProperty('post_content')&&post.post_content.hasOwnProperty('fields')&&Array.isArray(post.post_content.fields)){\n      var columns=[{\n        title: window.vibeforms.translations.submiited_by,\n        field: 'submitter',\n        sorter: \"string\"\n      }];\n      setColumnsHeader(columns);\n      post.post_content.fields.map(function (f){\n        if(f.type!='heading'){\n          columns.push({\n            title: f.value.title,\n            field: f.key,\n            sorter: \"string\"\n          });\n        }\n      });\n\n      if(Array.isArray(data)){\n        var row={};\n        var rows=[];\n        var v='';\n        data.map(function (submission){\n          row={};\n\n          if(submission.hasOwnProperty('comment')&&submission.comment.hasOwnProperty('comment_content')){\n            row['submitter']=submission.user.nickname;\n            submission.comment.comment_content.map(function (s){\n              v='';\n\n              if(Array.isArray(s.value)){\n                s.value.map(function (c, j){\n                  if(j==s.value.length - 1){\n                    v=v + c;\n                  }else{\n                    v=v + c + ',';\n                  }\n                });\n              }else{\n                v=s.value; //parse value here like date and time\n\n                var j=post.post_content.fields.findIndex(function (p){\n                  return p.key==s.key;\n                });\n\n                if(j > -1){\n                  if(post.post_content.fields[j].type=='date'){\n                    v=new Date(s.value).toISOString().replace('-', '/').split('T')[0].replace('-', '/');\n                  }else if(post.post_content.fields[j].type=='time'){\n                    v=new Date(s.value).getHours() + \":\" + new Date(s.value).getMinutes();\n                  }\n                }\n              }\n\n              row[s.key]=v;\n            });\n            rows.push(row);\n          }\n        });\n        var table=new Tabulator(\"#vibe_form_tabulator_view\", {\n          columns: columns,\n          data: rows,\n          layout: \"fitColumns\" //fit columns to width of table (optional)\n\n        });// download csv\n\n        document.getElementById('download_tabulator_table').addEventListener('click', function (){\n          if(post.hasOwnProperty('post_title')&&post.post_title.length){\n            table.download(\"csv\", post.post_title + \".csv\");\n          }else{\n            table.download(\"csv\", \"submission.csv\");\n          }\n        });\n        triggerFilterEvents(table);\n      }\n    }\n  };\n\n  function triggerFilterEvents(table){\n    document.querySelector('.form_submissions .filter #filter-field').addEventListener('change', function (){\n      updateFilter(table);\n    });\n    document.querySelector('.form_submissions .filter #filter-type').addEventListener('change', function (){\n      updateFilter(table);\n    });\n    document.querySelector('.form_submissions .filter #filter-value').addEventListener('keyup', function (){\n      updateFilter(table);\n    });//Clear filters on \"Clear Filters\" button click\n\n    document.querySelector('.form_submissions .filter #filter-clear').addEventListener('click', function (){\n      document.querySelector('.form_submissions .filter #filter-field').value=\"\";\n      document.querySelector('.form_submissions .filter #filter-type').value=\"\";\n      document.querySelector('.form_submissions .filter #filter-value').value=\"\";\n      table.clearFilter();\n    });\n  } //Trigger setFilter function with correct parameters\n\n\n  function updateFilter(table){\n    var filter=document.querySelector('.form_submissions .filter #filter-field').value;\n    table.setFilter(filter, document.querySelector('.form_submissions .filter #filter-type').value, document.querySelector('.form_submissions .filter #filter-value').value);\n  }\n\n  return wp.element.createElement(\"div\", {\n    className: \"form_submissions\"\n  }, wp.element.createElement(\"div\", {\n    className: \"vibebp_form_header vibebp_form\"\n  }, wp.element.createElement(\"div\", {\n    className: \"vibebp_form_field\"\n  }, wp.element.createElement(\"a\", {\n    className: \"vicon vicon-arrow-left\",\n    onClick: props.close\n  }), wp.element.createElement(\"select\", {\n    value: args.order,\n    onChange: function onChange(e){\n      setArgs(_objectSpread(_objectSpread({}, args), {}, {\n        order: e.target.value,\n        paged: 1\n      }));\n    }\n  }, Object.keys(sorters).map(function (key){\n    return wp.element.createElement(\"option\", {\n      value: key\n    }, sorters[key]);\n  })))), post ? wp.element.createElement(\"div\", {\n    className: \"form_details\"\n  }, wp.element.createElement(\"h3\", {\n    className: \"post_title\"\n  }, post.post_title), post.hasOwnProperty('post_content') ? wp.element.createElement(\"div\", {\n    className: \"description\"\n  }, post.post_content.description):''):'', isLoading.loading ? wp.element.createElement(\"div\", {\n    \"class\": \"loading-roller\"\n  }, wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null)):wp.element.createElement(Fragment, null, formData&&formData.length ? wp.element.createElement(Fragment, null, wp.element.createElement(\"div\", {\n    className: \"all_submissions\"\n  }, columnsHeader&&columnsHeader.length ? wp.element.createElement(\"div\", {\n    className: \"filter\"\n  }, wp.element.createElement(\"span\", {\n    className: \"field\"\n  }, wp.element.createElement(\"label\", null, window.vibeforms.translations.field), wp.element.createElement(\"select\", {\n    id: \"filter-field\"\n  }, columnsHeader.map(function (c){\n    return wp.element.createElement(\"option\", {\n      value: c.field\n    }, c.title);\n  }))), wp.element.createElement(\"span\", {\n    className: \"type\"\n  }, wp.element.createElement(\"label\", null, window.vibeforms.translations.type), wp.element.createElement(\"select\", {\n    id: \"filter-type\"\n  }, wp.element.createElement(\"option\", {\n    value: \"like\"\n  }, window.vibeforms.translations.like), wp.element.createElement(\"option\", {\n    value: \"=\"\n  }, \"=\"), wp.element.createElement(\"option\", {\n    value: \"<\"\n  }, \"<\"), wp.element.createElement(\"option\", {\n    value: \"<=\"\n  }, \"<=\"), wp.element.createElement(\"option\", {\n    value: \">\"\n  }, \">\"), wp.element.createElement(\"option\", {\n    value: \">=\"\n  }, \">=\"), wp.element.createElement(\"option\", {\n    value: \"!=\"\n  }, \"!=\"))), wp.element.createElement(\"span\", {\n    className: \"value\"\n  }, wp.element.createElement(\"label\", null, window.vibeforms.translations.value), wp.element.createElement(\"input\", {\n    id: \"filter-value\",\n    type: \"text\",\n    placeholder: \"value to filter\"\n  })), wp.element.createElement(\"span\", {\n    className: \"clear\"\n  }, wp.element.createElement(\"button\", {\n    className: \"button is-primary\",\n    id: \"filter-clear\"\n  }, window.vibeforms.translations.clear_filter))):'', wp.element.createElement(\"div\", {\n    id: \"vibe_form_tabulator_view\"\n  })), isLoading.loadmore ? wp.element.createElement(\"div\", {\n    \"class\": \"loading-roller\"\n  }, wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null)):'', !disableLoadMore ? wp.element.createElement(\"a\", {\n    className: \"button is-primary\",\n    onClick: function onClick(e){\n      setArgs(_objectSpread(_objectSpread({}, args), {}, {\n        paged: args.paged + 1\n      }));\n    }\n  }, window.vibeforms.translations.load_more):'', wp.element.createElement(\"a\", {\n    id: \"download_tabulator_table\",\n    className: \"button is-primary\"\n  }, window.vibeforms.translations.download_as_csv)):wp.element.createElement(\"div\", {\n    className: \"vbp_message\"\n  }, window.vibeforms.translations.no_submission)));\n};\n\n __webpack_exports__[\"default\"]=(FormSubmission);\n\n//# sourceURL=webpack:///./src/vibeform/formsubmission.js?");
}),
"./src/vibeform/fullform.js":
(function(module, __webpack_exports__, __webpack_require__){
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n var _formsubmission__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__( \"./src/vibeform/formsubmission.js\");\nfunction _toConsumableArray(arr){ return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread(); }\n\nfunction _nonIterableSpread(){ throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter){ if(typeof Symbol!==\"undefined\"&&iter[Symbol.iterator]!=null||iter[\"@@iterator\"]!=null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr){ if(Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i){ return _arrayWithHoles(arr)||_iterableToArrayLimit(arr, i)||_unsupportedIterableToArray(arr, i)||_nonIterableRest(); }\n\nfunction _nonIterableRest(){ throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen){ if(!o) return; if(typeof o===\"string\") return _arrayLikeToArray(o, minLen); var n=Object.prototype.toString.call(o).slice(8, -1); if(n===\"Object\"&&o.constructor) n=o.constructor.name; if(n===\"Map\"||n===\"Set\") return Array.from(o); if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len){ if(len==null||len > arr.length) len=arr.length; for (var i=0, arr2=new Array(len); i < len; i++){ arr2[i]=arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i){ var _i=arr==null ? null:typeof Symbol!==\"undefined\"&&arr[Symbol.iterator]||arr[\"@@iterator\"]; if(_i==null) return; var _arr=[]; var _n=true; var _d=false; var _s, _e; try { for (_i=_i.call(arr); !(_n=(_s=_i.next()).done); _n=true){ _arr.push(_s.value); if(i&&_arr.length===i) break; }} catch (err){ _d=true; _e=err; } finally { try { if(!_n&&_i[\"return\"]!=null) _i[\"return\"](); } finally { if(_d) throw _e; }} return _arr; }\n\nfunction _arrayWithHoles(arr){ if(Array.isArray(arr)) return arr; }\n\nvar _wp$element=wp.element,\n    createElement=_wp$element.createElement,\n    useState=_wp$element.useState,\n    useEffect=_wp$element.useEffect,\n    Fragment=_wp$element.Fragment,\n    render=_wp$element.render,\n    useContext=_wp$element.useContext;\nvar _wp$data=wp.data,\n    dispatch=_wp$data.dispatch,\n    select=_wp$data.select;\n\n\nvar FullForm=function FullForm(props){\n  var _useState=useState(props.post),\n      _useState2=_slicedToArray(_useState, 2),\n      post=_useState2[0],\n      setPost=_useState2[1];\n\n  var _useState3=useState(false),\n      _useState4=_slicedToArray(_useState3, 2),\n      submitting=_useState4[0],\n      setSubmitting=_useState4[1];\n\n  var _useState5=useState([]),\n      _useState6=_slicedToArray(_useState5, 2),\n      submission=_useState6[0],\n      setSubmission=_useState6[1];\n\n  var _useState7=useState([]),\n      _useState8=_slicedToArray(_useState7, 2),\n      errors=_useState8[0],\n      setErrors=_useState8[1];\n\n  var _useState9=useState(true),\n      _useState10=_slicedToArray(_useState9, 2),\n      disabled=_useState10[0],\n      setDisabled=_useState10[1];\n\n  var _useState11=useState(false),\n      _useState12=_slicedToArray(_useState11, 2),\n      isLoading=_useState12[0],\n      setIsLoading=_useState12[1];\n\n  var _useState13=useState(false),\n      _useState14=_slicedToArray(_useState13, 2),\n      formSubmission=_useState14[0],\n      setFormSubmission=_useState14[1];\n\n  useEffect(function (){\n    if(props.post.id){\n      if(props.hasOwnProperty('type')&&props.type=='shared'){\n        setPost({});\n        setIsLoading(true);\n        fetch(\"\".concat(window.vibeforms.api.url, \"/user/forms/can_submit\"), {\n          method: 'post',\n          body: JSON.stringify({\n            post_id: props.post.id,\n            token: select('vibebp').getToken()\n          })\n        }).then(function (res){\n          return res.json();\n        }).then(function (data){\n          setIsLoading(false);\n\n          if(data.status){\n            setPostObj();\n          }else{\n            if(data.hasOwnProperty('message')){\n              dispatch('vibebp').addNotification({\n                icon: 'vicon vicon-close',\n                text: data.message\n              });\n            } // show user submissions\n\n\n            setFormSubmission(props.post);\n          }\n        });\n      }else{\n        setPostObj();\n      }\n    }else{\n      setPostObj();\n    }\n  }, [props.post]);\n\n  var setPostObj=function setPostObj(){\n    setPost(props.post);\n\n    var nsubmission=_toConsumableArray(submission);\n\n    var nerrors=_toConsumableArray(errors);\n\n    if(props.post.post_content.fields){\n      props.post.post_content.fields.map(function (field){\n        var val={\n          key: field.key,\n          value: ''\n        };\n\n        if(field.value[\"default\"]){\n          val.value=field.value[\"default\"];\n        }\n\n        nsubmission.push(val);\n        nerrors.push({\n          key: field.key,\n          message: ''\n        });\n      });\n      setSubmission(nsubmission);\n      setErrors(nerrors);\n    }\n  };\n\n  var generateField=function generateField(field, i){\n    return wp.element.createElement(\"div\", {\n      className: \"vibeform_field\"\n    }, generateFormField(field, i));\n  };\n\n  var generateFormField=function generateFormField(field, i){\n    var rand=Math.round(Math.random() * 1000);\n    var t='';\n\n    var nsubmission=_toConsumableArray(submission);\n\n    var index=nsubmission.findIndex(function (s){\n      return s.key==field.key;\n    });\n\n    switch (field.type){\n      case 'heading':\n        t=wp.element.createElement(\"div\", {\n          className: \"field heading_field\"\n        }, field.value.title.length ? wp.element.createElement(\"h3\", null, field.value.title):'', field.value.subtitle ? wp.element.createElement(\"h5\", null, field.value.subtitle):'');\n        break;\n\n      case 'text':\n        t=wp.element.createElement(\"div\", {\n          className: \"field text_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', wp.element.createElement(\"input\", {\n          type: \"text\",\n          placeholder: field.params.show.placeholder ? field.value.placeholder:'',\n          value: nsubmission[index].value,\n          onChange: function onChange(e){\n            nsubmission[index].value=e.target.value;\n\n            if(isValid(field.key, nsubmission[index].value)){\n              setSubmission(nsubmission);\n            }\n          }\n        }), errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):'');\n        break;\n\n      case 'textarea':\n        t=wp.element.createElement(\"div\", {\n          className: \"field textarea_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', wp.element.createElement(\"textarea\", {\n          placeholder: field.params.show.placeholder ? field.value.placeholder:'',\n          value: nsubmission[index].value,\n          onChange: function onChange(e){\n            nsubmission[index].value=e.target.value;\n\n            if(isValid(field.key, nsubmission[index].value)){\n              setSubmission(nsubmission);\n            }\n          }\n        }), errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):'');\n        break;\n\n      case 'number':\n        t=wp.element.createElement(\"div\", {\n          className: \"field number_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', wp.element.createElement(\"input\", {\n          type: \"number\",\n          placeholder: field.value.title,\n          value: nsubmission[index].value,\n          onChange: function onChange(e){\n            nsubmission[index].value=e.target.value;\n\n            if(isValid(field.key, nsubmission[index].value)){\n              setSubmission(nsubmission);\n            }\n          }\n        }), errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):'');\n        break;\n\n      case 'date':\n        t=wp.element.createElement(\"div\", {\n          className: \"field date_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', wp.element.createElement(\"input\", {\n          type: \"text\",\n          ref: function ref(_ref){\n            if(_ref){\n              flatpickr(_ref, {\n                altInput: true,\n                defaultDate: nsubmission[index].value,\n                onChange: function onChange(date){\n                  nsubmission[index].value=Date.parse(date);\n\n                  if(isValid(field.key, nsubmission[index].value)){\n                    setSubmission(nsubmission);\n                  }\n                }\n              });\n            }\n          }\n        }), errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):'');\n        break;\n\n      case 'time':\n        t=wp.element.createElement(\"div\", {\n          className: \"field time_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', wp.element.createElement(\"input\", {\n          type: \"text\",\n          ref: function ref(_ref2){\n            if(_ref2){\n              flatpickr(_ref2, {\n                // dateFormat:field.date_format,\n                altInput: true,\n                enableTime: true,\n                noCalendar: true,\n                dateFormat: \"H:i\",\n                defaultDate: nsubmission[index].value,\n                onChange: function onChange(date){\n                  nsubmission[index].value=Date.parse(date);\n\n                  if(isValid(field.key, nsubmission[index].value)){\n                    setSubmission(nsubmission);\n                  }\n                }\n              });\n            }\n          }\n        }), errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):'');\n        break;\n\n      case 'radio':\n        t=wp.element.createElement(Fragment, null, field.value.hasOwnProperty('values')&&field.value.values.length ? wp.element.createElement(\"div\", {\n          className: \"field radio_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', field.value.values.map(function (v){\n          rand++;\n          return wp.element.createElement(\"div\", {\n            className: \"radio_n\"\n          }, wp.element.createElement(\"input\", {\n            type: \"radio\",\n            name: rand,\n            value: v.value,\n            onChange: function onChange(e){\n              nsubmission[index].value=e.target.value;\n\n              if(isValid(field.key, nsubmission[index].value)){\n                setSubmission(nsubmission);\n              }\n            },\n            checked: v.value==nsubmission[index].value\n          }), wp.element.createElement(\"label\", {\n            \"for\": rand\n          }, v.label));\n        }), errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):''):'');\n        break;\n\n      case 'checkbox':\n        t=wp.element.createElement(Fragment, null, field.value.hasOwnProperty('values')&&field.value.values.length ? wp.element.createElement(\"div\", {\n          className: \"field checkbox_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', field.value.values.length ? field.value.values.map(function (v){\n          rand++;\n          return wp.element.createElement(\"div\", {\n            className: \"checkbox_n\"\n          }, wp.element.createElement(\"input\", {\n            type: \"checkbox\",\n            value: v.value,\n            onClick: function onClick(e){\n              if(!Array.isArray(nsubmission[index].value)){\n                nsubmission[index].value=[];\n              }\n\n              if(nsubmission[index].value.indexOf(v.value) > -1){\n                nsubmission[index].value.splice(nsubmission[index].value.indexOf(v.value), 1);\n              }else{\n                nsubmission[index].value.push(v.value);\n              }\n\n              if(isValid(field.key, nsubmission[index].value)){\n                setSubmission(nsubmission);\n              }\n            },\n            checked: nsubmission[index].value.indexOf(v.value) > -1 ? 'checked':''\n          }), wp.element.createElement(\"label\", null, v.label));\n        }):'', errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):''):'');\n        break;\n\n      case 'select':\n        t=wp.element.createElement(\"div\", {\n          className: \"field select_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', field.value.hasOwnProperty('values')&&field.value.values.length ? wp.element.createElement(\"select\", {\n          value: submission[index].value,\n          onChange: function onChange(e){\n            nsubmission[index].value=e.target.value;\n\n            if(isValid(field.key, nsubmission[index].value)){\n              setSubmission(nsubmission);\n            }\n          }\n        }, wp.element.createElement(\"option\", {\n          value: \"\"\n        }, window.vibeforms.translations.select_option), field.value.values.map(function (v){\n          return wp.element.createElement(\"option\", {\n            value: v.value\n          }, v.label);\n        })):'', errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):'');\n        break;\n\n      case 'multiselect':\n        t=wp.element.createElement(\"div\", {\n          className: \"field multiselect_field\"\n        }, field.params.show.label ? wp.element.createElement(\"label\", null, field.value.title):'', field.value.hasOwnProperty('values')&&field.value.values.length ? wp.element.createElement(\"select\", {\n          onChange: function onChange(e){\n            if(nsubmission[index].value.indexOf(e.target.value) > -1){\n              nsubmission[index].value.splice(nsubmission[index].value.indexOf(e.target.value), 1);\n            }else{\n              nsubmission[index].value.push(e.target.value);\n            }\n\n            if(isValid(field.key, nsubmission[index].value)){\n              setSubmission(nsubmission);\n            }\n          },\n          multiple: true,\n          value: submission[index].value\n        }, field.value.values.map(function (v){\n          return wp.element.createElement(\"option\", {\n            value: v.value\n          }, v.label);\n        })):'', errors.findIndex(function (e){\n          return field.key==e.key;\n        }) > -1&&errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message.length ? wp.element.createElement(\"span\", {\n          className: \"vbp_message\"\n        }, errors[errors.findIndex(function (e){\n          return field.key==e.key;\n        })].message):'');\n        break;\n\n      default:\n        t=wp.element.createElement(\"div\", {\n          className: \"field default_field\"\n        });\n        break;\n    }\n\n    return t;\n  };\n\n  var isValid=function isValid(key, value){\n    var nerrors=_toConsumableArray(errors);\n\n    var error_index=nerrors.findIndex(function (e){\n      return key==e.key;\n    });\n    var isvalid=true;\n    nerrors[error_index].message='';\n\n    if(error_index > -1){\n      var form_field=post.post_content.fields[post.post_content.fields.findIndex(function (e){\n        return e.key==key;\n      })];\n\n      if(form_field.params.hasOwnProperty('required')){\n        if(form_field.params.required){\n          if(!value){\n            nerrors[error_index].message=window.vibeforms.translations.field_required;\n            isvalid=false;\n          }\n        }\n      }\n\n      if(form_field.params.hasOwnProperty('validations')){\n        form_field.params.validations.map(function (validation){\n          switch (validation.type){\n            case 'phone_regex':\n              if(window.vibeforms.patterns.hasOwnProperty('phone_regex')){\n                if(!value.match(new RegExp(window.vibeforms.patterns['phone_regex']))){\n                  nerrors[error_index].message=window.vibeforms.translations.phone_not_matched;\n                  isvalid=false;\n                }\n              }\n\n              break;\n\n            case 'email_regex':\n              if(window.vibeforms.patterns.hasOwnProperty('email_regex')){\n                if(!value.match(new RegExp(window.vibeforms.patterns['email_regex']))){\n                  nerrors[error_index].message=window.vibeforms.translations.email_not_matched;\n                  isvalid=false;\n                }\n              }\n\n              break;\n\n            case 'min':\n              value=parseFloat(value);\n\n              if(!(value >=validation.value)){\n                nerrors[error_index].message=window.vibeforms.translations.email_not_matched;\n                isvalid=false;\n              }\n\n              break;\n\n            case 'max':\n              value=parseFloat(value);\n\n              if(!(value <=validation.value)){\n                nerrors[error_index].message=window.vibeforms.translations.value_not_more + ' ' + validation.value;\n                isvalid=false;\n              }\n\n              break;\n\n            case 'min_word_count':\n              if(!(value.length >=validation.value)){\n                nerrors[error_index].message=window.vibeforms.translations.value_length_not_less + ' ' + validation.value;\n                isvalid=false;\n              }\n\n              break;\n\n            case 'max_word_count':\n              if(!(value.length <=validation.value)){\n                nerrors[error_index].message=window.vibeforms.translations.value_length_not_more + ' ' + validation.value;\n                isvalid=false;\n              }\n\n              break;\n          }\n        });\n      }\n\n      setErrors(nerrors);\n      setDisabled(!isvalid);\n    }\n\n    return isvalid;\n  };\n\n  var canSubmit=function canSubmit(){\n    if(errors.length){\n      for (var i=0; i < errors.length; i++){\n        if(errors[i].message.length){\n          return false;\n        }\n      }\n    }\n\n    return true;\n  };\n\n  var submit_form=function submit_form(){\n    if(!disabled){\n      setSubmitting(true);\n      fetch(\"\".concat(window.vibeforms.api.url, \"/user/forms/submit\"), {\n        method: 'post',\n        body: JSON.stringify({\n          id: post.id,\n          form_data: submission,\n          token: select('vibebp').getToken()\n        })\n      }).then(function (res){\n        return res.json();\n      }).then(function (data){\n        setSubmitting(false);\n\n        if(data.status){\n          if(data.hasOwnProperty('message')){\n            dispatch('vibebp').addNotification({\n              icon: 'vicon vicon-check-box',\n              text: data.message\n            });\n          }\n        }else{\n          if(data.hasOwnProperty('message')){\n            dispatch('vibebp').addNotification({\n              icon: 'vicon vicon-close',\n              text: data.message\n            });\n          }\n        }\n\n        if(props.hasOwnProperty('close')){\n          props.close();\n        }\n      });\n    }\n  };\n\n  return wp.element.createElement(Fragment, null, isLoading ? wp.element.createElement(\"div\", {\n    \"class\": \"loading-roller\"\n  }, wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null), wp.element.createElement(\"div\", null)):'', formSubmission ? wp.element.createElement(_formsubmission__WEBPACK_IMPORTED_MODULE_0__[\"default\"], {\n    post: formSubmission,\n    close: function close(){\n      setFormSubmission(false);\n      props.close();\n    },\n    type: \"mine\"\n  }):'', Object.keys(post).length ? wp.element.createElement(\"div\", {\n    className: \"preview_form vibebp_form\"\n  }, wp.element.createElement(\"div\", {\n    className: \"vibebp_form_header\"\n  }, wp.element.createElement(\"a\", {\n    className: \"vicon vicon-arrow-left\",\n    onClick: props.close\n  }), wp.element.createElement(\"label\", null, post.post_title)), wp.element.createElement(\"div\", {\n    className: \"description\",\n    dangerouslySetInnerHTML: {\n      __html: post.post_content.description\n    }\n  }), submission.length ? wp.element.createElement(\"div\", {\n    className: \"fields\"\n  }, post.post_content.hasOwnProperty('fields')&&post.post_content.fields.length ? post.post_content.fields.map(function (field, i){\n    return wp.element.createElement(Fragment, null, generateField(field, i));\n  }):''):'', wp.element.createElement(\"div\", {\n    className: \"footer\"\n  }, props.hasOwnProperty('submit') ? props.submit ? wp.element.createElement(\"a\", {\n    className: submitting ? 'button is-primary is-loading':'button is-primary',\n    disabled: disabled,\n    onClick: submit_form\n  }, window.vibeforms.translations.submit):'':wp.element.createElement(\"a\", {\n    className: submitting ? 'button is-primary is-loading':'button is-primary',\n    disabled: disabled,\n    onClick: submit_form\n  }, window.vibeforms.translations.submit))):'');\n};\n\n __webpack_exports__[\"default\"]=(FullForm);\n\n//# sourceURL=webpack:///./src/vibeform/fullform.js?");
})
});