douxiaoyun.js/profiles/douyin-profile/Default/Cache/Cache_Data/f_0003c4
2026-07-17 22:23:39 +08:00

1 line
230 KiB
R
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["96537"],{745568:function(t,e,r){"use strict";var n=r(205005),o=r(101199),i=r(622689),a=r.n(i),u=r(114517),s=r.n(u);function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function f(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&(o[r]=t[r]);return o}function l(t){var e=t.getCurrentContent().getBlockMap(),r=e.last().getKey(),o=e.last().getLength(),i=new n.SelectionState({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o});return n.EditorState.acceptSelection(t,i)}var p=function(){function t(t){this.decorators=void 0,this.decorators=s().List(t)}var e=t.prototype;return e.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);return this.decorators.forEach(function(n,o){n.getDecorations(t,e).forEach(function(t,e){if(!!t)r[e]=o+"-"+t})}),s().List(r)},e.getComponentForKey=function(e){return this.getDecoratorForKey(e).getComponentForKey(t.getInnerKey(e))},e.getPropsForKey=function(e){return this.getDecoratorForKey(e).getPropsForKey(t.getInnerKey(e))},e.getDecoratorForKey=function(t){var e=Number(t.split("-")[0]);return this.decorators.get(e)},t.getInnerKey=function(t){return t.split("-").slice(1).join("-")},t}(),h=function(t){return"function"==typeof t.getDecorations&&"function"==typeof t.getComponentForKey&&"function"==typeof t.getPropsForKey},d=function(t){var e=t.decorators,r=t.plugins;return(0,u.List)([{decorators:e}].concat(void 0===r?[]:r)).filter(function(t){return(null==t?void 0:t.decorators)!==void 0}).flatMap(function(t){return null==t?void 0:t.decorators})};function g(t){return(0,n.getDefaultKeyBinding)(t)}function y(t,e,r,o){var i,a=o.setEditorState;switch(t){case"backspace":case"backspace-word":case"backspace-to-start-of-line":i=n.RichUtils.onBackspace(e);break;case"delete":case"delete-word":case"delete-to-end-of-block":i=n.RichUtils.onDelete(e);break;default:return"not-handled"}return null!=i?(a(i),"handled"):"not-handled"}var v=function(t){var e,r;return(null==t?void 0:t.decorators)!=null?null==(e=t.decorators)?void 0:e.size:(null==t?void 0:t._decorators)!=null?null==(r=t._decorators)?void 0:r.length:void 0},m=function(t){function e(e){var r;return(r=t.call(this,e)||this).editor=null,r.state={readOnly:!1},r.onChange=function(t){var e=t;r.resolvePlugins().forEach(function(t){t.onChange&&(e=t.onChange(e,r.getPluginMethods()))}),r.props.onChange&&r.props.onChange(e)},r.getPlugins=function(){return[].concat(r.props.plugins)},r.getProps=function(){return c({},r.props)},r.getReadOnly=function(){return r.props.readOnly||r.state.readOnly},r.setReadOnly=function(t){t!==r.state.readOnly&&r.setState({readOnly:t})},r.getEditorRef=function(){return r.editor},r.getEditorState=function(){return r.props.editorState},r.getPluginMethods=function(){return{getPlugins:r.getPlugins,getProps:r.getProps,setEditorState:r.onChange,getEditorState:r.getEditorState,getReadOnly:r.getReadOnly,setReadOnly:r.setReadOnly,getEditorRef:r.getEditorRef}},r.createPluginHooks=function(){var t,e,n,o;return t=[r.props].concat(r.resolvePlugins()),e=r.getPluginMethods(),n={},o=new Set(["onChange"]),t.forEach(function(r){Object.keys(r).forEach(function(r){var i,a,u,s,l,p,h,d,g,y,v,m,_,b;if(!o.has(r))if(o.add(r),r.startsWith("on")){;n[r]=(i=r,a=t,u=e,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return a.some(function(t){var r=t[i];return"function"==typeof r&&!0===r.apply(void 0,e.concat([u]))})})}else{;if(r.startsWith("handle")){;n[r]=(s=r,l=t,p=e,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return l.some(function(t){var r=t[s];return"function"==typeof r&&"handled"===r.apply(void 0,e.concat([p]))})?"handled":"not-handled"})}else if(r.endsWith("Fn")){;if("blockRendererFn"===r){;n.blockRendererFn=(h=t,d=e,function(t){var e={props:{}};return h.forEach(function(r){if("function"==typeof r.blockRendererFn){var n=r.blockRendererFn(t,d);if(null!=n){var o=n.props,i=f(n,["props"]),a=e,u=a.props,s=f(a,["props"]);e=c({},s,i,{props:c({},u,o)})}}}),!!e.component&&e})}else if("blockStyleFn"===r){;n.blockStyleFn=(g=t,y=e,function(t){var e=[];return g.forEach(function(r){if("function"==typeof r.blockStyleFn){var n=r.blockStyleFn(t,y);null!=n&&e.push(n)}}),e.join(" ")})}else if("customStyleFn"===r){;n.customStyleFn=(v=t,m=e,function(t,e){var r;return v.some(function(n){return"function"==typeof n.customStyleFn&&void 0!==(r=n.customStyleFn(t,e,m))})&&r?r:{}})}else if("keyBindingFn"===r){;n.keyBindingFn=(_=t,b=e,function(t){var e=null;return _.some(function(r){return"function"==typeof r.keyBindingFn&&void 0!==(e=r.keyBindingFn(t,b))})?e:null})}}}})}),n},r.resolvePlugins=function(){var t=r.getPlugins();return!0===r.props.defaultKeyBindings&&t.push({keyBindingFn:g}),!0===r.props.defaultKeyCommands&&t.push({handleKeyCommand:y}),t},r.resolveCustomStyleMap=function(){return r.props.plugins.filter(function(t){return void 0!==t.customStyleMap}).map(function(t){return t.customStyleMap}).concat([r.props.customStyleMap]).reduce(function(t,e){return c({},t,e)},{})},r.resolveblockRenderMap=function(){var t=r.props.plugins.filter(function(t){return void 0!==t.blockRenderMap}).reduce(function(t,e){return t.merge(e.blockRenderMap)},(0,u.Map)({}));return r.props.defaultBlockRenderMap&&(t=n.DefaultDraftBlockRenderMap.merge(t)),r.props.blockRenderMap&&(t=t.merge(r.props.blockRenderMap)),t},r.resolveAccessibilityProps=function(){var t={};return r.resolvePlugins().forEach(function(e){if("function"==typeof e.getAccessibilityProps){var r=e.getAccessibilityProps(),n={};void 0===t.ariaHasPopup?n.ariaHasPopup=r.ariaHasPopup:"true"===r.ariaHasPopup&&(n.ariaHasPopup="true"),void 0===t.ariaExpanded?n.ariaExpanded=r.ariaExpanded:!0===r.ariaExpanded&&(n.ariaExpanded=!0),t=c({},t,r,n)}}),t},[r.props].concat(r.resolvePlugins()).forEach(function(t){t&&"function"==typeof t.initialize&&t.initialize(r.getPluginMethods())}),r}r=e,i=t,r.prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var r,i,a=e.prototype;return a.focus=function(){this.editor&&this.editor.focus()},a.blur=function(){this.editor&&this.editor.blur()},a.componentDidMount=function(){var t,e,r,i,a,s,f,g,y,v=(t=this.props,e=this.getEditorState,r=this.onChange,y=(a=(i=d(t)).filter(function(t){return!h(t)}),s=e,f=r,g=(0,u.List)(a).map(function(t){var e=t.component;return c({},t,{component:function(t){return o.createElement(e,c({},t,{getEditorState:s,setEditorState:f}))}})}).toJS(),new n.CompositeDecorator(g)),new p(i.filter(function(t){return h(t)}).push(y))),m=n.EditorState.set(this.props.editorState,{decorator:v});this.onChange(l(m))},a.componentDidUpdate=function(t){var e=this.props,r=t.editorState.getDecorator(),o=e.editorState.getDecorator();if(!!r&&r!==o&&(!r||!o||v(r)!==v(o))){var i=n.EditorState.set(e.editorState,{decorator:r});this.onChange(l(i))}},a.componentWillUnmount=function(){var t=this;this.resolvePlugins().forEach(function(e){e.willUnmount&&e.willUnmount({getEditorState:t.getEditorState,setEditorState:t.onChange})})},a.render=function(){var t=this,e=this.createPluginHooks(),r=this.resolveCustomStyleMap(),i=this.resolveAccessibilityProps(),a=this.resolveblockRenderMap(),u=this.props;u.keyBindingFn;var s=f(u,["keyBindingFn"]);return o.createElement(n.Editor,c({},s,i,e,{readOnly:this.props.readOnly||this.state.readOnly,customStyleMap:r,blockRenderMap:a,onChange:this.onChange,editorState:this.props.editorState,ref:function(e){t.editor=e}}))},e}(o.Component);m.propTypes={editorState:a().object.isRequired,onChange:a().func.isRequired,plugins:a().array,defaultKeyBindings:a().bool,defaultKeyCommands:a().bool,defaultBlockRenderMap:a().bool,customStyleMap:a().object,decorators:a().array},m.defaultProps={defaultBlockRenderMap:!0,defaultKeyBindings:!0,defaultKeyCommands:!0,customStyleMap:{},plugins:[],decorators:[]},e.ZP=m},688960:function(t,e,r){"use strict";function n(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function o(t){var e=n(t).Element;return t instanceof e||t instanceof Element}function i(t){var e=n(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function a(t){if("undefined"==typeof ShadowRoot)return!1;var e=n(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}r.d(e,{fi:function(){return tf}});var u,s,c,f,l,p,h=Math.max,d=Math.min,g=Math.round;function y(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function v(){return!/^((?!chrome|android).)*safari/i.test(y())}function m(t,e,r){void 0===e&&(e=!1),void 0===r&&(r=!1);var a=t.getBoundingClientRect(),u=1,s=1;e&&i(t)&&(u=t.offsetWidth>0&&g(a.width)/t.offsetWidth||1,s=t.offsetHeight>0&&g(a.height)/t.offsetHeight||1);var c=(o(t)?n(t):window).visualViewport,f=!v()&&r,l=(a.left+(f&&c?c.offsetLeft:0))/u,p=(a.top+(f&&c?c.offsetTop:0))/s,h=a.width/u,d=a.height/s;return{width:h,height:d,top:p,right:l+h,bottom:p+d,left:l,x:l,y:p}}function _(t){var e=n(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function b(t){return t?(t.nodeName||"").toLowerCase():null}function S(t){return((o(t)?t.ownerDocument:t.document)||window.document).documentElement}function w(t){return m(S(t)).left+_(t).scrollLeft}function x(t){return n(t).getComputedStyle(t)}function k(t){var e=x(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function C(t){var e=m(t),r=t.offsetWidth,n=t.offsetHeight;return 1>=Math.abs(e.width-r)&&(r=e.width),1>=Math.abs(e.height-n)&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function E(t){return"html"===b(t)?t:t.assignedSlot||t.parentNode||(a(t)?t.host:null)||S(t)}function O(t,e){void 0===e&&(e=[]);var r,o=function t(e){return["html","body","#document"].indexOf(b(e))>=0?e.ownerDocument.body:i(e)&&k(e)?e:t(E(e))}(t),a=o===(null==(r=t.ownerDocument)?void 0:r.body),u=n(o),s=a?[u].concat(u.visualViewport||[],k(o)?o:[]):o,c=e.concat(s);return a?c:c.concat(O(E(s)))}function D(t){return i(t)&&"fixed"!==x(t).position?t.offsetParent:null}function K(t){for(var e=n(t),r=D(t);r&&["table","td","th"].indexOf(b(r))>=0&&"static"===x(r).position;)r=D(r);return r&&("html"===b(r)||"body"===b(r)&&"static"===x(r).position)?e:r||function(t){var e=/firefox/i.test(y());if(/Trident/i.test(y())&&i(t)&&"fixed"===x(t).position)return null;var r=E(t);for(a(r)&&(r=r.host);i(r)&&0>["html","body"].indexOf(b(r));){var n=x(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(t)||e}var M="bottom",A="right",T="left",B="auto",I=["top",M,A,T],R="start",L="viewport",F="popper",P=I.reduce(function(t,e){return t.concat([e+"-"+R,e+"-end"])},[]),N=[].concat(I,[B]).reduce(function(t,e){return t.concat([e,e+"-"+R,e+"-end"])},[]),j=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],z={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}var q={passive:!0};function H(t){return t.split("-")[0]}function W(t){return t.split("-")[1]}function V(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function J(t){var e,r=t.reference,n=t.element,o=t.placement,i=o?H(o):null,a=o?W(o):null,u=r.x+r.width/2-n.width/2,s=r.y+r.height/2-n.height/2;switch(i){case"top":e={x:u,y:r.y-n.height};break;case M:e={x:u,y:r.y+r.height};break;case A:e={x:r.x+r.width,y:s};break;case T:e={x:r.x-n.width,y:s};break;default:e={x:r.x,y:r.y}}var c=i?V(i):null;if(null!=c){var f="y"===c?"height":"width";switch(a){case R:e[c]=e[c]-(r[f]/2-n[f]/2);break;case"end":e[c]=e[c]+(r[f]/2-n[f]/2)}}return e}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(t){var e,r,o,i,a,u,s,c=t.popper,f=t.popperRect,l=t.placement,p=t.variation,h=t.offsets,d=t.position,y=t.gpuAcceleration,v=t.adaptive,m=t.roundOffsets,_=t.isFixed,b=h.x,w=void 0===b?0:b,k=h.y,C=void 0===k?0:k,E="function"==typeof m?m({x:w,y:C}):{x:w,y:C};w=E.x,C=E.y;var O=h.hasOwnProperty("x"),D=h.hasOwnProperty("y"),B=T,I="top",R=window;if(v){var L=K(c),F="clientHeight",P="clientWidth";L===n(c)&&"static"!==x(L=S(c)).position&&"absolute"===d&&(F="scrollHeight",P="scrollWidth");("top"===l||(l===T||l===A)&&"end"===p)&&(I=M,C-=(_&&L===R&&R.visualViewport?R.visualViewport.height:L[F])-f.height,C*=y?1:-1),(l===T||("top"===l||l===M)&&"end"===p)&&(B=A,w-=(_&&L===R&&R.visualViewport?R.visualViewport.width:L[P])-f.width,w*=y?1:-1)}var N=Object.assign({position:d},v&&G);var j=!0===m?(e={x:w,y:C},r=n(c),o=e.x,i=e.y,{x:g(o*(a=r.devicePixelRatio||1))/a||0,y:g(i*a)/a||0}):{x:w,y:C};return(w=j.x,C=j.y,y)?Object.assign({},N,((s={})[I]=D?"0":"",s[B]=O?"0":"",s.transform=1>=(R.devicePixelRatio||1)?"translate("+w+"px, "+C+"px)":"translate3d("+w+"px, "+C+"px, 0)",s)):Object.assign({},N,((u={})[I]=D?C+"px":"",u[B]=O?w+"px":"",u.transform="",u))}var Y={left:"right",right:"left",bottom:"top",top:"bottom"};function $(t){return t.replace(/left|right|bottom|top/g,function(t){return Y[t]})}var Z={start:"end",end:"start"};function Q(t){return t.replace(/start|end/g,function(t){return Z[t]})}function tt(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&a(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function te(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tr(t,e,r){var i,a,u,s,c,f,l,p,d,g,y;return e===L?te(function(t,e){var r=n(t),o=S(t),i=r.visualViewport,a=o.clientWidth,u=o.clientHeight,s=0,c=0;if(i){a=i.width,u=i.height;var f=v();(f||!f&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:u,x:s+w(t),y:c}}(t,r)):o(e)?((a=m(i=e,!1,"fixed"===r)).top=a.top+i.clientTop,a.left=a.left+i.clientLeft,a.bottom=a.top+i.clientHeight,a.right=a.left+i.clientWidth,a.width=i.clientWidth,a.height=i.clientHeight,a.x=a.left,a.y=a.top,a):te((u=S(t),c=S(u),f=_(u),l=null==(s=u.ownerDocument)?void 0:s.body,p=h(c.scrollWidth,c.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=h(c.scrollHeight,c.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),g=-f.scrollLeft+w(u),y=-f.scrollTop,"rtl"===x(l||c).direction&&(g+=h(c.clientWidth,l?l.clientWidth:0)-p),{width:p,height:d,x:g,y:y}))}function tn(){return{top:0,right:0,bottom:0,left:0}}function to(t){return Object.assign({},tn(),t)}function ti(t,e){return e.reduce(function(e,r){return e[r]=t,e},{})}function ta(t,e){void 0===e&&(e={});var r,n,a,u,s,c,f,l,p,g,y=e,v=y.placement,_=void 0===v?t.placement:v,w=y.strategy,k=void 0===w?t.strategy:w,C=y.boundary,D=y.rootBoundary,T=y.elementContext,B=void 0===T?F:T,R=y.altBoundary,P=y.padding,N=void 0===P?0:P,j=to("number"!=typeof N?N:ti(N,I)),z=t.rects.popper,U=t.elements[void 0!==R&&R?B===F?"reference":F:B];var q=(r=o(U)?U:U.contextElement||S(t.elements.popper),n=void 0===C?"clippingParents":C,a=void 0===D?L:D,u=k,p=(l=[].concat("clippingParents"===n?(c=O(E(s=r)),o(f=["absolute","fixed"].indexOf(x(s).position)>=0&&i(s)?K(s):s)?c.filter(function(t){return o(t)&&tt(t,f)&&"body"!==b(t)}):[]):[].concat(n),[a]))[0],(g=l.reduce(function(t,e){var n=tr(r,e,u);return t.top=h(n.top,t.top),t.right=d(n.right,t.right),t.bottom=d(n.bottom,t.bottom),t.left=h(n.left,t.left),t},tr(r,p,u))).width=g.right-g.left,g.height=g.bottom-g.top,g.x=g.left,g.y=g.top,g),H=m(t.elements.reference),W=J({reference:H,element:z,strategy:"absolute",placement:_}),V=te(Object.assign({},z,W)),G=B===F?V:H,X={top:q.top-G.top+j.top,bottom:G.bottom-q.bottom+j.bottom,left:q.left-G.left+j.left,right:G.right-q.right+j.right},Y=t.modifiersData.offset;if(B===F&&Y){var $=Y[_];Object.keys(X).forEach(function(t){var e=[A,M].indexOf(t)>=0?1:-1,r=["top",M].indexOf(t)>=0?"y":"x";X[t]+=$[r]*e})}return X}function tu(t,e,r){return h(t,d(e,r))}function ts(t,e,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function tc(t){return["top",A,M,T].some(function(e){return t[e]>=0})}var tf=(u={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,r=t.instance,o=t.options,i=o.scroll,a=void 0===i||i,u=o.resize,s=void 0===u||u,c=n(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(t){t.addEventListener("scroll",r.update,q)}),s&&c.addEventListener("resize",r.update,q),function(){a&&f.forEach(function(t){t.removeEventListener("scroll",r.update,q)}),s&&c.removeEventListener("resize",r.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,r=t.name;e.modifiersData[r]=J({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=r.adaptive,i=r.roundOffsets,a=void 0===i||i,u={placement:H(e.placement),variation:W(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,X(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,X(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];if(!!i(o)&&!!b(o))Object.assign(o.style,r),Object.keys(n).forEach(function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})})},effect:function(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],o=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]).reduce(function(t,e){return t[e]="",t},{});if(!!i(n)&&!!b(n))Object.assign(n.style,a),Object.keys(o).forEach(function(t){n.removeAttribute(t)})})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=void 0===o?[0,0]:o,a=N.reduce(function(t,r){var n,o,a,u,s,c,f,l;return t[r]=(n=r,o=e.rects,a=i,s=[T,"top"].indexOf(u=H(n))>=0?-1:1,f=(c="function"==typeof a?a(Object.assign({},o,{placement:n})):a)[0],l=c[1],f=f||0,l=(l||0)*s,[T,A].indexOf(u)>=0?{x:l,y:f}:{x:f,y:l}),t},{}),u=a[e.placement],s=u.x,c=u.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,u=void 0===a||a,s=r.fallbackPlacements,c=r.padding,f=r.boundary,l=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,d=void 0===h||h,g=r.allowedAutoPlacements,y=e.options.placement,v=H(y)===y,m=s||(v||!d?[$(y)]:function(t){if(H(t)===B)return[];var e=$(t);return[Q(t),e,Q(e)]}(y)),_=[y].concat(m).reduce(function(t,r){var n,o,i,a,u,s,p,h,y,v,m,_,b,S;return t.concat(H(r)===B?(n=e,o={placement:r,boundary:f,rootBoundary:l,padding:c,flipVariations:d,allowedAutoPlacements:g},a=(i=o).placement,u=i.boundary,s=i.rootBoundary,p=i.padding,h=i.flipVariations,v=void 0===(y=i.allowedAutoPlacements)?N:y,0===(b=(_=(m=W(a))?h?P:P.filter(function(t){return W(t)===m}):I).filter(function(t){return v.indexOf(t)>=0})).length&&(b=_),Object.keys(S=b.reduce(function(t,e){return t[e]=ta(n,{placement:e,boundary:u,rootBoundary:s,padding:p})[H(e)],t},{})).sort(function(t,e){return S[t]-S[e]})):r)},[]),b=e.rects.reference,S=e.rects.popper,w=new Map,x=!0,k=_[0],C=0;C<_.length;C++){var E=_[C],O=H(E),D=W(E)===R,K=["top",M].indexOf(O)>=0,L=K?"width":"height",F=ta(e,{placement:E,boundary:f,rootBoundary:l,altBoundary:p,padding:c}),j=K?D?A:T:D?M:"top";b[L]>S[L]&&(j=$(j));var z=$(j),U=[];if(i&&U.push(F[O]<=0),u&&U.push(F[j]<=0,F[z]<=0),U.every(function(t){return t})){k=E,x=!1;break}w.set(E,U)}if(x){for(var q=d?3:1,V=function(t){var e=_.find(function(e){var r=w.get(e);if(r)return r.slice(0,t).every(function(t){return t})});if(e)return k=e,"break"},J=q;J>0&&"break"!==V(J);J--);}e.placement!==k&&(e.modifiersData[n]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=r.altAxis,a=r.boundary,u=r.rootBoundary,s=r.altBoundary,c=r.padding,f=r.tether,l=void 0===f||f,p=r.tetherOffset,g=void 0===p?0:p,y=ta(e,{boundary:a,rootBoundary:u,padding:c,altBoundary:s}),v=H(e.placement),m=W(e.placement),_=!m,b=V(v),S="x"===b?"y":"x",w=e.modifiersData.popperOffsets,x=e.rects.reference,k=e.rects.popper,E="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,O="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),D=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(!!w){if(void 0===o||o){var I,L="y"===b?"top":T,F="y"===b?M:A,P="y"===b?"height":"width",N=w[b],j=N+y[L],z=N-y[F],U=l?-k[P]/2:0,q=m===R?x[P]:k[P],J=m===R?-k[P]:-x[P],G=e.elements.arrow,X=l&&G?C(G):{width:0,height:0},Y=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:tn(),$=Y[L],Z=Y[F],Q=tu(0,x[P],X[P]),tt=_?x[P]/2-U-Q-$-O.mainAxis:q-Q-$-O.mainAxis,te=_?-x[P]/2+U+Q+Z+O.mainAxis:J+Q+Z+O.mainAxis,tr=e.elements.arrow&&K(e.elements.arrow),to=tr?"y"===b?tr.clientTop||0:tr.clientLeft||0:0,ti=null!=(I=null==D?void 0:D[b])?I:0,ts=tu(l?d(j,N+tt-ti-to):j,N,l?h(z,N+te-ti):z);w[b]=ts,B[b]=ts-N}if(void 0!==i&&i){var tc,tf,tl,tp="x"===b?"top":T,th="x"===b?M:A,td=w[S],tg="y"===S?"height":"width",ty=td+y[tp],tv=td-y[th],tm=-1!==["top",T].indexOf(v),t_=null!=(tl=null==D?void 0:D[S])?tl:0,tb=tm?ty:td-x[tg]-k[tg]-t_+O.altAxis,tS=tm?td+x[tg]+k[tg]-t_-O.altAxis:tv;var tw=l&&tm?(tf=tu(tb,td,tc=tS))>tc?tc:tf:tu(l?tb:ty,td,l?tS:tv);w[S]=tw,B[S]=tw-td}e.modifiersData[n]=B}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,r,n,o=t.state,i=t.name,a=t.options,u=o.elements.arrow,s=o.modifiersData.popperOffsets,c=H(o.placement),f=V(c),l=[T,A].indexOf(c)>=0?"height":"width";if(!!u&&!!s){var p=(e=a.padding,r=o,to("number"!=typeof(e="function"==typeof e?e(Object.assign({},r.rects,{placement:r.placement})):e)?e:ti(e,I))),h=C(u),d="y"===f?"top":T,g="y"===f?M:A,y=o.rects.reference[l]+o.rects.reference[f]-s[f]-o.rects.popper[l],v=s[f]-o.rects.reference[f],m=K(u),_=m?"y"===f?m.clientHeight||0:m.clientWidth||0:0,b=p[d],S=_-h[l]-p[g],w=_/2-h[l]/2+(y/2-v/2),x=tu(b,w,S);o.modifiersData[i]=((n={})[f]=x,n.centerOffset=x-w,n)}},effect:function(t){var e=t.state,r=t.options.element,n=void 0===r?"[data-popper-arrow]":r;if(null!=n&&("string"!=typeof n||!!(n=e.elements.popper.querySelector(n)))&&!!tt(e.elements.popper,n))e.elements.arrow=n},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ta(e,{elementContext:"reference"}),u=ta(e,{altBoundary:!0}),s=ts(a,n),c=ts(u,o,i),f=tc(s),l=tc(c);e.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}}]},f=void 0===(c=(s=u).defaultModifiers)?[]:c,p=void 0===(l=s.defaultOptions)?z:l,function(t,e,r){void 0===r&&(r=p);var a,u,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},z,p),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1;var h={state:s,setOptions:function(r){var n,i,a,u,l,g,y="function"==typeof r?r(s.options):r;d(),s.options=Object.assign({},p,s.options,y),s.scrollParents={reference:o(t)?O(t):t.contextElement?O(t.contextElement):[],popper:O(e)};var v=(g=(i=Object.keys(n=[].concat(f,s.options.modifiers).reduce(function(t,e){var r=t[e.name];return t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e,t},{})).map(function(t){return n[t]}),a=new Map,u=new Set,l=[],i.forEach(function(t){a.set(t.name,t)}),i.forEach(function(t){!u.has(t.name)&&!function t(e){u.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!u.has(e)){var r=a.get(e);r&&t(r)}}),l.push(e)}(t)}),l),j.reduce(function(t,e){return t.concat(g.filter(function(t){return t.phase===e}))},[]));return s.orderedModifiers=v.filter(function(t){return t.enabled}),function(){s.orderedModifiers.forEach(function(t){var e=t.name,r=t.options,n=t.effect;if("function"==typeof n){var o=n({state:s,name:e,instance:h,options:void 0===r?{}:r});c.push(o||function(){})}})}(),h.update()},forceUpdate:function(){if(l)return;var t,e,r,o,a,u,c,f,p,d,y,v,x,E=s.elements,O=E.reference,D=E.popper;if(!!U(O,D)){s.rects={reference:(t=O,e=K(D),r="fixed"===s.options.strategy,o=i(e),p=i(e)&&(c=g((u=(a=e).getBoundingClientRect()).width)/a.offsetWidth||1,f=g(u.height)/a.offsetHeight||1,1!==c||1!==f),d=S(e),y=m(t,p,r),v={scrollLeft:0,scrollTop:0},x={x:0,y:0},(o||!o&&!r)&&(("body"!==b(e)||k(d))&&(v=function(t){var e;if(t===n(t)||!i(t))return _(t);return{scrollLeft:(e=t).scrollLeft,scrollTop:e.scrollTop}}(e)),i(e)?(x=m(e,!0),x.x+=e.clientLeft,x.y+=e.clientTop):d&&(x.x=w(d))),{x:y.left+v.scrollLeft-x.x,y:y.top+v.scrollTop-x.y,width:y.width,height:y.height}),popper:C(D)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(t){return s.modifiersData[t.name]=Object.assign({},t.data)});for(var M=0;M<s.orderedModifiers.length;M++){if(!0===s.reset){s.reset=!1,M=-1;continue}var A=s.orderedModifiers[M],T=A.fn,B=A.options,I=void 0===B?{}:B,R=A.name;"function"==typeof T&&(s=T({state:s,options:I,name:R,instance:h})||s)}}},update:(a=function(){return new Promise(function(t){h.forceUpdate(),t(s)})},function(){return!u&&(u=new Promise(function(t){Promise.resolve().then(function(){u=void 0,t(a())})})),u}),destroy:function(){d(),l=!0}};if(!U(t,e))return h;h.setOptions(r).then(function(t){!l&&r.onFirstUpdate&&r.onFirstUpdate(t)});function d(){c.forEach(function(t){return t()}),c=[]}return h})},659008:function(t,e,r){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}var o=r(13030),i=r(699966),a=r(217390),u=r(195921),s=r(373251),c=r(483319),f=r(638784),l=r(499719),p=r(114517),h=r(977521),d=l("draft_tree_data_support"),g=d?u:a,y=p.List,v=p.Repeat;t.exports={insertAtomicBlock:function(t,e,r){var a=t.getCurrentContent(),u=t.getSelection(),l=s.removeRange(a,u,"backward"),p=l.getSelectionAfter(),h=s.splitBlock(l,p),m=h.getSelectionAfter(),_=s.setBlockType(h,m,"atomic"),b=i.create({entity:e}),S={key:f(),type:"atomic",text:r,characterList:y(v(b,r.length))},w={key:f(),type:"unstyled"};d&&(S=n({},S,{nextSibling:w.key}),w=n({},w,{prevSibling:S.key}));var x=[new g(S),new g(w)],k=o.createFromArray(x),C=s.replaceWithFragment(_,m,k),E=C.merge({selectionBefore:u,selectionAfter:C.getSelectionAfter().set("hasFocus",!0)});return c.push(t,E,"insert-fragment")},moveAtomicBlock:function(t,e,r,n){var o,i=t.getCurrentContent(),a=t.getSelection();if("before"===n||"after"===n){var u=i.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());o=h(i,e,u,n)}else{var f=s.removeRange(i,r,"backward"),l=f.getSelectionAfter(),p=f.getBlockForKey(l.getFocusKey());if(0===l.getStartOffset())o=h(f,e,p,"before");else if(l.getEndOffset()===p.getLength())o=h(f,e,p,"after");else{var d=s.splitBlock(f,l),g=d.getSelectionAfter(),y=d.getBlockForKey(g.getFocusKey());o=h(d,e,y,"before")}}var v=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return c.push(t,v,"move-block")}}},13030:function(t,e,r){"use strict";var n=r(114517).OrderedMap;t.exports={createFromArray:function(t){return n(t.map(function(t){return[t.getKey(),t]}))}}},390224:function(t,e,r){"use strict";var n=r(817209),o=r(606872),i=r(114517),a=i.List,u=i.Repeat,s=i.Record,c=function(){return!0},f=s({start:null,end:null}),l=s({start:null,end:null,decoratorKey:null,leaves:null});function p(t,e){return t===e}t.exports={generate:function(t,e,r){var o=e.getLength();if(!o)return a.of(new l({start:0,end:0,decoratorKey:null,leaves:a.of(new f({start:0,end:0}))}));var i=[],s=r?r.getDecorations(e,t):a(u(null,o)),h=e.getCharacterList();return n(s,p,c,function(t,e){i.push(new l({start:t,end:e,decoratorKey:s.get(t),leaves:function(t,e){var r=[];return n(t.map(function(t){return t.getStyle()}).toList(),p,c,function(t,n){r.push(new f({start:t+e,end:n+e}))}),a(r)}(h.slice(t,e).toList(),t)}))}),a(i)},fromJS:function(t){var e=t.leaves;return new l(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}({},function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&(o[r]=t[r]);return o}(t,["leaves"]),{leaves:null!=e?a(Array.isArray(e)?e:o(e)).map(function(t){return f(t)}):null}))}}},699966:function(t,e,r){"use strict";var n=r(114517),o=n.Map,i=n.OrderedSet,a=n.Record,u=i(),s={style:u,entity:null},c=function(t){function e(){return t.apply(this,arguments)||this}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,a=e.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(t){return this.getStyle().includes(t)},e.applyStyle=function(t,r){var n=t.set("style",t.getStyle().add(r));return e.create(n)},e.removeStyle=function(t,r){var n=t.set("style",t.getStyle().remove(r));return e.create(n)},e.applyEntity=function(t,r){var n=t.getEntity()===r?t:t.set("entity",r);return e.create(n)},e.create=function(t){if(!t)return f;var r=o({style:u,entity:null}).merge(t),n=l.get(r);if(n)return n;var i=new e(r);return l=l.set(r,i),i},e.fromJS=function(t){var r=t.style,n=t.entity;return new e({style:Array.isArray(r)?i(r):r,entity:Array.isArray(n)?i(n):n})},e}(a(s)),f=new c,l=o([[o(s),f]]);c.EMPTY=f,t.exports=c},798584:function(t,e,r){"use strict";var n=r(114517).List,o=function(){function t(t){var e,r,n;e=this,n=void 0,(r="_decorators")in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this._decorators=t.slice()}var e=t.prototype;return e.getDecorations=function(t,e){var r=Array(t.getText().length).fill(null);return this._decorators.forEach(function(n,o){var i=0,a=n.strategy;a(t,function(t,e){(function(t,e,r){for(var n=e;n<r;n++)if(null!=t[n])return!1;return!0})(r,t,e)&&(function(t,e,r,n){for(var o=e;o<r;o++)t[o]=n}(r,t,e,o+"."+i),i++)},e)}),n(r)},e.getComponentForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].component},e.getPropsForKey=function(t){var e=parseInt(t.split(".")[0],10);return this._decorators[e].props},t}();t.exports=o},217390:function(t,e,r){"use strict";var n=r(699966),o=r(817209),i=r(114517),a=i.List,u=i.Map,s=i.OrderedSet,c=i.Record,f=i.Repeat,l=s(),p=c({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:u()}),h=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(f(n.EMPTY,r.length))),t},d=function(t){function e(e){return t.call(this,h(e))||this}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,i=e.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():l},i.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},i.findStyleRanges=function(t,e){o(this.getCharacterList(),g,t,e)},i.findEntityRanges=function(t,e){o(this.getCharacterList(),y,t,e)},e}(p);function g(t,e){return t.getStyle()===e.getStyle()}function y(t,e){return t.getEntity()===e.getEntity()}t.exports=d},195921:function(t,e,r){"use strict";var n=r(699966),o=r(817209),i=r(114517),a=i.List,u=i.Map,s=i.OrderedSet,c=i.Record,f=i.Repeat,l=s(),p={parent:null,characterList:a(),data:u(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},h=function(t,e){return t.getStyle()===e.getStyle()},d=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){if(!t)return t;var e=t.characterList,r=t.text;return r&&!e&&(t.characterList=a(f(n.EMPTY,r.length))),t},y=function(t){function e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return t.call(this,g(e))||this}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,i=e.prototype;return i.getKey=function(){return this.get("key")},i.getType=function(){return this.get("type")},i.getText=function(){return this.get("text")},i.getCharacterList=function(){return this.get("characterList")},i.getLength=function(){return this.getText().length},i.getDepth=function(){return this.get("depth")},i.getData=function(){return this.get("data")},i.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():l},i.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},i.getChildKeys=function(){return this.get("children")},i.getParentKey=function(){return this.get("parent")},i.getPrevSiblingKey=function(){return this.get("prevSibling")},i.getNextSiblingKey=function(){return this.get("nextSibling")},i.findStyleRanges=function(t,e){o(this.getCharacterList(),h,t,e)},i.findEntityRanges=function(t,e){o(this.getCharacterList(),d,t,e)},e}(c(p));t.exports=y},430226:function(t,e,r){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}var o=r(13030),i=r(699966),a=r(217390),u=r(195921),s=r(89016),c=r(542025),f=r(638784),l=r(606872),p=r(499719),h=r(114517),d=r(367736),g=h.List,y=h.Record,v=h.Repeat,m=h.Map,_=h.OrderedMap,b=y({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),S=p("draft_tree_data_support")?u:a,w=function(t){function e(){return t.apply(this,arguments)||this}r=e,a=t,r.prototype=Object.create(a.prototype),r.prototype.constructor=r,r.__proto__=a;var r,a,u=e.prototype;return u.getEntityMap=function(){return s},u.getBlockMap=function(){return this.get("blockMap")},u.getSelectionBefore=function(){return this.get("selectionBefore")},u.getSelectionAfter=function(){return this.get("selectionAfter")},u.getBlockForKey=function(t){return this.getBlockMap().get(t)},u.getKeyBefore=function(t){return this.getBlockMap().reverse().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},u.getKeyAfter=function(t){return this.getBlockMap().keySeq().skipUntil(function(e){return e===t}).skip(1).first()},u.getBlockAfter=function(t){return this.getBlockMap().skipUntil(function(e,r){return r===t}).skip(1).first()},u.getBlockBefore=function(t){return this.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).first()},u.getBlocksAsArray=function(){return this.getBlockMap().toArray()},u.getFirstBlock=function(){return this.getBlockMap().first()},u.getLastBlock=function(){return this.getBlockMap().last()},u.getPlainText=function(t){return this.getBlockMap().map(function(t){return t?t.getText():""}).join(t||"\n")},u.getLastCreatedEntityKey=function(){return s.__getLastCreatedEntityKey()},u.hasText=function(){var t=this.getBlockMap();return t.size>1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},u.createEntity=function(t,e,r){return s.__create(t,e,r),this},u.mergeEntityData=function(t,e){return s.__mergeData(t,e),this},u.replaceEntityData=function(t,e){return s.__replaceData(t,e),this},u.addEntity=function(t){return s.__add(t),this},u.getEntity=function(t){return s.__get(t)},u.getAllEntities=function(){return s.__getAll()},u.loadWithEntities=function(t){return s.__loadWithEntities(t)},e.createFromBlockArray=function(t,r){var n=Array.isArray(t)?t:t.contentBlocks,i=o.createFromArray(n),a=i.isEmpty()?new c:c.createEmpty(i.first().getKey());return new e({blockMap:i,entityMap:r||s,selectionBefore:a,selectionAfter:a})},e.createFromText=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(r).map(function(t){return t=d(t),new S({key:f(),text:t,type:"unstyled",characterList:g(v(i.EMPTY,t.length))})});return e.createFromBlockArray(n)},e.fromJS=function(t){return new e(n({},t,{blockMap:_(t.blockMap).map(e.createContentBlockFromJS),selectionBefore:new c(t.selectionBefore),selectionAfter:new c(t.selectionAfter)}))},e.createContentBlockFromJS=function(t){var e=t.characterList;return new S(n({},t,{data:m(t.data),characterList:null!=e?g((Array.isArray(e)?e:l(e)).map(function(t){return i.fromJS(t)})):void 0}))},e}(b);t.exports=w},485195:function(t,e,r){"use strict";var n=r(699966),o=r(114517).Map;function i(t,e,r,i){var a=t.getBlockMap(),u=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),f=e.getEndOffset(),l=a.skipUntil(function(t,e){return e===u}).takeUntil(function(t,e){return e===c}).concat(o([[c,a.get(c)]])).map(function(t,e){u===c?(o=s,a=f):(o=e===u?s:0,a=e===c?f:t.getLength());for(var o,a,l,p=t.getCharacterList();o<a;)l=p.get(o),p=p.set(o,i?n.applyStyle(l,r):n.removeStyle(l,r)),o++;return t.set("characterList",p)});return t.merge({blockMap:a.merge(l),selectionBefore:e,selectionAfter:e})}t.exports={add:function(t,e,r){return i(t,e,r,!0)},remove:function(t,e,r){return i(t,e,r,!1)}}},258926:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(162378),i=r(146555),a=r(72835),u=r(114517),s=r(248799),c=r(601454),f=u.Map,l={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=o.isBrowser("IE <= 11"),h=function(){function t(t){var e=this;n(this,"observer",void 0),n(this,"container",void 0),n(this,"mutations",void 0),n(this,"onCharData",void 0),this.container=t,this.mutations=f();var r=a(t);r.MutationObserver&&!p?this.observer=new r.MutationObserver(function(t){return e.registerMutations(t)}):this.onCharData=function(t){t.target instanceof Node||s(!1),e.registerMutation({type:"characterData",target:t.target})}}var e=t.prototype;return e.start=function(){this.observer?this.observer.observe(this.container,l):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},e.stopAndFlushMutations=function(){var t=this.observer;t?(this.registerMutations(t.takeRecords()),t.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var e=this.mutations;return this.mutations=f(),e},e.registerMutations=function(t){for(var e=0;e<t.length;e++)this.registerMutation(t[e])},e.getMutationTextContent=function(t){var e=t.type,r=t.target,n=t.removedNodes;if("characterData"===e){if(""!==r.textContent)return p?r.textContent.replace("\n",""):r.textContent}else if("childList"===e){if(n&&n.length)return"";if(""!==r.textContent)return r.textContent}return null},e.registerMutation=function(t){var e=this.getMutationTextContent(t);if(null!=e){var r=c(i(t.target));this.mutations=this.mutations.set(r,e)}},t}();t.exports=h},633626:function(t,e,r){"use strict";var n=r(101199),o=r(716959),i=(0,r(114517).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:n.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:n.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:n.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=i},744430:function(t){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},205005:function(t,e,r){"use strict";var n=r(659008),o=r(13030),i=r(699966),a=r(798584),u=r(217390),s=r(430226),c=r(633626),f=r(744430),l=r(106310),p=r(760167),h=r(89016),d=r(373251),g=r(336521),y=r(483319),v=r(389230),m=r(988597),_=r(498778),b=r(542025),S=r(965448),w=r(539619),x=r(638784),k=r(846573),C=r(185041),E=r(118057);t.exports={Editor:l,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:h,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:u,ContentState:s,RawDraftContentState:m,SelectionState:b,AtomicBlockUtils:n,KeyBindingUtil:v,Modifier:d,RichUtils:_,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:f,convertFromHTML:E,convertFromRaw:w,convertToRaw:S,genKey:x,getDefaultKeyBinding:k,getVisibleSelectionRect:C}},106310:function(t,e,r){"use strict";var n=r(639763);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){u(t,e,r[e])})}return t}function a(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var c=r(633626),f=r(744430),l=r(748829),p=r(50150),h=r(405330),d=r(325562),g=r(431732),y=r(2553),v=r(807396),m=r(483319),_=r(101199),b=r(189730),S=r(965554),w=r(162378),x=r(716959),k=r(638784),C=r(846573),E=r(575032),O=r(499719),D=r(248799),K=r(541133),M=r(601454),A=w.isBrowser("IE"),T=!A,B={edit:d,composite:l,drag:h,cut:null,render:null},I=!1,R=function(t){function e(){return t.apply(this,arguments)||this}s(e,t);var r=e.prototype;return r.render=function(){return null},r.componentDidMount=function(){this._update()},r.componentDidUpdate=function(){this._update()},r._update=function(){var t=this.props.editor;t._latestEditorState=this.props.editorState,t._blockSelectEvents=!0},e}(_.Component),L=function(t){function e(e){var r;return u(a(r=t.call(this,e)||this),"_blockSelectEvents",void 0),u(a(r),"_clipboard",void 0),u(a(r),"_handler",void 0),u(a(r),"_dragCount",void 0),u(a(r),"_internalDrag",void 0),u(a(r),"_editorKey",void 0),u(a(r),"_placeholderAccessibilityID",void 0),u(a(r),"_latestEditorState",void 0),u(a(r),"_latestCommittedEditorState",void 0),u(a(r),"_pendingStateFromBeforeInput",void 0),u(a(r),"_onBeforeInput",void 0),u(a(r),"_onBlur",void 0),u(a(r),"_onCharacterData",void 0),u(a(r),"_onCompositionEnd",void 0),u(a(r),"_onCompositionStart",void 0),u(a(r),"_onCopy",void 0),u(a(r),"_onCut",void 0),u(a(r),"_onDragEnd",void 0),u(a(r),"_onDragOver",void 0),u(a(r),"_onDragStart",void 0),u(a(r),"_onDrop",void 0),u(a(r),"_onInput",void 0),u(a(r),"_onFocus",void 0),u(a(r),"_onKeyDown",void 0),u(a(r),"_onKeyPress",void 0),u(a(r),"_onKeyUp",void 0),u(a(r),"_onMouseDown",void 0),u(a(r),"_onMouseUp",void 0),u(a(r),"_onPaste",void 0),u(a(r),"_onSelect",void 0),u(a(r),"editor",void 0),u(a(r),"editorContainer",void 0),u(a(r),"focus",void 0),u(a(r),"blur",void 0),u(a(r),"setMode",void 0),u(a(r),"exitCurrentMode",void 0),u(a(r),"restoreEditorDOM",void 0),u(a(r),"setClipboard",void 0),u(a(r),"getClipboard",void 0),u(a(r),"getEditorKey",void 0),u(a(r),"update",void 0),u(a(r),"onDragEnter",void 0),u(a(r),"onDragLeave",void 0),u(a(r),"_handleEditorContainerRef",function(t){r.editorContainer=t,r.editor=null!==t?t.firstChild:null}),u(a(r),"focus",function(t){var e=r.props.editorState,n=e.getSelection().getHasFocus(),o=r.editor;if(!!o){var i=S.getScrollParent(o),a=t||E(i),u=a.x,s=a.y;K(o)||D(!1),o.focus(),i===window?window.scrollTo(u,s):b.setTop(i,s),!n&&r.update(m.forceSelection(e,e.getSelection()))}}),u(a(r),"blur",function(){var t=r.editor;if(!!t)K(t)||D(!1),t.blur()}),u(a(r),"setMode",function(t){var e=r.props,n=e.onPaste,o=e.onCut,a=e.onCopy,u=i({},B.edit);n&&(u.onPaste=n),o&&(u.onCut=o),a&&(u.onCopy=a);var s=i({},B,{edit:u});r._handler=s[t]}),u(a(r),"exitCurrentMode",function(){r.setMode("edit")}),u(a(r),"restoreEditorDOM",function(t){r.setState({contentsKey:r.state.contentsKey+1},function(){r.focus(t)})}),u(a(r),"setClipboard",function(t){r._clipboard=t}),u(a(r),"getClipboard",function(){return r._clipboard}),u(a(r),"update",function(t){r._latestEditorState=t,r.props.onChange(t)}),u(a(r),"onDragEnter",function(){r._dragCount++}),u(a(r),"onDragLeave",function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()}),r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=e.editorKey||k(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=e.editorState,r._latestCommittedEditorState=e.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}s(e,t);var r=e.prototype;return r._buildHandler=function(t){var e=this;return function(r){if(!e.props.readOnly){var n=e._handler&&e._handler[t];n&&(g?g(function(){return n(e,r)}):n(e,r))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var t={text:M(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return _.createElement(y,t)}return null},r._renderARIADescribedBy=function(){var t=this.props.ariaDescribedBy||"",e=this._showPlaceholder()?this._placeholderAccessibilityID:"";return t.replace("{{editor_id_placeholder}}",e)||void 0},r.render=function(){var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,a=t.customStyleFn,u=t.customStyleMap,s=t.editorState,c=t.preventScroll,l=t.readOnly,h=t.textAlignment,d=t.textDirectionality,g=x({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===h,"DraftEditor/alignRight":"right"===h,"DraftEditor/alignCenter":"center"===h}),y=this.props.role||"textbox",v="combobox"===y?!!this.props.ariaExpanded:null,m={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,customStyleMap:i({},f,u),customStyleFn:a,editorKey:this._editorKey,editorState:s,preventScroll:c,textDirectionality:d};return _.createElement("div",{className:g},this._renderPlaceholder(),_.createElement("div",{className:x("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},_.createElement("div",{"aria-activedescendant":l?null:this.props.ariaActiveDescendantID,"aria-autocomplete":l?null:this.props.ariaAutoComplete,"aria-controls":l?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":l?null:v,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":l?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:x({notranslate:!l,"public/DraftEditor/content":!0}),contentEditable:!l,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:l?null:y,spellCheck:T&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},_.createElement(R,{editor:this,editorState:s}),_.createElement(p,o({},m,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!I&&O("draft_ods_enabled")&&(I=!0,v.initODS()),this.setMode("edit"),A&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):window.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},e}(_.Component);u(L,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:c,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:C,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),t.exports=L},760167:function(t,e,r){"use strict";var n=r(639763);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var i=r(839705),a=r(468109),u=r(101199),s=r(189730),c=r(965554),f=r(853090),l=r(62980),p=r(716959),h=r(525253),d=r(575032),g=r(298554),y=r(248799),v=r(541133),m=r(601454),_=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},b=function(t){function e(){for(var e,r,n,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this),o=void 0,(n="_node")in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,e}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,b=e.prototype;return b.shouldComponentUpdate=function(t){return this.props.block!==t.block||this.props.tree!==t.tree||this.props.direction!==t.direction||_(t.selection,t.block.getKey())&&t.forceSelection},b.componentDidMount=function(){if(this.props.preventScroll)return;var t,e=this.props.selection,r=e.getEndKey();if(!e.getHasFocus()||r!==this.props.block.getKey())return;var n=this._node;if(null!=n){var o=c.getScrollParent(n),i=d(o);if(o===window){var a=h(n),u=a.y+a.height;(t=u-g().height)>0&&window.scrollTo(i.x,i.y+t+10)}else{v(n)||y(!1);var f=n.offsetHeight+n.offsetTop;(t=f-(o.offsetTop+o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+t+10)}}},b._renderChildren=function(){var t=this,e=this.props.block,r=e.getKey(),n=e.getText(),s=this.props.tree.size-1,c=_(this.props.selection,r);return this.props.tree.map(function(p,h){var d=p.get("leaves");if(0===d.size)return null;var g=d.size-1,y=d.map(function(o,f){var l=a.encode(r,h,f),p=o.get("start"),d=o.get("end");return u.createElement(i,{key:l,offsetKey:l,block:e,start:p,selection:c?t.props.selection:null,forceSelection:t.props.forceSelection,text:n.slice(p,d),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:h===s&&f===g})}).toArray(),v=p.get("decoratorKey");if(null==v||!t.props.decorator)return y;var _=m(t.props.decorator),b=_.getComponentForKey(v);if(!b)return y;var S=_.getPropsForKey(v),w=a.encode(r,h,0),x=d.first().get("start"),k=d.last().get("end"),C=n.slice(x,k),E=e.getEntityAt(p.get("start")),O=l.getHTMLDirIfDifferent(f.getDirection(C),t.props.direction),D={contentState:t.props.contentState,decoratedText:C,dir:O,start:x,end:k,blockKey:r,entityKey:E,offsetKey:w};return u.createElement(b,o({},S,D,{key:w}),y)}).toArray()},b.render=function(){var t=this,e=this.props,r=e.direction,n=e.offsetKey,o=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===r,"public/DraftStyleDefault/rtl":"RTL"===r});return u.createElement("div",{"data-offset-key":n,className:o,ref:function(e){return t._node=e}},this._renderChildren())},e}(u.Component);t.exports=b},625450:function(t,e,r){"use strict";var n=r(639763);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){a(t,e,r[e])})}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=r(723019),s=r(468109),c=r(101199),f=r(189730),l=r(965554),p=r(525253),h=r(575032),d=r(298554),g=r(114517),y=r(248799),v=r(541133);g.List;var m=function(t,e){return t.getAnchorKey()===e||t.getFocusKey()===e},_=function(t,e){var r=t.getNextSiblingKey();return!!r&&e.getBlockForKey(r).getType()===t.getType()},b=function(t,e,r){var n=[],o=!0,i=!1,a=void 0;try{for(var u,f=r.reverse()[Symbol.iterator]();!(o=(u=f.next()).done);o=!0){var l=u.value;if(l.type!==e)break;n.push(l)}}catch(t){i=!0,a=t}finally{try{!o&&null!=f.return&&f.return()}finally{if(i)throw a}}r.splice(r.indexOf(n[0]),n.length+1);var p=n.reverse(),h=p[0].key;return r.push(c.cloneElement(t,{key:"".concat(h,"-wrap"),"data-offset-key":s.encode(h,0,0)},p)),r},S=function(t,e){var r=e.get(t.getType())||e.get("unstyled"),n=r.wrapper;return{Element:r.element||e.get("unstyled").element,wrapperTemplate:n}},w=function(t,e){var r=e(t);return r?{CustomComponent:r.component,customProps:r.props,customEditable:r.editable}:{}},x=function(t,e,r,n,o,a){var u={"data-block":!0,"data-editor":e,"data-offset-key":r,key:t.getKey(),ref:a},s=n(t);return s&&(u.className=s),void 0!==o.customEditable&&(u=i({},u,{contentEditable:o.customEditable,suppressContentEditableWarning:!0})),u},k=function(t){function e(){for(var e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return a(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(n))||this),"wrapperRef",c.createRef()),e}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,g=e.prototype;return g.shouldComponentUpdate=function(t){var e=this.props,r=e.block,n=e.direction,o=e.tree,i=!r.getChildKeys().isEmpty(),a=r!==t.block||o!==t.tree||n!==t.direction||m(t.selection,t.block.getKey())&&t.forceSelection;return i||a},g.componentDidMount=function(){var t,e=this.props.selection,r=e.getEndKey();if(!e.getHasFocus()||r!==this.props.block.getKey())return;var n=this.wrapperRef.current;if(!!n){var o=l.getScrollParent(n),i=h(o);if(o===window){var a=p(n),u=a.y+a.height;(t=u-d().height)>0&&window.scrollTo(i.x,i.y+t+10)}else{v(n)||y(!1);var s=n.offsetHeight+n.offsetTop;(t=s-(o.offsetHeight+i.y))>0&&f.setTop(o,f.getTop(o)+t+10)}}},g.render=function(){var t=this,r=this.props,n=r.block,a=r.blockRenderMap,f=r.blockRendererFn,l=r.blockStyleFn,p=r.contentState,h=r.decorator,d=r.editorKey,g=r.editorState,y=r.customStyleFn,v=r.customStyleMap,k=r.direction,C=r.forceSelection,E=r.selection,O=r.tree,D=null;n.children.size&&(D=n.children.reduce(function(r,n){var o=s.encode(n,0,0),u=p.getBlockForKey(n),h=w(u,f),y=h.CustomComponent||e,v=S(u,a),m=v.Element,k=v.wrapperTemplate,C=x(u,d,o,l,h,null),E=i({},t.props,{tree:g.getBlockTree(n),blockProps:h.customProps,offsetKey:o,block:u});return(r.push(c.createElement(m,C,c.createElement(y,E))),!k||_(u,p))?r:(b(k,m,r),r)},[]));var K=n.getKey(),M=s.encode(K,0,0),A=w(n,f),T=A.CustomComponent,B=null!=T?c.createElement(T,o({},this.props,{tree:g.getBlockTree(K),blockProps:A.customProps,offsetKey:M,block:n})):c.createElement(u,{block:n,children:D,contentState:p,customStyleFn:y,customStyleMap:v,decorator:h,direction:k,forceSelection:C,hasSelection:m(E,K),selection:E,tree:O});if(n.getParentKey())return B;var I=S(n,a).Element,R=x(n,d,M,l,A,this.wrapperRef);return c.createElement(I,R,B)},e}(c.Component);t.exports=k},748829:function(t,e,r){"use strict";var n=r(258926),o=r(373251),i=r(468109),a=r(483319),u=r(411885),s=r(162378),c=r(329743),f=r(948751),l=r(467211),p=r(834217),h=r(601454),d=s.isBrowser("IE"),g=!1,y=!1,v=null,m={onCompositionStart:function(t){var e;y=!0,e=t,v||(v=new n(f(e))).start()},onCompositionEnd:function(t){g=!1,y=!1,setTimeout(function(){!g&&m.resolveComposition(t)},20)},onSelect:c,onKeyDown:function(t,e){if(!y){m.resolveComposition(t),t._onKeyDown(e);return}(e.which===u.RIGHT||e.which===u.LEFT)&&e.preventDefault()},onKeyPress:function(t,e){e.which===u.RETURN&&e.preventDefault()},resolveComposition:function(t){if(!y){var e=h(v).stopAndFlushMutations();v=null,g=!0;var r=a.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!e.size){t.update(r);return}var n=r.getCurrentContent();e.forEach(function(t,e){var u=i.decode(e),s=u.blockKey,c=u.decoratorKey,f=u.leafKey,l=r.getBlockTree(s).getIn([c,"leaves",f]),h=l.start,d=l.end,g=r.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:h,focusOffset:d,isBackward:!1}),y=p(n,g),v=n.getBlockForKey(s).getInlineStyleAt(h);n=o.replaceText(n,g,t,v,y),r=a.set(r,{currentContent:n})});var u=l(r,f(t)).selectionState;t.restoreEditorDOM();var s=d?a.forceSelection(r,u):a.acceptSelection(r,u);t.update(a.push(s,n,"insert-characters"))}}};t.exports=m},892530:function(t,e,r){"use strict";var n=r(639763);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var i=r(760167),a=r(468109),u=r(101199),s=r(716959),c=r(3609),f=r(601454),l=function(t){function e(){return t.apply(this,arguments)||this}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,l=e.prototype;return l.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return o!==i||a!==u||s!==c||r.mustForceSelection()},l.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,l=t.customStyleMap,p=t.customStyleFn,h=t.editorState,d=t.editorKey,g=t.preventScroll,y=t.textDirectionality,v=h.getCurrentContent(),m=h.getSelection(),_=h.mustForceSelection(),b=h.getDecorator(),S=f(h.getDirectionMap()),w=v.getBlocksAsArray(),x=[],k=null,C=null,E=0;E<w.length;E++){var O=w[E],D=O.getKey(),K=O.getType(),M=r(O),A=void 0,T=void 0,B=void 0;M&&(A=M.component,T=M.props,B=M.editable);var I=y||S.get(D),R=a.encode(D,0,0),L={contentState:v,block:O,blockProps:T,blockStyleFn:n,customStyleMap:l,customStyleFn:p,decorator:b,direction:I,forceSelection:_,offsetKey:R,preventScroll:g,selection:m,tree:h.getBlockTree(D)},F=e.get(K)||e.get("unstyled"),P=F.wrapper,N=F.element||e.get("unstyled").element,j=O.getDepth(),z="";if(n&&(z=n(O)),"li"===N){var U,q,H,W=C!==P||null===k||j>k;z=c(z,s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===(U=K),"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===U,"public/DraftStyleDefault/reset":W,"public/DraftStyleDefault/depth0":0===(q=j),"public/DraftStyleDefault/depth1":1===q,"public/DraftStyleDefault/depth2":2===q,"public/DraftStyleDefault/depth3":3===q,"public/DraftStyleDefault/depth4":q>=4,"public/DraftStyleDefault/listLTR":"LTR"===(H=I),"public/DraftStyleDefault/listRTL":"RTL"===H}))}var V=A||i,J={className:z,"data-block":!0,"data-editor":d,"data-offset-key":R,key:D};void 0!==B&&(J=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}({},J,{contentEditable:B,suppressContentEditableWarning:!0}));var G=u.createElement(N,J,u.createElement(V,o({},L,{key:D})));x.push({block:G,wrapperTemplate:P,key:D,offsetKey:R}),k=P?O.getDepth():null,C=P}for(var X=[],Y=0;Y<x.length;){var $=x[Y];if($.wrapperTemplate){var Z=[];do Z.push(x[Y].block),Y++;while(Y<x.length&&x[Y].wrapperTemplate===$.wrapperTemplate);var Q=u.cloneElement($.wrapperTemplate,{key:$.key+"-wrap","data-offset-key":$.offsetKey},Z);X.push(Q)}else X.push($.block),Y++}return u.createElement("div",{"data-contents":"true"},X)},e}(u.Component);t.exports=l},50150:function(t,e,r){"use strict";var n=r(499719)("draft_tree_data_support");t.exports=r(n?597563:892530)},597563:function(t,e,r){"use strict";var n=r(639763);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var i=r(625450),a=r(468109),u=r(101199),s=r(601454),c=function(t){function e(){return t.apply(this,arguments)||this}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,c=e.prototype;return c.shouldComponentUpdate=function(t){var e=this.props.editorState,r=t.editorState;if(e.getDirectionMap()!==r.getDirectionMap()||e.getSelection().getHasFocus()!==r.getSelection().getHasFocus())return!0;var n=r.getNativelyRenderedContent(),o=e.isInCompositionMode(),i=r.isInCompositionMode();if(e===r||null!==n&&r.getCurrentContent()===n||o&&i)return!1;var a=e.getCurrentContent(),u=r.getCurrentContent(),s=e.getDecorator(),c=r.getDecorator();return o!==i||a!==u||s!==c||r.mustForceSelection()},c.render=function(){for(var t=this.props,e=t.blockRenderMap,r=t.blockRendererFn,n=t.blockStyleFn,c=t.customStyleMap,f=t.customStyleFn,l=t.editorState,p=t.editorKey,h=t.textDirectionality,d=l.getCurrentContent(),g=l.getSelection(),y=l.mustForceSelection(),v=l.getDecorator(),m=s(l.getDirectionMap()),_=d.getBlocksAsArray()[0],b=[],S=_;S;){var w=S.getKey(),x={blockRenderMap:e,blockRendererFn:r,blockStyleFn:n,contentState:d,customStyleFn:f,customStyleMap:c,decorator:v,editorKey:p,editorState:l,forceSelection:y,selection:g,block:S,direction:h||m.get(w),tree:l.getBlockTree(w)},k=(e.get(S.getType())||e.get("unstyled")).wrapper;b.push({block:u.createElement(i,o({key:w},x)),wrapperTemplate:k,key:w,offsetKey:a.encode(w,0,0)});var C=S.getNextSiblingKey();S=C?d.getBlockForKey(C):null}for(var E=[],O=0;O<b.length;){var D=b[O];if(D.wrapperTemplate){var K=[];do K.push(b[O].block),O++;while(O<b.length&&b[O].wrapperTemplate===D.wrapperTemplate);var M=u.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},K);E.push(M)}else E.push(D.block),O++}return u.createElement("div",{"data-contents":"true"},E)},e}(u.Component);t.exports=c},910089:function(t,e,r){"use strict";var n=r(639763);function o(){return(o=n||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}var i=r(468109),a=r(101199),u=r(853090),s=r(62980),c=function(t){var e,r;function n(){return t.apply(this,arguments)||this}return e=n,r=t,e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n.prototype.render=function(){var t=this.props,e=t.block,r=t.children,n=t.contentState,c=t.decorator,f=t.decoratorKey,l=t.direction,p=t.leafSet,h=t.text,d=e.getKey(),g=p.get("leaves"),y=c.getComponentForKey(f),v=c.getPropsForKey(f),m=i.encode(d,parseInt(f,10),0),_=h.slice(g.first().get("start"),g.last().get("end")),b=s.getHTMLDirIfDifferent(u.getDirection(_),l);return a.createElement(y,o({},v,{contentState:n,decoratedText:_,dir:b,key:m,entityKey:e.getEntityAt(p.get("start")),offsetKey:m}),r)},n}(a.Component);t.exports=c},405330:function(t,e,r){"use strict";var n=r(448681),o=r(373251),i=r(483319),a=r(146555),u=r(217889),s=r(108142),c=r(243480),f=r(72835),l=r(350508),p=r(601454);function h(t){t._internalDrag=!1;var e=t.editorContainer;if(e){var r=new MouseEvent("mouseup",{view:f(e),bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}function d(t,e,r){var n=o.insertText(t.getCurrentContent(),e,r,t.getCurrentInlineStyle());return i.push(t,n,"insert-fragment")}t.exports={onDragEnd:function(t){t.exitCurrentMode(),h(t)},onDrop:function(t,e){var r=new n(e.nativeEvent.dataTransfer),f=t._latestEditorState,g=function(t,e){var r=null,n=null,o=u(t.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(t.x,t.y);r=i.startContainer,n=i.startOffset}else{if(!t.rangeParent)return null;r=t.rangeParent,n=t.rangeOffset}r=p(r),n=p(n);var s=p(a(r));return c(e,s,n,s,n)}(e.nativeEvent,f);if(e.preventDefault(),t._dragCount=0,t.exitCurrentMode(),null!=g){var y=r.getFiles();if(y.length>0){if(t.props.handleDroppedFiles&&l(t.props.handleDroppedFiles(g,y)))return;s(y,function(e){e&&t.update(d(f,g,e))});return}var v=t._internalDrag?"internal":"external";t.props.handleDrop&&l(t.props.handleDrop(g,r,v))||(t._internalDrag?t.update(function(t,e){var r=o.moveText(t.getCurrentContent(),t.getSelection(),e);return i.push(t,r,"insert-fragment")}(f,g)):t.update(d(f,g,r.getText()))),h(t)}}}},325562:function(t,e,r){"use strict";var n=r(162378),o=r(769487),i=r(310210),a=r(734273),u=r(551185),s=r(584124),c=r(883951),f=r(578302),l=r(75735),p=r(825752),h=r(803056),d=r(58329),g=r(329743),y=n.isBrowser("Chrome"),v=n.isBrowser("Firefox"),m=y||v?g:function(t){};t.exports={onBeforeInput:o,onBlur:i,onCompositionStart:a,onCopy:u,onCut:s,onDragOver:c,onDragStart:f,onFocus:l,onInput:p,onKeyDown:h,onPaste:d,onSelect:g,onMouseUp:m,onKeyUp:m}},431732:function(t,e,r){"use strict";var n=r(890710).unstable_flushControlled;t.exports=n},839705:function(t,e,r){"use strict";var n=r(639763),o=r(46975),i=r(101199),a=r(248799),u=r(47808),s=r(508561).setDraftEditorSelection,c=function(t){function e(){for(var e,r,n,o,i=arguments.length,a=Array(i),u=0;u<i;u++)a[u]=arguments[u];return r=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call.apply(t,[this].concat(a))||this),o=void 0,(n="leaf")in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,e}r=e,c=t,r.prototype=Object.create(c.prototype),r.prototype.constructor=r,r.__proto__=c;var r,c,f=e.prototype;return f._setSelection=function(){var t,e=this.props.selection;if(null==e||!e.getHasFocus())return;var r=this.props,n=r.block,o=r.start,i=r.text,c=n.getKey(),f=o+i.length;if(!!e.hasEdgeWithin(c,o,f)){var l=this.leaf;l||a(!1);var p=l.firstChild;p||a(!1),p.nodeType===Node.TEXT_NODE?t=p:u(p)?t=l:(t=p.firstChild)||a(!1),s(e,t,c,o,f)}},f.shouldComponentUpdate=function(t){var e=this.leaf;return e||a(!1),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},f.componentDidUpdate=function(){this._setSelection()},f.componentDidMount=function(){this._setSelection()},f.render=function(){var t=this,e=this.props.block,r=this.props.text;r.endsWith("\n")&&this.props.isLast&&(r+="\n");var a=this.props,u=a.customStyleMap,s=a.customStyleFn,c=a.offsetKey,f=a.styleSet,l=f.reduce(function(t,e){var r={},o=u[e];return void 0!==o&&t.textDecoration!==o.textDecoration&&(r.textDecoration=[t.textDecoration,o.textDecoration].join(" ").trim()),n(t,o,r)},{});return s&&(l=n(l,s(f,e))),i.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:l},i.createElement(o,null,r))},e}(i.Component);t.exports=c},723019:function(t,e,r){"use strict";var n=r(910089),o=r(839705),i=r(468109),a=r(114517),u=r(101199),s=r(716959);a.List;var c=function(t){var e,r;function a(){return t.apply(this,arguments)||this}return e=a,r=t,e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,a.prototype.render=function(){var t=this.props,e=t.block,r=t.contentState,a=t.customStyleFn,c=t.customStyleMap,f=t.decorator,l=t.direction,p=t.forceSelection,h=t.hasSelection,d=t.selection,g=t.tree,y=e.getKey(),v=e.getText(),m=g.size-1,_=this.props.children||g.map(function(t,s){var g=t.get("decoratorKey"),_=t.get("leaves"),b=_.size-1,S=_.map(function(t,r){var n=i.encode(y,s,r),f=t.get("start"),l=t.get("end");return u.createElement(o,{key:n,offsetKey:n,block:e,start:f,selection:h?d:null,forceSelection:p,text:v.slice(f,l),styleSet:e.getInlineStyleAt(f),customStyleMap:c,customStyleFn:a,isLast:g===m&&r===b})}).toArray();return g&&f?u.createElement(n,{block:e,children:S,contentState:r,decorator:f,decoratorKey:g,direction:l,leafSet:t,text:v,key:s}):S}).toArray();return u.createElement("div",{"data-offset-key":i.encode(y,0,0),className:s({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===l,"public/DraftStyleDefault/rtl":"RTL"===l})},_)},a}(u.Component);t.exports=c},2553:function(t,e,r){"use strict";var n=r(101199),o=r(716959),i=function(t){function e(){return t.apply(this,arguments)||this}r=e,i=t,r.prototype=Object.create(i.prototype),r.prototype.constructor=r,r.__proto__=i;var r,i,a=e.prototype;return a.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},a.render=function(){var t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":this.props.editorState.getSelection().getHasFocus()});return n.createElement("div",{className:t},n.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},e}(n.Component);t.exports=i},46975:function(t,e,r){"use strict";function n(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(101199),a=r(162378),u=r(248799),s=r(461273),c=a.isBrowser("IE <= 11"),f=function(t){function e(e){var r;return o(n(r=t.call(this,e)||this),"_forceFlag",void 0),o(n(r),"_node",void 0),r._forceFlag=!1,r}r=e,a=t,r.prototype=Object.create(a.prototype),r.prototype.constructor=r,r.__proto__=a;var r,a,f=e.prototype;return f.shouldComponentUpdate=function(t){var e,r=this._node,n=""===t.children;s(r)||u(!1);if(n){;return e=r,c?"\n"!==e.textContent:"BR"!==e.tagName}return r.textContent!==t.children},f.componentDidMount=function(){this._forceFlag=!this._forceFlag},f.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},f.render=function(){var t,e,r=this;if(""===this.props.children){;return this._forceFlag?(t=function(t){return r._node=t},c?i.createElement("span",{key:"A","data-text":"true",ref:t},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:t})):(e=function(t){return r._node=t},c?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e}))}return i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return r._node=t}},this.props.children)},e}(i.Component);t.exports=f},807396:function(t){"use strict";t.exports={initODS:function(){},handleExtensionCausedError:function(){}}},89016:function(t,e,r){"use strict";var n=r(336521),o=r(114517),i=r(248799),a=r(307867),u=(0,o.Map)(),s=a();function c(t,e){}var f={getLastCreatedEntityKey:function(){return f.__getLastCreatedEntityKey()},create:function(t,e,r){return f.__create(t,e,r)},add:function(t){return f.__add(t)},get:function(t){return f.__get(t)},__getAll:function(){return u},__loadWithEntities:function(t){u=t,s=a()},mergeData:function(t,e){return f.__mergeData(t,e)},replaceData:function(t,e){return f.__replaceData(t,e)},__getLastCreatedEntityKey:function(){return s},__create:function(t,e,r){return f.__add(new n({type:t,mutability:e,data:r||{}}))},__add:function(t){return s=a(),u=u.set(s,t),s},__get:function(t){var e=u.get(t);return e||i(!1),e},__mergeData:function(t,e){var r=f.__get(t),n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}({},r.getData(),e),o=r.set("data",n);return u=u.set(t,o),o},__replaceData:function(t,e){var r=f.__get(t).set("data",e);return u=u.set(t,r),r}};t.exports=f},336521:function(t,e,r){"use strict";var n=function(t){function e(){return t.apply(this,arguments)||this}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,o=e.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},e}((0,r(114517).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=n},344812:function(t){"use strict";t.exports={getRemovalRange:function(t,e,r,n,o){var i,a=r.split(" ");a=a.map(function(t,e){if("forward"===o){if(e>0)return" "+t}else if(e<a.length-1)return t+" ";return t});for(var u=n,s=null,c=null,f=0;f<a.length;f++){if(t<(i=u+a[f].length)&&u<e)null!==s||(s=u),c=i;else if(null!==s)break;u=i}var l=n+r.length,p=s===n,h=c===l;return(!p&&h||p&&!h)&&("forward"===o?c!==l&&c++:s!==n&&s--),{start:s,end:c}}}},655421:function(t){"use strict";t.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},373251:function(t,e,r){"use strict";var n=r(699966),o=r(485195),i=r(288957),a=r(499651),u=r(808949),s=r(114517),c=r(230462),f=r(135107),l=r(248799),p=r(996716),h=r(947366),d=r(589649),g=r(307506),y=s.OrderedSet,v={replaceText:function(t,e,r,o,i){var a=d(h(t,e),e),u=n.create({style:o||y(),entity:i||null});return f(a,a.getSelectionAfter(),r,u)},insertText:function(t,e,r,n,o){return e.isCollapsed()||l(!1),v.replaceText(t,e,r,n,o)},moveText:function(t,e,r){var n=u(t,e),o=v.removeRange(t,e,"backward");return v.replaceWithFragment(o,r,n)},replaceWithFragment:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=d(h(t,e),e);return c(o,o.getSelectionAfter(),r,n)},removeRange:function(t,e,r){e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),n=e.getAnchorKey(),o=e.getFocusKey(),i=t.getBlockForKey(n),u=t.getBlockForKey(o);var n,o,i,u,s=e.getStartOffset(),c=e.getEndOffset(),f=i.getEntityAt(s),l=u.getEntityAt(c-1);if(n===o&&f&&f===l){var p=a(t.getEntityMap(),i,u,e,r);return d(t,p)}return d(h(t,e),e)},splitBlock:function(t,e){var r=d(h(t,e),e);return g(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,r){return o.add(t,e,r)},removeInlineStyle:function(t,e,r){return o.remove(t,e,r)},setBlockType:function(t,e,r){return p(t,e,function(t){return t.merge({type:r,depth:0})})},setBlockData:function(t,e,r){return p(t,e,function(t){return t.merge({data:r})})},mergeBlockData:function(t,e,r){return p(t,e,function(t){return t.merge({data:t.getData().merge(r)})})},applyEntity:function(t,e,r){return i(h(t,e),e,r)}};t.exports=v},468109:function(t){"use strict";t.exports={encode:function(t,e,r){return t+"-"+e+"-"+r},decode:function(t){var e=t.split("-").reverse(),r=e[0],n=e[1];return{blockKey:e.slice(2).reverse().join("-"),decoratorKey:parseInt(n,10),leafKey:parseInt(r,10)}}}},297891:function(t,e,r){"use strict";var n=r(217390),o=r(195921),i=r(118057),a=r(638784),u=r(63277),s=r(499719),c=r(114517),f=r(367736),l=c.List,p=c.Repeat,h=s("draft_tree_data_support"),d=h?o:n;t.exports={processHTML:function(t,e){return i(t,u,e)},processText:function(t,e,r){return t.reduce(function(t,n,o){n=f(n);var i=a(),u={key:i,type:r,text:n,characterList:l(p(e,n.length))};if(h&&0!==o){var s=o-1;u=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}({},u,{prevSibling:(t[s]=t[s].merge({nextSibling:i})).getKey()})}return t.push(new d(u)),t},[])}}},742209:function(t,e,r){"use strict";var n=r(319801).getPunctuation(),o="[']",i="\\s|(?![_])"+n,a=RegExp("^(?:"+i+")*(?:"+o+"|(?!"+i+").)*(?:(?!"+i+").)"),u=RegExp("(?:(?!"+i+").)(?:"+o+"|(?!"+i+").)*(?:"+i+")*$");function s(t,e){var r=e?u.exec(t):a.exec(t);return r?r[0]:t}t.exports={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}}},62101:function(t){"use strict";t.exports={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}}},782717:function(t,e,r){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}var o=r(638784),i=r(248799),a=function(t,e){for(var r=[].concat(t).reverse();r.length;){var n=r.pop();e(n);var o=n.children;Array.isArray(o)||i(!1),r=r.concat([].concat(o.reverse()))}},u=function(t){if(!(t&&t.type))return!1;var e=t.type;return"unordered-list-item"===e||"ordered-list-item"===e},s=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(e){return e.type===t.type?n({},e,{depth:(t.depth||0)+1}):e}))};t.exports={fromRawTreeStateToRawState:function(t){var e=t.blocks,r=[];return(Array.isArray(e)||i(!1),Array.isArray(e)&&e.length)?(a(e,function(t){var e=n({},t);if(!u(t)||(e.depth=e.depth||0,s(t),null==t.children||!(t.children.length>0)))delete e.children,r.push(e)}),t.blocks=r,n({},t,{blocks:r})):t},fromRawStateToRawTreeState:function(t){var e=[],r=[];return t.blocks.forEach(function(t){var i=u(t),a=t.depth||0,s=n({},t,{children:[]});if(!i){e.push(s);return}var c=r[0];if(null==c&&0===a)e.push(s);else if(null==c||c.depth<a-1){var f={key:o(),text:"",depth:a-1,type:t.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(f),1===a?e.push(f):null!=c&&c.children.push(f),f.children.push(s)}else if(c.depth===a-1)c.children.push(s);else{for(;null!=c&&c.depth>=a;)r.shift(),c=r[0];a>0?c.children.push(s):e.push(s)}}),n({},t,{blocks:e})}}},953865:function(t,e,r){"use strict";r(205375);t.exports={isValidBlock:function(t,e){var r=t.getKey(),n=t.getParentKey();if(null!=n&&!e.get(n).getChildKeys().includes(r)||!t.getChildKeys().map(function(t){return e.get(t)}).every(function(t){return t.getParentKey()===r}))return!1;var o=t.getPrevSiblingKey();if(null!=o&&e.get(o).getNextSiblingKey()!==r)return!1;var i=t.getNextSiblingKey();return(null==i||e.get(i).getPrevSiblingKey()===r)&&(null===i||null===o||o!==i)&&(""==t.text||!(t.getChildKeys().size>0))&&!0},isConnectedTree:function(t){var e=t.toArray().filter(function(t){return null==t.getParentKey()&&null==t.getPrevSiblingKey()});if(1!==e.length)return!1;for(var r=e.shift(),n=0,o=r.getKey(),i=[];null!=o;){var a=t.get(o),u=a.getChildKeys(),s=a.getNextSiblingKey();if(u.size>0){null!=s&&i.unshift(s);var c=u.map(function(e){return t.get(e)}).find(function(t){return null==t.getPrevSiblingKey()});if(null==c)return!1;o=c.getKey()}else o=null!=a.getNextSiblingKey()?a.getNextSiblingKey():i.shift();n++}return n===t.size&&!0},isValidTree:function(t){var e=this;return!!t.toArray().every(function(r){return e.isValidBlock(r,t)})&&this.isConnectedTree(t)}}},847511:function(t,e,r){"use strict";var n,o=r(739695),i=r(114517),a=r(601454),u=i.OrderedMap;t.exports={getDirectionMap:function(t,e){n?n.reset():n=new o;var r=t.getBlockMap(),s=r.valueSeq().map(function(t){return a(n).getDirection(t.getText())}),c=u(r.keySeq().zip(s));return null!=e&&i.is(e,c)?e:c}}},483319:function(t,e,r){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){o(t,e,r[e])})}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(390224),a=r(430226),u=r(847511),s=r(542025),c=r(114517),f=c.OrderedSet,l=c.Record,p=c.Stack,h=c.OrderedMap,d=c.List,g=l({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),y=function(){e.createEmpty=function(t){return this.createWithText("",t)},e.createWithText=function(t,r){return e.createWithContent(a.createFromText(t),r)},e.createWithContent=function(t,r){if(0===t.getBlockMap().count())return e.createEmpty(r);var n=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:p(),redoStack:p(),decorator:r||null,selection:s.createEmpty(n)})},e.create=function(t){var r=t.currentContent,o=t.decorator;return new e(new g(n({},t,{treeMap:m(r,o),directionMap:u.getDirectionMap(r)})))},e.fromJS=function(t){return new e(new g(n({},t,{directionMap:null!=t.directionMap?h(t.directionMap):t.directionMap,inlineStyleOverride:null!=t.inlineStyleOverride?f(t.inlineStyleOverride):t.inlineStyleOverride,nativelyRenderedContent:null!=t.nativelyRenderedContent?a.fromJS(t.nativelyRenderedContent):t.nativelyRenderedContent,redoStack:null!=t.redoStack?p(t.redoStack.map(function(t){return a.fromJS(t)})):t.redoStack,selection:null!=t.selection?new s(t.selection):t.selection,treeMap:null!=t.treeMap?h(t.treeMap).map(function(t){return d(t).map(function(t){return i.fromJS(t)})}):t.treeMap,undoStack:null!=t.undoStack?p(t.undoStack.map(function(t){return a.fromJS(t)})):t.undoStack,currentContent:a.fromJS(t.currentContent)})))},e.set=function(t,r){return new e(t.getImmutable().withMutations(function(e){var n=e.get("decorator"),o=n;null===r.decorator?o=null:r.decorator&&(o=r.decorator);var a=r.currentContent||t.getCurrentContent();if(o!==n){var u,s=e.get("treeMap");u=o&&n?function(t,e,r,n,o){return r.merge(e.toSeq().filter(function(e){return n.getDecorations(e,t)!==o.getDecorations(e,t)}).map(function(e){return i.generate(t,e,n)}))}(a,a.getBlockMap(),s,o,n):m(a,o),e.merge({decorator:o,treeMap:u,nativelyRenderedContent:null});return}a!==t.getCurrentContent()&&e.set("treeMap",function(t,e,r,n){var o=t.getCurrentContent().set("entityMap",r),a=o.getBlockMap();return t.getImmutable().get("treeMap").merge(e.toSeq().filter(function(t,e){return t!==a.get(e)}).map(function(t){return i.generate(o,t,n)}))}(t,a.getBlockMap(),a.getEntityMap(),o)),e.merge(r)}))};var t=e.prototype;function e(t){o(this,"_immutable",void 0),this._immutable=t}return t.toJS=function(){return this.getImmutable().toJS()},t.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},t.getCurrentContent=function(){return this.getImmutable().get("currentContent")},t.getUndoStack=function(){return this.getImmutable().get("undoStack")},t.getRedoStack=function(){return this.getImmutable().get("redoStack")},t.getSelection=function(){return this.getImmutable().get("selection")},t.getDecorator=function(){return this.getImmutable().get("decorator")},t.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},t.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},t.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},t.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},t.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,r){return e.set(t,{inlineStyleOverride:r})},t.getCurrentInlineStyle=function(){var t=this.getInlineStyleOverride();if(null!=t)return t;var e=this.getCurrentContent(),r=this.getSelection();return r.isCollapsed()?function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),o=t.getBlockForKey(r);return n>0?o.getInlineStyleAt(n-1):o.getLength()?o.getInlineStyleAt(0):_(t,r)}(e,r):function(t,e){var r=e.getStartKey(),n=e.getStartOffset(),o=t.getBlockForKey(r);return n<o.getLength()?o.getInlineStyleAt(n):n>0?o.getInlineStyleAt(n-1):_(t,r)}(e,r)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return v(t,e,!1)},e.forceSelection=function(t,e){return!e.getHasFocus()&&(e=e.set("hasFocus",!0)),v(t,e,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),o=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){var o=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(t.getCurrentContent()===r)return t;var i=u.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:i,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=t.getSelection(),s=t.getCurrentContent(),c=t.getUndoStack(),f=r;a!==s.getSelectionAfter()||function(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(t,n)?(c=c.push(s),f=f.set("selectionBefore",a)):("insert-characters"===n||"backspace-character"===n||"delete-character"===n)&&(f=f.set("selectionBefore",s.getSelectionBefore()));var l=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(l=null);var h={currentContent:f,directionMap:i,undoStack:c,redoStack:p(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return e.set(t,h)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:r.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var o=t.getCurrentContent(),i=u.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function v(t,e,r){return y.set(t,{selection:e,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function m(t,e){return t.getBlockMap().map(function(r){return i.generate(t,r,e)}).toOrderedMap()}function _(t,e){var r=t.getBlockMap().reverse().skipUntil(function(t,r){return r===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):f()}t.exports=y},389230:function(t,e,r){"use strict";var n=r(162378),o=r(428754),i=n.isPlatform("Mac OS X"),a={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return i&&t.altKey},usesMacOSHeuristics:function(){return i},hasCommandModifier:function(t){return i?!!t.metaKey&&!t.altKey:a.isCtrlKeyCommand(t)},isSoftNewlineEvent:o};t.exports=a},988597:function(){},498778:function(t,e,r){"use strict";var n=r(373251),o=r(483319),i=r(119765),a=r(601454),u={currentBlockContainsLink:function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===n.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,r){switch(e){case"bold":return u.toggleInlineStyle(t,"BOLD");case"italic":return u.toggleInlineStyle(t,"ITALIC");case"underline":return u.toggleInlineStyle(t,"UNDERLINE");case"code":return u.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return u.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return u.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=n.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),r=o.push(t,e,"insert-characters");return o.forceSelection(r,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var r=t.getCurrentContent(),n=e.getStartKey(),i=r.getBlockBefore(n);if(i&&"atomic"===i.getType()){var a=r.getBlockMap().delete(i.getKey()),s=r.merge({blockMap:a,selectionAfter:e});if(s!==r)return o.push(t,s,"remove-range")}var c=u.tryToRemoveBlockStyle(t);return c?o.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var r=t.getCurrentContent(),i=e.getStartKey(),a=r.getBlockForKey(i).getLength();if(e.getStartOffset()<a)return null;var u=r.getBlockAfter(i);if(!u||"atomic"!==u.getType())return null;var s=e.merge({focusKey:u.getKey(),focusOffset:u.getLength()}),c=n.removeRange(r,s,"forward");return c!==r?o.push(t,c,"remove-range"):null},onTab:function(t,e,r){var n=e.getSelection(),a=n.getAnchorKey();if(a!==n.getFocusKey())return e;var u=e.getCurrentContent(),s=u.getBlockForKey(a),c=s.getType();if("unordered-list-item"!==c&&"ordered-list-item"!==c)return e;t.preventDefault();var f=s.getDepth();if(!t.shiftKey&&f===r)return e;var l=i(u,n,t.shiftKey?-1:1,r);return o.push(e,l,"adjust-depth")},toggleBlockType:function(t,e){var r=t.getSelection(),i=r.getStartKey(),u=r.getEndKey(),s=t.getCurrentContent(),c=r;if(i!==u&&0===r.getEndOffset()){var f=a(s.getBlockBefore(u));u=f.getKey(),c=c.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:u,focusOffset:f.getLength(),isBackward:!1})}if(s.getBlockMap().skipWhile(function(t,e){return e!==i}).reverse().skipWhile(function(t,e){return e!==u}).some(function(t){return"atomic"===t.getType()}))return t;var l=s.getBlockForKey(i).getType()===e?"unstyled":e;return o.push(t,n.setBlockType(s,c,l),"change-block-type")},toggleCode:function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=e.getFocusKey();return e.isCollapsed()||r!==n?u.toggleBlockType(t,"code-block"):u.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,e){var r,i=t.getSelection(),a=t.getCurrentInlineStyle();if(i.isCollapsed())return o.setInlineStyleOverride(t,a.has(e)?a.remove(e):a.add(e));var u=t.getCurrentContent();return r=a.has(e)?n.removeInlineStyle(u,i,e):n.applyInlineStyle(u,i,e),o.push(t,r,"change-inline-style")},toggleLink:function(t,e,r){var i=n.applyEntity(t.getCurrentContent(),e,r);return o.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var e=t.getSelection(),r=e.getAnchorOffset();if(e.isCollapsed()&&0===r){var o=e.getAnchorKey(),i=t.getCurrentContent(),a=i.getBlockForKey(o).getType(),u=i.getBlockBefore(o);if("code-block"===a&&u&&"code-block"===u.getType()&&0!==u.getLength())return null;if("unstyled"!==a)return n.setBlockType(i,e,"unstyled")}return null}};t.exports=u},989241:function(t,e,r){"use strict";var n=r(373251),o=r(483319),i=r(808949),a=r(601454),u=null;t.exports={cut:function(t){var e=t.getCurrentContent(),r=t.getSelection(),s=null;if(r.isCollapsed()){var c=r.getAnchorKey(),f=e.getBlockForKey(c).getLength();if(f===r.getAnchorOffset()){var l=e.getKeyAfter(c);if(null==l)return t;s=r.set("focusKey",l).set("focusOffset",0)}else s=r.set("focusOffset",f)}else s=r;u=i(e,s=a(s));var p=n.removeRange(e,s,"forward");return p===e?t:o.push(t,p,"remove-range")},paste:function(t){if(!u)return t;var e=n.replaceWithFragment(t.getCurrentContent(),t.getSelection(),u);return o.push(t,e,"insert-fragment")}}},542025:function(t,e,r){"use strict";var n=r(114517).Record,o=function(t){function e(){return t.apply(this,arguments)||this}r=e,n=t,r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var r,n,o=e.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(t,e,r){var n=this.getAnchorKey(),o=this.getFocusKey();if(n===o&&n===t){var i=this.getStartOffset(),a=this.getEndOffset();return e<=i&&i<=r||e<=a&&a<=r}if(t!==n&&t!==o)return!1;var u=t===n?this.getAnchorOffset():this.getFocusOffset();return e<=u&&r>=u},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}(n({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=o},119765:function(t){"use strict";t.exports=function(t,e,r,n){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat([[i,a.get(i)]]).map(function(t){var e=t.getDepth()+r;return e=Math.max(0,Math.min(e,n)),t.set("depth",e)});return a=a.merge(u),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},955333:function(t,e,r){"use strict";var n=r(699966);t.exports=function(t,e,r,o){for(var i=e,a=t.getCharacterList();i<r;)a=a.set(i,n.applyEntity(a.get(i),o)),i++;return t.set("characterList",a)}},288957:function(t,e,r){"use strict";var n=r(955333),o=r(114517);t.exports=function(t,e,r){var i=t.getBlockMap(),a=e.getStartKey(),u=e.getStartOffset(),s=e.getEndKey(),c=e.getEndOffset(),f=i.skipUntil(function(t,e){return e===a}).takeUntil(function(t,e){return e===s}).toOrderedMap().merge(o.OrderedMap([[s,i.get(s)]])).map(function(t,e){var o=e===a?u:0,i=e===s?c:t.getLength();return n(t,o,i,r)});return t.merge({blockMap:i.merge(f),selectionBefore:e,selectionAfter:e})}},965448:function(t,e,r){"use strict";var n=r(217390),o=r(195921),i=r(62101),a=r(622484),u=r(295126),s=r(248799),c=function(t,e){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:u(t),entityRanges:a(t,e),data:t.getData().toObject()}},f=function(t,e,r,i){if(t instanceof n){r.push(c(t,e));return}t instanceof o||s(!1);var a=t.getParentKey(),u=i[t.getKey()]=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}({},c(t,e),{children:[]});if(a){i[a].children.push(u);return}r.push(u)},l=function(t,e){var r=e.entityMap,n=[],o={},a={},u=0;return t.getBlockMap().forEach(function(t){t.findEntityRanges(function(t){return null!==t.getEntity()},function(e){var n=t.getEntityAt(e),o=i.stringify(n);if(!a[o])a[o]=n,r[o]="".concat(u),u++}),f(t,r,n,o)}),{blocks:n,entityMap:r}},p=function(t,e){var r=e.blocks,n=e.entityMap,o={};return Object.keys(n).forEach(function(e,r){var n=t.getEntity(i.unstringify(e));o[r]={type:n.getType(),mutability:n.getMutability(),data:n.getData()}}),{blocks:r,entityMap:o}};t.exports=function(t){var e={entityMap:{},blocks:[]};return e=l(t,e),e=p(t,e)}},118057:function(t,e,r){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){o(t,e,r[e])})}return t}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i,a=r(699966),u=r(217390),s=r(195921),c=r(633626),f=r(89016),l=r(170481),p=r(716959),h=r(638784),d=r(63277),g=r(499719),y=r(114517),v=y.List,m=y.Map,_=y.OrderedSet,b=r(935914),S=r(47808),w=r(541133),x=r(804655),k=g("draft_tree_data_support"),C=RegExp("\r","g"),E=RegExp("\n","g"),O=RegExp("^\n","g"),D=RegExp("&nbsp;","g"),K=RegExp("&#13;?","g"),M=RegExp("&#8203;?","g"),A=["bold","bolder","500","600","700","800","900"],T=["light","lighter","normal","100","200","300","400"],B=["className","href","rel","target","title"],I=["alt","className","height","src","width"],R=(o(i={},p("public/DraftStyleDefault/depth0"),0),o(i,p("public/DraftStyleDefault/depth1"),1),o(i,p("public/DraftStyleDefault/depth2"),2),o(i,p("public/DraftStyleDefault/depth3"),3),o(i,p("public/DraftStyleDefault/depth4"),4),i),L=m({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),F=function(t){var e={};return t.mapKeys(function(t,r){var n=[r.element];void 0!==r.aliasedElements&&n.push.apply(n,r.aliasedElements),n.forEach(function(r){void 0===e[r]?e[r]=t:"string"==typeof e[r]?e[r]=[e[r],t]:e[r].push(t)})}),m(e)},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some(function(r){t.classList.contains(r)&&(e=R[r])}),e},N=function(t){if(!b(t))return!1;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{return new l(t.href),!0}catch(t){return!1}},j=function(t,e){if(!w(t))return e;var r=t.style.fontWeight,n=t.style.fontStyle,o=t.style.textDecoration;return e.withMutations(function(t){A.indexOf(r)>=0?t.add("BOLD"):T.indexOf(r)>=0&&t.remove("BOLD"),"italic"===n?t.add("ITALIC"):"normal"===n&&t.remove("ITALIC"),"underline"===o&&t.add("UNDERLINE"),"line-through"===o&&t.add("STRIKETHROUGH"),"none"===o&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))})},z=function(t){return"ul"===t||"ol"===t},U=function(){function t(t,e){o(this,"characterList",v()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",f),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=v(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=f,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],_())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(k?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n({key:t.key||h(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:v(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=v(),this.currentBlockType="unstyled",this.currentText="",e},e._toBlockConfigs=function(t,e){for(var r=[],n=0;n<t.length;n++){var o,i,a=t[n],u=a.nodeName.toLowerCase();if("body"===u||z(u)){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var s=this.currentDepth,c=this.wrapper;z(u)&&(this.wrapper=u,z(c)&&this.currentDepth++),r.push.apply(r,this._toBlockConfigs(Array.from(a.childNodes),e)),this.currentDepth=s,this.wrapper=c;continue}var f=this.blockTypeMap.get(u);if(void 0!==f){this._trimCurrentText(),""!==this.currentText&&r.push(this._makeBlockConfig());var l=this.currentDepth,p=this.wrapper;this.wrapper="pre"===u?"pre":this.wrapper,"string"!=typeof f&&(f=this.disambiguate(u,this.wrapper)||f[0]||"unstyled"),!k&&w(a)&&("unordered-list-item"===f||"ordered-list-item"===f)&&(this.currentDepth=P(a,this.currentDepth));var d=h(),g=this._toBlockConfigs(Array.from(a.childNodes),e);this._trimCurrentText(),r.push(this._makeBlockConfig({key:d,childConfigs:g,type:f})),this.currentDepth=l,this.wrapper=p;continue}if("#text"===u){this._addTextNode(a,e);continue}if("br"===u){this._addBreakNode(a,e);continue}if(x(o=a)&&o.attributes.getNamedItem("src")&&o.attributes.getNamedItem("src").value){this._addImgNode(a,e);continue}if(N(a)){this._addAnchorNode(a,r,e);continue}var y=e;L.has(u)&&(y=y.add(L.get(u))),y=j(a,y);var v=w(i=a)&&i.style.fontFamily.includes("monospace")?"CODE":null;null!=v&&(y=y.add(v)),r.push.apply(r,this._toBlockConfigs(Array.from(a.childNodes),y))}return r},e._appendText=function(t,e){this.currentText+=t;var r,n=a.create({style:e,entity:this.currentEntity});this.characterList=(r=this.characterList).push.apply(r,Array(t.length).fill(n))},e._trimCurrentText=function(){var t=this.currentText.length,e=t-this.currentText.trimLeft().length,r=this.currentText.trimRight().length,n=this.characterList.findEntry(function(t){return null!==t.getEntity()});e=void 0!==n?Math.min(e,n[0]):e,e>(r=void 0!==(n=this.characterList.reverse().findEntry(function(t){return null!==t.getEntity()}))?Math.max(r,t-n[0]):r)?(this.currentText="",this.characterList=v()):(this.currentText=this.currentText.slice(e,r),this.characterList=this.characterList.slice(e,r))},e._addTextNode=function(t,e){var r=t.textContent;""===r.trim()&&"pre"!==this.wrapper&&(r=" "),"pre"!==this.wrapper&&(r=(r=r.replace(O,"")).replace(E," ")),this._appendText(r,e)},e._addBreakNode=function(t,e){if(!!S(t))this._appendText("\n",e)},e._addImgNode=function(t,e){if(!!x(t)){var r={};I.forEach(function(e){var n=t.getAttribute(e);n&&(r[e]=n)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),g("draftjs_fix_paste_for_img")?"presentation"!==t.getAttribute("role")&&this._appendText("\uD83D\uDCF7",e):this._appendText("\uD83D\uDCF7",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,r){if(!!b(t)){var n={};B.forEach(function(e){var r=t.getAttribute(e);r&&(n[e]=r)}),n.url=new l(t.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",n||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),r)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t.length-1,o=0;o<=r;o++){var i=t[o];i.parent=e,i.prevSibling=o>0?t[o-1].key:null,i.nextSibling=o<r?t[o+1].key:null,i.children=v(i.childConfigs.map(function(t){return t.key})),this.contentBlocks.push(new s(n({},i))),this._toContentBlocks(i.childConfigs,i.key)}},e._hoistContainersInBlockConfigs=function(t){var e=this;return v(t).flatMap(function(t){return"unstyled"!==t.type||""!==t.text?[t]:e._hoistContainersInBlockConfigs(t.childConfigs)})},e._toFlatContentBlocks=function(t){var e=this;this._hoistContainersInBlockConfigs(t).forEach(function(t){var r=e._extractTextFromBlockConfigs(t.childConfigs),o=r.text,i=r.characterList;e.contentBlocks.push(new u(n({},t,{text:t.text+o,characterList:t.characterList.concat(i)})))})},e._extractTextFromBlockConfigs=function(t){for(var e=t.length-1,r="",n=v(),o=0;o<=e;o++){var i=t[o];r+=i.text,n=n.concat(i.characterList),""!==r&&"unstyled"!==i.type&&(r+="\n",n=n.push(n.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);r+=a.text,n=n.concat(a.characterList)}return{text:r,characterList:n}},t}();t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,n=e(t=t.trim().replace(C,"").replace(D," ").replace(K,"").replace(M,""));if(!n)return null;var o=F(r);return new U(o,function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null}).addDOMNode(n).getContentBlocks()}},539619:function(t,e,r){"use strict";function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){(function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})(t,e,r[e])})}return t}var o=r(217390),i=r(195921),a=r(430226),u=r(89016),s=r(782717);r(953865);var c=r(542025),f=r(982388),l=r(717361),p=r(990258),h=r(638784),d=r(499719),g=r(114517),y=r(248799),v=d("draft_tree_data_support"),m=g.List,_=g.Map,b=g.OrderedMap,S=function(t,e){var r=t.key,n=t.type,o=t.data;return{text:t.text,depth:t.depth||0,type:n||"unstyled",key:r||h(),data:_(o),characterList:w(t,e)}},w=function(t,e){var r=t.text,o=t.entityRanges,i=t.inlineStyleRanges;return f(p(r,i||[]),l(r,(o||[]).filter(function(t){return e.hasOwnProperty(t.key)}).map(function(t){return n({},t,{key:e[t.key]})})))},x=function(t){return n({},t,{key:t.key||h()})},k=function(t,e,r){var o=e.map(function(t){return n({},t,{parentRef:r})});return t.concat(o.reverse())},C=function(t,e){var r,a,u,c,f=t.blocks.find(function(t){return Array.isArray(t.children)&&t.children.length>0}),l=v&&!f?s.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!v){;return r=f?s.fromRawTreeStateToRawState(t).blocks:l,a=e,b(r.map(function(t){var e=new o(S(t,a));return[e.getKey(),e]}))}var p=(u=l,c=e,u.map(x).reduce(function(t,e,r){Array.isArray(e.children)||y(!1);var o=e.children.map(x),a=new i(n({},S(e,c),{prevSibling:0===r?null:u[r-1].key,nextSibling:r===u.length-1?null:u[r+1].key,children:m(o.map(function(t){return t.key}))}));t=t.set(a.getKey(),a);for(var s=k([],o,a);s.length>0;){var f=s.pop(),l=f.parentRef,p=l.getChildKeys(),h=p.indexOf(f.key),d=Array.isArray(f.children);if(!d){d||y(!1);break}var g=f.children.map(x),v=new i(n({},S(f,c),{parent:l.getKey(),children:m(g.map(function(t){return t.key})),prevSibling:0===h?null:p.get(h-1),nextSibling:h===p.size-1?null:p.get(h+1)}));t=t.set(v.getKey(),v),s=k(s,g,v)}return t},b()));return p},E=function(t){var e=t.entityMap,r={};return Object.keys(e).forEach(function(t){var n=e[t],o=n.type,i=n.mutability,a=n.data;r[t]=u.__create(o,i,a||{})}),r};t.exports=function(t){Array.isArray(t.blocks)||y(!1);var e=E(t),r=C(t,e),n=r.isEmpty()?new c:c.createEmpty(r.first().getKey());return new a({blockMap:r,entityMap:e,selectionBefore:n,selectionAfter:n})}},982388:function(t,e,r){"use strict";var n=r(699966),o=r(114517).List;t.exports=function(t,e){return o(t.map(function(t,r){var o=e[r];return n.create({style:t,entity:o})}))}},717361:function(t,e,r){"use strict";var n=r(726721).substr;t.exports=function(t,e){var r=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var o=n(t,0,e.offset).length,i=o+n(t,e.offset,e.length).length,a=o;a<i;a++)r[a]=e.key}),r}},990258:function(t,e,r){"use strict";var n=r(726721),o=r(114517).OrderedSet,i=n.substr,a=o();t.exports=function(t,e){var r=Array(t.length).fill(a);return e&&e.forEach(function(e){for(var n=i(t,0,e.offset).length,o=n+i(t,e.offset,e.length).length;n<o;)r[n]=r[n].add(e.style),n++}),r}},131395:function(t){"use strict";t.exports={notEmptyKey:function(t){return null!=t&&""!=t}}},769487:function(t,e,r){"use strict";var n=r(373251),o=r(483319),i=r(162378),a=r(834217),u=r(350508),s=r(140821),c=r(601454),f=r(22846),l=i.isBrowser("Firefox");function p(t,e,r,i,a){var u=n.replaceText(t.getCurrentContent(),t.getSelection(),e,r,i);return o.push(t,u,"insert-characters",a)}t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r,n=t._latestEditorState,i=e.data;if(!!i){if(t.props.handleBeforeInput&&u(t.props.handleBeforeInput(i,n,e.timeStamp))){e.preventDefault();return}var h=n.getSelection(),d=h.getStartOffset(),g=h.getAnchorKey();if(!h.isCollapsed()){e.preventDefault(),t.update(p(n,i,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!0));return}var y=p(n,i,n.getCurrentInlineStyle(),a(n.getCurrentContent(),n.getSelection()),!1),v=!1;if(v=s(t._latestCommittedEditorState),!v){var m=n.getBlockTree(g),_=y.getBlockTree(g);v=m.size!==_.size||m.zip(_).some(function(t){var e=t[0],r=t[1],n=e.get("start"),o=n+(n>=d?i.length:0),a=e.get("end"),u=a+(a>=d?i.length:0),s=r.get("start"),c=r.get("end"),f=r.get("decoratorKey");return e.get("decoratorKey")!==f||e.get("leaves").size!==r.get("leaves").size||o!==s||u!==c||null!=f&&c-s!=a-n})}if(!v){;r=i,v=l&&("'"==r||"/"==r)}if(!v&&(v=c(y.getDirectionMap()).get(g)!==c(n.getDirectionMap()).get(g)),v){e.preventDefault(),y=o.set(y,{forceSelection:!0}),t.update(y);return}y=o.set(y,{nativelyRenderedContent:y.getCurrentContent()}),t._pendingStateFromBeforeInput=y,f(function(){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0)})}}},310210:function(t,e,r){"use strict";var n=r(483319),o=r(223448),i=r(864245);t.exports=function(t,e){var r=e.currentTarget.ownerDocument;if(!t.props.preserveSelectionOnBlur&&i(r)===r.body){var a=r.defaultView.getSelection(),u=t.editor;1===a.rangeCount&&o(u,a.anchorNode)&&o(u,a.focusNode)&&a.removeAllRanges()}var s=t._latestEditorState,c=s.getSelection();if(!!c.getHasFocus()){var f=c.set("hasFocus",!1);t.props.onBlur&&t.props.onBlur(e),t.update(n.acceptSelection(s,f))}}},734273:function(t,e,r){"use strict";var n=r(483319);t.exports=function(t,e){t.setMode("composite"),t.update(n.set(t._latestEditorState,{inCompositionMode:!0})),t._onCompositionStart(e)}},551185:function(t,e,r){"use strict";var n=r(322038);t.exports=function(t,e){if(t._latestEditorState.getSelection().isCollapsed()){e.preventDefault();return}t.setClipboard(n(t._latestEditorState))}},584124:function(t,e,r){"use strict";var n=r(373251),o=r(483319),i=r(965554),a=r(322038),u=r(575032),s=r(833132);t.exports=function(t,e){var r,c=t._latestEditorState,f=c.getSelection(),l=e.target;if(f.isCollapsed()){e.preventDefault();return}s(l)&&(r=u(i.getScrollParent(l)));var p=a(c);t.setClipboard(p),t.setMode("cut"),setTimeout(function(){t.restoreEditorDOM(r),t.exitCurrentMode(),t.update(function(t){var e=n.removeRange(t.getCurrentContent(),t.getSelection(),"forward");return o.push(t,e,"remove-range")}(c))},0)}},883951:function(t){"use strict";t.exports=function(t,e){t.setMode("drag"),e.preventDefault()}},578302:function(t){"use strict";t.exports=function(t){t._internalDrag=!0,t.setMode("drag")}},75735:function(t,e,r){"use strict";var n=r(483319),o=r(162378);t.exports=function(t,e){var r=t._latestEditorState,i=r.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);t.props.onFocus&&t.props.onFocus(e),o.isBrowser("Chrome < 60.0.3081.0")?t.update(n.forceSelection(r,a)):t.update(n.acceptSelection(r,a))}}},825752:function(t,e,r){"use strict";var n=r(373251),o=r(468109),i=r(483319),a=r(162378),u=r(131395).notEmptyKey,s=r(146555),c=r(340917),f=r(601454),l=a.isEngine("Gecko");t.exports=function(t,e){void 0!==t._pendingStateFromBeforeInput&&(t.update(t._pendingStateFromBeforeInput),t._pendingStateFromBeforeInput=void 0);var r,a,p,h,d=t.editor.ownerDocument.defaultView.getSelection(),g=d.anchorNode,y=d.isCollapsed,v=(null==g?void 0:g.nodeType)!==Node.TEXT_NODE&&(null==g?void 0:g.nodeType)!==Node.ELEMENT_NODE;if(null!=g&&!v){if(g.nodeType===Node.TEXT_NODE&&(null!==g.previousSibling||null!==g.nextSibling)){var m=g.parentNode;if(null==m)return;g.nodeValue=m.textContent;for(var _=m.firstChild;null!=_;_=_.nextSibling)_!==g&&m.removeChild(_)}var b=g.textContent,S=t._latestEditorState,w=f(s(g)),x=o.decode(w),k=x.blockKey,C=x.decoratorKey,E=x.leafKey,O=S.getBlockTree(k).getIn([C,"leaves",E]),D=O.start,K=O.end,M=S.getCurrentContent(),A=M.getBlockForKey(k),T=A.getText().slice(D,K);if(b.endsWith("\n\n")&&(b=b.slice(0,-1)),b===T){var B=e.nativeEvent.inputType;if(B){var I=function(t,e){if("deleteContentBackward"===t)return c(e);return e}(B,S);I!==S&&(t.restoreEditorDOM(),t.update(I))}return}var R=S.getSelection(),L=R.merge({anchorOffset:D,focusOffset:K,isBackward:!1}),F=A.getEntityAt(D),P=u(F)?M.getEntity(F):null,N="MUTABLE"===(null!=P?P.getMutability():null),j=n.replaceText(M,L,b,A.getInlineStyleAt(D),N?A.getEntityAt(D):null);if(l)r=d.anchorOffset,h=(p=D+Math.min(r,a=d.focusOffset))+Math.abs(r-a),r=p,a=h;else{var z=b.length-T.length;p=R.getStartOffset(),h=R.getEndOffset(),r=y?h+z:p,a=h+z}var U=j.merge({selectionBefore:M.getSelectionAfter(),selectionAfter:R.merge({anchorOffset:r,focusOffset:a})});t.update(i.push(S,U,N?"spellcheck-change":"apply-entity"))}}},803056:function(t,e,r){"use strict";var n=r(373251),o=r(483319),i=r(389230),a=r(411885),u=r(989241),s=r(162378),c=r(350508),f=r(165586),l=r(436566),p=r(252804),h=r(102506),d=r(241076),g=r(848529),y=r(340917),v=r(33688),m=r(115057),_=r(10630),b=i.isOptionKeyCommand,S=s.isBrowser("Chrome");t.exports=function(t,e){var r=e.which,i=t._latestEditorState;function s(r){var n=t.props[r];return!!n&&(n(e),!0)}switch(r){case a.RETURN:if(e.preventDefault(),t.props.handleReturn&&c(t.props.handleReturn(e,i)))return;break;case a.ESC:if(e.preventDefault(),s("onEscape"))return;break;case a.TAB:if(s("onTab"))return;break;case a.UP:if(s("onUpArrow"))return;break;case a.RIGHT:if(s("onRightArrow"))return;break;case a.DOWN:if(s("onDownArrow"))return;break;case a.LEFT:if(s("onLeftArrow"))return;break;case a.SPACE:S&&b(e)&&e.preventDefault()}var w=t.props.keyBindingFn(e);if(null==w||""===w){if(r===a.SPACE&&S&&b(e)){var x=n.replaceText(i.getCurrentContent(),i.getSelection(),"\xa0");t.update(o.push(i,x,"insert-characters"))}return}if("undo"===w){_(e,i,t.update);return}if(e.preventDefault(),!(t.props.handleKeyCommand&&c(t.props.handleKeyCommand(w,i,e.timeStamp)))){var k=function(t,e,r){switch(t){case"redo":return o.redo(e);case"delete":return v(e);case"delete-word":return p(e);case"backspace":return y(e);case"backspace-word":return l(e);case"backspace-to-start-of-line":return f(e,r);case"split-block":return h(e);case"transpose-characters":return m(e);case"move-selection-to-start-of-block":return g(e);case"move-selection-to-end-of-block":return d(e);case"secondary-cut":return u.cut(e);case"secondary-paste":return u.paste(e);default:return e}}(w,i,e);k!==i&&t.update(k)}}},58329:function(t,e,r){"use strict";var n=r(13030),o=r(699966),i=r(448681),a=r(373251),u=r(297891),s=r(483319),c=r(498778),f=r(834217),l=r(108142),p=r(350508),h=r(243302);function d(t,e,r){var n=a.replaceWithFragment(t.getCurrentContent(),t.getSelection(),e);return s.push(t,n.set("entityMap",r),"insert-fragment")}t.exports=function(t,e){e.preventDefault();var r=new i(e.clipboardData);if(!r.isRichText()){var g=r.getFiles(),y=r.getText();if(g.length>0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(g)))return;l(g,function(e){if(!!(e=e||y)){var r=t._latestEditorState,i=h(e),l=o.create({style:r.getCurrentInlineStyle(),entity:f(r.getCurrentContent(),r.getSelection())}),p=c.getCurrentBlockType(r),d=u.processText(i,l,p),g=n.createFromArray(d),v=a.replaceWithFragment(r.getCurrentContent(),r.getSelection(),g);t.update(s.push(r,v,"insert-fragment"))}});return}}var v=[],m=r.getText(),_=r.getHTML(),b=t._latestEditorState;if(t.props.formatPastedText){var S=t.props.formatPastedText(m,_),w=S.text,x=S.html;m=w,_=x}if(!(t.props.handlePastedText&&p(t.props.handlePastedText(m,_,b)))){if(m&&(v=h(m)),!t.props.stripPastedStyles){var k,C=t.getClipboard();if(!t.props.formatPastedText&&r.isRichText()&&C){if((null===(k=_)||void 0===k?void 0:k.indexOf(t.getEditorKey()))!==-1||1===v.length&&1===C.size&&C.first().getText()===m){t.update(d(t._latestEditorState,C));return}}else if(C&&r.types.includes("com.apple.webarchive")&&!r.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every(function(e,r){return e.getText()===t[r]})}(v,C)){t.update(d(t._latestEditorState,C));return}if(_){var E=u.processHTML(_,t.props.blockRenderMap);if(E){var O=E.contentBlocks,D=E.entityMap;if(O){var K=n.createFromArray(O);t.update(d(t._latestEditorState,K,D));return}}}t.setClipboard(null)}if(v.length){var M=o.create({style:b.getCurrentInlineStyle(),entity:f(b.getCurrentContent(),b.getSelection())}),A=c.getCurrentBlockType(b),T=u.processText(v,M,A),B=n.createFromArray(T);t.update(d(t._latestEditorState,B))}}}},329743:function(t,e,r){"use strict";var n=r(655421),o=r(483319),i=r(948751),a=r(467211);t.exports=function(t){if(t._blockSelectEvents||t._latestEditorState!==t.props.editorState){if(t._blockSelectEvents){var e=t.props.editorState.getSelection();n.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:Error().stack}),selectionState:JSON.stringify(e.toJS())})}return}var r=t.props.editorState,u=a(r,i(t)),s=u.selectionState;s!==r.getSelection()&&(r=u.needsRecovery?o.forceSelection(r,s):o.acceptSelection(r,s),t.update(r))}},622484:function(t,e,r){"use strict";var n=r(62101),o=r(726721).strlen;t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(i,a){var u=t.getText(),s=t.getEntityAt(i);r.push({offset:o(u.slice(0,i)),length:o(u.slice(i,a)),key:Number(e[n.stringify(s)])})}),r}},295126:function(t,e,r){"use strict";var n=r(726721),o=r(817209),i=function(t,e){return t===e},a=function(t){return!!t},u=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),r=e.flatten().toSet().map(function(r){var u,s,c,f;return u=t,s=e,c=r,f=[],o(s.map(function(t){return t.has(c)}).toList(),i,a,function(t,e){var r=u.getText();f.push({offset:n.strlen(r.slice(0,t)),length:n.strlen(r.slice(t,e)),style:c})}),f});return Array.prototype.concat.apply(u,r.toJS())}},793357:function(t,e,r){"use strict";var n=r(726721),o=r(217889),i=r(952807),a=r(248799);function u(t,e){for(var r=1/0,n=1/0,o=-1/0,i=-1/0,a=0;a<t.length;a++){var u=t[a];if(0!==u.width&&1!==u.width)r=Math.min(r,u.top),n=Math.min(n,u.bottom),o=Math.max(o,u.top),i=Math.max(i,u.bottom)}return o<=n&&o-r<e&&i-n<e}t.exports=function(t){t.collapsed||a(!1);var e,r,s,c,f,l,p=(t=t.cloneRange()).startContainer;1!==p.nodeType&&(p=p.parentNode);var h=(r=getComputedStyle(e=p),(c=(s=o(e)).createElement("div")).style.fontFamily=r.fontFamily,c.style.fontSize=r.fontSize,c.style.fontStyle=r.fontStyle,c.style.fontWeight=r.fontWeight,c.style.lineHeight=r.lineHeight,c.style.position="absolute",c.textContent="M",(f=s.body)||a(!1),f.appendChild(c),l=c.getBoundingClientRect(),f.removeChild(c),l.height),d=t.endContainer,g=t.endOffset;for(t.setStart(t.startContainer,0);u(i(t),h)&&(d=t.startContainer,g=t.startOffset,d.parentNode||a(!1),t.setStartBefore(d),1!==d.nodeType||"inline"===getComputedStyle(d).display););for(var y=d,v=g-1;;){for(var m=y.nodeValue,_=v;_>=0;_--){if(!(null!=m&&_>0&&n.isSurrogatePair(m,_-1)))if(t.setStart(y,_),u(i(t),h))d=y,g=_;else break}if(-1===_||0===y.childNodes.length)break;v=function(t){switch(t.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return t.length;default:return t.childNodes.length}}(y=y.childNodes[_])}return t.setStart(d,g),t}},146555:function(t,e,r){"use strict";var n=r(217889),o=r(511040);t.exports=function(t){for(var e=t;e&&e!==n(t).documentElement;){var r=o(e);if(null!=r)return r;e=e.parentNode}return null}},817209:function(t){"use strict";t.exports=function(t,e,r,n){if(!!t.size){var o=0;t.reduce(function(t,i,a){return!e(t,i)&&(r(t)&&n(o,a),o=a),i}),r(t.last())&&n(o,t.count())}}},638784:function(t){"use strict";var e={};t.exports=function(){for(var t;void 0===t||e.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(16777216*Math.random()).toString(32);return e[t]=!0,t}},499651:function(t,e,r){"use strict";var n=r(344812),o=r(824627),i=r(248799);function a(t,e,r,a,u,s,c){var f=r.getStartOffset(),l=r.getEndOffset(),p=t.__get(u).getMutability(),h=c?f:l;if("MUTABLE"===p)return r;var d=o(e,u).filter(function(t){return h<=t.end&&h>=t.start});1!=d.length&&i(!1);var g=d[0];if("IMMUTABLE"===p)return r.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});!s&&(c?l=g.end:f=g.start);var y=n.getRemovalRange(f,l,e.getText().slice(g.start,g.end),g.start,a);return r.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,r,n,o){var i=n.getStartOffset(),u=n.getEndOffset(),s=e.getEntityAt(i),c=r.getEntityAt(u-1);if(!s&&!c)return n;var f=n;if(s&&s===c)f=a(t,e,f,o,s,!0,!0);else if(s&&c){var l=a(t,e,f,o,s,!1,!0),p=a(t,r,f,o,c,!1,!1);f=f.merge({anchorOffset:l.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var h=a(t,e,f,o,s,!1,!0);f=f.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var d=a(t,r,f,o,c,!1,!1);f=f.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return f}},948751:function(t,e,r){"use strict";var n=r(248799),o=r(541133);t.exports=function(t){var e=t.editorContainer;return e||n(!1),o(e.firstChild)||n(!1),e.firstChild}},808949:function(t,e,r){"use strict";var n=r(366583),o=r(947366);t.exports=function(t,e){var r=e.getStartKey(),i=e.getStartOffset(),a=e.getEndKey(),u=e.getEndOffset(),s=o(t,e).getBlockMap(),c=s.keySeq(),f=c.indexOf(r),l=c.indexOf(a)+1;return n(s.slice(f,l).map(function(t,e){var n=t.getText(),o=t.getCharacterList();return r===a?t.merge({text:n.slice(i,u),characterList:o.slice(i,u)}):e===r?t.merge({text:n.slice(i),characterList:o.slice(i)}):e===a?t.merge({text:n.slice(0,u),characterList:o.slice(0,u)}):t}))}},217889:function(t){"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},846573:function(t,e,r){"use strict";var n=r(389230),o=r(411885),i=r(162378),a=i.isPlatform("Mac OS X"),u=a&&i.isBrowser("Firefox < 29"),s=n.hasCommandModifier,c=n.isCtrlKeyCommand;function f(t){return a&&t.altKey||c(t)}t.exports=function(t){var e,r,n;switch(t.keyCode){case 66:return s(t)?"bold":null;case 68:return c(t)?"delete":null;case 72:return c(t)?"backspace":null;case 73:return s(t)?"italic":null;case 74:return s(t)?"code":null;case 75:return a&&c(t)?"secondary-cut":null;case 77:case 79:return c(t)?"split-block":null;case 84:return a&&c(t)?"transpose-characters":null;case 85:return s(t)?"underline":null;case 87:return a&&c(t)?"backspace-word":null;case 89:if(c(t))return a?"secondary-paste":"redo";return null;case 90:;return(s(e=t)?e.shiftKey?"redo":"undo":null)||null;case o.RETURN:return"split-block";case o.DELETE:;return r=t,!a&&r.shiftKey?null:f(r)?"delete-word":"delete";case o.BACKSPACE:;return s(n=t)&&a?"backspace-to-start-of-line":f(n)?"backspace-word":"backspace";case o.LEFT:return u&&s(t)?"move-selection-to-start-of-block":null;case o.RIGHT:return u&&s(t)?"move-selection-to-end-of-block":null;default:return null}}},467211:function(t,e,r){"use strict";var n=r(736967);t.exports=function(t,e){var r=e.ownerDocument.defaultView.getSelection(),o=r.anchorNode,i=r.anchorOffset,a=r.focusNode,u=r.focusOffset;return 0===r.rangeCount||null==o||null==a?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:n(t,e,o,i,a,u)}},736967:function(t,e,r){"use strict";var n=r(146555),o=r(511040),i=r(243480),a=r(248799),u=r(461273),s=r(601454);function c(t,e,r){var i=e,c=n(i);if(null!=c||t&&(t===i||t.firstChild===i)||a(!1),t===i&&(u(i=i.firstChild)||a(!1),"true"!==i.getAttribute("data-contents")&&a(!1),r>0&&(r=i.childNodes.length)),0===r){var l=null;if(null!=c)l=c;else{var p=function(t){for(;t.firstChild&&(u(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||o(t.firstChild));)t=t.firstChild;return t}(i);l=s(o(p))}return{key:l,offset:0}}var h=i.childNodes[r-1],d=null,g=null;if(o(h)){var y=function(t){for(;t.lastChild&&(u(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||o(t.lastChild));)t=t.lastChild;return t}(h);d=s(o(y)),g=f(y)}else d=s(c),g=f(h);return{key:d,offset:g}}function f(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,r,o,a,u){var f=r.nodeType===Node.TEXT_NODE,l=a.nodeType===Node.TEXT_NODE;if(f&&l)return{selectionState:i(t,s(n(r)),o,s(n(a)),u),needsRecovery:!1};var p=null,h=null,d=!0;return f?(p={key:s(n(r)),offset:o},h=c(e,a,u)):l?(h={key:s(n(a)),offset:u},p=c(e,r,o)):(p=c(e,r,o),h=c(e,a,u),r===a&&o===u&&(d=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:i(t,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},834217:function(t,e,r){"use strict";var n=r(131395).notEmptyKey;function o(t,e){return n(e)?"MUTABLE"===t.__get(e).getMutability()?e:null:null}t.exports=function(t,e){if(e.isCollapsed()){var r,n=e.getAnchorKey(),i=e.getAnchorOffset();if(i>0)return(r=t.getBlockForKey(n).getEntityAt(i-1))!==t.getBlockForKey(n).getEntityAt(i)?null:o(t.getEntityMap(),r);return null}var a=e.getStartKey(),u=e.getStartOffset(),s=t.getBlockForKey(a);return r=u===s.getLength()?null:s.getEntityAt(u),o(t.getEntityMap(),r)}},322038:function(t,e,r){"use strict";var n=r(808949);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:n(t.getCurrentContent(),e)}},614249:function(t,e,r){"use strict";var n=r(195921);t.exports=function(t,e){if(!(t instanceof n))return null;var r=t.getNextSiblingKey();if(r)return r;var o=t.getParentKey();if(!o)return null;for(var i=e.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?e.get(a):null}return i?i.getNextSiblingKey():null}},606872:function(t){"use strict";t.exports=function(t){return Object.keys(t).map(function(e){return t[e]})}},690984:function(t,e,r){"use strict";var n=r(952807);t.exports=function(t){var e=n(t),r=0,o=0,i=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var u=e[1];r=u.top,o=u.right,i=u.bottom,a=u.left}else{var s=e[0];r=s.top,o=s.right,i=s.bottom,a=s.left}for(var c=1;c<e.length;c++){var f=e[c];0!==f.height&&0!==f.width&&(r=Math.min(r,f.top),o=Math.max(o,f.right),i=Math.max(i,f.bottom),a=Math.min(a,f.left))}}return{top:r,right:o,bottom:i,left:a,width:o-a,height:i-r}}},952807:function(t,e,r){"use strict";var n=r(162378),o=r(248799),i=n.isBrowser("Chrome"),a=i?function(t){for(var e=t.cloneRange(),r=[],n=t.endContainer;null!=n;n=n.parentNode){var i,a=n===t.commonAncestorContainer;a?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var u=Array.from(e.getClientRects());if(r.push(u),a)return r.reverse(),(i=[]).concat.apply(i,r);e.setEndBefore(n)}o(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=a},824627:function(t,e,r){"use strict";var n=r(248799);t.exports=function(t,e){var r=[];return t.findEntityRanges(function(t){return t.getEntity()===e},function(t,e){r.push({start:t,end:e})}),r.length||n(!1),r}},63277:function(t,e,r){"use strict";var n=r(162378),o=r(248799),i=n.isBrowser("IE <= 9");t.exports=function(t){var e,r=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),e.documentElement.innerHTML=t,r=e.getElementsByTagName("body")[0]),r}},511040:function(t,e,r){"use strict";var n=r(461273);t.exports=function t(e){if(n(e)){var r=e.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<e.childNodes.length;o++){var i=t(e.childNodes[o]);if(i)return i}}return null}},108142:function(t,e,r){"use strict";var n=r(248799),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,e){var r=0,a=[];t.forEach(function(u){(function(t,e){if(!window.FileReader||t.type&&!(t.type in i)){e("");return}if(""===t.type){var r="";o.test(t.name)&&(r=t.name.replace(o,"")),e(r);return}var a=new FileReader;a.onload=function(){var t=a.result;"string"!=typeof t&&n(!1),e(t)},a.onerror=function(){e("")},a.readAsText(t)})(u,function(n){r++,n&&a.push(n.slice(0,5e3)),r==t.length&&e(a.join("\r"))})})}},243480:function(t,e,r){"use strict";var n=r(468109),o=r(601454);t.exports=function(t,e,r,i,a){var u=o(t.getSelection());if(!e||!i)return u;var s=n.decode(e),c=s.blockKey,f=t.getBlockTree(c),l=f&&f.getIn([s.decoratorKey,"leaves",s.leafKey]),p=n.decode(i),h=p.blockKey,d=t.getBlockTree(h),g=d&&d.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!l||!g)return u;var y=l.get("start"),v=g.get("start"),m=l?y+r:null,_=g?v+a:null;if(u.getAnchorKey()===c&&u.getAnchorOffset()===m&&u.getFocusKey()===h&&u.getFocusOffset()===_)return u;var b=!1;if(c===h){var S=l.get("end"),w=g.get("end");b=v===y&&w===S?a<r:v<y}else b=t.getCurrentContent().getBlockMap().keySeq().skipUntil(function(t){return t===c||t===h}).first()===h;return u.merge({anchorKey:c,anchorOffset:m,focusKey:h,focusOffset:_,isBackward:b})}},185041:function(t,e,r){"use strict";var n=r(690984);t.exports=function(t){var e=t.getSelection();if(!e.rangeCount)return null;var r=n(e.getRangeAt(0)),o=r.top,i=r.right,a=r.bottom,u=r.left;return 0===o&&0===i&&0===a&&0===u?null:r}},72835:function(t){"use strict";t.exports=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}},499719:function(t){"use strict";t.exports=function(t){return"undefined"!=typeof window&&!!window.__DRAFT_GKX&&!!window.__DRAFT_GKX[t]}},230462:function(t,e,r){"use strict";var n=r(13030),o=r(195921),i=r(114517),a=r(964922),u=r(248799),s=r(366583),c=i.List,f=function(t,e,r,n,o,i){var u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=r.get(o),c=s.getText(),f=s.getCharacterList(),l=i+n.getText().length,p=null;switch(u){case"MERGE_OLD_DATA_TO_NEW_DATA":p=n.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=n.getData()}var h=s.getType();c&&"unstyled"===h&&(h=n.getType());var d=s.merge({text:c.slice(0,i)+n.getText()+c.slice(i),characterList:a(f,n.getCharacterList(),i),type:h,data:p});return t.merge({blockMap:r.set(o,d),selectionBefore:e,selectionAfter:e.merge({anchorKey:o,anchorOffset:l,focusKey:o,focusOffset:l,isBackward:!1})})},l=function(t,e,r){var n=t.getText(),o=t.getCharacterList(),i=n.slice(0,e),a=o.slice(0,e),u=r.first();return t.merge({text:i+u.getText(),characterList:a.concat(u.getCharacterList()),type:i?t.getType():u.getType(),data:u.getData()})},p=function(t,e,r){var n=t.getText(),o=t.getCharacterList(),i=n.length,a=n.slice(e,i),u=o.slice(e,i),s=r.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(u),data:s.getData()})},h=function(t,e){var r=t.getKey(),n=t,o=[];for(e.get(r)&&o.push(r);n&&n.getNextSiblingKey();){var i=n.getNextSiblingKey();if(!i)break;o.push(i),n=e.get(i)}return o},d=function(t,e,r,i,a,u){var s,f,d,g,y=r.first() instanceof o,v=[],m=i.size,_=r.get(a),b=i.first(),S=i.last(),w=S.getLength(),x=S.getKey(),k=y&&(!_.getChildKeys().isEmpty()||!b.getChildKeys().isEmpty());r.forEach(function(t,e){if(e!==a){v.push(t);return}k?v.push(t):v.push(l(t,u,i)),i.slice(k?0:1,m-1).forEach(function(t){return v.push(t)}),v.push(p(t,u,i))});var C=n.createFromArray(v);if(y){;s=C,f=0,d=_,g=b,C=s.withMutations(function(t){var e=d.getKey(),r=g.getKey(),n=d.getNextSiblingKey(),o=d.getParentKey(),i=h(g,s),a=i[i.length-1];if(t.get(r)?(t.setIn([e,"nextSibling"],r),t.setIn([r,"prevSibling"],e)):(t.setIn([e,"nextSibling"],g.getNextSiblingKey()),t.setIn([g.getNextSiblingKey(),"prevSibling"],e)),t.setIn([a,"nextSibling"],n),n&&t.setIn([n,"prevSibling"],a),i.forEach(function(e){return t.setIn([e,"parent"],o)}),o){var u=s.get(o).getChildKeys(),f=u.indexOf(e),l=u.toArray();l.splice.apply(l,[f+1,0].concat(i)),t.setIn([o,"children"],c(l))}})}return t.merge({blockMap:C,selectionBefore:e,selectionAfter:e.merge({anchorKey:x,anchorOffset:w,focusKey:x,focusOffset:w,isBackward:!1})})};t.exports=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";e.isCollapsed()||u(!1);var i=t.getBlockMap(),a=s(r),c=e.getStartKey(),l=e.getStartOffset(),p=i.get(c);return(p instanceof o&&(p.getChildKeys().isEmpty()||u(!1)),1===a.size)?f(t,e,i,a.first(),c,l,n):d(t,e,i,a,c,l)}},964922:function(t){"use strict";t.exports=function(t,e,r){var n=t;if(r===n.count())e.forEach(function(t){n=n.push(t)});else if(0===r)e.reverse().forEach(function(t){n=n.unshift(t)});else{var o=n.slice(0,r),i=n.slice(r);n=o.concat(e,i).toList()}return n}},135107:function(t,e,r){"use strict";var n=r(114517),o=r(964922),i=r(248799),a=n.Repeat;t.exports=function(t,e,r,n){e.isCollapsed()||i(!1);var u=null;if(null!=r&&(u=r.length),null==u||0===u)return t;var s=t.getBlockMap(),c=e.getStartKey(),f=e.getStartOffset(),l=s.get(c),p=l.getText(),h=l.merge({text:p.slice(0,f)+r+p.slice(f,l.getLength()),characterList:o(l.getCharacterList(),a(n,u).toList(),f)}),d=f+u;return t.merge({blockMap:s.set(c,h),selectionAfter:e.merge({anchorOffset:d,focusOffset:d})})}},461273:function(t){"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&t.nodeType===Node.ELEMENT_NODE}},350508:function(t){"use strict";t.exports=function(t){return"handled"===t||!0===t}},935914:function(t,e,r){"use strict";var n=r(461273);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"A"===t.nodeName}},47808:function(t,e,r){"use strict";var n=r(461273);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"BR"===t.nodeName}},541133:function(t){"use strict";t.exports=function(t){return!!t&&!!t.ownerDocument&&(t.ownerDocument.defaultView?t instanceof t.ownerDocument.defaultView.HTMLElement||!1:t instanceof HTMLElement)}},804655:function(t,e,r){"use strict";var n=r(461273);t.exports=function(t){return!!t&&!!t.ownerDocument&&n(t)&&"IMG"===t.nodeName}},833132:function(t){"use strict";t.exports=function(t){if(!t||!("ownerDocument"in t))return!1;if("ownerDocument"in t){if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}},140821:function(t){"use strict";t.exports=function(t){var e=t.getSelection(),r=e.getAnchorKey(),n=t.getBlockTree(r),o=e.getStartOffset(),i=!1;return n.some(function(t){return o===t.get("start")?(i=!0,!0):!!(o<t.get("end"))&&t.get("leaves").some(function(t){return o===t.get("start")&&(i=!0,!0)})}),i}},428754:function(t,e,r){"use strict";var n=r(411885);t.exports=function(t){return t.which===n.RETURN&&(t.getModifierState("Shift")||t.getModifierState("Alt")||t.getModifierState("Control"))}},165586:function(t,e,r){"use strict";var n=r(483319),o=r(793357),i=r(736967),a=r(20085),u=r(271691);t.exports=function(t,e){var r=u(t,function(t){var r=t.getSelection();if(r.isCollapsed()&&0===r.getAnchorOffset())return a(t,1);var n=e.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return i(t,null,(n=o(n)).endContainer,n.endOffset,n.startContainer,n.startOffset).selectionState},"backward");return r===t.getCurrentContent()?t:n.push(t,r,"remove-range")}},436566:function(t,e,r){"use strict";var n=r(742209),o=r(483319),i=r(20085),a=r(271691);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=e.getStartOffset();if(0===r)return i(t,1);var o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(0,r);return i(t,n.getBackward(a).length||1)},"backward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},252804:function(t,e,r){"use strict";var n=r(742209),o=r(483319),i=r(133071),a=r(271691);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=e.getStartOffset(),o=e.getStartKey(),a=t.getCurrentContent().getBlockForKey(o).getText().slice(r);return i(t,n.getForward(a).length||1)},"forward");return e===t.getCurrentContent()?t:o.push(t,e,"remove-range")}},102506:function(t,e,r){"use strict";var n=r(373251),o=r(483319);t.exports=function(t){var e=n.splitBlock(t.getCurrentContent(),t.getSelection());return o.push(t,e,"split-block")}},241076:function(t,e,r){"use strict";var n=r(483319);t.exports=function(t){var e=t.getSelection(),r=e.getEndKey(),o=t.getCurrentContent().getBlockForKey(r).getLength();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}),forceSelection:!0})}},848529:function(t,e,r){"use strict";var n=r(483319);t.exports=function(t){var e=t.getSelection(),r=e.getStartKey();return n.set(t,{selection:e.merge({anchorKey:r,anchorOffset:0,focusKey:r,focusOffset:0,isBackward:!1}),forceSelection:!0})}},340917:function(t,e,r){"use strict";var n=r(483319),o=r(726721),i=r(20085),a=r(271691);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a-1];return i(t,u?o.getUTF16Length(u,0):1)},"backward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"backspace-character":"remove-range")}},33688:function(t,e,r){"use strict";var n=r(483319),o=r(726721),i=r(133071),a=r(271691);t.exports=function(t){var e=a(t,function(t){var e=t.getSelection(),r=t.getCurrentContent(),n=e.getAnchorKey(),a=e.getAnchorOffset(),u=r.getBlockForKey(n).getText()[a];return i(t,u?o.getUTF16Length(u,0):1)},"forward");if(e===t.getCurrentContent())return t;var r=t.getSelection();return n.push(t,e.set("selectionBefore",r),r.isCollapsed()?"delete-character":"remove-range")}},115057:function(t,e,r){"use strict";var n=r(373251),o=r(483319),i=r(808949);t.exports=function(t){var e,r,a=t.getSelection();if(!a.isCollapsed())return t;var u=a.getAnchorOffset();if(0===u)return t;var s=a.getAnchorKey(),c=t.getCurrentContent(),f=c.getBlockForKey(s).getLength();if(f<=1)return t;u===f?(e=a.set("anchorOffset",u-1),r=a):r=(e=a.set("focusOffset",u+1)).set("anchorOffset",u+1);var l=i(c,e),p=n.removeRange(c,e,"backward"),h=p.getSelectionAfter(),d=h.getAnchorOffset()-1,g=h.merge({anchorOffset:d,focusOffset:d}),y=n.replaceWithFragment(p,g,l),v=o.push(t,y,"insert-fragment");return o.acceptSelection(v,r)}},10630:function(t,e,r){"use strict";var n=r(483319);t.exports=function(t,e,r){var o=n.undo(e);if("spellcheck-change"===e.getLastChangeType()){var i=o.getCurrentContent();r(n.set(o,{nativelyRenderedContent:i}));return}if(t.preventDefault(),!e.getNativelyRenderedContent()){r(o);return}r(n.set(e,{nativelyRenderedContent:null})),setTimeout(function(){r(o)},0)}},996716:function(t,e,r){"use strict";var n=r(114517).Map;t.exports=function(t,e,r){var o=e.getStartKey(),i=e.getEndKey(),a=t.getBlockMap(),u=a.toSeq().skipUntil(function(t,e){return e===o}).takeUntil(function(t,e){return e===i}).concat(n([[i,a.get(i)]])).map(r);return t.merge({blockMap:a.merge(u),selectionBefore:e,selectionAfter:e})}},977521:function(t,e,r){"use strict";var n=r(195921),o=r(614249),i=r(114517),a=r(248799),u=i.OrderedMap,s=i.List,c=function(t,e,r){if(!t)return;var n=e.get(t);if(!!n)e.set(t,r(n))},f=function(t,e,r,n,o){if(!o)return t;var i="after"===n,a=e.getKey(),u=r.getKey(),f=e.getParentKey(),l=e.getNextSiblingKey(),p=e.getPrevSiblingKey(),h=r.getParentKey(),d=i?r.getNextSiblingKey():u,g=i?u:r.getPrevSiblingKey();return t.withMutations(function(t){c(f,t,function(t){var e=t.getChildKeys();return t.merge({children:e.delete(e.indexOf(a))})}),c(p,t,function(t){return t.merge({nextSibling:l})}),c(l,t,function(t){return t.merge({prevSibling:p})}),c(d,t,function(t){return t.merge({prevSibling:a})}),c(g,t,function(t){return t.merge({nextSibling:a})}),c(h,t,function(t){var e=t.getChildKeys(),r=e.indexOf(u),n=e.toArray();return n.splice(i?r+1:0!==r?r-1:0,0,a),t.merge({children:s(n)})}),c(a,t,function(t){return t.merge({nextSibling:d,prevSibling:g,parent:h})})})};t.exports=function(t,e,r,i){"replace"!==i||a(!1);var s=r.getKey(),c=e.getKey();c!==s||a(!1);var l=t.getBlockMap(),p=e instanceof n,h=[e],d=l.delete(c);p&&(h=[],d=l.withMutations(function(t){var r=e.getNextSiblingKey(),n=o(e,t);t.toSeq().skipUntil(function(t){return t.getKey()===c}).takeWhile(function(t){var e=t.getKey(),o=e===c,i=!r&&t.getParentKey()&&(!n||e!==n);return!!(o||r&&e!==r||i)}).forEach(function(e){h.push(e),t.delete(e.getKey())})}));var g=d.toSeq().takeUntil(function(t){return t===r}),y=d.toSeq().skipUntil(function(t){return t===r}).skip(1),v=h.map(function(t){return[t.getKey(),t]}),m=u();if("before"===i){var _=t.getBlockBefore(s);!_||_.getKey()!==e.getKey()||a(!1),m=g.concat([].concat(v,[[s,r]]),y).toOrderedMap()}else if("after"===i){var b=t.getBlockAfter(s);!b||b.getKey()!==c||a(!1),m=g.concat([[s,r]].concat(v),y).toOrderedMap()}return t.merge({blockMap:f(m,e,r,i,p),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:c,focusKey:c})})}},20085:function(t,e,r){"use strict";r(205375);t.exports=function(t,e){var r=t.getSelection(),n=t.getCurrentContent(),o=r.getStartKey(),i=r.getStartOffset(),a=o,u=0;if(e>i){var s=n.getKeyBefore(o);null==s?a=o:(a=s,u=n.getBlockForKey(s).getText().length)}else u=i-e;return r.merge({focusKey:a,focusOffset:u,isBackward:!0})}},133071:function(t,e,r){"use strict";r(205375);t.exports=function(t,e){var r,n=t.getSelection(),o=n.getStartKey(),i=n.getStartOffset(),a=t.getCurrentContent(),u=o;return e>a.getBlockForKey(o).getText().length-i?(u=a.getKeyAfter(o),r=0):r=i+e,n.merge({focusKey:u,focusOffset:r})}},366583:function(t,e,r){"use strict";var n=r(195921),o=r(638784),i=r(114517).OrderedMap,a=function(t){var e,r={};return i(t.withMutations(function(t){t.forEach(function(n,i){var a=n.getKey(),u=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),c=n.getChildKeys(),f=n.getParentKey(),l=o();if(r[a]=l,u&&(t.get(u)?t.setIn([u,"prevSibling"],l):t.setIn([a,"nextSibling"],null)),s&&(t.get(s)?t.setIn([s,"nextSibling"],l):t.setIn([a,"prevSibling"],null)),f&&t.get(f)){var p=t.get(f).getChildKeys();t.setIn([f,"children"],p.set(p.indexOf(n.getKey()),l))}else t.setIn([a,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],l),t.setIn([a,"prevSibling"],r[e.getKey()])),e=t.get(a);c.forEach(function(e){t.get(e)?t.setIn([e,"parent"],l):t.setIn([a,"children"],n.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[r[t.getKey()],t.set("key",r[t.getKey()])]}))};t.exports=function(t){if(!(t.first() instanceof n))return i(t.toArray().map(function(t){var e=o();return[e,t.set("key",e)]}));return a(t)}},947366:function(t,e,r){"use strict";var n=r(699966),o=r(817209),i=r(248799);function a(t,e,r){var a=e.getCharacterList(),u=r>0?a.get(r-1):void 0,s=r<a.count()?a.get(r):void 0,c=u?u.getEntity():void 0,f=s?s.getEntity():void 0;if(f&&f===c&&"MUTABLE"!==t.__get(f).getMutability()){for(var l,p,h,d,g,y=(l=a,p=f,h=r,o(l,function(t,e){return t.getEntity()===e.getEntity()},function(t){return t.getEntity()===p},function(t,e){t<=h&&e>=h&&(d={start:t,end:e})}),"object"!=typeof d&&i(!1),d),v=y.start,m=y.end;v<m;)g=a.get(v),a=a.set(v,n.applyEntity(g,null)),v++;return e.set("characterList",a)}return e}t.exports=function(t,e){var r=t.getBlockMap(),n=t.getEntityMap(),o={},i=e.getStartKey(),u=e.getStartOffset(),s=r.get(i),c=a(n,s,u);c!==s&&(o[i]=c);var f=e.getEndKey(),l=e.getEndOffset(),p=r.get(f);i===f&&(p=c);var h=a(n,p,l);return(h!==p&&(o[f]=h),Object.keys(o).length)?t.merge({blockMap:r.merge(o),selectionAfter:e}):t.set("selectionAfter",e)}},589649:function(t,e,r){"use strict";var n=r(195921),o=r(614249),i=r(114517);i.List;var a=i.Map,u=function(t,e,r){if(!t)return;var n=e.get(t);if(!!n)e.set(t,r(n))},s=function(t,e){var r=[];if(!t)return r;for(var n=e.get(t);n&&n.getParentKey();){var o=n.getParentKey();o&&r.push(o),n=o?e.get(o):null}return r},c=function(t,e){var r=[];if(!t)return r;for(var n=o(t,e);n&&e.get(n);){var i=e.get(n);r.push(n),n=i.getParentKey()?o(i,e):null}return r},f=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getNextSiblingKey();n&&!e.get(n);)n=r.get(n).getNextSiblingKey()||null;return n},l=function(t,e,r){if(!t)return null;for(var n=r.get(t.getKey()).getPrevSiblingKey();n&&!e.get(n);)n=r.get(n).getPrevSiblingKey()||null;return n},p=function(t,e,r){if(0===e)for(;e<r;)t=t.shift(),e++;else if(r===t.count())for(;r>e;)t=t.pop(),r--;else{var n=t.slice(0,e),o=t.slice(r);t=n.concat(o).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var r,i,h,d,g,y=t.getBlockMap(),v=e.getStartKey(),m=e.getStartOffset(),_=e.getEndKey(),b=e.getEndOffset(),S=y.get(v),w=y.get(_),x=S instanceof n,k=[];if(x){var C=w.getChildKeys(),E=s(_,y);w.getNextSiblingKey()&&(k=k.concat(E)),!C.isEmpty()&&(k=k.concat(E.concat([_]))),k=k.concat(s(o(w,y),y))}g=S===w?p(S.getCharacterList(),m,b):S.getCharacterList().slice(0,m).concat(w.getCharacterList().slice(b));var O=S.merge({text:S.getText().slice(0,m)+w.getText().slice(b),characterList:g}),D=x&&0===m&&0===b&&w.getParentKey()===v&&null==w.getPrevSiblingKey()?a([[v,null]]):y.toSeq().skipUntil(function(t,e){return e===v}).takeUntil(function(t,e){return e===_}).filter(function(t,e){return -1===k.indexOf(e)}).concat(a([[_,null]])).map(function(t,e){return e===v?O:null}),K=y.merge(D).filter(function(t){return!!t});if(x&&S!==w){;r=K,i=S,h=w,d=y,K=r.withMutations(function(t){if(u(i.getKey(),t,function(e){return e.merge({nextSibling:f(e,t,d),prevSibling:l(e,t,d)})}),u(h.getKey(),t,function(e){return e.merge({nextSibling:f(e,t,d),prevSibling:l(e,t,d)})}),s(i.getKey(),d).forEach(function(e){return u(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:f(e,t,d),prevSibling:l(e,t,d)})})}),u(i.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:i.getPrevSiblingKey()})}),u(i.getPrevSiblingKey(),t,function(e){return e.merge({nextSibling:f(e,t,d)})}),u(h.getNextSiblingKey(),t,function(e){return e.merge({prevSibling:l(e,t,d)})}),u(h.getPrevSiblingKey(),t,function(t){return t.merge({nextSibling:h.getNextSiblingKey()})}),s(h.getKey(),d).forEach(function(e){u(e,t,function(e){return e.merge({children:e.getChildKeys().filter(function(e){return t.get(e)}),nextSibling:f(e,t,d),prevSibling:l(e,t,d)})})}),c(h,d).forEach(function(e){return u(e,t,function(e){return e.merge({nextSibling:f(e,t,d),prevSibling:l(e,t,d)})})}),null==r.get(i.getKey())&&null!=r.get(h.getKey())&&h.getParentKey()===i.getKey()&&null==h.getPrevSiblingKey()){var e=i.getPrevSiblingKey();u(h.getKey(),t,function(t){return t.merge({prevSibling:e})}),u(e,t,function(t){return t.merge({nextSibling:h.getKey()})});var n=e?r.get(e):null,o=n?n.getParentKey():null;if(i.getChildKeys().forEach(function(e){u(e,t,function(t){return t.merge({parent:o})})}),null!=o){var a=r.get(o);u(o,t,function(t){return t.merge({children:a.getChildKeys().concat(i.getChildKeys())})})}u(i.getChildKeys().find(function(t){return null===r.get(t).getNextSiblingKey()}),t,function(t){return t.merge({nextSibling:i.getNextSiblingKey()})})}})}return t.merge({blockMap:K,selectionBefore:e,selectionAfter:e.merge({anchorKey:v,anchorOffset:m,focusKey:v,focusOffset:m,isBackward:!1})})}},271691:function(t,e,r){"use strict";var n=r(373251),o=r(499719)("draft_tree_data_support");t.exports=function(t,e,r){var i=t.getSelection(),a=t.getCurrentContent(),u=i,s=i.getAnchorKey(),c=i.getFocusKey(),f=a.getBlockForKey(s);if(o&&"forward"===r&&s!==c)return a;if(i.isCollapsed()){if("forward"===r){if(t.isSelectionAtEndOfContent())return a;if(o&&i.getAnchorOffset()===a.getBlockForKey(s).getLength()){var l=a.getBlockForKey(f.nextSibling);if(!l||0===l.getLength())return a}}else if(t.isSelectionAtStartOfContent())return a;if((u=e(t))===i)return a}return n.removeRange(a,u,r)}},367736:function(t){"use strict";var e=RegExp("\r","g");t.exports=function(t){return t.replace(e,"")}},508561:function(t,e,r){"use strict";var n=r(807396),o=r(655421),i=r(162378),a=r(223448),u=r(864245),s=r(217889),c=r(248799),f=r(461273),l=i.isBrowser("IE");function p(t,e){for(var r=t,n=r;r;){if(f(r)&&n.hasAttribute("contenteditable"))return function(t,e){if(!t)return"[empty]";var r=function t(e,r){var n=void 0!==r?r(e):[];if(e.nodeType===Node.TEXT_NODE){var o=e.textContent.length;return s(e).createTextNode("[text "+o+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();1===i.nodeType&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var a=e.childNodes,u=0;u<a.length;u++)i.appendChild(t(a[u],r));return i}(t,e);return r.nodeType===Node.TEXT_NODE?r.textContent:(f(r)||c(!1),r.outerHTML)}(r,e);n=r=r.parentNode}return"Could not find contentEditable parent of node"}function h(t){return null===t.nodeValue?t.childNodes.length:t.nodeValue.length}function d(t,e,r,n){var i=u();if(t.extend&&null!=e&&a(i,e)){r>h(e)&&o.logSelectionStateFailure({anonymizedDom:p(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(n.toJS())});var s=e===t.focusNode;try{t.rangeCount>0&&t.extend&&t.extend(e,r)}catch(a){throw o.logSelectionStateFailure({anonymizedDom:p(e,function(e){var r=[];return e===i&&r.push("active element"),e===t.anchorNode&&r.push("selection anchor node"),e===t.focusNode&&r.push("selection focus node"),r}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:s,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:a?""+a:null,offset:r},null,2),selectionState:JSON.stringify(n.toJS(),null,2)}),a}}else if(e&&t.rangeCount>0){var c=t.getRangeAt(0);c.setEnd(e,r),t.addRange(c.cloneRange())}}function g(t,e,r,i){var a=s(e).createRange();if(r>h(e)&&(o.logSelectionStateFailure({anonymizedDom:p(e),extraParams:JSON.stringify({offset:r}),selectionState:JSON.stringify(i.toJS())}),n.handleExtensionCausedError()),a.setStart(e,r),l)try{t.addRange(a)}catch(t){}else t.addRange(a)}t.exports={setDraftEditorSelection:function(t,e,r,n,o){var i=s(e);if(!!a(i.documentElement,e)){var u=i.defaultView.getSelection(),c=t.getAnchorKey(),f=t.getAnchorOffset(),l=t.getFocusKey(),p=t.getFocusOffset(),h=t.getIsBackward();if(!u.extend&&h){var y=c,v=f;c=l,f=p,l=y,p=v,h=!1}var m=c===r&&n<=f&&o>=f,_=l===r&&n<=p&&o>=p;if(m&&_){u.removeAllRanges(),g(u,e,f-n,t),d(u,e,p-n,t);return}if(h){if(_&&(u.removeAllRanges(),g(u,e,p-n,t)),m){var b=u.focusNode,S=u.focusOffset;u.removeAllRanges(),g(u,e,f-n,t),d(u,b,S,t)}}else m&&(u.removeAllRanges(),g(u,e,f-n,t)),_&&d(u,e,p-n,t)}},addFocusToSelection:d}},307506:function(t,e,r){"use strict";var n=r(195921),o=r(638784),i=r(114517),a=r(248799),u=r(996716),s=i.List,c=i.Map,f=function(t,e,r){if(!t)return;var n=e.get(t);if(!!n)e.set(t,r(n))};t.exports=function(t,e){e.isCollapsed()||a(!1);var r,i,l,p=e.getAnchorKey(),h=t.getBlockMap(),d=h.get(p),g=d.getText();if(!g){var y=d.getType();if("unordered-list-item"===y||"ordered-list-item"===y)return u(t,e,function(t){return t.merge({type:"unstyled",depth:0})})}var v=e.getAnchorOffset(),m=d.getCharacterList(),_=o(),b=d instanceof n,S=d.merge({text:g.slice(0,v),characterList:m.slice(0,v)}),w=S.merge({key:_,text:g.slice(v),characterList:m.slice(v),data:c()}),x=h.toSeq().takeUntil(function(t){return t===d}),k=h.toSeq().skipUntil(function(t){return t===d}).rest(),C=x.concat([[p,S],[_,w]],k).toOrderedMap();if(b){;d.getChildKeys().isEmpty()||a(!1),r=C,i=S,l=w,C=r.withMutations(function(t){var e=i.getKey(),r=l.getKey();f(i.getParentKey(),t,function(t){var n=t.getChildKeys(),o=n.indexOf(e)+1,i=n.toArray();return i.splice(o,0,r),t.merge({children:s(i)})}),f(i.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:r})}),f(e,t,function(t){return t.merge({nextSibling:r})}),f(r,t,function(t){return t.merge({prevSibling:e})})})}return t.merge({blockMap:C,selectionBefore:e,selectionAfter:e.merge({anchorKey:_,anchorOffset:0,focusKey:_,focusOffset:0,isBackward:!1})})}},243302:function(t){"use strict";var e=/\r\n?|\n/g;t.exports=function(t){return t.split(e)}},307867:function(t){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})}},448681:function(t,e,r){"use strict";var n=r(687495),o=r(966019),i=r(359740),a=RegExp("\r\n","g"),u={"text/rtf":1,"text/html":1};function s(t){if("file"==t.kind)return t.getAsFile()}var c=function(){function t(t){this.data=t,this.types=t.types?o(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!!(this.getHTML()&&this.getText())||!this.isImage()&&this.types.some(function(t){return u[t]})},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(a,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some(function(t){return -1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")})},e.getLink=function(){if(this.data.getData)return -1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url");return null},e.isImage=function(){if(this.types.some(function(t){return -1!=t.indexOf("application/x-moz-file")}))return!0;for(var t=this.getFiles(),e=0;e<t.length;e++){var r=t[e].type;if(!n.isImage(r))return!1}return!0},e.getCount=function(){if(this.data.hasOwnProperty("items"))return this.data.items.length;if(this.data.hasOwnProperty("mozItemCount"))return this.data.mozItemCount;if(this.data.files)return this.data.files.length;return null},e.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(s).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.hasFiles=function(){return this.getFiles().length>0},t}();t.exports=c},411885:function(t){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},687495:function(t){"use strict";var e={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var n=r(t);return e.isImage(t)&&("jpeg"===n[1]||"pjpeg"===n[1])}};function r(t){return t.split("/")}t.exports=e},189730:function(t){"use strict";function e(t,e){return!!e&&(t===e.documentElement||t===e.body)}t.exports={getTop:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollTop||r.documentElement.scrollTop:t.scrollTop},setTop:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollTop=n.documentElement.scrollTop=r:t.scrollTop=r},getLeft:function(t){var r=t.ownerDocument;return e(t,r)?r.body.scrollLeft||r.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,r){var n=t.ownerDocument;e(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=r:t.scrollLeft=r}}},965554:function(t,e,r){"use strict";function n(t,e){var r=o.get(t,e);return"auto"===r||"scroll"===r}var o={get:r(955162),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(n(t,"overflow")||n(t,"overflowY")||n(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=o},319801:function(t){"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:----・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞\xa1-\xb1\xb4-\xb8\xba\xbb\xbf]"}}},170481:function(t){"use strict";var e=function(){function t(t){var e,r,n;e=this,n=void 0,(r="_uri")in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this._uri=t}return t.prototype.toString=function(){return this._uri},t}();t.exports=e},853090:function(t,e,r){"use strict";var n=r(62980),o=r(248799),i="A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA--zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",a="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",u="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=RegExp("["+i+a+u+"]"),c=RegExp("["+a+u+"]");function f(t){var e=s.exec(t);return null==e?null:e[0]}function l(t){var e=f(t);return null==e?n.NEUTRAL:c.exec(e)?n.RTL:n.LTR}function p(t,e){if(e=e||n.NEUTRAL,!t.length)return e;var r=l(t);return r===n.NEUTRAL?e:r}function h(t,e){return!e&&(e=n.getGlobalDir()),n.isStrong(e)||o(!1),p(t,e)}t.exports={firstStrongChar:f,firstStrongCharDir:l,resolveBlockDir:p,getDirection:h,isDirectionLTR:function(t,e){return h(t,e)===n.LTR},isDirectionRTL:function(t,e){return h(t,e)===n.RTL}}},62980:function(t,e,r){"use strict";var n=r(248799),o=null;function i(t){return"LTR"===t||"RTL"===t}function a(t){return i(t)||n(!1),"LTR"===t?"ltr":"rtl"}function u(t){o=t}t.exports={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:i,getHTMLDir:a,getHTMLDirIfDifferent:function(t,e){return i(t)||n(!1),i(e)||n(!1),t===e?null:a(t)},setGlobalDir:u,initGlobalDir:function(){o="LTR"},getGlobalDir:function(){return!o&&this.initGlobalDir(),o||n(!1),o}}},739695:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(853090),i=r(62980),a=r(248799),u=function(){function t(t){n(this,"_defaultDir",void 0),n(this,"_lastDir",void 0),t?i.isStrong(t)||a(!1):t=i.getGlobalDir(),this._defaultDir=t,this.reset()}var e=t.prototype;return e.reset=function(){this._lastDir=this._defaultDir},e.getDirection=function(t){return this._lastDir=o.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=u},726721:function(t,e,r){"use strict";var n=r(248799),o=/[\uD800-\uDFFF]/;function i(t){return 55296<=t&&t<=57343}function a(t){return o.test(t)}function u(t,e){return 1+i(t.charCodeAt(e))}function s(t,e,r){if(e=e||0,r=void 0===r?1/0:r||0,!a(t))return t.substr(e,r);var n=t.length;if(n<=0||e>n||r<=0)return"";var o=0;if(e>0){for(;e>0&&o<n;e--)o+=u(t,o);if(o>=n)return""}else if(e<0){for(o=n;e<0&&0<o;e++)o-=u(t,o-1);o<0&&(o=0)}var i=n;if(r<n)for(i=o;r>0&&i<n;r--)i+=u(t,i);return t.substring(o,i)}t.exports={getCodePoints:function(t){for(var e=[],r=0;r<t.length;r+=u(t,r))e.push(t.codePointAt(r));return e},getUTF16Length:u,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(t,e){if(0<=e&&e<t.length||n(!1),e+1===t.length)return!1;var r=t.charCodeAt(e),o=t.charCodeAt(e+1);return 55296<=r&&r<=56319&&56320<=o&&o<=57343},strlen:function(t){if(!a(t))return t.length;for(var e=0,r=0;r<t.length;r+=u(t,r))e++;return e},substring:function(t,e,r){(e=e||0)<0&&(e=0),(r=void 0===r?1/0:r||0)<0&&(r=0);var n=Math.abs(r-e);return s(t,e=e<r?e:r,n)},substr:s}},162378:function(t,e,r){"use strict";var n=r(657232),o=r(467161),i=r(629149),a=r(950706);function u(t,e,r,n){if(t===r)return!0;if(!r.startsWith(t))return!1;var i=r.slice(t.length);return!!e&&(i=n?n(i):i,o.contains(i,e))}function s(t){return"Windows"===n.platformName?t.replace(/^\s*NT/,""):t}t.exports=i({isBrowser:function(t){return u(n.browserName,n.browserFullVersion,t)},isBrowserArchitecture:function(t){return u(n.browserArchitecture,null,t)},isDevice:function(t){return u(n.deviceName,null,t)},isEngine:function(t){return u(n.engineName,n.engineVersion,t)},isPlatform:function(t){return u(n.platformName,n.platformFullVersion,t,s)},isPlatformArchitecture:function(t){return u(n.platformArchitecture,null,t)}},a)},657232:function(t,e,r){"use strict";var n,o=r(757309),i="Unknown",a={"Mac OS":"Mac OS X"},u=new o().getResult(),s=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(u.browser.version);var c={browserArchitecture:u.cpu.architecture||i,browserFullVersion:u.browser.version||i,browserMinorVersion:s.minor||i,browserName:u.browser.name||i,browserVersion:u.browser.major||i,deviceName:u.device.model||i,engineName:u.engine.name||i,engineVersion:u.engine.version||i,platformArchitecture:u.cpu.architecture||i,platformName:a[n=u.os.name]||n||i,platformVersion:u.os.version||i,platformFullVersion:u.os.version||i};t.exports=c},467161:function(t,e,r){"use strict";var n=r(248799),o=/\./,i=/\|\|/,a=/\s+\-\s+/,u=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function c(t,e){if(""===(t=t.trim()))return!0;var r=e.split(o),n=p(t),i=n.modifier,a=n.rangeComponents;switch(i){case"<":return function(t,e){return -1===v(t,e)}(r,a);case"<=":return function(t,e){var r=v(t,e);return -1===r||0===r}(r,a);case">=":return l(r,a);case">":return function(t,e){return 1===v(t,e)}(r,a);case"~":case"~>":return function(t,e){var r=e.slice(),n=e.slice();n.length>1&&n.pop();var o=n.length-1,i=parseInt(n[o],10);return h(i)&&(n[o]=i+1+""),l(t,r)&&-1===v(t,n)}(r,a);default:return function(t,e){return 0===v(t,e)}(r,a)}}function f(t,e){return -1===v(t,e)}function l(t,e){var r=v(t,e);return 1===r||0===r}function p(t){var e=t.split(o),r=e[0].match(u);return r||n(!1),{modifier:r[1],rangeComponents:[r[2]].concat(e.slice(1))}}function h(t){return!isNaN(t)&&isFinite(t)}function d(t){return!p(t).modifier}function g(t,e){for(var r=t.length;r<e;r++)t[r]="0"}function y(t,e){return(typeof t!=typeof e&&n(!1),t>e)?1:t<e?-1:0}function v(t,e){for(var r=function(t,e){t=t.slice(),g(t,(e=e.slice()).length);for(var r=0;r<e.length;r++){var n=e[r].match(/^[x*]$/i);if(n&&(e[r]=t[r]="0","*"===n[0]&&r===e.length-1))for(var o=r;o<t.length;o++)t[o]="0"}return g(e,t.length),[t,e]}(t,e),n=r[0],o=r[1],i=0;i<o.length;i++){var a=function(t,e){var r=t.match(s)[1],n=e.match(s)[1],o=parseInt(r,10),i=parseInt(n,10);return h(o)&&h(i)&&o!==i?y(o,i):y(t,e)}(n[i],o[i]);if(a)return a}return 0}var m={contains:function(t,e){var r,o,u;return r=t.trim(),o=e.trim(),(u=r.split(i)).length>1?u.some(function(t){return m.contains(t,o)}):function(t,e){var r=t.split(a);if(r.length>0&&r.length<=2||n(!1),1===r.length)return c(r[0],e);var o=r[0],i=r[1];return d(o)&&d(i)||n(!1),c(">="+o,e)&&c("<="+i,e)}(r=u[0].trim(),o)}};t.exports=m},795076:function(t){"use strict";var e=/-(.)/g;t.exports=function(t){return t.replace(e,function(t,e){return e.toUpperCase()})}},223448:function(t,e,r){"use strict";var n=r(691897);t.exports=function t(e,r){if(!e||!r)return!1;if(e===r)return!0;if(n(e))return!1;else if(n(r))return t(e,r.parentNode);else if("contains"in e)return e.contains(r);else if(e.compareDocumentPosition)return!!(16&e.compareDocumentPosition(r));else return!1}},966019:function(t,e,r){"use strict";var n=r(248799);t.exports=function(t){var e;return(e=t)&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)?Array.isArray(t)?t.slice():function(t){var e=t.length;if(!Array.isArray(t)&&("object"==typeof t||"function"==typeof t)||n(!1),"number"!=typeof e&&n(!1),0===e||e-1 in t||n(!1),"function"!=typeof t.callee||n(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var r=Array(e),o=0;o<e;o++)r[o]=t[o];return r}(t):[t]}},716959:function(t){"use strict";function e(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(e).join(" "):Array.prototype.map.call(arguments,e).join(" ")}},359740:function(t){"use strict";function e(t){return function(){return t}}var r=function(){};r.thatReturns=e,r.thatReturnsFalse=e(!1),r.thatReturnsTrue=e(!0),r.thatReturnsNull=e(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},864245:function(t){"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},108121:function(t){"use strict";var e="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:e||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},525253:function(t,e,r){"use strict";var n=r(494820);t.exports=function(t){var e=n(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},494820:function(t,e,r){"use strict";var n=r(223448);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t)||!n(e,t))return{left:0,right:0,top:0,bottom:0};var r=t.getBoundingClientRect();return{left:Math.round(r.left)-e.clientLeft,right:Math.round(r.right)-e.clientLeft,top:Math.round(r.top)-e.clientTop,bottom:Math.round(r.bottom)-e.clientTop}}},575032:function(t,e,r){"use strict";var n=r(108121),o=r(232560);t.exports=function(t){var e=n(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var r=o(t),i=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-i.clientWidth,u=t.scrollHeight-i.clientHeight;return r.x=Math.max(0,Math.min(r.x,a)),r.y=Math.max(0,Math.min(r.y,u)),r}},955162:function(t,e,r){"use strict";var n=r(795076),o=r(417914);function i(t){return null==t?t:String(t)}t.exports=function(t,e){var r;if(window.getComputedStyle&&(r=window.getComputedStyle(t,null)))return i(r.getPropertyValue(o(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(r=document.defaultView.getComputedStyle(t,null))return i(r.getPropertyValue(o(e)));if("display"===e)return"none"}if(t.currentStyle)return"float"===e?i(t.currentStyle.cssFloat||t.currentStyle.styleFloat):i(t.currentStyle[n(e)]);return i(t.style&&t.style[n(e)])}},232560:function(t){"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},298554:function(t){"use strict";function e(){var t;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function n(){return{width:window.innerWidth||e(),height:window.innerHeight||r()}}n.withoutScrollbars=function(){return{width:e(),height:r()}},t.exports=n},417914:function(t){"use strict";var e=/([A-Z])/g;t.exports=function(t){return t.replace(e,"-$1").toLowerCase()}},248799:function(t){"use strict";var e=function(t){};t.exports=function(t,r){for(var n,o=arguments.length,i=Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];if(e(r),!t){if(void 0===r)n=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;(n=Error(r.replace(/%s/g,function(){return String(i[u++])}))).name="Invariant Violation"}throw n.framesToPop=1,n}}},634971:function(t){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!!(t&&("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},691897:function(t,e,r){"use strict";var n=r(634971);t.exports=function(t){return n(t)&&3==t.nodeType}},3609:function(t){"use strict";t.exports=function(t){var e=t||"",r=arguments.length;if(r>1)for(var n=1;n<r;n++){var o=arguments[n];o&&(e=(e?e+" ":"")+o)}return e}},629149:function(t){"use strict";var e=Object.prototype.hasOwnProperty;t.exports=function(t,r,n){if(!t)return null;var o={};for(var i in t)e.call(t,i)&&(o[i]=r.call(n,t[i],i,t));return o}},950706:function(t){"use strict";t.exports=function(t){var e={};return function(r){return!e.hasOwnProperty(r)&&(e[r]=t.call(this,r)),e[r]}}},601454:function(t){"use strict";t.exports=function(t){if(null!=t)return t;throw Error("Got unexpected null or undefined")}},22846:function(t,e,r){"use strict";r(258409),t.exports=window.setImmediate},205375:function(t,e,r){"use strict";var n=r(359740);t.exports=n},114517:function(t){var e,r;e=0,r=function(){"use strict";var t,e,r,n,o,i,a,u,s,c,f=Array.prototype.slice;function l(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function p(t){return y(t)?t:Q(t)}function h(t){return v(t)?t:tt(t)}function d(t){return m(t)?t:te(t)}function g(t){return y(t)&&!_(t)?t:tr(t)}function y(t){return!!(t&&t[S])}function v(t){return!!(t&&t[w])}function m(t){return!!(t&&t[x])}function _(t){return v(t)||m(t)}function b(t){return!!(t&&t[k])}l(h,p),l(d,p),l(g,p),p.isIterable=y,p.isKeyed=v,p.isIndexed=m,p.isAssociative=_,p.isOrdered=b,p.Keyed=h,p.Indexed=d,p.Set=g;var S="@@__IMMUTABLE_ITERABLE__@@",w="@@__IMMUTABLE_KEYED__@@",x="@@__IMMUTABLE_INDEXED__@@",k="@@__IMMUTABLE_ORDERED__@@",C="delete",E=32,O=31,D={},K={value:!1},M={value:!1};function A(t){return t.value=!1,t}function T(t){t&&(t.value=!0)}function B(){}function I(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=Array(r),o=0;o<r;o++)n[o]=t[o+e];return n}function R(t){return void 0===t.size&&(t.size=t.__iterate(F)),t.size}function L(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?R(t)+e:e}function F(){return!0}function P(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function N(t,e){return z(t,e,0)}function j(t,e){return z(t,e,e)}function z(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var U="function"==typeof Symbol&&Symbol.iterator,q="@@iterator",H=U||q;function W(t){this.next=t}function V(t,e,r,n){var o=0===t?e:1===t?r:[e,r];return n?n.value=o:n={value:o,done:!1},n}function J(){return{value:void 0,done:!0}}function G(t){return!!$(t)}function X(t){return t&&"function"==typeof t.next}function Y(t){var e=$(t);return e&&e.call(t)}function $(t){var e=t&&(U&&t[U]||t[q]);if("function"==typeof e)return e}function Z(t){return t&&"number"==typeof t.length}function Q(t){return null==t?tc():y(t)?t.toSeq():function(t){var e=tp(t)||"object"==typeof t&&new ti(t);if(!e)throw TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function tt(t){return null==t?tc().toKeyedSeq():y(t)?v(t)?t.toSeq():t.fromEntrySeq():tf(t)}function te(t){return null==t?tc():y(t)?v(t)?t.entrySeq():t.toIndexedSeq():tl(t)}function tr(t){return(null==t?tc():y(t)?v(t)?t.entrySeq():t:tl(t)).toSetSeq()}W.prototype.toString=function(){return"[Iterator]"},W.KEYS=0,W.VALUES=1,W.ENTRIES=2,W.prototype.inspect=W.prototype.toSource=function(){return this.toString()},W.prototype[H]=function(){return this},l(Q,p),Q.of=function(){return Q(arguments)},Q.prototype.toSeq=function(){return this},Q.prototype.toString=function(){return this.__toString("Seq {","}")},Q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Q.prototype.__iterate=function(t,e){return th(this,t,e,!0)},Q.prototype.__iterator=function(t,e){return td(this,t,e,!0)},l(tt,Q),tt.prototype.toKeyedSeq=function(){return this},l(te,Q),te.of=function(){return te(arguments)},te.prototype.toIndexedSeq=function(){return this},te.prototype.toString=function(){return this.__toString("Seq [","]")},te.prototype.__iterate=function(t,e){return th(this,t,e,!1)},te.prototype.__iterator=function(t,e){return td(this,t,e,!1)},l(tr,Q),tr.of=function(){return tr(arguments)},tr.prototype.toSetSeq=function(){return this},Q.isSeq=ts,Q.Keyed=tt,Q.Set=tr,Q.Indexed=te;var tn="@@__IMMUTABLE_SEQ__@@";function to(t){this._array=t,this.size=t.length}function ti(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function ta(t){this._iterable=t,this.size=t.length||t.size}function tu(t){this._iterator=t,this._iteratorCache=[]}function ts(t){return!!(t&&t[tn])}function tc(){return t||(t=new to([]))}function tf(t){var e=Array.isArray(t)?new to(t).fromEntrySeq():X(t)?new tu(t).fromEntrySeq():$(t)?new ta(t).fromEntrySeq():"object"==typeof t?new ti(t):void 0;if(!e)throw TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function tl(t){var e=tp(t);if(!e)throw TypeError("Expected Array or iterable object of values: "+t);return e}Q.prototype[tn]=!0,l(to,te),to.prototype.get=function(t,e){return this.has(t)?this._array[L(this,t)]:e},to.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,o=0;o<=n;o++)if(!1===t(r[e?n-o:o],o,this))return o+1;return o},to.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,o=0;return new W(function(){return o>n?J():V(t,o,r[e?n-o++:o++])})},l(ti,tt),ti.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},ti.prototype.has=function(t){return this._object.hasOwnProperty(t)},ti.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,o=n.length-1,i=0;i<=o;i++){var a=n[e?o-i:i];if(!1===t(r[a],a,this))return i+1}return i},ti.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,o=n.length-1,i=0;return new W(function(){var a=n[e?o-i:i];return i++>o?J():V(t,a,r[a])})},ti.prototype[k]=!0,l(ta,te),ta.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r,n=Y(this._iterable),o=0;if(X(n))for(;!(r=n.next()).done&&!1!==t(r.value,o++,this););return o},ta.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=Y(this._iterable);if(!X(r))return new W(J);var n=0;return new W(function(){var e=r.next();return e.done?e:V(t,n++,e.value)})},l(tu,te),tu.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r,n=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===t(o[i],i++,this))return i;for(;!(r=n.next()).done;){var a=r.value;if(o[i]=a,!1===t(a,i++,this))break}return i},tu.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,o=0;return new W(function(){if(o>=n.length){var e=r.next();if(e.done)return e;n[o]=e.value}return V(t,o,n[o++])})};function tp(t){return Z(t)?new to(t):X(t)?new tu(t):$(t)?new ta(t):void 0}function th(t,e,r,n){var o=t._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var u=o[r?i-a:a];if(!1===e(u[1],n?u[0]:a,t))return a+1}return a}return t.__iterateUncached(e,r)}function td(t,e,r,n){var o=t._cache;if(o){var i=o.length-1,a=0;return new W(function(){var t=o[r?i-a:a];return a++>i?J():V(e,n?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,r)}function tg(t,e){return e?function t(e,r,n,o){return Array.isArray(r)?e.call(o,n,te(r).map(function(n,o){return t(e,n,o,r)})):ty(r)?e.call(o,n,tt(r).map(function(n,o){return t(e,n,o,r)})):r}(e,t,"",{"":t}):function t(e){return Array.isArray(e)?te(e).map(t).toList():ty(e)?tt(e).map(t).toMap():e}(t)}function ty(t){return t&&(t.constructor===Object||void 0===t.constructor)}function tv(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),t===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!("function"==typeof t.equals&&"function"==typeof e.equals&&t.equals(e))||!1}function tm(t,e){if(t===e)return!0;if(!y(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||v(t)!==v(e)||m(t)!==m(e)||b(t)!==b(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!_(t);if(b(t)){var n=t.entries();return e.every(function(t,e){var o=n.next().value;return o&&tv(o[1],t)&&(r||tv(o[0],e))})&&n.next().done}var o=!1;if(void 0===t.size){if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var i=t;t=e,e=i}}var a=!0,u=e.__iterate(function(e,n){if(r?!t.has(e):o?!tv(e,t.get(n,D)):!tv(t.get(n,D),e))return a=!1,!1});return a&&t.size===u}function t_(t,r){if(!(this instanceof t_))return new t_(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(e)return e;e=this}}function tb(t,e){if(!t)throw Error(e)}function tS(t,e,n){if(!(this instanceof tS))return new tS(t,e,n);if(tb(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e<t&&(n=-n),this._start=t,this._end=e,this._step=n,this.size=Math.max(0,Math.ceil((e-t)/n-1)+1),0===this.size){if(r)return r;r=this}}function tw(){throw TypeError("Abstract")}function tx(){}function tk(){}function tC(){}l(t_,te),t_.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t_.prototype.get=function(t,e){return this.has(t)?this._value:e},t_.prototype.includes=function(t){return tv(this._value,t)},t_.prototype.slice=function(t,e){var r,n=this.size;return P(t,e,n)?this:new t_(this._value,z(e,r=n,r)-z(t,n,0))},t_.prototype.reverse=function(){return this},t_.prototype.indexOf=function(t){return tv(this._value,t)?0:-1},t_.prototype.lastIndexOf=function(t){return tv(this._value,t)?this.size:-1},t_.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},t_.prototype.__iterator=function(t,e){var r=this,n=0;return new W(function(){return n<r.size?V(t,n++,r._value):J()})},t_.prototype.equals=function(t){return t instanceof t_?tv(this._value,t._value):tm(t)},l(tS,te),tS.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},tS.prototype.get=function(t,e){return this.has(t)?this._start+L(this,t)*this._step:e},tS.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},tS.prototype.slice=function(t,e){var r;if(P(t,e,this.size))return this;return(t=z(t,this.size,0),(e=z(e,r=this.size,r))<=t)?new tS(0,0):new tS(this.get(t,this._end),this.get(e,this._end),this._step)},tS.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return -1},tS.prototype.lastIndexOf=function(t){return this.indexOf(t)},tS.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,o=e?this._start+r*n:this._start,i=0;i<=r;i++){if(!1===t(o,i,this))return i+1;o+=e?-n:n}return i},tS.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,o=e?this._start+r*n:this._start,i=0;return new W(function(){var a=o;return o+=e?-n:n,i>r?J():V(t,i++,a)})},tS.prototype.equals=function(t){return t instanceof tS?this._start===t._start&&this._end===t._end&&this._step===t._step:tm(this,t)},l(tw,p),l(tx,tw),l(tk,tw),l(tC,tw),tw.Keyed=tx,tw.Indexed=tk,tw.Set=tC;var tE="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function tO(t){return t>>>1&1073741824|3221225471&t}function tD(t){if(!1===t||null==t||"function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return tO(r)}if("string"===e)return t.length>tR?function(t){var e=tP[t];return void 0===e&&(e=tK(t),tF===tL&&(tF=0,tP={}),tF++,tP[t]=e),e}(t):tK(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(tT&&void 0!==(e=n.get(t))||void 0!==(e=t[tI])||!tA&&(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[tI])||void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t))))return e;if(e=++tB,1073741824&tB&&(tB=0),tT)n.set(t,e);else if(void 0!==tM&&!1===tM(t))throw Error("Non-extensible objects are not allowed as keys.");else if(tA)Object.defineProperty(t,tI,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[tI]=e;else if(void 0!==t.nodeType)t[tI]=e;else throw Error("Unable to set a non-enumerable property on object.");return e}(t);if("function"==typeof t.toString)return tK(t.toString());throw Error("Value type "+e+" cannot be hashed.")}function tK(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return tO(e)}var tM=Object.isExtensible,tA=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),tT="function"==typeof WeakMap;tT&&(n=new WeakMap);var tB=0,tI="__immutablehash__";"function"==typeof Symbol&&(tI=Symbol(tI));var tR=16,tL=255,tF=0,tP={};function tN(t){tb(t!==1/0,"Cannot perform this action with an infinite size.")}function tj(t){return null==t?tQ():tz(t)&&!b(t)?t:tQ().withMutations(function(e){var r=h(t);tN(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function tz(t){return!!(t&&t[tU])}l(tj,tx),tj.prototype.toString=function(){return this.__toString("Map {","}")},tj.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},tj.prototype.set=function(t,e){return t0(this,t,e)},tj.prototype.setIn=function(t,e){return this.updateIn(t,D,function(){return e})},tj.prototype.remove=function(t){return t0(this,t,D)},tj.prototype.deleteIn=function(t){return this.updateIn(t,function(){return D})},tj.prototype.update=function(t,e,r){return 1==arguments.length?t(this):this.updateIn([t],e,r)},tj.prototype.updateIn=function(t,e,r){!r&&(r=e,e=void 0);var n=function t(e,r,n,o){var i=e===D,a=r.next();if(a.done){var u=i?n:e,s=o(u);return s===u?e:s}tb(i||e&&e.set,"invalid keyPath");var c=a.value,f=i?D:e.get(c,D),l=t(f,r,n,o);return l===f?e:l===D?e.remove(c):(i?tQ():e).set(c,l)}(this,eW(t),e,r);return n===D?void 0:n},tj.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):tQ()},tj.prototype.merge=function(){return t3(this,void 0,arguments)},tj.prototype.mergeWith=function(t){var e=f.call(arguments,1);return t3(this,t,e)},tj.prototype.mergeIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tQ(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},tj.prototype.mergeDeep=function(){return t3(this,t5,arguments)},tj.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return t3(this,t4(t),e)},tj.prototype.mergeDeepIn=function(t){var e=f.call(arguments,1);return this.updateIn(t,tQ(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},tj.prototype.sort=function(t){return em(eI(this,t))},tj.prototype.sortBy=function(t,e){return em(eI(this,e,t))},tj.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},tj.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new B)},tj.prototype.asImmutable=function(){return this.__ensureOwner()},tj.prototype.wasAltered=function(){return this.__altered},tj.prototype.__iterator=function(t,e){return new tX(this,t,e)},tj.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},tj.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?tZ(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},tj.isMap=tz;var tU="@@__IMMUTABLE_MAP__@@",tq=tj.prototype;function tH(t,e){this.ownerID=t,this.entries=e}function tW(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function tV(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function tJ(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function tG(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function tX(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&t$(t._root)}function tY(t,e){return V(t,e[0],e[1])}function t$(t,e){return{node:t,index:0,__prev:e}}function tZ(t,e,r,n){var o=Object.create(tq);return o.size=t,o._root=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function tQ(){return o||(o=tZ(0))}function t0(t,e,r){if(t._root){var n,o,i=A(K),a=A(M);if(n=t1(t._root,t.__ownerID,0,void 0,e,r,i,a),!a.value)return t;o=t.size+(i.value?r===D?-1:1:0)}else{if(r===D)return t;o=1,n=new tH(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=o,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?tZ(o,n):tQ()}function t1(t,e,r,n,o,i,a,u){if(!t)return i===D?t:(T(u),T(a),new tG(e,n,[o,i]));return t.update(e,r,n,o,i,a,u)}function t9(t){return t.constructor===tG||t.constructor===tJ}function t2(t,e,r,n,o){if(t.keyHash===n)return new tJ(e,n,[t.entry,o]);var i,a=(0===r?t.keyHash:t.keyHash>>>r)&O,u=(0===r?n:n>>>r)&O,s=a===u?[t2(t,e,r+5,n,o)]:(i=new tG(e,n,o),a<u?[t,i]:[i,t]);return new tW(e,1<<a|1<<u,s)}tq[tU]=!0,tq[C]=tq.remove,tq.removeIn=tq.deleteIn,tH.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(tv(r,o[i][0]))return o[i][1];return n},tH.prototype.update=function(t,e,r,n,o,i,a){for(var u=o===D,s=this.entries,c=0,f=s.length;c<f&&!tv(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===o:u)return this;if(T(a),(u||!l)&&T(i),!u||1!==s.length){if(!l&&!u&&s.length>=et)return function(t,e,r,n){!t&&(t=new B);for(var o=new tG(t,tD(r),[r,n]),i=0;i<e.length;i++){var a=e[i];o=o.update(t,0,void 0,a[0],a[1])}return o}(t,s,n,o);var p=t&&t===this.ownerID,h=p?s:I(s);return(l?u?c===f-1?h.pop():h[c]=h.pop():h[c]=[n,o]:h.push([n,o]),p)?(this.entries=h,this):new tH(t,h)}},tW.prototype.get=function(t,e,r,n){void 0===e&&(e=tD(r));var o=1<<((0===t?e:e>>>t)&O),i=this.bitmap;return(i&o)==0?n:this.nodes[t6(i&o-1)].get(t+5,e,r,n)},tW.prototype.update=function(t,e,r,n,o,i,a){void 0===r&&(r=tD(n));var u=(0===e?r:r>>>e)&O,s=1<<u,c=this.bitmap,f=(c&s)!=0;if(!f&&o===D)return this;var l=t6(c&s-1),p=this.nodes,h=f?p[l]:void 0,d=t1(h,t,e+5,r,n,o,i,a);if(d===h)return this;if(!f&&d&&p.length>=ee)return function(t,e,r,n,o){for(var i=0,a=Array(E),u=0;0!==r;u++,r>>>=1)a[u]=1&r?e[i++]:void 0;return a[n]=o,new tV(t,i+1,a)}(t,p,c,u,d);if(f&&!d&&2===p.length&&t9(p[1^l]))return p[1^l];if(f&&d&&1===p.length&&t9(d))return d;var g=t&&t===this.ownerID,y=f?d?c:c^s:c|s,v=f?d?t8(p,l,d,g):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var o=Array(n),i=0,a=0;a<n;a++)a===e&&(i=1),o[a]=t[a+i];return o}(p,l,g):function(t,e,r,n){var o=t.length+1;if(n&&e+1===o)return t[e]=r,t;for(var i=Array(o),a=0,u=0;u<o;u++)u===e?(i[u]=r,a=-1):i[u]=t[u+a];return i}(p,l,d,g);return g?(this.bitmap=y,this.nodes=v,this):new tW(t,y,v)},tV.prototype.get=function(t,e,r,n){void 0===e&&(e=tD(r));var o=(0===t?e:e>>>t)&O,i=this.nodes[o];return i?i.get(t+5,e,r,n):n},tV.prototype.update=function(t,e,r,n,o,i,a){void 0===r&&(r=tD(n));var u=(0===e?r:r>>>e)&O,s=o===D,c=this.nodes,f=c[u];if(s&&!f)return this;var l=t1(f,t,e+5,r,n,o,i,a);if(l===f)return this;var p=this.count;if(f){if(!l&&--p<er)return function(t,e,r,n){for(var o=0,i=0,a=Array(r),u=0,s=1,c=e.length;u<c;u++,s<<=1){var f=e[u];void 0!==f&&u!==n&&(o|=s,a[i++]=f)}return new tW(t,o,a)}(t,c,p,u)}else p++;var h=t&&t===this.ownerID,d=t8(c,u,l,h);return h?(this.count=p,this.nodes=d,this):new tV(t,p,d)},tJ.prototype.get=function(t,e,r,n){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(tv(r,o[i][0]))return o[i][1];return n},tJ.prototype.update=function(t,e,r,n,o,i,a){void 0===r&&(r=tD(n));var u=o===D;if(r!==this.keyHash)return u?this:(T(a),T(i),t2(this,t,e,r,[n,o]));for(var s=this.entries,c=0,f=s.length;c<f&&!tv(n,s[c][0]);c++);var l=c<f;if(l?s[c][1]===o:u)return this;if(T(a),(u||!l)&&T(i),u&&2===f)return new tG(t,this.keyHash,s[1^c]);var p=t&&t===this.ownerID,h=p?s:I(s);return(l?u?c===f-1?h.pop():h[c]=h.pop():h[c]=[n,o]:h.push([n,o]),p)?(this.entries=h,this):new tJ(t,this.keyHash,h)},tG.prototype.get=function(t,e,r,n){return tv(r,this.entry[0])?this.entry[1]:n},tG.prototype.update=function(t,e,r,n,o,i,a){var u=o===D,s=tv(n,this.entry[0]);if(s?o===this.entry[1]:u)return this;if(T(a),u){T(i);return}if(s)return t&&t===this.ownerID?(this.entry[1]=o,this):new tG(t,this.keyHash,[n,o]);return T(i),t2(this,t,e,tD(n),[n,o])},tH.prototype.iterate=tJ.prototype.iterate=function(t,e){for(var r=this.entries,n=0,o=r.length-1;n<=o;n++)if(!1===t(r[e?o-n:n]))return!1},tW.prototype.iterate=tV.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,o=r.length-1;n<=o;n++){var i=r[e?o-n:n];if(i&&!1===i.iterate(t,e))return!1}},tG.prototype.iterate=function(t,e){return t(this.entry)},l(tX,W),tX.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,o=e.index++;if(n.entry){if(0===o)return tY(t,n.entry)}else if(n.entries){if(o<=(r=n.entries.length-1))return tY(t,n.entries[this._reverse?r-o:o])}else if(o<=(r=n.nodes.length-1)){var i=n.nodes[this._reverse?r-o:o];if(i){if(i.entry)return tY(t,i.entry);e=this._stack=t$(i,e)}continue}e=this._stack=this._stack.__prev}return J()};function t3(t,e,r){for(var n=[],o=0;o<r.length;o++){var i=r[o],a=h(i);!y(i)&&(a=a.map(function(t){return tg(t)})),n.push(a)}return t7(t,e,n)}function t5(t,e,r){return t&&t.mergeDeep&&y(e)?t.mergeDeep(e):tv(t,e)?t:e}function t4(t){return function(e,r,n){if(e&&e.mergeDeepWith&&y(r))return e.mergeDeepWith(t,r);var o=t(e,r,n);return tv(e,o)?e:o}}function t7(t,e,r){return 0===(r=r.filter(function(t){return 0!==t.size})).length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,D,function(t){return t===D?r:e(t,r,n)})}:function(e,r){t.set(r,e)},o=0;o<r.length;o++)r[o].forEach(n)}):t.constructor(r[0])}function t6(t){return t-=t>>1&1431655765,t=(t=(858993459&t)+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function t8(t,e,r,n){var o=n?t:I(t);return o[e]=r,o}var et=E/4,ee=E/2,er=E/4;function en(t){var e=el();if(null==t)return e;if(eo(t))return t;var r=d(t),n=r.size;return 0===n?e:(tN(n),n>0&&n<E)?ef(0,n,5,null,new eu(r.toArray())):e.withMutations(function(t){t.setSize(n),r.forEach(function(e,r){return t.set(r,e)})})}function eo(t){return!!(t&&t[ei])}l(en,tk),en.of=function(){return this(arguments)},en.prototype.toString=function(){return this.__toString("List [","]")},en.prototype.get=function(t,e){if((t=L(this,t))>=0&&t<this.size){var r=ed(this,t+=this._origin);return r&&r.array[t&O]}return e},en.prototype.set=function(t,e){return function(t,e,r){if((e=L(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?eg(t,e).set(0,r):eg(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,o=t._root,i=A(M);return(e>=ev(t._capacity)?n=ep(n,t.__ownerID,0,e,r,i):o=ep(o,t.__ownerID,t._level,e,r,i),i.value)?t.__ownerID?(t._root=o,t._tail=n,t.__hash=void 0,t.__altered=!0,t):ef(t._origin,t._capacity,t._level,o,n):t}(this,t,e)},en.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},en.prototype.insert=function(t,e){return this.splice(t,0,e)},en.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):el()},en.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){eg(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},en.prototype.pop=function(){return eg(this,0,-1)},en.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){eg(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},en.prototype.shift=function(){return eg(this,1)},en.prototype.merge=function(){return ey(this,void 0,arguments)},en.prototype.mergeWith=function(t){var e=f.call(arguments,1);return ey(this,t,e)},en.prototype.mergeDeep=function(){return ey(this,t5,arguments)},en.prototype.mergeDeepWith=function(t){var e=f.call(arguments,1);return ey(this,t4(t),e)},en.prototype.setSize=function(t){return eg(this,0,t)},en.prototype.slice=function(t,e){var r,n=this.size;if(P(t,e,n))return this;return eg(this,z(t,n,0),z(e,r=n,r))},en.prototype.__iterator=function(t,e){var r=0,n=ec(this,e);return new W(function(){var e=n();return e===es?J():V(t,r++,e)})},en.prototype.__iterate=function(t,e){for(var r,n=0,o=ec(this,e);(r=o())!==es&&!1!==t(r,n++,this););return n},en.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ef(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},en.isList=eo;var ei="@@__IMMUTABLE_LIST__@@",ea=en.prototype;function eu(t,e){this.array=t,this.ownerID=e}ea[ei]=!0,ea[C]=ea.remove,ea.setIn=tq.setIn,ea.deleteIn=ea.removeIn=tq.removeIn,ea.update=tq.update,ea.updateIn=tq.updateIn,ea.mergeIn=tq.mergeIn,ea.mergeDeepIn=tq.mergeDeepIn,ea.withMutations=tq.withMutations,ea.asMutable=tq.asMutable,ea.asImmutable=tq.asImmutable,ea.wasAltered=tq.wasAltered,eu.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n,o=r>>>e&O;if(o>=this.array.length)return new eu([],t);var i=0===o;if(e>0){var a=this.array[o];if((n=a&&a.removeBefore(t,e-5,r))===a&&i)return this}if(i&&!n)return this;var u=eh(this,t);if(!i)for(var s=0;s<o;s++)u.array[s]=void 0;return n&&(u.array[o]=n),u},eu.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,o=r-1>>>e&O;if(o>=this.array.length)return this;if(e>0){var i=this.array[o];if((n=i&&i.removeAfter(t,e-5,r))===i&&o===this.array.length-1)return this}var a=eh(this,t);return a.array.splice(o+1),n&&(a.array[o]=n),a};var es={};function ec(t,e){var r=t._origin,n=t._capacity,o=ev(n),i=t._tail;return a(t._root,t._level,0);function a(t,u,s){return 0===u?function(t,a){var u=a===o?i&&i.array:t&&t.array,s=a>r?0:r-a,c=n-a;return c>E&&(c=E),function(){if(s===c)return es;var t=e?--c:s++;return u&&u[t]}}(t,s):function(t,o,i){var u,s=t&&t.array,c=i>r?0:r-i>>o,f=(n-i>>o)+1;return f>E&&(f=E),function(){for(;;){if(u){var t=u();if(t!==es)return t;u=null}if(c===f)return es;var r=e?--f:c++;u=a(s&&s[r],o-5,i+(r<<o))}}}(t,u,s)}}function ef(t,e,r,n,o,i,a){var u=Object.create(ea);return u.size=e-t,u._origin=t,u._capacity=e,u._level=r,u._root=n,u._tail=o,u.__ownerID=i,u.__hash=a,u.__altered=!1,u}function el(){return i||(i=ef(0,0,5))}function ep(t,e,r,n,o,i){var a,u=n>>>r&O,s=t&&u<t.array.length;if(!s&&void 0===o)return t;if(r>0){var c=t&&t.array[u],f=ep(c,e,r-5,n,o,i);return f===c?t:((a=eh(t,e)).array[u]=f,a)}return s&&t.array[u]===o?t:(T(i),a=eh(t,e),void 0===o&&u===a.array.length-1?a.array.pop():a.array[u]=o,a)}function eh(t,e){return e&&t&&e===t.ownerID?t:new eu(t?t.array.slice():[],e)}function ed(t,e){if(e>=ev(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&O],n-=5;return r}}function eg(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new B,o=t._origin,i=t._capacity,a=o+e,u=void 0===r?i:r<0?i+r:o+r;if(a===o&&u===i)return t;if(a>=u)return t.clear();for(var s=t._level,c=t._root,f=0;a+f<0;)c=new eu(c&&c.array.length?[void 0,c]:[],n),s+=5,f+=1<<s;f&&(a+=f,o+=f,u+=f,i+=f);for(var l=ev(i),p=ev(u);p>=1<<s+5;)c=new eu(c&&c.array.length?[c]:[],n),s+=5;var h=t._tail,d=p<l?ed(t,u-1):p>l?new eu([],n):h;if(h&&p>l&&a<i&&h.array.length){for(var g=c=eh(c,n),y=s;y>5;y-=5){var v=l>>>y&O;g=g.array[v]=eh(g.array[v],n)}g.array[l>>>5&O]=h}if(u<i&&(d=d&&d.removeAfter(n,0,u)),a>=p)a-=p,u-=p,s=5,c=null,d=d&&d.removeBefore(n,0,a);else if(a>o||p<l){for(f=0;c;){var m=a>>>s&O;if(m!==p>>>s&O)break;m&&(f+=(1<<s)*m),s-=5,c=c.array[m]}c&&a>o&&(c=c.removeBefore(n,s,a-f)),c&&p<l&&(c=c.removeAfter(n,s,p-f)),f&&(a-=f,u-=f)}return t.__ownerID?(t.size=u-a,t._origin=a,t._capacity=u,t._level=s,t._root=c,t._tail=d,t.__hash=void 0,t.__altered=!0,t):ef(a,u,s,c,d)}function ey(t,e,r){for(var n=[],o=0,i=0;i<r.length;i++){var a=r[i],u=d(a);u.size>o&&(o=u.size),!y(a)&&(u=u.map(function(t){return tg(t)})),n.push(u)}return o>t.size&&(t=t.setSize(o)),t7(t,e,n)}function ev(t){return t<E?0:t-1>>>5<<5}function em(t){return null==t?eS():e_(t)?t:eS().withMutations(function(e){var r=h(t);tN(r.size),r.forEach(function(t,r){return e.set(r,t)})})}function e_(t){return tz(t)&&b(t)}function eb(t,e,r,n){var o=Object.create(em.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=r,o.__hash=n,o}function eS(){return a||(a=eb(tQ(),el()))}function ew(t,e,r){var n,o,i=t._map,a=t._list,u=i.get(e),s=void 0!==u;if(r===D){if(!s)return t;a.size>=E&&a.size>=2*i.size?(n=(o=a.filter(function(t,e){return void 0!==t&&u!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=o.__ownerID=t.__ownerID)):(n=i.remove(e),o=u===a.size-1?a.pop():a.set(u,void 0))}else if(s){if(r===a.get(u)[1])return t;n=i,o=a.set(u,[e,r])}else n=i.set(e,a.size),o=a.set(a.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=o,t.__hash=void 0,t):eb(n,o)}function ex(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ek(t){this._iter=t,this.size=t.size}function eC(t){this._iter=t,this.size=t.size}function eE(t){this._iter=t,this.size=t.size}function eO(t){var e=eU(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=eq,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new W(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,r)},e}function eD(t,e,r){var n=eU(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,o){var i=t.get(n,D);return i===D?o:e.call(r,i,n,t)},n.__iterateUncached=function(n,o){var i=this;return t.__iterate(function(t,o,a){return!1!==n(e.call(r,t,o,a),o,i)},o)},n.__iteratorUncached=function(n,o){var i=t.__iterator(2,o);return new W(function(){var o=i.next();if(o.done)return o;var a=o.value,u=a[0];return V(n,u,e.call(r,a[1],u,t),o)})},n}function eK(t,e){var r=eU(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=eO(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=eq,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function eM(t,e,r,n){var o=eU(t);return n&&(o.has=function(n){var o=t.get(n,D);return o!==D&&!!e.call(r,o,n,t)},o.get=function(n,o){var i=t.get(n,D);return i!==D&&e.call(r,i,n,t)?i:o}),o.__iterateUncached=function(o,i){var a=this,u=0;return t.__iterate(function(t,i,s){if(e.call(r,t,i,s))return u++,o(t,n?i:u-1,a)},i),u},o.__iteratorUncached=function(o,i){var a=t.__iterator(2,i),u=0;return new W(function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],f=s[1];if(e.call(r,f,c,t))return V(o,n?c:u++,f,i)}})},o}l(em,tj),em.of=function(){return this(arguments)},em.prototype.toString=function(){return this.__toString("OrderedMap {","}")},em.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},em.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):eS()},em.prototype.set=function(t,e){return ew(this,t,e)},em.prototype.remove=function(t){return ew(this,t,D)},em.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},em.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},em.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},em.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?eb(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},em.isOrderedMap=e_,em.prototype[k]=!0,em.prototype[C]=em.prototype.remove,l(ex,tt),ex.prototype.get=function(t,e){return this._iter.get(t,e)},ex.prototype.has=function(t){return this._iter.has(t)},ex.prototype.valueSeq=function(){return this._iter.valueSeq()},ex.prototype.reverse=function(){var t=this,e=eK(this,!0);return!this._useKeys&&(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ex.prototype.map=function(t,e){var r=this,n=eD(this,t,e);return!this._useKeys&&(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ex.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?ej(this):0,function(o){return t(o,e?--r:r++,n)}),e)},ex.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(1,e),n=e?ej(this):0;return new W(function(){var o=r.next();return o.done?o:V(t,e?--n:n++,o.value,o)})},ex.prototype[k]=!0,l(ek,te),ek.prototype.includes=function(t){return this._iter.includes(t)},ek.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ek.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e),n=0;return new W(function(){var e=r.next();return e.done?e:V(t,n++,e.value,e)})},l(eC,tr),eC.prototype.has=function(t){return this._iter.includes(t)},eC.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},eC.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new W(function(){var e=r.next();return e.done?e:V(t,e.value,e.value,e)})},l(eE,tt),eE.prototype.entrySeq=function(){return this._iter.toSeq()},eE.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){eN(e);var n=y(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},eE.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new W(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){eN(n);var o=y(n);return V(t,o?n.get(0):n[0],o?n.get(1):n[1],e)}}})},ek.prototype.cacheResult=ex.prototype.cacheResult=eC.prototype.cacheResult=eE.prototype.cacheResult=eq;function eA(t,e,r,n){var o,i,a=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),P(e,r,a))return t;var u=z(e,a,0);var s=z(r,o=a,o);if(u!=u||s!=s)return eA(t.toSeq().cacheResult(),e,r,n);var c=s-u;c==c&&(i=c<0?0:c);var f=eU(t);return f.size=0===i?i:t.size&&i||void 0,!n&&ts(t)&&i>=0&&(f.get=function(e,r){return(e=L(this,e))>=0&&e<i?t.get(e+u,r):r}),f.__iterateUncached=function(e,r){var o=this;if(0===i)return 0;if(r)return this.cacheResult().__iterate(e,r);var a=0,s=!0,c=0;return t.__iterate(function(t,r){if(!(s&&(s=a++<u)))return c++,!1!==e(t,n?r:c-1,o)&&c!==i}),c},f.__iteratorUncached=function(e,r){if(0!==i&&r)return this.cacheResult().__iterator(e,r);var o=0!==i&&t.__iterator(e,r),a=0,s=0;return new W(function(){for(;a++<u;)o.next();if(++s>i)return J();var t=o.next();return n||1===e?t:0===e?V(e,s-1,void 0,t):V(e,s-1,t.value[1],t)})},f}function eT(t,e,r,n){var o=eU(t);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var u=!0,s=0;return t.__iterate(function(t,i,c){if(!(u&&(u=e.call(r,t,i,c))))return s++,o(t,n?i:s-1,a)}),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var u=t.__iterator(2,i),s=!0,c=0;return new W(function(){var t,i,f;do{if((t=u.next()).done){if(n||1===o)return t;if(0===o)return V(o,c++,void 0,t);else return V(o,c++,t.value[1],t)}var l=t.value;i=l[0],f=l[1],s&&(s=e.call(r,f,i,a))}while(s);return 2===o?t:V(o,i,f,t)})},o}function eB(t,e,r){var n=eU(t);return n.__iterateUncached=function(n,o){var i=0,a=!1;return!function t(u,s){var c=this;u.__iterate(function(o,u){return(!e||s<e)&&y(o)?t(o,s+1):!1===n(o,r?u:i++,c)&&(a=!0),!a},o)}(t,0),i},n.__iteratorUncached=function(n,o){var i=t.__iterator(n,o),a=[],u=0;return new W(function(){for(;i;){var t=i.next();if(!1!==t.done){i=a.pop();continue}var s=t.value;if(2===n&&(s=s[1]),!((!e||a.length<e)&&y(s)))return r?t:V(n,u++,s,t);a.push(i),i=s.__iterator(n,o)}return J()})},n}function eI(t,e,r){!e&&(e=eH);var n=v(t),o=0,i=t.toSeq().map(function(e,n){return[n,e,o++,r?r(e,n,t):e]}).toArray();return i.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){i[e].length=2}:function(t,e){i[e]=t[1]}),n?tt(i):m(t)?te(i):tr(i)}function eR(t,e,r){if(!e&&(e=eH),!r)return t.reduce(function(t,r){return eL(e,t,r)?r:t});var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return eL(e,t[1],r[1])?r:t});return n&&n[0]}function eL(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function eF(t,e,r){var n=eU(t);return n.size=new to(r).map(function(t){return t.size}).min(),n.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),o=0;!(r=n.next()).done&&!1!==t(r.value,o++,this););return o},n.__iteratorUncached=function(t,n){var o=r.map(function(t){return t=p(t),Y(n?t.reverse():t)}),i=0,a=!1;return new W(function(){var r;return(!a&&(a=(r=o.map(function(t){return t.next()})).some(function(t){return t.done})),a)?J():V(t,i++,e.apply(null,r.map(function(t){return t.value})))})},n}function eP(t,e){return ts(t)?e:t.constructor(e)}function eN(t){if(t!==Object(t))throw TypeError("Expected [K, V] tuple: "+t)}function ej(t){return tN(t.size),R(t)}function ez(t){return v(t)?h:m(t)?d:g}function eU(t){return Object.create((v(t)?tt:m(t)?te:tr).prototype)}function eq(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Q.prototype.cacheResult.call(this)}function eH(t,e){return t>e?1:t<e?-1:0}function eW(t){var e=Y(t);if(!e){if(!Z(t))throw TypeError("Expected iterable or array-like: "+t);e=Y(p(t))}return e}function eV(t,e){var r,n=function(i){if(i instanceof n)return i;if(!(this instanceof n))return new n(i);if(!r){r=!0;var a=Object.keys(t);(function(t,e){try{e.forEach(eY.bind(void 0,t))}catch(t){}})(o,a),o.size=a.length,o._name=e,o._keys=a,o._defaultValues=t}this._map=tj(i)},o=n.prototype=Object.create(eJ);return o.constructor=n,n}l(eV,tx),eV.prototype.toString=function(){return this.__toString(eX(this)+" {","}")},eV.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},eV.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},eV.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=eG(this,tQ()))},eV.prototype.set=function(t,e){if(!this.has(t))throw Error('Cannot set unknown key "'+t+'" on '+eX(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:eG(this,r)},eV.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:eG(this,e)},eV.prototype.wasAltered=function(){return this._map.wasAltered()},eV.prototype.__iterator=function(t,e){var r=this;return h(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},eV.prototype.__iterate=function(t,e){var r=this;return h(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},eV.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?eG(this,e,t):(this.__ownerID=t,this._map=e,this)};var eJ=eV.prototype;function eG(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function eX(t){return t._name||t.constructor.name||"Record"}eJ[C]=eJ.remove,eJ.deleteIn=eJ.removeIn=tq.removeIn,eJ.merge=tq.merge,eJ.mergeWith=tq.mergeWith,eJ.mergeIn=tq.mergeIn,eJ.mergeDeep=tq.mergeDeep,eJ.mergeDeepWith=tq.mergeDeepWith,eJ.mergeDeepIn=tq.mergeDeepIn,eJ.setIn=tq.setIn,eJ.update=tq.update,eJ.updateIn=tq.updateIn,eJ.withMutations=tq.withMutations,eJ.asMutable=tq.asMutable,eJ.asImmutable=tq.asImmutable;function eY(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){tb(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function e$(t){return null==t?e2():eZ(t)&&!b(t)?t:e2().withMutations(function(e){var r=g(t);tN(r.size),r.forEach(function(t){return e.add(t)})})}function eZ(t){return!!(t&&t[eQ])}l(e$,tC),e$.of=function(){return this(arguments)},e$.fromKeys=function(t){return this(h(t).keySeq())},e$.prototype.toString=function(){return this.__toString("Set {","}")},e$.prototype.has=function(t){return this._map.has(t)},e$.prototype.add=function(t){return e1(this,this._map.set(t,!0))},e$.prototype.remove=function(t){return e1(this,this._map.remove(t))},e$.prototype.clear=function(){return e1(this,this._map.clear())},e$.prototype.union=function(){var t=f.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)g(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},e$.prototype.intersect=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return g(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){!t.every(function(t){return t.includes(e)})&&r.remove(e)})})},e$.prototype.subtract=function(){var t=f.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return g(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},e$.prototype.merge=function(){return this.union.apply(this,arguments)},e$.prototype.mergeWith=function(t){var e=f.call(arguments,1);return this.union.apply(this,e)},e$.prototype.sort=function(t){return e3(eI(this,t))},e$.prototype.sortBy=function(t,e){return e3(eI(this,e,t))},e$.prototype.wasAltered=function(){return this._map.wasAltered()},e$.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},e$.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},e$.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},e$.isSet=eZ;var eQ="@@__IMMUTABLE_SET__@@",e0=e$.prototype;function e1(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function e9(t,e){var r=Object.create(e0);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e2(){return u||(u=e9(tQ()))}function e3(t){return null==t?e6():e5(t)?t:e6().withMutations(function(e){var r=g(t);tN(r.size),r.forEach(function(t){return e.add(t)})})}function e5(t){return eZ(t)&&b(t)}e0[eQ]=!0,e0[C]=e0.remove,e0.mergeDeep=e0.merge,e0.mergeDeepWith=e0.mergeWith,e0.withMutations=tq.withMutations,e0.asMutable=tq.asMutable,e0.asImmutable=tq.asImmutable,e0.__empty=e2,e0.__make=e9,l(e3,e$),e3.of=function(){return this(arguments)},e3.fromKeys=function(t){return this(h(t).keySeq())},e3.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e3.isOrderedSet=e5;var e4=e3.prototype;function e7(t,e){var r=Object.create(e4);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function e6(){return s||(s=e7(eS()))}function e8(t){return null==t?ro():rt(t)?t:ro().unshiftAll(t)}function rt(t){return!!(t&&t[re])}e4[k]=!0,e4.__empty=e6,e4.__make=e7,l(e8,tk),e8.of=function(){return this(arguments)},e8.prototype.toString=function(){return this.__toString("Stack [","]")},e8.prototype.get=function(t,e){var r=this._head;for(t=L(this,t);r&&t--;)r=r.next;return r?r.value:e},e8.prototype.peek=function(){return this._head&&this._head.value},e8.prototype.push=function(){if(0==arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):rn(t,e)},e8.prototype.pushAll=function(t){if(0===(t=d(t)).size)return this;tN(t.size);var e=this.size,r=this._head;return(t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID)?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):rn(e,r)},e8.prototype.pop=function(){return this.slice(1)},e8.prototype.unshift=function(){return this.push.apply(this,arguments)},e8.prototype.unshiftAll=function(t){return this.pushAll(t)},e8.prototype.shift=function(){return this.pop.apply(this,arguments)},e8.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):ro()},e8.prototype.slice=function(t,e){if(P(t,e,this.size))return this;var r,n=z(t,this.size,0);if(z(e,r=this.size,r)!==this.size)return tk.prototype.slice.call(this,t,e);for(var o=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):rn(o,i)},e8.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?rn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},e8.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);){;n=n.next}return r},e8.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new W(function(){if(n){var e=n.value;return n=n.next,V(t,r++,e)}return J()})},e8.isStack=rt;var re="@@__IMMUTABLE_STACK__@@",rr=e8.prototype;function rn(t,e,r,n){var o=Object.create(rr);return o.size=t,o._head=e,o.__ownerID=r,o.__hash=n,o.__altered=!1,o}function ro(){return c||(c=rn(0))}function ri(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}rr[re]=!0,rr.withMutations=tq.withMutations,rr.asMutable=tq.asMutable,rr.asImmutable=tq.asImmutable,rr.wasAltered=tq.wasAltered,p.Iterator=W,ri(p,{toArray:function(){tN(this.size);var t=Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ek(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new ex(this,!0)},toMap:function(){return tj(this.toKeyedSeq())},toObject:function(){tN(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return em(this.toKeyedSeq())},toOrderedSet:function(){return e3(v(this)?this.valueSeq():this)},toSet:function(){return e$(v(this)?this.valueSeq():this)},toSetSeq:function(){return new eC(this)},toSeq:function(){return m(this)?this.toIndexedSeq():v(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return e8(v(this)?this.valueSeq():this)},toList:function(){return en(v(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var t=f.call(arguments,0);return eP(this,function(t,e){var r=v(t),n=[t].concat(e).map(function(t){return y(t)?r&&(t=h(t)):t=r?tf(t):tl(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var o=n[0];if(o===t||r&&v(o)||m(t)&&m(o))return o}var i=new to(n);return r?i=i.toKeyedSeq():!m(t)&&(i=i.toSetSeq()),(i=i.flatten(!0)).size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),i}(this,t))},includes:function(t){return this.some(function(e){return tv(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){tN(this.size);var r=!0;return this.__iterate(function(n,o,i){if(!t.call(e,n,o,i))return r=!1,!1}),r},filter:function(t,e){return eP(this,eM(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,o,i){if(t.call(e,n,o,i))return r=[o,n],!1}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return tN(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){tN(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return eP(this,eD(this,t,e))},reduce:function(t,e,r){var n,o;return tN(this.size),arguments.length<2?o=!0:n=e,this.__iterate(function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return eP(this,eK(this,!0))},slice:function(t,e){return eP(this,eA(this,t,e,!0))},some:function(t,e){return!this.every(rf(t),e)},sort:function(t){return eP(this,eI(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return R(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){var r,n,o,i;return r=this,n=t,o=e,i=tj().asMutable(),r.__iterate(function(t,e){i.update(n.call(o,t,e,r),0,function(t){return t+1})}),i.asImmutable()},equals:function(t){return tm(this,t)},entrySeq:function(){var t=this;if(t._cache)return new to(t._cache);var e=t.toSeq().map(rc).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(rf(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(F)},flatMap:function(t,e){var r,n,o,i;return eP(this,(r=this,n=t,o=e,i=ez(r),r.toSeq().map(function(t,e){return i(n.call(o,t,e,r))}).flatten(!0)))},flatten:function(t){return eP(this,eB(this,t,!0))},fromEntrySeq:function(){return new eE(this)},get:function(t,e){return this.find(function(e,r){return tv(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,o=eW(t);!(r=o.next()).done;){var i=r.value;if((n=n&&n.get?n.get(i,D):D)===D)return e}return n},groupBy:function(t,e){return function(t,e,r){var n=v(t),o=(b(t)?em():tj()).asMutable();t.__iterate(function(i,a){o.update(e.call(r,i,a,t),function(t){return(t=t||[]).push(n?[a,i]:i),t})});var i=ez(t);return o.map(function(e){return eP(t,i(e))})}(this,t,e)},has:function(t){return this.get(t,D)!==D},hasIn:function(t){return this.getIn(t,D)!==D},isSubset:function(t){return t="function"==typeof t.includes?t:p(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:p(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(rs).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return eR(this,t)},maxBy:function(t,e){return eR(this,e,t)},min:function(t){return eR(this,t?rl(t):rd)},minBy:function(t,e){return eR(this,e?rl(e):rd,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return eP(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return eP(this,eT(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(rf(t),e)},sortBy:function(t,e){return eP(this,eI(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return eP(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){var r,n,o,i;return eP(this,(r=this,n=t,o=e,(i=eU(r)).__iterateUncached=function(t,e){var i=this;if(e)return this.cacheResult().__iterate(t,e);var a=0;return r.__iterate(function(e,r,u){return n.call(o,e,r,u)&&++a&&t(e,r,i)}),a},i.__iteratorUncached=function(t,e){var i=this;if(e)return this.cacheResult().__iterator(t,e);var a=r.__iterator(2,e),u=!0;return new W(function(){if(!u)return J();var e=a.next();if(e.done)return e;var r=e.value,s=r[0],c=r[1];return n.call(o,c,s,i)?2===t?e:V(t,s,c,e):(u=!1,J())})},i))},takeUntil:function(t,e){return this.takeWhile(rf(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=b(t),r=v(t),n=e?1:0;return function(t,e){return e=tE(e,3432918353),e=tE(e<<15|e>>>-15,461845907),e=((e=tE(e<<13|e>>>-13,5))+3864292196|0)^t,e=tE(e^e>>>16,2246822507),e=tO((e=tE(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+rg(tD(t),tD(e))|0}:function(t,e){n=n+rg(tD(t),tD(e))|0}:e?function(t){n=31*n+tD(t)|0}:function(t){n=n+tD(t)|0}),n)}(this))}});var ra=p.prototype;ra[S]=!0,ra[H]=ra.values,ra.__toJS=ra.toArray,ra.__toStringMapper=rp,ra.inspect=ra.toSource=function(){return this.toString()},ra.chain=ra.flatMap,ra.contains=ra.includes,!function(){try{Object.defineProperty(ra,"length",{get:function(){if(!p.noLengthWarning){var t;try{throw Error()}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return this.size}}})}catch(t){}}(),ri(h,{flip:function(){return eP(this,eO(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return tv(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return tv(e,t)})},mapEntries:function(t,e){var r=this,n=0;return eP(this,this.toSeq().map(function(o,i){return t.call(e,[i,o],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return eP(this,this.toSeq().flip().map(function(n,o){return t.call(e,n,o,r)}).flip())}});var ru=h.prototype;function rs(t,e){return e}function rc(t,e){return[e,t]}function rf(t){return function(){return!t.apply(this,arguments)}}function rl(t){return function(){return-t.apply(this,arguments)}}function rp(t){return"string"==typeof t?JSON.stringify(t):t}function rh(){return I(arguments)}function rd(t,e){return t<e?1:t>e?-1:0}ru[w]=!0,ru[H]=ra.entries,ru.__toJS=ra.toObject,ru.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+rp(t)},ri(d,{toKeyedSeq:function(){return new ex(this,!1)},filter:function(t,e){return eP(this,eM(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return eP(this,eK(this,!1))},slice:function(t,e){return eP(this,eA(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=z(t,t<0?this.count():this.size,0);var n=this.slice(0,t);return eP(this,1===r?n:n.concat(I(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return eP(this,eB(this,t,!1))},get:function(t,e){return(t=L(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=L(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){var e,r,n;return eP(this,(e=this,r=t,(n=eU(e)).size=e.size&&2*e.size-1,n.__iterateUncached=function(t,n){var o=this,i=0;return e.__iterate(function(e,n){return(!i||!1!==t(r,i++,o))&&!1!==t(e,i++,o)},n),i},n.__iteratorUncached=function(t,n){var o,i=e.__iterator(1,n),a=0;return new W(function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?V(t,a++,r):V(t,a++,o.value,o)})},n))},interleave:function(){var t=[this].concat(I(arguments)),e=eF(this.toSeq(),te.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),eP(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return eP(this,eT(this,t,e,!1))},zip:function(){var t=[this].concat(I(arguments));return eP(this,eF(this,rh,t))},zipWith:function(t){var e=I(arguments);return e[0]=this,eP(this,eF(this,t,e))}}),d.prototype[x]=!0,d.prototype[k]=!0,ri(g,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),g.prototype.has=ra.includes,ri(tt,h.prototype),ri(te,d.prototype),ri(tr,g.prototype),ri(tx,h.prototype),ri(tk,d.prototype),ri(tC,g.prototype);function rg(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return{Iterable:p,Seq:Q,Collection:tw,Map:tj,OrderedMap:em,List:en,Stack:e8,Set:e$,OrderedSet:e3,Record:eV,Range:tS,Repeat:t_,is:tv,fromJS:tg}},t.exports=r()},431170:function(t,e,r){"use strict";r.d(e,{D:function(){return l}});var n=r("101199"),o=r("890710"),i=r("688960"),a=r("664550"),u=r.n(a),s=function(t){return t.reduce(function(t,e){var r=e[0],n=e[1];return t[r]=n,t},{})},c="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,f=[],l=function(t,e,r){void 0===r&&(r={});var a=n.useRef(null),l={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||f},p=n.useState({styles:{popper:{position:l.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),h=p[0],d=p[1],g=n.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(t){var e=t.state,r=Object.keys(e.elements);o.flushSync(function(){d({styles:s(r.map(function(t){return[t,e.styles[t]||{}]})),attributes:s(r.map(function(t){return[t,e.attributes[t]]}))})})},requires:["computeStyles"]}},[]),y=n.useMemo(function(){var t={onFirstUpdate:l.onFirstUpdate,placement:l.placement,strategy:l.strategy,modifiers:[].concat(l.modifiers,[g,{name:"applyStyles",enabled:!1}])};return u()(a.current,t)?a.current||t:(a.current=t,t)},[l.onFirstUpdate,l.placement,l.strategy,l.modifiers,g]),v=n.useRef();return c(function(){v.current&&v.current.setOptions(y)},[y]),c(function(){if(null!=t&&null!=e){var n=(r.createPopper||i.fi)(t,e,y);return v.current=n,function(){n.destroy(),v.current=null}}},[t,e,r.createPopper]),{state:v.current?v.current.state:null,styles:h.styles,attributes:h.attributes,update:v.current?v.current.update:null,forceUpdate:v.current?v.current.forceUpdate:null}}},258409:function(t,e,r){var n=r(777296);!function(t,e){"use strict";if(!t.setImmediate){var r,o,i,a,u,s=1,c={},f=!1,l=t.document;var p=Object.getPrototypeOf&&Object.getPrototypeOf(t);if(p=p&&p.setTimeout?p:t,"[object process]"===({}).toString.call(t.process))u=function(t){n.nextTick(function(){d(t)})};else if(function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()){;r="setImmediate$"+Math.random()+"$",o=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))},t.addEventListener?t.addEventListener("message",o,!1):t.attachEvent("onmessage",o),u=function(e){t.postMessage(r+e,"*")}}else if(t.MessageChannel){;(i=new MessageChannel).port1.onmessage=function(t){d(t.data)},u=function(t){i.port2.postMessage(t)}}else if(l&&"onreadystatechange"in l.createElement("script")){;a=l.documentElement,u=function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,a.removeChild(e),e=null},a.appendChild(e)}}else u=function(t){setTimeout(d,0,t)};p.setImmediate=function(t){"function"!=typeof t&&(t=Function(""+t));for(var e=Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return c[s]=n,u(s),s++},p.clearImmediate=h}function h(t){delete c[t]}function d(t){if(f)setTimeout(d,0,t);else{var r=c[t];if(r){f=!0;try{!function(t){var r=t.callback,n=t.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(e,n)}}(r)}finally{h(t),f=!1}}}}}("undefined"==typeof self?"undefined"==typeof window?this:window:self)}}]);