t},getElementsByClassName:function(e){returnthis.querySelectorAll("."+e)},getElementsByTagNameNS:function(e,t){varn=neww,r=null;returnr="*"===e?"*"===t?s:c:"*"===t?u:l,n.length=h.call(this,r,0,n,e||null,t),n}};e.GetElementsByInterface=x,e.SelectorsInterface=C,e.MatchesInterface=H}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;returne}functionn(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;returne}varr=e.wrappers.NodeList,o={getfirstElementChild(){returnt(this.firstChild)},getlastElementChild(){returnn(this.lastChild)},getchildElementCount(){for(vare=0,t=this.firstElementChild;t;t=t.nextElementSibling)e++;returne},getchildren(){for(vare=newr,t=0,n=this.firstElementChild;n;n=n.nextElementSibling)e[t++]=n;returne.length=t,e},remove:function(){vare=this.parentNode;e&&e.removeChild(this)}},i={getnextElementSibling(){returnt(this.nextSibling)},getpreviousElementSibling(){returnn(this.previousSibling)}},a={getElementById:function(e){return/[ \t\n\r\f]/.test(e)?null:this.querySelector('[id="'+e+'"]')}};e.ChildNodeInterface=i,e.NonElementParentNodeInterface=a,e.ParentNodeInterface=o}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){r.call(this,e)}varn=e.ChildNodeInterface,r=e.wrappers.Node,o=e.enqueueMutation,i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=window.CharacterData;t.prototype=Object.create(r.prototype),i(t.prototype,{getnodeValue(){returnthis.data},setnodeValue(e){this.data=e},gettextContent(){returnthis.data},settextContent(e){this.data=e},getdata(){returns(this).data},setdata(e){vart=s(this).data;o(this,"characterData",{oldValue:t}),s(this).data=e}}),i(t.prototype,n),a(c,t,document.createTextNode("")),e.wrappers.CharacterData=t}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){returne>>>0}functionn(e){r.call(this,e)}varr=e.wrappers.CharacterData,o=(e.enqueueMutation,e.mixin),i=e.registerWrapper,a=window.Text;n.prototype=Object.create(r.prototype),o(n.prototype,{splitText:function(e){e=t(e);varn=this.data;if(e>n.length)thrownewError("IndexSizeError");varr=n.slice(0,e),o=n.slice(e);this.data=r;vari=this.ownerDocument.createTextNode(o);returnthis.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}}),i(a,n,document.createTextNode("")),e.wrappers.Text=n}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(e){returni(e).getAttribute("class")}functionn(e,t){a(e,"attributes",{name:"class",namespace:null,oldValue:t})}functionr(t){e.invalidateRendererBasedOnAttribute(t,"class")}functiono(e,o,i){vara=e.ownerElement_;if(null==a)returno.apply(e,i);vars=t(a),c=o.apply(e,i);returnt(a)!==s&&(n(a,s),r(a)),c}if(!window.DOMTokenList)returnvoidconsole.warn("Missing DOMTokenList prototype, please include a compatible classList polyfill such as http://goo.gl/uTcepH.");vari=e.unsafeUnwrap,a=e.enqueueMutation,s=DOMTokenList.prototype.add;DOMTokenList.prototype.add=function(){o(this,s,arguments)};varc=DOMTokenList.prototype.remove;DOMTokenList.prototype.remove=function(){o(this,c,arguments)};varu=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(){returno(this,u,arguments)}}(window.ShadowDOMPolyfill),function(e){"use strict";functiont(t,n){varr=t.parentNode;if(r&&r.shadowRoot){varo=e.getRendererForHost(r);o.dependsOnAttribute(n)&&o.invalidate()}}functionn(e,t,n){l(e,"attributes",{name:t,namespace:null,oldValue:n})}functionr(e){a.call(this,e)}varo=e.ChildNodeInterface,i=e.GetElementsByInterface,a=e.wrappers.Node,s=e.ParentNodeInterface,c=e.SelectorsInterface,u=e.MatchesInterface,l=(e.addWrapNodeListMethod,e.enqueueMutation),p=e.mixin,d=(e.oneOf,e.registerWrapper),f=e.unsafeUnwrap,h=e.wrappers,w=window.Element,m=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"].filter(function(e){returnw.prototype[e]}),g=m[0],v=w.prototype[g],b=newWeakMap;r.prototype=Object.create(a.prototype),p(r.prototype,{createShadowRoot:function(){vart=newh.ShadowRoot(this);f(this).polymerShadowRoot_=t;varn=e.ge