!function(){"use strict";vart={8473:function(t,e,n){varr=n(2667),o=n(2259);(0,r.X)("page-profile-home",o.G)},1346:function(t,e,n){varr=n(5466),o=n(4547),i=r.createContext((0,o.v)(window.MediaCMS).api);i.Consumer,e.Z=i},2880:function(t,e,n){varr=n(5466),o=n(4547),i=r.createContext((0,o.v)(window.MediaCMS).member);i.Consumer,e.Z=i},6203:function(t,e,n){n(2322),n(9268),n(3233),e.Z=function(){vart,e,n,r=null;if(document.cookie&&""!==document.cookie)for(e=document.cookie.split(";"),t=0;t<e.length;){if("csrftoken="===(n=e[t].trim()).substring(0,10)){r=decodeURIComponent(n.substring(10));break}t+=1}returnr}},8420:function(t,e,n){n.d(e,{A_:function(){returnr.Z},GH:function(){returno.Z},Jl:function(){returni.Z},v$:function(){returna.Z},uf:function(){returnu.Z},$4:function(){returnc.Z},m5:function(){returnf.Z}});varr=n(1712),o=(n(9752),n(84)),i=n(9009),a=n(1438),u=n(4135),c=n(3140),f=(n(1752),n(7514),n(1569),n(6203));n(7188)},9752:function(t,e,n){n(6394),n(5334),n(7588),n(4559),n(6028)},8170:function(t,e,n){n(4458),n(5101),n(2322),n(9006),n(9268),n(5466);varr=n(1590),o=n.n(r),i=n(8420),a=(n(4426),n(4547));functionu(t){return(u="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft})(t)}functionc(t,e){for(varn=0;n<e.length;n++){varr=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}functionf(t,e){return(f=Object.setPrototypeOf||function(t,e){returnt.__proto__=e,t})(t,e)}functions(t,e){return!e||"object"!==u(e)&&"function"!=typeofe?l(t):e}functionl(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}functionh(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){returnt.__proto__||Object.getPrototypeOf(t)})(t)}varp=function(t){!function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(p,t);vare,n,r,o,u=(r=p,o=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnDate.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}(),function(){vart,e=h(r);if(o){varn=h(this).constructor;t=Reflect.construct(e,arguments,n)}elset=e.apply(this,arguments);returns(this,t)});functionp(){vart;returnfunction(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}(this,p),(t=u.call(this)).mediacms_config=(0,a.v)(window.MediaCMS),t.authorData=null,t.authorQuery=void0,t.onDataLoad=t.onDataLoad.bind(l(t)),t.onDataLoadFail=t.onDataLoadFail.bind(l(t)),t.removeProfileResponse=t.removeProfileResponse.bind(l(t)),t.removeProfileFail=t.removeProfileFail.bind(l(t)),t.removingProfile=!1,t}returne=p,(n=[{key:"removeProfileResponse",value:function(t){t&&204===t.status&&this.emit("profile_delete",this.authorData.username)}},{key:"removeProfileFail",value:function(){this.emit("profile_delete_fail",this.authorData.username),setTimeout((function(t){this.removingProfile=!1}),100,this)}},{key:"get",value:function(t){switch(t){case"author-data":returnthis.authorData;case"author-query":if(void0===this.authorQuery){this.authorQuery=null;vare=window.location.search;if(e&&""!==e){e=e.split("?")[1].split("=");for(varn=0;n<e.length;){if("aq"===e[n]){this.authorQuery=e[n+1]||null;break}n+=1}}}returnthis.authorQuery}}},{key:"onDataLoad",value:function(t){t&&t.data&&(this.authorData=t.data,this.authorData.id=this.authorData.username,this.authorData.name=""!==this.authorData.name?this.authorData.name:this.authorData.username,this.emit("load-author-data"))}},{key:"onDataLoadFail",value:function(t){}},{key:"actions_handler",value:function(t){switch(t.type){case"REMOVE_PROFILE":if(this.removingProfile)return;this.removingProfile=!0;vare=