WRMCB=function(e){var c=console;if(c&&c.log&&c.error){c.log('Error running batched script.');c.error(e);}}
;
try {
/* module-key = 'jira.webresources:bigpipe-js', location = '/includes/jira/common/bigpipe.js' */
define("jira/bigpipe/element",["jquery","wrm/data","jira/skate","jira/util/logger"],function(e,t,r,n){"use strict";return r("big-pipe",{attached:function(i){function a(){var e=new CustomEvent("success");i.dispatchEvent(e)}function o(e,t){var r=new CustomEvent("error");r.data={event:e,signature:t},i.dispatchEvent(r)}function d(e,t){s("error"),o(e,t)}function s(e){"performance"in window&&performance.mark&&performance.mark(c+e)}var p=i.getAttribute("data-id");if(null===p)return n.error("No data-id attribute provided for tag <big-pipe/> for element:",i),void d({name:"NoPipeIdError",message:"Unable to render element. Element does not contain a pipe id.",element:i},"no.pipe.id");var c="bigPipe."+p+".";s("start");var u=t.claim(p);u?function(t){try{var o=e(t);e(i).replaceWith(o).each(function(){r.init(this)}),s("end"),a()}catch(e){n.error("Error while parsing html: "+e),d(e,"parsing")}}(u):d({name:"NoDataError",message:"BigPipe response is empty."},"no.data")},detached:function(){},type:r.type.ELEMENT,resolvedAttribute:"resolved",unresolvedAttribute:"unresolved"})});
}catch(e){WRMCB(e)};