(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[25],{2:function(t,e){t.exports=React},20:function(t,e){t.exports=ReactDOM},695:function(t,e,n){"use strict";window.yoast=window.yoast||{},window.yoast.draftJs=n(696)},696:function(t,e,n){!function(e,r){t.exports=r(n(697),n(2),n(20))}(0,function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";var r=n(64),i=n(17),o=n(5),a=n(65),s=n(12),u=n(25),c=n(26),l=n(39),f=n(67),p=n(40),h=n(22),d=n(4),g=n(41),y=n(3),v=n(27),m=n(44),_=n(15),b=n(86),w={Editor:f,EditorBlock:p,EditorState:y,CompositeDecorator:a,Entity:h,EntityInstance:g,BlockMapBuilder:i,CharacterMetadata:o,ContentBlock:s,ContentState:u,SelectionState:_,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:d,RichUtils:m,DefaultDraftBlockRenderMap:c,DefaultDraftInlineStyle:l,convertFromHTML:n(45),convertFromRaw:n(87),convertToRaw:b,genKey:n(10),getDefaultKeyBinding:n(46),getVisibleSelectionRect:n(110)};t.exports=w},function(t,e,n){"use strict";var r=function(t){};r=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")},t.exports=function(t,e,n,i,o,a,s,u){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,a,s,u],f=0;(c=new Error(e.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,n){e.exports=t},function(t,e,n){"use strict";var r=n(7)||function(t){for(var e=1;e0)return i.getInlineStyleAt(r-1);if(i.getLength())return i.getInlineStyleAt(0);return y(t,n)}(e,n):function(t,e){var n=e.getStartKey(),r=e.getStartOffset(),i=t.getBlockForKey(n);if(r0)return i.getInlineStyleAt(r-1);return y(t,n)}(e,n)},t.prototype.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.prototype.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.prototype.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(t,e){return d(t,e,!1)},t.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),d(t,e,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),i=n.getLength();return t.acceptSelection(e,new u({anchorKey:r,anchorOffset:i,focusKey:r,focusOffset:i,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){if(e.getCurrentContent()===n)return e;var i="insert-characters"!==r,o=a.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:null});var s=e.getSelection(),u=e.getCurrentContent(),c=e.getUndoStack(),l=n;s!==u.getSelectionAfter()||function(t,e){var n=t.getLastChangeType();return e!==n||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}(e,r)?(c=c.push(u),l=l.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(l=l.set("selectionBefore",u.getSelectionBefore()));var p=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(p=null);var h={currentContent:l,directionMap:o,undoStack:c,redoStack:f(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:i,inlineStyleOverride:p};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=a.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:e.getRedoStack().push(i),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:i.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var i=e.getCurrentContent(),o=a.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:e.getUndoStack().push(i),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},t.prototype.getImmutable=function(){return this._immutable},t}();function d(t,e,n){return h.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(t,e){return t.getBlockMap().map(function(n){return i.generate(t,n,e)}).toOrderedMap()}function y(t,e){var n=t.getBlockMap().reverse().skipUntil(function(t,n){return n===e}).skip(1).skipUntil(function(t,e){return t.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):c()}t.exports=h},function(t,e,n){"use strict";var r=n(5),i=n(66),o=n(11),a=n(2),s=n(85),u=n(106),c=n(24),l=n(111),f=n(112),p=n(1),h=n(123),d=n(59),g=n(125),y=n(127),v=a.OrderedSet,m={replaceText:function(t,e,n,i,o){var a=d(t,e),s=g(a,e),u=r.create({style:i||v(),entity:o||null});return f(s,s.getSelectionAfter(),n,u)},insertText:function(t,e,n,r,i){return e.isCollapsed()||p(!1,"Target range must be collapsed for `insertText`."),m.replaceText(t,e,n,r,i)},moveText:function(t,e,n){var r=c(t,e),i=m.removeRange(t,e,"backward");return m.replaceWithFragment(i,n,r)},replaceWithFragment:function(t,e,n){var r=d(t,e),i=g(r,e);return l(i,i.getSelectionAfter(),n)},removeRange:function(t,e,n){var r,i,a=void 0,s=void 0;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),r=e.getAnchorKey(),i=e.getFocusKey(),a=t.getBlockForKey(r),s=t.getBlockForKey(i);var c=e.getStartOffset(),l=e.getEndOffset(),f=a.getEntityAt(c),p=s.getEntityAt(l-1);if(r===i&&f&&f===p){var h=u(t.getEntityMap(),a,s,e,n);return g(t,h)}var y=e;o.draft_segmented_entities_behavior&&(y=u(t.getEntityMap(),a,s,e,n));var v=d(t,y);return g(v,y)},splitBlock:function(t,e){var n=d(t,e),r=g(n,e);return y(r,r.getSelectionAfter())},applyInlineStyle:function(t,e,n){return i.add(t,e,n)},removeInlineStyle:function(t,e,n){return i.remove(t,e,n)},setBlockType:function(t,e,n){return h(t,e,function(t){return t.merge({type:n,depth:0})})},setBlockData:function(t,e,n){return h(t,e,function(t){return t.merge({data:n})})},mergeBlockData:function(t,e,n){return h(t,e,function(t){return t.merge({data:t.getData().merge(n)})})},applyEntity:function(t,e,n){var r=d(t,e);return s(r,e,n)}};t.exports=m},function(t,e,n){"use strict";var r=n(2),i=r.Map,o=r.OrderedSet,a=r.Record,s=o(),u={style:s,entity:null},c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getStyle=function(){return this.get("style")},e.prototype.getEntity=function(){return this.get("entity")},e.prototype.hasStyle=function(t){return this.getStyle().includes(t)},e.applyStyle=function(t,n){var r=t.set("style",t.getStyle().add(n));return e.create(r)},e.removeStyle=function(t,n){var r=t.set("style",t.getStyle().remove(n));return e.create(r)},e.applyEntity=function(t,n){var r=t.getEntity()===n?t:t.set("entity",n);return e.create(r)},e.create=function(t){if(!t)return l;var n=i({style:s,entity:null}).merge(t),r=f.get(n);if(r)return r;var o=new e(n);return f=f.set(n,o),o},e}(a(u)),l=new c,f=i([[i(u),l]]);c.EMPTY=l,t.exports=c},function(t,e,n){"use strict";var r=n(5),i=n(2),o=n(18),a=i.List,s=i.Map,u=i.OrderedSet,c=i.Record,l=i.Repeat,f=u(),p={parent:null,characterList:a(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:a(),prevSibling:null,nextSibling:null},h=function(t,e){return t.getStyle()===e.getStyle()},d=function(t,e){return t.getEntity()===e.getEntity()},g=function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=a(l(r.EMPTY,n.length))),t},y=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,g(n)))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getKey=function(){return this.get("key")},e.prototype.getType=function(){return this.get("type")},e.prototype.getText=function(){return this.get("text")},e.prototype.getCharacterList=function(){return this.get("characterList")},e.prototype.getLength=function(){return this.getText().length},e.prototype.getDepth=function(){return this.get("depth")},e.prototype.getData=function(){return this.get("data")},e.prototype.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():f},e.prototype.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},e.prototype.getChildKeys=function(){return this.get("children")},e.prototype.getParentKey=function(){return this.get("parent")},e.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},e.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},e.prototype.findStyleRanges=function(t,e){o(this.getCharacterList(),h,t,e)},e.prototype.findEntityRanges=function(t,e){o(this.getCharacterList(),d,t,e)},e}(c(p));t.exports=y},function(t,e){ /* object-assign (c) Sindre Sorhus @license MIT */ "use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var o,a,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;ur||n<=0)return"";var i=0;if(e>0){for(;e>0&&i=r)return""}else if(e<0){for(i=r;e<0&&00&&o=a},e.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},e.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},e.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},e.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},e.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},e.createEmpty=function(t){return new e({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},e}((0,n(2).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=r},function(t,e){"use strict";function n(t){return t.replace(/\//g,"-")}t.exports=function(t){return"object"==typeof t?Object.keys(t).filter(function(e){return t[e]}).map(n).join(" "):Array.prototype.map.call(arguments,n).join(" ")}},function(t,e,n){"use strict";var r=n(2).OrderedMap,i={createFromArray:function(t){return r(t.map(function(t){return[t.getKey(),t]}))}};t.exports=i},function(t,e){"use strict";t.exports=function(t,e,n,r){if(t.size){var i=0;t.reduce(function(t,o,a){return e(t,o)||(n(t)&&r(i,a),i=a),o}),n(t.last())&&r(i,t.count())}}},function(t,e){"use strict";t.exports=function(t){return"handled"===t||!0===t}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e,n){var i=t.getSelection(),o=t.getCurrentContent(),a=i;if(i.isCollapsed()){if("forward"===n){if(t.isSelectionAtEndOfContent())return o}else if(t.isSelectionAtStartOfContent())return o;if((a=e(t))===i)return o}return r.removeRange(o,a,n)}},function(t,e){t.exports=n},function(t,e,n){"use strict";var r=n(7)||function(t){for(var e=1;e1||t.first().getLength()>0},e.prototype.createEntity=function(t,e,n){return s.__create(t,e,n),this},e.prototype.mergeEntityData=function(t,e){return s.__mergeData(t,e),this},e.prototype.replaceEntityData=function(t,e){return s.__replaceData(t,e),this},e.prototype.addEntity=function(t){return s.__add(t),this},e.prototype.getEntity=function(t){return s.__get(t)},e.createFromBlockArray=function(t,n){var i=Array.isArray(t)?t:t.contentBlocks,o=r.createFromArray(i),a=o.isEmpty()?new l:l.createEmpty(o.first().getKey());return new e({blockMap:o,entityMap:n||s,selectionBefore:a,selectionAfter:a})},e.createFromText=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=t.split(n).map(function(t){return t=p(t),new y({key:f(),text:t,type:"unstyled",characterList:h(g(i.EMPTY,t.length))})});return e.createFromBlockArray(r)},e}(d({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));t.exports=v},function(t,e,n){"use strict";var r=n(2).Map,i=n(14),o=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:i.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:i.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:i.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=a},function(t,e,n){"use strict";var r=n(9).isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return r&&t.altKey},hasCommandModifier:function(t){return r?!!t.metaKey&&!t.altKey:i.isCtrlKeyCommand(t)}};t.exports=i},function(t,e,n){"use strict";var r=n(52);t.exports=function(t){for(var e=t;e&&e!==document.documentElement;){var n=r(e);if(null!=n)return n;e=e.parentNode}return null}},function(t,e){"use strict";function n(t,e){return e&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var r;if(e.isCollapsed()){var i=e.getAnchorKey(),o=e.getAnchorOffset();return o>0?(r=t.getBlockForKey(i).getEntityAt(o-1))!==t.getBlockForKey(i).getEntityAt(o)?null:n(t.getEntityMap(),r):null}var a=e.getStartKey(),s=e.getStartOffset(),u=t.getBlockForKey(a);return r=s===u.getLength()?null:u.getEntityAt(s),n(t.getEntityMap(),r)}},function(t,e){"use strict";t.exports=function(t,e){var n=t.getSelection(),r=t.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(e>o){var u=r.getKeyBefore(i);null==u?a=i:(a=u,s=r.getBlockForKey(u).getText().length)}else s=o-e;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}},function(t,e){"use strict";var n=new RegExp("\r","g");t.exports=function(t){return t.replace(n,"")}},function(t,e){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(t,e,n){"use strict";function r(t,e){var n=i.get(t,e);return"auto"===n||"scroll"===n}var i={get:n(140),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(r(t,"overflow")||r(t,"overflowY")||r(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=i},function(t,e,n){"use strict";var r=n(1),i="LTR",o="RTL",a=null;function s(t){return t===i||t===o}function u(t){return s(t)||r(!1,"`dir` must be a strong direction to be converted to HTML Direction"),t===i?"ltr":"rtl"}function c(t){a=t}var l={NEUTRAL:"NEUTRAL",LTR:i,RTL:o,isStrong:s,getHTMLDir:u,getHTMLDirIfDifferent:function(t,e){return s(t)||r(!1,"`dir` must be a strong direction to be converted to HTML Direction"),s(e)||r(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"),t===e?null:u(t)},setGlobalDir:c,initGlobalDir:function(){c(i)},getGlobalDir:function(){return a||this.initGlobalDir(),a||r(!1,"Global direction not set."),a}};t.exports=l},function(t,e,n){"use strict";var r=n(145);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},function(t,e){"use strict";function n(t){return function(){return t}}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(t){return t},t.exports=r},function(t,e,n){"use strict";var r=n(137),i=n(141);t.exports=function(t){var e=r(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=i(t),o=t===e?t.ownerDocument.documentElement:t,a=t.scrollWidth-o.clientWidth,s=t.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,a)),n.y=Math.max(0,Math.min(n.y,s)),n}},function(t,e,n){"use strict";var r=n(2),i=n(36),o=n(18),a=r.List,s=r.Repeat,u=r.Record,c=i.thatReturnsTrue,l=u({start:null,end:null}),f=u({start:null,end:null,decoratorKey:null,leaves:null}),p={generate:function(t,e,n){var r=e.getLength();if(!r)return a.of(new f({start:0,end:0,decoratorKey:null,leaves:a.of(new l({start:0,end:0}))}));var i=[],u=n?n.getDecorations(e,t):a(s(null,r)),p=e.getCharacterList();return o(u,h,c,function(t,e){i.push(new f({start:t,end:e,decoratorKey:u.get(t),leaves:function(t,e){var n=[],r=t.map(function(t){return t.getStyle()}).toList();return o(r,h,c,function(t,r){n.push(new l({start:t+e,end:r+e}))}),a(n)}(p.slice(t,e).toList(),t)}))}),a(i)},getFingerprint:function(t){return t.map(function(t){var e=t.get("decoratorKey");return(null!==e?e+"."+(t.get("end")-t.get("start")):"")+"."+t.get("leaves").size}).join("-")}};function h(t,e){return t===e}t.exports=p},function(t,e){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(t,e,n){"use strict";var r=n(7)||function(t){for(var e=1;e0&&window.scrollTo(i.x,i.y+o+10)}else{n instanceof HTMLElement||y(!1,"blockNode is not an HTMLElement"),(o=n.offsetHeight+n.offsetTop-(r.offsetHeight+i.y))>0&&u.setTop(r,u.getTop(r)+o+10)}}},e.prototype._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),s=e.getText(),u=this.props.tree.size-1,c=m(this.props.selection,n);return this.props.tree.map(function(p,h){var d=p.get("leaves"),g=d.size-1,y=d.map(function(r,l){var f=o.encode(n,h,l),p=r.get("start"),d=r.get("end");return a.createElement(i,{key:f,offsetKey:f,block:e,start:p,selection:c?t.props.selection:null,forceSelection:t.props.forceSelection,text:s.slice(p,d),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:h===u&&l===g})}).toArray(),m=p.get("decoratorKey");if(null==m)return y;if(!t.props.decorator)return y;var _=v(t.props.decorator),b=_.getComponentForKey(m);if(!b)return y;var w=_.getPropsForKey(m),S=o.encode(n,h,0),x=s.slice(d.first().get("start"),d.last().get("end")),k=f.getHTMLDirIfDifferent(l.getDirection(x),t.props.direction);return a.createElement(b,r({},w,{contentState:t.props.contentState,decoratedText:x,dir:k,key:S,entityKey:e.getEntityAt(p.get("start")),offsetKey:S}),y)}).toArray()},e.prototype.render=function(){var t=this.props,e=t.direction,n=t.offsetKey,r=p({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===e,"public/DraftStyleDefault/rtl":"RTL"===e});return a.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},e}(a.Component);t.exports=_},function(t,e,n){"use strict";var r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getType=function(){return this.get("type")},e.prototype.getMutability=function(){return this.get("mutability")},e.prototype.getData=function(){return this.get("data")},e}((0,n(2).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=r},function(t,e,n){"use strict";var r="\\s|(?![_])"+n(130).getPunctuation(),i=new RegExp("^(?:"+r+")*(?:['‘’]|(?!"+r+").)*(?:(?!"+r+").)"),o=new RegExp("(?:(?!"+r+").)(?:['‘’]|(?!"+r+").)*(?:"+r+")*$");function a(t,e){var n=e?o.exec(t):i.exec(t);return n?n[0]:t}var s={getBackward:function(t){return a(t,!0)},getForward:function(t){return a(t,!1)}};t.exports=s},function(t,e){"use strict";var n={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}};t.exports=n},function(t,e,n){"use strict";var r=n(4),i=n(3),o=(n(15),n(83)),a=n(8),s={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some(function(t){var e=t.getEntity();return!!e&&"LINK"===r.__get(e).getType()})},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e){switch(e){case"bold":return s.toggleInlineStyle(t,"BOLD");case"italic":return s.toggleInlineStyle(t,"ITALIC");case"underline":return s.toggleInlineStyle(t,"UNDERLINE");case"code":return s.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return s.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return s.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=r.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=i.push(t,e,"insert-characters");return i.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),r=e.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var a=n.getBlockMap().delete(o.getKey()),u=n.merge({blockMap:a,selectionAfter:e});if(u!==n)return i.push(t,u,"remove-range")}var c=s.tryToRemoveBlockStyle(t);return c?i.push(t,c,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),o=e.getStartKey(),a=n.getBlockForKey(o).getLength();if(e.getStartOffset()0&&a!==s)return null;var u=a.getType(),c=o.getBlockBefore(i);if("code-block"===u&&c&&"code-block"===c.getType()&&0!==c.getLength())return null;if("unstyled"!==u)return r.setBlockType(o,e,"unstyled")}return null}};t.exports=s},function(t,e,n){"use strict";var r,i=o||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[x()],entities:new Array(1),blocks:[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i({},N,t)}({parent:n,key:v(),type:t,depth:Math.max(0,Math.min(4,e))})]}},H=function t(e,n,r,o,a,s,u,c,l,p){var h=L,d=n.nodeName.toLowerCase(),y=e,v="unstyled",m=!1,_=a&&z(a,o,c),b=i({},R),S=void 0;if("#text"===d){var k=n.textContent,C=k.trim();if(o&&""===C&&n.parentElement){var O=n.parentElement.nodeName.toLowerCase();if("ol"===O||"ul"===O)return{chunk:i({},R),entityMap:e}}return""===C&&"pre"!==a?{chunk:function(t){var e=new Array(1);return t&&(e[0]=t),i({},R,{text:" ",inlines:[x()],entities:e})}(l),entityMap:e}:("pre"!==a&&(k=k.replace(E," ")),L=d,{chunk:{text:k,inlines:Array(k.length).fill(r),entities:Array(k.length).fill(l),blocks:[]},entityMap:e})}if(L=d,"br"===d)return"br"!==h||a&&"unstyled"!==_?{chunk:U(),entityMap:e}:{chunk:q("unstyled",u,p),entityMap:e};if("img"===d&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value){var T=n,N={};B.forEach(function(t){var e=T.getAttribute(t);e&&(N[t]=e)}),n.textContent="📷",l=f.__create("IMAGE","MUTABLE",N||{})}r=function(t,e,n){var r=A[t];if(r)n=n.add(r).toOrderedSet();else if(e instanceof HTMLElement){var i=e;n=n.withMutations(function(t){var e=i.style.fontWeight,n=i.style.fontStyle,r=i.style.textDecoration;D.indexOf(e)>=0?t.add("BOLD"):M.indexOf(e)>=0&&t.remove("BOLD"),"italic"===n?t.add("ITALIC"):"normal"===n&&t.remove("ITALIC"),"underline"===r&&t.add("UNDERLINE"),"line-through"===r&&t.add("STRIKETHROUGH"),"none"===r&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}).toOrderedSet()}return n}(d,n,r),"ul"!==d&&"ol"!==d||(o&&(u+=1),o=d),!w&&"li"===d&&n instanceof HTMLElement&&(u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(K).some(function(n){t.classList.contains(n)&&(e=K[n])}),e}(n,u));var F=z(d,o,c),H=o&&"li"===a&&"li"===d,W=(!a||w)&&-1!==s.indexOf(d);(H||W)&&(S=(b=q(F,u,p)).blocks[0].key,a=d,m=!w),H&&(v="ul"===o?"unordered-list-item":"ordered-list-item");var V=n.firstChild;null!=V&&(d=V.nodeName.toLowerCase());for(var G=null;V;){V instanceof HTMLAnchorElement&&V.href&&j(V)?function(){var t=V,e={};I.forEach(function(n){var r=t.getAttribute(n);r&&(e[n]=r)}),e.url=new g(t.href).toString(),G=f.__create("LINK","MUTABLE",e||{})}():G=void 0;var J=t(y,V,r,o,a,s,u,c,G||l,w?S:null),X=J.chunk;y=J.entityMap,b=P(b,X,w);var Y=V.nextSibling;!p&&Y&&s.indexOf(d)>=0&&a&&(b=P(b,U())),Y&&(d=Y.nodeName.toLowerCase()),V=Y}return m&&(b=P(b,q(v,u,p))),{chunk:b,entityMap:y}},W=function(t,e,n,r){t=t.trim().replace(k,"").replace(C," ").replace(O,"").replace(T,"");var o=function(t){var e=t.get("unstyled").element,n=d([]);return t.forEach(function(t){t.aliasedElements&&t.aliasedElements.forEach(function(t){n=n.add(t)}),n=n.add(t.element)}),n.filter(function(t){return t&&t!==e}).toArray().sort()}(n),a=e(t);if(!a)return null;L=null;var s=function(t,e){return e.some(function(e){return-1!==t.indexOf("<"+e)})}(t,o)?o:["div"],u=H(r,a,x(),"ul",null,s,-1,n),c=u.chunk,l=u.entityMap;return 0===c.text.indexOf("\r")&&(c={text:c.text.slice(1),inlines:c.inlines.slice(1),entities:c.entities.slice(1),blocks:c.blocks}),"\r"===c.text.slice(-1)&&(c.text=c.text.slice(0,-1),c.inlines=c.inlines.slice(0,-1),c.entities=c.entities.slice(0,-1),c.blocks.pop()),0===c.blocks.length&&c.blocks.push(i({},R,{type:"unstyled",depth:0})),c.text.split("\r").length===c.blocks.length+1&&c.blocks.unshift({type:"unstyled",depth:0}),{chunk:c,entityMap:l}};t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,r=W(t,e,n,f);if(null==r)return null;var i=r.chunk,o=r.entityMap;return{contentBlocks:function(t){if(!t||!t.text||!Array.isArray(t.blocks))return null;var e=0,n=t.blocks,r=t.inlines,i=t.entities,o=w?c:u;return t.text.split("\r").reduce(function(t,a,u){a=b(a);var l=n[u],f=e+a.length,p=r.slice(e,f),h=i.slice(e,f),d=S(p.map(function(t,e){var n={style:t,entity:null};return h[e]&&(n.entity=h[e]),s.create(n)}));e=f+1;var g=l.depth,y=l.type,m=l.parent,_=l.key||v(),w=null;if(m){var x=t.cacheRef[m],k=t.contentBlocks[x];if(k.getChildKeys().isEmpty()&&k.getText()){var E=k.getCharacterList(),C=k.getText();w=v();var O=new c({key:w,text:C,characterList:E,parent:m,nextSibling:_});t.contentBlocks.push(O),k=k.withMutations(function(t){t.set("characterList",S()).set("text","").set("children",k.children.push(O.getKey()))})}t.contentBlocks[x]=k.set("children",k.children.push(_))}var T=new o({key:_,parent:m,type:y,depth:g,text:a,characterList:d,prevSibling:w||(0===u||n[u-1].parent!==m?null:n[u-1].key),nextSibling:u===n.length-1||n[u+1].parent!==m?null:n[u+1].key});return t.contentBlocks.push(T),t.cacheRef[T.key]=u,t},{cacheRef:{},contentBlocks:[]}).contentBlocks}(i),entityMap:o}}},function(t,e,n){"use strict";var r=n(27),i=n(32),o=n(9),a=o.isPlatform("Mac OS X"),s=o.isPlatform("Windows"),u=a&&o.isBrowser("Firefox < 29"),c=r.hasCommandModifier,l=r.isCtrlKeyCommand;function f(t){return a&&t.altKey||l(t)}t.exports=function(t){switch(t.keyCode){case 66:return c(t)?"bold":null;case 68:return l(t)?"delete":null;case 72:return l(t)?"backspace":null;case 73:return c(t)?"italic":null;case 74:return c(t)?"code":null;case 75:return!s&&l(t)?"secondary-cut":null;case 77:case 79:return l(t)?"split-block":null;case 84:return a&&l(t)?"transpose-characters":null;case 85:return c(t)?"underline":null;case 87:return a&&l(t)?"backspace-word":null;case 89:return l(t)?s?"redo":"secondary-paste":null;case 90:return function(t){return c(t)?t.shiftKey?"redo":"undo":null}(t)||null;case i.RETURN:return"split-block";case i.DELETE:return function(t){return s&&t.shiftKey?null:f(t)?"delete-word":"delete"}(t);case i.BACKSPACE:return function(t){return c(t)&&a?"backspace-to-start-of-line":f(t)?"backspace-word":"backspace"}(t);case i.LEFT:return u&&c(t)?"move-selection-to-start-of-block":null;case i.RIGHT:return u&&c(t)?"move-selection-to-end-of-block":null;default:return null}}},function(t,e,n){"use strict";var r=n(28),i=n(52),o=n(54),a=n(1),s=n(8);function u(t,e,n){var o=e,u=r(o);if(null!=u||t&&(t===o||t.firstChild===o)||a(!1,"Unknown node in selection range."),t===o&&((o=o.firstChild)instanceof Element&&"true"===o.getAttribute("data-contents")||a(!1,"Invalid DraftEditorContents structure."),n>0&&(n=o.childNodes.length)),0===n){var l=null;if(null!=u)l=u;else{var f=function(t){for(;t.firstChild&&(t.firstChild instanceof Element&&"true"===t.firstChild.getAttribute("data-blocks")||i(t.firstChild));)t=t.firstChild;return t}(o);l=s(i(f))}return{key:l,offset:0}}var p=o.childNodes[n-1],h=null,d=null;if(i(p)){var g=function(t){for(;t.lastChild&&(t.lastChild instanceof Element&&"true"===t.lastChild.getAttribute("data-blocks")||i(t.lastChild));)t=t.lastChild;return t}(p);h=s(i(g)),d=c(g)}else h=s(u),d=c(p);return{key:h,offset:d}}function c(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,n,i,a,c){var l=n.nodeType===Node.TEXT_NODE,f=a.nodeType===Node.TEXT_NODE;if(l&&f)return{selectionState:o(t,s(r(n)),i,s(r(a)),c),needsRecovery:!1};var p=null,h=null,d=!0;return l?(p={key:s(r(n)),offset:i},h=u(e,a,c)):f?(h={key:s(r(a)),offset:c},p=u(e,n,i)):(p=u(e,n,i),h=u(e,a,c),n===a&&i===c&&(d=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:o(t,p.key,p.offset,h.key,h.offset),needsRecovery:d}}},function(t,e,n){"use strict";var r=n(24);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:r(t.getCurrentContent(),e)}},function(t,e,n){"use strict";var r=n(6);t.exports=function(t,e){if(!(t instanceof r))return null;var n=t.getNextSiblingKey();if(n)return n;var i=t.getParentKey();if(!i)return null;for(var o=e.get(i);o&&!o.getNextSiblingKey();){var a=o.getParentKey();o=a?e.get(a):null}return o?o.getNextSiblingKey():null}},function(t,e,n){"use strict";var r=n(9),i=n(1);var o=r.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],r=t.endContainer;null!=r;r=r.parentNode){var o=r===t.commonAncestorContainer;o?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var a,s=Array.from(e.getClientRects());if(n.push(s),o)return n.reverse(),(a=[]).concat.apply(a,n);e.setEndBefore(r)}i(!1,"Found an unexpected detached subtree when getting range client rects.")}:function(t){return Array.from(t.getClientRects())};t.exports=o},function(t,e,n){"use strict";var r=n(9),i=n(1),o=r.isBrowser("IE <= 9");t.exports=function(t){var e,n=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||i(!1,"Missing doc.documentElement"),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}},function(t,e){"use strict";t.exports=function t(e){if(e instanceof Element){var n=e.getAttribute("data-offset-key");if(n)return n;for(var r=0;ra.getBlockForKey(i).getText().length-o?(s=a.getKeyAfter(i),n=0):n=o+e,r.merge({focusKey:s,focusOffset:n})}},function(t,e,n){"use strict";var r=n(6),i=n(2),o=n(10),a=i.OrderedMap;t.exports=function(t){return t.first()instanceof r?function(t){var e={},n=void 0;return a(t.withMutations(function(t){t.forEach(function(r,i){var a=r.getKey(),s=r.getNextSiblingKey(),u=r.getPrevSiblingKey(),c=r.getChildKeys(),l=r.getParentKey(),f=o();if(e[a]=f,s&&(t.get(s)?t.setIn([s,"prevSibling"],f):t.setIn([a,"nextSibling"],null)),u&&(t.get(u)?t.setIn([u,"nextSibling"],f):t.setIn([a,"prevSibling"],null)),l&&t.get(l)){var p=t.get(l).getChildKeys();t.setIn([l,"children"],p.set(p.indexOf(r.getKey()),f))}else t.setIn([a,"parent"],null),n&&(t.setIn([n.getKey(),"nextSibling"],f),t.setIn([a,"prevSibling"],e[n.getKey()])),n=t.get(a);c.forEach(function(e){t.get(e)?t.setIn([e,"parent"],f):t.setIn([a,"children"],r.getChildKeys().filter(function(t){return t!==e}))})})}).toArray().map(function(t){return[e[t.getKey()],t.set("key",e[t.getKey()])]}))}(t):function(t){return a(t.toArray().map(function(t){var e=o();return[e,t.set("key",e)]}))}(t)}},function(t,e,n){"use strict";var r=n(5),i=n(18),o=n(1);function a(t,e,n){var a=e.getCharacterList(),s=n>0?a.get(n-1):void 0,u=n=n&&(r={start:t,end:e})}),"object"!=typeof r&&o(!1,"Removal range must exist within character list."),r}(a,l,n),h=p.start,d=p.end;h0},t}();t.exports=c},function(t,e){"use strict";function n(t,e){return!!e&&(t===e.documentElement||t===e.body)}var r={getTop:function(t){var e=t.ownerDocument;return n(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var r=t.ownerDocument;n(t,r)?r.body.scrollTop=r.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return n(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var r=t.ownerDocument;n(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=e:t.scrollLeft=e}};t.exports=r},function(t,e,n){"use strict";var r=n(34),i=n(1),o="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",a="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",s=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+o+a+"]"),u=new RegExp("["+o+a+"]");function c(t){var e=s.exec(t);return null==e?null:e[0]}function l(t){var e=c(t);return null==e?r.NEUTRAL:u.exec(e)?r.RTL:r.LTR}function f(t,e){if(e=e||r.NEUTRAL,!t.length)return e;var n=l(t);return n===r.NEUTRAL?e:n}function p(t,e){return e||(e=r.getGlobalDir()),r.isStrong(e)||i(!1,"Fallback direction must be a strong direction"),f(t,e)}var h={firstStrongChar:c,firstStrongCharDir:l,resolveBlockDir:f,getDirection:p,isDirectionLTR:function(t,e){return p(t,e)===r.LTR},isDirectionRTL:function(t,e){return p(t,e)===r.RTL}};t.exports=h},function(t,e){"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}},function(t,e,n){"use strict";var r=n(7)||function(t){for(var e=1;e0||null!==h;if(d&&t.restoreEditorDOM(),t.exitCurrentMode(),e){if(r.draft_handlebeforeinput_composed_text&&t.props.handleBeforeInput&&u(t.props.handleBeforeInput(e,n)))return;var g=i.replaceText(n.getCurrentContent(),n.getSelection(),e,a,h);t.update(o.push(n,g,"insert-characters"))}else d&&t.update(o.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};t.exports=h},function(t,e,n){"use strict";var r=n(7)||function(t){for(var e=1;ex,I));var j=M||i,U={className:P,"data-block":!0,"data-editor":d,"data-offset-key":B,key:O};void 0!==K&&(U=r({},U,{contentEditable:K,suppressContentEditableWarning:!0}));var q=a.createElement(F,U,a.createElement(j,L));S.push({block:q,wrapperTemplate:N,key:O,offsetKey:B}),x=N?C.getDepth():null,k=N}for(var H=[],W=0;W0){if(t.props.handleDroppedFiles&&c(t.props.handleDroppedFiles(h,d)))return;s(d,function(e){e&&t.update(p(f,h,e))})}else{var g=t._internalDrag?"internal":"external";t.props.handleDrop&&c(t.props.handleDrop(h,n,g))||(t._internalDrag?t.update(function(t,e){var n=i.moveText(t.getCurrentContent(),t.getSelection(),e);return o.push(t,n,"insert-fragment")}(f,h)):t.update(p(f,h,n.getText())))}}}};function p(t,e,n){var r=i.insertText(t.getCurrentContent(),e,n,t.getCurrentInlineStyle());return o.push(t,r,"insert-fragment")}t.exports=f},function(t,e,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)};t.exports=r},function(t,e,n){"use strict";var r=n(7);var i=n(75),o=n(14),a=n(21),s=n(1),u=n(126),c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype._setSelection=function(){var t=this.props.selection;if(null!=t&&t.getHasFocus()){var e=this.props,n=e.block,r=e.start,i=e.text,o=n.getKey(),c=r+i.length;if(t.hasEdgeWithin(o,r,c)){var l=a.findDOMNode(this);l||s(!1,"Missing node");var f=l.firstChild;f||s(!1,"Missing child");var p=void 0;f.nodeType===Node.TEXT_NODE?p=f:"BR"===f.tagName?p=l:(p=f.firstChild)||s(!1,"Missing targetNode"),u(t,p,o,r,c)}}},e.prototype.shouldComponentUpdate=function(t){var e=a.findDOMNode(this.leaf);return e||s(!1,"Missing leafNode"),e.textContent!==t.text||t.styleSet!==this.props.styleSet||t.forceSelection},e.prototype.componentDidUpdate=function(){this._setSelection()},e.prototype.componentDidMount=function(){this._setSelection()},e.prototype.render=function(){var t=this,e=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,s=a.customStyleMap,u=a.customStyleFn,c=a.offsetKey,l=a.styleSet,f=l.reduce(function(t,e){var n={},i=s[e];return void 0!==i&&t.textDecoration!==i.textDecoration&&(n.textDecoration=[t.textDecoration,i.textDecoration].join(" ").trim()),r(t,i,n)},{});if(u){var p=u(l,e);f=r(f,p)}return o.createElement("span",{"data-offset-key":c,ref:function(e){return t.leaf=e},style:f},o.createElement(i,null,n))},e}(o.Component);t.exports=c},function(t,e,n){"use strict";var r=n(14),i=n(16),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.text!==t.text||this.props.editorState.getSelection().getHasFocus()!==t.editorState.getSelection().getHasFocus()},e.prototype.render=function(){var t=this.props.editorState.getSelection().getHasFocus(),e=i({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":t});return r.createElement("div",{className:e},r.createElement("div",{className:i("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},e}(r.Component);t.exports=o},function(t,e,n){"use strict";var r=n(14),i=n(21),o=n(9),a=n(1),s=o.isBrowser("IE <= 11");var u=s?r.createElement("span",{key:"A","data-text":"true"},"\n"):r.createElement("br",{key:"A","data-text":"true"}),c=s?r.createElement("span",{key:"B","data-text":"true"},"\n"):r.createElement("br",{key:"B","data-text":"true"}),l=function(t){function e(n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n));return r._forceFlag=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){var e=i.findDOMNode(this),n=""===t.children;return e instanceof Element||a(!1,"node is not an Element"),n?!function(t){return s?"\n"===t.textContent:"BR"===t.tagName}(e):e.textContent!==t.children},e.prototype.componentDidMount=function(){this._forceFlag=!this._forceFlag},e.prototype.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},e.prototype.render=function(){return""===this.props.children?this._forceFlag?u:c:r.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true"},this.props.children)},e}(r.Component);t.exports=l},function(t,e){"use strict";t.exports={getRemovalRange:function(t,e,n,r,i){var o=n.split(" ");o=o.map(function(t,e){if("forward"===i){if(e>0)return" "+t}else if(e0){var c=e[s-1];return c||i(!1,"Invalid depth for RawDraftContentBlock"),void c.children.push(u)}n.push(u)}),r({},t,{blocks:n})}};t.exports=a},function(t,e,n){"use strict";var r,i=n(2),o=n(132),a=n(8),s=i.OrderedMap,u={getDirectionMap:function(t,e){r?r.reset():r=new o;var n=t.getBlockMap(),u=n.valueSeq().map(function(t){return a(r).getDirection(t.getText())}),c=s(n.keySeq().zip(u));return null!=e&&i.is(e,c)?e:c}};t.exports=u},function(t,e,n){"use strict";var r=n(4),i=n(3),o=n(24),a=n(8),s=null,u={cut:function(t){var e=t.getCurrentContent(),n=t.getSelection(),u=null;if(n.isCollapsed()){var c=n.getAnchorKey(),l=e.getBlockForKey(c).getLength();if(l===n.getAnchorOffset())return t;u=n.set("focusOffset",l)}else u=n;u=a(u),s=o(e,u);var f=r.removeRange(e,u,"forward");return f===e?t:i.push(t,f,"remove-range")},paste:function(t){if(!s)return t;var e=r.replaceWithFragment(t.getCurrentContent(),t.getSelection(),s);return i.push(t,e,"insert-fragment")}};t.exports=u},function(t,e){"use strict";t.exports=function(t,e,n,r){var i=e.getStartKey(),o=e.getEndKey(),a=t.getBlockMap(),s=a.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===o}).concat([[o,a.get(o)]]).map(function(t){var e=t.getDepth()+n;return e=Math.max(0,Math.min(e,r)),t.set("depth",e)});return a=a.merge(s),t.merge({blockMap:a,selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e,n,i){for(var o=t.getCharacterList();e0;){var l=c.pop(),f=l.parentRef,p=f.getChildKeys(),h=p.indexOf(l.key),d=Array.isArray(l.children);if(!d){d||y(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode");break}var g=l.children.map(x),v=new o(r({},w(l,e),{parent:f.getKey(),children:m(g.map(function(t){return t.key})),prevSibling:0===h?null:p.get(h-1),nextSibling:h===p.size-1?null:p.get(h+1)}));n=n.set(v.getKey(),v),c=k(c,g,v)}return n},b())}(a,e):function(t,e){return b(t.map(function(t){var n=new i(w(t,e));return[n.getKey(),n]}))}(n?c.fromRawTreeStateToRawState(t).blocks:a,e)};t.exports=function(t){Array.isArray(t.blocks)||y(!1,"invalid RawDraftContentState");var e=function(t){var e=t.entityMap,n={};return Object.keys(e).forEach(function(t){var r=e[t],i=r.type,o=r.mutability,a=r.data;n[t]=s.__create(i,o,a||{})}),n}(t),n=E(t,e),r=n.isEmpty()?new f:f.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:e,selectionBefore:r,selectionAfter:r})}},function(t,e,n){"use strict";var r=n(5),i=n(2).List;t.exports=function(t,e){var n=t.map(function(t,n){var i=e[n];return r.create({style:t,entity:i})});return i(n)}},function(t,e,n){"use strict";var r=n(13).substr;t.exports=function(t,e){var n=Array(t.length).fill(null);return e&&e.forEach(function(e){for(var i=r(t,0,e.offset).length,o=i+r(t,e.offset,e.length).length,a=i;a0){if(t.props.handlePastedFiles&&p(t.props.handlePastedFiles(g)))return;return void f(g,function(e){if(e=e||y){var n=t._latestEditorState,o=h(e),f=i.create({style:n.getCurrentInlineStyle(),entity:l(n.getCurrentContent(),n.getSelection())}),p=c.getCurrentBlockType(n),d=s.processText(o,f,p),g=r.createFromArray(d),v=a.replaceWithFragment(n.getCurrentContent(),n.getSelection(),g);t.update(u.push(n,v,"insert-fragment"))}})}}var v=[],m=n.getText(),_=n.getHTML(),b=t._latestEditorState;if(!t.props.handlePastedText||!p(t.props.handlePastedText(m,_,b))){if(m&&(v=h(m)),!t.props.stripPastedStyles){var w=t.getClipboard();if(n.isRichText()&&w){if(-1!==_.indexOf(t.getEditorKey())||1===v.length&&1===w.size&&w.first().getText()===m)return void t.update(d(t._latestEditorState,w))}else if(w&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(t,e){return t.length===e.size&&e.valueSeq().every(function(e,n){return e.getText()===t[n]})}(v,w))return void t.update(d(t._latestEditorState,w));if(_){var S=s.processHTML(_,t.props.blockRenderMap);if(S){var x=S.contentBlocks,k=S.entityMap;if(x){var E=r.createFromArray(x);return void t.update(d(t._latestEditorState,E,k))}}}t.setClipboard(null)}if(v.length){var C=i.create({style:b.getCurrentInlineStyle(),entity:l(b.getCurrentContent(),b.getSelection())}),O=c.getCurrentBlockType(b),T=s.processText(v,C,O),D=r.createFromArray(T);t.update(d(t._latestEditorState,D))}}}},function(t,e,n){"use strict";var r=n(3),i=n(21),o=n(107),a=n(1);t.exports=function(t){if(!t._blockSelectEvents&&t._latestEditorState===t.props.editorState){var e=t.props.editorState,n=i.findDOMNode(t.editorContainer);n||a(!1,"Missing editorNode"),n.firstChild instanceof HTMLElement||a(!1,"editorNode.firstChild is not an HTMLElement");var s=o(e,n.firstChild),u=s.selectionState;u!==e.getSelection()&&(e=s.needsRecovery?r.forceSelection(e,u):r.acceptSelection(e,u),t.update(e))}}},function(t,e,n){"use strict";var r=n(43),i=n(13).strlen;t.exports=function(t,e){var n=[];return t.findEntityRanges(function(t){return!!t.getEntity()},function(o,a){var s=t.getText(),u=t.getEntityAt(o);n.push({offset:i(s.slice(0,o)),length:i(s.slice(o,a)),key:Number(e[r.stringify(u)])})}),n}},function(t,e,n){"use strict";var r=n(13),i=n(18),o=function(t,e){return t===e},a=function(t){return!!t},s=[];t.exports=function(t){var e=t.getCharacterList().map(function(t){return t.getStyle()}).toList(),n=e.flatten().toSet().map(function(n){return function(t,e,n){var s=[],u=e.map(function(t){return t.has(n)}).toList();return i(u,o,a,function(e,i){var o=t.getText();s.push({offset:r.strlen(o.slice(0,e)),length:r.strlen(o.slice(e,i)),style:n})}),s}(t,e,n)});return Array.prototype.concat.apply(s,n.toJS())}},function(t,e,n){"use strict";var r=n(13),i=n(50),o=n(1);function a(t,e){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a=0;h--)if(!(null!=p&&h>0&&r.isSurrogatePair(p,h-1))){if(t.setStart(l,h),!a(i(t),n))break;u=l,c=h}if(-1===h||0===l.childNodes.length)break;f=s(l=l.childNodes[h])}return t.setStart(u,c),t}},function(t,e,n){"use strict";var r=n(76),i=n(109),o=n(1);function a(t,e,n,a,s,u,c){var l=n.getStartOffset(),f=n.getEndOffset(),p=t.__get(s).getMutability(),h=c?l:f;if("MUTABLE"===p)return n;var d=i(e,s).filter(function(t){return h<=t.end&&h>=t.start});1!=d.length&&o(!1,"There should only be one entity range within this removal range.");var g=d[0];if("IMMUTABLE"===p)return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});u||(c?f=g.end:l=g.start);var y=r.getRemovalRange(l,f,e.getText().slice(g.start,g.end),g.start,a);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}t.exports=function(t,e,n,r,i){var o=r.getStartOffset(),s=r.getEndOffset(),u=e.getEntityAt(o),c=n.getEntityAt(s-1);if(!u&&!c)return r;var l=r;if(u&&u===c)l=a(t,e,l,i,u,!0,!0);else if(u&&c){var f=a(t,e,l,i,u,!1,!0),p=a(t,n,l,i,c,!1,!1);l=l.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(u){var h=a(t,e,l,i,u,!1,!0);l=l.merge({anchorOffset:h.getStartOffset(),isBackward:!1})}else if(c){var d=a(t,n,l,i,c,!1,!1);l=l.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return l}},function(t,e,n){(function(e){"use strict";var r=n(47);t.exports=function(t,n){var i=e.getSelection();return 0===i.rangeCount?{selectionState:t.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(t,n,i.anchorNode,i.anchorOffset,i.focusNode,i.focusOffset)}}).call(e,function(){return this}())},function(t,e,n){"use strict";var r=n(50);t.exports=function(t){var e=r(t),n=0,i=0,o=0,a=0;if(e.length){if(e.length>1&&0===e[0].width){var s=e[1];n=s.top,i=s.right,o=s.bottom,a=s.left}else{var u=e[0];n=u.top,i=u.right,o=u.bottom,a=u.left}for(var c=1;ce;)t=t.pop(),n--;else{var r=t.slice(0,e),i=t.slice(n);t=r.concat(i).toList()}return t};t.exports=function(t,e){if(e.isCollapsed())return t;var n=t.getBlockMap(),i=e.getStartKey(),s=e.getStartOffset(),c=e.getEndKey(),l=e.getEndOffset(),h=n.get(i),d=n.get(c),g=h instanceof r,y=[];if(g){var v=d.getChildKeys(),m=u(c,n);d.getNextSiblingKey()&&(y=y.concat(m)),v.isEmpty()||(y=y.concat(m.concat([c]))),y=y.concat(u(o(d,n),n))}var _=void 0;_=h===d?p(h.getCharacterList(),s,l):h.getCharacterList().slice(0,s).concat(d.getCharacterList().slice(l));var b=h.merge({text:h.getText().slice(0,s)+d.getText().slice(l),characterList:_}),w=n.toSeq().skipUntil(function(t,e){return e===i}).takeUntil(function(t,e){return e===c}).filter(function(t,e){return-1===y.indexOf(e)}).concat(a([[c,null]])).map(function(t,e){return e===i?b:null}),S=n.merge(w).filter(function(t){return!!t});return g&&(S=f(S,h,d,n)),t.merge({blockMap:S,selectionBefore:e,selectionAfter:e.merge({anchorKey:i,anchorOffset:s,focusKey:i,focusOffset:s,isBackward:!1})})}},function(t,e,n){(function(e){"use strict";var r=n(78),i=n(35),o=n(63),a=n(1);function s(t,e){if(!t)return"[empty]";var n=function t(e,n){var r=void 0!==n?n(e):[];if(e.nodeType===Node.TEXT_NODE){var i=e.textContent.length;return document.createTextNode("[text "+i+(r.length?" | "+r.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&r.length&&o.setAttribute("data-labels",r.join(", "));var a=e.childNodes;for(var s=0;sc(e)&&r.logSelectionStateFailure({anonymizedDom:u(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(a.toJS())});var l=e===t.focusNode;try{t.extend(e,n)}catch(i){throw r.logSelectionStateFailure({anonymizedDom:u(e,function(e){var n=[];return e===s&&n.push("active element"),e===t.anchorNode&&n.push("selection anchor node"),e===t.focusNode&&n.push("selection focus node"),n}),extraParams:JSON.stringify({activeElementName:s?s.nodeName:null,nodeIsFocus:e===t.focusNode,nodeWasFocus:l,selectionRangeCount:t.rangeCount,selectionAnchorNodeName:t.anchorNode?t.anchorNode.nodeName:null,selectionAnchorOffset:t.anchorOffset,selectionFocusNodeName:t.focusNode?t.focusNode.nodeName:null,selectionFocusOffset:t.focusOffset,message:i?""+i:null,offset:n},null,2),selectionState:JSON.stringify(a.toJS(),null,2)}),i}}else{var f=t.getRangeAt(0);f.setEnd(e,n),t.addRange(f.cloneRange())}}function f(t,e,n,i){var o=document.createRange();n>c(e)&&r.logSelectionStateFailure({anonymizedDom:u(e),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())}),o.setStart(e,n),t.addRange(o)}t.exports=function(t,n,r,o,a){if(i(document.documentElement,n)){var s=e.getSelection(),u=t.getAnchorKey(),c=t.getAnchorOffset(),p=t.getFocusKey(),h=t.getFocusOffset(),d=t.getIsBackward();if(!s.extend&&d){var g=u,y=c;u=p,c=h,p=g,h=y,d=!1}var v=u===r&&o<=c&&a>=c,m=p===r&&o<=h&&a>=h;if(v&&m)return s.removeAllRanges(),f(s,n,c-o,t),void l(s,n,h-o,t);if(d){if(m&&(s.removeAllRanges(),f(s,n,h-o,t)),v){var _=s.focusNode,b=s.focusOffset;s.removeAllRanges(),f(s,n,c-o,t),l(s,_,b,t)}}else v&&(s.removeAllRanges(),f(s,n,c-o,t)),m&&l(s,n,h-o,t)}}}).call(e,function(){return this}())},function(t,e,n){"use strict";var r=n(6),i=n(2),o=n(10),a=n(1),s=i.List,u=i.Map,c=function(t,e,n){if(t){var r=e.get(t);r&&e.set(t,n(r))}};t.exports=function(t,e){e.isCollapsed()||a(!1,"Selection range must be collapsed.");var n=e.getAnchorKey(),i=e.getAnchorOffset(),l=t.getBlockMap(),f=l.get(n),p=f.getText(),h=f.getCharacterList(),d=o(),g=f instanceof r,y=f.merge({text:p.slice(0,i),characterList:h.slice(0,i)}),v=y.merge({key:d,text:p.slice(i),characterList:h.slice(i),data:u()}),m=l.toSeq().takeUntil(function(t){return t===f}),_=l.toSeq().skipUntil(function(t){return t===f}).rest(),b=m.concat([[n,y],[d,v]],_).toOrderedMap();return g&&(f.getChildKeys().isEmpty()||a(!1,"ContentBlockNode must not have children"),b=function(t,e,n){return t.withMutations(function(t){var r=e.getKey(),i=n.getKey();c(e.getParentKey(),t,function(t){var e=t.getChildKeys(),n=e.indexOf(r)+1,o=e.toArray();return o.splice(n,0,i),t.merge({children:s(o)})}),c(e.getNextSiblingKey(),t,function(t){return t.merge({prevSibling:i})}),c(r,t,function(t){return t.merge({nextSibling:i})}),c(i,t,function(t){return t.merge({prevSibling:r})})})}(b,y,v)),t.merge({blockMap:b,selectionBefore:e,selectionAfter:e.merge({anchorKey:d,anchorOffset:0,focusKey:d,focusOffset:0,isBackward:!1})})}},function(t,e){"use strict";var n=/\r\n?|\n/g;t.exports=function(t){return t.split(n)}},function(t,e){"use strict";var n={isImage:function(t){return"image"===r(t)[0]},isJpeg:function(t){var e=r(t);return n.isImage(t)&&("jpeg"===e[1]||"pjpeg"===e[1])}};function r(t){return t.split("/")}t.exports=n},function(t,e){"use strict";t.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(t,e){"use strict";var n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._uri=e}return t.prototype.toString=function(){return this._uri},t}();t.exports=n},function(t,e,n){"use strict";var r=n(62),i=n(34),o=n(1),a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e?i.isStrong(e)||o(!1,"Default direction must be a strong direction (LTR or RTL)"):e=i.getGlobalDir(),this._defaultDir=e,this.reset()}return t.prototype.reset=function(){this._lastDir=this._defaultDir},t.prototype.getDirection=function(t){return this._lastDir=r.getDirection(t,this._lastDir),this._lastDir},t}();t.exports=a},function(t,e,n){"use strict";var r="Unknown",i={"Mac OS":"Mac OS X"};var o=(new(n(152))).getResult(),a=function(t){if(!t)return{major:"",minor:""};var e=t.split(".");return{major:e[0],minor:e[1]}}(o.browser.version),s={browserArchitecture:o.cpu.architecture||r,browserFullVersion:o.browser.version||r,browserMinorVersion:a.minor||r,browserName:o.browser.name||r,browserVersion:o.browser.major||r,deviceName:o.device.model||r,engineName:o.engine.name||r,engineVersion:o.engine.version||r,platformArchitecture:o.cpu.architecture||r,platformName:function(t){return i[t]||t}(o.os.name)||r,platformVersion:o.os.version||r,platformFullVersion:o.os.version||r};t.exports=s},function(t,e,n){"use strict";var r=n(1),i=/\./,o=/\|\|/,a=/\s+\-\s+/,s=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,u=/^(\d*)(.*)/;function c(t,e){var n=t.split(o);return n.length>1?n.some(function(t){return b.contains(t,e)}):function(t,e){var n=t.split(a);if(n.length>0&&n.length<=2||r(!1,'the "-" operator expects exactly 2 operands'),1===n.length)return l(n[0],e);var i=n[0],o=n[1];return g(i)&&g(o)||r(!1,'operands to the "-" operator must be simple (no modifiers)'),l(">="+i,e)&&l("<="+o,e)}(t=n[0].trim(),e)}function l(t,e){if(""===(t=t.trim()))return!0;var n=e.split(i),r=h(t),o=r.modifier,a=r.rangeComponents;switch(o){case"<":return f(n,a);case"<=":return function(t,e){var n=_(t,e);return-1===n||0===n}(n,a);case">=":return p(n,a);case">":return function(t,e){return 1===_(t,e)}(n,a);case"~":case"~>":return function(t,e){var n=e.slice(),r=e.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);d(o)&&(r[i]=o+1+"");return p(t,n)&&f(t,r)}(n,a);default:return function(t,e){return 0===_(t,e)}(n,a)}}function f(t,e){return-1===_(t,e)}function p(t,e){var n=_(t,e);return 1===n||0===n}function h(t){var e=t.split(i),n=e[0].match(s);return n||r(!1,"expected regex to match but it did not"),{modifier:n[1],rangeComponents:[n[2]].concat(e.slice(1))}}function d(t){return!isNaN(t)&&isFinite(t)}function g(t){return!h(t).modifier}function y(t,e){for(var n=t.length;ne?1:t-1;t.exports=function(t){return(t=t||document).scrollingElement?t.scrollingElement:n||"CSS1Compat"!==t.compatMode?t.body:t.documentElement}},function(t,e,n){"use strict";var r=n(139);t.exports=function(t){var e=r(t);return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}},function(t,e,n){"use strict";var r=n(35);t.exports=function(t){var e=t.ownerDocument.documentElement;if(!("getBoundingClientRect"in t&&r(e,t)))return{left:0,right:0,top:0,bottom:0};var n=t.getBoundingClientRect();return{left:Math.round(n.left)-e.clientLeft,right:Math.round(n.right)-e.clientLeft,top:Math.round(n.top)-e.clientTop,bottom:Math.round(n.bottom)-e.clientTop}}},function(t,e,n){"use strict";var r=n(135),i=n(143);function o(t){return null==t?t:String(t)}t.exports=function(t,e){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(t,null)))return o(n.getPropertyValue(i(e)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(t,null))return o(n.getPropertyValue(i(e)));if("display"===e)return"none"}return t.currentStyle?o("float"===e?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[r(e)]):o(t.style&&t.style[r(e)])}},function(t,e){"use strict";t.exports=function(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}},function(t,e){"use strict";function n(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientWidth),!t&&document.body&&(t=document.body.clientWidth),t||0}function r(){var t=void 0;return document.documentElement&&(t=document.documentElement.clientHeight),!t&&document.body&&(t=document.body.clientHeight),t||0}function i(){return{width:window.innerWidth||n(),height:window.innerHeight||r()}}i.withoutScrollbars=function(){return{width:n(),height:r()}},t.exports=i},function(t,e){"use strict";var n=/([A-Z])/g;t.exports=function(t){return t.replace(n,"-$1").toLowerCase()}},function(t,e){"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},function(t,e,n){"use strict";var r=n(144);t.exports=function(t){return r(t)&&3==t.nodeType}},function(t,e){"use strict";t.exports=function(t){t||(t="");var e=void 0,n=arguments.length;if(n>1)for(var r=1;r1)for(var n=1;n0?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,s):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=s?s.replace(o[1],o[2]):void 0:this[o[0]]=s?o[1].call(this,s,o[2]):void 0:4==o.length&&(this[o[0]]=s?o[3].call(this,s.replace(o[1],o[2])):void 0):this[o]=s||void 0;u+=2}},str:function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var r=0;r>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?E(t)+e:e}function O(){return!0}function T(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function D(t,e){return A(t,e,0)}function M(t,e){return A(t,e,e)}function A(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var K=0,I=1,B=2,L="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",N=L||R;function F(t){this.next=t}function z(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function P(){return{value:void 0,done:!0}}function j(t){return!!H(t)}function U(t){return t&&"function"==typeof t.next}function q(t){var e=H(t);return e&&e.call(t)}function H(t){var e=t&&(L&&t[L]||t[R]);if("function"==typeof e)return e}function W(t){return t&&"number"==typeof t.length}function V(t){return null===t||void 0===t?ot():a(t)?t.toSeq():function(t){var e=ut(t)||"object"==typeof t&&new et(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function G(t){return null===t||void 0===t?ot().toKeyedSeq():a(t)?s(t)?t.toSeq():t.fromEntrySeq():at(t)}function J(t){return null===t||void 0===t?ot():a(t)?s(t)?t.entrySeq():t.toIndexedSeq():st(t)}function X(t){return(null===t||void 0===t?ot():a(t)?s(t)?t.entrySeq():t:st(t)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=K,F.VALUES=I,F.ENTRIES=B,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[N]=function(){return this},e(V,n),V.of=function(){return V(arguments)},V.prototype.toSeq=function(){return this},V.prototype.toString=function(){return this.__toString("Seq {","}")},V.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},V.prototype.__iterate=function(t,e){return ct(this,t,e,!0)},V.prototype.__iterator=function(t,e){return lt(this,t,e,!0)},e(G,V),G.prototype.toKeyedSeq=function(){return this},e(J,V),J.of=function(){return J(arguments)},J.prototype.toIndexedSeq=function(){return this},J.prototype.toString=function(){return this.__toString("Seq [","]")},J.prototype.__iterate=function(t,e){return ct(this,t,e,!1)},J.prototype.__iterator=function(t,e){return lt(this,t,e,!1)},e(X,V),X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},V.isSeq=it,V.Keyed=G,V.Set=X,V.Indexed=J;var Y,$,Z,Q="@@__IMMUTABLE_SEQ__@@";function tt(t){this._array=t,this.size=t.length}function et(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function nt(t){this._iterable=t,this.size=t.length||t.size}function rt(t){this._iterator=t,this._iteratorCache=[]}function it(t){return!(!t||!t[Q])}function ot(){return Y||(Y=new tt([]))}function at(t){var e=Array.isArray(t)?new tt(t).fromEntrySeq():U(t)?new rt(t).fromEntrySeq():j(t)?new nt(t).fromEntrySeq():"object"==typeof t?new et(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function st(t){var e=ut(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function ut(t){return W(t)?new tt(t):U(t)?new rt(t):j(t)?new nt(t):void 0}function ct(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function lt(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new F(function(){var t=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:z(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function ft(t,e){return e?function t(e,n,r,i){return Array.isArray(n)?e.call(i,r,J(n).map(function(r,i){return t(e,r,i,n)})):ht(n)?e.call(i,r,G(n).map(function(r,i){return t(e,r,i,n)})):n}(e,t,"",{"":t}):pt(t)}function pt(t){return Array.isArray(t)?J(t).map(pt).toList():ht(t)?G(t).map(pt).toMap():t}function ht(t){return t&&(t.constructor===Object||void 0===t.constructor)}function dt(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function gt(t,e){if(t===e)return!0;if(!a(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||s(t)!==s(e)||u(t)!==u(e)||l(t)!==l(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!c(t);if(l(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&dt(i[1],t)&&(n||dt(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var f=!0,p=e.__iterate(function(e,r){if(n?!t.has(e):i?!dt(e,t.get(r,m)):!dt(t.get(r,m),e))return f=!1,!1});return f&&t.size===p}function yt(t,e){if(!(this instanceof yt))return new yt(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if($)return $;$=this}}function vt(t,e){if(!t)throw new Error(e)}function mt(t,e,n){if(!(this instanceof mt))return new mt(t,e,n);if(vt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),er?{value:void 0,done:!0}:z(t,i,n[e?r-i++:i++])})},e(et,G),et.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},et.prototype.has=function(t){return this._object.hasOwnProperty(t)},et.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(!1===t(n[a],a,this))return o+1}return o},et.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new F(function(){var a=r[e?i-o:o];return o++>i?{value:void 0,done:!0}:z(t,a,n[a])})},et.prototype[d]=!0,e(nt,J),nt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=this._iterable,r=q(n),i=0;if(U(r))for(var o;!(o=r.next()).done&&!1!==t(o.value,i++,this););return i},nt.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=q(n);if(!U(r))return new F(P);var i=0;return new F(function(){var e=r.next();return e.done?e:z(t,i++,e.value)})},e(rt,J),rt.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return z(t,i,r[i++])})},e(yt,J),yt.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},yt.prototype.get=function(t,e){return this.has(t)?this._value:e},yt.prototype.includes=function(t){return dt(this._value,t)},yt.prototype.slice=function(t,e){var n=this.size;return T(t,e,n)?this:new yt(this._value,M(e,n)-D(t,n))},yt.prototype.reverse=function(){return this},yt.prototype.indexOf=function(t){return dt(this._value,t)?0:-1},yt.prototype.lastIndexOf=function(t){return dt(this._value,t)?this.size:-1},yt.prototype.__iterate=function(t,e){for(var n=0;n1?" by "+this._step:"")+" ]"},mt.prototype.get=function(t,e){return this.has(t)?this._start+C(this,t)*this._step:e},mt.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e=0&&nn?{value:void 0,done:!0}:z(t,o++,a)})},mt.prototype.equals=function(t){return t instanceof mt?this._start===t._start&&this._end===t._end&&this._step===t._step:gt(this,t)},e(_t,n),e(bt,_t),e(wt,_t),e(St,_t),_t.Keyed=bt,_t.Indexed=wt,_t.Set=St;var xt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0};function kt(t){return t>>>1&1073741824|3221225471&t}function Et(t){if(!1===t||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return kt(n)}if("string"===e)return t.length>It?function(t){var e=Rt[t];return void 0===e&&(e=Ct(t),Lt===Bt&&(Lt=0,Rt={}),Lt++,Rt[t]=e),e}(t):Ct(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(Mt&&void 0!==(e=Ot.get(t)))return e;if(void 0!==(e=t[Kt]))return e;if(!Dt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Kt]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++At,1073741824&At&&(At=0),Mt)Ot.set(t,e);else{if(void 0!==Tt&&!1===Tt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(Dt)Object.defineProperty(t,Kt,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Kt]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Kt]=e}}return e}(t);if("function"==typeof t.toString)return Ct(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function Ct(t){for(var e=0,n=0;n>>n)&v,s=(0===n?r:r>>>n)&v,u=a===s?[ne(t,e,n+g,r,i)]:(o=new Gt(e,r,i),a>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function ue(t,e,n,r){var i=r?t:k(t);return i[e]=n,i}Ut[jt]=!0,Ut.delete=Ut.remove,Ut.removeIn=Ut.deleteIn,qt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o=ce)return function(t,e,n,r){t||(t=new x);for(var i=new Gt(t,Et(n),[n,r]),o=0;o>>t)&v),o=this.bitmap;return 0==(o&i)?r:this.nodes[se(o&i-1)].get(t+g,e,n,r)},Ht.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&v,u=1<=le)return function(t,e,n,r,i){for(var o=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new Wt(t,o+1,a)}(t,p,c,s,d);if(l&&!d&&2===p.length&&ee(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&ee(d))return d;var _=t&&t===this.ownerID,b=l?d?c:c^u:c|u,w=l?d?ue(p,f,d,_):function(t,e,n){var r=t.length-1;if(n&&e===r)return t.pop(),t;for(var i=new Array(r),o=0,a=0;a>>t)&v,o=this.nodes[i];return o?o.get(t+g,e,n,r):r},Wt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=Et(r));var s=(0===e?n:n>>>e)&v,u=i===m,c=this.nodes,l=c[s];if(u&&!l)return this;var f=te(l,t,e+g,n,r,i,o,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p0&&r=0&&t=t.size||e<0)return t.withMutations(function(t){e<0?Ce(t,e).set(0,n):Ce(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=w(b);return e>=Te(t._capacity)?r=xe(r,t.__ownerID,0,e,n,o):i=xe(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):we(t._origin,t._capacity,t._level,i,r):t}(this,t,e)},pe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},pe.prototype.insert=function(t,e){return this.splice(t,0,e)},pe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=g,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Se()},pe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(n){Ce(n,0,e+t.length);for(var r=0;r>>e&v;if(r>=this.array.length)return new ye([],t);var i,o=0===r;if(e>0){var a=this.array[r];if((i=a&&a.removeBefore(t,e-g,n))===a&&o)return this}if(o&&!i)return this;var s=ke(this,t);if(!o)for(var u=0;u>>e&v;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((r=o&&o.removeAfter(t,e-g,n))===o&&i===this.array.length-1)return this}var a=ke(this,t);return a.array.splice(i+1),r&&(a.array[i]=r),a};var ve,me,_e={};function be(t,e){var n=t._origin,r=t._capacity,i=Te(r),o=t._tail;return a(t._root,t._level,0);function a(t,s,u){return 0===s?function(t,a){var s=a===i?o&&o.array:t&&t.array,u=a>n?0:n-a,c=r-a;return c>y&&(c=y),function(){if(u===c)return _e;var t=e?--c:u++;return s&&s[t]}}(t,u):function(t,i,o){var s,u=t&&t.array,c=o>n?0:n-o>>i,l=1+(r-o>>i);return l>y&&(l=y),function(){for(;;){if(s){var t=s();if(t!==_e)return t;s=null}if(c===l)return _e;var n=e?--l:c++;s=a(u&&u[n],i-g,o+(n<>>n&v,u=t&&s0){var c=t&&t.array[s],l=xe(c,e,n-g,r,i,o);return l===c?t:((a=ke(t,e)).array[s]=l,a)}return u&&t.array[s]===i?t:(S(o),a=ke(t,e),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function ke(t,e){return e&&t&&e===t.ownerID?t:new ye(t?t.array.slice():[],e)}function Ee(t,e){if(e>=Te(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&v],r-=g;return n}}function Ce(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new x,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,c=t._root,l=0;a+l<0;)c=new ye(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=g);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Te(o),p=Te(s);p>=1<f?new ye([],r):h;if(h&&p>f&&ag;m-=g){var _=f>>>m&v;y=y.array[_]=ke(y.array[_],r)}y.array[f>>>g&v]=h}if(s=p)a-=p,s-=p,u=g,c=null,d=d&&d.removeBefore(r,0,a);else if(a>i||p>>u&v;if(b!==p>>>u&v)break;b&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&po&&(o=c.size),a(u)||(c=c.map(function(t){return ft(t)})),r.push(c)}return o>t.size&&(t=t.setSize(o)),ae(t,e,r)}function Te(t){return t>>g<=y&&a.size>=2*o.size?(i=a.filter(function(t,e){return void 0!==t&&s!==e}),r=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):Ae(r,i)}function Be(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Le(t){this._iter=t,this.size=t.size}function Re(t){this._iter=t,this.size=t.size}function Ne(t){this._iter=t,this.size=t.size}function Fe(t){var e=Qe(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=tn,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===B){var r=t.__iterator(e,n);return new F(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===I?K:I,n)},e}function ze(t,e,n){var r=Qe(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,m);return o===m?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,a){return!1!==r(e.call(n,t,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(B,i);return new F(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return z(r,s,e.call(n,a[1],s,t),i)})},r}function Pe(t,e){var n=Qe(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Fe(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=tn,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function je(t,e,n,r){var i=Qe(t);return r&&(i.has=function(r){var i=t.get(r,m);return i!==m&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,m);return o!==m&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(B,o),s=0;return new F(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(n,l,c,t))return z(i,r?c:s++,l,o)}})},i}function Ue(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),T(e,n,i))return t;var o=D(e,i),a=M(n,i);if(o!=o||a!=a)return Ue(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u==u&&(s=u<0?0:u);var c=Qe(t);return c.size=0===s?s:t.size&&s||void 0,!r&&it(t)&&s>=0&&(c.get=function(e,n){return(e=C(this,e))>=0&&es)return{value:void 0,done:!0};var t=i.next();return r||e===I?t:z(e,u-1,e===K?void 0:t.value[1],t)})},c}function qe(t,e,n,r){var i=Qe(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return u++,i(t,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(B,o),u=!0,c=0;return new F(function(){var t,o,l;do{if((t=s.next()).done)return r||i===I?t:z(i,c++,i===K?void 0:t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(n,l,o,a))}while(u);return i===B?t:z(i,o,l,t)})},i}function He(t,e,n){var r=Qe(t);return r.__iterateUncached=function(r,i){var o=0,s=!1;return function t(u,c){var l=this;u.__iterate(function(i,u){return(!e||c0}function Je(t,e,r){var i=Qe(t);return i.size=new tt(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(I,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=n(t),q(i?t.reverse():t)}),a=0,s=!1;return new F(function(){var n;return s||(n=o.map(function(t){return t.next()}),s=n.some(function(t){return t.done})),s?{value:void 0,done:!0}:z(t,a++,e.apply(null,n.map(function(t){return t.value})))})},i}function Xe(t,e){return it(t)?e:t.constructor(e)}function Ye(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function $e(t){return Nt(t.size),E(t)}function Ze(t){return s(t)?r:u(t)?i:o}function Qe(t){return Object.create((s(t)?G:u(t)?J:X).prototype)}function tn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function en(t,e){return t>e?1:t=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):On(t,e)},Sn.prototype.pushAll=function(t){if(0===(t=i(t)).size)return this;Nt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):On(e,n)},Sn.prototype.pop=function(){return this.slice(1)},Sn.prototype.unshift=function(){return this.push.apply(this,arguments)},Sn.prototype.unshiftAll=function(t){return this.pushAll(t)},Sn.prototype.shift=function(){return this.pop.apply(this,arguments)},Sn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Tn()},Sn.prototype.slice=function(t,e){if(T(t,e,this.size))return this;var n=D(t,this.size),r=M(e,this.size);if(r!==this.size)return wt.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):On(i,o)},Sn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?On(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Sn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},Sn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new F(function(){if(r){var e=r.value;return r=r.next,z(t,n++,e)}return{value:void 0,done:!0}})},Sn.isStack=xn;var kn,En="@@__IMMUTABLE_STACK__@@",Cn=Sn.prototype;function On(t,e,n,r){var i=Object.create(Cn);return i.size=t,i._head=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Tn(){return kn||(kn=On(0))}function Dn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}Cn[En]=!0,Cn.withMutations=Ut.withMutations,Cn.asMutable=Ut.asMutable,Cn.asImmutable=Ut.asImmutable,Cn.wasAltered=Ut.wasAltered,n.Iterator=F,Dn(n,{toArray:function(){Nt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new Le(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new Be(this,!0)},toMap:function(){return Ft(this.toKeyedSeq())},toObject:function(){Nt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return De(this.toKeyedSeq())},toOrderedSet:function(){return yn(s(this)?this.valueSeq():this)},toSet:function(){return un(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Re(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Sn(s(this)?this.valueSeq():this)},toList:function(){return pe(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return Xe(this,function(t,e){var n=s(t),i=[t].concat(e).map(function(t){return a(t)?n&&(t=r(t)):t=n?at(t):st(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var o=i[0];if(o===t||n&&s(o)||u(t)&&u(o))return o}var c=new tt(i);return n?c=c.toKeyedSeq():u(t)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),c}(this,e))},includes:function(t){return this.some(function(e){return dt(e,t)})},entries:function(){return this.__iterator(B)},every:function(t,e){Nt(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return Xe(this,je(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},findEntry:function(t,e){var n;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return Nt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Nt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(K)},map:function(t,e){return Xe(this,ze(this,t,e))},reduce:function(t,e,n){var r,i;return Nt(this.size),arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Xe(this,Pe(this,!0))},slice:function(t,e){return Xe(this,Ue(this,t,e,!0))},some:function(t,e){return!this.every(Bn(t),e)},sort:function(t){return Xe(this,We(this,t))},values:function(){return this.__iterator(I)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return E(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var r=Ft().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}(this,t,e)},equals:function(t){return gt(this,t)},entrySeq:function(){var t=this;if(t._cache)return new tt(t._cache);var e=t.toSeq().map(In).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Bn(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(O)},flatMap:function(t,e){return Xe(this,function(t,e,n){var r=Ze(t);return t.toSeq().map(function(i,o){return r(e.call(n,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return Xe(this,He(this,t,!0))},fromEntrySeq:function(){return new Ne(this)},get:function(t,e){return this.find(function(e,n){return dt(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=nn(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,m):m)===m)return e}return r},groupBy:function(t,e){return function(t,e,n){var r=s(t),i=(l(t)?De():Ft()).asMutable();t.__iterate(function(o,a){i.update(e.call(n,o,a,t),function(t){return(t=t||[]).push(r?[a,o]:o),t})});var o=Ze(t);return i.map(function(e){return Xe(t,o(e))})}(this,t,e)},has:function(t){return this.get(t,m)!==m},hasIn:function(t){return this.getIn(t,m)!==m},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Kn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Ve(this,t)},maxBy:function(t,e){return Ve(this,e,t)},min:function(t){return Ve(this,t?Ln(t):Fn)},minBy:function(t,e){return Ve(this,e?Ln(e):Fn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Xe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Xe(this,qe(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Bn(t),e)},sortBy:function(t,e){return Xe(this,We(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Xe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Xe(this,function(t,e,n){var r=Qe(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(B,i),s=!0;return new F(function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(n,c,u,o)?r===B?t:z(r,u,c,t):(s=!1,{value:void 0,done:!0})})},r}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Bn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=l(t),n=s(t),r=e?1:0;return function(t,e){return e=xt(e,3432918353),e=xt(e<<15|e>>>-15,461845907),e=xt(e<<13|e>>>-13,5),e=xt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=kt((e=xt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){r=31*r+zn(Et(t),Et(e))|0}:function(t,e){r=r+zn(Et(t),Et(e))|0}:e?function(t){r=31*r+Et(t)|0}:function(t){r=r+Et(t)|0}),r)}(this))}});var Mn=n.prototype;Mn[f]=!0,Mn[N]=Mn.values,Mn.__toJS=Mn.toArray,Mn.__toStringMapper=Rn,Mn.inspect=Mn.toSource=function(){return this.toString()},Mn.chain=Mn.flatMap,Mn.contains=Mn.includes,function(){try{Object.defineProperty(Mn,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Dn(r,{flip:function(){return Xe(this,Fe(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return dt(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return dt(e,t)})},mapEntries:function(t,e){var n=this,r=0;return Xe(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Xe(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var An=r.prototype;function Kn(t,e){return e}function In(t,e){return[e,t]}function Bn(t){return function(){return!t.apply(this,arguments)}}function Ln(t){return function(){return-t.apply(this,arguments)}}function Rn(t){return"string"==typeof t?JSON.stringify(t):t}function Nn(){return k(arguments)}function Fn(t,e){return te?-1:0}function zn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return An[p]=!0,An[N]=Mn.entries,An.__toJS=Mn.toObject,An.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+Rn(t)},Dn(i,{toKeyedSeq:function(){return new Be(this,!1)},filter:function(t,e){return Xe(this,je(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return Xe(this,Pe(this,!1))},slice:function(t,e){return Xe(this,Ue(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=D(t,t<0?this.count():this.size);var r=this.slice(0,t);return Xe(this,1===n?r:r.concat(k(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return Xe(this,He(this,t,!1))},get:function(t,e){return(t=C(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=C(this,t))>=0&&(void 0!==this.size?this.size===1/0||t