!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("lit"),require("lit/decorators.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js"));else if("function"==typeof define&&define.amd)define(["lit","lit/decorators.js","lit/directives/if-defined.js","lit/directives/repeat.js"],r);else{var t="object"==typeof exports?r(require("lit"),require("lit/decorators.js"),require("lit/directives/if-defined.js"),require("lit/directives/repeat.js")):r(e.lit,e["lit/decorators.js"],e["lit/directives/if-defined.js"],e["lit/directives/repeat.js"]);for(var i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,(e,r,t,i)=>(()=>{"use strict";var o,s={3445(e,r,t){t.r(r),t.d(r,{Breadcrumb:()=>i});var i,o=t(9609),s=t(4084),n=t(7161),a=t(429),l=t(291),d=t(8175),c=t(9485),u=function(e,r,t,i){var o,s=arguments.length,n=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,r,t,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(s<3?o(n):s>3?o(r,t,n):o(r,t))||n);return s>3&&n&&Object.defineProperty(r,t,n),n};!function(e){let r=class extends n.LitElement{constructor(){super(...arguments),this.label="Breadcrumb",this.navCrumbs=[]}static get styles(){return[s.A,c.A]}setLastAnchorCurrent(){var e;(null===(e=this.anchors)||void 0===e?void 0:e.length)&&this.anchors[this.anchors.length-1].setAttribute("aria-current","page")}firstUpdated(e){super.firstUpdated(e),this.setLastAnchorCurrent()}update(e){super.update(e),e.has("navCrumbs")&&this.setLastAnchorCurrent()}handleClick(e){var r;const t=e.target;if(null===(r=this.anchors)||void 0===r?void 0:r.length){const e=Array.from(this.anchors).indexOf(t);-1!==e&&(this.navCrumbs=[...this.navCrumbs.splice(0,e+1)])}}render(){return n.html`
        <nav aria-label="${(0,l.ifDefined)(this.label?this.label:void 0)}" class="md-breadcrumb">
          <ul @click=${e=>this.handleClick(e)}>
            ${(0,d.repeat)(this.navCrumbs,e=>e.link,e=>n.html`
                <li>
                  <a href="${e.link}"> ${e.label} </a>
                </li>
              `)}
          </ul>
        </nav>
      `}};u([(0,a.property)({type:String,attribute:"aria-label"})],r.prototype,"label",void 0),u([(0,a.property)({type:Array,attribute:"nav-crumbs",reflect:!0})],r.prototype,"navCrumbs",void 0),u([(0,a.queryAll)("a[href]")],r.prototype,"anchors",void 0),r=u([(0,o.w)("md-breadcrumb")],r),e.ELEMENT=r}(i||(i={}))},7161(r){r.exports=e},429(e){e.exports=r},291(e){e.exports=t},8175(e){e.exports=i}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return s[e](t,t.exports,a),t.exports}a.m=s,o=[],a.O=(e,r,t,i)=>{if(!r){var s=1/0;for(c=0;c<o.length;c++){for(var[r,t,i]=o[c],n=!0,l=0;l<r.length;l++)(!1&i||s>=i)&&Object.keys(a.O).every(e=>a.O[e](r[l]))?r.splice(l--,1):(n=!1,i<s&&(s=i));if(n){o.splice(c--,1);var d=t();void 0!==d&&(e=d)}}return e}i=i||0;for(var c=o.length;c>0&&o[c-1][2]>i;c--)o[c]=o[c-1];o[c]=[r,t,i]},a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={555:0};a.O.j=r=>0===e[r];var r=(r,t)=>{var i,o,[s,n,l]=t,d=0;if(s.some(r=>0!==e[r])){for(i in n)a.o(n,i)&&(a.m[i]=n[i]);if(l)var c=l(a)}for(r&&r(t);d<s.length;d++)o=s[d],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(c)},t=self["momentum-web-components-[id]"]=self["momentum-web-components-[id]"]||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})();var l=a.O(void 0,[9609,4084,9485],()=>a(3445));return a.O(l)})());