akkoma/priv/static/packs/share.js
Morgan Bazalgette 676f2ca479
Bring mastofe up to date
Commit 5edce20302

summary:

```
*   5edce203 - (4 minutes ago) Merge branch 'master' of github.com:tootsuite/mastodon - Morgan Bazalgette (HEAD -> master, origin/master, origin/HEAD)
|\
| * 2c51bc0c - (4 hours ago)  Add missing rejection handling for Promises (#7008) - unarist (upstream/master)
| * e7a17167 - (5 hours ago) Implement the ability for an Administrator or Moderator to remove an account avatar (#6998) - Emelia Smith
| * 4fd71acc - (5 hours ago) Fix issues with sending direct messages from user profile (#6999) - Emelia Smith
| * 3f51c6ef - (5 hours ago) Weblate translations (2018-04-02) (#7007) - Yamagishi Kazutoshi
| * b04f73ce - (6 hours ago) Russian language updated (#7005) - Evgeny Petrov
| * 24611d8d - (6 hours ago) i18n: update zh-HK translation (#7004) - luzi82
| * f890d2a7 - (16 hours ago) Support all ActivityPub actor types (#6997) - Eugen Rochko
| * 33513753 - (16 hours ago) Fix unpermitted parameters warning when generating pagination URLs (#6995) - Eugen Rochko
| * 123a343d - (19 hours ago) [WIP] Enable custom emoji on account pages and in the sidebar (#6124) - David Underwood
| * f464f98f - (19 hours ago) Update Ruby to version 2.4.4 (#6964) - Yamagishi Kazutoshi
| * 6a895e1a - (20 hours ago) Fix: Prevent submission using same logic as submit button disabling. (#6993) - Emelia Smith
* | 011eda08 - (7 minutes ago) Properly cache requests using service workers - Morgan Bazalgette
* | 8dd77f17 - (5 hours ago) Fix build - Morgan Bazalgette
* | 99373236 - (19 hours ago) Add build status - Morgan Bazalgette
* | b448a3a5 - (19 hours ago) Update README - Morgan Bazalgette
* | 68fd7ee6 - (20 hours ago) Fix statuses embedded in like/boost notifs being white - Morgan Bazalgette
* | 7a9212df - (21 hours ago) Temporary workaround to only show related statuses - Morgan Bazalgette
* |   00bd10fa - (26 hours ago) Merge branch 'master' of github.com:tootsuite/mastodon - Morgan Bazalgette
|\ \
| |/
| * 993ce0e5 - (28 hours ago) improve zh-HK localization by referring zh-TW and zh-CN (#6988) - luzi82
* |   05832497 - (30 hours ago) Merge branch 'master' of github.com:tootsuite/mastodon - Morgan Bazalgette
 \ \
  |/
  * 929f58f1 - (32 hours ago) i18n: Update Polish translation (#6985) - Marcin Mikołajczak
```
2018-04-02 18:31:57 +02:00

2 lines
No EOL
76 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

