text: define("comments2/l10n",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCommentsStrings=function(e){return{intl:e}}})),(function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("immutable"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("draft-js",["immutable","react","react-dom"],t):"object"==typeof exports?exports.Draft=t(require("immutable"),require("react"),require("react-dom")):e.Draft=t(e.Immutable,e.React,e.ReactDOM)})(this,(function(e,t,n){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)})([function(e,t,n){"use strict";var r=n(64),o=n(17),i=n(5),a=n(65),s=n(12),c=n(25),l=n(26),u=n(39),p=n(67),d=n(40),f=n(22),m=n(4),g=n(41),h=n(3),v=n(27),y=n(44),_=n(15),b=n(86),C={Editor:p,EditorBlock:d,EditorState:h,CompositeDecorator:a,Entity:f,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:i,ContentBlock:s,ContentState:c,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:m,RichUtils:y,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:u,convertFromHTML:n(45),convertFromRaw:n(87),convertToRaw:b,genKey:n(10),getDefaultKeyBinding:n(46),getVisibleSelectionRect:n(110)};e.exports=C},function(e,t,n){"use strict";var r=function(e){};r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")},e.exports=function(e,t,n,o,i,a,s,c){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,o,i,a,s,c],p=0;(l=new Error(t.replace(/%s/g,(function(){return u[p++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=n(38),i=n(25),a=n(81),s=n(2),c=n(15),l=s.OrderedSet,u=s.Record,p=s.Stack,d=u({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()}),f=(function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._immutable=t}return e.createEmpty=function(t){return e.createWithContent(i.createFromText(""),t)},e.createWithContent=function(t,n){var r=t.getBlockMap().first().getKey();return e.create({currentContent:t,undoStack:p(),redoStack:p(),decorator:n||null,selection:c.createEmpty(r)})},e.create=function(t){var n=t.currentContent,o=t.decorator,i=r({},t,{treeMap:g(n,o),directionMap:a.getDirectionMap(n)});return new e(new d(i))},e.set=function(t,n){return new e(t.getImmutable().withMutations((function(e){var r=e.get("decorator"),i=r;null===n.decorator?i=null:n.decorator&&(i=n.decorator);var a=n.currentContent||t.getCurrentContent();if(i!==r){var s,c=e.get("treeMap");return s=i&&r?(function(e,t,n,r,i){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==i.getDecorations(t,e)})).map((function(t){return o.generate(e,t,r)})))})(a,a.getBlockMap(),c,i,r):g(a,i),void e.merge({decorator:i,treeMap:s,nativelyRenderedContent:null})}a!==t.getCurrentContent()&&e.set("treeMap",(function(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),a=i.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==a.get(t)})).map((function(e){return o.generate(i,e,r)})))})(t,a.getBlockMap(),a.getEntityMap(),i)),e.merge(n)})))},e.prototype.toJS=function(){return this.getImmutable().toJS()},e.prototype.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.prototype.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.prototype.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.prototype.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.prototype.getSelection=function(){return this.getImmutable().get("selection")},e.prototype.getDecorator=function(){return this.getImmutable().get("decorator")},e.prototype.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.prototype.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.prototype.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.prototype.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.prototype.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},e.setInlineStyleOverride=function(t,n){return e.set(t,{inlineStyleOverride:n})},e.prototype.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?(function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return h(e,n)})(t,n):(function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return h(e,n)})(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return m(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),m(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new c({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,i=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=t.getSelection(),c=t.getCurrentContent(),l=t.getUndoStack(),u=n;s!==c.getSelectionAfter()||(function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t})(t,r)?(l=l.push(c),u=u.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",c.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(d=null);var f={currentContent:u,directionMap:i,undoStack:l,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:d};return e.set(t,f)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:n.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 n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),i=a.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:i,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e})();function m(e,t,n){return f.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function h(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}e.exports=f},function(e,t,n){"use strict";var r=n(5),o=n(66),i=n(11),a=n(2),s=n(85),c=n(106),l=n(24),u=n(111),p=n(112),d=n(1),f=n(123),m=n(59),g=n(125),h=n(127),v=a.OrderedSet,y={replaceText:function(e,t,n,o,i){var a=m(e,t),s=g(a,t),c=r.create({style:o||v(),entity:i||null});return p(s,s.getSelectionAfter(),n,c)},insertText:function(e,t,n,r,o){return t.isCollapsed()||d(!1,"Target range must be collapsed for `insertText`."),y.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=l(e,t),o=y.removeRange(e,t,"backward");return y.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=m(e,t),o=g(r,t);return u(o,o.getSelectionAfter(),n)},removeRange:function(e,t,n){var r,o,a=void 0,s=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),s=e.getBlockForKey(o);var l=t.getStartOffset(),u=t.getEndOffset(),p=a.getEntityAt(l),d=s.getEntityAt(u-1);if(r===o&&p&&p===d){var f=c(e.getEntityMap(),a,s,t,n);return g(e,f)}var h=t;i.draft_segmented_entities_behavior&&(h=c(e.getEntityMap(),a,s,t,n));var v=m(e,h);return g(v,h)},splitBlock:function(e,t){var n=m(e,t),r=g(n,t);return h(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return f(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=m(e,t);return s(r,t,n)}};e.exports=y},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(2),a=i.Map,s=i.OrderedSet,c=i.Record,l=s(),u={style:l,entity:null},p=(function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.getStyle=function(){return this.get("style")},t.prototype.getEntity=function(){return this.get("entity")},t.prototype.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return d;var n=a({style:l,entity:null}).merge(e),r=f.get(n);if(r)return r;var o=new t(n);return f=f.set(n,o),o},t})(c(u)),d=new p,f=a([[a(u),d]]);p.EMPTY=d,e.exports=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(5),a=n(2),s=n(18),c=a.List,l=a.Map,u=a.OrderedSet,p=a.Record,d=a.Repeat,f=u(),m={parent:null,characterList:c(),data:l(),depth:0,key:"",text:"",type:"unstyled",children:c(),prevSibling:null,nextSibling:null},g=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},v=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=c(d(i.EMPTY,n.length))),e},y=(function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;return r(this,t),o(this,e.call(this,v(n)))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){s(this.getCharacterList(),g,e,t)},t.prototype.findEntityRanges=function(e,t){s(this.getCharacterList(),h,e,t)},t})(p(m));e.exports=y},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}})()?Object.assign:function(e,t){for(var a,s,c=i(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))r.call(a,u)&&(c[u]=a[u]);if(n){s=n(a);for(var p=0;p<s.length;p++)o.call(a,s[p])&&(c[s[p]]=a[s[p]])}}return c}},function(e,t){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";var r=n(133),o=n(134),i=n(147),a=n(148);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return!!t&&(i=r?r(i):i,o.contains(i,t))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=i(l,a)},function(e,t){"use strict";var n={},r=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||n.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*r).toString(32);return n[e]=!0,e}},function(e,t,n){"use strict";var r=n(77);e.exports=r},function(e,t,n){"use strict";var r=n(5),o=n(2),i=n(18),a=o.List,s=o.Map,c=o.OrderedSet,l=o.Record,u=o.Repeat,p=c(),d=l({key:"",type:"unstyled",text:"",characterList:a(),depth:0,data:s()}),f=(function(e){function t(n){return(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t),(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this,(function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=a(u(r.EMPTY,n.length))),e})(n)))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){i(this.getCharacterList(),m,e,t)},t.prototype.findEntityRanges=function(e,t){i(this.getCharacterList(),g,e,t)},t})(d);function m(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=f},function(e,t,n){"use strict";var r=n(1),o=/[\uD800-\uDFFF]/;function i(e){return 55296<=e&&e<=57343}function a(e){return o.test(e)}function s(e,t){return 1+i(e.charCodeAt(t))}function c(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!a(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=s(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=s(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=s(e,i);return e.substring(o,i)}var l={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=s(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:s,hasSurrogateUnit:a,isCodeUnitInSurrogateRange:i,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||r(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length),t+1===e.length)return!1;var n=e.charCodeAt(t),o=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=o&&o<=57343},strlen:function(e){if(!a(e))return e.length;for(var t=0,n=0;n<e.length;n+=s(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return c(e,t=t<n?t:n,r)},substr:c};e.exports=l},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=(function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset();return t<=this.getEndOffset()&&i<=n}if(e!==r&&e!==o)return!1;var a=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=a&&n>=a},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t})((0,n(2).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=i},function(e,t){"use strict";function n(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(n).join(" "):Array.prototype.map.call(arguments,n).join(" ")}},function(e,t,n){"use strict";var r=n(2).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},function(e,t){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}}},function(e,t){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n){var o=e.getSelection(),i=e.getCurrentContent(),a=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i}else if(e.isSelectionAtStartOfContent())return i;if((a=t(e))===o)return i}return r.removeRange(i,a,n)}},function(e,t){e.exports=n},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(41),i=n(2),a=n(1),s=(0,i.Map)(),c=0;function l(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var u={getLastCreatedEntityKey:function(){return l("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),u.__getLastCreatedEntityKey()},create:function(e,t,n){return l("DraftEntity.create","contentState.createEntity"),u.__create(e,t,n)},add:function(e){return l("DraftEntity.add","contentState.addEntity"),u.__add(e)},get:function(e){return l("DraftEntity.get","contentState.getEntity"),u.__get(e)},mergeData:function(e,t){return l("DraftEntity.mergeData","contentState.mergeEntityData"),u.__mergeData(e,t)},replaceData:function(e,t){return l("DraftEntity.replaceData","contentState.replaceEntityData"),u.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return""+c},__create:function(e,t,n){return u.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){var t=""+ ++c;return s=s.set(t,e),t},__get:function(e){var t=s.get(e);return t||a(!1,"Unknown DraftEntity key: %s.",e),t},__mergeData:function(e,t){var n=u.__get(e),o=r({},n.getData(),t),i=n.set("data",o);return s=s.set(e,i),i},__replaceData:function(e,t){var n=u.__get(e).set("data",t);return s=s.set(e,n),n}};e.exports=u},function(e,t){"use strict";var n={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-"),n=t[0],r=t[1],o=t[2];return{blockKey:n,decoratorKey:parseInt(r,10),leafKey:parseInt(o,10)}}};e.exports=n},function(e,t,n){"use strict";var r=n(58),o=n(59);e.exports=function(e,t){var n=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=o(e,t).getBlockMap(),l=c.keySeq(),u=l.indexOf(n),p=l.indexOf(a)+1;return r(c.slice(u,p).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===a?e.merge({text:r.slice(i,s),characterList:o.slice(i,s)}):t===n?e.merge({text:r.slice(i),characterList:o.slice(i)}):t===a?e.merge({text:r.slice(0,s),characterList:o.slice(0,s)}):e})))}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(17),a=n(5),s=n(12),c=n(6),l=n(22),u=n(11),p=n(2),d=n(15),f=n(10),m=n(31),g=p.List,h=p.Record,v=p.Repeat,y=u.draft_tree_data_support?c:s,_=(function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.getEntityMap=function(){return l},t.prototype.getBlockMap=function(){return this.get("blockMap")},t.prototype.getSelectionBefore=function(){return this.get("selectionBefore")},t.prototype.getSelectionAfter=function(){return this.get("selectionAfter")},t.prototype.getBlockForKey=function(e){return this.getBlockMap().get(e)},t.prototype.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},t.prototype.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},t.prototype.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},t.prototype.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},t.prototype.getBlocksAsArray=function(){return this.getBlockMap().toArray()},t.prototype.getFirstBlock=function(){return this.getBlockMap().first()},t.prototype.getLastBlock=function(){return this.getBlockMap().last()},t.prototype.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},t.prototype.getLastCreatedEntityKey=function(){return l.__getLastCreatedEntityKey()},t.prototype.hasText=function(){var e=this.getBlockMap();return e.size>1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,n){return l.__create(e,t,n),this},t.prototype.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},t.prototype.addEntity=function(e){return l.__add(e),this},t.prototype.getEntity=function(e){return l.__get(e)},t.createFromBlockArray=function(e,n){var r=Array.isArray(e)?e:e.contentBlocks,o=i.createFromArray(r),a=o.isEmpty()?new d:d.createEmpty(o.first().getKey());return new t({blockMap:o,entityMap:n||l,selectionBefore:a,selectionAfter:a})},t.createFromText=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(n),o=r.map((function(e){return e=m(e),new y({key:f(),text:e,type:"unstyled",characterList:g(v(a.EMPTY,e.length))})}));return t.createFromBlockArray(o)},t})(h({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=_},function(e,t,n){"use strict";var r=n(2).Map,o=n(14),i=n(16),a=r({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:o.createElement("ul",{className:i("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:o.createElement("ol",{className:i("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:o.createElement("pre",{className:i("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=a},function(e,t,n){"use strict";var r=n(9).isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return r&&e.altKey},hasCommandModifier:function(e){return r?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)}};e.exports=o},function(e,t,n){"use strict";var r=n(52);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t){"use strict";function n(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var r;if(t.isCollapsed()){var o=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(r=e.getBlockForKey(o).getEntityAt(i-1))!==e.getBlockForKey(o).getEntityAt(i)?null:n(e.getEntityMap(),r):null}var a=t.getStartKey(),s=t.getStartOffset(),c=e.getBlockForKey(a);return r=s===c.getLength()?null:c.getEntityAt(s),n(e.getEntityMap(),r)}},function(e,t){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(e,t){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t){"use strict";e.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}},function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(140),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},function(e,t,n){"use strict";var r=n(1),o=null;function i(e){return"LTR"===e||"RTL"===e}function a(e){return i(e)||r(!1,"`dir` must be a strong direction to be converted to HTML Direction"),"LTR"===e?"ltr":"rtl"}function s(e){o=e}var c={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:i,getHTMLDir:a,getHTMLDirIfDifferent:function(e,t){return i(e)||r(!1,"`dir` must be a strong direction to be converted to HTML Direction"),i(t)||r(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"),e===t?null:a(e)},setGlobalDir:s,initGlobalDir:function(){s("LTR")},getGlobalDir:function(){return o||this.initGlobalDir(),o||r(!1,"Global direction not set."),o}};e.exports=c},function(e,t,n){"use strict";var r=n(145);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=n(137),o=n(141);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),i=e===t?e.ownerDocument.documentElement:e,a=e.scrollWidth-i.clientWidth,s=e.scrollHeight-i.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(e,t,n){"use strict";var r=n(2),o=n(36),i=n(18),a=r.List,s=r.Repeat,c=r.Record,l=o.thatReturnsTrue,u=c({start:null,end:null}),p=c({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,n){var r=t.getLength();if(!r)return a.of(new p({start:0,end:0,decoratorKey:null,leaves:a.of(new u({start:0,end:0}))}));var o=[],c=n?n.getDecorations(t,e):a(s(null,r)),d=t.getCharacterList();return i(c,m,l,(function(e,t){o.push(new p({start:e,end:t,decoratorKey:c.get(e),leaves:f(d.slice(e,t).toList(),e)}))})),a(o)},getFingerprint:function(e){return e.map((function(e){var t=e.get("decoratorKey");return(null!==t?t+"."+(e.get("end")-e.get("start")):"")+"."+e.get("leaves").size})).join("-")}};function f(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return i(r,m,l,(function(e,r){n.push(new u({start:e+t,end:r+t}))})),a(n)}function m(e,t){return e===t}e.exports=d},function(e,t){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=n(73),s=n(23),c=n(14),l=n(21),u=n(61),p=n(33),d=n(62),f=n(34),m=n(16),g=n(138),h=n(37),v=n(142),y=n(1),_=n(8),b=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},C=(function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||b(e.selection,e.block.getKey())&&e.forceSelection},t.prototype.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=l.findDOMNode(this),r=p.getScrollParent(n),o=h(r),i=void 0;if(r===window){var a=g(n);(i=a.y+a.height-v().height)>0&&window.scrollTo(o.x,o.y+i+10)}else{n instanceof HTMLElement||y(!1,"blockNode is not an HTMLElement"),(i=n.offsetHeight+n.offsetTop-(r.offsetHeight+o.y))>0&&u.setTop(r,u.getTop(r)+i+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),o=t.getText(),i=this.props.tree.size-1,l=b(this.props.selection,n);return this.props.tree.map((function(u,p){var m=u.get("leaves"),g=m.size-1,h=m.map((function(r,u){var d=s.encode(n,p,u),f=r.get("start"),m=r.get("end");return c.createElement(a,{key:d,offsetKey:d,block:t,start:f,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:o.slice(f,m),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:p===i&&u===g})})).toArray(),v=u.get("decoratorKey");if(null==v)return h;if(!e.props.decorator)return h;var y=_(e.props.decorator),b=y.getComponentForKey(v);if(!b)return h;var C=y.getPropsForKey(v),S=s.encode(n,p,0),E=o.slice(m.first().get("start"),m.last().get("end")),w=f.getHTMLDirIfDifferent(d.getDirection(E),e.props.direction);return c.createElement(b,r({},C,{contentState:e.props.contentState,decoratedText:E,dir:w,key:S,entityKey:t.getEntityAt(u.get("start")),offsetKey:S}),h)})).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=m({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return c.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t})(c.Component);e.exports=C},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=(function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.getType=function(){return this.get("type")},t.prototype.getMutability=function(){return this.get("mutability")},t.prototype.getData=function(){return this.get("data")},t})((0,n(2).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));e.exports=i},function(e,t,n){"use strict";var r="\\s|(?![_])"+n(130).getPunctuation(),o=new RegExp("^(?:"+r+")*(?:['‘’]|(?!"+r+").)*(?:(?!"+r+").)"),i=new RegExp("(?:(?!"+r+").)(?:['‘’]|(?!"+r+").)*(?:"+r+")*$");function a(e,t){var n=t?i.exec(e):o.exec(e);return n?n[0]:e}var s={getBackward:function(e){return a(e,!0)},getForward:function(e){return a(e,!1)}};e.exports=s},function(e,t){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,n){"use strict";var r=n(4),o=n(3),i=(n(15),n(83)),a=n(8),s={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return s.toggleInlineStyle(e,"BOLD");case"italic":return s.toggleInlineStyle(e,"ITALIC");case"underline":return s.toggleInlineStyle(e,"UNDERLINE");case"code":return s.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),i=n.getBlockBefore(r);if(i&&"atomic"===i.getType()){var a=n.getBlockMap().delete(i.getKey()),c=n.merge({blockMap:a,selectionAfter:t});if(c!==n)return o.push(e,c,"remove-range")}var l=s.tryToRemoveBlockStyle(e);return l?o.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),i=t.getStartKey(),a=n.getBlockForKey(i).getLength();if(t.getStartOffset()<a)return null;var s=n.getBlockAfter(i);if(!s||"atomic"!==s.getType())return null;var c=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),l=r.removeRange(n,c,"forward");return l!==n?o.push(e,l,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),a=r.getAnchorKey();if(a!==r.getFocusKey())return t;var s=t.getCurrentContent(),c=s.getBlockForKey(a),l=c.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;e.preventDefault();var u=s.getBlockBefore(a);if(!u)return t;var p=u.getType();if("unordered-list-item"!==p&&"ordered-list-item"!==p)return t;var d=c.getDepth();if(!e.shiftKey&&d===n)return t;n=Math.min(u.getDepth()+1,n);var f=i(s,r,e.shiftKey?-1:1,n);return o.push(t,f,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),i=n.getStartKey(),s=n.getEndKey(),c=e.getCurrentContent(),l=n;if(i!==s&&0===n.getEndOffset()){var u=a(c.getBlockBefore(s));s=u.getKey(),l=l.merge({anchorKey:i,anchorOffset:n.getStartOffset(),focusKey:s,focusOffset:u.getLength(),isBackward:!1})}if(c.getBlockMap().skipWhile((function(e,t){return t!==i})).reverse().skipWhile((function(e,t){return t!==s})).some((function(e){return"atomic"===e.getType()})))return e;var p=c.getBlockForKey(i).getType()===t?"unstyled":t;return o.push(e,r.setBlockType(c,l,p),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?s.toggleBlockType(e,"code-block"):s.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),i=e.getCurrentInlineStyle();if(n.isCollapsed())return o.setInlineStyleOverride(e,i.has(t)?i.remove(t):i.add(t));var a,s=e.getCurrentContent();return a=i.has(t)?r.removeInlineStyle(s,n,t):r.applyInlineStyle(s,n,t),o.push(e,a,"change-inline-style")},toggleLink:function(e,t,n){var i=r.applyEntity(e.getCurrentContent(),t,n);return o.push(e,i,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var o=t.getAnchorKey(),i=e.getCurrentContent(),a=i.getBlockForKey(o),s=i.getFirstBlock();if(a.getLength()>0&&a!==s)return null;var c=a.getType(),l=i.getBlockBefore(o);if("code-block"===c&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==c)return r.setBlockType(i,t,"unstyled")}return null}};e.exports=s},function(e,t,n){"use strict";var r,o=i||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(7);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(5),c=n(12),l=n(6),u=n(26),p=n(22),d=n(11),f=n(2),m=n(2).Set,g=n(131),h=n(16),v=n(10),y=n(51),_=n(1),b=n(31),C=d.draft_tree_data_support,S=f.List,E=f.OrderedSet,w=new RegExp("\r","g"),x=new RegExp("\n","g"),k=new RegExp("&nbsp;","g"),T=new RegExp("&#13;?","g"),M=new RegExp("&#8203;?","g"),O=["bold","bolder","500","600","700","800","900"],L=["light","lighter","100","200","300","400"],D={b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE"},P=(a(r={},h("public/DraftStyleDefault/depth0"),0),a(r,h("public/DraftStyleDefault/depth1"),1),a(r,h("public/DraftStyleDefault/depth2"),2),a(r,h("public/DraftStyleDefault/depth3"),3),a(r,h("public/DraftStyleDefault/depth4"),4),r),N=["className","href","rel","target","title"],R=["alt","className","height","src","width"],A=void 0,F={text:"",inlines:[],entities:[],blocks:[]},I={children:S(),depth:0,key:"",type:""},B=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null},K=function(e,t,n){var r=n.filter((function(t){return t.element===e||t.wrapper===e||t.aliasedElements&&t.aliasedElements.some((function(t){return t===e}))})).keySeq().toSet().toArray().sort();switch(r.length){case 0:return"unstyled";case 1:return r[0];default:return(function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r](e,t);if(o)return o}return null})(e,t,[B])||"unstyled"}},H=function(e,t,n){var r=e.text.slice(-1),o=t.text.slice(0,1);if("\r"!==r||"\r"!==o||n||(e.text=e.text.slice(0,-1),e.inlines.pop(),e.entities.pop(),e.blocks.pop()),"\r"===r){if(" "===t.text||"\n"===t.text)return e;" "!==o&&"\n"!==o||(t.text=t.text.slice(1),t.inlines.shift(),t.entities.shift())}return{text:e.text+t.text,inlines:e.inlines.concat(t.inlines),entities:e.entities.concat(t.entities),blocks:e.blocks.concat(t.blocks)}},U=function(e){e instanceof HTMLAnchorElement||_(!1,"Link must be an HTMLAnchorElement.");var t=e.protocol;return"http:"===t||"https:"===t||"mailto:"===t},j=function(e){var t=new Array(1);return e&&(t[0]=e),o({},F,{text:" ",inlines:[E()],entities:t})},V=function(){return o({},F,{text:"\n",inlines:[E()],entities:new Array(1)})},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o({},I,e)},q=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[E()],entities:new Array(1),blocks:[W({parent:n,key:v(),type:e,depth:Math.max(0,Math.min(4,t))})]}},Z=function e(t,n,r,i,a,s,c,l,u,d){var f=A,m=n.nodeName.toLowerCase(),h=t,v="unstyled",y=!1,_=a&&K(a,i,l),b=o({},F),S=void 0;if("#text"===m){var E=n.textContent,w=E.trim();if(i&&""===w&&n.parentElement){var k=n.parentElement.nodeName.toLowerCase();if("ol"===k||"ul"===k)return{chunk:o({},F),entityMap:t}}return""===w&&"pre"!==a?{chunk:j(u),entityMap:t}:("pre"!==a&&(E=E.replace(x," ")),A=m,{chunk:{text:E,inlines:Array(E.length).fill(r),entities:Array(E.length).fill(u),blocks:[]},entityMap:t})}if(A=m,"br"===m)return"br"!==f||a&&"unstyled"!==_?{chunk:V(),entityMap:t}:{chunk:q("unstyled",c,d),entityMap:t};if("img"===m&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value){var T=n,M={};R.forEach((function(e){var t=T.getAttribute(e);t&&(M[e]=t)})),n.textContent="📷",u=p.__create("IMAGE","MUTABLE",M||{})}r=(function(e,t,n){var r=D[e];if(r)n=n.add(r).toOrderedSet();else if(t instanceof HTMLElement){var o=t;n=n.withMutations((function(e){var t=o.style.fontWeight,n=o.style.fontStyle,r=o.style.textDecoration;O.indexOf(t)>=0?e.add("BOLD"):L.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===r&&e.add("UNDERLINE"),"line-through"===r&&e.add("STRIKETHROUGH"),"none"===r&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})).toOrderedSet()}return n})(m,n,r),"ul"!==m&&"ol"!==m||(i&&(c+=1),i=m),!C&&"li"===m&&n instanceof HTMLElement&&(c=(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(P).some((function(n){e.classList.contains(n)&&(t=P[n])})),t})(n,c));var I=K(m,i,l),B=i&&"li"===a&&"li"===m,W=(!a||C)&&-1!==s.indexOf(m);(B||W)&&(S=(b=q(I,c,d)).blocks[0].key,a=m,y=!C),B&&(v="ul"===i?"unordered-list-item":"ordered-list-item");var Z=n.firstChild;null!=Z&&(m=Z.nodeName.toLowerCase());for(var G=null;Z;){Z instanceof HTMLAnchorElement&&Z.href&&U(Z)?(function(){var e=Z,t={};N.forEach((function(n){var r=e.getAttribute(n);r&&(t[n]=r)})),t.url=new g(e.href).toString(),G=p.__create("LINK","MUTABLE",t||{})})():G=void 0;var z=e(h,Z,r,i,a,s,c,l,G||u,C?S:null),X=z.chunk;h=z.entityMap,b=H(b,X,C);var Q=Z.nextSibling;!d&&Q&&s.indexOf(m)>=0&&a&&(b=H(b,V())),Q&&(m=Q.nodeName.toLowerCase()),Z=Q}return y&&(b=H(b,q(v,c,d))),{chunk:b,entityMap:h}},G=function(e,t,n,r){e=e.trim().replace(w,"").replace(k," ").replace(T,"").replace(M,"");var i=(function(e){var t=e.get("unstyled").element,n=m([]);return e.forEach((function(e){e.aliasedElements&&e.aliasedElements.forEach((function(e){n=n.add(e)})),n=n.add(e.element)})),n.filter((function(e){return e&&e!==t})).toArray().sort()})(n),a=t(e);if(!a)return null;A=null;var s=(function(e,t){return t.some((function(t){return-1!==e.indexOf("<"+t)}))})(e,i)?i:["div"],c=Z(r,a,E(),"ul",null,s,-1,n),l=c.chunk,u=c.entityMap;return 0===l.text.indexOf("\r")&&(l={text:l.text.slice(1),inlines:l.inlines.slice(1),entities:l.entities.slice(1),blocks:l.blocks}),"\r"===l.text.slice(-1)&&(l.text=l.text.slice(0,-1),l.inlines=l.inlines.slice(0,-1),l.entities=l.entities.slice(0,-1),l.blocks.pop()),0===l.blocks.length&&l.blocks.push(o({},F,{type:"unstyled",depth:0})),l.text.split("\r").length===l.blocks.length+1&&l.blocks.unshift({type:"unstyled",depth:0}),{chunk:l,entityMap:u}},z=function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,n=e.blocks,r=e.inlines,o=e.entities,i=C?l:c;return e.text.split("\r").reduce((function(e,a,c){a=b(a);var u=n[c],p=t+a.length,d=r.slice(t,p),f=o.slice(t,p),m=S(d.map((function(e,t){var n={style:e,entity:null};return f[t]&&(n.entity=f[t]),s.create(n)})));t=p+1;var g=u.depth,h=u.type,y=u.parent,_=u.key||v(),C=null;if(y){var E=e.cacheRef[y],w=e.contentBlocks[E];if(w.getChildKeys().isEmpty()&&w.getText()){var x=w.getCharacterList(),k=w.getText();C=v();var T=new l({key:C,text:k,characterList:x,parent:y,nextSibling:_});e.contentBlocks.push(T),w=w.withMutations((function(e){e.set("characterList",S()).set("text","").set("children",w.children.push(T.getKey()))}))}e.contentBlocks[E]=w.set("children",w.children.push(_))}var M=new i({key:_,parent:y,type:h,depth:g,text:a,characterList:m,prevSibling:C||(0===c||n[c-1].parent!==y?null:n[c-1].key),nextSibling:c===n.length-1||n[c+1].parent!==y?null:n[c+1].key});return e.contentBlocks.push(M),e.cacheRef[M.key]=c,e}),{cacheRef:{},contentBlocks:[]}).contentBlocks};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=G(e,t,n,p);if(null==r)return null;var o=r.chunk,i=r.entityMap,a=z(o);return{contentBlocks:a,entityMap:i}}},function(e,t,n){"use strict";var r=n(27),o=n(32),i=n(9),a=i.isPlatform("Mac OS X"),s=i.isPlatform("Windows"),c=a&&i.isBrowser("Firefox < 29"),l=r.hasCommandModifier,u=r.isCtrlKeyCommand;function p(e){return a&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!s&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return a&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return a&&u(e)?"backspace-word":null;case 89:return u(e)?s?"redo":"secondary-paste":null;case 90:return(function(e){return l(e)?e.shiftKey?"redo":"undo":null})(e)||null;case o.RETURN:return"split-block";case o.DELETE:return(function(e){return s&&e.shiftKey?null:p(e)?"delete-word":"delete"})(e);case o.BACKSPACE:return(function(e){return l(e)&&a?"backspace-to-start-of-line":p(e)?"backspace-word":"backspace"})(e);case o.LEFT:return c&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return c&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r=n(28),o=n(52),i=n(54),a=n(1),s=n(8);function c(e,t,n){var i=t,c=r(i);if(null!=c||e&&(e===i||e.firstChild===i)||a(!1,"Unknown node in selection range."),e===i&&((i=i.firstChild)instanceof Element&&"true"===i.getAttribute("data-contents")||a(!1,"Invalid DraftEditorContents structure."),n>0&&(n=i.childNodes.length)),0===n){var u=null;if(null!=c)u=c;else{var p=(function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e})(i);u=s(o(p))}return{key:u,offset:0}}var d=i.childNodes[n-1],f=null,m=null;if(o(d)){var g=(function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e})(d);f=s(o(g)),m=l(g)}else f=s(c),m=l(d);return{key:f,offset:m}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,a,l){var u=n.nodeType===Node.TEXT_NODE,p=a.nodeType===Node.TEXT_NODE;if(u&&p)return{selectionState:i(e,s(r(n)),o,s(r(a)),l),needsRecovery:!1};var d=null,f=null,m=!0;return u?(d={key:s(r(n)),offset:o},f=c(t,a,l)):p?(f={key:s(r(a)),offset:l},d=c(t,n,o)):(d=c(t,n,o),f=c(t,a,l),n===a&&o===l&&(m=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:i(e,d.key,d.offset,f.key,f.offset),needsRecovery:m}}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){if(!(e instanceof r))return null;var n=e.getNextSiblingKey();if(n)return n;var o=e.getParentKey();if(!o)return null;for(var i=t.get(o);i&&!i.getNextSiblingKey();){var a=i.getParentKey();i=a?t.get(a):null}return i?i.getNextSiblingKey():null}},function(e,t,n){"use strict";var r=n(9),o=n(1);var i=r.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var a,s=Array.from(t.getClientRects());if(n.push(s),i)return n.reverse(),(a=[]).concat.apply(a,n);t.setEndBefore(r)}o(!1,"Found an unexpected detached subtree when getting range client rects.")}:function(e){return Array.from(e.getClientRects())};e.exports=i},function(e,t,n){"use strict";var r=n(9),o=n(1),i=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!i&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1,"Missing doc.documentElement"),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t){"use strict";e.exports=function e(t){if(t instanceof Element){var n=t.getAttribute("data-offset-key");if(n)return n;for(var r=0;r<t.childNodes.length;r++){var o=e(t.childNodes[r]);if(o)return o}}return null}},function(e,t,n){(function(t){"use strict";var r=n(1),o=/\.textClipping$/,i={"text/plain":!0,"text/html":!0,"text/rtf":!0};e.exports=function(e,n){var a=0,s=[];e.forEach((function(c){(function(e,n){if(!t.FileReader||e.type&&!(e.type in i))return void n("");if(""===e.type){var a="";return o.test(e.name)&&(a=e.name.replace(o,"")),void n(a)}var s=new FileReader;s.onload=function(){var e=s.result;"string"!=typeof e&&r(!1,'We should be calling "FileReader.readAsText" which returns a string'),n(e)},s.onerror=function(){n("")},s.readAsText(e)})(c,(function(t){a++,t&&s.push(t.slice(0,5e3)),a==e.length&&n(s.join("\r"))}))}))}}).call(t,(function(){return this})())},function(e,t,n){"use strict";var r=n(23),o=n(8);e.exports=function(e,t,n,i,a){var s=o(e.getSelection());if(!t||!i)return console.warn("Invalid selection state.",arguments,e.toJS()),s;var c=r.decode(t),l=c.blockKey,u=e.getBlockTree(l).getIn([c.decoratorKey,"leaves",c.leafKey]),p=r.decode(i),d=p.blockKey,f=e.getBlockTree(d).getIn([p.decoratorKey,"leaves",p.leafKey]),m=u.get("start"),g=f.get("start"),h=u?m+n:null,v=f?g+a:null,y=s.getAnchorKey()===l&&s.getAnchorOffset()===h&&s.getFocusKey()===d&&s.getFocusOffset()===v;if(y)return s;var _=!1;if(l===d){var b=u.get("end"),C=f.get("end");_=g===m&&C===b?a<n:g<m}else{var S=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===d})).first();_=S===d}return s.merge({anchorKey:l,anchorOffset:h,focusKey:d,focusOffset:v,isBackward:_})}},function(e,t){"use strict";e.exports=function(e,t,n){if(n===e.count())t.forEach((function(t){e=e.push(t)}));else if(0===n)t.reverse().forEach((function(t){e=e.unshift(t)}));else{var r=e.slice(0,n),o=e.slice(n);e=r.concat(t,o).toList()}return e}},function(e,t){"use strict";e.exports=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i}},function(e,t){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),i=r.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),n=0):n=i+t,r.merge({focusKey:s,focusOffset:n})}},function(e,t,n){"use strict";var r=n(6),o=n(2),i=n(10),a=o.OrderedMap;e.exports=function(e){return e.first()instanceof r?(function(e){var t={},n=void 0;return a(e.withMutations((function(e){e.forEach((function(r,o){var a=r.getKey(),s=r.getNextSiblingKey(),c=r.getPrevSiblingKey(),l=r.getChildKeys(),u=r.getParentKey(),p=i();(t[a]=p,s)&&(e.get(s)?e.setIn([s,"prevSibling"],p):e.setIn([a,"nextSibling"],null));c&&(e.get(c)?e.setIn([c,"nextSibling"],p):e.setIn([a,"prevSibling"],null));if(u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(r.getKey()),p))}else e.setIn([a,"parent"],null),n&&(e.setIn([n.getKey(),"nextSibling"],p),e.setIn([a,"prevSibling"],t[n.getKey()])),n=e.get(a);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],p):e.setIn([a,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]})))})(e):(function(e){return a(e.toArray().map((function(e){var t=i();return[t,e.set("key",t)]})))})(e)}},function(e,t,n){"use strict";var r=n(5),o=n(18),i=n(1);function a(e,t,n){var a=t.getCharacterList(),s=n>0?a.get(n-1):void 0,c=n<a.count()?a.get(n):void 0,l=s?s.getEntity():void 0,u=c?c.getEntity():void 0;if(u&&u===l&&"MUTABLE"!==e.__get(u).getMutability()){for(var p,d=(function(e,t,n){var r;return o(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&i(!1,"Removal range must exist within character list."),r})(a,u,n),f=d.start,m=d.end;f<m;)p=a.get(f),a=a.set(f,r.applyEntity(p,null)),f++;return t.set("characterList",a)}return t}e.exports=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),s=t.getStartOffset(),c=n.get(i),l=a(r,c,s);l!==c&&(o[i]=l);var u=t.getEndKey(),p=t.getEndOffset(),d=n.get(u);i===u&&(d=l);var f=a(r,d,p);return f!==d&&(o[u]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)}},function(e,t,n){"use strict";var r=n(129),o=n(136),i=n(36),a=new RegExp("\r\n","g"),s={"text/rtf":1,"text/html":1};function c(e){if("file"==e.kind)return e.getAsFile()}var l=(function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(a,"\n"):null},e.prototype.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.prototype.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},e.prototype.getLink=function(){return this.data.getData?-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"):null},e.prototype.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var o=t[n].type;if(!r.isImage(o))return!1}return!0},e.prototype.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},e.prototype.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(c).filter(i.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},e.prototype.hasFiles=function(){return this.getFiles().length>0},e})();e.exports=l},function(e,t){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var r={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=r},function(e,t,n){"use strict";var r=n(34),o=n(1),i="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃǄ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚｦ-ｯｰｱ-ﾝﾞ-ﾟﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ"+i+a+"]"),c=new RegExp("["+i+a+"]");function l(e){var t=s.exec(e);return null==t?null:t[0]}function u(e){var t=l(e);return null==t?r.NEUTRAL:c.exec(t)?r.RTL:r.LTR}function p(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function d(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||o(!1,"Fallback direction must be a strong direction"),p(e,t)}var f={firstStrongChar:l,firstStrongCharDir:u,resolveBlockDir:p,getDirection:d,isDirectionLTR:function(e,t){return d(e,t)===r.LTR},isDirectionRTL:function(e,t){return d(e,t)===r.RTL}};e.exports=f},function(e,t){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(17),i=n(5),a=n(12),s=n(6),c=n(11),l=n(4),u=n(3),p=n(2),d=(n(15),n(10)),f=n(124),m=c.draft_tree_data_support,g=m?s:a,h=p.List,v=p.Repeat,y={insertAtomicBlock:function(e,t,n){var a=e.getCurrentContent(),s=e.getSelection(),c=l.removeRange(a,s,"backward"),p=c.getSelectionAfter(),f=l.splitBlock(c,p),y=f.getSelectionAfter(),_=l.setBlockType(f,y,"atomic"),b=i.create({entity:t}),C={key:d(),type:"atomic",text:n,characterList:h(v(b,n.length))},S={key:d(),type:"unstyled"};m&&(C=r({},C,{nextSibling:S.key}),S=r({},S,{prevSibling:C.key}));var E=[new g(C),new g(S)],w=o.createFromArray(E),x=l.replaceWithFragment(_,y,w),k=x.merge({selectionBefore:s,selectionAfter:x.getSelectionAfter().set("hasFocus",!0)});return u.push(e,k,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o=e.getCurrentContent(),i=e.getSelection(),a=void 0;if("before"===r||"after"===r){var s=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());a=f(o,t,s,r)}else{var c=l.removeRange(o,n,"backward"),p=c.getSelectionAfter(),d=c.getBlockForKey(p.getFocusKey());if(0===p.getStartOffset())a=f(c,t,d,"before");else if(p.getEndOffset()===d.getLength())a=f(c,t,d,"after");else{var m=l.splitBlock(c,p),g=m.getSelectionAfter(),h=m.getBlockForKey(g.getFocusKey());a=f(m,t,h,"before")}}var v=a.merge({selectionBefore:i,selectionAfter:a.getSelectionAfter().set("hasFocus",!0)});return u.push(e,v,"move-block")}};e.exports=y},function(e,t,n){"use strict";var r=n(2).List,o=(function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&((function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r})(n,e,t,o+"."+i),i++)}),t)})),r(n)},e.prototype.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},e.prototype.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e})();e.exports=o},function(e,t,n){"use strict";var r=n(5),o=n(2).Map,i={add:function(e,t,n){return a(e,t,n,!0)},remove:function(e,t,n){return a(e,t,n,!1)}};function a(e,t,n,i){var a=e.getBlockMap(),s=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),p=a.skipUntil((function(e,t){return t===s})).takeUntil((function(e,t){return t===l})).concat(o([[l,a.get(l)]])).map((function(e,t){var o,a;s===l?(o=c,a=u):(o=t===s?c:0,a=t===l?u:e.getLength());for(var p,d=e.getCharacterList();o<a;)p=d.get(o),d=d.set(o,i?r.applyStyle(p,n):r.removeStyle(p,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:a.merge(p),selectionBefore:t,selectionAfter:t})}e.exports=i},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var o=n(26),i=n(39),a=n(68),s=n(70),c=n(71),l=n(72),u=n(74),p=n(3),d=n(14),f=n(21),m=n(61),g=n(33),h=n(9),v=n(16),y=n(36),_=n(10),b=n(46),C=n(37),S=n(1),E=n(8),w=h.isBrowser("IE"),x=!w,k={edit:l,composite:a,drag:c,cut:null,render:null},T=(function(e){function t(n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t);var r=(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this,n));return r.focus=function(e){var t=r.props.editorState,n=t.getSelection().getHasFocus(),o=f.findDOMNode(r.editor);if(o){var i=g.getScrollParent(o),a=e||C(i),s=a.x,c=a.y;o instanceof HTMLElement||S(!1,"editorNode is not an HTMLElement"),o.focus(),i===window?window.scrollTo(s,c):m.setTop(i,c),n||r.update(p.forceSelection(t,t.getSelection()))}},r.blur=function(){var e=f.findDOMNode(r.editor);e instanceof HTMLElement||S(!1,"editorNode is not an HTMLElement"),e.blur()},r.setMode=function(e){r._handler=k[e]},r.exitCurrentMode=function(){r.setMode("edit")},r.restoreEditorDOM=function(e){r.setState({contentsKey:r.state.contentsKey+1},(function(){r.focus(e)}))},r.setClipboard=function(e){r._clipboard=e},r.getClipboard=function(){return r._clipboard},r.update=function(e){r._latestEditorState=e,r.props.onChange(e)},r.onDragEnter=function(){r._dragCount++},r.onDragLeave=function(){r._dragCount--,0===r._dragCount&&r.exitCurrentMode()},r._blockSelectEvents=!1,r._clipboard=null,r._handler=null,r._dragCount=0,r._editorKey=n.editorKey||_(),r._placeholderAccessibilityID="placeholder-"+r._editorKey,r._latestEditorState=n.editorState,r._latestCommittedEditorState=n.editorState,r._onBeforeInput=r._buildHandler("onBeforeInput"),r._onBlur=r._buildHandler("onBlur"),r._onCharacterData=r._buildHandler("onCharacterData"),r._onCompositionEnd=r._buildHandler("onCompositionEnd"),r._onCompositionStart=r._buildHandler("onCompositionStart"),r._onCopy=r._buildHandler("onCopy"),r._onCut=r._buildHandler("onCut"),r._onDragEnd=r._buildHandler("onDragEnd"),r._onDragOver=r._buildHandler("onDragOver"),r._onDragStart=r._buildHandler("onDragStart"),r._onDrop=r._buildHandler("onDrop"),r._onInput=r._buildHandler("onInput"),r._onFocus=r._buildHandler("onFocus"),r._onKeyDown=r._buildHandler("onKeyDown"),r._onKeyPress=r._buildHandler("onKeyPress"),r._onKeyUp=r._buildHandler("onKeyUp"),r._onMouseDown=r._buildHandler("onMouseDown"),r._onMouseUp=r._buildHandler("onMouseUp"),r._onPaste=r._buildHandler("onPaste"),r._onSelect=r._buildHandler("onSelect"),r.getEditorKey=function(){return r._editorKey},r.state={contentsKey:0},r}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&r(t,n)}}},t.prototype._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},t.prototype._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:E(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return d.createElement(u,e)}return null},t.prototype.render=function(){var e=this,t=this.props,n=t.blockRenderMap,o=t.blockRendererFn,a=t.blockStyleFn,c=t.customStyleFn,l=t.customStyleMap,u=t.editorState,p=t.readOnly,f=t.textAlignment,m=t.textDirectionality,g=v({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===f,"DraftEditor/alignRight":"right"===f,"DraftEditor/alignCenter":"center"===f}),h=this.props.role||"textbox",y="combobox"===h?!!this.props.ariaExpanded:null,_={blockRenderMap:n,blockRendererFn:o,blockStyleFn:a,customStyleMap:r({},i,l),customStyleFn:c,editorKey:this._editorKey,editorState:u,key:"contents"+this.state.contentsKey,textDirectionality:m};return d.createElement("div",{className:g},this._renderPlaceholder(),d.createElement("div",{className:v("DraftEditor/editorContainer"),ref:function(t){return e.editorContainer=t}},d.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this.props.ariaDescribedBy||this._placeholderAccessibilityID,"aria-expanded":p?null:y,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:v({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:function(t){return e.editor=t},role:p?null:h,spellCheck:x&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},d.createElement(s,_))))},t.prototype.componentDidMount=function(){this.setMode("edit"),w&&document.execCommand("AutoUrlDetect",!1,!1)},t.prototype.componentWillUpdate=function(e){this._blockSelectEvents=!0,this._latestEditorState=e.editorState},t.prototype.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestCommittedEditorState=this.props.editorState},t})(d.Component);T.defaultProps={blockRenderMap:o,blockRendererFn:y.thatReturnsNull,blockStyleFn:y.thatReturns(""),keyBindingFn:b,readOnly:!1,spellCheck:!1,stripPastedStyles:!1},e.exports=T},function(e,t,n){"use strict";var r=n(11),o=n(4),i=n(3),a=n(32),s=n(29),c=n(19),l=n(56),u=!1,p=!1,d="",f={onBeforeInput:function(e,t){d=(d||"")+t.data},onCompositionStart:function(e){p=!0},onCompositionEnd:function(e){u=!1,p=!1,setTimeout((function(){u||f.resolveComposition(e)}),20)},onKeyDown:function(e,t){if(!p)return f.resolveComposition(e),void e._onKeyDown(t);t.which!==a.RIGHT&&t.which!==a.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===a.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!p){u=!0;var t=d;d="";var n=i.set(e._latestEditorState,{inCompositionMode:!1}),a=n.getCurrentInlineStyle(),f=s(n.getCurrentContent(),n.getSelection()),m=!t||l(n)||a.size>0||null!==f;if(m&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(r.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&c(e.props.handleBeforeInput(t,n)))return;var g=o.replaceText(n.getCurrentContent(),n.getSelection(),t,a,f);e.update(i.push(n,g,"insert-characters"))}else m&&e.update(i.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=f},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=n(40),s=n(23),c=(n(3),n(14)),l=n(16),u=n(146),p=n(8),d=function(e,t,n,r){return l({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":4===t,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=(function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),c=t.getDecorator(),l=n.getDecorator();return o!==i||a!==s||c!==l||n.mustForceSelection()},t.prototype.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,o=e.blockStyleFn,i=e.customStyleMap,l=e.customStyleFn,f=e.editorState,m=e.editorKey,g=e.textDirectionality,h=f.getCurrentContent(),v=f.getSelection(),y=f.mustForceSelection(),_=f.getDecorator(),b=p(f.getDirectionMap()),C=h.getBlocksAsArray(),S=[],E=null,w=null,x=0;x<C.length;x++){var k=C[x],T=k.getKey(),M=k.getType(),O=n(k),L=void 0,D=void 0,P=void 0;O&&(L=O.component,D=O.props,P=O.editable);var N=g||b.get(T),R=s.encode(T,0,0),A={contentState:h,block:k,blockProps:D,blockStyleFn:o,customStyleMap:i,customStyleFn:l,decorator:_,direction:N,forceSelection:y,key:T,offsetKey:R,selection:v,tree:f.getBlockTree(T)},F=t.get(M)||t.get("unstyled"),I=F.wrapper,B=F.element||t.get("unstyled").element,K=k.getDepth(),H="";if(o&&(H=o(k)),"li"===B)H=u(H,d(M,K,w!==I||null===E||K>E,N));var U=L||a,j={className:H,"data-block":!0,"data-editor":m,"data-offset-key":R,key:T};void 0!==P&&(j=r({},j,{contentEditable:P,suppressContentEditableWarning:!0}));var V=c.createElement(B,j,c.createElement(U,A));S.push({block:V,wrapperTemplate:I,key:T,offsetKey:R}),E=I?k.getDepth():null,w=I}for(var W=[],q=0;q<S.length;){var Z=S[q];if(Z.wrapperTemplate){var G=[];do{G.push(S[q].block),q++}while(q<S.length&&S[q].wrapperTemplate===Z.wrapperTemplate);var z=c.cloneElement(Z.wrapperTemplate,{key:Z.key+"-wrap","data-offset-key":Z.offsetKey},G);W.push(z)}else W.push(Z.block),q++}return c.createElement("div",{"data-contents":"true"},W)},t})(c.Component);e.exports=f},function(e,t,n){"use strict";var r=n(69);e.exports=r},function(e,t,n){"use strict";var r=n(60),o=n(4),i=n(3),a=n(28),s=n(53),c=n(54),l=n(19),u=n(8);var p={onDragEnd:function(e){e.exitCurrentMode()},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),p=e._latestEditorState,f=(function(e,t){var n=null,r=null;if("function"==typeof document.caretRangeFromPoint){var o=document.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=u(n),r=u(r);var i=u(a(n));return c(t,i,r,i,r)})(t.nativeEvent,p);if(t.preventDefault(),e.exitCurrentMode(),null!=f){var m=n.getFiles();if(m.length>0){if(e.props.handleDroppedFiles&&l(e.props.handleDroppedFiles(f,m)))return;s(m,(function(t){t&&e.update(d(p,f,t))}))}else{var g=e._internalDrag?"internal":"external";e.props.handleDrop&&l(e.props.handleDrop(f,n,g))||(e._internalDrag?e.update((function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return i.push(e,n,"insert-fragment")})(p,f)):e.update(d(p,f,n.getText())))}}}};function d(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return i.push(e,r,"insert-fragment")}e.exports=p},function(e,t,n){"use strict";var r={onBeforeInput:n(91),onBlur:n(92),onCompositionStart:n(93),onCopy:n(94),onCut:n(95),onDragOver:n(96),onDragStart:n(97),onFocus:n(98),onInput:n(99),onKeyDown:n(100),onPaste:n(101),onSelect:n(102)};e.exports=r},function(e,t,n){"use strict";var r=n(7);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=n(75),s=n(14),c=n(21),l=n(1),u=n(126),p=(function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=c.findDOMNode(this);s||l(!1,"Missing node");var p=s.firstChild;p||l(!1,"Missing child");var d=void 0;p.nodeType===Node.TEXT_NODE?d=p:"BR"===p.tagName?d=s:(d=p.firstChild)||l(!1,"Missing targetNode"),u(e,d,i,r,a)}}},t.prototype.shouldComponentUpdate=function(e){var t=c.findDOMNode(this.leaf);return t||l(!1,"Missing leafNode"),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},t.prototype.componentDidUpdate=function(){this._setSelection()},t.prototype.componentDidMount=function(){this._setSelection()},t.prototype.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var o=this.props,i=o.customStyleMap,c=o.customStyleFn,l=o.offsetKey,u=o.styleSet,p=u.reduce((function(e,t){var n={},o=i[t];return void 0!==o&&e.textDecoration!==o.textDecoration&&(n.textDecoration=[e.textDecoration,o.textDecoration].join(" ").trim()),r(e,o,n)}),{});if(c){var d=c(u,t);p=r(p,d)}return s.createElement("span",{"data-offset-key":l,ref:function(t){return e.leaf=t},style:p},s.createElement(a,null,n))},t})(s.Component);e.exports=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var i=n(14),a=n(16),s=(function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},t.prototype.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=a({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return i.createElement("div",{className:t},i.createElement("div",{className:a("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},t})(i.Component);e.exports=s},function(e,t,n){"use strict";var r=n(14),o=n(21),i=n(9),a=n(1),s=i.isBrowser("IE <= 11");var c=s?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),l=s?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),u=(function(e){function t(n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,t);var r=(function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t})(this,e.call(this,n));return r._forceFlag=!1,r}return(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(t,e),t.prototype.shouldComponentUpdate=function(e){var t=o.findDOMNode(this),n=""===e.children;return t instanceof Element||a(!1,"node is not an Element"),n?!(function(e){return s?"\n"===e.textContent:"BR"===e.tagName})(t):t.textContent!==e.children},t.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},t.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},t.prototype.render=function(){return""===this.props.children?this._forceFlag?c:l:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},t})(r.Component);e.exports=u},function(e,t){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,c=null,l=null,u=0;u<i.length;u++){if(e<(a=s+i[u].length)&&s<t)null!==c?l=a:(c=s,l=a);else if(null!==c)break;s=a}var p=r+n.length,d=c===r,f=l===p;return(!d&&f||d&&!f)&&("forward"===o?l!==p&&l++:c!==r&&c--),{start:c,end:l}}}},function(e,t){"use strict";e.exports={draft_killswitch_allow_nontextnodes:!1,draft_segmented_entities_behavior:!1,draft_handlebeforeinput_composed_text:!1,draft_tree_data_support:!1}},function(e,t){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(n(5),n(12)),i=n(6),a=n(11),s=n(2),c=n(45),l=n(10),u=n(51),p=n(31),d=s.List,f=s.Repeat,m=a.draft_tree_data_support,g=m?i:o,h={processHTML:function(e,t){return c(e,u,t)},processText:function(e,t,n){return e.reduce((function(e,o,i){o=p(o);var a=l(),s={key:a,type:n,text:o,characterList:d(f(t,o.length))};if(m&&0!==i){var c=i-1,u=e[c]=e[c].merge({nextSibling:a});s=r({},s,{prevSibling:u.getKey()})}return e.push(new g(s)),e}),[])}};e.exports=h},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(1),i=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},a={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||o(!1,"Invalid raw state"),Array.isArray(t)&&t.length?((function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var i=r.children;Array.isArray(i)||o(!1,"Invalid tree raw block"),n=n.concat([].concat(i.reverse()))}})(t,(function(e){var t=r({},e);i(e)&&(t.depth=t.depth||0,(function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))})(e)),delete t.children,n.push(t)})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t={},n=[];return e.blocks.forEach((function(e){var a=i(e),s=e.depth||0,c=r({},e,{children:[]});if(!a)return t={},void n.push(c);if(t[s]=c,s>0){var l=t[s-1];return l||o(!1,"Invalid depth for RawDraftContentBlock"),void l.children.push(c)}n.push(c)})),r({},e,{blocks:n})}};e.exports=a},function(e,t,n){"use strict";var r,o=n(2),i=n(132),a=n(8),s=o.OrderedMap,c={getDirectionMap:function(e,t){r?r.reset():r=new i;var n=e.getBlockMap(),c=n.valueSeq().map((function(e){return a(r).getDirection(e.getText())})),l=s(n.keySeq().zip(c));return null!=t&&o.is(t,l)?t:l}};e.exports=c},function(e,t,n){"use strict";var r=n(4),o=n(3),i=n(24),a=n(8),s=null,c={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),c=null;if(n.isCollapsed()){var l=n.getAnchorKey(),u=t.getBlockForKey(l).getLength();if(u===n.getAnchorOffset())return e;c=n.set("focusOffset",u)}else c=n;c=a(c),s=i(t,c);var p=r.removeRange(t,c,"forward");return p===t?e:o.push(e,p,"remove-range")},paste:function(e){if(!s)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),s);return o.push(e,t,"insert-fragment")}};e.exports=c},function(e,t){"use strict";e.exports=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t,n,o){for(var i=e.getCharacterList();t<n;)i=i.set(t,r.applyEntity(i.get(t),o)),t++;return e.set("characterList",i)}},function(e,t,n){"use strict";var r=n(2),o=n(84);e.exports=function(e,t,n){var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),c=t.getEndKey(),l=t.getEndOffset(),u=i.skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===c})).toOrderedMap().merge(r.OrderedMap([[c,i.get(c)]])).map((function(e,t){var r=t===a?s:0,i=t===c?l:e.getLength();return o(e,r,i,n)}));return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(12),i=n(6),a=n(43),s=n(103),c=n(104),l=n(1),u=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:c(e),entityRanges:s(e,t),data:e.getData().toObject()}},p=function(e,t){var n=t.entityMap,s=[],c={},p={},d=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=a.stringify(r);p[o]||(p[o]=r,n[o]=""+d,d++)})),(function(e,t,n,a){if(e instanceof o)n.push(u(e,t));else{e instanceof i||l(!1,"block is not a BlockNode");var s=e.getParentKey(),c=a[e.getKey()]=r({},u(e,t),{children:[]});s?a[s].children.push(c):n.push(c)}})(e,n,s,c)})),{blocks:s,entityMap:n}};e.exports=function(e){var t={entityMap:{},blocks:[]};return t=(function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(a.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}})(e,t=p(e,t))}},function(e,t,n){"use strict";var r=n(7)||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(12),i=n(6),a=n(25),s=n(22),c=n(11),l=n(80),u=n(2),p=n(15),d=n(88),f=n(89),m=n(90),g=n(10),h=n(1),v=c.draft_tree_data_support,y=u.List,_=u.Map,b=u.OrderedMap,C=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||g(),data:_(o),characterList:S(e,t)}},S=function(e,t){var n=e.text,o=e.entityRanges,i=e.inlineStyleRanges,a=o||[];return d(m(n,i||[]),f(n,a.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},E=function(e){return r({},e,{key:e.key||g()})},w=function(e,t,n){var o=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(o.reverse())},x=function(e,t){var n=Array.isArray(e.blocks[0].children),a=v&&!n?l.fromRawStateToRawTreeState(e).blocks:e.blocks;return v?(function(e,t){return e.map(E).reduce((function(n,o,a){Array.isArray(o.children)||h(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode");var s=o.children.map(E),c=new i(r({},C(o,t),{prevSibling:0===a?null:e[a-1].key,nextSibling:a===e.length-1?null:e[a+1].key,children:y(s.map((function(e){return e.key})))}));n=n.set(c.getKey(),c);for(var l=w([],s,c);l.length>0;){var u=l.pop(),p=u.parentRef,d=p.getChildKeys(),f=d.indexOf(u.key),m=Array.isArray(u.children);if(!m){m||h(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode");break}var g=u.children.map(E),v=new i(r({},C(u,t),{parent:p.getKey(),children:y(g.map((function(e){return e.key}))),prevSibling:0===f?null:d.get(f-1),nextSibling:f===d.size-1?null:d.get(f+1)}));n=n.set(v.getKey(),v),l=w(l,g,v)}return n}),b())})(a,t):(function(e,t){return b(e.map((function(e){var n=new o(C(e,t));return[n.getKey(),n]})))})(n?l.fromRawTreeStateToRawState(e).blocks:a,t)};e.exports=function(e){Array.isArray(e.blocks)||h(!1,"invalid RawDraftContentState");var t=(function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=s.__create(o,i,a||{})})),n})(e),n=x(e,t),r=n.isEmpty()?new p:p.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},function(e,t,n){"use strict";var r=n(5),o=n(2).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},function(e,t,n){"use strict";var r=n(13).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,i=o+r(e,t.offset,t.length).length,a=o;a<i;a++)n[a]=t.key})),n}},function(e,t,n){"use strict";var r=n(2).OrderedSet,o=n(13).substr,i=r();e.exports=function(e,t){var n=Array(e.length).fill(i);return t&&t.forEach((function(t){for(var r=o(e,0,t.offset).length,i=r+o(e,t.offset,t.length).length;r<i;)n[r]=n[r].add(t.style),r++})),n}},function(e,t,n){(function(t){"use strict";var r=n(38),o=n(4),i=n(3),a=n(9),s=n(29),c=n(19),l=n(56),u=n(8),p=a.isBrowser("Firefox");function d(e,t,n,r){var a=o.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return i.push(e,a,"insert-characters")}e.exports=function(e,n){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var o=e._latestEditorState,a=n.data;if(a)if(e.props.handleBeforeInput&&c(e.props.handleBeforeInput(a,o)))n.preventDefault();else{var f=o.getSelection(),m=f.getStartOffset(),g=f.getEndOffset(),h=f.getAnchorKey();if(!f.isCollapsed())return n.preventDefault(),void(a===o.getCurrentContent().getPlainText().slice(m,g)?e.update(i.forceSelection(o,f.merge({focusOffset:g}))):e.update(d(o,a,o.getCurrentInlineStyle(),s(o.getCurrentContent(),o.getSelection()))));var v,y,_=d(o,a,o.getCurrentInlineStyle(),s(o.getCurrentContent(),o.getSelection())),b=!1;if(b||(b=l(e._latestCommittedEditorState)),!b){var C=t.getSelection();if(C.anchorNode&&C.anchorNode.nodeType===Node.TEXT_NODE){var S=C.anchorNode.parentNode;b="SPAN"===S.nodeName&&S.firstChild.nodeType===Node.TEXT_NODE&&-1!==S.firstChild.nodeValue.indexOf("\t")}}if(!b)b=r.getFingerprint(o.getBlockTree(h))!==r.getFingerprint(_.getBlockTree(h));if(b||(v=a,b=p&&("'"==v||"/"==v)),b||(b=u(_.getDirectionMap()).get(h)!==u(o.getDirectionMap()).get(h)),b)return n.preventDefault(),void e.update(_);_=i.set(_,{nativelyRenderedContent:_.getCurrentContent()}),e._pendingStateFromBeforeInput=_,y=function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)},window.setTimeout(y,0)}}}).call(t,(function(){return this})())},function(e,t,n){(function(t){"use strict";var r=n(3),o=n(35),i=n(63);e.exports=function(e,n){if(i()===document.body){var a=t.getSelection(),s=e.editor;1===a.rangeCount&&o(s,a.anchorNode)&&o(s,a.focusNode)&&a.removeAllRanges()}var c=e._latestEditorState,l=c.getSelection();if(l.getHasFocus()){var u=l.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(n),e.update(r.acceptSelection(c,u))}}}).call(t,(function(){return this})())},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}},function(e,t,n){"use strict";var r=n(48);e.exports=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}},function(e,t,n){"use strict";var r=n(4),o=n(3),i=n(33),a=n(48),s=n(37);e.exports=function(e,t){var n=e._latestEditorState,c=n.getSelection(),l=t.target,u=void 0;if(c.isCollapsed())t.preventDefault();else{l instanceof Node&&(u=s(i.getScrollParent(l)));var p=a(n);e.setClipboard(p),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(u),e.exitCurrentMode(),e.update((function(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return o.push(e,t,"remove-range")})(n))}),0)}}},function(e,t){"use strict";e.exports=function(e,t){e._internalDrag=!1,e.setMode("drag"),t.preventDefault()}},function(e,t){"use strict";e.exports=function(e){e._internalDrag=!0,e.setMode("drag")}},function(e,t,n){"use strict";var r=n(3),o=n(9);e.exports=function(e,t){var n=e._latestEditorState,i=n.getSelection();if(!i.getHasFocus()){var a=i.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),o.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,a)):e.update(r.acceptSelection(n,a))}}},function(e,t,n){(function(t){"use strict";var r=n(11),o=n(4),i=n(23),a=n(3),s=n(9),c=n(28),l=n(8),u=s.isEngine("Gecko");e.exports=function(e){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=t.getSelection(),s=n.anchorNode,p=n.isCollapsed,d=s.nodeType!==Node.TEXT_NODE,f=s.nodeType!==Node.TEXT_NODE&&s.nodeType!==Node.ELEMENT_NODE;if(r.draft_killswitch_allow_nontextnodes){if(d)return}else if(f)return;if(s.nodeType===Node.TEXT_NODE&&(null!==s.previousSibling||null!==s.nextSibling)){var m=s.parentNode;s.nodeValue=m.textContent;for(var g=m.firstChild;null!==g;g=g.nextSibling)g!==s&&m.removeChild(g)}var h=s.textContent,v=e._latestEditorState,y=l(c(s)),_=i.decode(y),b=_.blockKey,C=_.decoratorKey,S=_.leafKey,E=v.getBlockTree(b).getIn([C,"leaves",S]),w=E.start,x=E.end,k=v.getCurrentContent(),T=k.getBlockForKey(b),M=T.getText().slice(w,x);if(h.endsWith("\n\n")&&(h=h.slice(0,-1)),h!==M){var O,L,D,P,N=v.getSelection(),R=N.merge({anchorOffset:w,focusOffset:x,isBackward:!1}),A=T.getEntityAt(w),F=A&&k.getEntity(A),I="MUTABLE"===(F&&F.getMutability()),B=I?"spellcheck-change":"apply-entity",K=o.replaceText(k,R,h,T.getInlineStyleAt(w),I?T.getEntityAt(w):null);if(u)O=n.anchorOffset,L=n.focusOffset,P=(D=w+Math.min(O,L))+Math.abs(O-L),O=D,L=P;else{var H=h.length-M.length;D=N.getStartOffset(),P=N.getEndOffset(),O=p?P+H:D,L=P+H}var U=K.merge({selectionBefore:k.getSelectionAfter(),selectionAfter:N.merge({anchorOffset:O,focusOffset:L})});e.update(a.push(v,U,B))}}}).call(t,(function(){return this})())},function(e,t,n){"use strict";var r=n(4),o=n(3),i=n(27),a=n(32),s=n(82),c=n(9),l=n(19),u=n(113),p=n(114),d=n(115),f=n(116),m=n(117),g=n(118),h=n(119),v=n(120),y=n(121),_=n(122),b=i.isOptionKeyCommand,C=c.isBrowser("Chrome");e.exports=function(e,t){var n=t.which,i=e._latestEditorState;switch(n){case a.RETURN:if(t.preventDefault(),e.props.handleReturn&&l(e.props.handleReturn(t,i)))return;break;case a.ESC:return t.preventDefault(),void(e.props.onEscape&&e.props.onEscape(t));case a.TAB:return void(e.props.onTab&&e.props.onTab(t));case a.UP:return void(e.props.onUpArrow&&e.props.onUpArrow(t));case a.RIGHT:return void(e.props.onRightArrow&&e.props.onRightArrow(t));case a.DOWN:return void(e.props.onDownArrow&&e.props.onDownArrow(t));case a.LEFT:return void(e.props.onLeftArrow&&e.props.onLeftArrow(t));case a.SPACE:if(C&&b(t)){t.preventDefault();var c=r.replaceText(i.getCurrentContent(),i.getSelection()," ");return void e.update(o.push(i,c,"insert-characters"))}}var S=e.props.keyBindingFn(t);if(S)if("undo"!==S){if(t.preventDefault(),!e.props.handleKeyCommand||!l(e.props.handleKeyCommand(S,i))){var E=(function(e,t){switch(e){case"redo":return o.redo(t);case"delete":return v(t);case"delete-word":return d(t);case"backspace":return h(t);case"backspace-word":return p(t);case"backspace-to-start-of-line":return u(t);case"split-block":return f(t);case"transpose-characters":return y(t);case"move-selection-to-start-of-block":return g(t);case"move-selection-to-end-of-block":return m(t);case"secondary-cut":return s.cut(t);case"secondary-paste":return s.paste(t);default:return t}})(S,i);E!==i&&e.update(E)}}else _(t,i,e.update)}},function(e,t,n){"use strict";var r=n(17),o=n(5),i=n(60),a=n(4),s=n(79),c=n(3),l=n(44),u=n(29),p=n(53),d=n(19),f=n(128);function m(e,t,n){var r=a.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return c.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new i(t.clipboardData);if(!n.isRichText()){var g=n.getFiles(),h=n.getText();if(g.length>0){if(e.props.handlePastedFiles&&d(e.props.handlePastedFiles(g)))return;return void p(g,(function(t){if(t=t||h){var n=e._latestEditorState,i=f(t),p=o.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),d=l.getCurrentBlockType(n),m=s.processText(i,p,d),g=r.createFromArray(m),v=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);e.update(c.push(n,v,"insert-fragment"))}}))}}var v=[],y=n.getText(),_=n.getHTML(),b=e._latestEditorState;if(!e.props.handlePastedText||!d(e.props.handlePastedText(y,_,b))){if(y&&(v=f(y)),!e.props.stripPastedStyles){var C=e.getClipboard();if(n.isRichText()&&C){if(-1!==_.indexOf(e.getEditorKey())||1===v.length&&1===C.size&&C.first().getText()===y)return void e.update(m(e._latestEditorState,C))}else if(C&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&(function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))})(v,C))return void e.update(m(e._latestEditorState,C));if(_){var S=s.processHTML(_,e.props.blockRenderMap);if(S){var E=S.contentBlocks,w=S.entityMap;if(E){var x=r.createFromArray(E);return void e.update(m(e._latestEditorState,x,w))}}}e.setClipboard(null)}if(v.length){var k=o.create({style:b.getCurrentInlineStyle(),entity:u(b.getCurrentContent(),b.getSelection())}),T=l.getCurrentBlockType(b),M=s.processText(v,k,T),O=r.createFromArray(M);e.update(m(e._latestEditorState,O))}}}},function(e,t,n){"use strict";var r=n(3),o=n(21),i=n(107),a=n(1);e.exports=function(e){if(!e._blockSelectEvents&&e._latestEditorState===e.props.editorState){var t=e.props.editorState,n=o.findDOMNode(e.editorContainer);n||a(!1,"Missing editorNode"),n.firstChild instanceof HTMLElement||a(!1,"editorNode.firstChild is not an HTMLElement");var s=i(t,n.firstChild),c=s.selectionState;c!==t.getSelection()&&(t=s.needsRecovery?r.forceSelection(t,c):r.acceptSelection(t,c),e.update(t))}}},function(e,t,n){"use strict";var r=n(43),o=n(13).strlen;e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(i,a){var s=e.getText(),c=e.getEntityAt(i);n.push({offset:o(s.slice(0,i)),length:o(s.slice(i,a)),key:Number(t[r.stringify(c)])})})),n}},function(e,t,n){"use strict";var r=n(13),o=n(18),i=function(e,t){return e===t},a=function(e){return!!e},s=[];e.exports=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return(function(e,t,n){var s=[],c=t.map((function(e){return e.has(n)})).toList();return o(c,i,a,(function(t,o){var i=e.getText();s.push({offset:r.strlen(i.slice(0,t)),length:r.strlen(i.slice(t,o)),style:n})})),s})(e,t,n)}));return Array.prototype.concat.apply(s,n.toJS())}},function(e,t,n){"use strict";var r=n(13),o=n(50),i=n(1);function a(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function s(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}e.exports=function(e){e.collapsed||i(!1,"expandRangeToStartOfLine: Provided range is not collapsed.");var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=(function(e){var t=getComputedStyle(e),n=document.createElement("div");n.style.fontFamily=t.fontFamily,n.style.fontSize=t.fontSize,n.style.fontStyle=t.fontStyle,n.style.fontWeight=t.fontWeight,n.style.lineHeight=t.lineHeight,n.style.position="absolute",n.textContent="M";var r=document.body;r||i(!1,"Missing document.body"),r.appendChild(n);var o=n.getBoundingClientRect();return r.removeChild(n),o.height})(t),c=e.endContainer,l=e.endOffset;for(e.setStart(e.startContainer,0);a(o(e),n)&&(c=e.startContainer,l=e.startOffset,c.parentNode||i(!1,"Found unexpected detached subtree when traversing."),e.setStartBefore(c),1!==c.nodeType||"inline"===getComputedStyle(c).display););for(var u=c,p=l-1;;){for(var d=u.nodeValue,f=p;f>=0;f--)if(!(null!=d&&f>0&&r.isSurrogatePair(d,f-1))){if(e.setStart(u,f),!a(o(e),n))break;c=u,l=f}if(-1===f||0===u.childNodes.length)break;p=s(u=u.childNodes[f])}return e.setStart(c,l),e}},function(e,t,n){"use strict";var r=n(76),o=n(109),i=n(1);function a(e,t,n,a,s,c,l){var u=n.getStartOffset(),p=n.getEndOffset(),d=e.__get(s).getMutability(),f=l?u:p;if("MUTABLE"===d)return n;var m=o(t,s).filter((function(e){return f<=e.end&&f>=e.start}));1!=m.length&&i(!1,"There should only be one entity range within this removal range.");var g=m[0];if("IMMUTABLE"===d)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});c||(l?p=g.end:u=g.start);var h=r.getRemovalRange(u,p,t.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:h.start,focusOffset:h.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var i=r.getStartOffset(),s=r.getEndOffset(),c=t.getEntityAt(i),l=n.getEntityAt(s-1);if(!c&&!l)return r;var u=r;if(c&&c===l)u=a(e,t,u,o,c,!0,!0);else if(c&&l){var p=a(e,t,u,o,c,!1,!0),d=a(e,n,u,o,l,!1,!1);u=u.merge({anchorOffset:p.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(c){var f=a(e,t,u,o,c,!1,!0);u=u.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(l){var m=a(e,n,u,o,l,!1,!1);u=u.merge({focusOffset:m.getEndOffset(),isBackward:!1})}return u}},function(e,t,n){(function(t){"use strict";var r=n(47);e.exports=function(e,n){var o=t.getSelection();return 0===o.rangeCount?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,n,o.anchorNode,o.anchorOffset,o.focusNode,o.focusOffset)}}).call(t,(function(){return this})())},function(e,t,n){"use strict";var r=n(50);e.exports=function(e){var t=r(e),n=0,o=0,i=0,a=0;if(t.length){if(t.length>1&&0===t[0].width){var s=t[1];n=s.top,o=s.right,i=s.bottom,a=s.left}else{var c=t[0];n=c.top,o=c.right,i=c.bottom,a=c.left}for(var l=1;l<t.length;l++){var u=t[l];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),o=Math.max(o,u.right),i=Math.max(i,u.bottom),a=Math.min(a,u.left))}}return{top:n,right:o,bottom:i,left:a,width:o-a,height:i-n}}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1,"Entity key not found in this range."),n}},function(e,t,n){"use strict";var r=n(108);e.exports=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),o=r(n),i=o.top,a=o.right,s=o.bottom,c=o.left;return 0===i&&0===a&&0===s&&0===c?null:o}},function(e,t,n){"use strict";var r=n(17),o=n(6),i=n(2),a=n(55),s=n(1),c=n(58),l=i.List,u=function(e,t,n,i,a,s){var c=n.first()instanceof o,u=[],p=i.size,d=n.get(a),f=i.first(),m=i.last(),g=m.getLength(),h=m.getKey(),v=c&&(!d.getChildKeys().isEmpty()||!f.getChildKeys().isEmpty());n.forEach((function(e,t){t===a?(v?u.push(e):u.push((function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})})(e,s,i)),i.slice(v?0:1,p-1).forEach((function(e){return u.push(e)})),u.push((function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})})(e,s,i))):u.push(e)}));var y=r.createFromArray(u);return c&&(y=(function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),c=(function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o})(r,e),u=c[c.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var p=e.get(s).getChildKeys(),d=p.indexOf(o)+1,f=p.toArray();f.splice.apply(f,[d,0].concat(c)),t.setIn([s,"children"],l(f))}}))})(y,0,d,f)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:h,anchorOffset:g,focusKey:h,focusOffset:g,isBackward:!1})})};e.exports=function(e,t,n){t.isCollapsed()||s(!1,"`insertFragment` should only be called with a collapsed selection state.");var r=e.getBlockMap(),i=c(n),l=t.getStartKey(),p=t.getStartOffset(),d=r.get(l);return d instanceof o&&(d.getChildKeys().isEmpty()||s(!1,"`insertFragment` should not be called when a container node is selected.")),1===i.size?(function(e,t,n,r,o,i){var s=n.get(o),c=s.getText(),l=s.getCharacterList(),u=o,p=i+r.getText().length,d=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:a(l,r.getCharacterList(),i),data:r.getData()});return e.merge({blockMap:n.set(o,d),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:p,focusKey:u,focusOffset:p,isBackward:!1})})})(e,t,r,i.first(),l,p):u(e,t,r,i,l,p)}},function(e,t,n){"use strict";var r=n(2),o=n(55),i=n(1),a=r.Repeat;e.exports=function(e,t,n,r){t.isCollapsed()||i(!1,"`insertText` should only be called with a collapsed range.");var s=n.length;if(!s)return e;var c=e.getBlockMap(),l=t.getStartKey(),u=t.getStartOffset(),p=c.get(l),d=p.getText(),f=p.merge({text:d.slice(0,u)+n+d.slice(u,p.getLength()),characterList:o(p.getCharacterList(),a(r,s).toList(),u)}),m=u+s;return e.merge({blockMap:c.set(l,f),selectionAfter:t.merge({anchorOffset:m,focusOffset:m})})}},function(e,t,n){(function(t){"use strict";var r=n(3),o=n(105),i=n(47),a=n(30),s=n(20);e.exports=function(e){var n=s(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return a(e,1);var r=t.getSelection().getRangeAt(0);return r=o(r),i(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}}).call(t,(function(){return this})())},function(e,t,n){"use strict";var r=n(42),o=n(3),i=n(30),a=n(20);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return i(e,1);var o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),s=r.getBackward(a);return i(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(42),o=n(3),i=n(57),a=n(20);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),a=e.getCurrentContent().getBlockForKey(o).getText().slice(n),s=r.getForward(a);return i(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(4),o=n(3);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(3),o=n(13),i=n(30),a=n(20);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a-1];return i(e,s?o.getUTF16Length(s,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(3),o=n(13),i=n(57),a=n(20);e.exports=function(e){var t=a(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),a=t.getAnchorOffset(),s=n.getBlockForKey(r).getText()[a];return i(e,s?o.getUTF16Length(s,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(4),o=n(3),i=n(24);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var a,s,c=t.getAnchorKey(),l=e.getCurrentContent(),u=l.getBlockForKey(c).getLength();if(u<=1)return e;n===u?(a=t.set("anchorOffset",n-1),s=t):s=(a=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var p=i(l,a),d=r.removeRange(l,a,"backward"),f=d.getSelectionAfter(),m=f.getAnchorOffset()-1,g=f.merge({anchorOffset:m,focusOffset:m}),h=r.replaceWithFragment(d,g,p),v=o.push(e,h,"insert-fragment");return o.acceptSelection(v,s)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var i=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:i}))}}},function(e,t,n){"use strict";var r=n(2).Map;e.exports=function(e,t,n){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat(r([[i,a.get(i)]])).map(n);return e.merge({blockMap:a.merge(s),selectionBefore:t,selectionAfter:t})}},function(e,t,n){"use strict";var r=n(6),o=n(2),i=n(49),a=n(1),s=o.OrderedMap,c=o.List,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),p=t.getNextSiblingKey(),d=t.getPrevSiblingKey(),f=n.getParentKey(),m=i?n.getNextSiblingKey():s,g=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){l(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),l(d,e,(function(e){return e.merge({nextSibling:p})})),l(p,e,(function(e){return e.merge({prevSibling:d})})),l(m,e,(function(e){return e.merge({prevSibling:a})})),l(g,e,(function(e){return e.merge({nextSibling:a})})),l(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:c(o)})})),l(a,e,(function(e){return e.merge({nextSibling:m,prevSibling:g,parent:f})}))}))};e.exports=function(e,t,n,o){"replace"===o&&a(!1,"Replacing blocks is not supported.");var c=n.getKey(),l=t.getKey();l===c&&a(!1,"Block cannot be moved next to itself.");var p=e.getBlockMap(),d=t instanceof r,f=[t],m=p.delete(l);d&&(f=[],m=p.withMutations((function(e){var n=t.getNextSiblingKey(),r=i(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===l})).takeWhile((function(e){var t=e.getKey(),o=t===l,i=n&&t!==n,a=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||i||a)})).forEach((function(t){f.push(t),e.delete(t.getKey())}))})));var g=m.toSeq().takeUntil((function(e){return e===n})),h=m.toSeq().skipUntil((function(e){return e===n})).skip(1),v=f.map((function(e){return[e.getKey(),e]})),y=s();if("before"===o){var _=e.getBlockBefore(c);_&&_.getKey()===t.getKey()&&a(!1,"Block cannot be moved next to itself."),y=g.concat([].concat(v,[[c,n]]),h).toOrderedMap()}else if("after"===o){var b=e.getBlockAfter(c);b&&b.getKey()===l&&a(!1,"Block cannot be moved next to itself."),y=g.concat([[c,n]].concat(v),h).toOrderedMap()}return e.merge({blockMap:u(y,t,n,o,d),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:l,focusKey:l})})}},function(e,t,n){"use strict";var r=n(6),o=n(2),i=n(49),a=(o.List,o.Map),s=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},l=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},u=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},p=function(e,t,n,r){return e.withMutations((function(e){s(t.getKey(),e,(function(n){return n.merge({nextSibling:l(t,e,r),prevSibling:u(t,e,r)})})),s(n.getKey(),e,(function(t){return t.merge({nextSibling:l(n,e,r),prevSibling:u(n,e,r)})})),c(t.getKey(),r).forEach((function(t){return s(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:l(t,e,r),prevSibling:u(t,e,r)})}))})),s(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),s(t.getPrevSiblingKey(),e,(function(n){return n.merge({nextSibling:l(t,e,r)})})),s(n.getNextSiblingKey(),e,(function(t){return t.merge({prevSibling:u(n,e,r)})})),s(n.getPrevSiblingKey(),e,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),c(n.getKey(),r).forEach((function(t){s(t,e,(function(t){return t.merge({children:t.getChildKeys().filter((function(t){return e.get(t)})),nextSibling:l(t,e,r),prevSibling:u(t,e,r)})}))})),(function(e,t){var n=[];if(!e)return n;for(var r=i(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?i(o,t):null}return n})(n,r).forEach((function(t){return s(t,e,(function(t){return t.merge({nextSibling:l(t,e,r),prevSibling:u(t,e,r)})}))}))}))},d=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n=e.getBlockMap(),o=t.getStartKey(),s=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),f=n.get(o),m=n.get(l),g=f instanceof r,h=[];if(g){var v=m.getChildKeys(),y=c(l,n);m.getNextSiblingKey()&&(h=h.concat(y)),v.isEmpty()||(h=h.concat(y.concat([l]))),h=h.concat(c(i(m,n),n))}var _=void 0;_=f===m?d(f.getCharacterList(),s,u):f.getCharacterList().slice(0,s).concat(m.getCharacterList().slice(u));var b=f.merge({text:f.getText().slice(0,s)+m.getText().slice(u),characterList:_}),C=n.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===l})).filter((function(e,t){return-1===h.indexOf(t)})).concat(a([[l,null]])).map((function(e,t){return t===o?b:null})),S=n.merge(C).filter((function(e){return!!e}));return g&&(S=p(S,f,m,n)),e.merge({blockMap:S,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:s,focusKey:o,focusOffset:s,isBackward:!1})})}},function(e,t,n){(function(t){"use strict";var r=n(78),o=n(35),i=n(63),a=n(1);function s(e,t){if(!e)return"[empty]";var n=(function e(t,n){var r=void 0!==n?n(t):[];if(t.nodeType===Node.TEXT_NODE){var o=t.textContent.length;return document.createTextNode("[text "+o+(r.length?" | "+r.join(", "):"")+"]")}var i=t.cloneNode();1===i.nodeType&&r.length&&i.setAttribute("data-labels",r.join(", "));for(var a=t.childNodes,s=0;s<a.length;s++)i.appendChild(e(a[s],n));return i})(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(n instanceof Element||a(!1,"Node must be an Element if it is not a text node."),n.outerHTML)}function c(e,t){for(var n=e;n;){if(n instanceof Element&&n.hasAttribute("contenteditable"))return s(n,t);n=n.parentNode}return"Could not find contentEditable parent of node"}function l(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function u(e,t,n,a){var s=i();if(e.extend&&o(s,t)){n>l(t)&&r.logSelectionStateFailure({anonymizedDom:c(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())});var u=t===e.focusNode;try{e.extend(t,n)}catch(o){throw r.logSelectionStateFailure({anonymizedDom:c(t,(function(t){var n=[];return t===s&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:o?""+o:null,offset:n},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),o}}else{var p=e.getRangeAt(0);p.setEnd(t,n),e.addRange(p.cloneRange())}}function p(e,t,n,o){var i=document.createRange();n>l(t)&&r.logSelectionStateFailure({anonymizedDom:c(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),i.setStart(t,n),e.addRange(i)}e.exports=function(e,n,r,i,a){if(o(document.documentElement,n)){var s=t.getSelection(),c=e.getAnchorKey(),l=e.getAnchorOffset(),d=e.getFocusKey(),f=e.getFocusOffset(),m=e.getIsBackward();if(!s.extend&&m){var g=c,h=l;c=d,l=f,d=g,f=h,m=!1}var v=c===r&&i<=l&&a>=l,y=d===r&&i<=f&&a>=f;if(v&&y)return s.removeAllRanges(),p(s,n,l-i,e),void u(s,n,f-i,e);if(m){if(y&&(s.removeAllRanges(),p(s,n,f-i,e)),v){var _=s.focusNode,b=s.focusOffset;s.removeAllRanges(),p(s,n,l-i,e),u(s,_,b,e)}}else v&&(s.removeAllRanges(),p(s,n,l-i,e)),y&&u(s,n,f-i,e)}}}).call(t,(function(){return this})())},function(e,t,n){"use strict";var r=n(6),o=n(2),i=n(10),a=n(1),s=o.List,c=o.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||a(!1,"Selection range must be collapsed.");var n=t.getAnchorKey(),o=t.getAnchorOffset(),u=e.getBlockMap(),p=u.get(n),d=p.getText(),f=p.getCharacterList(),m=i(),g=p instanceof r,h=p.merge({text:d.slice(0,o),characterList:f.slice(0,o)}),v=h.merge({key:m,text:d.slice(o),characterList:f.slice(o),data:c()}),y=u.toSeq().takeUntil((function(e){return e===p})),_=u.toSeq().skipUntil((function(e){return e===p})).rest(),b=y.concat([[n,h],[m,v]],_).toOrderedMap();return g&&(p.getChildKeys().isEmpty()||a(!1,"ContentBlockNode must not have children"),b=(function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();l(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:s(i)})})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),l(r,e,(function(e){return e.merge({nextSibling:o})})),l(o,e,(function(e){return e.merge({prevSibling:r})}))}))})(b,h,v)),e.merge({blockMap:b,selectionBefore:t,selectionAfter:t.merge({anchorKey:m,anchorOffset:0,focusKey:m,focusOffset:0,isBackward:!1})})}},function(e,t){"use strict";var n=/\r\n?|\n/g;e.exports=function(e){return e.split(n)}},function(e,t){"use strict";var n={isImage:function(e){return"image"===r(e)[0]},isJpeg:function(e){var t=r(e);return n.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function r(e){return e.split("/")}e.exports=n},function(e,t){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟：-？！-／［-｀｛-･⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t){"use strict";var n=(function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._uri=t}return e.prototype.toString=function(){return this._uri},e})();e.exports=n},function(e,t,n){"use strict";var r=n(62),o=n(34),i=n(1),a=(function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t?o.isStrong(t)||i(!1,"Default direction must be a strong direction (LTR or RTL)"):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e})();e.exports=a},function(e,t,n){"use strict";var r=n(152),o="Unknown",i={"Mac OS":"Mac OS X"};var a,s=(new r).getResult(),c=(function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}})(s.browser.version),l={browserArchitecture:s.cpu.architecture||o,browserFullVersion:s.browser.version||o,browserMinorVersion:c.minor||o,browserName:s.browser.name||o,browserVersion:s.browser.major||o,deviceName:s.device.model||o,engineName:s.engine.name||o,engineVersion:s.engine.version||o,platformArchitecture:s.cpu.architecture||o,platformName:(a=s.os.name,i[a]||a||o),platformVersion:s.os.version||o,platformFullVersion:s.os.version||o};e.exports=l},function(e,t,n){"use strict";var r=n(1),o=/\./,i=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,c=/^(\d*)(.*)/;function l(e,t){var n=e.split(i);return n.length>1?n.some((function(e){return b.contains(e,t)})):(function(e,t){var n=e.split(a);if(n.length>0&&n.length<=2||r(!1,'the "-" operator expects exactly 2 operands'),1===n.length)return u(n[0],t);var o=n[0],i=n[1];return g(o)&&g(i)||r(!1,'operands to the "-" operator must be simple (no modifiers)'),u(">="+o,t)&&u("<="+i,t)})(e=n[0].trim(),t)}function u(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),i=f(e),a=i.modifier,s=i.rangeComponents;switch(a){case"<":return p(r,s);case"<=":return-1===(n=_(r,s))||0===n;case">=":return d(r,s);case">":return(function(e,t){return 1===_(e,t)})(r,s);case"~":case"~>":return(function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);m(i)&&(r[o]=i+1+"");return d(e,n)&&p(e,r)})(r,s);default:return(function(e,t){return 0===_(e,t)})(r,s)}}function p(e,t){return-1===_(e,t)}function d(e,t){var n=_(e,t);return 1===n||0===n}function f(e){var t=e.split(o),n=t[0].match(s);return n||r(!1,"expected regex to match but it did not"),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function m(e){return!isNaN(e)&&isFinite(e)}function g(e){return!f(e).modifier}function h(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function v(e,t){var n=e.match(c)[1],r=t.match(c)[1],o=parseInt(n,10),i=parseInt(r,10);return m(o)&&m(i)&&o!==i?y(o,i):y(e,t)}function y(e,t){return typeof e!=typeof t&&r(!1,'"a" and "b" must be of the same type'),e>t?1:e<t?-1:0}function _(e,t){for(var n=(function(e,t){h(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return h(t,e.length),[e,t]})(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=v(r[i],o[i]);if(a)return a}return 0}var b={contains:function(e,t){return l(e.trim(),t.trim())}};e.exports=b},function(e,t){"use strict";var n=/-(.)/g;e.exports=function(e){return e.replace(n,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e){return(function(e){return!!e&&("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)})(e)?Array.isArray(e)?e.slice():(function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1,"toArray: Array-like object expected"),"number"!=typeof t&&r(!1,"toArray: Object needs a length property"),0===t||t-1 in e||r(!1,"toArray: Object should have keys for indices"),"function"==typeof e.callee&&r(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o<t;o++)n[o]=e[o];return n})(e):[e]}},function(e,t){"use strict";var n="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:n||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,n){"use strict";var r=n(139);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(35);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e&&r(t,e)))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r=n(135),o=n(143);function i(e){return null==e?e:String(e)}e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return i(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return i(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?i("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):i(e.style&&e.style[r(t)])}},function(e,t){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t){"use strict";function n(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function o(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}o.withoutScrollbars=function(){return{width:n(),height:r()}},e.exports=o},function(e,t){"use strict";var n=/([A-Z])/g;e.exports=function(e){return e.replace(n,"-$1").toLowerCase()}},function(e,t){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(144);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r<n;r++)(t=arguments[r])&&(e=(e?e+" ":"")+t);return e}},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!e)return null;var o={};for(var i in e)n.call(e,i)&&(o[i]=t.call(r,e[i],i,e));return o}},function(e,t){"use strict";e.exports=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}},function(e,t,n){(function(t){"use strict";n(151),e.exports=t.setImmediate}).call(t,(function(){return this})())},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}(function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}})();var c,l=[],u=!1,p=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,u=!1,(function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}})(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||u||s(f)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){(function(e,t){(function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,c=1,l={},u=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){m(e)}))}:!(function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}})()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){m(e.data)},r=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(m,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&m(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return l[c]=o,r(c),c++},d.clearImmediate=f}function f(e){delete l[e]}function m(e){if(u)setTimeout(m,0,e);else{var t=l[e];if(t){u=!0;try{(function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}})(t)}finally{f(e),u=!1}}}}})("undefined"==typeof self?void 0===e?this:e:self)}).call(t,(function(){return this})(),n(150))},function(e,t,n){var r;(function(o,i){"use strict";var a="model",s="name",c="type",l="vendor",u="version",p="mobile",d="tablet",f={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m={rgx:function(e,t){for(var n,r,o,i,a,s,c=0;c<t.length&&!a;){var l=t[c],u=t[c+1];for(n=r=0;n<l.length&&!a;)if(a=l[n++].exec(e))for(o=0;o<u.length;o++)s=a[++r],"object"==typeof(i=u[o])&&i.length>0?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;c+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(f.has(t[n][r],e))return"?"===n?void 0:n}else if(f.has(t[n],e))return"?"===n?void 0:n;return e}},g={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},h={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[s,u],[/(opios)[\/\s]+([\w\.]+)/i],[[s,"Opera Mini"],u],[/\s(opr)\/([\w\.]+)/i],[[s,"Opera"],u],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser)\/([\w\.-]+)/i],[s,u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[s,"IE"],u],[/(edge)\/((\d+)?[\w\.]+)/i],[s,u],[/(yabrowser)\/([\w\.]+)/i],[[s,"Yandex"],u],[/(puffin)\/([\w\.]+)/i],[[s,"Puffin"],u],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[s,"UCBrowser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],u],[/(micromessenger)\/([\w\.]+)/i],[[s,"WeChat"],u],[/(QQ)\/([\d\.]+)/i],[s,u],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[s,u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[u,[s,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[u,[s,"Facebook"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[u,[s,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[s,/(.+)/,"$1 WebView"],u],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[s,/(.+(?:g|us))(.+)/,"$1 $2"],u],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[u,[s,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[s,u],[/(dolfin)\/([\w\.]+)/i],[[s,"Dolphin"],u],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[s,"Chrome"],u],[/(coast)\/([\w\.]+)/i],[[s,"Opera Coast"],u],[/fxios\/([\w\.-]+)/i],[u,[s,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[s,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,s],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[s,"GSA"],u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[s,[u,m.str,g.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[s,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[s,"Netscape"],u],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[s,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",f.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",f.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",f.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[a,l,[c,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[l,"Apple"],[c,d]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[l,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[l,a,[c,d]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[a,[l,"Amazon"],[c,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[a,m.str,g.device.amazon.model],[l,"Amazon"],[c,p]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,l,[c,p]],[/\((ip[honed|\s\w*]+);/i],[a,[l,"Apple"],[c,p]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[l,a,[c,p]],[/\(bb10;\s(\w+)/i],[a,[l,"BlackBerry"],[c,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[a,[l,"Asus"],[c,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[l,"Sony"],[a,"Xperia Tablet"],[c,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i],[a,[l,"Sony"],[c,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[l,a,[c,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[l,"Nvidia"],[c,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[l,"Sony"],[c,"console"]],[/(sprint\s(\w+))/i],[[l,m.str,g.device.sprint.vendor],[a,m.str,g.device.sprint.model],[c,p]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[l,a,[c,d]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[l,[a,/_/g," "],[c,p]],[/(nexus\s9)/i],[a,[l,"HTC"],[c,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[a,[l,"Huawei"],[c,p]],[/(microsoft);\s(lumia[\s\w]+)/i],[l,a,[c,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[l,"Microsoft"],[c,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,"Microsoft"],[c,p]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[l,"Motorola"],[c,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[l,"Motorola"],[c,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[l,f.trim],[a,f.trim],[c,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,"Samsung"],[c,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[c,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[l,"Samsung"],a,[c,d]],[/smart-tv.+(samsung)/i],[l,[c,"smarttv"],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[l,"Samsung"],a,[c,p]],[/sie-(\w+)*/i],[a,[l,"Siemens"],[c,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[l,"Nokia"],a,[c,p]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[a,[l,"Acer"],[c,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[l,"LG"],[c,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[l,"LG"],a,[c,d]],[/(lg) netcast\.tv/i],[l,a,[c,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[l,"LG"],[c,p]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[l,"Lenovo"],[c,d]],[/linux;.+((jolla));/i],[l,a,[c,p]],[/((pebble))app\/[\d\.]+\s/i],[l,a,[c,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[l,a,[c,p]],[/crkey/i],[[a,"Chromecast"],[l,"Google"]],[/android.+;\s(glass)\s\d/i],[a,[l,"Google"],[c,"wearable"]],[/android.+;\s(pixel c)\s/i],[a,[l,"Google"],[c,d]],[/android.+;\s(pixel xl|pixel)\s/i],[a,[l,"Google"],[c,p]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+)?)\s+build/i],[[a,/_/g," "],[l,"Xiaomi"],[c,p]],[/android.+(mi[\s\-_]*(?:pad)?(?:[\s_]*[\w\s]+)?)\s+build/i],[[a,/_/g," "],[l,"Xiaomi"],[c,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[l,"Meizu"],[c,d]],[/android.+a000(1)\s+build/i],[a,[l,"OnePlus"],[c,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[l,"RCA"],[c,d]],[/android.+[;\/]\s*(Venue[\d\s]*)\s+build/i],[a,[l,"Dell"],[c,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[l,"Verizon"],[c,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[l,"Barnes & Noble"],a,[c,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[l,"NuVision"],[c,d]],[/android.+[;\/]\s*(zte)?.+(k\d{2})\s+build/i],[[l,"ZTE"],a,[c,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[l,"Swiss"],[c,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[l,"Swiss"],[c,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[l,"Zeki"],[c,d]],[/(android).+[;\/]\s+([YR]\d{2}x?.*)\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(.+)\s+build/i],[[l,"Dragon Touch"],a,[c,d]],[/android.+[;\/]\s*(NS-?.+)\s+build/i],[a,[l,"Insignia"],[c,d]],[/android.+[;\/]\s*((NX|Next)-?.+)\s+build/i],[a,[l,"NextBook"],[c,d]],[/android.+[;\/]\s*(Xtreme\_?)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[l,"Voice"],a,[c,p]],[/android.+[;\/]\s*(LVTEL\-?)?(V1[12])\s+build/i],[[l,"LvTel"],a,[c,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[l,"Envizen"],[c,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(.*\b)\s+build/i],[l,a,[c,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[l,"MachSpeed"],[c,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[l,a,[c,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[l,"Rotor"],[c,d]],[/android.+(KS(.+))\s+build/i],[a,[l,"Amazon"],[c,d]],[/android.+(Gigaset)[\s\-]+(Q.+)\s+build/i],[l,a,[c,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[c,f.lowerize],l,a],[/(android.+)[;\/].+build/i],[a,[l,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[s,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[s,u],[/rv\:([\w\.]+).*(gecko)/i],[u,s]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[s,u],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[s,[u,m.str,g.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[s,"Windows"],[u,m.str,g.os.windows.version]],[/\((bb)(10);/i],[[s,"BlackBerry"],u],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[s,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[s,"Symbian"],u],[/\((series40);/i],[s],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[s,"Firefox OS"],u],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[s,u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[s,"Chromium OS"],u],[/(sunos)\s?([\w\.]+\d)*/i],[[s,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[s,u],[/(haiku)\s(\w+)/i],[s,u],[/cfnetwork\/.+darwin/i,/ip[honead]+(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[u,/_/g,"."],[s,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[s,"Mac OS"],[u,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[s,u]]},v=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof v))return new v(e,t).getResult();var n=e||(o&&o.navigator&&o.navigator.userAgent?o.navigator.userAgent:""),r=t?f.extend(h,t):h;return this.getBrowser=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.browser),e.major=f.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return m.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return m.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return m.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};v.VERSION="0.7.17",v.BROWSER={NAME:s,MAJOR:"major",VERSION:u},v.CPU={ARCHITECTURE:"architecture"},v.DEVICE={MODEL:a,VENDOR:l,TYPE:c,CONSOLE:"console",MOBILE:p,SMARTTV:"smarttv",TABLET:d,WEARABLE:"wearable",EMBEDDED:"embedded"},v.ENGINE={NAME:s,VERSION:u},v.OS={NAME:s,VERSION:u},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=v),t.UAParser=v):n(153)?void 0===(r=function(){return v}.call(t,n,t,e))||(e.exports=r):o&&(o.UAParser=v);var y=o&&(o.jQuery||o.Zepto);if(void 0!==y){var _=new v;y.ua=_.getResult(),y.ua.get=function(){return _.getUA()},y.ua.set=function(e){_.setUA(e);var t=_.getResult();for(var n in t)y.ua[n]=t[n]}}})("object"==typeof window?window:this)},function(e,t){(function(t){e.exports=t}).call(t,{})}])})),(function(e){var t="object"==typeof exports&&exports&&!exports.nodeType&&exports,n="object"==typeof module&&module&&!module.nodeType&&module,r="object"==typeof global&&global;r.global!==r&&r.window!==r&&r.self!==r||(e=r);var o,i,a=2147483647,s=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,u={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function f(e){throw new RangeError(u[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(l,".")).split("."),t).join(".")}function h(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function v(e){return m(e,(function(e){var t="";return e>65535&&(t+=d((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=d(e)})).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function b(e){var t,n,r,o,i,s,c,l,u,d,m,g=[],h=e.length,y=0,b=128,C=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&f("not-basic"),g.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<h;){for(i=y,s=1,c=36;o>=h&&f("invalid-input"),((l=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:36)>=36||l>p((a-y)/s))&&f("overflow"),y+=l*s,!(l<(u=c<=C?1:c>=C+26?26:c-C));c+=36)s>p(a/(d=36-u))&&f("overflow"),s*=d;C=_(y-i,t=g.length+1,0==i),p(y/t)>a-b&&f("overflow"),b+=p(y/t),y%=t,g.splice(y++,0,b)}return v(g)}function C(e){var t,n,r,o,i,s,c,l,u,m,g,v,b,C,S,E=[];for(v=(e=h(e)).length,t=128,n=0,i=72,s=0;s<v;++s)(g=e[s])<128&&E.push(d(g));for(r=o=E.length,o&&E.push("-");r<v;){for(c=a,s=0;s<v;++s)(g=e[s])>=t&&g<c&&(c=g);for(c-t>p((a-n)/(b=r+1))&&f("overflow"),n+=(c-t)*b,t=c,s=0;s<v;++s)if((g=e[s])<t&&++n>a&&f("overflow"),g==t){for(l=n,u=36;!(l<(m=u<=i?1:u>=i+26?26:u-i));u+=36)S=l-m,C=36-m,E.push(d(y(m+S%C,0))),l=p(S/C);E.push(d(y(l,0))),i=_(n,b,r==o),n=0,++r}++n,++t}return E.join("")}if(o={version:"1.4.1",ucs2:{decode:h,encode:v},decode:b,encode:C,toASCII:function(e){return g(e,(function(e){return c.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return g(e,(function(e){return s.test(e)?b(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return o}));else if(t&&n)if(module.exports==t)n.exports=o;else for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);else e.punycode=o})(this),define("modules/clean/react/comments2/components/comments_translations",["require","exports","modules/core/i18n"],(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commentsMasterLocalization={intl:n.intl}})),define("modules/clean/react/comments2/data/mentions_api",["require","exports","tslib","external/lodash","modules/clean/contacts/bloodhound_contacts_v2","modules/clean/contacts/data_v2","modules/clean/react/comments2/transforms"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var s=(function(){function e(e,t){var r=this;void 0===t&&(t=!1),this.cache={},this.filterContact=function(e){var t=!!e.group_id,n=!r.allowMentionSelf&&e.email===r.user.email;return!(t||n)},this.updateCache=function(e,t,o){var i,s,c=t.map(a.contactToIMentionUser);if(o){var l=r.cache[e]||[];s=n.__spreadArrays(l,c)}else s=c;return r.cache=n.__assign(n.__assign({},r.cache),((i={})[e]=s,i)),r.cache},this.user=e,this.allowMentionSelf=t,this.dataSource=new i.ContactsDataSourceV2(e,this.filterContact)}return e.prototype.query=function(e,t,n){var r=this;this.dataSource.search(e,(function(n){t(r.updateCache(e,n,!1))}),(function(o){(n||t)(r.updateCache(e,o,!0))}))},e.prototype.getMatchesWithStarterSuggestions=function(){var e=o.BloodhoundContactsV2.getAll(this.user).filter(this.filterContact).map(a.contactToIMentionUser),t=r.sortBy(e.slice(0,50),(function(e){return e.name||e.email}));return this.cache=n.__assign(n.__assign({},this.cache),{"":t}),this.cache},e})();t.MentionsApiImpl=s,t.mentionsApi=function(e,t){return e?new s(e,t):{cache:{},query:function(){},getMatchesWithStarterSuggestions:function(){return{}}}}})),define("modules/clean/react/comments2/transforms",["require","exports","tslib","modules/core/user_i18n"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),t.dbxUserToIUser=function(e){return{id:e.account_id,name:{display:e.display_name,initials:r.getInitials(e.display_name),public:r.getShortName(e.display_name)},photoUrl:e.photo_circle_url}},t.sharingTextAndUsersToICommentContent=function(e,t){if(!t.length)return{metadata:[],text:e};for(var n=[],o=[],i=0,a=0,s=t;a<s.length;a++){var c=s[a],l=void 0,u=void 0;"accountId"in c?(l=r.getShortName(c.displayName),u={type:"id",identifier:c.accountId}):(l=c.email,u={type:"email",identifier:c.email}),l&&(l="@"+l,n.push(l),o.push({location:{start:i,end:i+l.length},type:"mention",user:u}),i+=l.length+1)}return n.push(e),{text:n.join(" "),metadata:o}},t.contactToIMentionUser=function(e){return{id:e.dbx_account_id,email:e.email,name:{display:e.name,initials:r.getInitials(e.name),public:r.getShortName(e.name)},photoUrl:e.photo_url||e.avatar_url}}})),define("modules/clean/react/folder_overview/content_references",["require","exports","tslib","react-redux","react","retrieval-components/pinned-item","modules/clean/browse_uri_interface","modules/clean/react/browse/models","modules/clean/react/folder_overview/data/action_creators","modules/clean/react/folder_overview/data/selectors","modules/clean/react/folder_overview/logging","modules/clean/react/icon/file_folder_icon","modules/clean/react/icon/folder_icon","modules/clean/web_user_action_events","modules/core/browser","modules/core/i18n"],(function(e,t,n,r,o,i,a,s,c,l,u,p,d,f,m,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o=n.__importDefault(o),c=n.__importStar(c),l=n.__importStar(l),m=n.__importStar(m);var h={removeContentReferences:c.removeContentReferences},v=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handlePinnedItemUnpin=function(e){var n=t.props.folderFileId;n&&t.props.removeContentReferences({folderFileId:n,fileIds:[e.file_id],componentNamespace:t.props.componentNamespace}),u.logFolderOverviewAction(f.WebUserActionLogEvent.FOLDER_OVERVIEW_UNPIN,t.props.user.id,e)},t.handlePinnedItemClick=function(e){u.logFolderOverviewAction(f.WebUserActionLogEvent.FOLDER_OVERVIEW_PIN_CLICK,t.props.user.id,e),void 0!==e.ns_id?t.props.onNavigateToFileOrFolder(e):m.redirect(a.href_for_file(t.props.user,e))},t}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.user,c=t.pinnedItems,l=t.isReadOnly;return c&&c.length?o.default.createElement("div",{className:"folder-overview__content-references"},c.map((function(t){if(t.isDeleted||!t.fq_path)return null;var c={className:"folder-overview__content-reference",filename:s.File.getFilename(t),fqPath:t.fq_path,onClick:function(){return e.handlePinnedItemClick(t)},url:a.href_for_file(r,t),subtitle:s.File.getCategoryDescription(t)};if(l||(c=n.__assign(n.__assign({},c),{menuOptions:l?void 0:[{key:"unpin",label:g.intl.formatMessage({id:"LrpqA7",defaultMessage:"Unpin"})}],onMenuOptionClick:function(n){switch(n){case"unpin":e.handlePinnedItemUnpin(t)}},menuLabel:""})),t.is_dir)return o.default.createElement(i.PinnedItem,n.__assign({},c,{key:t.file_id,isFolder:!0,folderIcon:d.convertLegacyFolderIconToSpectrum(t.icon,"large")}));var u=n.__assign(n.__assign({},c),{thumbnailUrl:p.getThumbnailUrlForItem(t.thumbnail_url_tmpl,256)});return o.default.createElement(i.PinnedItem,n.__assign({key:t.file_id},u))}))):null},t})(o.default.PureComponent);t.FolderOverviewContentReferencesComponent=v;var y=r.connect((function(){var e=l.makeFolderFileIdSelector(),t=l.makePinnedItemsSelector();return function(n,r){return{user:l.user(n),folderFileId:e(n,r),pinnedItems:t(n,r)}}}),h);t.FolderOverviewContentReferences=y(v)})),define("modules/clean/react/folder_overview/description",["require","exports","tslib","classnames","draft-js","external/lodash","react","react-redux","comments2/components/folder_overview_editor","comments2/components/folder_overview_utils","spectrum/icon_action","modules/clean/filepath","modules/clean/react/browse/data/selectors","modules/clean/react/comments2/components/comments_translations","modules/clean/react/comments2/data/mentions_api","modules/clean/react/folder_overview/api","modules/clean/react/folder_overview/constants","modules/clean/react/folder_overview/data/action_creators","modules/clean/react/folder_overview/data/selectors","modules/clean/react/folder_overview/examples_modal","modules/clean/react/folder_overview/logging","modules/clean/react/folder_overview/placeholder","modules/clean/react/folder_overview/utils","modules/clean/react/snackbar","modules/clean/sharing/browse_exports","modules/clean/web_user_action_events","modules/core/browser_detection","modules/core/exception","modules/core/i18n"],(function(e,t,n,r,o,i,a,s,c,l,u,p,d,f,m,g,h,v,y,_,b,C,S,E,w,x,k,T,M){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),i=n.__importStar(i),a=n.__importDefault(a),p=n.__importStar(p),d=n.__importStar(d),g=n.__importStar(g),v=n.__importStar(v),y=n.__importStar(y),k=n.__importStar(k);var O={addLoadedComponent:v.addLoadedComponent,updateFolderData:v.updateFolderDataCache,saveDescriptionDraft:v.saveDescriptionDraft,setDescriptionHasFocus:v.setDescriptionHasFocus},L=(function(e){function t(t){var r=e.call(this,t)||this;return r.linkPromptHasFocus=function(){return!(!document.activeElement||"link-prompt-input"!==document.activeElement.className)},r.immediatelySaveDescriptionDraft=function(){r.delayedSaveDescriptionDraft.cancel(),r.throttledUpdateDescription.cancel(),r.handleDescriptionUpdated(),r.saveDescriptionDraft()},r.saveDescriptionDraft=function(){var e=r.props,t=e.hasUnsavedDraft,n=e.saveDescriptionDraft,o=e.folderFileId,i=e.componentNamespace,a=e.user;t&&(n({folderFileId:o,componentNamespace:i}),b.logFolderOverviewAction(x.WebUserActionLogEvent.FOLDER_OVERVIEW_DESCRIPTION_SAVE,a.id,null,{action_surface:r.loggingActionSurface,retrieval_source:r.loggingRetrievalSource}))},r.handleBeforeUnload=function(e){r.immediatelySaveDescriptionDraft(),r.props.hasUnsavedDraft&&(e.preventDefault(),e.returnValue="")},r.handleDescriptionMention=function(e){return"email"===e.type&&e.identifier===r.props.user.email||"id"===e.type&&e.identifier===r.props.user.id.toString()?Promise.resolve({mentionedUserHasAccess:!0,shouldShowSharePopup:!1}):r.props.user.cdm_tmf_path&&p.paths_are_equal(r.props.user.cdm_tmf_path,r.props.path)?(E.Snackbar.fail(h.ERROR_SHARE_MEMBER_FOLDER,"folder-overview-mention"),Promise.resolve({mentionedUserHasAccess:!1,shouldShowSharePopup:!1})):g.getFolderAccess({userId:r.props.user.id,sharedFolderId:r.props.sharedFolderId,accountEmail:"email"===e.type?e.identifier:void 0,accountId:"id"===e.type?e.identifier:void 0}).then((function(e){return{mentionedUserHasAccess:e.has_access,shouldShowSharePopup:!e.has_access}})).catch((function(e){var t=r.props.canShareFolder;return t||E.Snackbar.fail(h.ERROR_SHARE_NO_PERMISSION,"folder-overview-mention"),{mentionedUserHasAccess:!1,shouldShowSharePopup:t}}))},r.handleDescriptionShare=function(e,t,n,o){w.asyncShowPrefilledShareModal({user:r.props.user,sharePrefillEmails:[e.identifier],content:{fqPath:r.props.sharedFolderPath,isFolder:!0},extras:{onSuccessSharing:function(){r.handleDescriptionMention(e).then((function(e){return e.mentionedUserHasAccess&&o()}))},recipientMessage:r.generateShareMessage(t)}})},r.generateShareMessage=function(e){return r.props.sharedFolderPath&&!p.paths_are_equal(r.props.sharedFolderPath,r.props.path)?e&&e.length?M.intl.formatMessage(h.SHARING_MODAL_MESSAGE_PARENT_FOLDER,{user_name:e,folder_name:S.pathFromSharingFolder(r.props.sharedFolderPath,r.props.path)}):M.intl.formatMessage(h.SHARING_MODAL_MESSAGE_PARENT_FOLDER_NO_NAME,{folder_name:S.pathFromSharingFolder(r.props.sharedFolderPath,r.props.path)}):e&&e.length?M.intl.formatMessage(h.SHARING_MODAL_MESSAGE_SAME_FOLDER,{user_name:e}):h.SHARING_MODAL_MESSAGE_SAME_FOLDER_NO_NAME},r.stateFromProps=function(e){try{return{editorState:e.content?o.EditorState.createWithContent(o.convertFromRaw(e.content)):o.EditorState.createEmpty()}}catch(t){return T.reportException({err:t,tags:["folder-overview","browse"],severity:"user-error",exc_extra:{description:e.content}}),{editorState:o.EditorState.createEmpty()}}},r.handleDescriptionUpdated=function(){var e=void 0,t=o.convertToRaw(r.state.editorState.getCurrentContent()),n=l.isEmptyDescription(t);!r.props.content&&n||(e=t),r.props.updateFolderData({fileId:r.props.folderFileId,folderData:{descriptionDraft:e&&!n?JSON.stringify(e):""}}),r.delayedSaveDescriptionDraft()},r.handleEditorStateChange=function(e){if(!r.props.isReadOnly){var t=e.getSelection().getHasFocus()||r.linkPromptHasFocus(),n=r.props.descriptionHasFocus,o=r.state.editorState.getCurrentContent()!==e.getCurrentContent();r.props.setDescriptionHasFocus({componentNamespace:r.props.componentNamespace,descriptionHasFocus:t,folderFileId:r.props.folderFileId}),r.setState({editorState:e}),!t&&n?r.immediatelySaveDescriptionDraft():o&&r.throttledUpdateDescription()}},r.handleOpenLink=function(e){window.open(e)},r.handleMentionsQueryUpdated=function(e){r.mentionsApi&&(e.trim().length?r.mentionsApi.query(e,(function(e){r.setState({mentionsQueryCache:r.fixNamesForMentionsQueryCache(e)})})):r.setState({mentionsQueryCache:r.fixNamesForMentionsQueryCache(r.mentionsApi.getMatchesWithStarterSuggestions())}))},r.fixNamesForMentionsQueryCache=function(e){var t={};return Object.keys(e).forEach((function(r){t[r]=e[r].map((function(e){return n.__assign(n.__assign({},e),{name:n.__assign(n.__assign({},e.name),{public:e.name.display||e.name.public})})}))})),t},r.handleShare=function(e,t,n){var o=e.identifier;r.handleDescriptionShare(e,r.getNameFromMentionsCache(o),t,n)},r.getNameFromMentionsCache=function(e){for(var t=0,n=Object.keys(r.state.mentionsQueryCache);t<n.length;t++)for(var o=n[t],i=0,a=r.state.mentionsQueryCache[o];i<a.length;i++){var s=a[i];if(s.email===e)return s.name.display}return""},r.shouldShowPlaceholder=function(){if(r.props.shouldHidePlaceholder)return!1;var e=r.state.editorState,t=e.getCurrentContent();return!t.hasText()&&"unstyled"===t.getFirstBlock().getType()&&!e.getSelection().getHasFocus()},r.setDraftRef=function(e){r.draftRef=e},r.handlePlaceholderContainerClick=function(e){e.preventDefault(),e.stopPropagation(),r.draftRef&&r.draftRef.focusEditor()},r.handleFolderExamplesButtonClick=function(e){e&&e.stopPropagation(),_.OverviewExamplesModal.show();var t="search-sidebar"===r.props.componentNamespace?x.RetrievalSourceValue.SEARCH:x.RetrievalSourceValue.BROWSE;b.logFolderOverviewAction(x.WebUserActionLogEvent.FOLDER_OVERVIEW_EXAMPLES_CLICK,r.props.user.id,null,{retrieval_source:t})},r.getToolbarScrollContainerEl=function(){return r.props.limitedWidth?null:document.documentElement},r.handleTaskChecked=function(e,t){r.props.setDescriptionHasFocus({componentNamespace:r.props.componentNamespace,descriptionHasFocus:!0,folderFileId:r.props.folderFileId}),t&&b.logFolderOverviewAction(x.WebUserActionLogEvent.FOLDER_OVERVIEW_TASK_COMPLETED,r.props.user.id,null,b.makeOverviewResourceExtras({folderFileId:r.props.folderFileId,retrievalSource:r.loggingRetrievalSource,action_surface:r.loggingActionSurface,loggingFileId:r.props.loggingFileId})),r.immediatelySaveDescriptionDraft()},r.state=r.stateFromProps(t),r.delayedSaveDescriptionDraft=i.debounce(r.saveDescriptionDraft,h.DESCRIPTION_SAVE_DELAY_MS),r.throttledUpdateDescription=i.throttle(r.handleDescriptionUpdated,100),t.isReadOnly||(r.mentionsApi=m.mentionsApi(t.user,!0)),r}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.props.addLoadedComponent({componentNamespace:this.props.componentNamespace,component:"draftjs"}),window.addEventListener("beforeunload",this.handleBeforeUnload)},t.prototype.componentWillReceiveProps=function(e){(!p.paths_are_equal(e.path,this.props.path)&&(e.folderFileId||e.folderNsId)||!this.props.folderNsId&&!this.props.folderFileId&&e.folderNsId)&&this.immediatelySaveDescriptionDraft(),e.descriptionKey===this.props.descriptionKey||this.state.editorState.getSelection().getHasFocus()||this.linkPromptHasFocus()||this.setState(this.stateFromProps(e)),this.mentionsApi||e.isReadOnly||(this.mentionsApi=m.mentionsApi(this.props.user))},t.prototype.componentWillUnmount=function(){window.removeEventListener("beforeunload",this.handleBeforeUnload),this.props.hasUnsavedDraft&&this.immediatelySaveDescriptionDraft()},Object.defineProperty(t.prototype,"editorFeatures",{get:function(){return{restylingWithFixedToolbar:!0,tasks:!0,mentions:!0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loggingRetrievalSource",{get:function(){return"search-sidebar"===this.props.componentNamespace?x.RetrievalSourceValue.SEARCH:x.RetrievalSourceValue.BROWSE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loggingActionSurface",{get:function(){return"BROWSE"===this.props.componentNamespace?x.ActionSurfaceLogValue.CENTER_PANE:x.ActionSurfaceLogValue.RIGHT_SIDEBAR},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.isReadOnly,n=e.showReadOnlyIcon,o=e.author,s=e.showExamplesInPlaceholder,l=this.state.editorState,p=this.shouldShowPlaceholder(),d=f.commentsMasterLocalization;return a.default.createElement("div",{className:"folder-overview__description-container"},t&&n&&a.default.createElement(u.IconAction,{name:"permissions",className:"folder-overview__inline-readonly-icon"}),a.default.createElement("div",{className:r.default({"folder-overview__description":!0,"folder-overview__placeholder":p,"folder-overview__fixed-toolbar":this.editorFeatures.restylingWithFixedToolbar}),onClick:p?this.handlePlaceholderContainerClick:i.noop},p&&a.default.createElement(C.FolderOverviewPlaceholder,{onExampleButtonClick:this.handleFolderExamplesButtonClick,showExamplesAsButton:!0,showExamples:!t&&s,isReadOnly:this.props.isReadOnly,isSpace:this.props.isSpace}),a.default.createElement(c.FolderOverviewEditor,{author:o,features:this.editorFeatures,localization:d,editorState:l,readOnly:t,onEditorStateChange:this.handleEditorStateChange,onOpenLink:this.handleOpenLink,onMentionsQueryUpdated:this.handleMentionsQueryUpdated,enableEmailMention:!0,mentionShareFlowHandlers:{onMention:this.handleDescriptionMention,onShare:this.handleShare},mentionsMatches:this.state.mentionsQueryCache,shareableResourceName:this.props.sharedFolderName,toolbarButtonOnboarding:this.handleFolderExamplesButtonClick,setDraftRef:this.setDraftRef,getToolbarScrollContainerEl:this.getToolbarScrollContainerEl,limitedWidth:this.props.limitedWidth,toolbarHeightWithMargin:0,toolbarTopMargin:this.props.toolbarTopMargin,isMac:k.mac,hideAllToolbars:k.iOS||this.props.hideAllToolbars,onTaskChecked:this.handleTaskChecked})))},t})(a.default.PureComponent);t.FolderOverviewDescriptionComponent=L;var D=s.connect((function(){var e=y.makeSharedFolderPathSelector(),t=y.makeIsSpaceSelector(),n=y.makeFolderFileIdSelector(),r=y.makeFolderNsIdSelector(),o=y.makeSharedFolderIdSelector(),i=y.makeDescriptionContentSelector(),a=y.makeLoggingFileIdSelector(),s=y.makeDescriptionHasFocusSelector(),c=y.makeSharedFolderNameSelector(),l=y.makeHasUnsavedDescriptionDraftSelector();return function(u,p){return{user:y.user(u),browseContext:d.context(u),author:y.descriptionAuthorSelector(u),folderFileId:n(u,p),folderNsId:r(u,p),sharedFolderId:o(u,p),sharedFolderPath:e(u,p),content:i(u,p),sharedFolderName:c(u,p),hasUnsavedDraft:l(u,p),descriptionHasFocus:s(u,p),loggingFileId:a(u,p),isSpace:t(u,p)}}}),O);t.FolderOverviewDescription=D(L)})),define("modules/clean/react/folder_overview/examples_modal",["require","exports","tslib","react","retrieval-components/overview-examples","spectrum/modal","modules/clean/logging/hive/schemas/web-modal-activity","modules/clean/react/modal","modules/clean/web_modal_activity_logger","modules/core/i18n"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),s=n.__importStar(s);var u={header:l.intl.formatMessage({id:"F7yotX",defaultMessage:"Overview examples to inspire you"}),examples:{"team-space":{title:l.intl.formatMessage({id:"O1Rhla",defaultMessage:"Team Space"}),subtitle:l.intl.formatMessage({id:"1G2/ot",defaultMessage:"A virtual gathering place for your team"})},"project-space":{title:l.intl.formatMessage({id:"VXM7Tc",defaultMessage:"Project Space"}),subtitle:l.intl.formatMessage({id:"3RMNFv",defaultMessage:"Coordinate project work in one place"})},"personal-space":{title:l.intl.formatMessage({id:"9GwZlG",defaultMessage:"Personal Space"}),subtitle:l.intl.formatMessage({id:"SqvHOe",defaultMessage:"A space for your own stuff"})}},teamSpace:{title:l.intl.formatMessage({id:"O1Rhla",defaultMessage:"Team Space"}),paragraph:r.default.createElement(r.default.Fragment,null,l.intl.formatMessage({id:"vyU6bP",defaultMessage:"Welcome to the team! Here’s who you should know. And read the <blue>project doc</blue> to get started."},{blue:function(e){return r.default.createElement(o.BlueText,null,e)}})),header:l.intl.formatMessage({id:"IYiHJp",defaultMessage:"Team"}),lead:r.default.createElement(r.default.Fragment,null,l.intl.formatMessage({id:"UdPKgS",defaultMessage:"Lead: <blue>@angela</blue>"},{blue:function(e){return r.default.createElement(o.BlueText,null,e)}})),design:r.default.createElement(r.default.Fragment,null,l.intl.formatMessage({id:"weIeek",defaultMessage:"Design: <blue>@bob</blue>"},{blue:function(e){return r.default.createElement(o.BlueText,null,e)}})),eng:r.default.createElement(r.default.Fragment,null,l.intl.formatMessage({id:"n9Od3w",defaultMessage:"Eng: <blue>@rick</blue>, <blue>@karen</blue>, <blue>@mary</blue>"},{blue:function(e){return r.default.createElement(o.BlueText,null,e)}})),maryTask:r.default.createElement(r.default.Fragment,null,l.intl.formatMessage({id:"cktSyi",defaultMessage:"<blue>@mary</blue>, add your photo to the directory! {emoji}"},{blue:function(e){return r.default.createElement(o.BlueText,null,e)},emoji:r.default.createElement(r.default.Fragment,null,"📷")})),pinnedItems:[{title:l.intl.formatMessage({id:"S4kv4M",defaultMessage:"Directory"}),age:l.intl.formatMessage({id:"D3IxOv",defaultMessage:"Pinned 5 days ago"})},{title:l.intl.formatMessage({id:"TXLkCC",defaultMessage:"Meetings Notes"}),age:l.intl.formatMessage({id:"8Yy3df",defaultMessage:"Pinned 3 days ago"})}]},projectSpace:{title:l.intl.formatMessage({id:"VXM7Tc",defaultMessage:"Project Space"}),paragraph:l.intl.formatMessage({id:"yMtPEx",defaultMessage:"For our Sept 2019 issue, let’s try streamlining our process with the following two folders."}),sections:[{header:l.intl.formatMessage({id:"IqMdhu",defaultMessage:"Drafts"}),paragraph:l.intl.formatMessage({id:"ZBskvc",defaultMessage:"Everyone, put your drafts here. Create a subfolder with your name."})},{header:l.intl.formatMessage({id:"ZysizF",defaultMessage:"Final"}),paragraph:r.default.createElement(r.default.Fragment,null,l.intl.formatMessage({id:"AQ10W0",defaultMessage:"<blue>@angela</blue> put final version here once approved"},{blue:function(e){return r.default.createElement(o.BlueText,null,e)}}))}],pinnedItems:[{title:l.intl.formatMessage({id:"3c3ixc",defaultMessage:"To retouch"}),age:l.intl.formatMessage({id:"D3IxOv",defaultMessage:"Pinned 5 days ago"})},{title:l.intl.formatMessage({id:"cdao0h",defaultMessage:"To reprint"}),age:l.intl.formatMessage({id:"8Yy3df",defaultMessage:"Pinned 3 days ago"})}]},personalSpace:{title:l.intl.formatMessage({id:"9GwZlG",defaultMessage:"Personal Space"}),paragraph:l.intl.formatMessage({id:"3qaRMB",defaultMessage:"Here are all the photos from our recent vacation to Hawaii, and a few to-do items to prep for the photo book!"}),header:l.intl.formatMessage({id:"0SFVaR",defaultMessage:"Stuff to do:"}),tasks:[l.intl.formatMessage({id:"LViFNI",defaultMessage:"Split into folders for each island"}),l.intl.formatMessage({id:"1/F8qd",defaultMessage:"Ask Jessica about retouching issues"})],pinnedItems:[{title:l.intl.formatMessage({id:"3c3ixc",defaultMessage:"To retouch"}),age:l.intl.formatMessage({id:"D3IxOv",defaultMessage:"Pinned 5 days ago"})},{title:l.intl.formatMessage({id:"cdao0h",defaultMessage:"To reprint"}),age:l.intl.formatMessage({id:"8Yy3df",defaultMessage:"Pinned 3 days ago"})}]}},p=(function(e){function t(){var t=e.call(this,{})||this;return t.handleRequestClose=function(){t.logger.log(a.ModalEventName.CLOSE),t.setState({isOpen:!1})},t.state={isOpen:!0},t}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.logger=new c.WebModalActivityLogger(a.ModalName.FOLDER_OVERVIEW_EXAMPLES),this.logger.log(a.ModalEventName.SHOW)},t.prototype.render=function(){return r.default.createElement(i.Modal,{width:820,open:this.state.isOpen,ariaLabel:l.intl.formatMessage({id:"xK+xtZ",defaultMessage:"Folder Overview examples"}),onRequestClose:this.handleRequestClose,appElement:document.getElementById("embedded-app"),shouldFocusAfterRender:!0,displayCloseButton:!0,className:"fo-ex__modal"},r.default.createElement(o.OverviewExamples,{frameStyle:"web",strings:u}))},t.show=function(){s.Modal.showInstance(r.default.createElement(t,null))},t})(r.default.PureComponent);t.OverviewExamplesModal=p})),define("modules/clean/react/folder_overview/last_edit",["require","exports","tslib","react-redux","react","spaces-components/last_edit","modules/clean/datetime","modules/clean/react/css","modules/clean/react/folder_overview/constants","modules/clean/react/folder_overview/data/action_creators","modules/clean/react/folder_overview/data/selectors","modules/clean/react/folder_overview/data/types","modules/clean/react/folder_overview/utils","modules/core/i18n"],(function(e,t,n,r,o,i,a,s,c,l,u,p,d,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o=n.__importDefault(o),l=n.__importStar(l),u=n.__importStar(u);var m={reloadDescription:l.reloadDescription},g=(function(e){function t(t){var n=e.call(this,t)||this;return n.stateFromProps=function(e){return void 0===e&&(e=n.props),{message:n.createMessage(e),conflictPopup:n.createConflictPopup(e)}},n.onTimeout=function(){n.setState(n.stateFromProps()),n.updateTimer=setTimeout(n.onTimeout,3e4)},n.createMessage=function(e){if(!e.lastModifiedTime)return"";var t=a.ago(1e3*e.lastModifiedTime,!1);return e.isFolderOverviewEmpty?e.lastModifiedUserId===e.user.account_id?f.intl.formatMessage(c.DESCRIPTION_LAST_EDIT_EMPTY_YOU,{time_ago:t}):e.lastModifiedUser?f.intl.formatMessage(c.DESCRIPTION_LAST_EDIT_EMPTY,{time_ago:t,name:e.lastModifiedUser.name.display_name}):"":e.lastModifiedUserId===e.user.account_id?f.intl.formatMessage(c.DESCRIPTION_LAST_EDIT_YOU,{time_ago:t}):e.lastModifiedUser?f.intl.formatMessage(c.DESCRIPTION_LAST_EDIT,{time_ago:t,name:e.lastModifiedUser.name.display_name}):""},n.handleLastEditDismiss=function(){n.props.reloadDescription({folderFileId:n.props.folderFileId,componentNamespace:n.props.componentNamespace})},n.createConflictPopup=function(e){if(e.descriptionSaveState===p.DescriptionSaveState.CONFLICT){if(e.lastModifiedUserId===e.user.account_id)return{title:c.CONFLICT_POPUP_TITLE_YOU,message:c.CONFLICT_POPUP_CONTENT_YOU,dismissButtonLabel:c.CONFLICT_POPUP_BUTTON,onDismissHandler:n.handleLastEditDismiss,userInitials:d.userInitials(e.user),userPhotoUrl:e.user.photo_url};if(e.lastModifiedUser)return{title:f.intl.formatMessage(c.CONFLICT_POPUP_TITLE,{user:e.lastModifiedUser.name.display_name}),message:c.CONFLICT_POPUP_CONTENT,dismissButtonLabel:c.CONFLICT_POPUP_BUTTON,onDismissHandler:n.handleLastEditDismiss,userInitials:d.userInitials(e.lastModifiedUser),userPhotoUrl:e.lastModifiedUser.profile_photo_url}}},n.state=n.stateFromProps(t),n}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.updateTimer=setTimeout(this.onTimeout,3e4)},t.prototype.componentWillUnmount=function(){clearTimeout(this.updateTimer)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.setState(this.stateFromProps(e))},t.prototype.render=function(){return this.state.message?o.default.createElement(i.LastEditComponent,{lastEditMessage:this.state.message,conflictPopup:this.state.conflictPopup,isEditorFocused:this.props.descriptionHasFocus,userEditingMessage:c.FOLDER_OVERVIEW_EDITOR_EDITING}):null},t})(o.default.PureComponent);t.FolderOverviewLastEditComponent=g;var h=r.connect((function(){var e=u.makeFolderFileIdSelector(),t=u.makeLastModifiedTimeSelector(),n=u.makeLastModifiedUserSelector(),r=u.makeLastModifiedUserIdSelector(),o=u.makeDescriptionSaveStateSelector(),i=u.makeIsFolderOverviewEmptySelector(),a=u.makeDescriptionHasFocusSelector();return function(s,c){return{user:u.user(s),folderFileId:e(s,c),lastModifiedTime:t(s,c),lastModifiedUser:n(s,c),lastModifiedUserId:r(s,c),descriptionSaveState:o(s,c),isFolderOverviewEmpty:i(s,c),descriptionHasFocus:a(s,c)}}}),m);t.FolderOverviewLastEdit=h(s.requireCssWithComponent(g,["/static/js/spaces-components/index.web-vfllFOYrv.css"]))})),define("modules/clean/react/folder_overview/pin_to_modal",["require","exports","tslib","react","spectrum/modal","retrieval-components/folder-list","modules/clean/filepath","modules/clean/logging/hive/schemas/web-modal-activity","modules/clean/react/folder_overview/constants","modules/clean/react/modal","modules/clean/ux_analytics_modal_tracking","modules/clean/ux_analytics_utils","modules/clean/viewer","modules/clean/web_modal_activity_logger","modules/core/i18n"],(function(e,t,n,r,o,i,a,s,c,l,u,p,d,f,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),a=n.__importStar(a),l=n.__importStar(l);var g=(function(e){function t(t){var n=e.call(this,t)||this;return n.makeFoldersFromProps=function(e){void 0===e&&(e=n.props);var t=a.normalize(e.path).split("/"),r=[],o="";return t.forEach((function(t){o=a.normalize(o+"/"+t),r.push({path:o,name:a.paths_are_equal("/",t)?a.filename("",d.Viewer.get_root_name(e.user)):t,icon:e.user.is_cdm_member&&a.paths_are_equal(o,e.user.cdm_tmf_path)?"folder_team_member-small":"folder-small",isClickable:!e.isCurrentPathReadOnly||!a.paths_are_equal(o,e.path),hasSubfolders:!1,subtitle:a.paths_are_equal(o,e.path)?m.intl.formatMessage({id:"y4e6b/",defaultMessage:"This folder"}):void 0})})),r.reverse(),r},n.close=function(){n.setState({isOpen:!1}),p.dispatchModalClosed()},n.handleSuccess=function(){n.logger.log(s.ModalEventName.SUCCESS),n.props.onFolderSelected(n.state.selectedPath),n.close()},n.handleCancel=function(){n.close()},n.handleReady=function(){n.logger.log(s.ModalEventName.READY),p.dispatchModalOpened()},n.handleRequestClose=function(){n.logger.log(s.ModalEventName.CLOSE),n.close()},n.handlePrimaryButtonClick=function(e){n.logger.log(s.ModalEventName.PRIMARY_CLICK,{path:e})},n.handleSecondaryButtonClick=function(){n.logger.log(s.ModalEventName.SECONDARY_CLICK)},n.handleFolderSelected=function(e){n.setState({selectedPath:e})},n.handlePrimaryAction=function(){n.handlePrimaryButtonClick(),n.handleSuccess()},n.handleSecondaryAction=function(){n.handleSecondaryButtonClick(),n.handleCancel()},n.state={isOpen:!0,selectedPath:a.normalize(t.isCurrentPathReadOnly?a.parent_dir(t.path):t.path),folders:n.makeFoldersFromProps(t)},n}return n.__extends(t,e),t.prototype.componentDidMount=function(){this.logger=new f.WebModalActivityLogger(s.ModalName.FOLDER_OVERVIEW_PIN_TO),this.logger.log(s.ModalEventName.SHOW)},Object.defineProperty(t.prototype,"title",{get:function(){return 1===this.props.files.length?m.intl.formatMessage(c.PIN_TO_MODAL_TITLE_SINGLE,{name:a.filename(this.props.files[0].fq_path)}):m.intl.formatMessage(c.PIN_TO_MODAL_TITLE_MULTIPLE,{num:this.props.files.length})},enumerable:!0,configurable:!0}),t.prototype.render=function(){return r.default.createElement(o.UtilityModal,{className:"folder-overview__pin-to-modal",onReady:this.handleReady,primaryAction:m.intl.formatMessage({id:"nJGEFH",defaultMessage:"Pin"}),secondaryAction:m.intl.formatMessage({id:"d9/SE1",defaultMessage:"Cancel"}),onPrimaryAction:this.handlePrimaryAction,onSecondaryAction:this.handleSecondaryAction,title:this.title,ariaLabel:this.title,open:this.state.isOpen,onRequestClose:this.handleRequestClose,appElement:document.getElementById("embedded-app"),shouldRequestCloseOnActions:!1,bodyId:"folder-overview-pin-to-modal",shouldFocusAfterRender:!0},r.default.createElement(i.FolderList,{folders:this.state.folders,onFolderSelected:this.handleFolderSelected,selectedPath:this.state.selectedPath}),r.default.createElement(u.UXAnalyticsModalTracking,{id:"folder-overview-pin-to"}))},t.show=function(e){l.Modal.showInstance(r.default.createElement(t,n.__assign({},e)))},t})(r.default.PureComponent);t.FolderOverviewPinToModal=g})),define("retrieval-components/folder-list",["require","exports","tslib","react","classnames","spectrum/media_table","spectrum/table","spectrum/icon_content","spectrum/icon_arrow","retrieval-components/truncated-string"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),o=n.__importDefault(o);var u=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleSelect=function(e,t){n.props.onFolderSelected(e.path)},n.handleHover=function(e,t){n.setState({focusedPath:e.path})},n.state={},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,o=t.folders,i=t.selectedPath,s=(t.onFolderSelected,t.ref,t.contentOverride),c=t.header,l=n.__rest(t,["folders","selectedPath","onFolderSelected","ref","contentOverride","header"]);return r.default.createElement(a.Table,Object.assign({columnFlex:["1 1","0 0 64px"],"aria-rowcount":o.length,"aria-colcount":1},l),c,r.default.createElement(a.TableBody,{className:"rc-folder-list"},s||o.map((function(t,n){return r.default.createElement(p,{key:n,folder:t,index:n,onFolderSelect:e.handleSelect,onHover:e.handleHover,isSelected:t.path===i,isFocused:t.path===e.state.focusedPath,autoFocus:t.path===i})}))))},t})(r.default.PureComponent);t.FolderList=u;var p=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.handleClick=function(){t.props.onFolderSelect(t.props.folder,t.props.index)},t.handleMouseOver=function(){t.props.onHover(t.props.folder,t.props.index)},t.handleFocus=function(){t.props.onHover(t.props.folder,t.props.index)},t.handleKeyDown=function(e){switch(e.keyCode){case 13:t.props.onFolderSelect(t.props.folder,t.props.index)}},t}return n.__extends(t,e),Object.defineProperty(t.prototype,"rowProps",{get:function(){var e=this.props,t=e.folder,r=e.isSelected,i=e.isFocused,a=(e.index,e.onFolderSelect,e.onHover,n.__rest(e,["folder","isSelected","isFocused","index","onFolderSelect","onHover"])),s=n.__assign(n.__assign({},a),{className:o.default({"rc-folder-list__row":!0,"rc-folder-list__row--read-only":!t.isClickable,"rc-folder-list__row--focused":i,"rc-folder-list__row--selected":r}),variant:r?"selected":"default",role:"row",doubleLine:!!t.subtitle});return t.isClickable&&(s=n.__assign(n.__assign({},s),{onClick:this.handleClick,onMouseOver:this.handleMouseOver,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,tabIndex:0})),s},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.props.folder,t=this.rowProps,o=(t.ref,n.__rest(t,["ref"]));return r.default.createElement(i.MediaRow,Object.assign({},o),r.default.createElement(i.MediaCell,{key:e.path,icon:r.default.createElement(s.IconContent,{name:e.icon,disabled:!e.isClickable}),title:r.default.createElement(l.TruncatedString,{text:e.name,variant:l.TruncatedStringVariant.TRUNCATED_STRING_END}),subtitle:e.subtitle}),r.default.createElement(i.MediaCell,{key:"has_subdirs",icon:e.hasSubfolders&&e.isClickable?r.default.createElement(c.IconArrow,{name:"right"}):void 0}))},t})(r.default.PureComponent);t.FolderListRow=p})),define("retrieval-components/overview-examples",["require","exports","tslib","classnames","react","retrieval-components/overview-examples/personal_space","retrieval-components/overview-examples/project_space","retrieval-components/overview-examples/team_space","retrieval-components/overview-examples/icons","retrieval-components/overview-examples/selector","retrieval-components/overview-examples/components"],(function(e,t,n,r,o,i,a,s,c,l,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r);var p=[{id:"team-space",icon:(o=n.__importDefault(o)).default.createElement(c.IconTeam,null)},{id:"project-space",icon:o.default.createElement(c.IconProject,null)},{id:"personal-space",icon:o.default.createElement(c.IconPersonal,null)}],d=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleSetExample=function(e){n.setState({example:e})},n.state={example:t.initialExample||"team-space"},n}return n.__extends(t,e),t.prototype.render=function(){return o.default.createElement("div",{className:"fo-ex__split-view-container"},o.default.createElement("div",{className:"fo-ex__split-view"},o.default.createElement(l.ExampleSelector,{header:this.props.strings.header,activeItem:this.state.example,items:p,strings:this.props.strings.examples,onItemClick:this.handleSetExample})),o.default.createElement("div",{className:r.default(["fo-ex__split-view","fo-ex__split-view--"+this.state.example])},"team-space"===this.state.example&&o.default.createElement(s.TeamSpaceExample,{strings:this.props.strings.teamSpace,frameStyle:this.props.frameStyle}),"project-space"===this.state.example&&o.default.createElement(a.ProjectSpaceExample,{strings:this.props.strings.projectSpace,frameStyle:this.props.frameStyle}),"personal-space"===this.state.example&&o.default.createElement(i.PersonalSpaceExample,{strings:this.props.strings.personalSpace,frameStyle:this.props.frameStyle})))},t})(o.default.PureComponent);t.OverviewExamples=d,t.BlueText=u.BlueText})),define("retrieval-components/overview-examples/base_example",["require","exports","tslib","react","retrieval-components/overview-examples/components"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),t.BaseExample=function(e){return r.createElement("div",{className:"fo-ex__base-example-container"},r.createElement("div",{className:"fo-ex__base-example-window"},r.createElement(o.Sidebar,null),r.createElement("div",{className:"fo-ex__base-example-window-content"},r.createElement(o.TopBar,{variant:e.topBarVariant,frameStyle:e.frameStyle}),e.children,r.createElement(o.GhostContent,null))))}})),define("retrieval-components/overview-examples/components",["require","exports","tslib","react","retrieval-components/overview-examples/images"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),t.Sidebar=function(){return r.createElement("div",{className:"fo-ex__sidebar"},r.createElement("div",{className:"fo-ex__sidebar-nav-button"}))},t.TopBar=function(e){return r.createElement("div",{className:"fo-ex__top-bar"},r.createElement("div",{className:"fo-ex__top-bar-search-bar"},r.createElement(o.SearchIcon,null)),"desktop"===e.frameStyle&&("single"===e.variant?r.createElement(o.FaceAndShare,null):r.createElement(o.FacepileAndShare,null)),"web"===e.frameStyle&&r.createElement(o.FaceAndBell,null))},t.GhostContent=function(){return r.createElement("div",{className:"fo-ex__ghost-content"},r.createElement("div",null,r.createElement(o.GhostContentLeft,null)),r.createElement(o.GhostContentRight,null))},t.PinnedContent=function(e){return r.createElement("div",{className:"fo-ex__pinned-content"},"file"===e.variant?r.createElement(o.PinnedFile,null):r.createElement(o.PinnedFolder,null),r.createElement("div",{className:"fo-ex__pinned-content-text"},r.createElement("div",{className:"fo-ex__pinned-content-title"},e.title),r.createElement("div",{className:"fo-ex__pinned-content-subtitle"},e.subtitle)))},t.BulletedText=function(e){var t=e.children;return r.createElement("div",{className:"fo-ex__listed-text"},r.createElement("div",{className:"fo-ex__listed-text-bullet"},"•"),r.createElement("div",null,t))},t.CheckboxedText=function(e){var t=e.children;return r.createElement("div",{className:"fo-ex__listed-text"},r.createElement("div",{className:"fo-ex__listed-text-checkbox"},r.createElement(o.CheckboxIcon,null)),r.createElement("div",null,t))},t.ParagraphText=function(e){var t=e.children;return r.createElement("div",{className:"fo-ex__paragraph"},t)},t.BlueText=function(e){var t=e.children;return r.createElement("span",{className:"fo-ex__blue-text"},t)}})),define("retrieval-components/overview-examples/icons",["require","exports","tslib","react"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),t.IconPersonal=function(e){return r.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.4991 9C14.4991 10.3807 13.3798 11.5 11.9991 11.5C10.6184 11.5 9.49907 10.3807 9.49907 9C9.49907 7.61929 10.6184 6.5 11.9991 6.5C13.3798 6.5 14.4991 7.61929 14.4991 9ZM13.9987 12.4651C15.1945 11.7735 15.9991 10.4807 15.9991 9C15.9991 6.79086 14.2082 5 11.9991 5C9.78994 5 7.99907 6.79086 7.99907 9C7.99907 10.48 8.80288 11.7723 9.99776 12.4641C9.22356 12.6427 8.55735 12.9256 7.98655 13.2841C6.97642 13.9184 6.30805 14.7622 5.86864 15.5898C5.43125 16.4136 5.21612 17.2292 5.1092 17.833C5.05544 18.1366 5.02822 18.3914 5.01439 18.5734C5.00747 18.6645 5.00387 18.7378 5.00201 18.7903C5.00107 18.8165 5.00057 18.8376 5.0003 18.8532L5.00005 18.8723L5.00001 18.8787L5 18.8811L5 18.882C5 18.8825 5 18.8829 5.75 18.883C6.5 18.8831 6.5 18.8835 6.5 18.8838L6.50008 18.8791C6.5002 18.8723 6.50046 18.8604 6.50106 18.8436C6.50226 18.8099 6.50478 18.7567 6.51008 18.687C6.52069 18.5473 6.54232 18.3425 6.58622 18.0945C6.67462 17.5953 6.85003 16.9401 7.19349 16.2932C7.53494 15.6501 8.03776 15.0231 8.78424 14.5544C9.52813 14.0872 10.5571 13.75 11.996 13.75C13.4349 13.75 14.4645 14.0872 15.2093 14.5545C15.9566 15.0234 16.4605 15.6506 16.8029 16.2939C17.1473 16.941 17.3236 17.5963 17.4127 18.0955C17.4569 18.3435 17.4789 18.5483 17.4897 18.688C17.495 18.7578 17.4976 18.8109 17.4989 18.8446C17.4995 18.8614 17.4998 18.8734 17.4999 18.8801L17.5 18.8848C17.5 18.8845 17.5 18.8841 18.25 18.883C19 18.8819 19 18.8815 19 18.881L19 18.88L19 18.8777L18.9999 18.8713L18.9997 18.8522C18.9994 18.8366 18.9988 18.8155 18.9979 18.7893C18.9959 18.7368 18.9922 18.6635 18.9852 18.5724C18.9711 18.3904 18.9435 18.1356 18.8894 17.832C18.7816 17.2282 18.5654 16.4128 18.127 15.5891C17.6865 14.7616 17.0172 13.9181 16.0065 13.2839C15.4364 12.9262 14.7713 12.6438 13.9987 12.4651Z",fill:"#1D2737"}))},t.IconProject=function(e){return r.createElement("svg",Object.assign({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("mask",{id:"path-1-inside-1",fill:"white"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.2 3H7.8C8.33032 3 8.80392 3.24283 9.11568 3.62336L9.46974 3.2694C9.76268 2.97655 10.2375 2.97661 10.5304 3.26955C10.8233 3.56248 10.8232 4.03735 10.5303 4.33021L9.5 5.36018V9.3C9.5 10.2389 8.73888 11 7.8 11H3.2C2.26111 11 1.5 10.2389 1.5 9.3V4.7C1.5 3.76111 2.26112 3 3.2 3ZM8 4.7V4.73874L5.68352 7.05459L4.51408 5.95371C4.21248 5.66979 3.73782 5.68412 3.45391 5.98572C3.16999 6.28732 3.18432 6.76198 3.48592 7.0459L5.18514 8.64551C5.48029 8.92336 5.9428 8.91641 6.22948 8.62982L8 6.85978V9.3C8 9.41046 7.91046 9.5 7.8 9.5H3.2C3.08954 9.5 3 9.41046 3 9.3V4.7C3 4.58954 3.08954 4.5 3.2 4.5H7.8C7.91046 4.5 8 4.58954 8 4.7ZM12 6.5C12 6.22386 12.2239 6 12.5 6H21.5C21.7761 6 22 6.22386 22 6.5V7C22 7.27614 21.7761 7.5 21.5 7.5H12.5C12.2239 7.5 12 7.27614 12 7V6.5ZM3.2 13H7.8C8.73889 13 9.5 13.7611 9.5 14.7V19.3C9.5 20.2389 8.73888 21 7.8 21H3.2C2.26111 21 1.5 20.2389 1.5 19.3V14.7C1.5 13.7611 2.26112 13 3.2 13ZM3.2 14.5C3.08954 14.5 3 14.5895 3 14.7V19.3C3 19.4105 3.08954 19.5 3.2 19.5H7.8C7.91046 19.5 8 19.4105 8 19.3V14.7C8 14.5895 7.91046 14.5 7.8 14.5H3.2ZM12 16.5C12 16.2239 12.2239 16 12.5 16H21.5C21.7761 16 22 16.2239 22 16.5V17C22 17.2761 21.7761 17.5 21.5 17.5H12.5C12.2239 17.5 12 17.2761 12 17V16.5Z"})),r.createElement("path",{d:"M9.11568 3.62336L7.95537 4.57398L9.00496 5.85509L10.1762 4.68417L9.11568 3.62336ZM9.46974 3.2694L10.5303 4.33021L10.5303 4.33021L9.46974 3.2694ZM10.5304 3.26955L11.5912 2.20903L11.5912 2.20903L10.5304 3.26955ZM10.5303 4.33021L11.5908 5.39101L11.5908 5.39101L10.5303 4.33021ZM9.5 5.36018L8.43948 4.29938L8 4.73874V5.36018H9.5ZM8 4.73874L9.06052 5.79955L9.5 5.36018V4.73874H8ZM5.68352 7.05459L4.65535 8.14678L5.71492 9.14423L6.74403 8.1154L5.68352 7.05459ZM4.51408 5.95371L3.48592 7.0459L3.48592 7.0459L4.51408 5.95371ZM3.45391 5.98572L4.54609 7.01389L4.5461 7.01389L3.45391 5.98572ZM3.48592 7.0459L4.51408 5.95371L4.51408 5.95371L3.48592 7.0459ZM5.18514 8.64551L4.15697 9.7377L4.15697 9.7377L5.18514 8.64551ZM6.22948 8.62982L5.16896 7.56901L5.16896 7.56901L6.22948 8.62982ZM8 6.85978H9.5V3.23915L6.93948 5.79897L8 6.85978ZM7.8 1.5H3.2V4.5H7.8V1.5ZM10.276 2.67275C9.69156 1.95939 8.79882 1.5 7.8 1.5V4.5C7.86182 4.5 7.91628 4.52627 7.95537 4.57398L10.276 2.67275ZM8.40923 2.2086L8.05517 2.56256L10.1762 4.68417L10.5303 4.33021L8.40923 2.2086ZM11.5912 2.20903C10.7126 1.33023 9.28803 1.33004 8.40923 2.2086L10.5303 4.33021C10.2373 4.62306 9.76245 4.623 9.4696 4.33006L11.5912 2.20903ZM11.5908 5.39101C12.4696 4.51245 12.4698 3.08783 11.5912 2.20903L9.4696 4.33006C9.17674 4.03713 9.17681 3.56226 9.46974 3.2694L11.5908 5.39101ZM10.5605 6.42099L11.5908 5.39101L9.46974 3.2694L8.43948 4.29938L10.5605 6.42099ZM11 9.3V5.36018H8V9.3H11ZM7.8 12.5C9.56731 12.5 11 11.0673 11 9.3H8C8 9.41046 7.91046 9.5 7.8 9.5V12.5ZM3.2 12.5H7.8V9.5H3.2V12.5ZM0 9.3C0 11.0673 1.43268 12.5 3.2 12.5V9.5C3.08954 9.5 3 9.41046 3 9.3H0ZM0 4.7V9.3H3V4.7H0ZM3.2 1.5C1.43269 1.5 0 2.93268 0 4.7H3C3 4.58954 3.08954 4.5 3.2 4.5V1.5ZM9.5 4.73874V4.7H6.5V4.73874H9.5ZM6.74403 8.1154L9.06052 5.79955L6.93948 3.67794L4.623 5.99379L6.74403 8.1154ZM3.48592 7.0459L4.65535 8.14678L6.71168 5.9624L5.54225 4.86152L3.48592 7.0459ZM4.5461 7.01389C4.26217 7.31549 3.78752 7.32982 3.48592 7.0459L5.54225 4.86152C4.63745 4.00976 3.21348 4.05276 2.36172 4.95756L4.5461 7.01389ZM4.51408 5.95371C4.81568 6.23763 4.83001 6.71229 4.54609 7.01389L2.36172 4.95756C1.50996 5.86236 1.55295 7.28633 2.45775 8.13809L4.51408 5.95371ZM6.2133 7.55332L4.51408 5.95371L2.45775 8.13809L4.15697 9.7377L6.2133 7.55332ZM5.16896 7.56901C5.45563 7.28242 5.91815 7.27547 6.2133 7.55332L4.15697 9.7377C5.04243 10.5713 6.42998 10.5504 7.28999 9.69062L5.16896 7.56901ZM6.93948 5.79897L5.16896 7.56901L7.28999 9.69062L9.06052 7.92058L6.93948 5.79897ZM9.5 9.3V6.85978H6.5V9.3H9.5ZM7.8 11C8.73888 11 9.5 10.2389 9.5 9.3H6.5C6.5 8.58203 7.08203 8 7.8 8V11ZM3.2 11H7.8V8H3.2V11ZM1.5 9.3C1.5 10.2389 2.26112 11 3.2 11V8C3.91797 8 4.5 8.58203 4.5 9.3H1.5ZM1.5 4.7V9.3H4.5V4.7H1.5ZM3.2 3C2.26112 3 1.5 3.76111 1.5 4.7H4.5C4.5 5.41797 3.91797 6 3.2 6V3ZM7.8 3H3.2V6H7.8V3ZM9.5 4.7C9.5 3.76112 8.73889 3 7.8 3V6C7.08203 6 6.5 5.41797 6.5 4.7H9.5ZM12.5 4.5C11.3954 4.5 10.5 5.39543 10.5 6.5H13.5C13.5 7.05229 13.0523 7.5 12.5 7.5V4.5ZM21.5 4.5H12.5V7.5H21.5V4.5ZM23.5 6.5C23.5 5.39543 22.6046 4.5 21.5 4.5V7.5C20.9477 7.5 20.5 7.05229 20.5 6.5H23.5ZM23.5 7V6.5H20.5V7H23.5ZM21.5 9C22.6046 9 23.5 8.10457 23.5 7H20.5C20.5 6.44771 20.9477 6 21.5 6V9ZM12.5 9H21.5V6H12.5V9ZM10.5 7C10.5 8.10457 11.3954 9 12.5 9V6C13.0523 6 13.5 6.44771 13.5 7H10.5ZM10.5 6.5V7H13.5V6.5H10.5ZM7.8 11.5H3.2V14.5H7.8V11.5ZM11 14.7C11 12.9327 9.56732 11.5 7.8 11.5V14.5C7.91046 14.5 8 14.5895 8 14.7H11ZM11 19.3V14.7H8V19.3H11ZM7.8 22.5C9.56731 22.5 11 21.0673 11 19.3H8C8 19.4105 7.91046 19.5 7.8 19.5V22.5ZM3.2 22.5H7.8V19.5H3.2V22.5ZM0 19.3C0 21.0673 1.43268 22.5 3.2 22.5V19.5C3.08954 19.5 3 19.4105 3 19.3H0ZM0 14.7V19.3H3V14.7H0ZM3.2 11.5C1.43269 11.5 0 12.9327 0 14.7H3C3 14.5895 3.08954 14.5 3.2 14.5V11.5ZM4.5 14.7C4.5 15.418 3.91797 16 3.2 16V13C2.26112 13 1.5 13.7611 1.5 14.7H4.5ZM4.5 19.3V14.7H1.5V19.3H4.5ZM3.2 18C3.91797 18 4.5 18.582 4.5 19.3H1.5C1.5 20.2389 2.26111 21 3.2 21V18ZM7.8 18H3.2V21H7.8V18ZM6.5 19.3C6.5 18.582 7.08203 18 7.8 18V21C8.73889 21 9.5 20.2389 9.5 19.3H6.5ZM6.5 14.7V19.3H9.5V14.7H6.5ZM7.8 16C7.08203 16 6.5 15.418 6.5 14.7H9.5C9.5 13.7611 8.73889 13 7.8 13V16ZM3.2 16H7.8V13H3.2V16ZM12.5 14.5C11.3954 14.5 10.5 15.3954 10.5 16.5H13.5C13.5 17.0523 13.0523 17.5 12.5 17.5V14.5ZM21.5 14.5H12.5V17.5H21.5V14.5ZM23.5 16.5C23.5 15.3954 22.6046 14.5 21.5 14.5V17.5C20.9477 17.5 20.5 17.0523 20.5 16.5H23.5ZM23.5 17V16.5H20.5V17H23.5ZM21.5 19C22.6046 19 23.5 18.1046 23.5 17H20.5C20.5 16.4477 20.9477 16 21.5 16V19ZM12.5 19H21.5V16H12.5V19ZM10.5 17C10.5 18.1046 11.3954 19 12.5 19V16C13.0523 16 13.5 16.4477 13.5 17H10.5ZM10.5 16.5V17H13.5V16.5H10.5Z",fill:"#1D2737",mask:"url(#path-1-inside-1)"}))},t.IconTeam=function(e){return r.createElement("svg",Object.assign({width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.49908 9.7998C6.49908 10.6282 5.8275 11.2998 4.99908 11.2998C4.17065 11.2998 3.49908 10.6282 3.49908 9.7998C3.49908 8.97138 4.17065 8.2998 4.99908 8.2998C5.8275 8.2998 6.49908 8.97138 6.49908 9.7998ZM6.18747 12.5552C7.25321 12.095 7.99908 11.0345 7.99908 9.7998C7.99908 8.14295 6.65593 6.7998 4.99908 6.7998C3.34222 6.7998 1.99908 8.14295 1.99908 9.7998C1.99908 11.0339 2.74427 12.094 3.80924 12.5546C3.16262 12.6755 2.61062 12.896 2.14303 13.1896C1.41402 13.6474 0.933089 14.2558 0.618643 14.8481C0.30622 15.4366 0.153591 16.0167 0.0779259 16.444C0.0397978 16.6594 0.0203896 16.8406 0.0104731 16.9711C0.00550503 17.0365 0.00289053 17.0896 0.00151604 17.1283C0.000828445 17.1476 0.000449896 17.1634 0.000243008 17.1754L4.4167e-05 17.1905L9.11951e-06 17.1958L2.14577e-06 17.198L0 17.1989C0 17.1993 0 17.1997 0.75 17.1998C1.5 17.1999 1.5 17.2003 1.5 17.2006L1.50002 17.2013L1.5 17.2013L1.5 17.2023L1.50002 17.2013L1.50057 17.1815C1.50128 17.1616 1.50282 17.1287 1.50616 17.0847C1.51287 16.9965 1.52668 16.8652 1.55495 16.7056C1.61209 16.3829 1.72499 15.9631 1.94349 15.5515C2.15997 15.1438 2.47536 14.7522 2.94072 14.46C3.40349 14.1694 4.05766 13.9498 4.99683 13.9498C5.74898 13.9498 6.32697 14.0902 6.77503 14.3062C7.00038 13.8961 7.29595 13.4762 7.68078 13.088C7.25705 12.8485 6.76237 12.6631 6.18747 12.5552ZM13.4991 9.7998C13.4991 10.6282 12.8275 11.2998 11.9991 11.2998C11.1706 11.2998 10.4991 10.6282 10.4991 9.7998C10.4991 8.97138 11.1706 8.2998 11.9991 8.2998C12.8275 8.2998 13.4991 8.97138 13.4991 9.7998ZM13.1876 12.5552C14.2533 12.0949 14.9991 11.0344 14.9991 9.7998C14.9991 8.14295 13.6559 6.7998 11.9991 6.7998C10.3422 6.7998 8.99907 8.14295 8.99907 9.7998C8.99907 11.0339 9.74427 12.094 10.8092 12.5546C10.1626 12.6755 9.61062 12.896 9.14303 13.1896C8.41402 13.6474 7.93309 14.2558 7.61864 14.8481C7.30622 15.4366 7.15359 16.0167 7.07793 16.444C7.0398 16.6594 7.02039 16.8406 7.01047 16.9711C7.00551 17.0365 7.00289 17.0896 7.00152 17.1283C7.00083 17.1476 7.00045 17.1634 7.00024 17.1754L7.00004 17.1905L7.00001 17.1958L7 17.198L7 17.1989C7 17.1993 7 17.1997 7.75 17.1998C8.5 17.1999 8.5 17.2003 8.5 17.2006L8.50002 17.2013L8.5 17.2013L8.5 17.2023L8.50002 17.2013L8.50057 17.1815C8.50128 17.1616 8.50282 17.1287 8.50616 17.0847C8.51287 16.9965 8.52668 16.8652 8.55495 16.7056C8.61209 16.3829 8.72499 15.9631 8.94349 15.5515C9.15997 15.1438 9.47536 14.7522 9.94072 14.46C10.4035 14.1694 11.0577 13.9498 11.9968 13.9498C12.936 13.9498 13.5906 14.1694 14.054 14.4601C14.52 14.7525 14.8361 15.1443 15.0532 15.5522C15.2724 15.9639 15.3859 16.3838 15.4435 16.7065C15.4719 16.8662 15.4859 16.9975 15.4928 17.0858C15.4962 17.1297 15.4977 17.1626 15.4985 17.1825L15.4991 17.2023L15.4991 17.2033L15.4991 17.2023L15.4991 17.2017C15.4991 17.2013 15.4991 17.2009 16.2491 17.1998C16.9991 17.1987 16.9991 17.1983 16.9991 17.1979L16.9991 17.1969L16.9991 17.1948L16.999 17.1895L16.9988 17.1744C16.9986 17.1624 16.9982 17.1466 16.9975 17.1272C16.996 17.0886 16.9933 17.0355 16.9883 16.9701C16.9782 16.8396 16.9585 16.6584 16.9201 16.4431C16.8439 16.0158 16.6905 15.4357 16.3773 14.8474C16.0622 14.2553 15.5806 13.6471 14.8512 13.1895C14.3841 12.8964 13.833 12.6762 13.1876 12.5552ZM19.0005 11.2998C19.8289 11.2998 20.5005 10.6282 20.5005 9.7998C20.5005 8.97138 19.8289 8.2998 19.0005 8.2998C18.1721 8.2998 17.5005 8.97138 17.5005 9.7998C17.5005 10.6282 18.1721 11.2998 19.0005 11.2998ZM22.0005 9.7998C22.0005 11.0343 21.2548 12.0946 20.1894 12.555C20.8351 12.676 21.3865 12.8963 21.8538 13.1895C22.5832 13.6471 23.0648 14.2553 23.3799 14.8474C23.6931 15.4357 23.8465 16.0158 23.9227 16.4431C23.9611 16.6584 23.9808 16.8396 23.9909 16.9701C23.9959 17.0355 23.9986 17.0886 24 17.1272C24.0007 17.1466 24.0011 17.1624 24.0014 17.1744L24.0016 17.1895L24.0016 17.1948L24.0016 17.1969L24.0016 17.1979C24.0016 17.1983 24.0016 17.1987 23.2516 17.1998C22.5016 17.2009 22.5016 17.2013 22.5017 17.2017L22.5017 17.2023L22.5016 17.2023L22.5011 17.1825C22.5003 17.1626 22.4987 17.1297 22.4953 17.0858C22.4885 16.9975 22.4745 16.8662 22.446 16.7065C22.3884 16.3838 22.275 15.9639 22.0558 15.5522C21.8387 15.1443 21.5226 14.7525 21.0566 14.4601C20.5932 14.1694 19.9386 13.9498 18.9994 13.9498C18.2466 13.9498 17.6688 14.0904 17.2213 14.3064C16.9957 13.8965 16.6999 13.4767 16.315 13.0886C16.7394 12.8485 17.2351 12.6626 17.8111 12.5548C16.7459 12.0943 16.0005 11.0341 16.0005 9.7998C16.0005 8.14295 17.3436 6.7998 19.0005 6.7998C20.6573 6.7998 22.0005 8.14295 22.0005 9.7998Z",fill:"#1D2737"}))}})),define("retrieval-components/overview-examples/images",["require","exports","tslib","react"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),t.FaceAndBell=function(e){return r.createElement("svg",Object.assign({width:"36",height:"20",viewBox:"0 0 36 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("circle",{cx:"28",cy:"8",r:"8",fill:"#B7D3E9"}),r.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"#B7D3E9"}))},t.FaceAndShare=function(e){return r.createElement("svg",Object.assign({width:"56",height:"20",viewBox:"0 0 56 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("rect",{opacity:"0.2",x:"24",width:"32",height:"16",rx:"3",fill:"#0D2484"}),r.createElement("circle",{cx:"8",cy:"8",r:"8",fill:"#B7D3E9"}))},t.FacepileAndShare=function(e){return r.createElement("svg",Object.assign({width:"82",height:"20",viewBox:"0 0 82 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("rect",{opacity:"0.2",x:"50",y:"2",width:"32",height:"16",rx:"3",fill:"#0D2484"}),r.createElement("circle",{cx:"34",cy:"10",r:"8",fill:"#B7D3E9"}),r.createElement("circle",{cx:"22",cy:"10",r:"9",fill:"#FEB0A6",stroke:"white",strokeWidth:"2"}),r.createElement("circle",{cx:"10",cy:"10",r:"9",fill:"#A3D29E",stroke:"white",strokeWidth:"2"}))},t.GhostContentLeft=function(e){return r.createElement("svg",Object.assign({width:"122",height:"150",viewBox:"0 0 122 150",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V4C0 5.10457 0.895428 6 2 6H120C121.105 6 122 5.10457 122 4V2C122 0.895431 121.105 0 120 0H2ZM0 23.5C0 22.6716 0.671573 22 1.5 22H5.93506C6.74387 22 7.51842 22.3266 8.08306 22.9057L8.12824 22.952C9.0693 23.9172 10.3602 24.4615 11.7082 24.4615H17.7C18.5284 24.4615 19.2 25.1331 19.2 25.9615V36.5C19.2 37.3284 18.5284 38 17.7 38H1.5C0.671572 38 0 37.3284 0 36.5V23.5ZM29 29C29 28.4477 29.4477 28 30 28H108C108.552 28 109 28.4477 109 29V31C109 31.5523 108.552 32 108 32H30C29.4477 32 29 31.5523 29 31V29ZM30 56C29.4477 56 29 56.4477 29 57V59C29 59.5523 29.4477 60 30 60H108C108.552 60 109 59.5523 109 59V57C109 56.4477 108.552 56 108 56H30ZM0 51.5C0 50.6716 0.671573 50 1.5 50H5.93506C6.74387 50 7.51842 50.3266 8.08306 50.9057L8.12824 50.952C9.0693 51.9172 10.3602 52.4615 11.7082 52.4615H17.7C18.5284 52.4615 19.2 53.1331 19.2 53.9615V64.5C19.2 65.3284 18.5284 66 17.7 66H1.5C0.671572 66 0 65.3284 0 64.5V51.5ZM30 84C29.4477 84 29 84.4477 29 85V87C29 87.5523 29.4477 88 30 88H108C108.552 88 109 87.5523 109 87V85C109 84.4477 108.552 84 108 84H30ZM0 79.5C0 78.6716 0.671573 78 1.5 78H5.93506C6.74387 78 7.51842 78.3266 8.08306 78.9057L8.12824 78.952C9.0693 79.9172 10.3602 80.4615 11.7082 80.4615H17.7C18.5284 80.4615 19.2 81.1331 19.2 81.9615V92.5C19.2 93.3284 18.5284 94 17.7 94H1.5C0.671572 94 0 93.3284 0 92.5V79.5ZM30 112C29.4477 112 29 112.448 29 113V115C29 115.552 29.4477 116 30 116H108C108.552 116 109 115.552 109 115V113C109 112.448 108.552 112 108 112H30ZM0 107.5C0 106.672 0.671573 106 1.5 106H5.93506C6.74387 106 7.51842 106.327 8.08306 106.906L8.12824 106.952C9.0693 107.917 10.3602 108.462 11.7082 108.462H17.7C18.5284 108.462 19.2 109.133 19.2 109.962V120.5C19.2 121.328 18.5284 122 17.7 122H1.5C0.671572 122 0 121.328 0 120.5V107.5ZM30 140C29.4477 140 29 140.448 29 141V143C29 143.552 29.4477 144 30 144H108C108.552 144 109 143.552 109 143V141C109 140.448 108.552 140 108 140H30ZM0 135.5C0 134.672 0.671573 134 1.5 134H5.93506C6.74387 134 7.51842 134.327 8.08306 134.906L8.12824 134.952C9.0693 135.917 10.3602 136.462 11.7082 136.462H17.7C18.5284 136.462 19.2 137.133 19.2 137.962V148.5C19.2 149.328 18.5284 150 17.7 150H1.5C0.671572 150 0 149.328 0 148.5V135.5Z",fill:"#E8EAEB"}))},t.GhostContentRight=function(e){return r.createElement("svg",Object.assign({width:"88",height:"122",viewBox:"0 0 88 122",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("rect",{x:"56",y:"34",width:"32",height:"4",rx:"1",fill:"#E8EAEB"}),r.createElement("rect",{x:"56",y:"62",width:"32",height:"4",rx:"1",fill:"#E8EAEB"}),r.createElement("rect",{x:"56",y:"90",width:"32",height:"4",rx:"1",fill:"#E8EAEB"}),r.createElement("rect",{x:"56",y:"118",width:"32",height:"4",rx:"1",fill:"#E8EAEB"}),r.createElement("rect",{x:"56",width:"32",height:"16",rx:"3",fill:"#DDDFE1"}),r.createElement("rect",{x:"36",width:"16",height:"16",rx:"3",fill:"#F3F4F5"}),r.createElement("rect",{width:"32",height:"16",rx:"3",fill:"#F3F4F5"}),r.createElement("path",{d:"M56 3C56 1.34315 57.3431 0 59 0H72V16H59C57.3431 16 56 14.6569 56 13V3Z",fill:"#F3F4F5"}))},t.CheckboxIcon=function(e){return r.createElement("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("rect",{x:"0.6",y:"0.6",width:"12.8",height:"12.8",rx:"2.4",fill:"white",stroke:"#DDDFE1",strokeWidth:"1.2"}))},t.SearchIcon=function(e){return r.createElement("svg",Object.assign({width:"9",height:"8",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.71348 3.6222C5.71348 4.77176 4.82633 5.70367 3.73199 5.70367C2.63765 5.70367 1.75051 4.77176 1.75051 3.6222C1.75051 2.47264 2.63765 1.54073 3.73199 1.54073C4.82633 1.54073 5.71348 2.47264 5.71348 3.6222ZM5.46023 6.16263C4.97325 6.52885 4.37658 6.7444 3.73199 6.7444C2.09048 6.7444 0.759766 5.34654 0.759766 3.6222C0.759766 1.89786 2.09048 0.5 3.73199 0.5C5.37351 0.5 6.70422 1.89786 6.70422 3.6222C6.70422 4.29375 6.50238 4.91578 6.15896 5.42501L8.12391 7.26409L7.42335 8L5.46023 6.16263Z",fill:"#C6C9CD"}))},t.PinnedFile=function(e){return r.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 28.5H26C26.2761 28.5 26.5 28.2761 26.5 28V10H20V3.5H5.99564C5.72376 3.5 5.5 3.71959 5.5 4V28C5.5 28.2761 5.72386 28.5 6 28.5ZM28 28V10V9.41421C28 9.149 27.8948 8.89484 27.7073 8.7073L21.2925 2.2925C21.105 2.10496 20.8533 2 20.5881 2H20H5.99564C4.89107 2 4 2.89543 4 4V28C4 29.1046 4.89543 30 6 30H26C27.1046 30 28 29.1046 28 28ZM21 12H11V14H21V12ZM21 16.5H11V18.5H21V16.5ZM11 21H21V23H11V21Z",fill:"#DDDFE1"}))},t.PinnedFolder=function(e){return r.createElement("svg",Object.assign({width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M0 5.2002C0 4.09563 0.89543 3.2002 2 3.2002L10.987 3.2002C11.5174 3.2002 12.0261 3.41091 12.4012 3.78598L15.1681 6.55287C15.5431 6.92794 16.0518 7.13866 16.5823 7.13866H29.5077C30.6123 7.13866 31.5077 8.03409 31.5077 9.13866V26.8002C31.5077 27.9048 30.6123 28.8002 29.5077 28.8002H2C0.89543 28.8002 0 27.9048 0 26.8002L0 5.2002Z",fill:"#92CEFF"}))}})),define("retrieval-components/overview-examples/personal_space",["require","exports","tslib","react","retrieval-components/overview-examples/base_example","retrieval-components/overview-examples/components"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),t.PersonalSpaceExample=function(e){var t=e.strings,n=e.frameStyle;return r.default.createElement(o.BaseExample,{topBarVariant:"single",frameStyle:n},r.default.createElement("div",{className:"fo-space-title"},t.title),r.default.createElement("div",{className:"fo-ex__example-section"},r.default.createElement(i.ParagraphText,null,t.paragraph)),r.default.createElement("div",{className:"fo-ex__header-text"},t.header),t.tasks.map((function(e){return r.default.createElement(i.CheckboxedText,null,e)})),r.default.createElement("div",{className:"fo-ex__pinned-row"},t.pinnedItems.map((function(e){return r.default.createElement(i.PinnedContent,{variant:"folder",title:e.title,subtitle:e.age})}))))}})),define("retrieval-components/overview-examples/project_space",["require","exports","tslib","react","retrieval-components/overview-examples/base_example","retrieval-components/overview-examples/components"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),t.ProjectSpaceExample=function(e){var t=e.strings,n=e.frameStyle;return r.default.createElement(o.BaseExample,{topBarVariant:"multiple",frameStyle:n},r.default.createElement("div",{className:"fo-space-title"},t.title),r.default.createElement("div",{className:"fo-ex__example-section"},r.default.createElement(i.ParagraphText,null,t.paragraph)),t.sections.map((function(e){var t=e.header,n=e.paragraph;return[r.default.createElement("div",{className:"fo-ex__header-text"},t),r.default.createElement(i.ParagraphText,null,n)]})),r.default.createElement("div",{className:"fo-ex__pinned-row"},t.pinnedItems.map((function(e){return r.default.createElement(i.PinnedContent,{variant:"folder",title:e.title,subtitle:e.age})}))))}})),define("retrieval-components/overview-examples/selector",["require","exports","tslib","classnames","react","spectrum/colorized_icon"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r);var a=(function(e){function t(t){var n=e.call(this,t)||this;return n.onMouseEnter=function(){n.setState({isHovered:!0})},n.onMouseLeave=function(){n.setState({isHovered:!1})},n.state={isHovered:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.isActive,n=e.icon,a=e.title,s=e.subtitle,c=e.onClick,l=this.state.isHovered,u=r.default("fo-ex__selector-item",{"fo-ex__selector-item--active":t,"fo-ex__selector-item--hovered":!t&&l}),p=t?"#1D2737":l?"#707781":"#A5A9AF";return o.createElement("li",{className:u},o.createElement("button",{onClick:c,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},o.createElement(i.ColorizedIcon,{color:p},n),o.createElement("div",{className:"fo-ex__selector-item-text"},o.createElement("div",{className:"fo-ex__selector-item-title"},a),o.createElement("div",{className:"fo-ex__selector-item-subtitle"},s))))},t})((o=n.__importStar(o)).PureComponent),s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.header,n=e.strings,r=e.items,i=e.activeItem,s=e.onItemClick,c=r.map((function(e){var t=n[e.id];return o.createElement(a,Object.assign({},e,{key:e.id,title:t.title,subtitle:t.subtitle,isActive:i===e.id,onClick:function(t){return s(e.id)}}))}));return o.createElement("div",{className:"fo-ex__selector-container"},o.createElement("div",{className:"fo-ex__selector-header"},t),o.createElement("ul",{className:"fo-ex__selector-items"},c))},t})(o.PureComponent);t.ExampleSelector=s})),define("retrieval-components/overview-examples/team_space",["require","exports","tslib","react","retrieval-components/overview-examples/base_example","retrieval-components/overview-examples/components"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),t.TeamSpaceExample=function(e){var t=e.strings,n=e.frameStyle;return r.default.createElement(o.BaseExample,{topBarVariant:"multiple",frameStyle:n},r.default.createElement("div",{className:"fo-space-title"},t.title),r.default.createElement("div",{className:"fo-ex__example-section"},r.default.createElement(i.ParagraphText,null,t.paragraph)),r.default.createElement("div",{className:"fo-ex__header-text"},t.header),r.default.createElement(i.BulletedText,null,t.lead),r.default.createElement(i.BulletedText,null,t.design),r.default.createElement(i.BulletedText,null,t.eng),r.default.createElement(i.CheckboxedText,null,t.maryTask),r.default.createElement("div",{className:"fo-ex__pinned-row"},t.pinnedItems.map((function(e){return r.default.createElement(i.PinnedContent,{variant:"folder",title:e.title,subtitle:e.age})}))))}})),define("retrieval-components/pinned-item",["require","exports","tslib","react","classnames","retrieval-components/thumbnail-icon","retrieval-components/truncated-string","spectrum/icon_content","spectrum/overflow_button","spectrum/popover"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),o=n.__importDefault(o);var u=function(e){return!!e.isFolder};t.PinnedItem=function(e){return r.default.createElement("div",{className:o.default(["rc-pinned-item__wrapper",e.className])},r.default.createElement("a",{className:"rc-pinned-item",href:e.url,onClick:function(t){t.preventDefault(),e.onClick()},"data-fqpath":e.fqPath,"data-isdir":u(e),tabIndex:0},r.default.createElement("div",{className:"rc-pinned-item__file-icon"},u(e)?r.default.createElement("span",null,r.default.createElement(s.IconContent,{name:e.folderIcon})):r.default.createElement(i.ThumbnailIcon,{path:e.filename,variant:"large",thumbnailUrl:e.thumbnailUrl})),r.default.createElement("div",{className:"rc-pinned-item__info"},r.default.createElement(a.TruncatedString,{text:e.filename,className:"rc-pinned-item__name",variant:u(e)?a.TruncatedStringVariant.TRUNCATED_STRING_LAST_WORD:a.TruncatedStringVariant.TRUNCATED_STRING_FILE_EXTENSION}),r.default.createElement("span",{className:"rc-pinned-item__subtitle"},e.subtitle))),(function(e){return"menuOptions"in e})(e)?r.default.createElement(l.Popover,{className:"rc-pinned-item__menu-button",onSelection:e.onMenuOptionClick},r.default.createElement(l.PopoverTrigger,null,r.default.createElement(c.OverflowButton,{tagName:"span","aria-label":e.menuLabel,size:"small"})),r.default.createElement(l.PopoverContent,{attachment:"left"},r.default.createElement(r.default.Fragment,null,e.menuOptions.map((function(e){var t=e.key,n=e.label,o=e.isDisabled;return r.default.createElement(l.PopoverContentItem,{key:t,value:t,disabled:o},n)}))))):null)}})),define("retrieval-components/thumbnail-icon",["require","exports","tslib","react","spectrum/file_icon"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e){function t(t){var n=e.call(this,t)||this;return n.addEventListeners=function(){n.thumbnail&&(n.removeEventListeners(),n.thumbnail.addEventListener("load",n.handleImageLoaded),n.thumbnail.addEventListener("error",n.handleImageError))},n.removeEventListeners=function(){n.thumbnail&&(n.thumbnail.removeEventListener("load",n.handleImageLoaded),n.thumbnail.removeEventListener("error",n.handleImageError))},n.handleImageLoaded=function(){n.setState({thumbnailLoadingState:"loaded"}),n.removeEventListeners()},n.handleImageError=function(){n.setState({thumbnailLoadingState:"error"})},n.setThumnailRef=function(e){n.thumbnail=e,n.addEventListeners()},n.className=function(){return["rc-thumbnail-icon","rc-thumbnail-icon--"+(n.props.variant||"small"),n.props.className].join(" ")},n.state={thumbnailLoadingState:n.props.thumbnailUrl?"loading":"loaded"},n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.thumbnailUrl!==e.thumbnailUrl&&(this.removeEventListeners(),this.setState({thumbnailLoadingState:e.thumbnailUrl?"loading":"loaded"}),e.thumbnailUrl&&this.addEventListeners())},t.prototype.componentWillUnmount=function(){this.removeEventListeners()},t.prototype.render=function(){return r.default.createElement("div",{className:this.className()},"loading"===this.state.thumbnailLoadingState?r.default.createElement("img",{key:"loader",src:this.props.thumbnailUrl,ref:this.setThumnailRef,className:"rc-thumbnail-icon__loader","aria-hidden":!0}):null,this.props.thumbnailUrl&&"loaded"===this.state.thumbnailLoadingState?r.default.createElement("img",{src:this.props.thumbnailUrl}):null,this.props.thumbnailUrl&&"loaded"===this.state.thumbnailLoadingState?null:r.default.createElement(o.FileIcon,{key:"thumbnail",path:this.props.path,variant:this.props.variant,className:"rc-thumbnail-icon__file-icon"}))},t})((r=n.__importDefault(r)).default.PureComponent);t.ThumbnailIcon=i})),define("retrieval-components/truncated-string",["require","exports","tslib","react","classnames","spectrum/tooltip","spectrum/dimensions"],(function(e,t,n,r,o,i,a){"use strict";var s,c;Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),o=n.__importDefault(o),(c=t.TruncatedStringVariant||(t.TruncatedStringVariant={})).TRUNCATED_STRING_END="TRUNCATED_STRING_END",c.TRUNCATED_STRING_START="TRUNCATED_STRING_START",c.TRUNCATED_STRING_MIDDLE="TRUNCATED_STRING_MIDDLE",c.TRUNCATED_STRING_LAST_WORD="TRUNCATED_STRING_LAST_WORD",c.TRUNCATED_STRING_FILE_EXTENSION="TRUNCATED_STRING_FILE_EXTENSION",c.TRUNCATED_STRING_EMAIL="TRUNCATED_STRING_EMAIL",t.TruncatedStringVariantClass=((s={})[t.TruncatedStringVariant.TRUNCATED_STRING_END]="rc-truncated-string--end",s[t.TruncatedStringVariant.TRUNCATED_STRING_START]="rc-truncated-string--start",s[t.TruncatedStringVariant.TRUNCATED_STRING_MIDDLE]="rc-truncated-string--middle",s[t.TruncatedStringVariant.TRUNCATED_STRING_LAST_WORD]="rc-truncated-string--last-word",s[t.TruncatedStringVariant.TRUNCATED_STRING_FILE_EXTENSION]="rc-truncated-string--file-extension",s[t.TruncatedStringVariant.TRUNCATED_STRING_EMAIL]="rc-truncated-string--email",s);var l=(function(e){function s(n){var r=e.call(this,n)||this;return r.setCalculator=function(e){r.calculator=e},r.setWrapper=function(e){r.wrapper=e},r.updateTooltip=function(){if(r.calculator&&r.wrapper){var e=r.calculator.getBoundingClientRect().width,t=r.wrapper.getBoundingClientRect().width;r.setState({showTooltip:e>t})}},r.debouncedUpdateTooltip=function(){"clearTimeout"in window&&"setTimeout"in window&&(clearTimeout(r.updateTooltipTimeout),r.updateTooltipTimeout=setTimeout((function(){return r.updateTooltip()}),50))},r.calculatePiecesFromProps=function(e){void 0===e&&(e=r.props);var n=e.text;switch(e.variant){case t.TruncatedStringVariant.TRUNCATED_STRING_END:case t.TruncatedStringVariant.TRUNCATED_STRING_START:default:return[n];case t.TruncatedStringVariant.TRUNCATED_STRING_MIDDLE:var o=Math.floor(2*n.length/3),i=n.indexOf(" ",o);return[n.substr(0,i),n.substr(i)];case t.TruncatedStringVariant.TRUNCATED_STRING_LAST_WORD:var a=(s=n.trim().split(" ")).pop();return[s.join(" "),a].filter((function(e){return!!e}));case t.TruncatedStringVariant.TRUNCATED_STRING_FILE_EXTENSION:if((s=n.trim().split(".")).length<=1)return[n];a=s.pop();return[s.join("."),"."+a];case t.TruncatedStringVariant.TRUNCATED_STRING_EMAIL:var s;if(2!==(s=n.trim().split("@")).length)return[n];a=s.pop();return[s.pop(),"@"+a]}},r.state={pieces:r.calculatePiecesFromProps(n),showTooltip:!1},r}return n.__extends(s,e),s.prototype.componentDidMount=function(){this.updateTooltip()},s.prototype.componentWillReceiveProps=function(e){this.setState({pieces:this.calculatePiecesFromProps(e),showTooltip:!1})},s.prototype.componentDidUpdate=function(){},s.prototype.render=function(){var e=this,n=this.props,s=n.className,c=n.variant,l=n.text,u=this.state,p=u.pieces,d=u.showTooltip;return r.default.createElement(i.Tooltip,{positioning:"below",tooltipContent:l,showOnMouseMove:d,wrapperClassName:"rc-truncated-string__tooltip"},r.default.createElement(a.Dimensions,null,(function(n){n.width;return e.debouncedUpdateTooltip(),r.default.createElement("span",{className:o.default(["rc-truncated-string",s,t.TruncatedStringVariantClass[c]]),ref:e.setWrapper},r.default.createElement("span",{className:"rc-truncated-string__calculator","aria-hidden":!0,ref:e.setCalculator},l),p.map((function(e,t){return r.default.createElement("span",{key:t,className:o.default({"rc-truncated-string__piece":!0,"rc-truncated-string__piece--last-piece":0!==t&&t===p.length-1})},e)})))})))},s})(r.default.PureComponent);t.TruncatedString=l})),define("comments2/components/comment_avatar",["require","exports","tslib","react","spectrum/avatar","spectrum/avatar"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var a=function(e){var t=e.user,n=e.children;return r.createElement("div",{className:"sc-comment-avatar",role:"img","aria-label":t?t.name.display:""},n)};t.CommentAvatar=r.memo((function(e){var n=e.user;return r.createElement(a,{user:n},r.createElement(t.BasicCommentAvatar,{user:n}))})),t.BasicCommentAvatar=r.memo((function(e){var t=e.user,n=t.photoUrl,a=t.name,s=a.display,c=a.initials;return n?r.createElement(o.Avatar,{src:n,alt:s}):r.createElement(o.AvatarInitials,{backgroundColor:i.avatarColorForUserIdentifier(s)},c)})),t.DeletedCommentAvatar=r.memo((function(){return r.createElement(a,null,r.createElement("div",{className:"sc-comment-deleted-avatar mc-avatar"},r.createElement("svg",{width:"26px",height:"26px",viewBox:"0 0 26 26",version:"1.1"},r.createElement("g",{id:"deleted-comment",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M17.4350288,7 L19.4350288,5 L20.8492424,6.41421356 L7.41421356,19.8492424 L6,18.4350288 L7.49843982,16.936589 C6.63661796,16.7140255 6,15.9313578 6,15 L6,9 C6,7.8954305 6.8954305,7 8,7 L17.4350288,7 Z M9.43502884,15 L15.4350288,9 L8,9 L8,15 L9.43502884,15 Z M20,9.26345597 L20,15 C20,16.1045695 19.1045695,17 18,17 L16,17 L13.7071068,19.2928932 C13.3165825,19.6834175 12.6834175,19.6834175 12.2928932,19.2928932 L11.131728,18.131728 L12.5459415,16.7175144 L13,17.1715729 L15.1715729,15 L16,15 L18,15 L18,11.263456 L20,9.26345597 Z",id:"Combined-Shape",fill:"#637282",fillRule:"nonzero"})))))}))})),define("comments2/components/comment_editor/components/active_macro_chrome_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var i=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.getPosition=function(){var e=this.props.scrollClassName,t=this.status.macro.macroRef;if(!t)return{};for(var n=t.getBoundingClientRect(),r=t.offsetParent;r&&!r.classList.contains(e);)r=r.offsetParent;if(!r)return{};var o=r.getBoundingClientRect();return{top:n.bottom-o.top}},t.prototype.render=function(){var e=this.status.macro,t=e.active,n=e.macroRef,o=e.isVisible,i=this.props.placeholderMessage;if(!(t&&t.chrome&&n&&o))return r.createElement("div",null);var a=t.chrome;return r.createElement("div",{className:"active-macro-chrome",style:this.getPosition()},r.createElement(a,{placeholderMessage:i}))},t})(o.EditorComponent);t.ActiveMacroChromeComponent=i})),define("comments2/components/comment_editor/components/active_macro_span_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var i=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.triggers,t=this.props,n=t.children,o=t.style,i=t.className;return r.createElement("span",{className:"active-macro",ref:e.macro.updateMacroRef},r.createElement("span",{className:i,style:o},n))},t})(o.EditorComponent);t.ActiveMacroSpanComponent=i})),define("comments2/components/comment_editor/components/atomic_block_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component","comments2/components/comment_editor/components/sticker_component"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var a=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.block,n=e.contentState.getEntity(t.getEntityAt(0)).getData();return"sticker"===n.type?r.createElement(i.StickerComponent,Object.assign({sticker:n},this.props)):null},t})(o.EditorComponent);t.AtomicBlockComponent=a})),define("comments2/components/comment_editor/components/draft_component",["require","exports","tslib","react","draft-js","comments2/components/comment_editor/components/readonly_draft_component","comments2/components/comment_editor/core/editor_component","dig-components/typography"],(function(e,t,n,r,o,i,a,s){"use strict";var c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),(function(e){e[e.ENTER=13]="ENTER",e[e.ESC=27]="ESC",e[e.SPACE=32]="SPACE",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN"})(c||(c={})),(l=t.SubmitModifierKeyCodes||(t.SubmitModifierKeyCodes={}))[l.metaKey=0]="metaKey",l[l.ctrlKey=1]="ctrlKey",(u=t.LineBreakModifierKeyCodes||(t.LineBreakModifierKeyCodes={}))[u.shiftKey=0]="shiftKey";var p=function(e,n){if(0===n.length)return!0;for(var r in n)if(e[t.SubmitModifierKeyCodes[r]])return!0;return!1},d=function(e,n){if(0===n.length)return!0;for(var r in n)if(e[t.LineBreakModifierKeyCodes[r]])return!0;return!1},f=[c.ESC,c.SPACE,c.UP,c.RIGHT,c.DOWN],m=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.scrollClassName="sc-comment-editor-draft",t.onChange=function(e){t.triggers.draft.change(e)},t.handleReturn=function(e,n){var r=t.props,o=r.lineBreakModifierKeyCodes,i=r.submitModifierKeyCodes,a=p(e,i),s=d(e,o);if(0===i.length&&o.length>0&&!s&&!t.status.macro.active||i.length>0&&a)return!(""===n.getCurrentContent().getPlainText().trim())&&t.triggers.comment&&(t.blurEditor(),t.status.draft.containerPostOnBlur||t.triggers.comment.post(n)),"handled";var c=t.triggers.draft.returnKey(e).editorState;return!s||c!==n||t.status.macro.active?(e.preventDefault(),"handled"):"not-handled"},t.onScroll=function(e){if(t.status.macro.macroRef){var n=t.triggers.macro.updateVisibility,r=e.target;n(t.getMacroVisibilityFromScrollEl(r))}},t.keyBindingFn=function(e){var n=t.props.customKeyBinding;if(t.isNavigationalKeyboardEvent(e)){var r=t.status.suggestion;if(!t.isVacuousSuggestion(r)&&(t.triggers.draft.key(e),r!==t.status.suggestion))return e.preventDefault(),null}return n?n(e):o.getDefaultKeyBinding(e)},t.handleKeyCommand=function(e,n){return t.triggers.draft.keyCommand(e).editorState===n?"not-handled":"handled"},t.handleBeforeInput=function(e,n){return t.triggers.draft.input(e).editorState===n?"not-handled":"handled"},t.handlePastedText=function(e,n,r){var o=r;return o=t.triggers.draft.pasteText(e).editorState,n&&o===r&&(o=t.triggers.draft.pasteHTML({text:e,html:n}).editorState),o===r?"not-handled":"handled"},t.handleCompositionStart=function(e){t.triggers.draft.compositionStart(e)},t.handleCompositionEnd=function(e){t.triggers.draft.compositionEnd(e)},t.onKeyDown=function(e){if(t.isNavigationalKeyboardEvent(e)){var n=t.status.suggestion;t.triggers.draft.key(e),t.status.suggestion!==n&&e.preventDefault()}else e.which===c.SPACE?t.triggers.draft.key(e):e.which===c.ENTER&&t.status.macro.active&&e.preventDefault()},t.onMouseDown=function(e){var n=t.props.handleFocus;n&&n(e)},t.onMouseUp=function(e){var n=t.props.handleFocus;n&&n(e)&&t.onFocus(e)},t.onFocus=function(e){var n=t.props.handleFocus;if(n&&!n(e))return e.preventDefault(),void e.stopPropagation();t.triggers.macro.updateVisibility(t.getMacroVisibilityFromScrollEl(t.getScrollEl(e.target))),t.triggers.draft.focus(e)},t.onBlur=function(e){t.triggers.macro.updateVisibility(!1),t.props.handleBlur&&t.props.handleBlur(t.status.draft.editorState,t.triggers.comment),t.triggers.draft.blur(e)},t.onTab=function(e){t.triggers.draft.key(e)},t.blockRendererFn=function(e){var n=e.getType();if(n&&t.status.draft.blockRenderers[n])return t.status.draft.blockRenderers[n](e)},t}return n.__extends(t,e),t.prototype.blurEditor=function(){this.editor&&this.editor.blur()},t.prototype.focusEditor=function(){this.editor&&this.editor.focus()},t.prototype.getMacroVisibilityFromScrollEl=function(e){if(!this.status.macro.macroRef)return!1;var t=e.getBoundingClientRect(),n=this.status.macro.macroRef.getBoundingClientRect();return n.bottom<t.bottom&&n.top>t.top},t.prototype.getScrollEl=function(e){if(null===e)throw new Error("Unable to find scroll element");return e.classList.contains(this.scrollClassName)?e:this.getScrollEl(e.parentElement)},t.prototype.isVacuousSuggestion=function(e){return 0===e.totalSuggestions},t.prototype.isNavigationalKeyboardEvent=function(e){var t=e.which;return f.indexOf(t)>-1},t.prototype.componentDidMount=function(){this.props.shouldFocus&&this.editor&&this.focusEditor()},t.prototype.componentDidUpdate=function(e){var t=e.shouldFocus;this.props.shouldFocus&&!t&&this.editor&&this.focusEditor()},Object.defineProperty(t.prototype,"accessibilityProps",{get:function(){var e=this.status,t=e.macro,n=e.suggestion,r=t.active,o=t.isVisible,i=n.selectedIndex,a=!(!r||!r.chrome)&&o;return{role:"combobox",ariaAutocomplete:"list",ariaExpanded:a,ariaActiveDescendantID:-1!==i&&a?"mentions-option-"+i:""}},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.status.draft,o=t.editorState,a=t.readOnly,c=t.placeholder,l=t.isComposing,u=this.props,p=u.annotation,d=u.spellCheck,f=u.a11yEditorLabel,m=n.__assign({ariaLabel:f,readOnly:a,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onTab:this.onTab,handleReturn:this.handleReturn,keyBindingFn:this.keyBindingFn,handleKeyCommand:this.handleKeyCommand,handleBeforeInput:this.handleBeforeInput,handlePastedText:this.handlePastedText,blockRendererFn:this.blockRendererFn},this.accessibilityProps),g=""===o.getCurrentContent().getPlainText()&&!l?r.createElement(s.Text,{className:"sc-comment-editor-placeholder",tabIndex:-1,"aria-hidden":!0,color:"disabled"},c):void 0;return r.createElement("div",{className:this.scrollClassName,onScroll:this.onScroll,onKeyDown:this.onKeyDown,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},r.createElement(i.ReadonlyDraftComponent,Object.assign({draftRef:function(t){e.editor=t}},m,{annotation:p,editorPlaceholder:g,spellCheck:d})))},t})(a.EditorComponent);t.DraftComponent=m,m.defaultProps={submitModifierKeyCodes:[t.SubmitModifierKeyCodes.metaKey,t.SubmitModifierKeyCodes.ctrlKey],lineBreakModifierKeyCodes:[]}})),define("comments2/components/comment_editor/components/mention_span_component",["require","exports","tslib","react","classnames"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),o=n.__importDefault(o),t.MentionSpanComponent=function(e){var t=e.contentState.getEntity(e.entityKey),n=t&&t.getData().pending,i=o.default("sc-comment-editor-mention",{pending:n});return r.createElement("span",{className:i,"data-entity-key":e.entityKey,"data-editor":e.editorKey},e.children)}})),define("comments2/components/comment_editor/components/mention_suggestions_list_component",["require","exports","tslib","react","react-dom","classnames","comments2/components/comment_avatar","comments2/components/comment_editor/draft_utils","comments2/components/comment_editor/core/editor_component"],(function(e,t,n,r,o,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),o=n.__importStar(o),i=n.__importDefault(i);var l=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.indexAsProp,o=e.onClick,a=e.children,s=e.selected,c=i.default("sc-comment-editor-mentions-suggestion",t);return r.createElement("li",{role:"option","aria-selected":s?"true":void 0,id:"mentions-option-"+n,key:n},r.createElement("button",{className:c,onClick:o,onMouseDown:function(e){return e.preventDefault()}},r.createElement("div",null,a)))},t})(r.Component);t.MentionsListItem=l;var u=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.containerRef=null,t.mentionsListItemRefs={},t.onContainerRef=function(e){t.containerRef=e},t.onMentionsListItemRef=function(e){e&&(t.mentionsListItemRefs[e.props.indexAsProp]=e)},t.onUserClick=function(e){t.triggers.suggestion.updateSelectedIndex(e),t.triggers.macro.apply(null)},t.onEmailClick=function(){t.triggers.macro.apply(null)},t}return n.__extends(t,e),t.prototype.renderInactive=function(){return r.createElement("span",null)},t.prototype.renderNoResults=function(){return r.createElement("div",{className:"sc-comment-editor-mentions-list-container"},r.createElement("div",{className:"sc-comment-editor-mentions-list-header"},this.props.placeholderMessage?this.localization.intl.formatMessage(this.props.placeholderMessage):this.localization.intl.formatMessage({id:"FBlHqR",defaultMessage:"@mention someone to share this file."})))},t.prototype.renderEmptyResults=function(e){var t=s.parseEmail(e.content.substring(1));return r.createElement("div",{className:"sc-comment-editor-mentions-list-container sc-mentions-empty-results"},r.createElement("div",{className:"sc-comment-editor-mentions-list-header"},this.localization.intl.formatMessage({id:"vdBwOw",defaultMessage:"No Users Found"})),t&&r.createElement("ul",{className:"sc-comment-editor-mentions-list"},r.createElement(l,{className:"sc-comment-editor-mentions-suggestion-selected",indexAsProp:-1,onClick:this.onEmailClick},this.localization.intl.formatMessage({id:"l08JFQ",defaultMessage:"Invite {user_name}"},{user_name:t[0]}))))},t.prototype.componentDidMount=function(){this.lastKnownSelectedIndex=this.status.suggestion.selectedIndex},t.prototype.componentDidUpdate=function(){var e=this.status.suggestion.selectedIndex;if(this.lastKnownSelectedIndex!==e&&e in this.mentionsListItemRefs&&this.containerRef){var t=o.findDOMNode(this.mentionsListItemRefs[e]),n=t.getBoundingClientRect(),r=this.containerRef.getBoundingClientRect();n.top<r.top?t.scrollIntoView({behavior:"smooth",block:"start"}):n.bottom>r.bottom&&t.scrollIntoView({behavior:"smooth",block:"end"}),this.lastKnownSelectedIndex=e}},t.prototype.render=function(){var e=this,t=this.status,n=t.macro,o=t.mentionSuggestions.users,s=n.active;if(!s)return this.renderInactive();if(null===o)return this.renderNoResults();if(!o.length)return this.renderEmptyResults(s);var c=t.suggestion.selectedIndex;return r.createElement("div",{className:"sc-comment-editor-mentions-list-container",contentEditable:!1,ref:this.onContainerRef},r.createElement("div",{className:"sc-comment-editor-mentions-list-header"},this.localization.intl.formatMessage({id:"e6Shp6",defaultMessage:"Searching contacts…"})),r.createElement("ul",{className:"sc-comment-editor-mentions-list",role:"listbox",id:"mentions-listbox"},o.map((function(t,n){var o=c===n,s=i.default({"sc-comment-editor-mentions-suggestion-selected":o});return r.createElement(l,{key:n,indexAsProp:n,className:s,onClick:function(){return e.onUserClick(n)},ref:e.onMentionsListItemRef,selected:o},r.createElement(a.BasicCommentAvatar,{user:t}),r.createElement("div",{className:"sc-comment-editor-mentions-user"},r.createElement("div",{className:"sc-comment-editor-mentions-name",title:t.name.display},t.name.display),r.createElement("div",{className:"sc-comment-editor-mentions-email",title:t.email},t.email)))}))))},t})(c.EditorComponent);t.MentionSuggestionsListComponent=u})),define("comments2/components/comment_editor/components/readonly_draft_component",["require","exports","tslib","react","draft-js","comments2/components/comment/separator","comments2/components/comment_editor/core/editor_component","comments2/components/comment_editor/components/atomic_block_component"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=(r=n.__importStar(r)).memo((function(e){var t=e.annotation;return r.createElement("div",{className:"sc-comment-editor-prefix"},t,t&&r.createElement(i.Separator,null))})),l=function(){},u=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.blockRendererFn=function(e){if("atomic"===e.getType())return{component:s.AtomicBlockComponent,editable:!1}},t.blockStyleFn=function(e){return"sc-comment-editor-"+e.getType()+"-block"},t}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.status.draft,i=t.editorKey,a=t.editorState,s=t.readOnly,u=this.props,p=u.annotation,d=u.editorPlaceholder,f=n.__assign({editorKey:i,editorState:a,readOnly:s,onChange:l,blockRendererFn:this.blockRendererFn,blockStyleFn:this.blockStyleFn},this.props);return r.createElement("div",null,r.createElement(c,{annotation:p}),d,r.createElement(o.Editor,Object.assign({},f,{ref:function(t){e.props.draftRef&&e.props.draftRef(t)}})))},t})(a.EditorComponent);t.ReadonlyDraftComponent=u})),define("comments2/components/comment_editor/components/sticker_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var i=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.props.sticker,t=this.localization.intl.formatMessage({id:"nU3TuP",defaultMessage:"Sticker: {description}"},{description:e.description});return r.createElement("img",{className:"sc-comment-editor-sticker",src:e.url,title:t,alt:t})},t})(o.EditorComponent);t.StickerComponent=i})),define("comments2/components/comment_editor/core/class_decorators",["require","exports","tslib"],(function(e,t,n){"use strict";function r(e){return function(t,r){return n.__spreadArrays(e,[null]).reverse().reduce((function(e,t){var r,o=e.nodes,i=e.result,a=o.shift();return{nodes:o,result:null!==t?n.__assign(n.__assign({},a),(r={},r[t]=i,r)):i}}),{nodes:e.reduce((function(e,t){var r=e[0],o=e.slice(1);return n.__spreadArrays([r[t]||{},r],o)}),[t]),result:r}).result}}function o(e,t){return n.__assign({},e.reduce((function(e,r){var o;return n.__assign(n.__assign({},e),((o={})[r]=t(r),o))}),{}))}Object.defineProperty(t,"__esModule",{value:!0}),t.scaffold=function(e){return o(Object.keys(e),(function(t){return{__place__:r(["composers",t]),on:o(e[t].evts,(function(n){return{__place__:r(["reducers",t,"evts",n]),update:o(e[t].values,(function(e){return{__place__:r(["reducers",t,"values",e,n])}}))}}))}}))},t.plug=function(e){return function(t,n){var r=t.scope;t.scope=function(){return e.__place__(r&&r.call(this)||{},t[n].bind(this))}}}})),define("comments2/components/comment_editor/core/composed_feature",["require","exports","tslib"],(function(e,t,n){"use strict";function r(e){return e.innerProps.value}Object.defineProperty(t,"__esModule",{value:!0});var o=(function(){function e(t,o,i){this.evts={},this.values={};for(var a=this,s=function(n){a.evts[n]=function(r){return e.reduceValue(t,o.values,n,r.innerProps.evt,a.values,r.innerProps.value,r.kernel)},a.evts[n]=i.reduce((function(e,t){return function(r){var o=r.innerProps,i=o.evt,a=o.value,s=r.kernel,c=t.evts&&t.evts[n],l=s.compose(e,{evt:i,value:a});if(void 0!==c){var u=s.compose(c,{evt:i,value:void 0!==l?l:a});if(void 0!==u)return u}return l}}),a.evts[n])},c=0,l=o.evts;c<l.length;c++){s(l[c])}for(var u=function(s){var c=i.reduce((function(e,t){var r=t.values&&t.values[s];return void 0!==r?n.__spreadArrays(e,[r]):e}),[]);for(var l in a.values[s]={},o.evts){var u=o.evts[l];a.values[s][u]=e.reducePartialReducers(t,s,u,c,r)}},p=0,d=o.values;p<d.length;p++){u(d[p])}}return e.reducePartialReducers=function(e,t,r,o,i){return o.reduce((function(o,i){return function(a){var s=a.innerProps,c=s.evt,l=s.value,u=a.kernel,p=i[r];if(void 0!==p){var d=p,f=u.compose(o,{evt:c,value:l});f=void 0!==f?u.compose((function(r){var o;return n.__assign(n.__assign({},r.status[e]),((o={})[t]=f,o))}))[t]:l;var m=u.compose(d,{evt:c,value:f});return void 0!==m?m:f}var g=u.compose(o,{evt:c,value:l});return void 0!==g?g:l}}),i)},e.reduceValue=function(e,t,r,o,i,a,s){return t.reduce((function(t,c){var l=i[c],u=s.compose(l[r],{evt:o,value:a[c]});return void 0!==u?s.compose((function(r){var o;return r.featureTriggers[e](n.__assign(n.__assign({},t),((o={})[c]=u,o)))})):s.compose((function(t){return t.status[e]}))}),a)},e})();t.ComposedFeature=o})),define("comments2/components/comment_editor/core/composed_scope",["require","exports","comments2/components/comment_editor/core/composed_feature"],(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(function(){function e(t,n,r){this.composers={};var o=function(e){i.composers[e]=function(t){t.innerProps.initial&&t.kernel.compose(t.innerProps.initial,{prevStatus:t.status}),r.forEach((function(n){void 0!==n[e]&&t.kernel.compose(n[e],{prevStatus:t.status})}))}},i=this;for(var a in t)o(a);this.reducers=e.completeScopeReducers(t,n)}return e.create=function(t,n,r){return new e(t,n,r)},e.completeScopeReducers=function(e,t){var r={},o=function(o){r[o]={evts:{},values:{}},r[o]=new n.ComposedFeature(o,e[o],t.reduce((function(e,t){var n=t[o];return void 0!==n&&e.push(n),e}),[]))};for(var i in e)o(i);return r},e})();t.ComposedScopeImpl=r})),define("comments2/components/comment_editor/core/editor_component",["require","exports","tslib","react","prop-types"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),o=n.__importStar(o);var i=(function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),Object.defineProperty(t.prototype,"scope",{get:function(){return this.context.scope},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.context.container},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggers",{get:function(){return this.container.getTriggers(this.scope)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.container.getStatus()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"localization",{get:function(){return this.context.localization},enumerable:!0,configurable:!0}),t})(r.Component);t.EditorComponent=i,i.contextTypes={container:o.object,scope:o.object,localization:o.object}})),define("comments2/components/comment_editor/core/editor_container_component",["require","exports","tslib","react","comments2/components/comment_editor/core/utils","comments2/components/comment_editor/core/scope_container","comments2/components/comment_editor/core/scope_component","comments2/components/comment_editor/core/editor_component","comments2/components/utils/shallow_equals"],(function(e,t,n,r,o,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var l=(function(e){function t(){var t=e.apply(this,arguments)||this;return t._container=new i.ScopeContainerImpl({scopeNames:t.scopeNames,defaultStatus:t.createDefaultStatus()}),t}return n.__extends(t,e),t.prototype.getLayerProps=function(e){return{}},t.prototype.componentWillMount=function(){this.updateContainerStatus(this.props),this.subscribeToContainer()},t.prototype.componentWillReceiveProps=function(e){c.shallowEquals(this.getLayerProps(this.props),this.getLayerProps(e))||(this.cachedScope=void 0),this.updateContainerStatus(e)},t.prototype.componentWillUnmount=function(){this.unsubscribeFromContainer()},t.prototype.updateContainerStatus=function(e){this.container.updateStatus(this.mapPropsToUpdates(e,this.container.getStatus()),this.scope)},t.prototype.reloadCachedScope=function(){return o.completeScopeFromLayers(this.scopeNames,this.mapPropsToLayers(this.props))},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scope",{get:function(){return this.cachedScope||(this.cachedScope=this.reloadCachedScope()),this.cachedScope},enumerable:!0,configurable:!0}),t.prototype.render=function(){return r.createElement(a.BaseScopeComponent,{scope:this.scope,container:this.container},this.props.children)},t.prototype.subscribeToContainer=function(){var e=this;this.subscriptionHandle=this.container.subscribe((function(t){e.setState(t)}))},t.prototype.unsubscribeFromContainer=function(){this.subscriptionHandle&&this.subscriptionHandle.unsubscribe()},t})(s.EditorComponent);t.EditorContainer=l})),define("comments2/components/comment_editor/core/scope_component",["require","exports","tslib","react","react","prop-types"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),i=n.__importStar(i);var a=(function(e){function t(t){var n=e.call(this,t)||this;return n.subscriptionHandle={unsubscribe:function(){}},n.handleContainerStatus=function(e){n.setState({status:e})},n.subscribeToContainer(t.container),n}return n.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.subscribeToContainer(e.container)},t.prototype.subscribeToContainer=function(e){this.subscriptionHandle.unsubscribe(),this.subscriptionHandle=e.subscribe(this.handleContainerStatus)},t.prototype.componentWillUnmount=function(){this.subscriptionHandle&&this.subscriptionHandle.unsubscribe()},t.prototype.getChildContext=function(){return{container:this.props.container,scope:this.props.scope}},t.prototype.render=function(){return r.createElement("div",null,this.props.children)},t})(o.Component);function s(e,t){return r.createElement(a,Object.assign({},t),e.children)}t.BaseScopeComponent=a,a.childContextTypes={container:i.object,scope:i.object},t.InnerScopeComponent=s,s.contextTypes={container:i.object,scope:i.object}})),define("comments2/components/comment_editor/core/scope_container",["require","exports","tslib","comments2/components/comment_editor/core/status_container","comments2/components/comment_editor/core/utils"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e){function t(t){var n=t.scopeNames,r=t.defaultStatus,o=e.call(this,r)||this;return o.scopeNames=n,o.memoizedCreateKernelAndTriggers=o.makeMemoizedCreateKernelAndTriggers(),o}return n.__extends(t,e),t.prototype.makeMemoizedCreateKernelAndTriggers=function(){var e,t,n,r,o=this;return function(i){return r!==i&&(e=o.createKernel(i),n=o.createFeatureTriggers(i),t=o.createTriggers(i,e,n),r=i),{kernel:e,triggers:t,featureTriggers:n}}},t.prototype.createTriggers=function(e,t,n){return o.createTriggers(this.scopeNames,e,n||this.createFeatureTriggers(e),t||this.createKernel(e))},t.prototype.getTriggers=function(e){return this.memoizedCreateKernelAndTriggers(e).triggers},t.prototype.compose=function(e,t,n){var r=this.getStatus(),o=this.memoizedCreateKernelAndTriggers(t),i=o.kernel,a=o.featureTriggers;return e({status:r,triggers:o.triggers,innerProps:n,kernel:i,featureTriggers:a})},t.prototype.updateStatus=function(e,t){var n=this.createFeatureTriggers(t),r=this.getStatus();for(var o in e){var i=e[o];r[o]!==i&&n[o](i)}return this.getStatus()},t.prototype.createKernel=function(e){var t=this;return{compose:function(n,r){return t.compose(n,e,r)}}},t.prototype.createFeatureTriggers=function(e){var t=this,r={},o=function(o){r[o]=function(r){var i=t.getStatus();return t.compose(e.composers[o],e,{prevStatus:i,initial:function(){var e;t.setStatus(n.__assign(n.__assign({},i),((e={})[o]=r,e)))}}),r}};for(var i in this.scopeNames)o(i);return r},t})(r.StatusContainerImpl);t.ScopeContainerImpl=i})),define("comments2/components/comment_editor/core/status_container",["require","exports","tslib"],(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(function(){function e(e){this.listeners=[],this.status=e}return e.prototype.setStatus=function(e,t){var r=this;void 0===t&&(t=!1),this.status=n.__assign(n.__assign({},this.status),e),t||this.listeners.forEach((function(e){return e(r.getStatus())}))},e.prototype.getStatus=function(){return this.status},e.prototype.subscribe=function(e){var t=this;return this.listeners.push(e),{unsubscribe:function(){return t.listeners=t.listeners.filter((function(t){return t!==e}))}}},e})();t.StatusContainerImpl=r})),define("comments2/components/comment_editor/core/types",["require","exports","comments2/components/comment_editor/core/types/scaffold"],(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseLayer=n.BaseLayer})),define("comments2/components/comment_editor/core/types/scaffold",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){};t.BaseLayer=n})),define("comments2/components/comment_editor/core/utils",["require","exports","tslib","comments2/components/comment_editor/core/composed_scope"],(function(e,t,n,r){"use strict";function o(e,t,n,r,o){for(var i={},a=function(e){i[e]=function(i){return o.compose((function(a){var s=a.status[r],c=o.compose(t[e],{evt:i,value:s});return n(c)}))}},s=0,c=e;s<c.length;s++){a(c[s])}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.evtReducersToTriggers=o,t.completeScope=function(e,t,n){return r.ComposedScopeImpl.create(e,t,n)},t.completeScopeFromLayers=function(e,t){var n=[],o=[];return t.forEach((function(e){var t=e.scope();t.reducers&&n.push(t.reducers),t.composers&&o.push(t.composers)})),r.ComposedScopeImpl.create(e,n,o)},t.createTriggers=function(e,t,r,i){var a,s={};for(var c in t.reducers)s=n.__assign(n.__assign({},s),((a={})[c]=o(e[c].evts,t.reducers[c].evts,r[c],c,i),a));return s}})),define("comments2/components/comment_editor/draft_utils",["require","exports","tslib","draft-js","punycode","immutable"],(function(e,t,n,r,o,i){"use strict";function a(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getStartKey(),o=t.getEndKey(),i=n.getBlockMap();return i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]]).toList()}Object.defineProperty(t,"__esModule",{value:!0}),o=n.__importStar(o),t.contentIsEmpty=function(e){return 0===e.getCurrentContent().getPlainText().length},t.hasFocus=function(e){return e.getSelection().getHasFocus()},t.replaceContent=function(e,t){return r.EditorState.forceSelection(r.EditorState.push(e,t,"insert-fragment"),t.getSelectionAfter())},t.replaceText=function(e,t,n,o,i,a){return r.Modifier.replaceText(e,r.SelectionState.createEmpty(t).merge({anchorOffset:n,focusOffset:o}),i,void 0,a)},t.findWithRegex=function(e,t,n){for(var r,o,i,a=t.getText();null!==(r=e.exec(a));)o=r.index,i=r[0].length,a=a.substring(o+i),n(o,o+i)},t.locationToSelection=function(e,n){var o=null,i=null,a=e.start,s=e.end,c=void 0,l=void 0,u=0;if(n.getBlockMap().forEach((function(e,n){if(e&&"atomic"!==e.getType()){var r=t.decodeUnicode(e.getText());if(n&&null===o&&a<u+r.length){o=n;var p=a-u;c=t.encodeUnicode(r.slice(0,p)).length}if(n&&null===i&&s<=u+r.length){i=n;p=s-u;l=t.encodeUnicode(r.slice(0,p)).length}u+=r.length}return o&&i})),!o||!i)throw"Bad range";return r.SelectionState.createEmpty(o).merge({anchorKey:o,anchorOffset:c,focusKey:i,focusOffset:l})},t.parseEmail=function(e){return e.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)},t.decodeUnicode=function(e){return o.ucs2.decode(e)},t.encodeUnicode=function(e){return o.ucs2.encode(e)},t.paperEmojiMapper=function(e){if("img"===e.tagName.toLowerCase()){var t=e.getAttribute("data-emoji-ch");if(t){var n=document.createElement("span");return n.textContent=t,n}}return e},t.htmlToFragment=function(e){var t=e.html,o=e.contentState,a=e.editorKey,s=e.elementMappers,c=void 0===s?[]:s,l=document.createElement("body");l.innerHTML=t;var u=[],p=l.textContent||"",d=Array(p.length),f=[0,0],m="",g=function(e){void 0===e&&(e="unstyled");var t=d.slice(f[0],f[1]);u=n.__spreadArrays(u,[(new r.ContentBlock).merge({type:e,key:r.genKey(),text:m,characterList:i.List(t)})]),m="",f=[f[1],f[1]]},h=function(e){return function(t){switch(t.nodeType){case Node.TEXT_NODE:if(t.textContent){var s=r.CharacterMetadata.create(e),l=t.textContent;m+=l;for(var u=0;u<l.length;u++,f[1]++)d[f[1]]=s}break;case Node.ELEMENT_NODE:var p=c.reduce((function(e,t){return t(e)}),t);if(p.childNodes.length){var v=e?e.style.toArray():[],y=e?e.entity:null,_=p.tagName.toLowerCase(),b="true"===p.getAttribute("data-block")||-1!==n.__spreadArrays(["p","li","blockquote","pre"],[1,2,3,4,5,6].map((function(e){return"h"+e}))).indexOf(_);v=n.__spreadArrays(v,(function(e){var t=e.style,r=e.tagName.toLowerCase(),o=[];return(parseInt(t.fontWeight||"0")>=600||"bold"===t.fontWeight||"b"===r||"strong"===r)&&(o=n.__spreadArrays(o,["BOLD"])),"underline"!==t.textDecoration&&"u"!==r||(o=n.__spreadArrays(o,["UNDERLINE"])),"strikethrough"!==t.textDecoration&&"s"!==r&&"strike"!==r||(o=n.__spreadArrays(o,["STRIKETHROUGH"])),"italic"!==t.fontStyle&&"i"!==r&&"em"!==r||(o=n.__spreadArrays(o,["ITALIC"])),o})(p)),y=(function(e,t,n){if(e.hasAttribute("data-entity-key")&&e.getAttribute("data-editor")===n){var r=e.getAttribute("data-entity-key");try{return t.getEntity(r),r}catch(e){return null}}})(p,o,a)||y;var C={style:i.OrderedSet(v)};y&&(C.entity=y),Array.from(p.childNodes).forEach(h(C)),b&&g()}}}};return Array.from(l.childNodes).forEach(h()),0===u.length&&g(),i.OrderedMap(u.map((function(e){return[e.getKey(),e]})))},t.mergeBlockDataByKey=function(e,t,n,o){var i;void 0===o&&(o=!1);var a=e.getCurrentContent(),s=a.getBlockForKey(t).mergeIn(["data"],n),c=a.getBlockMap().merge(((i={})[t]=s,i)),l=e.getSelection(),u=r.EditorState.push(e,a.merge({blockMap:c}),"change-block-data");return o?u:r.EditorState.acceptSelection(u,l)},t.getSelectedBlocksList=a,t.getSelectionInlineStyle=function(e){var t={BOLD:!1,ITALIC:!1,UNDERLINE:!1,STRIKETHROUGH:!1},n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartOffset(),i=r.getBlockForKey(n.getStartKey());return(n.isCollapsed()?e.getCurrentInlineStyle().toList().toJS():i.getInlineStyleAt(o).toArray()).forEach((function(e){e in t&&(t[e]=!0)})),t},t.getSelectionBlockTypes=function(e){var t=a(e),n=null;return t.forEach((function(e){if(e){var t=e.getType();if(null===n)n=t;else if(n!==t)return n=null,!1}})),n||"unstyled"},t.trimTrailingWhitespace=function(e){var t=e.getCurrentContent(),n=t.getLastBlock(),o=n.getKey(),i=n.getText(),a=i.trimRight(),s=new r.SelectionState({anchorKey:o,anchorOffset:0,focusKey:o,focusOffset:i.length}),c=r.Modifier.replaceText(t,s,a);return r.EditorState.push(e,c,"remove-range")}})),define("comments2/components/comment_editor/layers/interaction",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.updateEditorState=function(e){return e.innerProps.evt},t.prototype.handleKeyCommand=function(e){var t=e.innerProps,n=t.evt,r=t.value,o=s.RichUtils.handleKeyCommand(r,n);return o||r},t.prototype.handleCompositionStart=function(){return!0},t.prototype.handleCompositionEnd=function(){return!1},t.prototype.setFocused=function(){return!0},t.prototype.setBlurred=function(){return!1},t})(a.BaseLayer);t.InteractionLayer=c,r.__decorate([o.plug(i.into.draft.on.change.update.editorState)],c.prototype,"updateEditorState",null),r.__decorate([o.plug(i.into.draft.on.keyCommand.update.editorState)],c.prototype,"handleKeyCommand",null),r.__decorate([o.plug(i.into.draft.on.compositionStart.update.isComposing)],c.prototype,"handleCompositionStart",null),r.__decorate([o.plug(i.into.draft.on.compositionEnd.update.isComposing)],c.prototype,"handleCompositionEnd",null),r.__decorate([o.plug(i.into.draft.on.focus.update.isFocused)],c.prototype,"setFocused",null),r.__decorate([o.plug(i.into.draft.on.blur.update.isFocused)],c.prototype,"setBlurred",null)})),define("comments2/components/comment_editor/layers/macro",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","comments2/components/comment_editor/core/types","comments2/components/comment_editor/components/active_macro_span_component","draft-js","comments2/components/comment_editor/draft_utils"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return n.__extends(t,e),t.prototype.addDecorators=function(e){var t=e.innerProps.value;return n.__spreadArrays(t,[{strategy:this.findActiveMacros.bind(this,this.options.type),component:s.ActiveMacroSpanComponent,props:this.options.spanProps}])},t.prototype.checkForActiveMacro=function(e){var t=e.kernel,n=e.triggers,r=this.onMacro,o=this.options,i=o.delimiter,a=o.type,s=e.status.draft.editorState,c=s.getSelection();if(c.isCollapsed()){var l=s.getCurrentContent(),u=c.getAnchorKey(),p=l.getBlockForKey(u),d=c.getAnchorOffset(),f=p.getEntityAt(d)||p.getEntityAt(d-1);if(null!==f&&l.getEntity(f).getType()===a){var m="",g=-1,h=-1;p.findEntityRanges((function(e){return e.getEntity()===f}),(function(e,t){g=e,h=t,m=p.getText().substring(e,t)}));var v=e.status.macro.active;(v&&v.entityKey!==f||m.length&&(!v||v.content!==m))&&n.macro.update(t.compose(r,{delimiter:i,content:m,entityKey:f,blockKey:u,macroStartOffset:g,macroEndOffset:h,type:a})||null)}else n.macro.update(null),n.macro.updateVisibility(!0)}},t.prototype.applyMacroOnRightArrow=function(e){var t=e.status,n=e.innerProps.evt,r=t.macro;r.active&&39===n.which&&r.active.type===this.options.type&&(e.innerProps.value.getSelection().getAnchorOffset()>=r.active.endOffset&&(e.triggers.macro.apply(null),n.preventDefault()))},t.prototype.applyMacroOnReturn=function(e){var t=e.triggers,n=e.status.macro;n.active&&n.active.type===this.options.type&&t.macro.apply(null)},t.prototype.insertMacro=function(e){var t=this.options.delimiter,n=e.status,r=e.innerProps.value;if(n.macro.active)return r;var o=r.getSelection(),i=r.getCurrentContent().getBlockForKey(o.getAnchorKey()).getText(),a=o.getStartOffset();function s(e,t,n){var r=e.getSelection();return l.replaceContent(e,l.replaceText(e.getCurrentContent(),r.getFocusKey(),r.getStartOffset(),r.getEndOffset(),t,n))}var c=r;0!==a&&" "!==i.substr(a-1,1)&&(c=s(r," "));var u=c.getCurrentContent().createEntity(this.options.type,"MUTABLE");return s(c,t,u.getLastCreatedEntityKey())},t.prototype.updateActiveMacroEntity=function(e){var t=this.options.delimiter,n=e.innerProps,r=n.evt,o=n.value,i=o.getSelection(),a=o.getCurrentContent(),s=a.getBlockForKey(i.getAnchorKey());if(t.lastIndexOf(r)!==t.length-1){var u=i.getAnchorOffset(),p=s.getEntityAt(u)||s.getEntityAt(u-1);if(null!==p&&a.getEntity(p).getType()===this.options.type){if(" "===r){var d=a;if(s.findEntityRanges((function(e){return e.getEntity()===p}),(function(e,t){var n=s.getText().substring(e,t);n.match(/\s/)&&(d=l.replaceText(a,i.getAnchorKey(),e,t,n+r))})),d!==a)return l.replaceContent(o,d)}v=c.Modifier.replaceText(a,i,r,void 0,p);return l.replaceContent(o,v)}return o}var f=s.getText(),m=i.getStartOffset(),g=i.getEndOffset(),h=s.getEntityAt(m)||s.getEntityAt(m-1);if(null!==h&&0===a.getEntity(h).getType().indexOf("macro: ")){var v=c.Modifier.replaceText(a,i,r,void 0,h);return l.replaceContent(o,v)}var y=e.kernel.compose(this.onDelimiter,{text:f,startOffset:m,endOffset:g,input:r,delimiter:t});if(void 0!==y){var _=a.createEntity(this.options.type,"MUTABLE").getLastCreatedEntityKey();return l.replaceContent(o,l.replaceText(a,s.getKey(),y.start,y.end,y.text,_))}},t.prototype.updateActiveMacros=function(e){var t=e.innerProps.evt;return null===t?null:t&&t.type===this.options.type?t:void 0},t.prototype.updateMacroRef=function(e){var t=e.status.macro.active,n=e.innerProps.evt;return t&&t.type===this.options.type?n:void 0},t.prototype.updateVisibility=function(e){var t=e.status.macro.active,n=e.innerProps.evt;return t&&t.type!==this.options.type?void 0:n},t.prototype.applyMacro=function(e){var t=e.status.macro;t.active&&t.active.type===this.options.type&&e.kernel.compose(this.onAutoComplete)},t.prototype.findActiveMacros=function(e,t,n,r){t.findEntityRanges((function(t){var n=t.getEntity();return null!==n&&r.getEntity(n).getType()===e}),n)},t})(a.BaseLayer);t.MacroLayer=u,r.__decorate([o.plug(i.into.draft.on.init.update.decorators)],u.prototype,"addDecorators",null),r.__decorate([o.plug(i.into.draft.on.change.update.editorState)],u.prototype,"checkForActiveMacro",null),r.__decorate([o.plug(i.into.draft.on.key.update.editorState)],u.prototype,"applyMacroOnRightArrow",null),r.__decorate([o.plug(i.into.draft.on.returnKey.update.editorState)],u.prototype,"applyMacroOnReturn",null),r.__decorate([o.plug(i.into.draft.on.insertMacro.update.editorState)],u.prototype,"insertMacro",null),r.__decorate([o.plug(i.into.draft.on.input.update.editorState),o.plug(i.into.draft.on.pasteText.update.editorState)],u.prototype,"updateActiveMacroEntity",null),r.__decorate([o.plug(i.into.macro.on.update.update.active)],u.prototype,"updateActiveMacros",null),r.__decorate([o.plug(i.into.macro.on.updateMacroRef.update.macroRef)],u.prototype,"updateMacroRef",null),r.__decorate([o.plug(i.into.macro.on.updateVisibility.update.isVisible)],u.prototype,"updateVisibility",null),r.__decorate([o.plug(i.into.macro.on.apply)],u.prototype,"applyMacro",null)})),define("comments2/components/comment_editor/layers/mentions_entity",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js","comments2/components/comment_editor/draft_utils","comments2/components/comment_editor/components/mention_span_component"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.addDecorators=function(e){return n.__spreadArrays(e.innerProps.value,[{strategy:function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"mention"===n.getEntity(t).getType()}),t)},props:{editorKey:e.status.draft.editorKey},component:l.MentionSpanComponent}])},t.prototype.initMentions=function(e){var t=e.innerProps,n=t.value,r=t.evt,o=this.splitMentions(r.metadata).mentions;return s.EditorState.createWithContent(o.reduce((function(e,t){var n=e.createEntity("mention","IMMUTABLE",{identifier:t.user.identifier,type:t.user.type}),r=n.getLastCreatedEntityKey(),o=c.locationToSelection(t.location,n);return s.Modifier.applyEntity(e,o,r)}),n.getCurrentContent()))},t.prototype.postMentions=function(e){var t=e.innerProps,r=t.evt,o=t.value,i=this.getMentionMetadata(s.convertToRaw(r.getCurrentContent())),a=this.splitMentions(o.metadata).other;return n.__assign(n.__assign({},o),{metadata:n.__spreadArrays(a,i)})},t.prototype.getMentionMetadata=function(e){return e.blocks.reduce((function(t,r){var o=t.metadata,i=t.pos,a=r.entityRanges;return{metadata:n.__spreadArrays(o,a.filter((function(t){return"mention"===e.entityMap[t.key].type})).map((function(t){var n=e.entityMap[t.key].data;return{type:"mention",user:{type:n.type,identifier:n.identifier},location:{start:i+t.offset,end:i+t.offset+t.length}}}))),pos:i+c.decodeUnicode(r.text).length}}),{metadata:[],pos:0}).metadata},t.prototype.splitMentions=function(e){return e.reduce((function(e,t){return"mention"===t.type?{mentions:n.__spreadArrays(e.mentions,[t]),other:e.other}:{mentions:e.mentions,other:n.__spreadArrays(e.other,[t])}}),{mentions:[],other:[]})},t})(a.BaseLayer);t.MentionsEntityLayer=u,r.__decorate([o.plug(i.into.draft.on.init.update.decorators)],u.prototype,"addDecorators",null),r.__decorate([o.plug(i.into.draft.on.populateWithComment.update.editorState)],u.prototype,"initMentions",null),r.__decorate([o.plug(i.into.comment.on.post.update.content)],u.prototype,"postMentions",null)})),define("comments2/components/comment_editor/layers/mentions_macro",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","draft-js","comments2/components/comment_editor/layers/macro","comments2/components/comment_editor/components/mention_suggestions_list_component","comments2/components/comment_editor/draft_utils"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(t){var n=e.call(this,{type:"macro: @",delimiter:"@",spanProps:{className:"active-mention"}})||this;return n.mentionsOptions=t,n.onDelimiter=function(e){var t=n.options.delimiter,r=e.innerProps,o=r.text,i=r.startOffset,a=r.endOffset,s=r.input,c=i-t.length+s.length;if(o.substring(c,i)+s===t&&(0===c||" "===o.substr(c-1,1)))return{start:c,end:a,text:o.substring(c,i)+s}},n.onMacro=function(e){var t=e.innerProps,r=t.content,o=t.entityKey,i=t.blockKey,a=t.macroEndOffset,s=t.macroStartOffset,l=n.options.type,u=n.getQuery(r);return e.triggers.suggestion.updateTotalSuggestions(0),e.triggers.suggestion.updateSelectedIndex(-1),n.mentionsOptions.onMentionsQueryUpdated(u),{blockKey:i,entityKey:o,content:r,type:l,endOffset:a,startOffset:s,chrome:c.MentionSuggestionsListComponent}},n.onAutoComplete=function(e){window.setTimeout((function(){n.completeMentionImpl(e)}),0)},n.getSuggestedMentionUsers=function(e){var t=e.status.macro;if(t.active){var r=e.status.mentionSuggestions,o=t.active,i=o.content;if(o.type===n.options.type){var a=n.getQuery(i);return r.userMap[a]}}},n.getSelectedUser=function(e){var t=e.status,n=t.suggestion,r=t.mentionSuggestions.users;if(-1!==n.selectedIndex&&null!==r)return r[n.selectedIndex]},n}return n.__extends(t,e),t.prototype.updateUsers=function(e){return e.kernel.compose(this.getSuggestedMentionUsers)||null},t.prototype.triggerQueryUpdateOnSuggestions=function(e){var t=e.innerProps.prevStatus.mentionSuggestions,n=t.userMap,r=t.users,o=e.status.mentionSuggestions,i=o.userMap,a=o.users;n!==i&&e.triggers.mentionSuggestions.queryUpdate(null),r!==a&&a&&e.triggers.suggestion.updateTotalSuggestions(a.length)},t.prototype.triggerQueryUpdateOnMacro=function(e){e.triggers.mentionSuggestions.queryUpdate(null)},t.prototype.completeMentionImpl=function(e){var t=e.status,n=e.triggers,r=t.draft,o=t.macro,i=r.editorState.getCurrentContent();if(o.active){var a=i.getBlockForKey(o.active.blockKey),s=e.kernel.compose(this.getSelectedUser);if(s){var c=s.name.public||s.email,u=s.email,p=function(e){return!!o.active&&g(o.active,e)},f=function(e,t){return o.active&&d({editorState:r.editorState,blockKey:o.active.blockKey,identifier:u,text:c,start:e,end:t},n,s)};a.findEntityRanges(p,f)}else{var m=o.active.content.substring(this.options.delimiter.length);if(l.parseEmail(m)&&!this.mentionsOptions.disableEmailMention){p=function(e){return!!o.active&&g(o.active,e)},f=function(e,t){return o.active&&d({editorState:r.editorState,blockKey:o.active.blockKey,identifier:m,text:m,start:e,end:t},n,s)};a.findEntityRanges(p,f)}}}function g(e,t){return e.entityKey===t.getEntity()}},t.prototype.getQuery=function(e){var t=this.options.delimiter;return 0===e.indexOf(t)?e.substring(t.length):e},t})(s.MacroLayer);function p(e){var t=e.editorState,n=e.identifier,r=e.blockKey,o=e.start,i=e.end,s=e.text,c={identifier:n,type:"email"},u=t.getCurrentContent().createEntity("mention","IMMUTABLE",c),p=u.getLastCreatedEntityKey(),d=l.replaceText(u,r,o,i,"@"+s,p);return{editorState:l.replaceContent(t,a.Modifier.insertText(d,d.getSelectionAfter()," ")),mentionKey:p,mentionData:c}}function d(e,t,n){var r=p(e),o=r.editorState,i=r.mentionKey,a=r.mentionData;t.draft.change(o),t.mentionSuggestions.onApplyMentionToRange({mentionKey:i,mentionData:a,user:n})}t.MentionsMacroLayer=u,r.__decorate([o.plug(i.into.mentionSuggestions.on.queryUpdate.update.users)],u.prototype,"updateUsers",null),r.__decorate([o.plug(i.into.mentionSuggestions)],u.prototype,"triggerQueryUpdateOnSuggestions",null),r.__decorate([o.plug(i.into.macro.on.update)],u.prototype,"triggerQueryUpdateOnMacro",null),t.createMentionEntity=p,t.applyMentionToRange=d})),define("comments2/components/comment_editor/layers/scaffold",["require","exports","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/types","draft-js"],(function(e,t,n,r,o,i){"use strict";function a(){return{draft:{editorKey:i.genKey(),editorState:i.EditorState.createEmpty(),decorators:[],blockRenderers:{},placeholder:"",readOnly:!1,isComposing:!1,isFocused:!1,containerPostOnBlur:!1},comment:{content:{text:"",metadata:[]}},macro:{active:null,macroRef:null,isVisible:!0},suggestion:{selectedIndex:-1,totalSuggestions:0},mentionShareFlow:{popupProps:null},mentionSuggestions:{userMap:{}},container:{isFocused:!1},hyperlink:{linkPromptProps:null}}}function s(e,t){return Object.keys(t).reduce((function(t,r){var o;if(!e[r])throw new TypeError(r+" is an unsupported feature");return n.__assign(n.__assign({},t),((o={})[r]=e[r],o))}),{})}Object.defineProperty(t,"__esModule",{value:!0}),t.into=r.scaffold(o.commentEditorNames),t.getCommentEditorDefaultStatus=a,t.filterSupportedFeatures=s,t.createDefaultStatus=function(e){return s(a(),e)}})),define("comments2/components/comment_editor/layers/style",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js","comments2/components/comment_editor/draft_utils"],(function(e,t,n,r,o,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.initStyle=function(e){var t=e.innerProps,n=t.value,r=t.evt,o=this.splitStyles(r.metadata).styles;return s.EditorState.createWithContent(o.reduce((function(e,t){var n=c.locationToSelection(t.location,e);return s.Modifier.applyInlineStyle(e,n,t.style.toUpperCase())}),n.getCurrentContent()))},t.prototype.postStyles=function(e){var t=e.innerProps,r=t.evt,o=t.value,i=this.getStyleMetadata(s.convertToRaw(r.getCurrentContent())),a=this.splitStyles(o.metadata).other;return n.__assign(n.__assign({},o),{metadata:n.__spreadArrays(a,i)})},t.prototype.getStyleMetadata=function(e){return e.blocks.reduce((function(e,t){var r=e.metadata,o=e.pos,i=t.inlineStyleRanges;return{metadata:n.__spreadArrays(r,i.map((function(e){return{type:"style",style:e.style.toLowerCase(),location:{start:o+e.offset,end:o+e.offset+e.length}}}))),pos:o+c.decodeUnicode(t.text).length}}),{metadata:[],pos:0}).metadata},t.prototype.splitStyles=function(e){return e.reduce((function(e,t){return"style"===t.type?{styles:n.__spreadArrays(e.styles,[t]),other:e.other}:{styles:e.styles,other:n.__spreadArrays(e.other,[t])}}),{styles:[],other:[]})},t})(a.BaseLayer);t.StyleLayer=l,r.__decorate([o.plug(i.into.draft.on.populateWithComment.update.editorState)],l.prototype,"initStyle",null),r.__decorate([o.plug(i.into.comment.on.post.update.content)],l.prototype,"postStyles",null)})),define("comments2/components/comment_editor/layers/suggestions",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","comments2/components/comment_editor/core/types"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.handleArrowsAndEscape=function(e){var t=e.triggers,n=e.status,r=e.innerProps.evt;if(n.macro.active)switch(r.which){case 38:t.suggestion.up(1);break;case 40:t.suggestion.down(1);break;case 27:t.macro.update(null),t.macro.updateVisibility(!1)}},t.prototype.handleUp=function(e){var t=e.status.suggestion.totalSuggestions,n=e.innerProps,r=n.evt,o=n.value;return((Math.max(o,0)-r)%t+t)%t},t.prototype.handleDown=function(e){var t=e.status.suggestion.totalSuggestions,n=e.innerProps,r=n.evt;return(n.value+r)%t},t.prototype.updateIndex=function(e){return e.innerProps.evt},t.prototype.updateTotalSuggestions=function(e){var t=e.innerProps.evt;if(t!==e.status.suggestion.totalSuggestions)return e.triggers.suggestion.updateSelectedIndex(-1),t},t.prototype.onMentionSuggestionsChange=function(e){var t=e.status,n=e.triggers,r=t.mentionSuggestions.users;r&&n.suggestion.updateTotalSuggestions(r.length)},t})(a.BaseLayer);t.SuggestionLayer=s,r.__decorate([o.plug(i.into.draft.on.key)],s.prototype,"handleArrowsAndEscape",null),r.__decorate([o.plug(i.into.suggestion.on.up.update.selectedIndex)],s.prototype,"handleUp",null),r.__decorate([o.plug(i.into.suggestion.on.down.update.selectedIndex)],s.prototype,"handleDown",null),r.__decorate([o.plug(i.into.suggestion.on.updateSelectedIndex.update.selectedIndex)],s.prototype,"updateIndex",null),r.__decorate([o.plug(i.into.suggestion.on.updateTotalSuggestions.update.totalSuggestions)],s.prototype,"updateTotalSuggestions",null),r.__decorate([o.plug(i.into.mentionSuggestions)],s.prototype,"onMentionSuggestionsChange",null)})),define("comments2/components/comment_editor/layers/text",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.initText=function(e){var t=e.innerProps.evt;return s.EditorState.createWithContent(s.ContentState.createFromText(t.text))},t.prototype.postText=function(e){return{metadata:[],text:e.innerProps.evt.getCurrentContent().getPlainText()}},t})(a.BaseLayer);t.TextLayer=c,r.__decorate([o.plug(i.into.draft.on.populateWithComment.update.editorState)],c.prototype,"initText",null),r.__decorate([o.plug(i.into.comment.on.post.update.content)],c.prototype,"postText",null)})),define("comments2/components/comment_editor/layers/update",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/comment_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.triggerInit=function(e){var t=e.status.comment.content;if(e.innerProps.prevStatus.comment.content!==t){e.triggers.draft.init(null);var n=e.triggers.draft.populateWithComment(t).editorState;e.triggers.draft.change(n)}},t.prototype.triggerChange=function(e){var t=e.status.draft.editorState;e.innerProps.prevStatus.draft.editorState!==t&&e.triggers.draft.change(t)},t.prototype.addDecoratorsOnChange=function(e){var t=e.innerProps.value,n=e.status.draft.decorators;if(null===t.getDecorator())return this.addDecorators(t,n)},t.prototype.addDecorators=function(e,t){return s.EditorState.set(e,{decorator:new s.CompositeDecorator(t)})},t})(a.BaseLayer);t.UpdateLayer=c,r.__decorate([o.plug(i.into.comment)],c.prototype,"triggerInit",null),r.__decorate([o.plug(i.into.draft)],c.prototype,"triggerChange",null),r.__decorate([o.plug(i.into.draft.on.change.update.editorState)],c.prototype,"addDecoratorsOnChange",null)})),define("comments2/components/comment_editor/types",["require","exports"],(function(e,t){"use strict";var n,r,o,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),(n=t.ContainerNames||(t.ContainerNames={})).evts=["focus","blur","updateFocus"],n.values=["isFocused"],(r=t.DraftNames||(t.DraftNames={})).evts=["init","populateWithComment","change","key","keyCommand","returnKey","input","pasteText","pasteHTML","insertMacro","focus","blur","compositionStart","compositionEnd","readOnly"],r.values=["editorKey","editorState","readOnly","placeholder","decorators","isComposing","isFocused","blockRenderers"],(o=t.CommentNames||(t.CommentNames={})).evts=["cancel","post"],o.values=["content"],(i=t.MacroNames||(t.MacroNames={})).evts=["update","apply","updateMacroRef","updateVisibility"],i.values=["active","macroRef","isVisible"],(a=t.MentionSuggestionNames||(t.MentionSuggestionNames={})).evts=["queryUpdate","onApplyMentionToRange"],a.values=["userMap","users"],(s=t.SuggestionSelectionNames||(t.SuggestionSelectionNames={})).evts=["updateSelectedIndex","updateTotalSuggestions","up","down"],s.values=["selectedIndex","totalSuggestions"],t.commentEditorNames={draft:t.DraftNames,comment:t.CommentNames,macro:t.MacroNames,suggestion:t.SuggestionSelectionNames,mentionSuggestions:t.MentionSuggestionNames,container:t.ContainerNames}})),define("comments2/components/comment/separator",["require","exports","tslib","react"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),t.Separator=function(){return r.createElement("span",{className:"sc-comment-separator"})}})),define("comments2/components/utils/shallow_equals",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shallowEquals=function(e,t){for(var n in e)if(e[n]!==t[n])return!1;return!0}})),define("comments2/components/folder_overview_editor",["require","exports","tslib","comments2/components/folder_overview_editor/components/folder_overview_editor"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.__exportStar(r,t)})),define("comments2/components/folder_overview_editor/components/contextual_toolbar_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component","draft-js","comments2/components/folder_overview_editor/components/toolbar_component","comments2/components/folder_overview_editor/components/popover_component"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var c=(function(e){function t(t){var n=e.call(this,t)||this;return n.popoverComponent=null,n.openLinkPrompt=function(){var e=n.createPropsForLinkPrompt();n.triggers.hyperlink.updateLinkPromptProps(e)},n.createPropsForLinkPrompt=function(){var e=n.popoverComponent&&n.popoverComponent.getCachedPosition();return e||null},n.setPopoverComponentRef=function(e){n.popoverComponent=e},n}return n.__extends(t,e),t.prototype.getPosition=function(){var e=i.getVisibleSelectionRect(window);return e&&0!==e.width?e:null},t.prototype.renderToolbar=function(){var e=this.container.getStatus().draft.editorState,t=this.localization.intl;return r.createElement(a.ToolbarComponent,{intl:t},r.createElement(a.ToolbarBoldButton,{intl:t,triggers:{draft:this.triggers.draft}}),r.createElement(a.ToolbarItalicButton,{intl:t,triggers:{draft:this.triggers.draft}}),r.createElement(a.ToolbarStrikeThroughButton,{state:e,intl:t,triggers:{draft:this.triggers.draft}}),r.createElement(a.ToolbarOpenLinkButton,{intl:t,triggers:{draft:this.triggers.draft},onClick:this.openLinkPrompt}),r.createElement(a.ToolbarDivider,{key:"-"}),r.createElement(a.ToolbarUnorderedListButton,{intl:t,state:e,triggers:{draft:this.triggers.draft}}),r.createElement(a.ToolbarOrderedListButton,{intl:t,state:e,triggers:{draft:this.triggers.draft}}))},t.prototype.render=function(){var e=this.status.contextualToolbar.isVisible,t=this.renderToolbar();return r.createElement(s.PopoverComponent,{ref:this.setPopoverComponentRef,popoverWidth:200,className:"sc-contextual-toolbar-popover",scrollClassName:this.props.scrollClassName,computeTargetPosition:this.getPosition,isVisible:e},t)},t})(o.EditorComponent);t.ContextualToolbarComponent=c})),define("comments2/components/folder_overview_editor/components/contextual_toolbar_icons",["require","exports","tslib","react"],(function(e,t,n,r){"use strict";var o,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),(i=t.ToolbarActionIcon||(t.ToolbarActionIcon={})).BOLD="BOLD",i.ITALIC="ITALIC",i.STRIKE_THROUGH="STRIKE_THROUGH",i.UNORDERED_LIST="UNORDERED_LIST",i.ORDERED_LIST="ORDERED_LIST",i.LINK="LINK",i.MENTION="MENTION",i.TASK="TASK",i.ONBOARDING="ONBOARDING",t.toolbarSvgIcons=((o={})[t.ToolbarActionIcon.BOLD]=function(){return r.createElement("svg",{viewBox:"0 0 20 20"},r.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.515 5.875H7.875V17.6H12.17C13.3345 17.6 14.425 17.4117 15.2276 16.8818C16.0395 16.3458 16.54 15.4715 16.54 14.145C16.54 12.8378 15.6664 11.7421 14.3952 11.3592C14.8878 11.1875 15.2948 10.9225 15.5958 10.5634C15.9778 10.1079 16.18 9.51165 16.18 8.79C16.18 7.81243 15.767 7.07728 15.0952 6.59064C14.4281 6.10747 13.5147 5.875 12.515 5.875ZM9.52 10.705V7.25H12.44C13.0619 7.25 13.5709 7.38573 13.9217 7.657C14.2673 7.92431 14.475 8.33528 14.475 8.925C14.475 9.62281 14.2109 10.0582 13.8157 10.3252C13.4122 10.5976 12.8562 10.705 12.26 10.705H9.52ZM9.52 16.225V12.11H12.065C12.9643 12.11 13.6581 12.2484 14.1242 12.5562C14.5802 12.8573 14.835 13.3319 14.835 14.055C14.835 14.8889 14.5721 15.4202 14.1281 15.7489C13.6764 16.0833 13.0152 16.225 12.185 16.225H9.52Z"})))},o[t.ToolbarActionIcon.ITALIC]=function(){return r.createElement("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M10.75 17.75H9L12.5 5.75H14.25L10.75 17.75Z"}))},o[t.ToolbarActionIcon.STRIKE_THROUGH]=function(){return r.createElement("svg",{viewBox:"0 0 20 20"},r.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("path",{d:"M10.1060324,10 L8.51882081,10 C8.46159424,9.74866009 8.435,9.48434783 8.435,9.21 C8.435,7.35 9.965,6 12.32,6 C14.75,6 16.01,7.29 16.115,9.24 L14.69,9.24 C14.555,8.115 13.91,7.11 12.305,7.11 C10.745,7.11 9.905,7.995 9.905,9.09 C9.905,9.44281227 9.9693552,9.74481781 10.1060324,10 Z M16.361,13.5 C16.4288,13.7826 16.46,14.088 16.46,14.415 C16.46,16.515 15.035,17.865 12.29,17.865 C9.635,17.865 8.12,16.44 8,14.415 L9.455,14.415 C9.62,15.645 10.475,16.74 12.32,16.74 C14.36,16.74 15.035,15.75 15.035,14.535 C15.035,14.1387272 14.9484809,13.7905206 14.7542791,13.5 L16.361,13.5 Z",id:"S-2"}),r.createElement("polygon",{id:"Line-2",fillRule:"nonzero",points:"5 12.5 5 11 20 11 20 12.5"})))},o[t.ToolbarActionIcon.UNORDERED_LIST]=function(){return r.createElement("svg",{viewBox:"0 0 20 20"},r.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("path",{d:"M9,17 L9,15.5 L19.5,15.5 L19.5,17 L9,17 Z M9,12.5 L9,11 L19.5,11 L19.5,12.5 L9,12.5 Z M9,8 L9,6.5 L19.5,6.5 L19.5,8 L9,8 Z",id:"Icon-Fill",fillRule:"nonzero"}),r.createElement("circle",{id:"Oval-2",cx:"5.5",cy:"7.25",r:"1.5"}),r.createElement("circle",{id:"Oval-2",cx:"5.5",cy:"11.75",r:"1.5"}),r.createElement("circle",{id:"Oval-2",cx:"5.5",cy:"16.25",r:"1.5"})))},o[t.ToolbarActionIcon.ORDERED_LIST]=function(){return r.createElement("svg",{viewBox:"0 0 20 20"},r.createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},r.createElement("path",{d:"M9,17 L9,15.5 L19.5,15.5 L19.5,17 L9,17 Z M9,12.5 L9,11 L19.5,11 L19.5,12.5 L9,12.5 Z M9,8 L9,6.5 L19.5,6.5 L19.5,8 L9,8 Z",id:"Icon-Fill",fillRule:"nonzero"}),r.createElement("circle",{id:"Oval-2",cx:"5.75",cy:"11.75",r:"1"}),r.createElement("text",{id:"1",fontFamily:"AtlasGrotesk-Black, Atlas Grotesk",fontSize:"5px",fontWeight:"700"},r.createElement("tspan",{x:"4.42",y:"9"},"1")),r.createElement("text",{id:"3",fontFamily:"AtlasGrotesk-Black, Atlas Grotesk",fontSize:"5px",fontWeight:"700"},r.createElement("tspan",{x:"3.845",y:"18.25"},"3"))))},o[t.ToolbarActionIcon.LINK]=function(){return r.createElement("svg",{viewBox:"0 0 20 20"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5858 13.636L7.93936 13.2825L6.87869 12.2218L6.52514 12.5754C5.15831 13.9422 5.15831 16.1583 6.52514 17.5251C7.89198 18.892 10.1081 18.892 11.4749 17.5251L13.5962 15.4038C14.963 14.037 14.963 11.8209 13.5962 10.4541L12.5355 11.5147C13.3166 12.2958 13.3166 13.5621 12.5355 14.3431L10.4142 16.4645C9.63318 17.2455 8.36685 17.2455 7.5858 16.4645C6.80475 15.6834 6.80475 14.4171 7.5858 13.636ZM16.0711 7.97918C15.29 7.19814 14.0237 7.19814 13.2427 7.97918L11.1213 10.1005C10.3403 10.8816 10.3403 12.1479 11.1213 12.9289L10.0607 13.9896C8.69384 12.6228 8.69384 10.4067 10.0607 9.03985L12.182 6.91852C13.5488 5.55169 15.7649 5.55169 17.1317 6.91852C18.4986 8.28536 18.4986 10.5014 17.1317 11.8683L16.7782 12.2218L15.7175 11.1612L16.0711 10.8076C16.8521 10.0266 16.8521 8.76023 16.0711 7.97918Z"}))},o[t.ToolbarActionIcon.MENTION]=function(){return r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.2598 4.875C10.0768 4.875 8.22867 5.63069 6.92609 6.9456C5.6236 8.26042 4.875 10.1259 4.875 12.3301C4.875 14.6028 5.60277 16.4717 6.91594 17.7725C8.22898 19.0732 10.1151 19.7939 12.4092 19.7939C13.5268 19.7939 14.6046 19.6345 15.4118 19.3565L15.4961 19.3274V17.9357L15.3188 18.0173C15.0586 18.1371 14.6379 18.2405 14.1252 18.3136C13.6152 18.3863 13.0234 18.4277 12.4268 18.4277C10.5731 18.4277 9.06 17.8328 8.01062 16.7866C6.96128 15.7405 6.36426 14.2318 6.36426 12.3828C6.36426 8.78842 8.78499 6.23242 12.1455 6.23242C13.8778 6.23242 15.3272 6.76702 16.3421 7.6823C17.3559 8.59665 17.9443 9.89817 17.9443 11.4512C17.9443 12.5209 17.7678 13.3891 17.4636 13.9849C17.1602 14.5791 16.7408 14.8857 16.25 14.8857C15.957 14.8857 15.7437 14.8027 15.6039 14.6647C15.4643 14.5269 15.3818 14.3185 15.3818 14.0352V8.75098H13.8047V9.70451C13.4001 9.00402 12.6193 8.58398 11.7324 8.58398C10.7944 8.58398 9.99484 8.97403 9.43186 9.6425C8.87017 10.3094 8.54883 11.2471 8.54883 12.3389C8.54883 13.4771 8.86255 14.441 9.42086 15.1229C9.9809 15.8069 10.7811 16.1992 11.7324 16.1992C12.7503 16.1992 13.5568 15.7259 13.9781 14.8715C14.1751 15.7126 14.9989 16.2783 16.0039 16.2783C17.0573 16.2783 17.9207 15.8021 18.5165 14.9576C19.1093 14.1171 19.4336 12.9181 19.4336 11.4688C19.4336 9.52831 18.6973 7.8771 17.4277 6.71186C16.1588 5.54736 14.365 4.875 12.2598 4.875ZM10.2051 12.374C10.2051 11.6217 10.3751 11.0388 10.6739 10.647C10.9693 10.2595 11.3993 10.0469 11.9521 10.0469C12.5136 10.0469 12.967 10.2682 13.2828 10.6625C13.6009 11.0596 13.7871 11.6424 13.7871 12.374C13.7871 13.1053 13.5989 13.6903 13.2775 14.0897C12.9583 14.4864 12.5004 14.71 11.9346 14.71C11.3966 14.71 10.9705 14.4943 10.6754 14.1027C10.3771 13.7071 10.2051 13.1214 10.2051 12.374Z"}))},o[t.ToolbarActionIcon.TASK]=function(){return r.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.8 6.5H14.2C15.0648 6.5 15.6232 6.50117 16.0482 6.53589C16.4557 6.56918 16.6068 6.6257 16.681 6.66349C16.9632 6.8073 17.1927 7.03677 17.3365 7.31901C17.3743 7.39318 17.4308 7.54426 17.4641 7.95175C17.4988 8.37676 17.5 8.93517 17.5 9.8V14.2C17.5 15.0648 17.4988 15.6232 17.4641 16.0482C17.4308 16.4557 17.3743 16.6068 17.3365 16.681C17.1927 16.9632 16.9632 17.1927 16.681 17.3365C16.6068 17.3743 16.4557 17.4308 16.0482 17.4641C15.6232 17.4988 15.0648 17.5 14.2 17.5H9.8C8.93517 17.5 8.37676 17.4988 7.95175 17.4641C7.54426 17.4308 7.39318 17.3743 7.31901 17.3365C7.03677 17.1927 6.8073 16.9632 6.66349 16.681C6.6257 16.6068 6.56918 16.4557 6.53589 16.0482C6.50117 15.6232 6.5 15.0648 6.5 14.2V9.8C6.5 8.93517 6.50117 8.37676 6.53589 7.95175C6.56918 7.54426 6.6257 7.39318 6.66349 7.31901C6.8073 7.03677 7.03677 6.8073 7.31901 6.66349C7.39318 6.6257 7.54426 6.56918 7.95175 6.53589C8.37676 6.50117 8.93517 6.5 9.8 6.5ZM5 9.8C5 8.11984 5 7.27976 5.32698 6.63803C5.6146 6.07354 6.07354 5.6146 6.63803 5.32698C7.27976 5 8.11984 5 9.8 5H14.2C15.8802 5 16.7202 5 17.362 5.32698C17.9265 5.6146 18.3854 6.07354 18.673 6.63803C19 7.27976 19 8.11984 19 9.8V14.2C19 15.8802 19 16.7202 18.673 17.362C18.3854 17.9265 17.9265 18.3854 17.362 18.673C16.7202 19 15.8802 19 14.2 19H9.8C8.11984 19 7.27976 19 6.63803 18.673C6.07354 18.3854 5.6146 17.9265 5.32698 17.362C5 16.7202 5 15.8802 5 14.2V9.8ZM11.8047 15.2569L16.2201 9.04361L14.7936 8.02989L10.9883 13.3847L9.27059 11.6089L8.01273 12.8256L10.4626 15.3583C10.6434 15.5453 10.8981 15.6421 11.1575 15.6225C11.4169 15.6029 11.6541 15.4689 11.8047 15.2569Z"}))},o[t.ToolbarActionIcon.ONBOARDING]=function(){return r.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 9.3951C8.5 7.45942 10.1803 6 12 6C13.8197 6 15.5 7.45942 15.5 9.3951C15.5 10.1162 15.3858 10.5218 15.2719 10.7766C15.154 11.0406 14.9943 11.2449 14.7109 11.567C14.6867 11.5944 14.6611 11.6232 14.6344 11.6534C14.368 11.9536 13.9833 12.3871 13.6745 12.9559C13.4312 13.404 13.2459 13.9082 13.1317 14.5H10.8692C10.7557 13.9057 10.5718 13.3985 10.3317 12.9472C10.0215 12.3642 9.63604 11.9208 9.36525 11.6093L9.36525 11.6093L9.29819 11.532C9.00841 11.1967 8.84514 10.9872 8.72526 10.7222C8.61177 10.4714 8.5 10.0814 8.5 9.3951ZM12 4.5C9.45933 4.5 7 6.52747 7 9.3951C7 11.1702 7.60617 11.8698 8.22154 12.5801C8.79806 13.2455 9.38265 13.9202 9.48444 15.4973C9.50222 15.7729 9.72386 16 10 16H14C14.2761 16 14.4977 15.7728 14.5156 15.4972C14.6167 13.9388 15.192 13.2877 15.7636 12.641C16.3841 11.9389 17 11.242 17 9.3951C17 6.52747 14.5407 4.5 12 4.5ZM9.5 18V17.5H14.5V18C14.5 19 13.108 19.5 12 19.5C10.892 19.5 9.5 19 9.5 18Z",fill:"black"}))},o)})),define("comments2/components/folder_overview_editor/components/fixed_toolbar_component",["require","exports","tslib","react","react-dom","comments2/components/comment_editor/core/editor_component","comments2/components/folder_overview_editor/components/toolbar_component","classnames","comments2/components/folder_overview_editor/components/link_prompt_component"],(function(e,t,n,r,o,i,a,s,c){"use strict";function l(e){return(!!e.hyperlink.linkPromptProps||e.draft.isFocused||!!e.mentionShareFlow.popupProps)&&!e.draft.readOnly}Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),o=n.__importStar(o),s=n.__importDefault(s),t.isFixedToolbarVisible=l;var u=(function(e){function t(t){var n=e.call(this,t)||this;return n.scrollContainer=null,n.onScroll=function(){n.props.isVisible&&n.scrollContainer&&n.updateToolbarScrollState()},n.openLinkPrompt=function(e){n.props.triggers.hyperlink.updateLinkPromptProps({top:0,left:0}),e.preventDefault(),e.stopPropagation()},n.state={toolbarScrollState:"scroll",top:0,left:0,width:0},n}return n.__extends(t,e),t.prototype.componentDidUpdate=function(e){this.props.isVisible&&!e.isVisible&&this.setOnScrollEventListener()},t.prototype.componentWillUnmount=function(){this.scrollContainer&&this.scrollContainer.removeEventListener("scroll",this.onScroll)},t.prototype.isDocumentScrollContainer=function(){return!!this.scrollContainer&&"HTML"===this.scrollContainer.nodeName},t.prototype.setOnScrollEventListener=function(){this.scrollContainer=this.props.getScrollContainerEl?this.props.getScrollContainerEl():null,this.isDocumentScrollContainer()?(document.removeEventListener("scroll",this.onScroll),document.addEventListener("scroll",this.onScroll)):this.scrollContainer&&(this.scrollContainer.removeEventListener("scroll",this.onScroll),this.scrollContainer.addEventListener("scroll",this.onScroll)),this.updateToolbarScrollState()},t.prototype.getToolbarState=function(e,t,n){var r=this.props,o=r.toolbarHeightWithMargin,i=r.toolbarTopMargin,a="scroll",s=e-t;return s>n-o?a="hide":s+i>0&&(a="dock"),a},t.prototype.updateToolbarScrollState=function(){var e=this.props.toolbarTopMargin,t=this.props.getEditorContainerEl();if(t){var n=t.getBoundingClientRect(),r=this.isDocumentScrollContainer()||!this.scrollContainer?0:this.scrollContainer.getBoundingClientRect().top,o=this.getToolbarState(r,n.top,n.height);this.setState({toolbarScrollState:o,top:r+e,left:n.left,width:n.width})}},t.prototype.renderToolbar=function(){var e=this.props,t=e.activeFormatting,n=e.editorState,o=e.localization.intl,i=e.triggers;return r.createElement(a.ToolbarComponent,{intl:o},r.createElement(a.ToolbarBoldButton,{active:t.bold,intl:o,triggers:{draft:i.draft}}),r.createElement(a.ToolbarItalicButton,{active:t.italic,intl:o,triggers:{draft:i.draft}}),r.createElement(a.ToolbarStrikeThroughButton,{active:t.strikethrough,shortcutEnabled:!0,state:n,intl:o,triggers:{draft:i.draft}}),r.createElement(a.ToolbarOpenLinkButton,{intl:o,shortcutEnabled:!0,triggers:{draft:i.draft},onClick:this.openLinkPrompt}),!this.props.limitedWidth&&r.createElement(a.ToolbarDivider,{key:"-1"}),r.createElement(a.ToolbarTaskButton,{active:t.task,intl:o,triggers:{draft:i.draft,task:i.task}}),r.createElement(a.ToolbarUnorderedListButton,{active:t.unorderedList,intl:o,state:n,triggers:{draft:i.draft}}),r.createElement(a.ToolbarOrderedListButton,{active:t.orderedList,intl:o,state:n,triggers:{draft:i.draft}}),r.createElement(a.ToolbarMentionButton,{triggers:{draft:i.draft},intl:o}),!this.props.limitedWidth&&[r.createElement(a.ToolbarSpacer,{key:"-"}),r.createElement(a.ToolbarDivider,{key:"-2"}),r.createElement(a.ToolbarDoneButton,{intl:o,onDone:this.props.onDone,triggers:{draft:i.draft}})],r.createElement(c.LinkPromptComponent,{focusEditor:this.props.focusEditor}))},t.prototype.isDocked=function(){return"dock"===this.state.toolbarScrollState},t.prototype.isVisible=function(){return this.props.isVisible&&"hide"!==this.state.toolbarScrollState},t.prototype.toolbarStyle=function(){return this.isDocked()?{top:this.state.top,left:this.state.left,position:"fixed",width:this.state.width}:{}},t.prototype.renderToolbarWithPosition=function(){var e=s.default("sc-folder-overview-fixed-toolbar",{docked:this.isDocked(),"limited-width":this.props.limitedWidth}),t=r.createElement("div",{className:e,style:this.toolbarStyle()},this.renderToolbar()),n=this.props.getScrollContainerEl&&this.props.getScrollContainerEl(),i=n&&n.offsetParent?n.offsetParent:document.body;return this.isDocked()&&n&&i?o.createPortal(t,i):t},t.prototype.render=function(){return this.isVisible()?r.createElement("span",null,this.renderToolbarWithPosition()):null},t})(r.Component);t.FixedToolbarElement=u;var p=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=l(this.status);return r.createElement(u,Object.assign({activeFormatting:this.status.fixedToolbar.activeFormatting,localization:this.localization,editorState:this.status.draft.editorState,isVisible:e,triggers:this.triggers},this.props))},t})(i.EditorComponent);t.FixedToolbarComponent=p})),define("comments2/components/folder_overview_editor/components/folder_overview_editor_container",["require","exports","tslib","comments2/components/comment_editor/types","comments2/components/comment_editor/layers/interaction","comments2/components/comment_editor/layers/text","comments2/components/comment_editor/layers/update","comments2/components/comment_editor/layers/style","comments2/components/comment_editor/core/editor_container_component","comments2/components/folder_overview_editor/layers/contextual_toolbar","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/folder_overview_editor/types","comments2/components/folder_overview_editor/layers/draft_callback","comments2/components/folder_overview_editor/layers/hyperlink","comments2/components/folder_overview_editor/layers/global_style","comments2/components/comment_editor/layers/mentions_entity","comments2/components/comment_editor/layers/mentions_macro","comments2/components/comment_editor/layers/suggestions","comments2/components/folder_overview_editor/layers/inline_toolbar","comments2/components/folder_overview_editor/layers/block_auto_format","comments2/components/folder_overview_editor/layers/task","comments2/components/folder_overview_editor/layers/mention_share_flow","comments2/components/folder_overview_editor/layers/accessibility","comments2/components/folder_overview_editor/layers/fixed_toolbar","comments2/components/folder_overview_editor/layers/plain_text_snippet"],(function(e,t,n,r,o,i,a,s,c,l,u,p,d,f,m,g,h,v,y,_,b,C,S,E,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var x={draft:r.DraftNames,folderOverview:p.FolderOverviewNames,macro:r.MacroNames,mentionSuggestions:r.MentionSuggestionNames,suggestion:r.SuggestionSelectionNames,contextualToolbar:p.ContextualToolbarNames,inlineToolbar:p.InlineToolbarNames,fixedToolbar:p.FixedToolbarNames,hyperlink:p.HyperlinkNames,plainTextSnippet:p.PlainTextSnippetNames,globalStyle:p.GlobalStyleNames,task:p.TaskNames,mentionShareFlow:p.MentionShareFlowNames,accessibility:p.AccessibilityNames},k=function(){},T=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),Object.defineProperty(t.prototype,"scopeNames",{get:function(){return x},enumerable:!0,configurable:!0}),t.prototype.getLayerProps=function(e){var t=e.features,n=t.inlineToolbar,r=t.tasks,o=t.mentions,i=t.restylingWithFixedToolbar,a=e.mentionShareFlowHandlers,s=void 0===a?C.DefaultMentionShareFlowHandlers:a,c=e.onOpenLink,l=void 0===c?k:c,u=e.enableEmailMention,p=e.onEditorStateChange,d=void 0===p?k:p,f=e.onMentionsQueryUpdated,m=void 0===f?k:f,g=e.showPlainTextSnippetWhenNotFocused,h=e.onTaskChecked,v=void 0===h?k:h,y=e.hideAllToolbars,_=void 0!==y&&y,b=e.onToolbarDone;return{inlineToolbar:n,tasks:r,mentions:o,mentionShareFlowHandlers:s,restylingWithFixedToolbar:i,onOpenLink:l,enableEmailMention:u,onEditorStateChange:d,onMentionsQueryUpdated:m,showPlainTextSnippetWhenNotFocused:g,onTaskChecked:v,hideAllToolbars:_,onToolbarDone:void 0===b?k:b}},t.prototype.mapPropsToLayers=function(e){var t=this.getLayerProps(e),n=t.inlineToolbar,r=t.tasks,c=t.mentions,u=t.mentionShareFlowHandlers,p=t.onOpenLink,x=t.enableEmailMention,k=t.onEditorStateChange,T=t.onMentionsQueryUpdated,M=t.restylingWithFixedToolbar,O=t.showPlainTextSnippetWhenNotFocused,L=t.onTaskChecked,D=t.hideAllToolbars;return[new o.InteractionLayer,new i.TextLayer,new s.StyleLayer,new m.GlobalStyleLayer,!D&&new l.ContextualToolbarLayer,!D&&n&&new y.InlineToolbarLayer,new f.HyperlinkLayer({onOpenLink:p}),new g.MentionsEntityLayer,c&&new h.MentionsMacroLayer({onMentionsQueryUpdated:T,disableEmailMention:!x}),r&&new b.TaskLayer({onTaskChecked:L}),new _.BlockAutoFormatLayer,!D&&M&&new E.FixedToolbarLayer,new v.SuggestionLayer,new C.MentionShareFlowLayer(u),new d.DraftCallbackLayer({onEditorStateChange:k}),new a.UpdateLayer,new S.AccessibilityLayer,O&&new w.PlainTextSnippetLayer].filter((function(e){return!!e}))},t.prototype.createDefaultStatus=function(){var e=u.createDefaultStatus(this.scopeNames);return n.__assign(n.__assign({},e),{draft:n.__assign(n.__assign({},e.draft),{placeholder:this.props.placeholder||"",readOnly:!!this.props.readOnly}),accessibility:{captureTab:!1}})},t.prototype.mapPropsToUpdates=function(e,t){var r={},o=!!e.readOnly||!!t.mentionShareFlow.popupProps;return e.editorState!==t.folderOverview.editorState&&(r=n.__assign(n.__assign({},r),{folderOverview:n.__assign(n.__assign({},t.folderOverview),{editorState:e.editorState})})),o!==t.draft.readOnly&&(r=n.__assign(n.__assign({},r),{draft:n.__assign(n.__assign({},t.draft),{editorState:e.editorState?e.editorState:t.draft.editorState,readOnly:o})})),e.mentionsMatches!==t.mentionSuggestions.userMap&&(r=n.__assign(n.__assign({},r),{mentionSuggestions:n.__assign(n.__assign({},t.mentionSuggestions),{userMap:e.mentionsMatches||{}})})),r},t})(c.EditorContainer);t.FolderOverviewContainer=T})),define("comments2/components/folder_overview_editor/components/folder_overview_editor",["require","exports","tslib","react","classnames","comments2/components/folder_overview_editor/components/folder_overview_editor_container","comments2/components/comment_editor/components/draft_component","prop-types","comments2/components/folder_overview_editor/components/contextual_toolbar_component","comments2/components/folder_overview_editor/components/link_prompt_component","comments2/components/folder_overview_editor/components/global_style_component","comments2/components/comment_editor/components/active_macro_chrome_component","comments2/components/folder_overview_editor/components/inline_toolbar_component","comments2/components/folder_overview_editor/components/mention_share_popover","comments2/components/folder_overview_editor/components/fixed_toolbar_component","comments2/components/folder_overview_editor/components/plain_text_snippet_component","draft-js"],(function(e,t,n,r,o,i,a,s,c,l,u,p,d,f,m,g,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),o=n.__importDefault(o),s=n.__importStar(s);var v={id:"FOLDER_OVERVIEW_MENTION_MATCHES_PLACEHOLDER",defaultMessage:"@mention someone to share this Space with them.",description:"Placeholder message in suggestions dropdown when user starts mention in Space overview editor"},y=function(e,t){return{descriptor:{id:"FOLDER_OR_FILE_OVERVIEW_MENTION_POPOVER_TITLE",defaultMessage:"Share “{shareable_resource_name}” with {user_name}?",description:"prompt message to share folder or file with a user"},values:{shareable_resource_name:t,user_name:e}}},_=function(e){return{descriptor:{id:"FOLDER_OVERVIEW_MENTION_POPOVER_MESSAGE",defaultMessage:"Share this folder with {user_name} so they can view its overview.",description:"message shown when user mentions another user with insufficient perms in a folder overview"},values:{user_name:e}}},b=function(e){return{descriptor:{id:"FILE_OVERVIEW_MENTION_POPOVER_MESSAGE",defaultMessage:"Share this file with {user_name} so they can view its overview.",description:"message shown when user mentions another user with insufficient perms in a file overview"},values:{user_name:e}}},C=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.editorContainerRef=r.createRef(),t.awaitingMouseUp=!1,t.getAccelShortcut=function(e,n){void 0===n&&(n=!1);var r=t.props,o=r.localization.intl;return r.isMac?n?o.formatMessage({id:"pZ5e/J",defaultMessage:"⌘ + opt + {key}"},{key:e}):o.formatMessage({id:"3lp5F0",defaultMessage:"⌘ + {key}"},{key:e}):n?o.formatMessage({id:"4OVYKA",defaultMessage:"ctrl + alt + {key}"},{key:e}):o.formatMessage({id:"yi7qcS",defaultMessage:"ctrl + {key}"},{key:e})},t.getEditorContainerRef=function(){return t.editorContainerRef.current},t.setDraftRef=function(e){t.props.setDraftRef&&t.props.setDraftRef(e),t.editorRef=e},t.blurEditor=function(){t.editorRef&&t.editorRef.blurEditor()},t.focusEditor=function(){t.editorRef&&t.editorRef.focusEditor()},t.dismissToolbar=function(){t.focusEditor(),t.blurEditor(),t.props.onToolbarDone&&t.props.onToolbarDone()},t.handleFocus=function(e){if("mousedown"===e.type)return t.awaitingMouseUp=!0,!1;if("mouseup"===e.type)t.awaitingMouseUp=!1;else if("focus"===e.type)return!t.awaitingMouseUp;return!0},t.customKeyBinding=function(e){var n=t.props.isMac,r=n&&e.metaKey||!n&&e.ctrlKey;switch(e.keyCode){case 83:return r&&e.altKey?"strikethrough":null;case 75:return r&&!e.altKey?"create-link":null;default:return h.getDefaultKeyBinding(e)}},t}return n.__extends(t,e),t.prototype.getChildContext=function(){return{localization:this.props.localization,getAccelShortcut:this.getAccelShortcut}},t.prototype.renderDraftEditor=function(){var e=this.props,t=e.annotation,o=e.localization,i=n.__assign({spellCheck:!0,a11yEditorLabel:o.intl.formatMessage({id:"Nv8qgA",defaultMessage:"Type notes, list, to-dos, and links here"}),annotation:t,shouldFocus:this.props.shouldFocus,customKeyBinding:this.customKeyBinding,handleFocus:this.handleFocus},a.DraftComponent.defaultProps);return r.createElement(r.Fragment,null,this.props.showPlainTextSnippetWhenNotFocused&&r.createElement(g.PlainTextSnippetComponent,{focusEditor:this.focusEditor}),r.createElement(a.DraftComponent,Object.assign({},i,{ref:this.setDraftRef})))},t.prototype.render=function(){var e=this.props,t=e.className,n=e.readOnly,a=e.shareableResourceName,s=e.limitedWidth,g=e.getToolbarScrollContainerEl,h=e.hideAllToolbars,C=e.isFileOverview,S="number"==typeof this.props.toolbarHeightWithMargin?this.props.toolbarHeightWithMargin:48,E=this.props.features.restylingWithFixedToolbar,w="sc-folder-overview-interaction-container",x=o.default(t,"sc-folder-overview-editor",{"hide-invite-email-mention":!this.props.enableEmailMention,"fixed-toolbar-restyle":this.props.features.restylingWithFixedToolbar,"folder-overview-limited-width":!!s});return r.createElement("div",{className:x,ref:this.editorContainerRef},r.createElement(i.FolderOverviewContainer,Object.assign({},this.props),r.createElement(u.GlobalStyleComponent,{className:"sc-folder-overview-inner"},r.createElement("div",{className:w},E&&!h&&r.createElement(m.FixedToolbarComponent,{limitedWidth:!!s,toolbarHeightWithMargin:S,toolbarTopMargin:this.props.toolbarTopMargin||0,onDone:this.dismissToolbar,focusEditor:this.focusEditor,getEditorContainerEl:this.getEditorContainerRef,getScrollContainerEl:g}),this.renderDraftEditor(),!n&&r.createElement("div",null,r.createElement(p.ActiveMacroChromeComponent,{scrollClassName:w,placeholderMessage:C?void 0:v}),!E&&!h&&r.createElement(c.ContextualToolbarComponent,{scrollClassName:w}),a&&r.createElement(f.MentionSharePopoverComponent,{scrollClassName:w,limitedWidth:s,shareableResourceName:a,getCustomTitle:y,getCustomMessage:C?b:_}),!E&&!h&&r.createElement(d.InlineToolbarComponent,{scrollClassName:w,isMentionFeatureEnabled:this.props.features.mentions,isTaskFeatureEnabled:this.props.features.tasks,toolbarButtonOnboarding:this.props.toolbarButtonOnboarding}),!E&&!h&&r.createElement(l.LinkPromptComponent,{focusEditor:this.focusEditor}))))))},t})(r.Component);t.FolderOverviewEditor=C,C.contextTypes={readOnlyCommentEditor:s.bool,container:s.object,scope:s.object,localization:s.object},C.childContextTypes={localization:s.object,getAccelShortcut:s.func}})),define("comments2/components/folder_overview_editor/components/global_style_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component","classnames"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),i=n.__importDefault(i);var a=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.render=function(){var e=this.container.getStatus().globalStyle.classNames,t=i.default(this.props.className,e);return r.createElement("div",{className:t},this.props.children)},t})(o.EditorComponent);t.GlobalStyleComponent=a})),define("comments2/components/folder_overview_editor/components/inline_toolbar_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component","comments2/components/folder_overview_editor/utils","comments2/components/folder_overview_editor/components/toolbar_component"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var s=(function(e){function t(t){var n=e.call(this,t)||this;return n.toolbarContainerRef=null,n.cachedPosition=null,n.setToolbarContainerRef=function(e){n.toolbarContainerRef=e},n.state={position:null},n}return n.__extends(t,e),t.prototype.getPosition=function(){var e=this.props.scrollClassName,t=window.getSelection();if(!t)return null;var n=0!==t.rangeCount&&t.getRangeAt(0),r=n&&n.startContainer,o=r&&r.parentElement&&r.parentElement.getBoundingClientRect();if(!this.toolbarContainerRef||!o)return null;var a=i.getOffsetParent(this.toolbarContainerRef,e);if(!a)return null;var s=a.getBoundingClientRect();return{top:o.top-s.top}},t.prototype.getPositionOrCachedValue=function(){var e=this.getSelection();if(this.cachedPosition&&this.selectionForCachedPosition==e)return this.cachedPosition;var t=this.getPosition();return this.cachedPosition=t,this.selectionForCachedPosition=e,t},t.prototype.componentWillUpdate=function(){var e=this,t=this.status.draft.editorState.getSelection();this.status.inlineToolbar.props.isVisible&&this.state.selection!==t&&this.setState({selection:t,position:null},(function(){setTimeout((function(){e.setState({position:e.getPositionOrCachedValue()})}),0)}))},t.prototype.getSelection=function(){return this.container.getStatus().draft.editorState.getSelection()},t.prototype.renderToolbar=function(e){var t=this.container.getStatus().draft.editorState,n=this.localization.intl,o=this.status.inlineToolbar.props.showOnlyMention;return r.createElement(a.ToolbarComponent,{position:e,intl:n},!o&&this.props.toolbarButtonOnboarding&&r.createElement(a.ToolbarOnboardingButton,{intl:n,onClick:this.props.toolbarButtonOnboarding,triggers:{draft:this.triggers.draft}}),!o&&r.createElement(a.ToolbarUnorderedListButton,{intl:n,state:t,triggers:{draft:this.triggers.draft}}),!o&&r.createElement(a.ToolbarOrderedListButton,{state:t,intl:n,triggers:{draft:this.triggers.draft}}),!o&&this.props.isTaskFeatureEnabled?r.createElement(a.ToolbarTaskButton,{intl:n,triggers:{draft:this.triggers.draft,task:this.triggers.task}}):null,this.props.isMentionFeatureEnabled?r.createElement(a.ToolbarMentionButton,{intl:n,triggers:{draft:this.triggers.draft}}):null)},t.prototype.render=function(){var e=this.status.inlineToolbar.props.isVisible,t=this.state.position,n=e&&t?this.renderToolbar(t):null;return r.createElement("div",{className:"sc-inline-toolbar-container",ref:this.setToolbarContainerRef},n)},t})(o.EditorComponent);t.InlineToolbarComponent=s})),define("comments2/components/folder_overview_editor/components/link_prompt_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component","dig-components/buttons"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var a=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.linkContainerRef=null,t.handleClickOutside=function(e){t.linkContainerRef&&!t.linkContainerRef.contains(e.target)&&t.hideLinkPrompt()},t.setLinkPromptContainerRef=function(e){t.linkContainerRef=e},t.onSubmit=function(e){t.props.focusEditor(),t.triggers.hyperlink.createLink(e)},t}return n.__extends(t,e),t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleClickOutside)},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleClickOutside)},t.prototype.hideLinkPrompt=function(){this.triggers.hyperlink.updateLinkPromptProps(null)},t.prototype.render=function(){var e=this.container.getStatus().hyperlink.linkPromptProps;return r.createElement(s,{onSubmit:this.onSubmit,linkProps:e,containerRef:this.setLinkPromptContainerRef})},t})(o.EditorComponent);t.LinkPromptComponent=a;var s=(function(e){function t(t){var n=e.call(this,t)||this;return n.inputRef=null,n.onEnterKey=function(e){13===(e.which||e.keyCode)&&n.canSubmit()&&(e.stopPropagation(),e.preventDefault(),n.props.onSubmit(n.state.inputValue))},n.onInputChange=function(e){n.setState({inputValue:e.currentTarget.value})},n.onCreateButtonClick=function(e){n.canSubmit()&&(n.props.onSubmit(n.state.inputValue),e.stopPropagation())},n.canSubmit=function(){return!!n.state.inputValue},n.setInputRef=function(e){n.inputRef=e},n.state={inputValue:""},n}return n.__extends(t,e),t.prototype.componentWillUpdate=function(e){var t=!!this.props.linkProps,n=!!e.linkProps;!t&&n&&this.componentWillShow()},t.prototype.componentDidUpdate=function(e){var t=!!this.props.linkProps,n=!!e.linkProps;t&&!n&&this.componentDidShow()},t.prototype.componentWillShow=function(){this.setState({inputValue:""})},t.prototype.componentDidShow=function(){this.inputRef&&this.inputRef.focus()},t.prototype.render=function(){if(!this.props.linkProps)return null;var e=this.props.linkProps,t={top:e.top,left:e.left};return r.createElement("div",{className:"sc-link-prompt",style:t,ref:this.props.containerRef,key:"linkprompt"},r.createElement("input",{className:"link-prompt-input",ref:this.setInputRef,onKeyPress:this.onEnterKey,placeholder:"Enter link URL",value:this.state.inputValue,onChange:this.onInputChange}),r.createElement(i.Button,{className:"submit-button",variant:"opacity",size:"small",disabled:!this.canSubmit(),onClick:this.onCreateButtonClick},"Create"))},t})(r.Component)})),define("comments2/components/folder_overview_editor/components/link_span_component",["require","exports","tslib","react","comments2/components/utils/url_utils"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.onClick=function(e){var n=e.currentTarget.href;n&&o.isValidURL(n)&&(t.props.onOpenLink(n),e.preventDefault(),e.stopPropagation())},t.onMouseUp=function(e){e.preventDefault(),e.stopPropagation()},t.onMouseDown=function(e){e.preventDefault(),e.stopPropagation()},t}return n.__extends(t,e),t.prototype.getUrl=function(){var e=this.props.contentState.getEntity(this.props.entityKey).getData().url;return o.maybePreprendHttp(e)},t.prototype.render=function(){var e=this.getUrl();return r.createElement("a",{className:"sc-editor-href",href:e,onClick:this.onClick,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,title:e},this.props.children)},t})((r=n.__importStar(r)).Component);t.LinkSpanComponent=i})),define("comments2/components/folder_overview_editor/components/mention_share_popover",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component","comments2/components/folder_overview_editor/components/popover_component","spectrum/button","draft-js"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var c=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.getPosition=function(e){var n=t.container.getStatus().mentionShareFlow.popupProps,r=n&&n.mentionKey;if(!r)return null;var o=e.querySelectorAll('[data-entity-key="'+r+'"]')[0];return o?o.getBoundingClientRect():null},t.onClickOnCancel=function(){t.closeSharePopup();var e=t.status.draft.editorState,n=s.EditorState.forceSelection(e,e.getSelection());t.triggers.draft.change(n)},t.onClickOnShare=function(){var e=t.container.getStatus().mentionShareFlow.popupProps;e&&t.triggers.mentionShareFlow.onShare(e),t.closeSharePopup()},t.formatTitle=function(e,n,r){var o=t.localization.intl,i=e(n,r),a=i.descriptor,s=i.values;return o.formatMessage(a,s)},t.formatMessage=function(e,n){var r=t.localization.intl,o=e(n),i=o.descriptor,a=o.values;return r.formatMessage(i,a)},t}return n.__extends(t,e),t.prototype.closeSharePopup=function(){this.triggers.mentionShareFlow.updatePopupProps(null)},t.prototype.getUserString=function(e){return e&&e.user?e.user.name.public||e.user.email:e&&"email"==e.mentionData.type?e.mentionData.identifier:""},t.prototype.render=function(){var e=this.props,t=e.getCustomTitle,n=e.getCustomMessage,o=e.shareableResourceName,s=this.status.mentionShareFlow.popupProps,c=this.localization.intl,l=this.getUserString(s),u=t?this.formatTitle(t,l,o):c.formatMessage({id:"PPnGE0",defaultMessage:"Share folder with {user_name}?"},{user_name:l}),p=n?this.formatMessage(n,l):c.formatMessage({id:"d8Nac1",defaultMessage:"{user_name} is not yet a member of “{folder_name}”. If you don’t share this folder, they won’t be able to view its content"},{user_name:l,folder_name:o}),d=!!s;return r.createElement(i.PopoverComponent,{popoverWidth:300,className:"sc-mention-share-popover",scrollClassName:this.props.scrollClassName,limitedWidth:this.props.limitedWidth,computeTargetPosition:this.getPosition,isVisible:d},r.createElement("div",{className:"popup-title"},u),r.createElement("div",{className:"popup-message"},p),r.createElement("div",{className:"button-container"},r.createElement(a.Button,{className:"cancel-button",variant:"secondary",onClick:this.onClickOnCancel},c.formatMessage({id:"pv7yxv",defaultMessage:"Cancel"})),r.createElement(a.Button,{variant:"primary",onClick:this.onClickOnShare},c.formatMessage({id:"BZwQbv",defaultMessage:"Continue"}))))},t})(o.EditorComponent);t.MentionSharePopoverComponent=c})),define("comments2/components/folder_overview_editor/components/plain_text_snippet_component",["require","exports","tslib","react","comments2/components/comment_editor/core/editor_component"],(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r);var i=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.renderPlainTextSnippet=function(){var e=this.status.draft.editorState.getCurrentContent();return r.createElement("div",{className:"sc-folder-overview-plain-text-snippet sc-comment-editor-draft DraftEditor-root",onClick:this.props.focusEditor},e.getPlainText())},t.prototype.render=function(){return this.status.plainTextSnippet.show?this.renderPlainTextSnippet():null},t})(o.EditorComponent);t.PlainTextSnippetComponent=i})),define("comments2/components/folder_overview_editor/components/popover_component",["require","exports","tslib","react","comments2/components/folder_overview_editor/utils","classnames"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),i=n.__importDefault(i);var a=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.popoverContainerRef=null,t.cachedPosition=null,t.setPopoverContainerRef=function(e){t.popoverContainerRef=e},t}return n.__extends(t,e),t.prototype.getPosition=function(){var e=this.props.scrollClassName;if(!this.popoverContainerRef)return null;var t=o.getOffsetParent(this.popoverContainerRef,e);if(!t)return null;var n=this.props.computeTargetPosition(t);if(!this.popoverContainerRef||!n)return null;var r=t.getBoundingClientRect(),i=Math.round(n.left+n.width/2-r.left),a=10+this.props.popoverWidth/2,s=Math.min(Math.max(i,a),r.width-a),c={top:n.top-r.top,left:this.props.limitedWidth?0:s};return this.cachedPosition=c,c},t.prototype.getCachedPosition=function(){return this.cachedPosition},t.prototype.render=function(){var e=this.getPosition(),t=i.default("sc-popover",this.props.className),n=this.props.isVisible&&e?r.createElement("div",{className:t,style:e},this.props.children):null;return r.createElement("div",{className:"sc-popover-container",ref:this.setPopoverContainerRef},r.createElement(s,{transitionName:"popover"},n))},t})(r.Component);t.PopoverComponent=a;var s=(function(e){function t(t){var n=e.call(this,t)||this;return n.state={leave:!1,enter:!1,children:null},n}return n.__extends(t,e),t.prototype.cloneChildrenWithClass=function(e,t){return r.cloneElement(e,n.__assign(n.__assign({},e.props),{className:i.default(e.props.className,t)}))},t.prototype.componentWillReceiveProps=function(e){this.props.children&&!e.children?this.setState({leave:!0,enter:!1,children:this.props.children}):e.children&&!this.props.children&&this.setState({leave:!1,enter:!0})},t.prototype.render=function(){var e="",t=this.props.children;return this.state.leave&&(e=this.props.transitionName+"-leave",this.delayedResetTransitionState(),t=this.state.children),this.state.enter&&(e=this.props.transitionName+"-enter",this.delayedResetTransitionState()),t?this.cloneChildrenWithClass(t,e):null},t.prototype.delayedResetTransitionState=function(){var e=this;this.resetTransitionStateTimeout&&clearTimeout(this.resetTransitionStateTimeout),this.resetTransitionStateTimeout=setTimeout((function(){e.setState({leave:!1,enter:!1})}),200)},t})(r.Component)})),define("comments2/components/folder_overview_editor/components/task_block",["require","exports","tslib","react","draft-js","classnames","dig-components/controls","comments2/components/comment_editor/core/editor_component"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),i=n.__importDefault(i);var c=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.handleMouseDown=function(e){t.status.draft.readOnly||(e.stopPropagation(),e.preventDefault())},t.handleMouseUp=function(e){t.status.draft.readOnly||(t.props.blockProps.onToggleChecked(),e.stopPropagation(),e.preventDefault())},t.handleClick=function(e){t.status.draft.readOnly||(e.stopPropagation(),e.preventDefault())},t}return n.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.block,n=e.offsetKey,s=e.blockProps,c=0===this.props.block.getLength(),l=i.default("task-block",{checked:s.checked,readonly:this.status.draft.readOnly,"empty-block":c});return r.createElement("div",{className:l,"data-offset-key":n,"data-key":t.getKey()},r.createElement("div",{className:"task-block-checkbox-wrapper",suppressContentEditableWarning:!0,contentEditable:!1},r.createElement("div",{className:"task-block-clickable-div",onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseDown:this.handleMouseDown}),r.createElement(a.Checkbox,{className:"task-block-checkbox",checked:s.checked}),c?r.createElement("div",{className:"sc-comment-editor-placeholder task-placeholder"},this.localization.intl.formatMessage({id:"NPxYv8",defaultMessage:"Create a to-do and assign it @someone"})):null),r.createElement("div",{className:"checkable-list-item-block__text"},r.createElement(o.EditorBlock,Object.assign({},this.props))))},t})(s.EditorComponent);t.TaskComponent=c})),define("comments2/components/folder_overview_editor/components/toolbar_component",["require","exports","tslib","react","prop-types","draft-js","comments2/components/folder_overview_editor/components/contextual_toolbar_icons","dig-components/tooltips","classnames"],(function(e,t,n,r,o,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importStar(r),o=n.__importStar(o),c=n.__importDefault(c);var l=function(e){var t=a.toolbarSvgIcons[e.icon];return r.createElement(t,{key:e.icon})},u=function(e){return r.createElement("div",{className:"sc-toolbar-button-tooltip-content"},r.createElement("div",{className:"sc-toolbar-button-tooltip-content__message"},e.message),e.shortcut&&r.createElement("div",{className:"sc-toolbar-button-tooltip-content__shortcut"},e.shortcut))},p=function(e){return r.createElement("div",null,e)},d=function(e,t){return r.createElement("div",null,r.createElement("span",null,t),r.createElement("span",null," "),r.createElement("span",null,e.formatMessage({id:"u28O+d",defaultMessage:"space"})))};function f(e,t){var n;return void 0===t&&(t=""),c.default("toolbar-button",((n={"toolbar-button--active":e.active})[t]=!!t,n))}t.ToolbarDivider=function(e){return r.createElement("div",{className:"toolbar-divider",key:e.key})},t.ToolbarSpacer=function(e){return r.createElement("div",{className:"toolbar-spacer",key:e.key})};var m=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.triggerRef=r.createRef(),t}return n.__extends(t,e),t})(r.Component),g=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(e){e.stopPropagation(),n.props.triggers.draft.keyCommand("bold")},n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.intl,n=p(this.context.getAccelShortcut("B")),o=r.createElement(u,{message:t.formatMessage({id:"fJCjRe",defaultMessage:"Bold"}),shortcut:n});return r.createElement("div",{className:f(this.props,"toolbar-button-bold"),key:"bold",onClick:this.handleClick,"aria-label":t.formatMessage({id:"fJCjRe",defaultMessage:"Bold"}),role:"button"},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.BOLD})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},o))},t})(m);t.ToolbarBoldButton=g,g.contextTypes={getAccelShortcut:o.func};var h=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(e){e.stopPropagation(),n.props.triggers.draft.keyCommand("italic")},n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.intl,n=p(this.context.getAccelShortcut("I")),o=r.createElement(u,{message:t.formatMessage({id:"vlkaFK",defaultMessage:"Italic"}),shortcut:n});return r.createElement("div",{role:"button","aria-label":t.formatMessage({id:"vlkaFK",defaultMessage:"Italic"}),className:f(this.props,"toolbar-button-italic"),key:"italic",onClick:this.handleClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.ITALIC})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},o))},t})(m);t.ToolbarItalicButton=h,h.contextTypes={getAccelShortcut:o.func};var v=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(e){e.stopPropagation();var t=n.props.state;n.props.triggers.draft.change(i.RichUtils.toggleInlineStyle(t,"STRIKETHROUGH"))},n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.shortcutEnabled,o=t.intl,i=n?p(this.context.getAccelShortcut("S",!0)):null,c=r.createElement(u,{message:o.formatMessage({id:"UgH/WV",defaultMessage:"Strikethrough"}),shortcut:i});return r.createElement("div",{role:"button","aria-label":o.formatMessage({id:"UgH/WV",defaultMessage:"Strikethrough"}),className:f(this.props,"toolbar-button-strike-through"),key:"strikethrough",onClick:this.handleClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.STRIKE_THROUGH})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},c))},t})(m);t.ToolbarStrikeThroughButton=v,v.contextTypes={getAccelShortcut:o.func};var y=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(e){e.stopPropagation();var t=n.props.state;n.props.triggers.draft.change(i.RichUtils.toggleBlockType(t,"unordered-list-item"))},n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.intl,n=r.createElement(u,{message:t.formatMessage({id:"QVI2zd",defaultMessage:"Start bulleted list"}),shortcut:d(t,"-")});return r.createElement("div",{role:"button","aria-label":t.formatMessage({id:"QVI2zd",defaultMessage:"Start bulleted list"}),className:f(this.props,"toolbar-button-unordered-list"),key:"ul",onClick:this.handleClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.UNORDERED_LIST})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},n))},t})(m);t.ToolbarUnorderedListButton=y;var _=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(e){e.stopPropagation();var t=n.props.state;n.props.triggers.draft.change(i.RichUtils.toggleBlockType(t,"ordered-list-item"))},n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.intl,n=r.createElement(u,{message:t.formatMessage({id:"qBpbaD",defaultMessage:"Start numbered list"}),shortcut:d(t,"1.")});return r.createElement("div",{role:"button","aria-label":t.formatMessage({id:"qBpbaD",defaultMessage:"Start numbered list"}),className:f(this.props,"toolbar-button-ordered-list"),key:"ol",onClick:this.handleClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.UNORDERED_LIST})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},n))},t})(m);t.ToolbarOrderedListButton=_;var b=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(e){e.stopPropagation(),n.props.triggers.draft.insertMacro("@")},n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.intl,n=r.createElement(u,{message:t.formatMessage({id:"6elmWe",defaultMessage:"Mention someone"}),shortcut:t.formatMessage({id:"fN3cwA",defaultMessage:"@someone"})});return r.createElement("div",{role:"button","aria-label":t.formatMessage({id:"6elmWe",defaultMessage:"Mention someone"}),className:f(this.props,"toolbar-button-mention"),key:"mention",onClick:this.handleClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.MENTION})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},n))},t})(m);t.ToolbarMentionButton=b;var C=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.handleClick=function(){t.props.onDone()},t}return n.__extends(t,e),t.prototype.render=function(){var e=this.props.intl;return r.createElement("div",{role:"button","aria-label":e.formatMessage({id:"HGK/k8",defaultMessage:"Done"}),className:f(this.props,"toolbar-button-done"),key:"done",onClick:this.handleClick},e.formatMessage({id:"HGK/k8",defaultMessage:"Done"}))},t})(r.Component);t.ToolbarDoneButton=C;var S=(function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=function(e){n.props.triggers.task.toggleTaskBlock(null),e.stopPropagation()},n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.intl,n=r.createElement(u,{message:t.formatMessage({id:"ALfhls",defaultMessage:"Create to-do"}),shortcut:d(t,"[]")});return r.createElement("div",{role:"button","aria-label":t.formatMessage({id:"ALfhls",defaultMessage:"Create to-do"}),className:f(this.props,"toolbar-button-task"),key:"task",onClick:this.handleClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.TASK})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},n))},t})(m);t.ToolbarTaskButton=S;var E=(function(e){function t(t){var n=e.call(this,t)||this;return n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.intl,o=t.shortcutEnabled?p(this.context.getAccelShortcut("K")):null,i=r.createElement(u,{message:n.formatMessage({id:"WMGEFi",defaultMessage:"Create link"}),shortcut:o});return r.createElement("div",{role:"button","aria-label":n.formatMessage({id:"WMGEFi",defaultMessage:"Create link"}),className:f(this.props,"toolbar-button-link"),key:"link",onClick:this.props.onClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.LINK})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},i))},t})(m);t.ToolbarOpenLinkButton=E,E.contextTypes={getAccelShortcut:o.func};var w=(function(e){function t(t){var n=e.call(this,t)||this;return n.state={show:!1},n}return n.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.intl,n=r.createElement(u,{message:t.formatMessage({id:"cwUCX9",defaultMessage:"Folder examples"})});return r.createElement("div",{role:"button",className:f(this.props,"toolbar-button-onboarding"),key:"link","aria-label":t.formatMessage({id:"cwUCX9",defaultMessage:"Folder examples"}),onClick:this.props.onClick},r.createElement("div",{onMouseOver:function(){return e.setState({show:!0})},onMouseLeave:function(){return e.setState({show:!1})},ref:this.triggerRef},r.createElement(l,{icon:a.ToolbarActionIcon.ONBOARDING})),r.createElement(s.Tooltip.Control,{className:"sc-toolbar-tooltip",placement:"top",open:this.state.show,triggerRef:this.triggerRef},n))},t})(m);t.ToolbarOnboardingButton=w;var x=(function(e){function t(){var t=e.apply(this,arguments)||this;return t.onMouseDown=function(e){e.stopPropagation(),e.preventDefault()},t.setToolbarComponentRef=function(e){t.props.setToolbarComponentRef&&t.props.setToolbarComponentRef(e)},t}return n.__extends(t,e),t.prototype.render=function(){var e=this.props.intl,t=c.default("sc-toolbar-component",this.props.className);return r.createElement("div",{className:t,role:"group","aria-label":e.formatMessage({id:"El6O0Q",defaultMessage:"toolbar"}),style:this.props.position,ref:this.setToolbarComponentRef,onMouseDown:this.onMouseDown,key:"toolbar"},this.props.children)},t})(r.Component);t.ToolbarComponent=x})),define("comments2/components/folder_overview_editor/layers/accessibility",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.setCaptureTabIndent=function(e){return e.innerProps.evt},t.prototype.handleTabIndent=function(e){var t=e.innerProps.evt;"Escape"===t.key?e.triggers.accessibility.setCaptureTab(!1):9!==t.which&&(e.status.accessibility.captureTab||e.triggers.accessibility.setCaptureTab(!0))},t})(a.BaseLayer);t.AccessibilityLayer=s,r.__decorate([o.plug(i.intoFolderOverview.accessibility.on.setCaptureTab.update.captureTab)],s.prototype,"setCaptureTabIndent",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.key)],s.prototype,"handleTabIndent",null)})),define("comments2/components/folder_overview_editor/layers/block_auto_format",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e,t){return s.Modifier.setBlockType(e,s.SelectionState.createEmpty(t),"unordered-list-item")},l=function(e,t){return s.Modifier.setBlockType(e,s.SelectionState.createEmpty(t),"ordered-list-item")},u=function(e,t,n){var r=s.Modifier.setBlockType(e,s.SelectionState.createEmpty(t),"task-block");return s.Modifier.setBlockData(r,s.SelectionState.createEmpty(t),{checked:n})},p={"-":c,"—":c,"--":c,"*":c,"1.":l,"1)":l,"1.)":l,"[]":function(e,t){return u(e,t,!1)},"[ ]":function(e,t){return u(e,t,!1)},"[x]":function(e,t){return u(e,t,!0)}},d=(function(e){function t(t){void 0===t&&(t=p);var n=e.call(this)||this;return n.prefixFormatMap=t,n}return n.__extends(t,e),t.prototype.handleSpaceAndTriggerFormat=function(e){var t=e.innerProps,n=t.evt,r=t.value,o=r.getSelection(),i=r.getCurrentContent(),a=i.getBlockMap().get(o.getStartKey());if(32===n.which){var c=a.getText().slice(0,o.getStartOffset());if(c in this.prefixFormatMap){var l=a.getKey(),u=this.prefixFormatMap[c],p=s.SelectionState.createEmpty(l).merge({anchorOffset:0,focusOffset:c.length}),d=u(s.Modifier.removeRange(i,p,"backward"),l);n.preventDefault();var f=s.EditorState.push(r,d,"change-block-type");return s.EditorState.forceSelection(f,s.SelectionState.createEmpty(l))}}},t})(a.BaseLayer);t.BlockAutoFormatLayer=d,r.__decorate([o.plug(i.intoFolderOverview.draft.on.key.update.editorState)],d.prototype,"handleSpaceAndTriggerFormat",null)})),define("comments2/components/folder_overview_editor/layers/contextual_toolbar",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.updateEditorState=function(e){var t=e.innerProps.evt,n=t.getSelection().getHasFocus()&&!t.getSelection().isCollapsed();e.triggers.contextualToolbar.updateVisibility(n)},t.prototype.updateVisibility=function(e){return e.innerProps.evt},t.prototype.resetLinkPromptWhenToolbarShows=function(e){e.innerProps.evt&&e.triggers.hyperlink.updateLinkPromptProps(null)},t})(a.BaseLayer);t.ContextualToolbarLayer=s,r.__decorate([o.plug(i.intoFolderOverview.draft.on.change)],s.prototype,"updateEditorState",null),r.__decorate([o.plug(i.intoFolderOverview.contextualToolbar.on.updateVisibility.update.isVisible)],s.prototype,"updateVisibility",null),r.__decorate([o.plug(i.intoFolderOverview.contextualToolbar.on.updateVisibility)],s.prototype,"resetLinkPromptWhenToolbarShows",null)})),define("comments2/components/folder_overview_editor/layers/draft_callback",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js"],(function(e,t,n,r,o,i,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=(function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return n.__extends(t,e),t.prototype.triggerInit=function(e){var t=e.status.folderOverview.editorState;e.innerProps.prevStatus.folderOverview.editorState!==t&&(e.triggers.draft.init(null),e.triggers.draft.change(t))},t.prototype.callOnContentChange=function(e){var t=e.innerProps.value;this.options.onEditorStateChange(t)},t.prototype.handleTabIndent=function(e){var t=e.innerProps.evt,n=e.innerProps.value;if(9===t.which&&e.status.accessibility.captureTab){var r=s.RichUtils.onTab(t,n,4);if(t.preventDefault(),r!==n)return r}},t})(a.BaseLayer);t.DraftCallbackLayer=c,r.__decorate([o.plug(i.intoFolderOverview.folderOverview)],c.prototype,"triggerInit",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.change.update.editorState)],c.prototype,"callOnContentChange",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.key.update.editorState)],c.prototype,"handleTabIndent",null)})),define("comments2/components/folder_overview_editor/layers/fixed_toolbar",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js","comments2/components/comment_editor/draft_utils","comments2/components/folder_overview_editor/components/fixed_toolbar_component"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onDraftChange=function(e){var t=e.innerProps.evt,n=c.getSelectionInlineStyle(t),r=c.getSelectionBlockTypes(t),o={bold:n.BOLD,strikethrough:n.STRIKETHROUGH,italic:n.ITALIC,task:"task-block"===r,orderedList:"ordered-list-item"===r,unorderedList:"unordered-list-item"===r};e.triggers.fixedToolbar.updateActiveFormatting(o)},t.prototype.onDraftFocus=function(e){this.updateToolbarVisibility(e.status,e.triggers)},t.prototype.onDraftBlur=function(e){this.updateToolbarVisibility(e.status,e.triggers)},t.prototype.updateToolbarVisibility=function(e,t){t.globalStyle.setClassName({className:"fixed-toolbar-visible",value:l.isFixedToolbarVisible(e)})},t.prototype.updateActiveFormatting=function(e){return e.innerProps.evt},t.prototype.handleKeyCommand=function(e){var t=e.innerProps,n=t.evt,r=t.value;if("strikethrough"===n)return s.RichUtils.toggleInlineStyle(r,"STRIKETHROUGH")},t})(a.BaseLayer);t.FixedToolbarLayer=u,r.__decorate([o.plug(i.intoFolderOverview.draft.on.change)],u.prototype,"onDraftChange",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.focus)],u.prototype,"onDraftFocus",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.blur)],u.prototype,"onDraftBlur",null),r.__decorate([o.plug(i.intoFolderOverview.fixedToolbar.on.updateActiveFormatting.update.activeFormatting)],u.prototype,"updateActiveFormatting",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.keyCommand.update.editorState)],u.prototype,"handleKeyCommand",null)})),define("comments2/components/folder_overview_editor/layers/global_style",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.hidePlaceholderWhenContentEmpty=function(e){var t=e.innerProps.evt.getCurrentContent(),n=!t.hasText()&&"unstyled"===t.getBlockMap().first().getType();e.triggers.globalStyle.setClassName({className:"empty-content",value:n})},t.prototype.updateClassNames=function(e){var t=e.status.globalStyle.classNames,n=e.innerProps.evt,r=n.className,o=n.value;return t[r]=o,t},t})(a.BaseLayer);t.GlobalStyleLayer=s,r.__decorate([o.plug(i.intoFolderOverview.draft.on.change)],s.prototype,"hidePlaceholderWhenContentEmpty",null),r.__decorate([o.plug(i.intoFolderOverview.globalStyle.on.setClassName.update.classNames)],s.prototype,"updateClassNames",null)})),define("comments2/components/folder_overview_editor/layers/hyperlink",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js","comments2/components/folder_overview_editor/components/link_span_component","comments2/components/utils/url_utils"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return n.__extends(t,e),t.prototype.updateLinkPrompt=function(e){return e.innerProps.evt},t.prototype.maybeCreateLinkOnPaste=function(e){var t=e.innerProps.evt.trim();return l.isValidURL(t)?this.createLinkInEditorState(n.__assign(n.__assign({},e),{innerProps:n.__assign(n.__assign({},e.innerProps),{evt:t})})):e.status.draft.editorState},t.prototype.createLink=function(e){var t=e.innerProps.evt.trim();return this.createLinkInEditorState(n.__assign(n.__assign({},e),{innerProps:n.__assign(n.__assign({},e.innerProps),{evt:t})})),null},t.prototype.createLinkInEditorState=function(e){var t=e.innerProps.evt.trim(),n=e.status.draft.editorState,r=n.getCurrentContent(),o=n.getSelection();o.isCollapsed()&&(r=s.Modifier.insertText(r,o,t),o=o.merge({focusOffset:o.getStartOffset()+t.length}));var i=r.createEntity("LINK","MUTABLE",{url:t}),a=i.getLastCreatedEntityKey(),c=s.EditorState.set(n,{currentContent:i}),l=s.RichUtils.toggleLink(c,o,a),u=l.getSelection(),p=u.getFocusOffset()<u.getAnchorOffset()?u.getAnchorOffset():u.getFocusOffset();return u=u.merge({anchorOffset:p,focusOffset:p}),l=s.EditorState.forceSelection(l,u),e.triggers.draft.change(l),l},t.prototype.openLink=function(e){this.options.onOpenLink(e.innerProps.evt)},t.prototype.addDecoratorsOnChange=function(e){var t=e.innerProps.value;return n.__spreadArrays(t,[{strategy:function(e,t,n){e.findEntityRanges((function(e){var t=e.getEntity();return null!==t&&"LINK"===n.getEntity(t).getType()}),t)},props:{readOnly:e.status.draft.readOnly,onOpenLink:e.triggers.hyperlink.openLink},component:c.LinkSpanComponent}])},t.prototype.handleKeyCommand=function(e){"create-link"===e.innerProps.evt&&e.triggers.hyperlink.updateLinkPromptProps({top:0,left:0})},t})(a.BaseLayer);t.HyperlinkLayer=u,r.__decorate([o.plug(i.intoFolderOverview.hyperlink.on.updateLinkPromptProps.update.linkPromptProps)],u.prototype,"updateLinkPrompt",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.pasteText.update.editorState)],u.prototype,"maybeCreateLinkOnPaste",null),r.__decorate([o.plug(i.intoFolderOverview.hyperlink.on.createLink.update.linkPromptProps)],u.prototype,"createLink",null),r.__decorate([o.plug(i.intoFolderOverview.hyperlink.on.openLink)],u.prototype,"openLink",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.init.update.decorators)],u.prototype,"addDecoratorsOnChange",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.keyCommand)],u.prototype,"handleKeyCommand",null)})),define("comments2/components/folder_overview_editor/layers/inline_toolbar",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.onDraftChange=function(e){var t=e.innerProps.evt;this.updateToolbarOnEditorStateChanges(t,e.triggers.inlineToolbar.updateProps),this.hidePlaceholderWhenContentEmpty(t,e.triggers.globalStyle.setClassName)},t.prototype.updateVisibility=function(e){return e.innerProps.evt},t.prototype.updateToolbarOnEditorStateChanges=function(e,t){var n=e.getSelection(),r=e.getCurrentContent().getBlockForKey(n.getStartKey()),o=r&&""==r.getText(),i="task-block"===r.getType();t({isVisible:n.getHasFocus()&&n.isCollapsed()&&o,showOnlyMention:i})},t.prototype.hidePlaceholderWhenContentEmpty=function(e,t){t({className:"editor-has-focus",value:e.getSelection().getHasFocus()})},t})(a.BaseLayer);t.InlineToolbarLayer=s,r.__decorate([o.plug(i.intoFolderOverview.draft.on.change)],s.prototype,"onDraftChange",null),r.__decorate([o.plug(i.intoFolderOverview.inlineToolbar.on.updateProps.update.props)],s.prototype,"updateVisibility",null)})),define("comments2/components/folder_overview_editor/layers/mention_share_flow",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js","comments2/components/folder_overview_editor/utils"],(function(e,t,n,r,o,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultMentionShareFlowHandlers={onShare:function(){},onMention:function(){return new Promise((function(e){return e({mentionedUserHasAccess:!0,shouldShowSharePopup:!1})}))}};var l=(function(e){function t(t){var n=e.call(this)||this;return n.options=t,n}return n.__extends(t,e),t.prototype.addPendingFlagToMention=function(e){var t=e.status.draft.editorState,n=e.innerProps.evt,r=n.mentionKey,o=n.mentionData,i=n.user,a=this.options.onMention(o,r),s=c.mergeMentionEntityData(t,r,!0);e.triggers.draft.change(s),a.then((function(n){if(n.shouldShowSharePopup)e.triggers.mentionShareFlow.updatePopupProps({mentionKey:r,mentionData:o,user:i});else if(n.mentionedUserHasAccess){var a=c.mergeMentionEntityData(t,r,!1);e.triggers.draft.change(a)}}))},t.prototype.updatePopupProps=function(e){return e.triggers.draft.readOnly(!!e.innerProps.evt),e.innerProps.evt},t.prototype.onShare=function(e){var t=e.innerProps.evt,n=t.mentionKey,r=t.mentionData,o=t.user;this.options.onShare(r,n,(function(){e.triggers.mentionShareFlow.onShareCompleted({mentionKey:n,mentionData:r,user:o})}))},t.prototype.onShareCompleted=function(e){var t=e.innerProps.evt.mentionKey,n=e.status.draft.editorState,r=c.updateMentionEntityState(t,n),o=s.EditorState.forceSelection(r,r.getSelection());e.triggers.draft.change(o)},t.prototype.updateReadonly=function(e){return e.innerProps.evt},t.prototype.closePopupOnChange=function(e){e.innerProps.prevStatus.draft.editorState.getCurrentContent()!==e.status.draft.editorState.getCurrentContent()&&e.status.mentionShareFlow.popupProps&&e.triggers.mentionShareFlow.updatePopupProps(null)},t})(a.BaseLayer);t.MentionShareFlowLayer=l,r.__decorate([o.plug(i.intoFolderOverview.mentionSuggestions.on.onApplyMentionToRange)],l.prototype,"addPendingFlagToMention",null),r.__decorate([o.plug(i.intoFolderOverview.mentionShareFlow.on.updatePopupProps.update.popupProps)],l.prototype,"updatePopupProps",null),r.__decorate([o.plug(i.intoFolderOverview.mentionShareFlow.on.onShare)],l.prototype,"onShare",null),r.__decorate([o.plug(i.intoFolderOverview.mentionShareFlow.on.onShareCompleted)],l.prototype,"onShareCompleted",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.readOnly.update.readOnly)],l.prototype,"updateReadonly",null),r.__decorate([o.plug(i.intoFolderOverview.draft)],l.prototype,"closePopupOnChange",null)})),define("comments2/components/folder_overview_editor/layers/plain_text_snippet",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types"],(function(e,t,n,r,o,i,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.updateSnippet=function(e){var t=e.innerProps.evt.getCurrentContent(),n=e.status,r=n.draft,o=n.macro,i=n.hyperlink,a=n.mentionShareFlow,s=!(!t.hasText()&&!r.isComposing||r.isFocused||o.active||a.popupProps||i.linkPromptProps);e.triggers.plainTextSnippet.update(s)},t.prototype.updateSnippetValue=function(e){var t=e.innerProps.evt;return e.triggers.globalStyle.setClassName({className:"show-plain-text-snippet",value:t}),t},t})(a.BaseLayer);t.PlainTextSnippetLayer=s,r.__decorate([o.plug(i.intoFolderOverview.draft.on.change)],s.prototype,"updateSnippet",null),r.__decorate([o.plug(i.intoFolderOverview.plainTextSnippet.on.update.update.show)],s.prototype,"updateSnippetValue",null)})),define("comments2/components/folder_overview_editor/layers/scaffold",["require","exports","tslib","comments2/components/comment_editor/layers/scaffold","comments2/components/folder_overview_editor/types","comments2/components/comment_editor/core/class_decorators"],(function(e,t,n,r,o,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultStatus=function(e){return r.filterSupportedFeatures(n.__assign(n.__assign({},r.getCommentEditorDefaultStatus()),{contextualToolbar:{isVisible:!1,updateLinkPromptProps:!1},inlineToolbar:{isVisible:!1},hyperlink:{},globalStyle:{classNames:{}},folderOverview:{},task:{},mentionShareFlow:{},accessibility:{captureTab:!1},fixedToolbar:{activeFormatting:{}},plainTextSnippet:{show:!1}}),e)},t.intoFolderOverview=i.scaffold(o.folderOverviewNames)})),define("comments2/components/folder_overview_editor/layers/task",["require","exports","tslib","tslib","comments2/components/comment_editor/core/class_decorators","comments2/components/folder_overview_editor/layers/scaffold","comments2/components/comment_editor/core/types","draft-js","comments2/components/folder_overview_editor/components/task_block","comments2/components/comment_editor/draft_utils"],(function(e,t,n,r,o,i,a,s,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=(function(e){function t(t){var n=e.call(this)||this;return n.taskOptions=t,n}return n.__extends(t,e),t.prototype.toggleTaskBlock=function(e){var t=e.status.draft.editorState,n=t.getCurrentContent(),r=l.getSelectedBlocksList(t),o={};r.forEach((function(e){if(e){var t=e.getKey(),n=e.removeIn(["data","checked"]),r="task-block"!==e.get("type")?"task-block":"unstyled";o[t]=n.set("type",r)}}));var i=n.getBlockMap().merge(o),a=s.EditorState.push(t,n.merge({blockMap:i}),"change-block-type");e.triggers.draft.change(a)},t.prototype.setTaskState=function(e){var t=e.innerProps.evt,n=t.key,r=t.checked,o=e.status.draft.editorState;e.triggers.draft.change(l.mergeBlockDataByKey(o,n,{checked:r},!1)),this.taskOptions.onTaskChecked(n,r)},t.prototype.addBlockFn=function(e){var t=e.innerProps.value;return n.__assign(n.__assign({},t),{"task-block":function(t){var n=t.getData().get("checked"),r={onToggleChecked:function(){e.triggers.task.setTaskState({checked:!n,key:t.getKey()})},checked:n};return{component:c.TaskComponent,props:r}}})},t})(a.BaseLayer);t.TaskLayer=u,r.__decorate([o.plug(i.intoFolderOverview.task.on.toggleTaskBlock)],u.prototype,"toggleTaskBlock",null),r.__decorate([o.plug(i.intoFolderOverview.task.on.setTaskState)],u.prototype,"setTaskState",null),r.__decorate([o.plug(i.intoFolderOverview.draft.on.init.update.blockRenderers)],u.prototype,"addBlockFn",null)})),define("comments2/components/folder_overview_editor/types",["require","exports","tslib","comments2/components/comment_editor/types"],(function(e,t,n,r){"use strict";var o,i,a,s,c,l,u,p,d,f;Object.defineProperty(t,"__esModule",{value:!0}),(o=t.ContextualToolbarNames||(t.ContextualToolbarNames={})).evts=["updateVisibility","toggleCommand"],o.values=["isVisible"],(i=t.InlineToolbarNames||(t.InlineToolbarNames={})).evts=["updateProps"],i.values=["props"],(a=t.FixedToolbarNames||(t.FixedToolbarNames={})).evts=["updateActiveFormatting"],a.values=["activeFormatting"],(s=t.PlainTextSnippetNames||(t.PlainTextSnippetNames={})).evts=["update"],s.values=["show"],(c=t.HyperlinkNames||(t.HyperlinkNames={})).evts=["updateLinkPromptProps","createLink","openLink"],c.values=["linkPromptProps"],(l=t.TaskNames||(t.TaskNames={})).evts=["toggleTaskBlock","setTaskState"],l.values=[],(u=t.MentionShareFlowNames||(t.MentionShareFlowNames={})).evts=["updatePopupProps","onShare","onShareCompleted"],u.values=["popupProps"],(p=t.GlobalStyleNames||(t.GlobalStyleNames={})).evts=["setClassName"],p.values=["classNames"],(d=t.AccessibilityNames||(t.AccessibilityNames={})).evts=["setCaptureTab"],d.values=["captureTab"],(f=t.FolderOverviewNames||(t.FolderOverviewNames={})).evts=[],f.values=["editorState"],t.folderOverviewNames=n.__assign(n.__assign({},r.commentEditorNames),{folderOverview:t.FolderOverviewNames,contextualToolbar:t.ContextualToolbarNames,inlineToolbar:t.InlineToolbarNames,hyperlink:t.HyperlinkNames,fixedToolbar:t.FixedToolbarNames,globalStyle:t.GlobalStyleNames,plainTextSnippet:t.PlainTextSnippetNames,task:t.TaskNames,mentionShareFlow:t.MentionShareFlowNames,accessibility:t.AccessibilityNames})})),define("comments2/components/folder_overview_editor/utils",["require","exports","draft-js","comments2/components/comment_editor/draft_utils"],(function(e,t,n,r){"use strict";function o(e,t,o){var i=e.getCurrentContent().mergeEntityData(t,{pending:o}),a=n.EditorState.push(e,i,"apply-entity"),s=i.getSelectionAfter(),c=s.merge({focusOffset:s.getFocusOffset()+1}),l=n.Modifier.removeRange(n.Modifier.insertText(i,s," "),c,"backward"),u=r.replaceContent(a,l);return n.EditorState.forceSelection(u,a.getSelection())}Object.defineProperty(t,"__esModule",{value:!0}),t.getOffsetParent=function(e,t){for(;e&&!e.classList.contains(t);)e=e.offsetParent;return e},t.updateMentionEntityState=function(e,t){var n,r=t.getCurrentContent();try{n=r.getEntity(e)}catch(e){}return n&&"mention"===n.getType()?o(t,e,!1):t},t.mergeMentionEntityData=o})),define("spaces-components/last_edit",["require","exports","tslib","spaces-components/last_edit/last_edit_component"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.__exportStar(r,t)})),define("spaces-components/last_edit/icons",["require","exports","tslib","react"],(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r),t.LastEditTimeIcon=function(){return r.default.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("g",{clipPath:"url(#clip0)"},r.default.createElement("circle",{cx:"8",cy:"7.5",r:"6.25",stroke:"#A5A9AF",strokeWidth:"1.5"}),r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 4H7V7V7.5V8.5H11V7H8.5V4Z",fill:"#A5A9AF"})),r.default.createElement("defs",null,r.default.createElement("clipPath",{id:"clip0"},r.default.createElement("rect",{width:"16",height:"16",fill:"white"}))))},t.AvatarWarningIcon=function(){return r.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM11.25 12.75L11 8.2501L13 8.25L12.75 12.75H11.25ZM11.0001 14.75C11.0001 14.1977 11.4478 13.75 12.0001 13.75C12.5524 13.75 13.0001 14.1977 13.0001 14.75C13.0001 15.3023 12.5524 15.75 12.0001 15.75C11.4478 15.75 11.0001 15.3023 11.0001 14.75Z",fill:"#FF8E21"}))}})),define("spaces-components/last_edit/last_edit_component",["require","exports","tslib","react","spaces-components/last_edit/icons","spectrum/avatar","spectrum/popover/popover","spectrum/popover/popover_content","spectrum/button"],(function(e,t,n,r,o,i,a,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r=n.__importDefault(r);var l=(function(e){function t(t){var n=e.call(this,t)||this;return n.renderAvatar=function(e,t){var n=e.toUpperCase(),a=t?r.default.createElement(i.Avatar,{size:40,src:t,variant:"normal"}):r.default.createElement(i.AvatarInitials,{avatarSize:40,backgroundColor:i.avatarColorForUserIdentifier(n),variant:"normal"},n);return r.default.createElement("div",{className:"cb-last-edit__avatar-wrapper"},r.default.createElement("div",{className:"cb-last-edit__avatar-clipping-circle"}),r.default.createElement(o.AvatarWarningIcon,null),a)},n}return n.__extends(t,e),t.prototype.renderConflictPopover=function(){var e=this.props.conflictPopup;if(!e)return null;var t=e.title,n=e.message,o=e.dismissButtonLabel,i=e.userInitials,l=e.userPhotoUrl,u=e.onDismissHandler,p=e.position,d=e.popoverContentRef;return r.default.createElement(a.Popover,{className:"cb-conflict-popover"},r.default.createElement(s.PopoverContent,{className:"cb-conflict-popover-content",position:p,isRevealed:!0},r.default.createElement("div",{className:"cb-conflict-popover-content__inner-wrapper",ref:d,tabIndex:-1},this.renderAvatar(i,l),r.default.createElement("div",{className:"cb-conflict-popover__text-wrapper"},r.default.createElement("div",{className:"cb-conflict-popover__title"},t),r.default.createElement("div",{className:"cb-conflict-popover__message"},n))),r.default.createElement(c.Button,{className:"cb-conflict-popover__dismiss-button",variant:"secondary",onClick:u},o)))},t.prototype.render=function(){var e=this.props,t=e.lastEditMessage,n=e.userEditingMessage,i=e.isEditorFocused,a=!!n&&i;return r.default.createElement("div",{className:"cb-last-edit"},r.default.createElement("div",{className:"cb-last-edit__message-wrapper"},!a&&r.default.createElement(o.LastEditTimeIcon,null),r.default.createElement("div",{className:"cb-last-edit__message"},a?n:t)),this.renderConflictPopover())},t})(r.default.PureComponent);t.LastEditComponent=l}));
  //# sourceMappingURL=pkg-folder-overview.min.js-vflDVLMQc.map