WRMCB=function(e){var c=console;if(c&&c.log&&c.error){c.log('Error running batched script.');c.error(e);}}
;
try {
/* module-key = 'confluence.web.resources:breadcrumbs', location = 'includes/js/breadcrumbs.js' */
define("confluence/breadcrumbs",["jquery","ajs","document","confluence/templates"],function(a,c,d,f){return{init:function(){a(d).on("click","#ellipsis",function(){try{a("#breadcrumbs .hidden-crumb").removeClass("hidden-crumb"),a(this).addClass("hidden-crumb"),c.trigger("breadcrumbs.expanded")}catch(e){c.log(e)}})},update:function(e,d){a.ajax({type:"GET",dataType:"json",data:{spaceKey:e,title:d},url:c.contextPath()+"/pages/breadcrumb.action",error:function(){},success:function(b){b&&b.breadcrumbs&&
a("ol#breadcrumbs").html(f.Breadcrumbs.render({breadcrumbs:b.breadcrumbs,ellipsisIndex:b.ellipsisIndex,ellipsisLength:b.ellipsisLength}))}})}}});require("confluence/module-exporter").safeRequire("confluence/breadcrumbs",function(a){require("ajs").toInit(a.init)});
}catch(e){WRMCB(e)};
;
try {
/* module-key = 'confluence.web.resources:breadcrumbs', location = 'includes/soy/breadcrumbs.soy' */
// This file was automatically generated from breadcrumbs.soy.
// Please don't edit this file by hand.

/**
 * @fileoverview Templates in namespace Confluence.Templates.Breadcrumbs.
 */

if (typeof Confluence == 'undefined') { var Confluence = {}; }
if (typeof Confluence.Templates == 'undefined') { Confluence.Templates = {}; }
if (typeof Confluence.Templates.Breadcrumbs == 'undefined') { Confluence.Templates.Breadcrumbs = {}; }


Confluence.Templates.Breadcrumbs.render = function(opt_data, opt_ignored) {
  var output = '';
  var breadcrumbList3 = opt_data.breadcrumbs;
  var breadcrumbListLen3 = breadcrumbList3.length;
  for (var breadcrumbIndex3 = 0; breadcrumbIndex3 < breadcrumbListLen3; breadcrumbIndex3++) {
    var breadcrumbData3 = breadcrumbList3[breadcrumbIndex3];
    output += ((breadcrumbIndex3 == opt_data.ellipsisIndex) ? '<li id="ellipsis" title="Show all breadcrumbs"><span><strong>\u2026</strong></span></li>' : '') + '<li class="' + ((breadcrumbIndex3 == 0) ? 'first' : '') + ((breadcrumbIndex3 >= opt_data.ellipsisIndex && breadcrumbIndex3 < opt_data.ellipsisIndex + opt_data.ellipsisLength) ? 'hidden-crumb' : '') + '"><span><a href="' + soy.$$escapeHtml(breadcrumbData3.url) + '" target="_blank"> ' + soy.$$escapeHtml(breadcrumbData3.title) + '</a></span></li>';
  }
  return output;
};
if (goog.DEBUG) {
  Confluence.Templates.Breadcrumbs.render.soyTemplateName = 'Confluence.Templates.Breadcrumbs.render';
}

}catch(e){WRMCB(e)};