webpackJsonp([26],{302:function(e,t,n){"use strict";n.d(t,"a",function(){return A});var o,a,i,r=n(2),s=n.n(r),c=n(1),l=n.n(c),u=n(3),d=n.n(u),p=n(4),h=n.n(p),m=n(0),f=n.n(m),g=n(303),v=n(102),y=n(13),b=n.n(y),k=n(5),_=n.n(k),w=n(304),x=n(306),C=n(311),j=n(6),O=n(313),S=n(314),M=n(316),D=n(318),N=n(319),T=n(321),P=n(327),F=n(35),z=n(12),I=n.n(z),E=n(99),R=(n.n(E),n(329)),q=n(11),U=Object(j.f)({placeholder:{id:"compose_form.placeholder",defaultMessage:"What is on your mind?"},spoiler_placeholder:{id:"compose_form.spoiler_placeholder",defaultMessage:"Write your warning here"},publish:{id:"compose_form.publish",defaultMessage:"Toot"},publishLoud:{id:"compose_form.publish_loud",defaultMessage:"{publish}!"}}),A=Object(j.g)((i=a=function(e){function t(){var n,o,a;l()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=d()(this,e.call.apply(e,[this].concat(r))),o.handleChange=function(e){o.props.onChange(e.target.value)},o.handleKeyDown=function(e){13===e.keyCode&&(e.ctrlKey||e.metaKey)&&o.handleSubmit()},o.handleSubmit=function(){o.props.text!==o.autosuggestTextarea.textarea.value&&o.props.onChange(o.autosuggestTextarea.textarea.value);var e=o.props,t=e.is_submitting,n=e.is_uploading,a=e.anyMedia,i=[o.props.spoiler_text,Object(R.a)(o.props.text)].join("");t||n||Object(E.length)(i)>500||0!==i.length&&0===i.trim().length&&!a||o.props.onSubmit()},o.onSuggestionsClearRequested=function(){o.props.onClearSuggestions()},o.onSuggestionsFetchRequested=function(e){o.props.onFetchSuggestions(e)},o.onSuggestionSelected=function(e,t,n){o._restoreCaret=null,o.props.onSuggestionSelected(e,t,n)},o.handleChangeSpoilerText=function(e){o.props.onChangeSpoilerText(e.target.value)},o.setAutosuggestTextarea=function(e){o.autosuggestTextarea=e},o.handleEmojiPick=function(e){var t=o.autosuggestTextarea.textarea.selectionStart,n=e.native;o._restoreCaret=t+n.length+1,o.props.onPickEmoji(t,e)},a=n,d()(o,a)}return h()(t,e),t.prototype.componentWillReceiveProps=function(e){!e.is_uploading&&this.props.is_uploading&&(this._restoreCaret=this.autosuggestTextarea.textarea.selectionStart)},t.prototype.componentDidUpdate=function(e){if(this.props.focusDate!==e.focusDate||e.is_uploading&&!this.props.is_uploading&&"number"==typeof this._restoreCaret){var t=void 0,n=void 0;this.props.preselectDate!==e.preselectDate?(t=this.props.text.length,n=this.props.text.search(/\s/)+1):"number"==typeof this._restoreCaret?(n=this._restoreCaret,t=this._restoreCaret):(t=this.props.text.length,n=t),this.autosuggestTextarea.textarea.setSelectionRange(n,t),this.autosuggestTextarea.textarea.focus()}else e.is_submitting&&!this.props.is_submitting&&this.autosuggestTextarea.textarea.focus()},t.prototype.render=function(){var e=this.props,t=e.intl,n=e.onPaste,o=e.showSearch,a=e.anyMedia,i=this.props.is_submitting,r=[this.props.spoiler_text,Object(R.a)(this.props.text)].join(""),c=i||this.props.is_uploading||Object(E.length)(r)>q.c||0!==r.length&&0===r.trim().length&&!a,l="";return l="private"===this.props.privacy||"direct"===this.props.privacy?s()("span",{className:"compose-form__publish-private"},void 0,s()("i",{className:"fa fa-lock"})," ",t.formatMessage(U.publish)):"unlisted"!==this.props.privacy?t.formatMessage(U.publishLoud,{publish:t.formatMessage(U.publish)}):t.formatMessage(U.publish),s()("div",{className:"compose-form"},void 0,s()(P.a,{}),s()(O.a,{isVisible:this.props.spoiler,fullHeight:50},void 0,s()("div",{className:"spoiler-input"},void 0,s()("label",{},void 0,s()("span",{style:{display:"none"}},void 0,t.formatMessage(U.spoiler_placeholder)),s()("input",{placeholder:t.formatMessage(U.spoiler_placeholder),value:this.props.spoiler_text,onChange:this.handleChangeSpoilerText,onKeyDown:this.handleKeyDown,type:"text",className:"spoiler-input__input",id:"cw-spoiler-input"})))),s()(w.a,{}),s()("div",{className:"compose-form__autosuggest-wrapper"},void 0,f.a.createElement(x.a,{ref:this.setAutosuggestTextarea,placeholder:t.formatMessage(U.placeholder),disabled:i,value:this.props.text,onChange:this.handleChange,suggestions:this.props.suggestions,onKeyDown:this.handleKeyDown,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,onPaste:n,autoFocus:!o&&!Object(F.b)(window.innerWidth)}),s()(N.a,{onPickEmoji:this.handleEmojiPick})),s()("div",{className:"compose-form__modifiers"},void 0,s()(T.a,{})),s()("div",{className:"compose-form__buttons-wrapper"},void 0,s()("div",{className:"compose-form__buttons"},void 0,s()(C.a,{}),s()(M.a,{}),s()(D.a,{}),s()(S.a,{})),s()("div",{className:"character-counter__wrapper"},void 0,s()(g.a,{max:q.c,text:r}))),s()("div",{className:"compose-form__publish"},void 0,s()("div",{className:"compose-form__publish-button-wrapper"},void 0,s()(v.a,{text:l,onClick:this.handleSubmit,disabled:c,block:!0}))))},t}(I.a),a.propTypes={intl:_.a.object.isRequired,text:_.a.string.isRequired,suggestion_token:_.a.string,suggestions:b.a.list,spoiler:_.a.bool,privacy:_.a.string,spoiler_text:_.a.string,focusDate:_.a.instanceOf(Date),preselectDate:_.a.instanceOf(Date),is_submitting:_.a.bool,is_uploading:_.a.bool,onChange:_.a.func.isRequired,onSubmit:_.a.func.isRequired,onClearSuggestions:_.a.func.isRequired,onFetchSuggestions:_.a.func.isRequired,onSuggestionSelected:_.a.func.isRequired,onChangeSpoilerText:_.a.func.isRequired,onPaste:_.a.func.isRequired,onPickEmoji:_.a.func.isRequired,showSearch:_.a.bool,anyMedia:_.a.bool},a.defaultProps={showSearch:!1},o=i))||o},303:function(e,t,n){"use strict";n.d(t,"a",function(){return m});var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(99),m=(n.n(h),function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.checkRemainingText=function(e){return e<0?a()("span",{className:"character-counter character-counter--over"},void 0,e):a()("span",{className:"character-counter"},void 0,e)},t.prototype.render=function(){var e=this.props.max-Object(h.length)(this.props.text);return this.checkRemainingText(e)},t}(p.a.PureComponent))},304:function(e,t,n){"use strict";var o=n(9),a=n(18),i=n(67),r=n(305),s=function(){var e=Object(i.e)();return function(t){return{status:e(t,t.getIn(["compose","in_reply_to"]))}}},c=function(e){return{onCancel:function(){e(Object(a.E)())}}};t.a=Object(o.connect)(s,c)(r.a)},305:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var o,a,i,r=n(2),s=n.n(r),c=n(1),l=n.n(c),u=n(3),d=n.n(u),p=n(4),h=n.n(p),m=n(0),f=(n.n(m),n(13)),g=n.n(f),v=n(5),y=n.n(v),b=n(57),k=n(23),_=n(56),w=n(6),x=n(12),C=n.n(x),j=n(98),O=Object(w.f)({cancel:{id:"reply_indicator.cancel",defaultMessage:"Cancel"}}),S=Object(w.g)((i=a=function(e){function t(){var n,o,a;l()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=d()(this,e.call.apply(e,[this].concat(r))),o.handleClick=function(){o.props.onCancel()},o.handleAccountClick=function(e){0===e.button&&(e.preventDefault(),o.context.router.history.push("/accounts/"+o.props.status.getIn(["account","id"])))},a=n,d()(o,a)}return h()(t,e),t.prototype.render=function(){var e=this.props,t=e.status,n=e.intl;if(!t)return null;var o={__html:t.get("contentHtml")},a={direction:Object(j.a)(t.get("search_index"))?"rtl":"ltr"};return s()("div",{className:"reply-indicator"},void 0,s()("div",{className:"reply-indicator__header"},void 0,s()("div",{className:"reply-indicator__cancel"},void 0,s()(k.a,{title:n.formatMessage(O.cancel),icon:"times",onClick:this.handleClick})),s()("a",{href:t.getIn(["account","url"]),onClick:this.handleAccountClick,className:"reply-indicator__display-name"},void 0,s()("div",{className:"reply-indicator__display-avatar"},void 0,s()(b.a,{account:t.get("account"),size:24})),s()(_.a,{account:t.get("account")}))),s()("div",{className:"reply-indicator__content",style:a,dangerouslySetInnerHTML:o}))},t}(C.a),a.contextTypes={router:y.a.object},a.propTypes={status:g.a.map,onCancel:y.a.func.isRequired,intl:y.a.object.isRequired},o=i))||o},306:function(e,t,n){"use strict";n.d(t,"a",function(){return D});var o,a,i=n(2),r=n.n(i),s=n(32),c=n.n(s),l=n(1),u=n.n(l),d=n(3),p=n.n(d),h=n(4),m=n.n(h),f=n(0),g=(n.n(f),n(307)),v=n(309),y=n(13),b=n.n(y),k=n(5),_=n.n(k),w=n(98),x=n(12),C=n.n(x),j=n(310),O=n(10),S=n.n(O),M=function(e,t){var n=void 0,o=e.slice(0,t).search(/\S+$/),a=e.slice(t).search(/\s/);return!(n=a<0?e.slice(o):e.slice(o,a+t))||n.trim().length<3||-1===["@",":","#"].indexOf(n[0])?[null,null]:(n=n.trim().toLowerCase(),n.length>0?[o+1,n]:[null,null])},D=(a=o=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return n=o=p()(this,e.call.apply(e,[this].concat(s))),o.state={suggestionsHidden:!1,selectedSuggestion:0,lastToken:null,tokenStart:0},o.onChange=function(e){var t=M(e.target.value,e.target.selectionStart),n=t[0],a=t[1];null!==a&&o.state.lastToken!==a?(o.setState({lastToken:a,selectedSuggestion:0,tokenStart:n}),o.props.onSuggestionsFetchRequested(a)):null===a&&(o.setState({lastToken:null}),o.props.onSuggestionsClearRequested()),o.props.onChange(e)},o.onKeyDown=function(e){var t=o.props,n=t.suggestions,a=t.disabled,i=o.state,r=i.selectedSuggestion,s=i.suggestionsHidden;if(a)return void e.preventDefault();switch(e.key){case"Escape":s||(e.preventDefault(),o.setState({suggestionsHidden:!0}));break;case"ArrowDown":n.size>0&&!s&&(e.preventDefault(),o.setState({selectedSuggestion:Math.min(r+1,n.size-1)}));break;case"ArrowUp":n.size>0&&!s&&(e.preventDefault(),o.setState({selectedSuggestion:Math.max(r-1,0)}));break;case"Enter":case"Tab":null!==o.state.lastToken&&n.size>0&&!s&&(e.preventDefault(),e.stopPropagation(),o.props.onSuggestionSelected(o.state.tokenStart,o.state.lastToken,n.get(r)))}!e.defaultPrevented&&o.props.onKeyDown&&o.props.onKeyDown(e)},o.onKeyUp=function(e){"Escape"===e.key&&o.state.suggestionsHidden&&document.querySelector(".ui").parentElement.focus(),o.props.onKeyUp&&o.props.onKeyUp(e)},o.onBlur=function(){o.setState({suggestionsHidden:!0})},o.onSuggestionClick=function(e){var t=o.props.suggestions.get(e.currentTarget.getAttribute("data-index"));e.preventDefault(),o.props.onSuggestionSelected(o.state.tokenStart,o.state.lastToken,t),o.textarea.focus()},o.setTextarea=function(e){o.textarea=e},o.onPaste=function(e){e.clipboardData&&1===e.clipboardData.files.length&&(o.props.onPaste(e.clipboardData.files),e.preventDefault())},o.renderSuggestion=function(e,t){var n=o.state.selectedSuggestion,a=void 0,i=void 0;return"object"===(void 0===e?"undefined":c()(e))?(a=r()(v.a,{emoji:e}),i=e.id):"#"===e[0]?(a=e,i=e):(a=r()(g.a,{id:e}),i=e),r()("div",{role:"button",tabIndex:"0","data-index":t,className:S()("autosuggest-textarea__suggestions__item",{selected:t===n}),onMouseDown:o.onSuggestionClick},i,a)},a=n,p()(o,a)}return m()(t,e),t.prototype.componentWillReceiveProps=function(e){e.suggestions!==this.props.suggestions&&e.suggestions.size>0&&this.state.suggestionsHidden&&this.setState({suggestionsHidden:!1})},t.prototype.render=function(){var e=this.props,t=e.value,n=e.suggestions,o=e.disabled,a=e.placeholder,i=e.autoFocus,s=this.state.suggestionsHidden,c={direction:"ltr"};return Object(w.a)(t)&&(c.direction="rtl"),r()("div",{className:"autosuggest-textarea"},void 0,r()("label",{},void 0,r()("span",{style:{display:"none"}},void 0,a),r()(j.a,{inputRef:this.setTextarea,className:"autosuggest-textarea__textarea",disabled:o,placeholder:a,autoFocus:i,value:t,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onBlur:this.onBlur,onPaste:this.onPaste,style:c,"aria-autocomplete":"list"})),r()("div",{className:"autosuggest-textarea__suggestions "+(s||n.isEmpty()?"":"autosuggest-textarea__suggestions--visible")},void 0,n.map(this.renderSuggestion)))},t}(C.a),o.propTypes={value:_.a.string,suggestions:b.a.list,disabled:_.a.bool,placeholder:_.a.string,onSuggestionSelected:_.a.func.isRequired,onSuggestionsClearRequested:_.a.func.isRequired,onSuggestionsFetchRequested:_.a.func.isRequired,onChange:_.a.func.isRequired,onKeyUp:_.a.func,onKeyDown:_.a.func,onPaste:_.a.func.isRequired,autoFocus:_.a.bool},o.defaultProps={autoFocus:!0},a)},307:function(e,t,n){"use strict";var o=n(9),a=n(308),i=n(67),r=function(){var e=Object(i.c)();return function(t,n){var o=n.id;return{account:e(t,o)}}};t.a=Object(o.connect)(r)(a.a)},308:function(e,t,n){"use strict";n.d(t,"a",function(){return k});var o,a,i=n(2),r=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),p=n.n(d),h=n(0),m=(n.n(h),n(57)),f=n(56),g=n(13),v=n.n(g),y=n(12),b=n.n(y),k=(a=o=function(e){function t(){return c()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props.account;return r()("div",{className:"autosuggest-account"},void 0,r()("div",{className:"autosuggest-account-icon"},void 0,r()(m.a,{account:e,size:18})),r()(f.a,{account:e}))},t}(b.a),o.propTypes={account:v.a.map.isRequired},a)},309:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(155),m=n.n(h),f=e.env.CDN_HOST||"",g=function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props.emoji,t=void 0;if(e.custom)t=e.imageUrl;else{var n=m.a[e.native]||m.a[e.native.replace(/\uFE0F$/,"")];if(!n)return null;t=f+"/emoji/"+n.filename+".svg"}return a()("div",{className:"autosuggest-emoji"},void 0,a()("img",{className:"emojione",src:t,alt:e.native||e.colons}),e.colons)},t}(p.a.PureComponent)}).call(t,n(37))},310:function(e,t,n){"use strict";function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e,t){if(null==e)return{};var n,o,a={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(a[n]=e[n]);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function r(e,t,n,o,a){void 0===n&&(n=!1),void 0===o&&(o=null),void 0===a&&(a=null),null===h.parentNode&&document.body.appendChild(h);var i=s(e,t,n);if(null===i)return null;var r=i.paddingSize,c=i.borderSize,l=i.boxSizing,u=i.sizingStyle;Object.keys(u).forEach(function(e){h.style[e]=u[e]}),Object.keys(m).forEach(function(e){h.style.setProperty(e,m[e],"important")}),h.value=e.value||e.placeholder||"x";var d=-1/0,p=1/0,f=h.scrollHeight;"border-box"===l?f+=c:"content-box"===l&&(f-=r),h.value="x";var g=h.scrollHeight-r;return null===o&&null===a||(null!==o&&(d=g*o,"border-box"===l&&(d=d+r+c),f=Math.max(d,f)),null!==a&&(p=g*a,"border-box"===l&&(p=p+r+c),f=Math.min(p,f))),{height:f,minHeight:d,maxHeight:p,rowCount:Math.floor(f/g)}}function s(e,t,n){if(void 0===n&&(n=!1),n&&g[t])return g[t];var o=window.getComputedStyle(e);if(null===o)return null;var a=f.reduce(function(e,t){return e[t]=o.getPropertyValue(t),e},{}),i=a["box-sizing"];p&&"border-box"===i&&(a.width=parseFloat(a.width)+parseFloat(o["border-right-width"])+parseFloat(o["border-left-width"])+parseFloat(o["padding-right"])+parseFloat(o["padding-left"])+"px");var r=parseFloat(a["padding-bottom"])+parseFloat(a["padding-top"]),s=parseFloat(a["border-bottom-width"])+parseFloat(a["border-top-width"]),c={sizingStyle:a,paddingSize:r,borderSize:s,boxSizing:i};return n&&(g[t]=c),c}var c=n(0),l=n.n(c),u=n(5),d=(n.n(u),"undefined"!=typeof window&&"undefined"!=typeof document),p=!!d&&!!document.documentElement.currentStyle,h=d&&document.createElement("textarea"),m={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},f=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],g={},v=function(e){return delete g[e]},y=function(e){return void 0===e&&(e=0),function(){return++e}}(),b=function(){},k=d&&window.requestAnimationFrame?[window.requestAnimationFrame,window.cancelAnimationFrame]:[setTimeout,clearTimeout],_=k[0],w=k[1],x=function(e){function t(t){var n;return n=e.call(this,t)||this,n._resizeLock=!1,n._onRootDOMNode=function(e){n._rootDOMNode=e,n.props.inputRef&&n.props.inputRef(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e)},n._resizeComponent=function(e){if(void 0===e&&(e=b),void 0===n._rootDOMNode)return void e();var t=r(n._rootDOMNode,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null===t)return void e();var o=t.height,a=t.minHeight,i=t.maxHeight,s=t.rowCount;if(n.rowCount=s,n.state.height!==o||n.state.minHeight!==a||n.state.maxHeight!==i)return void n.setState({height:o,minHeight:a,maxHeight:i},e);e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=y(),n._controlled="string"==typeof t.value,n}a(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.minRows,e.maxRows,e.onHeightChange,e.useCacheForDOMMeasurements,e.inputRef,i(e,["minRows","maxRows","onHeightChange","useCacheForDOMMeasurements","inputRef"]));return t.style=o({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(t.style.overflow="hidden"),l.a.createElement("textarea",o({},t,{onChange:this._onChange,ref:this._onRootDOMNode}))},n.componentDidMount=function(){var e=this;this._resizeComponent(),this._resizeListener=function(){e._resizeLock||(e._resizeLock=!0,e._resizeComponent(function(){return e._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener)},n.componentWillReceiveProps=function(){var e=this;this._clearNextFrame(),this._onNextFrameActionId=_(function(){return e._resizeComponent()})},n.componentDidUpdate=function(e,t){this.state.height!==t.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){this._clearNextFrame(),window.removeEventListener("resize",this._resizeListener),v(this._uid)},n._clearNextFrame=function(){w(this._onNextFrameActionId)},t}(l.a.Component);x.defaultProps={onChange:b,onHeightChange:b,useCacheForDOMMeasurements:!1},t.a=x},311:function(e,t,n){"use strict";var o=n(9),a=n(312),i=n(18),r=function(e){return{disabled:e.getIn(["compose","is_uploading"])||e.getIn(["compose","media_attachments"]).size>3||e.getIn(["compose","media_attachments"]).some(function(e){return"video"===e.get("type")}),resetFileKey:e.getIn(["compose","resetFileKey"])}},s=function(e){return{onSelectFile:function(t){e(Object(i.Z)(t))}}};t.a=Object(o.connect)(r,s)(a.a)},312:function(e,t,n){"use strict";n.d(t,"a",function(){return D});var o,a,i,r,s=n(2),c=n.n(s),l=n(1),u=n.n(l),d=n(3),p=n.n(d),h=n(4),m=n.n(h),f=n(0),g=n.n(f),v=n(23),y=n(5),b=n.n(y),k=n(6),_=n(9),w=n(12),x=n.n(w),C=n(13),j=n.n(C),O=Object(k.f)({upload:{id:"upload_button.label",defaultMessage:"Add media"}}),S=function(){return function(e){return{acceptContentTypes:e.getIn(["media_attachments","accept_content_types"])}}},M={height:null,lineHeight:"27px"},D=(o=Object(_.connect)(S))(a=Object(k.g)((r=i=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=p()(this,e.call.apply(e,[this].concat(r))),o.handleChange=function(e){e.target.files.length>0&&o.props.onSelectFile(e.target.files)},o.handleClick=function(){o.fileElement.click()},o.setRef=function(e){o.fileElement=e},a=n,p()(o,a)}return m()(t,e),t.prototype.render=function(){var e=this.props,t=e.intl,n=e.resetFileKey,o=e.disabled,a=e.acceptContentTypes;return c()("div",{className:"compose-form__upload-button"},void 0,c()(v.a,{icon:"camera",title:t.formatMessage(O.upload),disabled:o,onClick:this.handleClick,className:"compose-form__upload-button-icon",size:18,inverted:!0,style:M}),c()("label",{},void 0,c()("span",{style:{display:"none"}},void 0,t.formatMessage(O.upload)),g.a.createElement("input",{key:n,ref:this.setRef,type:"file",multiple:!1,accept:a.toArray().join(","),onChange:this.handleChange,disabled:o,style:{display:"none"}})))},t}(x.a),i.propTypes={disabled:b.a.bool,onSelectFile:b.a.func.isRequired,style:b.a.object,resetFileKey:b.a.number,acceptContentTypes:j.a.listOf(b.a.string).isRequired,intl:b.a.object.isRequired},a=r))||a)||a},313:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(0),r=(n.n(i),n(28)),s=n(27),c=n.n(s),l=function(e){var t=e.fullHeight,n=e.isVisible,o=e.children;return a()(r.a,{defaultStyle:{opacity:n?100:0,height:n?t:0},style:{opacity:c()(n?100:0),height:c()(n?t:0)}},void 0,function(e){var t=e.opacity,n=e.height;return a()("div",{style:{height:n+"px",overflow:"hidden",opacity:t/100,display:0===Math.floor(t)?"none":"block"}},void 0,o)})};t.a=l},314:function(e,t,n){"use strict";var o=n(9),a=n(315),i=n(18),r=n(6),s=Object(r.f)({marked:{id:"compose_form.spoiler.marked",defaultMessage:"Text is hidden behind warning"},unmarked:{id:"compose_form.spoiler.unmarked",defaultMessage:"Text is not hidden"}}),c=function(e,t){return{label:"CW",title:t.intl.formatMessage(e.getIn(["compose","spoiler"])?s.marked:s.unmarked),active:e.getIn(["compose","spoiler"]),ariaControls:"cw-spoiler-input"}},l=function(e){return{onClick:function(){e(Object(i.I)())}}};t.a=Object(r.g)(Object(o.connect)(c,l)(a.a))},315:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=function(e){function t(){var n,o,a;r()(this,t);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return n=o=c()(this,e.call.apply(e,[this].concat(s))),o.handleClick=function(e){e.preventDefault(),o.props.onClick()},a=n,c()(o,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.title,o=e.active,i=e.ariaControls;return a()("button",{title:n,"aria-label":n,className:"text-icon-button "+(o?"active":""),"aria-expanded":o,onClick:this.handleClick,"aria-controls":i},void 0,t)},t}(p.a.PureComponent)},316:function(e,t,n){"use strict";var o=n(9),a=n(317),i=n(18),r=n(26),s=n(35),c=function(e){return{isModalOpen:"ACTIONS"===e.get("modal").modalType,value:e.getIn(["compose","privacy"])}},l=function(e){return{onChange:function(t){e(Object(i.J)(t))},isUserTouching:s.c,onModalOpen:function(t){return e(Object(r.d)("ACTIONS",t))},onModalClose:function(){return e(Object(r.c)())}}};t.a=Object(o.connect)(c,l)(a.a)},317:function(e,t,n){"use strict";n.d(t,"a",function(){return M});var o,a=n(2),i=n.n(a),r=n(1),s=n.n(r),c=n(3),l=n.n(c),u=n(4),d=n.n(u),p=n(0),h=n.n(p),m=n(6),f=n(23),g=n(97),v=n.n(g),y=n(28),b=n(27),k=n.n(b),_=n(47),w=n.n(_),x=n(10),C=n.n(x),j=Object(m.f)({public_short:{id:"privacy.public.short",defaultMessage:"Public"},public_long:{id:"privacy.public.long",defaultMessage:"Post to public timelines"},unlisted_short:{id:"privacy.unlisted.short",defaultMessage:"Unlisted"},unlisted_long:{id:"privacy.unlisted.long",defaultMessage:"Do not show in public timelines"},private_short:{id:"privacy.private.short",defaultMessage:"Followers-only"},private_long:{id:"privacy.private.long",defaultMessage:"Post to followers only"},direct_short:{id:"privacy.direct.short",defaultMessage:"Direct"},direct_long:{id:"privacy.direct.long",defaultMessage:"Post to mentioned users only"},change_privacy:{id:"privacy.change",defaultMessage:"Adjust status privacy"}}),O=!!w.a.hasSupport&&{passive:!0},S=function(e){function t(){var n,o,a;s()(this,t);for(var i=arguments.length,r=Array(i),c=0;c<i;c++)r[c]=arguments[c];return n=o=l()(this,e.call.apply(e,[this].concat(r))),o.handleDocumentClick=function(e){o.node&&!o.node.contains(e.target)&&o.props.onClose()},o.handleClick=function(e){if("Escape"===e.key)o.props.onClose();else if(!e.key||"Enter"===e.key){var t=e.currentTarget.getAttribute("data-index");e.preventDefault(),o.props.onClose(),o.props.onChange(t)}},o.setRef=function(e){o.node=e},a=n,l()(o,a)}return d()(t,e),t.prototype.componentDidMount=function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,O)},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,O)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,o=t.items,a=t.value;return i()(y.a,{defaultStyle:{opacity:0,scaleX:.85,scaleY:.75},style:{opacity:k()(1,{damping:35,stiffness:400}),scaleX:k()(1,{damping:35,stiffness:400}),scaleY:k()(1,{damping:35,stiffness:400})}},void 0,function(t){var r=t.opacity,s=t.scaleX,c=t.scaleY;return h.a.createElement("div",{className:"privacy-dropdown__dropdown",style:Object.assign({},n,{opacity:r,transform:"scale("+s+", "+c+")"}),ref:e.setRef},o.map(function(t){return i()("div",{role:"button",tabIndex:"0","data-index":t.value,onKeyDown:e.handleClick,onClick:e.handleClick,className:C()("privacy-dropdown__option",{active:t.value===a})},t.value,i()("div",{className:"privacy-dropdown__option__icon"},void 0,i()("i",{className:"fa fa-fw fa-"+t.icon})),i()("div",{className:"privacy-dropdown__option__content"},void 0,i()("strong",{},void 0,t.text),t.meta))}))})},t}(h.a.PureComponent),M=Object(m.g)(o=function(e){function t(){var n,o,a;s()(this,t);for(var i=arguments.length,r=Array(i),c=0;c<i;c++)r[c]=arguments[c];return n=o=l()(this,e.call.apply(e,[this].concat(r))),o.state={open:!1},o.handleToggle=function(){o.props.isUserTouching()?o.state.open?o.props.onModalClose():o.props.onModalOpen({actions:o.options.map(function(e){return Object.assign({},e,{active:e.value===o.props.value})}),onClick:o.handleModalActionClick}):o.setState({open:!o.state.open})},o.handleModalActionClick=function(e){e.preventDefault();var t=o.options[e.currentTarget.getAttribute("data-index")].value;o.props.onModalClose(),o.props.onChange(t)},o.handleKeyDown=function(e){switch(e.key){case"Enter":o.handleToggle();break;case"Escape":o.handleClose()}},o.handleClose=function(){o.setState({open:!1})},o.handleChange=function(e){o.props.onChange(e)},a=n,l()(o,a)}return d()(t,e),t.prototype.componentWillMount=function(){var e=this.props.intl.formatMessage;this.options=[{icon:"globe",value:"public",text:e(j.public_short),meta:e(j.public_long)},{icon:"unlock-alt",value:"unlisted",text:e(j.unlisted_short),meta:e(j.unlisted_long)},{icon:"lock",value:"private",text:e(j.private_short),meta:e(j.private_long)},{icon:"envelope",value:"direct",text:e(j.direct_short),meta:e(j.direct_long)}]},t.prototype.render=function(){var e=this.props,t=e.value,n=e.intl,o=this.state.open,a=this.options.find(function(e){return e.value===t});return i()("div",{className:C()("privacy-dropdown",{active:o}),onKeyDown:this.handleKeyDown},void 0,i()("div",{className:C()("privacy-dropdown__value",{active:0===this.options.indexOf(a)})},void 0,i()(f.a,{className:"privacy-dropdown__value-icon",icon:a.icon,title:n.formatMessage(j.change_privacy),size:18,expanded:o,active:o,inverted:!0,onClick:this.handleToggle,style:{height:null,lineHeight:"27px"}})),i()(v.a,{show:o,placement:"bottom",target:this},void 0,i()(S,{items:this.options,value:t,onClose:this.handleClose,onChange:this.handleChange})))},t}(h.a.PureComponent))||o},318:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(9),m=n(10),f=n.n(m),g=n(23),v=n(18),y=n(28),b=n(27),k=n.n(b),_=n(6),w=Object(_.f)({marked:{id:"compose_form.sensitive.marked",defaultMessage:"Media is marked as sensitive"},unmarked:{id:"compose_form.sensitive.unmarked",defaultMessage:"Media is not marked as sensitive"}}),x=function(e){return{visible:e.getIn(["compose","media_attachments"]).size>0,active:e.getIn(["compose","sensitive"]),disabled:e.getIn(["compose","spoiler"])}},C=function(e){return{onClick:function(){e(Object(v.G)())}}},j=function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.visible,n=e.active,o=e.disabled,i=e.onClick,r=e.intl;return a()(y.a,{defaultStyle:{scale:.87},style:{scale:k()(t?1:.87,{stiffness:200,damping:3})}},void 0,function(e){var s=e.scale,c=n?"eye-slash":"eye",l=f()("compose-form__sensitive-button",{"compose-form__sensitive-button--visible":t});return a()("div",{className:l,style:{transform:"scale("+s+")"}},void 0,a()(g.a,{className:"compose-form__sensitive-button__icon",title:r.formatMessage(n?w.marked:w.unmarked),icon:c,onClick:i,size:18,active:n,disabled:o,style:{lineHeight:null,height:null},inverted:!0}))})},t}(p.a.PureComponent);t.a=Object(h.connect)(x,C)(Object(_.g)(j))},319:function(e,t,n){"use strict";var o=n(9),a=n(320),i=n(58),r=n(96),s=(n.n(r),n(8)),c=(n.n(s),n(100)),l=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","yum","disappointed","thinking_face","weary","sob","sunglasses","heart","ok_hand"],u=Object(r.createSelector)([function(e){return e.getIn(["settings","frequentlyUsedEmojis"],Object(s.Map)())}],function(e){var t=e.keySeq().sort(function(t,n){return e.get(t)-e.get(n)}).reverse().slice(0,16).toArray();return t.length<l.length&&(t=t.concat(l.slice(0,l.length-t.length))),t}),d=Object(r.createSelector)([function(e){return e.get("custom_emojis")}],function(e){return e.filter(function(e){return e.get("visible_in_picker")}).sort(function(e,t){var n=e.get("shortcode").toLowerCase(),o=t.get("shortcode").toLowerCase();return n<o?-1:n>o?1:0})}),p=function(e){return{custom_emojis:d(e),skinTone:e.getIn(["settings","skinTone"]),frequentlyUsedEmojis:u(e)}},h=function(e,t){var n=t.onPickEmoji;return{onSkinTone:function(t){e(Object(i.c)(["skinTone"],t))},onPickEmoji:function(t){e(Object(c.b)(t)),n&&n(t)}}};t.a=Object(o.connect)(p,h)(a.a)},320:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return E});var o,a,i,r,s=n(2),c=n.n(s),l=n(1),u=n.n(l),d=n(3),p=n.n(d),h=n(4),m=n.n(h),f=n(0),g=n.n(f),v=n(6),y=n(59),b=n(97),k=n.n(b),_=n(10),w=n.n(_),x=n(47),C=n.n(x),j=n(72),O=Object(v.f)({emoji:{id:"emoji_button.label",defaultMessage:"Insert emoji"},emoji_search:{id:"emoji_button.search",defaultMessage:"Search..."},emoji_not_found:{id:"emoji_button.not_found",defaultMessage:"No emojos!! (╯°□°)╯︵ ┻━┻"},custom:{id:"emoji_button.custom",defaultMessage:"Custom"},recent:{id:"emoji_button.recent",defaultMessage:"Frequently used"},search_results:{id:"emoji_button.search_results",defaultMessage:"Search results"},people:{id:"emoji_button.people",defaultMessage:"People"},nature:{id:"emoji_button.nature",defaultMessage:"Nature"},food:{id:"emoji_button.food",defaultMessage:"Food & Drink"},activity:{id:"emoji_button.activity",defaultMessage:"Activity"},travel:{id:"emoji_button.travel",defaultMessage:"Travel & Places"},objects:{id:"emoji_button.objects",defaultMessage:"Objects"},symbols:{id:"emoji_button.symbols",defaultMessage:"Symbols"},flags:{id:"emoji_button.flags",defaultMessage:"Flags"}}),S=e.env.CDN_HOST||"",M=void 0,D=void 0,N=function(){return S+"/emoji/sheet.png"},T=!!C.a.hasSupport&&{passive:!0},P=["recent","custom","people","nature","foods","activity","places","objects","symbols","flags"],F=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=p()(this,e.call.apply(e,[this].concat(r))),o.handleClick=function(e){o.props.onSelect(1*e.currentTarget.getAttribute("data-index"))},o.handleDocumentClick=function(e){o.node&&!o.node.contains(e.target)&&o.props.onClose()},o.setRef=function(e){o.node=e},a=n,p()(o,a)}return m()(t,e),t.prototype.componentWillReceiveProps=function(e){e.active?this.attachListeners():this.removeListeners()},t.prototype.componentWillUnmount=function(){this.removeListeners()},t.prototype.attachListeners=function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,T)},t.prototype.removeListeners=function(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,T)},t.prototype.render=function(){var e=this.props.active;return g.a.createElement("div",{className:"emoji-picker-dropdown__modifiers__menu",style:{display:e?"block":"none"},ref:this.setRef},c()("button",{onClick:this.handleClick,"data-index":1},void 0,c()(D,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:1,backgroundImageFn:N})),c()("button",{onClick:this.handleClick,"data-index":2},void 0,c()(D,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:2,backgroundImageFn:N})),c()("button",{onClick:this.handleClick,"data-index":3},void 0,c()(D,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:3,backgroundImageFn:N})),c()("button",{onClick:this.handleClick,"data-index":4},void 0,c()(D,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:4,backgroundImageFn:N})),c()("button",{onClick:this.handleClick,"data-index":5},void 0,c()(D,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:5,backgroundImageFn:N})),c()("button",{onClick:this.handleClick,"data-index":6},void 0,c()(D,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:6,backgroundImageFn:N})))},t}(g.a.PureComponent),z=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=p()(this,e.call.apply(e,[this].concat(r))),o.handleClick=function(){o.props.active?o.props.onClose():o.props.onOpen()},o.handleSelect=function(e){o.props.onChange(e),o.props.onClose()},a=n,p()(o,a)}return m()(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.modifier;return c()("div",{className:"emoji-picker-dropdown__modifiers"},void 0,c()(D,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:n,onClick:this.handleClick,backgroundImageFn:N}),c()(F,{active:t,onSelect:this.handleSelect,onClose:this.props.onClose}))},t}(g.a.PureComponent),I=Object(v.g)((i=a=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=p()(this,e.call.apply(e,[this].concat(r))),o.state={modifierOpen:!1},o.handleDocumentClick=function(e){o.node&&!o.node.contains(e.target)&&o.props.onClose()},o.setRef=function(e){o.node=e},o.getI18n=function(){var e=o.props.intl;return{search:e.formatMessage(O.emoji_search),notfound:e.formatMessage(O.emoji_not_found),categories:{search:e.formatMessage(O.search_results),recent:e.formatMessage(O.recent),people:e.formatMessage(O.people),nature:e.formatMessage(O.nature),foods:e.formatMessage(O.food),activity:e.formatMessage(O.activity),places:e.formatMessage(O.travel),objects:e.formatMessage(O.objects),symbols:e.formatMessage(O.symbols),flags:e.formatMessage(O.flags),custom:e.formatMessage(O.custom)}}},o.handleClick=function(e){e.native||(e.native=e.colons),o.props.onClose(),o.props.onPick(e)},o.handleModifierOpen=function(){o.setState({modifierOpen:!0})},o.handleModifierClose=function(){o.setState({modifierOpen:!1})},o.handleModifierChange=function(e){o.props.onSkinTone(e)},a=n,p()(o,a)}return m()(t,e),t.prototype.componentDidMount=function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,T)},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,T)},t.prototype.render=function(){var e=this.props,t=e.loading,n=e.style,o=e.intl,a=e.custom_emojis,i=e.skinTone,r=e.frequentlyUsedEmojis;if(t)return c()("div",{style:{width:299}});var s=o.formatMessage(O.emoji),l=this.state.modifierOpen;return g.a.createElement("div",{className:w()("emoji-picker-dropdown__menu",{selecting:l}),style:n,ref:this.setRef},c()(M,{perLine:8,emojiSize:22,sheetSize:32,custom:Object(j.buildCustomEmojis)(a),color:"",emoji:"",set:"twitter",title:s,i18n:this.getI18n(),onClick:this.handleClick,include:P,recent:r,skin:i,showPreview:!1,backgroundImageFn:N,emojiTooltip:!0}),c()(z,{active:l,modifier:i,onOpen:this.handleModifierOpen,onClose:this.handleModifierClose,onChange:this.handleModifierChange}))},t}(g.a.PureComponent),a.defaultProps={style:{},loading:!0,placement:"bottom",frequentlyUsedEmojis:[]},o=i))||o,E=Object(v.g)(r=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=p()(this,e.call.apply(e,[this].concat(r))),o.state={active:!1,loading:!1},o.setRef=function(e){o.dropdown=e},o.onShowDropdown=function(){o.setState({active:!0}),M||(o.setState({loading:!0}),Object(y.f)().then(function(e){M=e.Picker,D=e.Emoji,o.setState({loading:!1})}).catch(function(){o.setState({loading:!1})}))},o.onHideDropdown=function(){o.setState({active:!1})},o.onToggle=function(e){o.state.loading||e.key&&"Enter"!==e.key||(o.state.active?o.onHideDropdown():o.onShowDropdown())},o.handleKeyDown=function(e){"Escape"===e.key&&o.onHideDropdown()},o.setTargetRef=function(e){o.target=e},o.findTarget=function(){return o.target},a=n,p()(o,a)}return m()(t,e),t.prototype.render=function(){var e=this.props,t=e.intl,n=e.onPickEmoji,o=e.onSkinTone,a=e.skinTone,i=e.frequentlyUsedEmojis,r=t.formatMessage(O.emoji),s=this.state,l=s.active,u=s.loading;return c()("div",{className:"emoji-picker-dropdown",onKeyDown:this.handleKeyDown},void 0,g.a.createElement("div",{ref:this.setTargetRef,className:"emoji-button",title:r,"aria-label":r,"aria-expanded":l,role:"button",onClick:this.onToggle,onKeyDown:this.onToggle,tabIndex:0},c()("img",{className:w()("emojione",{"pulse-loading":l&&u}),alt:"🙂",src:S+"/emoji/1f602.svg"})),c()(k.a,{show:l,placement:"bottom",target:this.findTarget},void 0,c()(I,{custom_emojis:this.props.custom_emojis,loading:u,onClose:this.onHideDropdown,onPick:n,onSkinTone:o,skinTone:a,frequentlyUsedEmojis:i})))},t}(g.a.PureComponent))||r}).call(t,n(37))},321:function(e,t,n){"use strict";var o=n(9),a=n(322),i=function(e){return{mediaIds:e.getIn(["compose","media_attachments"]).map(function(e){return e.get("id")})}};t.a=Object(o.connect)(i)(a.a)},322:function(e,t,n){"use strict";n.d(t,"a",function(){return k});var o,a,i=n(2),r=n.n(i),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),p=n.n(d),h=n(0),m=(n.n(h),n(13)),f=n.n(m),g=n(323),v=n(12),y=n.n(v),b=n(325),k=(a=o=function(e){function t(){return c()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props.mediaIds;return r()("div",{className:"compose-form__upload-wrapper"},void 0,r()(g.a,{}),r()("div",{className:"compose-form__uploads-wrapper"},void 0,e.map(function(e){return r()(b.a,{id:e},e)})))},t}(y.a),o.propTypes={mediaIds:f.a.list.isRequired},a)},323:function(e,t,n){"use strict";var o=n(9),a=n(324),i=function(e){return{active:e.getIn(["compose","is_uploading"]),progress:e.getIn(["compose","progress"])}};t.a=Object(o.connect)(i)(a.a)},324:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(28),m=n(27),f=n.n(m),g=n(6),v=function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.progress;return t?a()("div",{className:"upload-progress"},void 0,a()("div",{className:"upload-progress__icon"},void 0,a()("i",{className:"fa fa-upload"})),a()("div",{className:"upload-progress__message"},void 0,a()(g.b,{id:"upload_progress.label",defaultMessage:"Uploading..."}),a()("div",{className:"upload-progress__backdrop"},void 0,a()(h.a,{defaultStyle:{width:0},style:{width:f()(n)}},void 0,function(e){var t=e.width;return a()("div",{className:"upload-progress__tracker",style:{width:t+"%"}})})))):null},t}(p.a.PureComponent)},325:function(e,t,n){"use strict";var o=n(9),a=n(326),i=n(18),r=n(26),s=function(e,t){var n=t.id;return{media:e.getIn(["compose","media_attachments"]).find(function(e){return e.get("id")===n})}},c=function(e){return{onUndo:function(t){e(Object(i.X)(t))},onDescriptionChange:function(t,n){e(Object(i.L)(t,{description:n}))},onOpenFocalPoint:function(t){e(Object(r.d)("FOCAL_POINT",{id:t}))}}};t.a=Object(o.connect)(s,c)(a.a)},326:function(e,t,n){"use strict";n.d(t,"a",function(){return M});var o,a,i,r=n(2),s=n.n(r),c=n(1),l=n.n(c),u=n(3),d=n.n(u),p=n(4),h=n.n(p),m=n(0),f=(n.n(m),n(13)),g=n.n(f),v=n(5),y=n.n(v),b=n(28),k=n(27),_=n.n(k),w=n(12),x=n.n(w),C=n(6),j=n(10),O=n.n(j),S=Object(C.f)({description:{id:"upload_form.description",defaultMessage:"Describe for the visually impaired"}}),M=Object(C.g)((i=a=function(e){function t(){var n,o,a;l()(this,t);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return n=o=d()(this,e.call.apply(e,[this].concat(r))),o.state={hovered:!1,focused:!1,dirtyDescription:null},o.handleUndoClick=function(){o.props.onUndo(o.props.media.get("id"))},o.handleFocalPointClick=function(){o.props.onOpenFocalPoint(o.props.media.get("id"))},o.handleInputChange=function(e){o.setState({dirtyDescription:e.target.value})},o.handleMouseEnter=function(){o.setState({hovered:!0})},o.handleMouseLeave=function(){o.setState({hovered:!1})},o.handleInputFocus=function(){o.setState({focused:!0})},o.handleInputBlur=function(){var e=o.state.dirtyDescription;o.setState({focused:!1,dirtyDescription:null}),null!==e&&o.props.onDescriptionChange(o.props.media.get("id"),e)},a=n,d()(o,a)}return h()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.intl,o=t.media,a=this.state.hovered||this.state.focused,i=this.state.dirtyDescription||""!==this.state.dirtyDescription&&o.get("description")||"",r=o.getIn(["meta","focus","x"]),c=o.getIn(["meta","focus","y"]),l=100*(r/2+.5),u=100*(c/-2+.5);return s()("div",{className:"compose-form__upload",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},void 0,s()(b.a,{defaultStyle:{scale:.8},style:{scale:_()(1,{stiffness:180,damping:12})}},void 0,function(t){var r=t.scale;return s()("div",{className:"compose-form__upload-thumbnail",style:{transform:"scale("+r+")",backgroundImage:"url("+o.get("preview_url")+")",backgroundPosition:l+"% "+u+"%"}},void 0,s()("div",{className:O()("compose-form__upload__actions",{active:a})},void 0,s()("button",{className:"icon-button",onClick:e.handleUndoClick},void 0,s()("i",{className:"fa fa-times"})," ",s()(C.b,{id:"upload_form.undo",defaultMessage:"Undo"})),"image"===o.get("type")&&s()("button",{className:"icon-button",onClick:e.handleFocalPointClick},void 0,s()("i",{className:"fa fa-crosshairs"})," ",s()(C.b,{id:"upload_form.focus",defaultMessage:"Crop"}))),s()("div",{className:O()("compose-form__upload-description",{active:a})},void 0,s()("label",{},void 0,s()("span",{style:{display:"none"}},void 0,n.formatMessage(S.description)),s()("input",{placeholder:n.formatMessage(S.description),type:"text",value:i,maxLength:420,onFocus:e.handleInputFocus,onChange:e.handleInputChange,onBlur:e.handleInputBlur}))))}))},t}(x.a),a.propTypes={media:g.a.map.isRequired,intl:y.a.object.isRequired,onUndo:y.a.func.isRequired,onDescriptionChange:y.a.func.isRequired,onOpenFocalPoint:y.a.func.isRequired},o=i))||o},327:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(0),r=(n.n(i),n(9)),s=n(328),c=n(6),l=n(11),u=/(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i,d=function(e){return{needsLockWarning:"private"===e.getIn(["compose","privacy"])&&!e.getIn(["accounts",l.g,"locked"]),hashtagWarning:"public"!==e.getIn(["compose","privacy"])&&u.test(e.getIn(["compose","text"])),directMessageWarning:"direct"===e.getIn(["compose","privacy"])}},p=function(e){var t=e.needsLockWarning,n=e.hashtagWarning,o=e.directMessageWarning;return t?a()(s.a,{message:a()(c.b,{id:"compose_form.lock_disclaimer",defaultMessage:"Your account is not {locked}. Anyone can follow you to view your follower-only posts.",values:{locked:a()("a",{href:"/settings/profile"},void 0,a()(c.b,{id:"compose_form.lock_disclaimer.lock",defaultMessage:"locked"}))}})}):n?a()(s.a,{message:a()(c.b,{id:"compose_form.hashtag_warning",defaultMessage:"This toot won't be listed under any hashtag as it is unlisted. Only public toots can be searched by hashtag."})}):o?a()(s.a,{message:a()(c.b,{id:"compose_form.direct_message_warning",defaultMessage:"This toot will only be visible to all the mentioned users."})}):null};t.a=Object(r.connect)(d)(p)},328:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(28),m=n(27),f=n.n(m),g=function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props.message;return a()(h.a,{defaultStyle:{opacity:0,scaleX:.85,scaleY:.75},style:{opacity:f()(1,{damping:35,stiffness:400}),scaleX:f()(1,{damping:35,stiffness:400}),scaleY:f()(1,{damping:35,stiffness:400})}},void 0,function(t){var n=t.opacity,o=t.scaleX,i=t.scaleY;return a()("div",{className:"compose-form__warning",style:{opacity:n,transform:"scale("+o+", "+i+")"}},void 0,e)})},t}(p.a.PureComponent)},329:function(e,t,n){"use strict";function o(e){return e.replace(a.a,i).replace(/(^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/gi,"$1@$3")}t.a=o;var a=n(330),i="xxxxxxxxxxxxxxxxxxxxxxx"},330:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var o={},a=function(e,t){return t=t||"","string"!=typeof e&&(e.global&&t.indexOf("g")<0&&(t+="g"),e.ignoreCase&&t.indexOf("i")<0&&(t+="i"),e.multiline&&t.indexOf("m")<0&&(t+="m"),e=e.source),new RegExp(e.replace(/#\{(\w+)\}/g,function(e,t){var n=o[t]||"";return"string"!=typeof n&&(n=n.source),n}),t)},i=function(e,t){return e.replace(/#\{(\w+)\}/g,function(e,n){return t[n]||""})},r=function(){return o.spaces_group=/\x09-\x0D\x20\x85\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000/,o.invalid_chars_group=/\uFFFE\uFEFF\uFFFF\u202A-\u202E/,o.punct=/\!'#%&'\(\)*\+,\\\-\.\/:;<=>\?@\[\]\^_{|}~\$/,o.validUrlPrecedingChars=a(/(?:[^A-Za-z0-9@$##{invalid_chars_group}]|^)/),o.invalidDomainChars=i("#{punct}#{spaces_group}#{invalid_chars_group}",o),o.validDomainChars=a(/[^#{invalidDomainChars}]/),o.validSubdomain=a(/(?:(?:#{validDomainChars}(?:[_-]|#{validDomainChars})*)?#{validDomainChars}\.)/),o.validDomainName=a(/(?:(?:#{validDomainChars}(?:-|#{validDomainChars})*)?#{validDomainChars}\.)/),o.validGTLD=a(RegExp("(?:(?:삼성|닷컴|닷넷|香格里拉|餐厅|食品|飞利浦|電訊盈科|集团|通販|购物|谷歌|诺基亚|联通|网络|网站|网店|网址|组织机构|移动|珠宝|点看|游戏|淡马锡|机构|書籍|时尚|新闻|政府|政务|手表|手机|我爱你|慈善|微博|广东|工行|家電|娱乐|天主教|大拿|大众汽车|在线|嘉里大酒店|嘉里|商标|商店|商城|公益|公司|八卦|健康|信息|佛山|企业|中文网|中信|世界|ポイント|ファッション|セール|ストア|コム|グーグル|クラウド|みんな|คอม|संगठन|नेट|कॉम|همراه|موقع|موبايلي|كوم|كاثوليك|عرب|شبكة|بيتك|بازار|العليان|ارامكو|اتصالات|ابوظبي|קום|сайт|рус|орг|онлайн|москва|ком|католик|дети|zuerich|zone|zippo|zip|zero|zara|zappos|yun|youtube|you|yokohama|yoga|yodobashi|yandex|yamaxun|yahoo|yachts|xyz|xxx|xperia|xin|xihuan|xfinity|xerox|xbox|wtf|wtc|wow|world|works|work|woodside|wolterskluwer|wme|winners|wine|windows|win|williamhill|wiki|wien|whoswho|weir|weibo|wedding|wed|website|weber|webcam|weatherchannel|weather|watches|watch|warman|wanggou|wang|walter|walmart|wales|vuelos|voyage|voto|voting|vote|volvo|volkswagen|vodka|vlaanderen|vivo|viva|vistaprint|vista|vision|visa|virgin|vip|vin|villas|viking|vig|video|viajes|vet|versicherung|vermögensberatung|vermögensberater|verisign|ventures|vegas|vanguard|vana|vacations|ups|uol|uno|university|unicom|uconnect|ubs|ubank|tvs|tushu|tunes|tui|tube|trv|trust|travelersinsurance|travelers|travelchannel|travel|training|trading|trade|toys|toyota|town|tours|total|toshiba|toray|top|tools|tokyo|today|tmall|tkmaxx|tjx|tjmaxx|tirol|tires|tips|tiffany|tienda|tickets|tiaa|theatre|theater|thd|teva|tennis|temasek|telefonica|telecity|tel|technology|tech|team|tdk|tci|taxi|tax|tattoo|tatar|tatamotors|target|taobao|talk|taipei|tab|systems|symantec|sydney|swiss|swiftcover|swatch|suzuki|surgery|surf|support|supply|supplies|sucks|style|study|studio|stream|store|storage|stockholm|stcgroup|stc|statoil|statefarm|statebank|starhub|star|staples|stada|srt|srl|spreadbetting|spot|spiegel|space|soy|sony|song|solutions|solar|sohu|software|softbank|social|soccer|sncf|smile|smart|sling|skype|sky|skin|ski|site|singles|sina|silk|shriram|showtime|show|shouji|shopping|shop|shoes|shiksha|shia|shell|shaw|sharp|shangrila|sfr|sexy|sex|sew|seven|ses|services|sener|select|seek|security|secure|seat|search|scot|scor|scjohnson|science|schwarz|schule|school|scholarships|schmidt|schaeffler|scb|sca|sbs|sbi|saxo|save|sas|sarl|sapo|sap|sanofi|sandvikcoromant|sandvik|samsung|samsclub|salon|sale|sakura|safety|safe|saarland|ryukyu|rwe|run|ruhr|rugby|rsvp|room|rogers|rodeo|rocks|rocher|rmit|rip|rio|ril|rightathome|ricoh|richardli|rich|rexroth|reviews|review|restaurant|rest|republican|report|repair|rentals|rent|ren|reliance|reit|reisen|reise|rehab|redumbrella|redstone|red|recipes|realty|realtor|realestate|read|raid|radio|racing|qvc|quest|quebec|qpon|pwc|pub|prudential|pru|protection|property|properties|promo|progressive|prof|productions|prod|pro|prime|press|praxi|pramerica|post|porn|politie|poker|pohl|pnc|plus|plumbing|playstation|play|place|pizza|pioneer|pink|ping|pin|pid|pictures|pictet|pics|piaget|physio|photos|photography|photo|phone|philips|phd|pharmacy|pfizer|pet|pccw|pay|passagens|party|parts|partners|pars|paris|panerai|panasonic|pamperedchef|page|ovh|ott|otsuka|osaka|origins|orientexpress|organic|org|orange|oracle|open|ooo|onyourside|online|onl|ong|one|omega|ollo|oldnavy|olayangroup|olayan|okinawa|office|off|observer|obi|nyc|ntt|nrw|nra|nowtv|nowruz|now|norton|northwesternmutual|nokia|nissay|nissan|ninja|nikon|nike|nico|nhk|ngo|nfl|nexus|nextdirect|next|news|newholland|new|neustar|network|netflix|netbank|net|nec|nba|navy|natura|nationwide|name|nagoya|nadex|nab|mutuelle|mutual|museum|mtr|mtpc|mtn|msd|movistar|movie|mov|motorcycles|moto|moscow|mortgage|mormon|mopar|montblanc|monster|money|monash|mom|moi|moe|moda|mobily|mobile|mobi|mma|mls|mlb|mitsubishi|mit|mint|mini|mil|microsoft|miami|metlife|merckmsd|meo|menu|men|memorial|meme|melbourne|meet|media|med|mckinsey|mcdonalds|mcd|mba|mattel|maserati|marshalls|marriott|markets|marketing|market|map|mango|management|man|makeup|maison|maif|madrid|macys|luxury|luxe|lupin|lundbeck|ltda|ltd|lplfinancial|lpl|love|lotto|lotte|london|lol|loft|locus|locker|loans|loan|lixil|living|live|lipsy|link|linde|lincoln|limo|limited|lilly|like|lighting|lifestyle|lifeinsurance|life|lidl|liaison|lgbt|lexus|lego|legal|lefrak|leclerc|lease|lds|lawyer|law|latrobe|latino|lat|lasalle|lanxess|landrover|land|lancome|lancia|lancaster|lamer|lamborghini|ladbrokes|lacaixa|kyoto|kuokgroup|kred|krd|kpn|kpmg|kosher|komatsu|koeln|kiwi|kitchen|kindle|kinder|kim|kia|kfh|kerryproperties|kerrylogistics|kerryhotels|kddi|kaufen|juniper|juegos|jprs|jpmorgan|joy|jot|joburg|jobs|jnj|jmp|jll|jlc|jio|jewelry|jetzt|jeep|jcp|jcb|java|jaguar|iwc|iveco|itv|itau|istanbul|ist|ismaili|iselect|irish|ipiranga|investments|intuit|international|intel|int|insure|insurance|institute|ink|ing|info|infiniti|industries|immobilien|immo|imdb|imamat|ikano|iinet|ifm|ieee|icu|ice|icbc|ibm|hyundai|hyatt|hughes|htc|hsbc|how|house|hotmail|hotels|hoteles|hot|hosting|host|hospital|horse|honeywell|honda|homesense|homes|homegoods|homedepot|holiday|holdings|hockey|hkt|hiv|hitachi|hisamitsu|hiphop|hgtv|hermes|here|helsinki|help|healthcare|health|hdfcbank|hdfc|hbo|haus|hangout|hamburg|hair|guru|guitars|guide|guge|gucci|guardian|group|grocery|gripe|green|gratis|graphics|grainger|gov|got|gop|google|goog|goodyear|goodhands|goo|golf|goldpoint|gold|godaddy|gmx|gmo|gmbh|gmail|globo|global|gle|glass|glade|giving|gives|gifts|gift|ggee|george|genting|gent|gea|gdn|gbiz|garden|gap|games|game|gallup|gallo|gallery|gal|fyi|futbol|furniture|fund|fun|fujixerox|fujitsu|ftr|frontier|frontdoor|frogans|frl|fresenius|free|fox|foundation|forum|forsale|forex|ford|football|foodnetwork|food|foo|fly|flsmidth|flowers|florist|flir|flights|flickr|fitness|fit|fishing|fish|firmdale|firestone|fire|financial|finance|final|film|fido|fidelity|fiat|ferrero|ferrari|feedback|fedex|fast|fashion|farmers|farm|fans|fan|family|faith|fairwinds|fail|fage|extraspace|express|exposed|expert|exchange|everbank|events|eus|eurovision|etisalat|esurance|estate|esq|erni|ericsson|equipment|epson|epost|enterprises|engineering|engineer|energy|emerck|email|education|edu|edeka|eco|eat|earth|dvr|dvag|durban|dupont|duns|dunlop|duck|dubai|dtv|drive|download|dot|doosan|domains|doha|dog|dodge|doctor|docs|dnp|diy|dish|discover|discount|directory|direct|digital|diet|diamonds|dhl|dev|design|desi|dentist|dental|democrat|delta|deloitte|dell|delivery|degree|deals|dealer|deal|dds|dclk|day|datsun|dating|date|data|dance|dad|dabur|cyou|cymru|cuisinella|csc|cruises|cruise|crs|crown|cricket|creditunion|creditcard|credit|courses|coupons|coupon|country|corsica|coop|cool|cookingchannel|cooking|contractors|contact|consulting|construction|condos|comsec|computer|compare|company|community|commbank|comcast|com|cologne|college|coffee|codes|coach|clubmed|club|cloud|clothing|clinique|clinic|click|cleaning|claims|cityeats|city|citic|citi|citadel|cisco|circle|cipriani|church|chrysler|chrome|christmas|chloe|chintai|cheap|chat|chase|channel|chanel|cfd|cfa|cern|ceo|center|ceb|cbs|cbre|cbn|cba|catholic|catering|cat|casino|cash|caseih|case|casa|cartier|cars|careers|career|care|cards|caravan|car|capitalone|capital|capetown|canon|cancerresearch|camp|camera|cam|calvinklein|call|cal|cafe|cab|bzh|buzz|buy|business|builders|build|bugatti|budapest|brussels|brother|broker|broadway|bridgestone|bradesco|box|boutique|bot|boston|bostik|bosch|boots|booking|book|boo|bond|bom|bofa|boehringer|boats|bnpparibas|bnl|bmw|bms|blue|bloomberg|blog|blockbuster|blanco|blackfriday|black|biz|bio|bingo|bing|bike|bid|bible|bharti|bet|bestbuy|best|berlin|bentley|beer|beauty|beats|bcn|bcg|bbva|bbt|bbc|bayern|bauhaus|basketball|baseball|bargains|barefoot|barclays|barclaycard|barcelona|bar|bank|band|bananarepublic|banamex|baidu|baby|azure|axa|aws|avianca|autos|auto|author|auspost|audio|audible|audi|auction|attorney|athleta|associates|asia|asda|arte|art|arpa|army|archi|aramco|arab|aquarelle|apple|app|apartments|aol|anz|anquan|android|analytics|amsterdam|amica|amfam|amex|americanfamily|americanexpress|alstom|alsace|ally|allstate|allfinanz|alipay|alibaba|alfaromeo|akdn|airtel|airforce|airbus|aigo|aig|agency|agakhan|africa|afl|afamilycompany|aetna|aero|aeg|adult|ads|adac|actor|active|aco|accountants|accountant|accenture|academy|abudhabi|abogado|able|abc|abbvie|abbott|abb|abarth|aarp|aaa|onion)(?=[^0-9a-zA-Z@]|$))")),o.validCCTLD=a(RegExp("(?:(?:한국|香港|澳門|新加坡|台灣|台湾|中國|中国|გე|ไทย|ලංකා|ഭാരതം|ಭಾರತ|భారత్|சிங்கப்பூர்|இலங்கை|இந்தியா|ଭାରତ|ભારત|ਭਾਰਤ|ভাৰত|ভারত|বাংলা|भारोत|भारतम्|भारत|ڀارت|پاکستان|مليسيا|مصر|قطر|فلسطين|عمان|عراق|سورية|سودان|تونس|بھارت|بارت|ایران|امارات|المغرب|السعودية|الجزائر|الاردن|հայ|қаз|укр|срб|рф|мон|мкд|ею|бел|бг|ελ|zw|zm|za|yt|ye|ws|wf|vu|vn|vi|vg|ve|vc|va|uz|uy|us|um|uk|ug|ua|tz|tw|tv|tt|tr|tp|to|tn|tm|tl|tk|tj|th|tg|tf|td|tc|sz|sy|sx|sv|su|st|ss|sr|so|sn|sm|sl|sk|sj|si|sh|sg|se|sd|sc|sb|sa|rw|ru|rs|ro|re|qa|py|pw|pt|ps|pr|pn|pm|pl|pk|ph|pg|pf|pe|pa|om|nz|nu|nr|np|no|nl|ni|ng|nf|ne|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|mn|mm|ml|mk|mh|mg|mf|me|md|mc|ma|ly|lv|lu|lt|ls|lr|lk|li|lc|lb|la|kz|ky|kw|kr|kp|kn|km|ki|kh|kg|ke|jp|jo|jm|je|it|is|ir|iq|io|in|im|il|ie|id|hu|ht|hr|hn|hm|hk|gy|gw|gu|gt|gs|gr|gq|gp|gn|gm|gl|gi|gh|gg|gf|ge|gd|gb|ga|fr|fo|fm|fk|fj|fi|eu|et|es|er|eh|eg|ee|ec|dz|do|dm|dk|dj|de|cz|cy|cx|cw|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|bz|by|bw|bv|bt|bs|br|bq|bo|bn|bm|bl|bj|bi|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ar|aq|ao|an|am|al|ai|ag|af|ae|ad|ac)(?=[^0-9a-zA-Z@]|$))")),o.validPunycode=/(?:xn--[0-9a-z]+)/,o.validSpecialCCTLD=/(?:(?:co|tv)(?=[^0-9a-zA-Z@]|$))/,o.validDomain=a(/(?:#{validSubdomain}*#{validDomainName}(?:#{validGTLD}|#{validCCTLD}|#{validPunycode}))/),o.validPortNumber=/[0-9]+/,o.pd=/\u002d\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e40\u301c\u3030\u30a0\ufe31\ufe58\ufe63\uff0d/,o.validGeneralUrlPathChars=a(/[^#{spaces_group}\(\)\?]/i),o.validUrlBalancedParens=a("\\((?:#{validGeneralUrlPathChars}+|(?:#{validGeneralUrlPathChars}*\\(#{validGeneralUrlPathChars}+\\)#{validGeneralUrlPathChars}*))\\)","i"),o.validUrlPathEndingChars=a(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}~&\|@]|(?:#{validUrlBalancedParens})/i),o.validUrlPath=a("(?:(?:#{validGeneralUrlPathChars}*(?:#{validUrlBalancedParens}#{validGeneralUrlPathChars}*)*#{validUrlPathEndingChars})|(?:@#{validGeneralUrlPathChars}+/))","i"),o.validUrlQueryChars=/[a-z0-9!?\*'@\(\);:&=\+\$\/%#\[\]\-_\.,~|]/i,o.validUrlQueryEndingChars=/[a-z0-9_&=#\/]/i,o.validUrl=a("((https?:\\/\\/)(#{validDomain})(?::(#{validPortNumber}))?(\\/#{validUrlPath}*)?(\\?#{validUrlQueryChars}*#{validUrlQueryEndingChars})?)","gi"),o.validUrl}()},331:function(e,t,n){"use strict";var o=n(9),a=n(302),i=n(18),r=function(e){return{text:e.getIn(["compose","text"]),suggestion_token:e.getIn(["compose","suggestion_token"]),suggestions:e.getIn(["compose","suggestions"]),spoiler:e.getIn(["compose","spoiler"]),spoiler_text:e.getIn(["compose","spoiler_text"]),privacy:e.getIn(["compose","privacy"]),focusDate:e.getIn(["compose","focusDate"]),preselectDate:e.getIn(["compose","preselectDate"]),is_submitting:e.getIn(["compose","is_submitting"]),is_uploading:e.getIn(["compose","is_uploading"]),showSearch:e.getIn(["search","submitted"])&&!e.getIn(["search","hidden"]),anyMedia:e.getIn(["compose","media_attachments"]).size>0}},s=function(e){return{onChange:function(t){e(Object(i.F)(t))},onSubmit:function(){e(Object(i.W)())},onClearSuggestions:function(){e(Object(i.M)())},onFetchSuggestions:function(t){e(Object(i.O)(t))},onSuggestionSelected:function(t,n,o){e(Object(i.V)(t,n,o))},onChangeSpoilerText:function(t){e(Object(i.H)(t))},onPaste:function(t){e(Object(i.Z)(t))},onPickEmoji:function(t,n){e(Object(i.Q)(t,n))}}};t.a=Object(o.connect)(r,s)(a.a)},6:function(e,t,n){"use strict";function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.locale&&(T.a.__addLocaleData(e),F.a.__addLocaleData(e))})}function a(e){for(var t=(e||"").split("-");t.length>0;){if(i(t.join("-")))return!0;t.pop()}return!1}function i(e){var t=e&&e.toLowerCase();return!(!T.a.__localeData__[t]||!F.a.__localeData__[t])}function r(e){return(""+e).replace(ke,function(e){return be[e]})}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,o){return e.hasOwnProperty(o)?t[o]=e[o]:n.hasOwnProperty(o)&&(t[o]=n[o]),t},{})}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intl;U()(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function l(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":K(e))||null===e||"object"!==(void 0===t?"undefined":K(t))||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!a(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}function u(e,t,n){var o=e.props,a=e.state,i=e.context,r=void 0===i?{}:i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=r.intl,d=void 0===u?{}:u,p=c.intl,h=void 0===p?{}:p;return!l(t,o)||!l(n,a)||!(h===d||l(s(h,ye),s(d,ye)))}function d(e){return e.displayName||e.name||"Component"}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.intlPropName,o=void 0===n?"intl":n,a=t.withRef,i=void 0!==a&&a,r=function(t){function n(e,t){W(this,n);var o=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return c(t),o}return Z(n,t),B(n,[{key:"getWrappedInstance",value:function(){return U()(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return R.a.createElement(e,$({},this.props,G({},o,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(E.Component);return r.displayName="InjectIntl("+d(e)+")",r.contextTypes={intl:he},r.WrappedComponent=e,r}function h(e){return e}function m(e){return T.a.prototype._resolveLocale(e)}function f(e){return T.a.prototype._findPluralRuleFunction(e)}function g(e){var t=F.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month}function v(e,t,n){var o=e&&e[t]&&e[t][n];if(o)return o}function y(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,r=o.format,c=new Date(n),l=r&&v(i,"date",r),u=s(o,we,l);try{return t.getDateTimeFormat(a,u).format(c)}catch(e){}return String(c)}function b(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,r=o.format,c=new Date(n),l=r&&v(i,"time",r),u=s(o,we,l);u.hour||u.minute||u.second||(u=$({},u,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(a,u).format(c)}catch(e){}return String(c)}function k(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,r=o.format,c=new Date(n),l=new Date(o.now),u=r&&v(i,"relative",r),d=s(o,Ce,u),p=$({},F.a.thresholds);g(Oe);try{return t.getRelativeFormat(a,d).format(c,{now:isFinite(l)?l:t.now()})}catch(e){}finally{g(p)}return String(c)}function _(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,r=o.format,c=r&&v(i,"number",r),l=s(o,xe,c);try{return t.getNumberFormat(a,l).format(n)}catch(e){}return String(n)}function w(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=s(o,je);try{return t.getPluralFormat(a,i).format(n)}catch(e){}return"other"}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,i=e.formats,r=e.messages,s=e.defaultLocale,c=e.defaultFormats,l=n.id,u=n.defaultMessage;U()(l,"[React Intl] An `id` must be provided to format a message.");var d=r&&r[l];if(!(Object.keys(o).length>0))return d||u||l;var p=void 0;if(d)try{p=t.getMessageFormat(d,a,i).format(o)}catch(e){}if(!p&&u)try{p=t.getMessageFormat(u,s,c).format(o)}catch(e){}return p||d||u||l}function C(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x(e,t,n,Object.keys(o).reduce(function(e,t){var n=o[t];return e[t]="string"==typeof n?r(n):n,e},{}))}function j(e){var t=Math.abs(e);return t<Ie?"second":t<Ee?"minute":t<Re?"hour":"day"}function O(e){switch(e){case"second":return ze;case"minute":return Ie;case"hour":return Ee;case"day":return Re;default:return qe}}function S(e,t){if(e===t)return!0;var n=new Date(e).getTime(),o=new Date(t).getTime();return isFinite(n)&&isFinite(o)&&n===o}n.d(t,"e",function(){return o}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return h}),n.d(t,"d",function(){return Te}),n.d(t,"a",function(){return Pe}),n.d(t,"c",function(){return Ae}),n.d(t,"b",function(){return He});var M=n(81),D=n.n(M),N=n(54),T=n.n(N),P=n(62),F=n.n(P),z=n(5),I=n.n(z),E=n(0),R=n.n(E),q=n(16),U=n.n(q),A=n(82),L=n.n(A),H={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),o=!n[1],a=Number(n[0])==e,i=a&&n[0].slice(-1),r=a&&n[0].slice(-2);return t?1==i&&11!=r?"one":2==i&&12!=r?"two":3==i&&13!=r?"few":"other":1==e&&o?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},B=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),G=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},X=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},Y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Q=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},V=I.a.bool,J=I.a.number,ee=I.a.string,te=I.a.func,ne=I.a.object,oe=I.a.oneOf,ae=I.a.shape,ie=I.a.any,re=I.a.oneOfType,se=oe(["best fit","lookup"]),ce=oe(["narrow","short","long"]),le=oe(["numeric","2-digit"]),ue=te.isRequired,de={locale:ee,formats:ne,messages:ne,textComponent:ie,defaultLocale:ee,defaultFormats:ne},pe={formatDate:ue,formatTime:ue,formatRelative:ue,formatNumber:ue,formatPlural:ue,formatMessage:ue,formatHTMLMessage:ue},he=ae($({},de,pe,{formatters:ne,now:ue})),me=(ee.isRequired,re([ee,ne]),{localeMatcher:se,formatMatcher:oe(["basic","best fit"]),timeZone:ee,hour12:V,weekday:ce,era:ce,year:le,month:oe(["numeric","2-digit","narrow","short","long"]),day:le,hour:le,minute:le,second:le,timeZoneName:oe(["short","long"])}),fe={localeMatcher:se,style:oe(["decimal","currency","percent"]),currency:ee,currencyDisplay:oe(["symbol","code","name"]),useGrouping:V,minimumIntegerDigits:J,minimumFractionDigits:J,maximumFractionDigits:J,minimumSignificantDigits:J,maximumSignificantDigits:J},ge={style:oe(["best fit","numeric"]),units:oe(["second","minute","hour","day","month","year"])},ve={style:oe(["cardinal","ordinal"])},ye=Object.keys(de),be={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},ke=/[&><"']/g,_e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,e);var o="ordinal"===n.style,a=f(m(t));this.format=function(e){return a(e,o)}},we=Object.keys(me),xe=Object.keys(fe),Ce=Object.keys(ge),je=Object.keys(ve),Oe={second:60,minute:60,hour:24,day:30,month:12},Se=Object.freeze({formatDate:y,formatTime:b,formatRelative:k,formatNumber:_,formatPlural:w,formatMessage:x,formatHTMLMessage:C}),Me=Object.keys(de),De=Object.keys(pe),Ne={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},Te=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));U()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var a=n.intl,i=void 0;i=isFinite(e.initialNow)?Number(e.initialNow):a?a.now():Date.now();var r=a||{},s=r.formatters,c=void 0===s?{getDateTimeFormat:L()(Intl.DateTimeFormat),getNumberFormat:L()(Intl.NumberFormat),getMessageFormat:L()(T.a),getRelativeFormat:L()(F.a),getPluralFormat:L()(_e)}:s;return o.state=$({},c,{now:function(){return o._didDisplay?Date.now():i}}),o}return Z(t,e),B(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=s(this.props,Me,e);for(var n in Ne)void 0===t[n]&&(t[n]=Ne[n]);if(!a(t.locale)){var o=t,i=(o.locale,o.defaultLocale),r=o.defaultFormats;t=$({},t,{locale:i,formats:r,messages:Ne.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return De.reduce(function(n,o){return n[o]=Se[o].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,o=n.now,a=X(n,["now"]);return{intl:$({},e,t,{formatters:a,now:o})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return E.Children.only(this.props.children)}}]),t}(E.Component);Te.displayName="IntlProvider",Te.contextTypes={intl:he},Te.childContextTypes={intl:he.isRequired};var Pe=function(e){function t(e,n){W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return c(n),o}return Z(t,e),B(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatDate,n=e.textComponent,o=this.props,a=o.value,i=o.children,r=t(a,this.props);return"function"==typeof i?i(r):R.a.createElement(n,null,r)}}]),t}(E.Component);Pe.displayName="FormattedDate",Pe.contextTypes={intl:he};var Fe=function(e){function t(e,n){W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return c(n),o}return Z(t,e),B(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatTime,n=e.textComponent,o=this.props,a=o.value,i=o.children,r=t(a,this.props);return"function"==typeof i?i(r):R.a.createElement(n,null,r)}}]),t}(E.Component);Fe.displayName="FormattedTime",Fe.contextTypes={intl:he};var ze=1e3,Ie=6e4,Ee=36e5,Re=864e5,qe=2147483647,Ue=function(e){function t(e,n){W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));c(n);var a=isFinite(e.initialNow)?Number(e.initialNow):n.intl.now();return o.state={now:a},o}return Z(t,e),B(t,[{key:"scheduleNextUpdate",value:function(e,t){var n=this;clearTimeout(this._timer);var o=e.value,a=e.units,i=e.updateInterval,r=new Date(o).getTime();if(i&&isFinite(r)){var s=r-t.now,c=O(a||j(s)),l=Math.abs(s%c),u=s<0?Math.max(i,c-l):Math.max(i,l);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},u)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(e){S(e.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var e=this.context.intl,t=e.formatRelative,n=e.textComponent,o=this.props,a=o.value,i=o.children,r=t(a,$({},this.props,this.state));return"function"==typeof i?i(r):R.a.createElement(n,null,r)}}]),t}(E.Component);Ue.displayName="FormattedRelative",Ue.contextTypes={intl:he},Ue.defaultProps={updateInterval:1e4};var Ae=function(e){function t(e,n){W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return c(n),o}return Z(t,e),B(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatNumber,n=e.textComponent,o=this.props,a=o.value,i=o.children,r=t(a,this.props);return"function"==typeof i?i(r):R.a.createElement(n,null,r)}}]),t}(E.Component);Ae.displayName="FormattedNumber",Ae.contextTypes={intl:he};var Le=function(e){function t(e,n){W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return c(n),o}return Z(t,e),B(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatPlural,n=e.textComponent,o=this.props,a=o.value,i=o.other,r=o.children,s=t(a,this.props),c=this.props[s]||i;return"function"==typeof r?r(c):R.a.createElement(n,null,c)}}]),t}(E.Component);Le.displayName="FormattedPlural",Le.contextTypes={intl:he},Le.defaultProps={style:"cardinal"};var He=function(e){function t(e,n){W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return c(n),o}return Z(t,e),B(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values;if(!l(e.values,t))return!0;for(var n=$({},e,{values:t}),o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return u.apply(void 0,[this,n].concat(a))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatMessage,n=e.textComponent,o=this.props,a=o.id,i=o.description,r=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d=void 0,p=void 0,h=void 0;if(s&&Object.keys(s).length>0){var m=Math.floor(1099511627776*Math.random()).toString(16),f=function(){var e=0;return function(){return"ELEMENT-"+m+"-"+(e+=1)}}();d="@__"+m+"__@",p={},h={},Object.keys(s).forEach(function(e){var t=s[e];if(Object(E.isValidElement)(t)){var n=f();p[e]=d+n+d,h[n]=t}else p[e]=t})}var g={id:a,description:i,defaultMessage:r},v=t(g,p||s),y=void 0;return y=h&&Object.keys(h).length>0?v.split(d).filter(function(e){return!!e}).map(function(e){return h[e]||e}):[v],"function"==typeof u?u.apply(void 0,Q(y)):E.createElement.apply(void 0,[l,null].concat(Q(y)))}}]),t}(E.Component);He.displayName="FormattedMessage",He.contextTypes={intl:he},He.defaultProps={values:{}};var Ke=function(e){function t(e,n){W(this,t);var o=Y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return c(n),o}return Z(t,e),B(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values;if(!l(e.values,t))return!0;for(var n=$({},e,{values:t}),o=arguments.length,a=Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return u.apply(void 0,[this,n].concat(a))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatHTMLMessage,n=e.textComponent,o=this.props,a=o.id,i=o.description,r=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d={id:a,description:i,defaultMessage:r},p=t(d,s);if("function"==typeof u)return u(p);var h={__html:p};return R.a.createElement(l,{dangerouslySetInnerHTML:h})}}]),t}(E.Component);Ke.displayName="FormattedHTMLMessage",Ke.contextTypes={intl:he},Ke.defaultProps={values:{}},o(H),o(D.a)},694:function(e,t,n){"use strict";function o(){var e=n(695).default,t=n(0),o=n(20),a=document.getElementById("mastodon-compose");if(null!==a){var i=JSON.parse(a.getAttribute("data-props"));o.render(t.createElement(e,i),a)}}function a(){(0,n(90).default)(o)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(76);Object(i.a)().then(a).catch(function(e){console.error(e)})},695:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return C});var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(9),m=n(122),f=n(30),g=n(6),v=n(7),y=n(696),b=n(11),k=Object(v.getLocale)(),_=k.localeData,w=k.messages;Object(g.e)(_);var x=Object(m.a)();b.d&&x.dispatch(Object(f.b)(b.d));var C=function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props.locale;return a()(g.d,{locale:e,messages:w},void 0,a()(h.Provider,{store:x},void 0,a()(y.a,{})))},t}(p.a.PureComponent)},696:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var o=n(2),a=n.n(o),i=n(1),r=n.n(i),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(331),m=n(241),f=n(244),g=n(246),v=function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){return a()("div",{},void 0,a()(h.a,{}),a()(m.a,{}),a()(g.a,{}),a()(f.a,{className:"loading-bar"}))},t}(p.a.PureComponent)}},[694]);
//# sourceMappingURL=share.js.map