(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=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;r0&&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=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=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;n0&&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;e1||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();o0&&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;e0&&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;ek;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;e0){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;u0)return" "+t}else if(e3&&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;e0)))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;)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;e0?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 n0?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()=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();i1&&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(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=o1&&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;e0}),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=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=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;c6&&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):!!(oi){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=h&&(d={start:t,end:e})}),"object"!=typeof d&&i(!1),d),v=y.start,m=y.end;ve;)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;uh(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;e0},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-Za-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)return""}else if(e<0){for(o=n;e<0&&00&&i=|~>|~|>|)?\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;re)?1:t1?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-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;a1)for(var n=1;n>>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=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),e1?" 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=0&&rr?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>>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=et)return function(t,e,r,n){!t&&(t=new B);for(var o=new tG(t,tD(r),[r,n]),i=0;i>>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<=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>>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>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=0&&t=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>>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>>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<>>r&O,s=t&&u0){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<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<=1<l?new eu([],n):h;if(h&&p>l&&a5;y-=5){var v=l>>>y&O;g=g.array[v]=eh(g.array[v],n)}g.array[l>>>5&O]=h}if(u=p)a-=p,u-=p,s=5,c=null,d=d&&d.removeBefore(n,0,a);else if(a>o||p>>s&O;if(m!==p>>>s&O)break;m&&(f+=(1<o&&(c=c.removeBefore(n,s,a-f)),c&&po&&(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>>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&&ei)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||s0}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=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 te?-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>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