(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{13:function(t,e,n){"use strict";t.exports=function(){}},15:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"c",function(){return i}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"f",function(){return l}),n.d(e,"d",function(){return s});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},a=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},i=function(t,e){return e(window.confirm(t))},u=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},c=function(){return-1===window.navigator.userAgent.indexOf("Trident")},l=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},s=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},16:function(t,e,n){"use strict";function m(t){return"/"===t.charAt(0)}function p(t,e){for(var n=e,r=n+1,o=t.length;r=r.length)return""===e?r.length:-1;if(""===e)return n;var o=e.match(c.default),a=!1,i=void 0;for(i=n;i",null==e||null==n||y.isCrossDomain(a)||(o+=""),o+='',r.method="post",r.action=a,r.target=this.target,r.innerHTML=o,r.style.display="none",document.body.appendChild(r),r.querySelector('[type="submit"]').click(),u(t)}}.call(this),function(){var c,l,s,f,d,m,p,h,b,v=[].slice;m=y.matches,s=y.getData,h=y.setData,l=y.fire,b=y.stopEverything,c=y.ajax,f=y.isCrossDomain,p=y.serializeElement,d=function(t){var e;return null!=(e=t.getAttribute("data-remote"))&&"false"!==e},y.handleRemote=function(t){var e,n,r,o,a,i,u;return!d(o=this)||(l(o,"ajax:before")?(u=o.getAttribute("data-with-credentials"),r=o.getAttribute("data-type")||"script",m(o,y.formSubmitSelector)?(e=s(o,"ujs:submit-button"),a=s(o,"ujs:submit-button-formmethod")||o.method,i=s(o,"ujs:submit-button-formaction")||o.getAttribute("action")||location.href,"GET"===a.toUpperCase()&&(i=i.replace(/\?.*$/,"")),"multipart/form-data"===o.enctype?(n=new FormData(o),null!=e&&n.append(e.name,e.value)):n=p(o,e),h(o,"ujs:submit-button",null),h(o,"ujs:submit-button-formmethod",null),h(o,"ujs:submit-button-formaction",null)):n=m(o,y.buttonClickSelector)||m(o,y.inputChangeSelector)?(a=o.getAttribute("data-method"),i=o.getAttribute("data-url"),p(o,o.getAttribute("data-params"))):(a=o.getAttribute("data-method"),i=y.href(o),o.getAttribute("data-params")),c({type:a||"GET",url:i,data:n,dataType:r,beforeSend:function(t,e){return l(o,"ajax:beforeSend",[t,e])?l(o,"ajax:send",[t]):(l(o,"ajax:stopped"),!1)},success:function(){var t;return t=1<=arguments.length?v.call(arguments,0):[],l(o,"ajax:success",t)},error:function(){var t;return t=1<=arguments.length?v.call(arguments,0):[],l(o,"ajax:error",t)},complete:function(){var t;return t=1<=arguments.length?v.call(arguments,0):[],l(o,"ajax:complete",t)},crossDomain:f(i),withCredentials:null!=u&&"false"!==u}),b(t)):(l(o,"ajax:stopped"),!1))},y.formSubmitButtonClick=function(t){var e,n;if(n=(e=this).form)return e.name&&h(n,"ujs:submit-button",{name:e.name,value:e.value}),h(n,"ujs:formnovalidate-button",e.formNoValidate),h(n,"ujs:submit-button-formaction",e.getAttribute("formaction")),h(n,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},y.handleMetaClick=function(t){var e,n;if(n=(this.getAttribute("data-method")||"GET").toUpperCase(),e=this.getAttribute("data-params"),(t.metaKey||t.ctrlKey)&&"GET"===n&&!e)return t.stopImmediatePropagation()}}.call(this),function(){var t,r,e,n,o,a,i,u,c,l,s,f,d,m;if(a=y.fire,e=y.delegate,u=y.getData,t=y.$,m=y.refreshCSRFTokens,r=y.CSRFProtection,o=y.enableElement,n=y.disableElement,l=y.handleDisabledElement,c=y.handleConfirm,d=y.handleRemote,i=y.formSubmitButtonClick,s=y.handleMetaClick,f=y.handleMethod,"undefined"!=typeof jQuery&&null!==jQuery&&null!=jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=y,jQuery.ajaxPrefilter(function(t,e,n){if(!t.crossDomain)return r(n)})}y.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",function(){return t(y.formEnableSelector).forEach(function(t){if(u(t,"ujs:disabled"))return o(t)}),t(y.linkDisableSelector).forEach(function(t){if(u(t,"ujs:disabled"))return o(t)})}),e(document,y.linkDisableSelector,"ajax:complete",o),e(document,y.linkDisableSelector,"ajax:stopped",o),e(document,y.buttonDisableSelector,"ajax:complete",o),e(document,y.buttonDisableSelector,"ajax:stopped",o),e(document,y.linkClickSelector,"click",l),e(document,y.linkClickSelector,"click",c),e(document,y.linkClickSelector,"click",s),e(document,y.linkClickSelector,"click",n),e(document,y.linkClickSelector,"click",d),e(document,y.linkClickSelector,"click",f),e(document,y.buttonClickSelector,"click",l),e(document,y.buttonClickSelector,"click",c),e(document,y.buttonClickSelector,"click",n),e(document,y.buttonClickSelector,"click",d),e(document,y.inputChangeSelector,"change",l),e(document,y.inputChangeSelector,"change",c),e(document,y.inputChangeSelector,"change",d),e(document,y.formSubmitSelector,"submit",l),e(document,y.formSubmitSelector,"submit",c),e(document,y.formSubmitSelector,"submit",d),e(document,y.formSubmitSelector,"submit",function(t){return setTimeout(function(){return n(t)},13)}),e(document,y.formSubmitSelector,"ajax:send",n),e(document,y.formSubmitSelector,"ajax:complete",o),e(document,y.formInputClickSelector,"click",l),e(document,y.formInputClickSelector,"click",c),e(document,y.formInputClickSelector,"click",i),document.addEventListener("DOMContentLoaded",m),window._rails_loaded=!0},window.Rails===y&&a(document,"rails:attachBindings")&&y.start()}.call(this)}).call(this),t.exports?t.exports=y:void 0===(o="function"==typeof(r=y)?r.call(e,n,e,t):r)||(t.exports=o)}).call(this)},8:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"f",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"e",function(){return i}),n.d(e,"g",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"b",function(){return l});var r=function(t){return"/"===t.charAt(0)?t:"/"+t},o=function(t){return"/"===t.charAt(0)?t.substr(1):t},a=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},i=function(t,e){return a(t,e)?t.substr(e.length):t},u=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},c=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var a=e.indexOf("?");return-1!==a&&(n=e.substr(a),e=e.substr(0,a)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},l=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}},823:function(t,e,n){"use strict";n.r(e);n(73),n(175);var r=n(79).delegate;n(392).length;r(document,".webapp-btn","click",function(t){var e=t.target;return 0!==t.button||(window.location.href=e.href,!1)}),r(document,".status__content__spoiler-link","click",function(t){var e=t.target,n=e.parentNode.parentNode.querySelector(".e-content");return"block"===n.style.display?(n.style.display="none",e.parentNode.style.marginBottom=0):(n.style.display="block",e.parentNode.style.marginBottom=null),!1}),r(document,".modal-button","click",function(t){var e;t.preventDefault(),e="A"!==t.target.nodeName?t.target.parentNode.href:t.target.href,window.open(e,"mastodon-intent","width=445,height=600,resizable=no,menubar=no,status=no,scrollbars=yes")})}},[[823,0]]]); //# sourceMappingURL=public.js.map