Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Side by Side Diff: third_party/polymer/components/webcomponentsjs/webcomponents-lite.min.js

Issue 2113853002: Run bower update (Closed) Base URL: https://github.com/catapult-project/catapult@polymer10-migration
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * @license 2 * @license
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt 4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt
6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt 6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt
7 * Code distributed by Google as part of the polymer project is also 7 * Code distributed by Google as part of the polymer project is also
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt
9 */ 9 */
10 // @version 0.7.22 10 // @version 0.6.1
11 !function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomp onents-lite.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOp ts){if(location.search.slice(1).split("&").forEach(function(e){var t,o=e.split(" =");o[0]&&(t=o[0].match(/wc-(.+)/))&&(n[t[1]]=o[1]||!0)}),t)for(var o,r=0;o=t.at tributes[r];r++)"src"!==o.name&&(n[o.name]=o.value||!0);if(n.log&&n.log.split){v ar i=n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}else n.log={} }n.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.Cus tomElements.flags.register=n.register),WebComponents.flags=n}(),function(e){"use strict";function t(e){return void 0!==h[e]}function n(){s.call(this),this._isIn valid=!0}function o(e){return""==e&&n.call(this),e.toLowerCase()}function r(e){v ar t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:en codeURIComponent(e)}function i(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1== [34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function a(e,a,s){function c (e){g.push(e)}var d=a||"scheme start",l=0,u="",w=!1,_=!1,g=[];e:for(;(e[l-1]!=p| |0==l)&&!this._isInvalid;){var b=e[l];switch(d){case"scheme start":if(!b||!m.tes t(b)){if(a){c("Invalid scheme.");break e}u="",d="no scheme";continue}u+=b.toLowe rCase(),d="scheme";break;case"scheme":if(b&&v.test(b))u+=b.toLowerCase();else{if (":"!=b){if(a){if(p==b)break e;c("Code point not allowed in scheme: "+b);break e }u="",l=0,d="no scheme";continue}if(this._scheme=u,u="",a)break e;t(this._scheme )&&(this._isRelative=!0),d="file"==this._scheme?"relative":this._isRelative&&s&& s._scheme==this._scheme?"relative or authority":this._isRelative?"authority firs t slash":"scheme data"}break;case"scheme data":"?"==b?(this._query="?",d="query" ):"#"==b?(this._fragment="#",d="fragment"):p!=b&&" "!=b&&"\n"!=b&&"\r"!=b&& (this._schemeData+=r(b));break;case"no scheme":if(s&&t(s._scheme)){d="relative"; continue}c("Missing scheme."),n.call(this);break;case"relative or authority":if( "/"!=b||"/"!=e[l+1]){c("Expected /, got: "+b),d="relative";continue}d="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem e&&(this._scheme=s._scheme),p==b){this._host=s._host,this._port=s._port,this._pa th=s._path.slice(),this._query=s._query,this._username=s._username,this._passwor d=s._password;break e}if("/"==b||"\\"==b)"\\"==b&&c("\\ is an invalid code point ."),d="relative slash";else if("?"==b)this._host=s._host,this._port=s._port,this ._path=s._path.slice(),this._query="?",this._username=s._username,this._password =s._password,d="query";else{if("#"!=b){var y=e[l+1],E=e[l+2];("file"!=this._sche me||!m.test(b)||":"!=y&&"|"!=y||p!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._h ost=s._host,this._port=s._port,this._username=s._username,this._password=s._pass word,this._path=s._path.slice(),this._path.pop()),d="relative path";continue}thi s._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._que ry,this._fragment="#",this._username=s._username,this._password=s._password,d="f ragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(t his._host=s._host,this._port=s._port,this._username=s._username,this._password=s ._password),d="relative path";continue}"\\"==b&&c("\\ is an invalid code point." ),d="file"==this._scheme?"file host":"authority ignore slashes";break;case"autho rity first slash":if("/"!=b){c("Expected '/', got: "+b),d="authority ignore slas hes";continue}d="authority second slash";break;case"authority second slash":if(d ="authority ignore slashes","/"!=b){c("Expected '/', got: "+b);continue}break;ca se"authority ignore slashes":if("/"!=b&&"\\"!=b){d="authority";continue}c("Expec ted authority, got: "+b);break;case"authority":if("@"==b){w&&(c("@ already seen. "),u+="%40"),w=!0;for(var L=0;L<u.length;L++){var N=u[L];if(" "!=N&&"\n"!=N&&" \r"!=N)if(":"!=N||null!==this._password){var M=r(N);null!==this._password?this._ password+=M:this._username+=M}else this._password="";else c("Invalid whitespace in authority.")}u=""}else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){l-=u.length, u="",d="host";continue}u+=b}break;case"file host":if(p==b||"/"==b||"\\"==b||"?"= =b||"#"==b){2!=u.length||!m.test(u[0])||":"!=u[1]&&"|"!=u[1]?0==u.length?d="rela tive path start":(this._host=o.call(this,u),u="",d="relative path start"):d="rel ative path";continue}" "==b||"\n"==b||"\r"==b?c("Invalid whitespace in file hos t."):u+=b;break;case"host":case"hostname":if(":"!=b||_){if(p==b||"/"==b||"\\"==b ||"?"==b||"#"==b){if(this._host=o.call(this,u),u="",d="relative path start",a)br eak e;continue}" "!=b&&"\n"!=b&&"\r"!=b?("["==b?_=!0:"]"==b&&(_=!1),u+=b) :c("Invalid code point in host/hostname: "+b)}else if(this._host=o.call(this,u), u="",d="port","hostname"==a)break e;break;case"port":if(/[0-9]/.test(b))u+=b;els e{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b||a){if(""!=u){var T=parseInt(u,10);T! =h[this._scheme]&&(this._port=T+""),u=""}if(a)break e;d="relative path start";co ntinue}" "==b||"\n"==b||"\r"==b?c("Invalid code point in port: "+b):n.cal l(this)}break;case"relative path start":if("\\"==b&&c("'\\' not allowed in path. "),d="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":if(p!=b& &"/"!=b&&"\\"!=b&&(a||"?"!=b&&"#"!=b))" "!=b&&"\n"!=b&&"\r"!=b&&(u+=r(b));else{" \\"==b&&c("\\ not allowed in relative path.");var O;(O=f[u.toLowerCase()])&&(u=O ),".."==u?(this._path.pop(),"/"!=b&&"\\"!=b&&this._path.push("")):"."==u&&"/"!=b &&"\\"!=b?this._path.push(""):"."!=u&&("file"==this._scheme&&0==this._path.lengt h&&2==u.length&&m.test(u[0])&&"|"==u[1]&&(u=u[0]+":"),this._path.push(u)),u=""," ?"==b?(this._query="?",d="query"):"#"==b&&(this._fragment="#",d="fragment")}brea k;case"query":a||"#"!=b?p!=b&&" "!=b&&"\n"!=b&&"\r"!=b&&(this._query+=i(b)):(thi s._fragment="#",d="fragment");break;case"fragment":p!=b&&" "!=b&&"\n"!=b&&" \r"!=b&&(this._fragment+=b)}l++}}function s(){this._scheme="",this._schemeData=" ",this._username="",this._password=null,this._host="",this._port="",this._path=[ ],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}functi on c(e,t){void 0===t||t instanceof c||(t=new c(String(t))),this._url=e,s.call(th is);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");a.call(this,n,null,t)}var d=!1;if(!e.forceJURL)try{var l=new URL("b","http://a");l.pathname="c%20d",d="ht tp://a/c%20d"===l.href}catch(u){}if(!d){var h=Object.create(null);h.ftp=21,h.fil e=0,h.gopher=70,h.http=80,h.https=443,h.ws=80,h.wss=443;var f=Object.create(null );f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var p=void 0,m=/[a -zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:function(){return this.href} ,get href(){if(this._isInvalid)return this._url;var e="";return""==this._usernam e&&null==this._password||(e=this._username+(null!=this._password?":"+this._passw ord:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+ this._query+this._fragment},set href(e){s.call(this),a.call(this,e)},get protoco l(){return this._scheme+":"},set protocol(e){this._isInvalid||a.call(this,e+":", "scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+ this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&a.call(th is,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid &&this._isRelative&&a.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"port")},get pathname (){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._sch emeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],a.ca ll(this,e,"relative path start"))},get search(){return this._isInvalid||!this._q uery||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isR elative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),a.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fr agment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1 )),a.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._sch eme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"ma ilto":return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var w=e.URL;w& &(c.createObjectURL=function(e){return w.createObjectURL.apply(w,arguments)},c.r evokeObjectURL=function(e){w.revokeObjectURL(e)}),e.URL=c}}(self),"undefined"==t ypeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=functi on(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};n.prototype={set:func tion(t,n){var o=t[this.name];return o&&o[0]===t?o[1]=n:e(t,this.name,{value:[t,n ],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1 ]:void 0},"delete":function(e){var t=e[this.name];return t&&t[0]===e?(t[0]=t[1]= void 0,!0):!1},has:function(e){var t=e[this.name];return t?t[0]===e:!1}},window. WeakMap=n}(),function(e){function t(e){b.push(e),g||(g=!0,m(o))}function n(e){re turn window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}funct ion o(){g=!1;var e=b;b=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e .forEach(function(e){var n=e.takeRecords();r(e),n.length&&(e.callback_(n,e),t=!0 )}),t&&o()}function r(e){e.nodes_.forEach(function(t){var n=v.get(t);n&&n.forEac h(function(t){t.observer===e&&t.removeTransientObservers()})})}function i(e,t){f or(var n=e;n;n=n.parentNode){var o=v.get(n);if(o)for(var r=0;r<o.length;r++){var i=o[r],a=i.options;if(n===e||a.subtree){var s=t(a);s&&i.enqueue(s)}}}}function a(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++y}function s(e ,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previ ousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeName space=null,this.oldValue=null}function c(e){var t=new s(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previo usSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attrib uteName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}functi on d(e,t){return E=new s(e,t)}function l(e){return L?L:(L=c(E),L.oldValue=e,L)}f unction u(){E=L=void 0}function h(e){return e===L||e===E}function f(e,t){return e===t?e:L&&h(e)?L:null}function p(e,t,n){this.observer=e,this.target=t,this.opti ons=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var m,v=new WeakM ap;if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;else if(window.setIm mediate)m=window.setImmediate;else{var w=[],_=String(Math.random());window.addEv entListener("message",function(e){if(e.data===_){var t=w;w=[],t.forEach(function (e){e()})}}),m=function(e){w.push(e),window.postMessage(_,"*")}}var g=!1,b=[],y= 0;a.prototype={observe:function(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t.c haracterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attribute Filter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw ne w SyntaxError;var o=v.get(e);o||v.set(e,o=[]);for(var r,i=0;i<o.length;i++)if(o[ i].observer===this){r=o[i],r.removeListeners(),r.options=t;break}r||(r=new p(thi s,e,t),o.push(r),this.nodes_.push(e)),r.addListeners()},disconnect:function(){th is.nodes_.forEach(function(e){for(var t=v.get(e),n=0;n<t.length;n++){var o=t[n]; if(o.observer===this){o.removeListeners(),t.splice(n,1);break}}},this),this.reco rds_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}}; var E,L;p.prototype={enqueue:function(e){var n=this.observer.records_,o=n.length ;if(n.length>0){var r=n[o-1],i=f(r,e);if(i)return void(n[o-1]=i)}else t(this.obs erver);n[o]=e},addListeners:function(){this.addListeners_(this.target)},addListe ners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrMo dified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified", this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList ||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:func tion(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=th is.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.char acterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList &&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.r emoveEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){i f(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){ var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(funct ion(e){this.removeListeners_(e);for(var t=v.get(e),n=0;n<t.length;n++)if(t[n]=== this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediat ePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.na mespaceURI,o=e.target,r=new d("attributes",o);r.attributeName=t,r.attributeNames pace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(o,function (e){return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.att ributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void 0:e.attributeOld Value?l(a):r});break;case"DOMCharacterDataModified":var o=e.target,r=d("characte rData",o),a=e.prevValue;i(o,function(e){return e.characterData?e.characterDataOl dValue?l(a):r:void 0});break;case"DOMNodeRemoved":this.addTransientObserver(e.ta rget);case"DOMNodeInserted":var s,c,h=e.target;"DOMNodeInserted"===e.type?(s=[h] ,c=[]):(s=[],c=[h]);var f=h.previousSibling,p=h.nextSibling,r=d("childList",e.ta rget.parentNode);r.addedNodes=s,r.removedNodes=c,r.previousSibling=f,r.nextSibli ng=p,i(e.relatedNode,function(e){return e.childList?r:void 0})}u()}},e.JsMutatio nObserver=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(self ),function(){function e(e){switch(e){case"&":return"&amp;";case"<":return"&lt;"; case">":return"&gt;";case" ":return"&nbsp;"}}function t(t){return t.replace(u,e) }var n="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgen t)&&!function(){var e=document.importNode;document.importNode=function(){var t=e .apply(document,arguments);if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var n=do cument.createDocumentFragment();return n.appendChild(t),n}return t}}();var o=fun ction(){if(!n){var e=document.createElement("template"),t=document.createElement ("template");t.content.appendChild(document.createElement("div")),e.content.appe ndChild(t);var o=e.cloneNode(!0);return 0===o.content.childNodes.length||0===o.c ontent.firstChild.content.childNodes.length}}(),r="template",i=function(){};if(n ){var a=document.implementation.createHTMLDocument("template"),s=!0,c=document.c reateElement("style");c.textContent=r+"{display:none;}";var d=document.head;d.in sertBefore(c,d.firstElementChild),i.prototype=Object.create(HTMLElement.prototyp e),i.decorate=function(e){if(!e.content){e.content=a.createDocumentFragment();fo r(var n;n=e.firstChild;)e.content.appendChild(n);if(e.cloneNode=function(e){retu rn i.cloneNode(this,e)},s)try{Object.defineProperty(e,"innerHTML",{get:function( ){for(var e="",n=this.content.firstChild;n;n=n.nextSibling)e+=n.outerHTML||t(n.d ata);return e},set:function(e){for(a.body.innerHTML=e,i.bootstrap(a);this.conten t.firstChild;)this.content.removeChild(this.content.firstChild);for(;a.body.firs tChild;)this.content.appendChild(a.body.firstChild)},configurable:!0})}catch(o){ s=!1}i.bootstrap(e.content)}},i.bootstrap=function(e){for(var t,n=e.querySelecto rAll(r),o=0,a=n.length;a>o&&(t=n[o]);o++)i.decorate(t)},document.addEventListene r("DOMContentLoaded",function(){i.bootstrap(document)});var l=document.createEle ment;document.createElement=function(){"use strict";var e=l.apply(document,argum ents);return"template"===e.localName&&i.decorate(e),e};var u=/[&\u00A0<>]/g}if(n ||o){var h=Node.prototype.cloneNode;i.cloneNode=function(e,t){var n=h.call(e,!1) ;return this.decorate&&this.decorate(n),t&&(n.content.appendChild(h.call(e.conte nt,!0)),this.fixClonedDom(n.content,e.content)),n},i.fixClonedDom=function(e,t){ if(t.querySelectorAll)for(var n,o,i=t.querySelectorAll(r),a=e.querySelectorAll(r ),s=0,c=a.length;c>s;s++)o=i[s],n=a[s],this.decorate&&this.decorate(o),n.parentN ode.replaceChild(o.cloneNode(!0),n)};var f=document.importNode;Node.prototype.cl oneNode=function(e){var t=h.call(this,e);return e&&i.fixClonedDom(t,this),t},doc ument.importNode=function(e,t){if(e.localName===r)return i.cloneNode(e,t);var n= f.call(document,e,t);return t&&i.fixClonedDom(n,e),n},o&&(HTMLTemplateElement.pr ototype.cloneNode=function(e){return i.cloneNode(this,e)})}n&&(window.HTMLTempla teElement=i)}(),function(e){"use strict";if(!window.performance){var t=Date.now( );window.performance={now:function(){return Date.now()-t}}}window.requestAnimati onFrame||(window.requestAnimationFrame=function(){var e=window.webkitRequestAnim ationFrame||window.mozRequestAnimationFrame;return e?function(t){return e(functi on(){t(performance.now())})}:function(e){return window.setTimeout(e,1e3/60)}}()) ,window.cancelAnimationFrame||(window.cancelAnimationFrame=function(){return win dow.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clea rTimeout(e)}}());var n=function(){var e=document.createEvent("Event");return e.i nitEvent("foo",!0,!0),e.preventDefault(),e.defaultPrevented}();if(!n){var o=Even t.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancel able&&(o.call(this),Object.defineProperty(this,"defaultPrevented",{get:function( ){return!0},configurable:!0}))}}var r=/Trident/.test(navigator.userAgent);if((!w indow.CustomEvent||r&&"function"!=typeof window.CustomEvent)&&(window.CustomEven t=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initC ustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.Custom Event.prototype=window.Event.prototype),!window.Event||r&&"function"!=typeof win dow.Event){var i=window.Event;window.Event=function(e,t){t=t||{};var n=document. createEvent("Event");return n.initEvent(e,Boolean(t.bubbles),Boolean(t.cancelabl e)),n},window.Event.prototype=i.prototype}}(window.WebComponents),window.HTMLImp orts=window.HTMLImports||{flags:{}},function(e){function t(e,t){t=t||p,o(functio n(){i(e,t)},t)}function n(e){return"complete"===e.readyState||e.readyState===w}f unction o(e,t){if(n(t))e&&e();else{var r=function(){"complete"!==t.readyState&&t .readyState!==w||(t.removeEventListener(_,r),o(e,t))};t.addEventListener(_,r)}}f unction r(e){e.target.__loaded=!0}function i(e,t){function n(){c==d&&e&&e({allIm ports:s,loadedImports:l,errorImports:u})}function o(e){r(e),l.push(this),c++,n() }function i(e){u.push(this),c++,n()}var s=t.querySelectorAll("link[rel=import]") ,c=0,d=s.length,l=[],u=[];if(d)for(var h,f=0;d>f&&(h=s[f]);f++)a(h)?(l.push(this ),c++,n()):(h.addEventListener("load",o),h.addEventListener("error",i));else n() }function a(e){return u?e.__loaded||e["import"]&&"loading"!==e["import"].readySt ate:e.__importParsed}function s(e){for(var t,n=0,o=e.length;o>n&&(t=e[n]);n++)c( t)&&d(t)}function c(e){return"link"===e.localName&&"import"===e.rel}function d(e ){var t=e["import"];t?r({target:e}):(e.addEventListener("load",r),e.addEventList ener("error",r))}var l="import",u=Boolean(l in document.createElement("link")),h =Boolean(window.ShadowDOMPolyfill),f=function(e){return h?window.ShadowDOMPolyfi ll.wrapIfNeeded(e):e},p=f(document),m={get:function(){var e=window.HTMLImports.c urrentScript||document.currentScript||("complete"!==document.readyState?document .scripts[document.scripts.length-1]:null);return f(e)},configurable:!0};Object.d efineProperty(document,"_currentScript",m),Object.defineProperty(p,"_currentScri pt",m);var v=/Trident/.test(navigator.userAgent),w=v?"complete":"interactive",_= "readystatechange";u&&(new MutationObserver(function(e){for(var t,n=0,o=e.length ;o>n&&(t=e[n]);n++)t.addedNodes&&s(t.addedNodes)}).observe(document.head,{childL ist:!0}),function(){if("loading"===document.readyState)for(var e,t=document.quer ySelectorAll("link[rel=import]"),n=0,o=t.length;o>n&&(e=t[n]);n++)d(e)}()),t(fun ction(e){window.HTMLImports.ready=!0,window.HTMLImports.readyTime=(new Date).get Time();var t=p.createEvent("CustomEvent");t.initCustomEvent("HTMLImportsLoaded", !0,!0,e),p.dispatchEvent(t)}),e.IMPORT_LINK_TYPE=l,e.useNative=u,e.rootDocument= p,e.whenReady=t,e.isIE=v}(window.HTMLImports),function(e){var t=[],n=function(e) {t.push(e)},o=function(){t.forEach(function(t){t(e)})};e.addModule=n,e.initializ eModules=o}(window.HTMLImports),window.HTMLImports.addModule(function(e){var t=/ (url\()([^)]*)(\))/g,n=/(@import[\s]+(?!url\())([^;]*)(;)/g,o={resolveUrlsInStyl e:function(e,t){var n=e.ownerDocument,o=n.createElement("a");return e.textConten t=this.resolveUrlsInCssText(e.textContent,t,o),e},resolveUrlsInCssText:function( e,o,r){var i=this.replaceUrls(e,r,o,t);return i=this.replaceUrls(i,r,o,n)},repla ceUrls:function(e,t,n,o){return e.replace(o,function(e,o,r,i){var a=r.replace(/[ "']/g,"");return n&&(a=new URL(a,n).href),t.href=a,a=t.href,o+"'"+a+"'"+i})}};e. path=o}),window.HTMLImports.addModule(function(e){var t={async:!0,ok:function(e) {return e.status>=200&&e.status<300||304===e.status||0===e.status},load:function (n,o,r){var i=new XMLHttpRequest;return(e.flags.debug||e.flags.bust)&&(n+="?"+Ma th.random()),i.open("GET",n,t.async),i.addEventListener("readystatechange",funct ion(e){if(4===i.readyState){var n=null;try{var a=i.getResponseHeader("Location") ;a&&(n="/"===a.substr(0,1)?location.origin+a:a)}catch(e){console.error(e.message )}o.call(r,!t.ok(i)&&i,i.response||i.responseText,n)}}),i.send(),i},loadDocument :function(e,t,n){this.load(e,t,n).responseType="document"}};e.xhr=t}),window.HTM LImports.addModule(function(e){var t=e.xhr,n=e.flags,o=function(e,t){this.cache= {},this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};o.prototype= {addNodes:function(e){this.inflight+=e.length;for(var t,n=0,o=e.length;o>n&&(t=e [n]);n++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,t his.require(e),this.checkDone()},require:function(e){var t=e.src||e.href;e.__nod eUrl=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){if(this.pending[e ])return this.pending[e].push(t),!0;return this.cache[e]?(this.onload(e,t,this.c ache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,o){if(n.load &&console.log("fetch",e,o),e)if(e.match(/^data:/)){var r=e.split(","),i=r[0],a=r [1];a=i.indexOf(";base64")>-1?atob(a):decodeURIComponent(a),setTimeout(function( ){this.receive(e,o,null,a)}.bind(this),0)}else{var s=function(t,n,r){this.receiv e(e,o,t,n,r)}.bind(this);t.load(e,s)}else setTimeout(function(){this.receive(e,o ,{error:"href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,o ,r){this.cache[e]=o;for(var i,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++ )this.onload(e,i,o,n,r),this.tail();this.pending[e]=null},tail:function(){--this .inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete( )}},e.Loader=o}),window.HTMLImports.addModule(function(e){var t=function(e){this .addCallback=e,this.mo=new MutationObserver(this.handler.bind(this))};t.prototyp e={handler:function(e){for(var t,n=0,o=e.length;o>n&&(t=e[n]);n++)"childList"=== t.type&&t.addedNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function( e){this.addCallback&&this.addCallback(e);for(var t,n=0,o=e.length;o>n&&(t=e[n]); n++)t.children&&t.children.length&&this.addedNodes(t.children)},observe:function (e){this.mo.observe(e,{childList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImp orts.addModule(function(e){function t(e){return"link"===e.localName&&e.rel===l}f unction n(e){var t=o(e);return"data:text/javascript;charset=utf-8,"+encodeURICom ponent(t)}function o(e){return e.textContent+r(e)}function r(e){var t=e.ownerDoc ument;t.__importedScripts=t.__importedScripts||0;var n=e.ownerDocument.baseURI,o =t.__importedScripts?"-"+t.__importedScripts:"";return t.__importedScripts++,"\n //# sourceURL="+n+o+".js\n"}function i(e){var t=e.ownerDocument.createElement("s tyle");return t.textContent=e.textContent,a.resolveUrlsInStyle(t),t}var a=e.path ,s=e.rootDocument,c=e.flags,d=e.isIE,l=e.IMPORT_LINK_TYPE,u="link[rel="+l+"]",h= {documentSelectors:u,importsSelectors:[u,"link[rel=stylesheet]:not([type])","sty le:not([type])","script:not([type])",'script[type="application/javascript"]','sc ript[type="text/javascript"]'].join(","),map:{link:"parseLink",script:"parseScri pt",style:"parseStyle"},dynamicElements:[],parseNext:function(){var e=this.nextT oParse();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))return void(c.p arse&&console.log("[%s] is already parsed",e.localName));var t=this[this.map[e.l ocalName]];t&&(this.markParsing(e),t.call(this,e))},parseDynamic:function(e,t){t his.dynamicElements.push(e),t||this.parseNext()},markParsing:function(e){c.parse &&console.log("parsing",e),this.parsingElement=e},markParsingComplete:function(e ){e.__importParsed=!0,this.markDynamicParsingComplete(e),e.__importElement&&(e._ _importElement.__importParsed=!0,this.markDynamicParsingComplete(e.__importEleme nt)),this.parsingElement=null,c.parse&&console.log("completed",e)},markDynamicPa rsingComplete:function(e){var t=this.dynamicElements.indexOf(e);t>=0&&this.dynam icElements.splice(t,1)},parseImport:function(e){if(e["import"]=e.__doc,window.HT MLImports.__importsParsingHook&&window.HTMLImports.__importsParsingHook(e),e["im port"]&&(e["import"].__importParsed=!0),this.markParsingComplete(e),e.__resource &&!e.__error?e.dispatchEvent(new CustomEvent("load",{bubbles:!1})):e.dispatchEve nt(new CustomEvent("error",{bubbles:!1})),e.__pending)for(var t;e.__pending.leng th;)t=e.__pending.shift(),t&&t({target:e});this.parseNext()},parseLink:function( e){t(e)?this.parseImport(e):(e.href=e.href,this.parseGeneric(e))},parseStyle:fun ction(e){var t=e;e=i(e),t.__appliedElement=e,e.__importElement=t,this.parseGener ic(e)},parseGeneric:function(e){this.trackElement(e),this.addElementToDocument(e )},rootImportForElement:function(e){for(var t=e;t.ownerDocument.__importLink;)t= t.ownerDocument.__importLink;return t},addElementToDocument:function(e){var t=th is.rootImportForElement(e.__importElement||e);t.parentNode.insertBefore(e,t)},tr ackElement:function(e,t){var n=this,o=function(r){e.removeEventListener("load",o ),e.removeEventListener("error",o),t&&t(r),n.markParsingComplete(e),n.parseNext( )};if(e.addEventListener("load",o),e.addEventListener("error",o),d&&"style"===e. localName){var r=!1;if(-1==e.textContent.indexOf("@import"))r=!0;else if(e.sheet ){r=!0;for(var i,a=e.sheet.cssRules,s=a?a.length:0,c=0;s>c&&(i=a[c]);c++)i.type= ==CSSRule.IMPORT_RULE&&(r=r&&Boolean(i.styleSheet))}r&&setTimeout(function(){e.d ispatchEvent(new CustomEvent("load",{bubbles:!1}))})}},parseScript:function(t){v ar o=document.createElement("script");o.__importElement=t,o.src=t.src?t.src:n(t) ,e.currentScript=t,this.trackElement(o,function(t){o.parentNode&&o.parentNode.re moveChild(o),e.currentScript=null}),this.addElementToDocument(o)},nextToParse:fu nction(){return this._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc(s )||this.nextToParseDynamic())},nextToParseInDoc:function(e,n){if(e&&this._mayPar se.indexOf(e)<0){this._mayParse.push(e);for(var o,r=e.querySelectorAll(this.pars eSelectorsForNode(e)),i=0,a=r.length;a>i&&(o=r[i]);i++)if(!this.isParsed(o))retu rn this.hasResource(o)?t(o)?this.nextToParseInDoc(o.__doc,o):o:void 0}return n}, nextToParseDynamic:function(){return this.dynamicElements[0]},parseSelectorsForN ode:function(e){var t=e.ownerDocument||e;return t===s?this.documentSelectors:thi s.importsSelectors},isParsed:function(e){return e.__importParsed},needsDynamicPa rsing:function(e){return this.dynamicElements.indexOf(e)>=0},hasResource:functio n(e){return!t(e)||void 0!==e.__doc}};e.parser=h,e.IMPORT_SELECTOR=u}),window.HTM LImports.addModule(function(e){function t(e){return n(e,a)}function n(e,t){retur n"link"===e.localName&&e.getAttribute("rel")===t}function o(e){return!!Object.ge tOwnPropertyDescriptor(e,"baseURI")}function r(e,t){var n=document.implementatio n.createHTMLDocument(a);n._URL=t;var r=n.createElement("base");r.setAttribute("h ref",t),n.baseURI||o(n)||Object.defineProperty(n,"baseURI",{value:t});var i=n.cr eateElement("meta");return i.setAttribute("charset","utf-8"),n.head.appendChild( i),n.head.appendChild(r),n.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemp lateElement.bootstrap&&HTMLTemplateElement.bootstrap(n),n}var i=e.flags,a=e.IMPO RT_LINK_TYPE,s=e.IMPORT_SELECTOR,c=e.rootDocument,d=e.Loader,l=e.Observer,u=e.pa rser,h={documents:{},documentPreloadSelectors:s,importsPreloadSelectors:[s].join (","),loadNode:function(e){f.addNode(e)},loadSubtree:function(e){var t=this.mars halNodes(e);f.addNodes(t)},marshalNodes:function(e){return e.querySelectorAll(th is.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){var t=e.ownerDocum ent||e;return t===c?this.documentPreloadSelectors:this.importsPreloadSelectors}, loaded:function(e,n,o,a,s){if(i.load&&console.log("loaded",e,n),n.__resource=o,n .__error=a,t(n)){var c=this.documents[e];void 0===c&&(c=a?null:r(o,s||e),c&&(c._ _importLink=n,this.bootDocument(c)),this.documents[e]=c),n.__doc=c}u.parseNext() },bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e),u.parseN ext()},loadedAll:function(){u.parseNext()}},f=new d(h.loaded.bind(h),h.loadedAll .bind(h));if(h.observer=new l,!document.baseURI){var p={get:function(){var e=doc ument.querySelector("base");return e?e.href:window.location.href},configurable:! 0};Object.defineProperty(document,"baseURI",p),Object.defineProperty(c,"baseURI" ,p)}e.importer=h,e.importLoader=f}),window.HTMLImports.addModule(function(e){var t=e.parser,n=e.importer,o={added:function(e){for(var o,r,i,a,s=0,c=e.length;c>s &&(a=e[s]);s++)o||(o=a.ownerDocument,r=t.isParsed(o)),i=this.shouldLoadNode(a),i &&n.loadNode(a),this.shouldParseNode(a)&&r&&t.parseDynamic(a,i)},shouldLoadNode: function(e){return 1===e.nodeType&&r.call(e,n.loadSelectorsForNode(e))},shouldPa rseNode:function(e){return 1===e.nodeType&&r.call(e,t.parseSelectorsForNode(e))} };n.observer.addCallback=o.added.bind(o);var r=HTMLElement.prototype.matches||HT MLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector ||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelec tor}),function(e){function t(){window.HTMLImports.importer.bootDocument(o)}var n =e.initializeModules;e.isIE;if(!e.useNative){n();var o=e.rootDocument;"complete" ===document.readyState||"interactive"===document.readyState&&!window.attachEvent ?t():document.addEventListener("DOMContentLoaded",t)}}(window.HTMLImports),windo w.CustomElements=window.CustomElements||{flags:{}},function(e){var t=e.flags,n=[ ],o=function(e){n.push(e)},r=function(){n.forEach(function(t){t(e)})};e.addModul e=o,e.initializeModules=r,e.hasNative=Boolean(document.registerElement),e.isIE=/ Trident/.test(navigator.userAgent),e.useNative=!t.register&&e.hasNative&&!window .ShadowDOMPolyfill&&(!window.HTMLImports||window.HTMLImports.useNative)}(window. CustomElements),window.CustomElements.addModule(function(e){function t(e,t){n(e, function(e){return t(e)?!0:void o(e,t)}),o(e,t)}function n(e,t,o){var r=e.firstE lementChild;if(!r)for(r=e.firstChild;r&&r.nodeType!==Node.ELEMENT_NODE;)r=r.next Sibling;for(;r;)t(r,o)!==!0&&n(r,t,o),r=r.nextElementSibling;return null}functio n o(e,n){for(var o=e.shadowRoot;o;)t(o,n),o=o.olderShadowRoot}function r(e,t){i( e,t,[])}function i(e,t,n){if(e=window.wrap(e),!(n.indexOf(e)>=0)){n.push(e);for( var o,r=e.querySelectorAll("link[rel="+a+"]"),s=0,c=r.length;c>s&&(o=r[s]);s++)o ["import"]&&i(o["import"],t,n);t(e)}}var a=window.HTMLImports?window.HTMLImports .IMPORT_LINK_TYPE:"none";e.forDocumentTree=r,e.forSubtree=t}),window.CustomEleme nts.addModule(function(e){function t(e,t){return n(e,t)||o(e,t)}function n(t,n){ return e.upgrade(t,n)?!0:void(n&&a(t))}function o(e,t){g(e,function(e){return n( e,t)?!0:void 0})}function r(e){L.push(e),E||(E=!0,setTimeout(i))}function i(){E= !1;for(var e,t=L,n=0,o=t.length;o>n&&(e=t[n]);n++)e();L=[]}function a(e){y?r(fun ction(){s(e)}):s(e)}function s(e){ 11 window.WebComponents=window.WebComponents||{},function(e){var t=e.flags||{},n="w ebcomponents.js",r=document.querySelector('script[src*="'+n+'"]');if(!t.noOpts){ if(location.search.slice(1).split("&").forEach(function(e){e=e.split("="),e[0]&& (t[e[0]]=e[1]||!0)}),r)for(var o,i=0;o=r.attributes[i];i++)"src"!==o.name&&(t[o. name]=o.value||!0);if(t.log&&t.log.split){var a=t.log.split(",");t.log={},a.forE ach(function(e){t.log[e]=!0})}else t.log={}}t.shadow=t.shadow||t.shadowdom||t.po lyfill,t.shadow="native"===t.shadow?!1:t.shadow||!HTMLElement.prototype.createSh adowRoot,t.register&&(window.CustomElements=window.CustomElements||{flags:{}},wi ndow.CustomElements.flags.register=t.register),e.flags=t}(WebComponents),functio n(e){"use strict";function t(e){return void 0!==h[e]}function n(){s.call(this),t his._isInvalid=!0}function r(e){return""==e&&n.call(this),e.toLowerCase()}functi on o(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexO f(t)?e:encodeURIComponent(e)}function i(e){var t=e.charCodeAt(0);return t>32&&12 7>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function a(e,a,s){f unction c(e){b.push(e)}var d=a||"scheme start",l=0,u="",_=!1,g=!1,b=[];e:for(;(e [l-1]!=p||0==l)&&!this._isInvalid;){var w=e[l];switch(d){case"scheme start":if(! w||!m.test(w)){if(a){c("Invalid scheme.");break e}u="",d="no scheme";continue}u+ =w.toLowerCase(),d="scheme";break;case"scheme":if(w&&v.test(w))u+=w.toLowerCase( );else{if(":"!=w){if(a){if(p==w)break e;c("Code point not allowed in scheme: "+w );break e}u="",l=0,d="no scheme";continue}if(this._scheme=u,u="",a)break e;t(thi s._scheme)&&(this._isRelative=!0),d="file"==this._scheme?"relative":this._isRela tive&&s&&s._scheme==this._scheme?"relative or authority":this._isRelative?"autho rity first slash":"scheme data"}break;case"scheme data":"?"==w?(query="?",d="que ry"):"#"==w?(this._fragment="#",d="fragment"):p!=w&&" "!=w&&"\n"!=w&&"\r"!=w&& (this._schemeData+=o(w));break;case"no scheme":if(s&&t(s._scheme)){d="relative"; continue}c("Missing scheme."),n.call(this);break;case"relative or authority":if( "/"!=w||"/"!=e[l+1]){c("Expected /, got: "+w),d="relative";continue}d="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem e&&(this._scheme=s._scheme),p==w){this._host=s._host,this._port=s._port,this._pa th=s._path.slice(),this._query=s._query;break e}if("/"==w||"\\"==w)"\\"==w&&c("\ \ is an invalid code point."),d="relative slash";else if("?"==w)this._host=s._ho st,this._port=s._port,this._path=s._path.slice(),this._query="?",d="query";else{ if("#"!=w){var y=e[l+1],E=e[l+2];("file"!=this._scheme||!m.test(w)||":"!=y&&"|"! =y||p!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._host=s._host,this._port=s._po rt,this._path=s._path.slice(),this._path.pop()),d="relative path";continue}this. _host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query ,this._fragment="#",d="fragment"}break;case"relative slash":if("/"!=w&&"\\"!=w){ "file"!=this._scheme&&(this._host=s._host,this._port=s._port),d="relative path"; continue}"\\"==w&&c("\\ is an invalid code point."),d="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=w){c ("Expected '/', got: "+w),d="authority ignore slashes";continue}d="authority sec ond slash";break;case"authority second slash":if(d="authority ignore slashes","/ "!=w){c("Expected '/', got: "+w);continue}break;case"authority ignore slashes":i f("/"!=w&&"\\"!=w){d="authority";continue}c("Expected authority, got: "+w);break ;case"authority":if("@"==w){_&&(c("@ already seen."),u+="%40"),_=!0;for(var L=0; L<u.length;L++){var M=u[L];if(" "!=M&&"\n"!=M&&"\r"!=M)if(":"!=M||null!==this._p assword){var T=o(M);null!==this._password?this._password+=T:this._username+=T}el se this._password="";else c("Invalid whitespace in authority.")}u=""}else{if(p== w||"/"==w||"\\"==w||"?"==w||"#"==w){l-=u.length,u="",d="host";continue}u+=w}brea k;case"file host":if(p==w||"/"==w||"\\"==w||"?"==w||"#"==w){2!=u.length||!m.test (u[0])||":"!=u[1]&&"|"!=u[1]?0==u.length?d="relative path start":(this._host=r.c all(this,u),u="",d="relative path start"):d="relative path";continue}" "==w||"\ n"==w||"\r"==w?c("Invalid whitespace in file host."):u+=w;break;case"host":case" hostname":if(":"!=w||g){if(p==w||"/"==w||"\\"==w||"?"==w||"#"==w){if(this._host= r.call(this,u),u="",d="relative path start",a)break e;continue}" "!=w&&"\ n"!=w&&"\r"!=w?("["==w?g=!0:"]"==w&&(g=!1),u+=w):c("Invalid code point in host/h ostname: "+w)}else if(this._host=r.call(this,u),u="",d="port","hostname"==a)brea k e;break;case"port":if(/[0-9]/.test(w))u+=w;else{if(p==w||"/"==w||"\\"==w||"?"= =w||"#"==w||a){if(""!=u){var N=parseInt(u,10);N!=h[this._scheme]&&(this._port=N+ ""),u=""}if(a)break e;d="relative path start";continue}" "==w||"\n"==w||" \r"==w?c("Invalid code point in port: "+w):n.call(this)}break;case"relative path start":if("\\"==w&&c("'\\' not allowed in path."),d="relative path","/"!=w&&"\\ "!=w)continue;break;case"relative path":if(p!=w&&"/"!=w&&"\\"!=w&&(a||"?"!=w&&"# "!=w))" "!=w&&"\n"!=w&&"\r"!=w&&(u+=o(w));else{"\\"==w&&c("\\ not allowed in rel ative path.");var O;(O=f[u.toLowerCase()])&&(u=O),".."==u?(this._path.pop(),"/"! =w&&"\\"!=w&&this._path.push("")):"."==u&&"/"!=w&&"\\"!=w?this._path.push(""):". "!=u&&("file"==this._scheme&&0==this._path.length&&2==u.length&&m.test(u[0])&&"| "==u[1]&&(u=u[0]+":"),this._path.push(u)),u="","?"==w?(this._query="?",d="query" ):"#"==w&&(this._fragment="#",d="fragment")}break;case"query":a||"#"!=w?p!=w&&" "!=w&&"\n"!=w&&"\r"!=w&&(this._query+=i(w)):(this._fragment="#",d="fragment");br eak;case"fragment":p!=w&&" "!=w&&"\n"!=w&&"\r"!=w&&(this._fragment+=w)}l++} }function s(){this._scheme="",this._schemeData="",this._username="",this._passwo rd=null,this._host="",this._port="",this._path=[],this._query="",this._fragment= "",this._isInvalid=!1,this._isRelative=!1}function c(e,t){void 0===t||t instance of c||(t=new c(String(t))),this._url=e,s.call(this);var n=e.replace(/^[ \t\r\n\f ]+|[ \t\r\n\f]+$/g,"");a.call(this,n,null,t)}var d=!1;if(!e.forceJURL)try{var l= new URL("b","http://a");l.pathname="c%20d",d="http://a/c%20d"===l.href}catch(u){ }if(!d){var h=Object.create(null);h.ftp=21,h.file=0,h.gopher=70,h.http=80,h.http s=443,h.ws=80,h.wss=443;var f=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f[ "%2e."]="..",f["%2e%2e"]="..";var p=void 0,m=/[a-zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;c. prototype={toString:function(){return this.href},get href(){if(this._isInvalid)r eturn this._url;var e="";return(""!=this._username||null!=this._password)&&(e=th is._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(th is._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},se t href(e){s.call(this),a.call(this,e)},get protocol(){return this._scheme+":"},s et protocol(e){this._isInvalid||a.call(this,e+":","scheme start")},get host(){re turn this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set hos t(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"host")},get hostname(){r eturn this._host},set hostname(e){!this._isInvalid&&this._isRelative&&a.call(thi s,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&thi s._isRelative&&a.call(this,e,"port")},get pathname(){return this._isInvalid?"":t his._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this ._isInvalid&&this._isRelative&&(this._path=[],a.call(this,e,"relative path start "))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this ._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"= =e[0]&&(e=e.slice(1)),a.call(this,e,"query"))},get hash(){return this._isInvalid ||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isIn valid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),a.call(this,e,"fragment"))} ,get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._sche me){case"data":case"file":case"javascript":case"mailto":return"null"}return e=th is.host,e?this._scheme+"://"+e:""}};var _=e.URL;_&&(c.createObjectURL=function(e ){return _.createObjectURL.apply(_,arguments)},c.revokeObjectURL=function(e){_.r evokeObjectURL(e)}),e.URL=c}}(this),"undefined"==typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Mat h.random()>>>0)+(t++ +"__")};n.prototype={set:function(t,n){var r=t[this.name];r eturn r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:func tion(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},"delete":function(e) {var t=e[this.name];return t&&t[0]===e?(t[0]=t[1]=void 0,!0):!1},has:function(e) {var t=e[this.name];return t?t[0]===e:!1}},window.WeakMap=n}(),function(e){funct ion t(e){w.push(e),b||(b=!0,m(r))}function n(e){return window.ShadowDOMPolyfill& &window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function r(){b=!1;var e=w;w=[],e.so rt(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var n=e.t akeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)}),t&&r()}function o(e){e.nod es_.forEach(function(t){var n=v.get(t);n&&n.forEach(function(t){t.observer===e&& t.removeTransientObservers()})})}function i(e,t){for(var n=e;n;n=n.parentNode){v ar r=v.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o],a=i.options;if(n===e|| a.subtree){var s=t(a);s&&i.enqueue(s)}}}}function a(e){this.callback_=e,this.nod es_=[],this.records_=[],this.uid_=++y}function s(e,t){this.type=e,this.target=t, this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibli ng=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null} function c(e){var t=new s(e.type,e.target);return t.addedNodes=e.addedNodes.slic e(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t. nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e .attributeNamespace,t.oldValue=e.oldValue,t}function d(e,t){return E=new s(e,t)} function l(e){return L?L:(L=c(E),L.oldValue=e,L)}function u(){E=L=void 0}functio n h(e){return e===L||e===E}function f(e,t){return e===t?e:L&&h(e)?L:null}functio n p(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNo des=[]}var m,v=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))m=setTime out;else if(window.setImmediate)m=window.setImmediate;else{var _=[],g=String(Mat h.random());window.addEventListener("message",function(e){if(e.data===g){var t=_ ;_=[],t.forEach(function(e){e()})}}),m=function(e){_.push(e),window.postMessage( g,"*")}}var b=!1,w=[],y=0;a.prototype={observe:function(e,t){if(e=n(e),!t.childL ist&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attr ibuteFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&! t.characterData)throw new SyntaxError;var r=v.get(e);r||v.set(e,r=[]);for(var o, i=0;i<r.length;i++)if(r[i].observer===this){o=r[i],o.removeListeners(),o.options =t;break}o||(o=new p(this,e,t),r.push(o),this.nodes_.push(e)),o.addListeners()}, disconnect:function(){this.nodes_.forEach(function(e){for(var t=v.get(e),n=0;n<t .length;n++){var r=t[n];if(r.observer===this){r.removeListeners(),t.splice(n,1); break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;retu rn this.records_=[],e}};var E,L;p.prototype={enqueue:function(e){var n=this.obse rver.records_,r=n.length;if(n.length>0){var o=n[r-1],i=f(o,e);if(i)return void(n [r-1]=i)}else t(this.observer);n[r]=e},addListeners:function(){this.addListeners _(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.add EventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DO MCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserte d",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,! 0)},removeListeners:function(){this.removeListeners_(this.target)},removeListene rs_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrM odified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModifi ed",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.ch ildList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransie ntObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientO bservedNodes.push(e);var t=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransi entObservers:function(){var e=this.transientObservedNodes;this.transientObserved Nodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=v.get(e),n=0;n <t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function( e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.att rName,n=e.relatedNode.namespaceURI,r=e.target,o=new d("attributes",r);o.attribut eName=t,o.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null: e.prevValue;i(r,function(e){return!e.attributes||e.attributeFilter&&e.attributeF ilter.length&&-1===e.attributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf( n)?void 0:e.attributeOldValue?l(a):o});break;case"DOMCharacterDataModified":var r=e.target,o=d("characterData",r),a=e.prevValue;i(r,function(e){return e.charact erData?e.characterDataOldValue?l(a):o:void 0});break;case"DOMNodeRemoved":this.a ddTransientObserver(e.target);case"DOMNodeInserted":var s,c,h=e.target;"DOMNodeI nserted"===e.type?(s=[h],c=[]):(s=[],c=[h]);var f=h.previousSibling,p=h.nextSibl ing,o=d("childList",e.target.parentNode);o.addedNodes=s,o.removedNodes=c,o.previ ousSibling=f,o.nextSibling=p,i(e.relatedNode,function(e){return e.childList?o:vo id 0})}u()}},e.JsMutationObserver=a,e.MutationObserver||(e.MutationObserver=a)}( this),window.HTMLImports=window.HTMLImports||{flags:{}},function(e){function t(e ,t){t=t||p,r(function(){i(e,t)},t)}function n(e){return"complete"===e.readyState ||e.readyState===_}function r(e,t){if(n(t))e&&e();else{var o=function(){("comple te"===t.readyState||t.readyState===_)&&(t.removeEventListener(g,o),r(e,t))};t.ad dEventListener(g,o)}}function o(e){e.target.__loaded=!0}function i(e,t){function n(){c==d&&e&&e({allImports:s,loadedImports:l,errorImports:u})}function r(e){o(e ),l.push(this),c++,n()}function i(e){u.push(this),c++,n()}var s=t.querySelectorA ll("link[rel=import]"),c=0,d=s.length,l=[],u=[];if(d)for(var h,f=0;d>f&&(h=s[f]) ;f++)a(h)?(c++,n()):(h.addEventListener("load",r),h.addEventListener("error",i)) ;else n()}function a(e){return u?e.__loaded||e["import"]&&"loading"!==e["import" ].readyState:e.__importParsed}function s(e){for(var t,n=0,r=e.length;r>n&&(t=e[n ]);n++)c(t)&&d(t)}function c(e){return"link"===e.localName&&"import"===e.rel}fun ction d(e){var t=e["import"];t?o({target:e}):(e.addEventListener("load",o),e.add EventListener("error",o))}var l="import",u=Boolean(l in document.createElement(" link")),h=Boolean(window.ShadowDOMPolyfill),f=function(e){return h?ShadowDOMPoly fill.wrapIfNeeded(e):e},p=f(document),m={get:function(){var e=HTMLImports.curren tScript||document.currentScript||("complete"!==document.readyState?document.scri pts[document.scripts.length-1]:null);return f(e)},configurable:!0};Object.define Property(document,"_currentScript",m),Object.defineProperty(p,"_currentScript",m );var v=/Trident|Edge/.test(navigator.userAgent),_=v?"complete":"interactive",g= "readystatechange";u&&(new MutationObserver(function(e){for(var t,n=0,r=e.length ;r>n&&(t=e[n]);n++)t.addedNodes&&s(t.addedNodes)}).observe(document.head,{childL ist:!0}),function(){if("loading"===document.readyState)for(var e,t=document.quer ySelectorAll("link[rel=import]"),n=0,r=t.length;r>n&&(e=t[n]);n++)d(e)}()),t(fun ction(e){HTMLImports.ready=!0,HTMLImports.readyTime=(new Date).getTime();var t=p .createEvent("CustomEvent");t.initCustomEvent("HTMLImportsLoaded",!0,!0,e),p.dis patchEvent(t)}),e.IMPORT_LINK_TYPE=l,e.useNative=u,e.rootDocument=p,e.whenReady= t,e.isIE=v}(HTMLImports),function(e){var t=[],n=function(e){t.push(e)},r=functio n(){t.forEach(function(t){t(e)})};e.addModule=n,e.initializeModules=r}(HTMLImpor ts),HTMLImports.addModule(function(e){var t=/(url\()([^)]*)(\))/g,n=/(@import[\s ]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInStyle:function(e,t){var n=e.ownerDocume nt,r=n.createElement("a");return e.textContent=this.resolveUrlsInCssText(e.textC ontent,t,r),e},resolveUrlsInCssText:function(e,r,o){var i=this.replaceUrls(e,o,r ,t);return i=this.replaceUrls(i,o,r,n)},replaceUrls:function(e,t,n,r){return e.r eplace(r,function(e,r,o,i){var a=o.replace(/["']/g,"");return n&&(a=new URL(a,n) .href),t.href=a,a=t.href,r+"'"+a+"'"+i})}};e.path=r}),HTMLImports.addModule(func tion(e){var t={async:!0,ok:function(e){return e.status>=200&&e.status<300||304== =e.status||0===e.status},load:function(n,r,o){var i=new XMLHttpRequest;return(e. flags.debug||e.flags.bust)&&(n+="?"+Math.random()),i.open("GET",n,t.async),i.add EventListener("readystatechange",function(e){if(4===i.readyState){var n=i.getRes ponseHeader("Location"),a=null;if(n)var a="/"===n.substr(0,1)?location.origin+n: n;r.call(o,!t.ok(i)&&i,i.response||i.responseText,a)}}),i.send(),i},loadDocument :function(e,t,n){this.load(e,t,n).responseType="document"}};e.xhr=t}),HTMLImport s.addModule(function(e){var t=e.xhr,n=e.flags,r=function(e,t){this.cache={},this .onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};r.prototype={addNod es:function(e){this.inflight+=e.length;for(var t,n=0,r=e.length;r>n&&(t=e[n]);n+ +)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.req uire(e),this.checkDone()},require:function(e){var t=e.src||e.href;e.__nodeUrl=t, this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){if(this.pending[e])retur n this.pending[e].push(t),!0;return this.cache[e]?(this.onload(e,t,this.cache[e] ),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load&&conso le.log("fetch",e,r),e)if(e.match(/^data:/)){var o=e.split(","),i=o[0],a=o[1];a=i .indexOf(";base64")>-1?atob(a):decodeURIComponent(a),setTimeout(function(){this. receive(e,r,null,a)}.bind(this),0)}else{var s=function(t,n,o){this.receive(e,r,t ,n,o)}.bind(this);t.load(e,s)}else setTimeout(function(){this.receive(e,r,{error :"href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,r,o){thi s.cache[e]=r;for(var i,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.o nload(e,i,r,n,o),this.tail();this.pending[e]=null},tail:function(){--this.inflig ht,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},e.L oader=r}),HTMLImports.addModule(function(e){var t=function(e){this.addCallback=e ,this.mo=new MutationObserver(this.handler.bind(this))};t.prototype={handler:fun ction(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)"childList"===t.type&&t.adde dNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCal lback&&this.addCallback(e);for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)t.children &&t.children.length&&this.addedNodes(t.children)},observe:function(e){this.mo.ob serve(e,{childList:!0,subtree:!0})}},e.Observer=t}),HTMLImports.addModule(functi on(e){function t(e){return"link"===e.localName&&e.rel===l}function n(e){var t=r( e);return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}function r( e){return e.textContent+o(e)}function o(e){var t=e.ownerDocument;t.__importedScr ipts=t.__importedScripts||0;var n=e.ownerDocument.baseURI,r=t.__importedScripts? "-"+t.__importedScripts:"";return t.__importedScripts++,"\n//# sourceURL="+n+r+" .js\n"}function i(e){var t=e.ownerDocument.createElement("style");return t.textC ontent=e.textContent,a.resolveUrlsInStyle(t),t}var a=e.path,s=e.rootDocument,c=e .flags,d=e.isIE,l=e.IMPORT_LINK_TYPE,u="link[rel="+l+"]",h={documentSelectors:u, importsSelectors:[u,"link[rel=stylesheet]","style","script:not([type])",'script[ type="text/javascript"]'].join(","),map:{link:"parseLink",script:"parseScript",s tyle:"parseStyle"},dynamicElements:[],parseNext:function(){var e=this.nextToPars e();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))return void(c.parse& &console.log("[%s] is already parsed",e.localName));var t=this[this.map[e.localN ame]];t&&(this.markParsing(e),t.call(this,e))},parseDynamic:function(e,t){this.d ynamicElements.push(e),t||this.parseNext()},markParsing:function(e){c.parse&&con sole.log("parsing",e),this.parsingElement=e},markParsingComplete:function(e){e._ _importParsed=!0,this.markDynamicParsingComplete(e),e.__importElement&&(e.__impo rtElement.__importParsed=!0,this.markDynamicParsingComplete(e.__importElement)), this.parsingElement=null,c.parse&&console.log("completed",e)},markDynamicParsing Complete:function(e){var t=this.dynamicElements.indexOf(e);t>=0&&this.dynamicEle ments.splice(t,1)},parseImport:function(e){if(HTMLImports.__importsParsingHook&& HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__importParsed=!0) ,this.markParsingComplete(e),e.dispatchEvent(e.__resource&&!e.__error?new Custom Event("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),e.__pending)fo r(var t;e.__pending.length;)t=e.__pending.shift(),t&&t({target:e});this.parseNex t()},parseLink:function(e){t(e)?this.parseImport(e):(e.href=e.href,this.parseGen eric(e))},parseStyle:function(e){var t=e;e=i(e),t.__appliedElement=e,e.__importE lement=t,this.parseGeneric(e)},parseGeneric:function(e){this.trackElement(e),thi s.addElementToDocument(e)},rootImportForElement:function(e){for(var t=e;t.ownerD ocument.__importLink;)t=t.ownerDocument.__importLink;return t},addElementToDocum ent:function(e){var t=this.rootImportForElement(e.__importElement||e);t.parentNo de.insertBefore(e,t)},trackElement:function(e,t){var n=this,r=function(r){t&&t(r ),n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("load",r),e.addE ventListener("error",r),d&&"style"===e.localName){var o=!1;if(-1==e.textContent. indexOf("@import"))o=!0;else if(e.sheet){o=!0;for(var i,a=e.sheet.cssRules,s=a?a .length:0,c=0;s>c&&(i=a[c]);c++)i.type===CSSRule.IMPORT_RULE&&(o=o&&Boolean(i.st yleSheet))}o&&e.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}},parseScrip t:function(t){var r=document.createElement("script");r.__importElement=t,r.src=t .src?t.src:n(t),e.currentScript=t,this.trackElement(r,function(t){r.parentNode.r emoveChild(r),e.currentScript=null}),this.addElementToDocument(r)},nextToParse:f unction(){return this._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc( s)||this.nextToParseDynamic())},nextToParseInDoc:function(e,n){if(e&&this._mayPa rse.indexOf(e)<0){this._mayParse.push(e);for(var r,o=e.querySelectorAll(this.par seSelectorsForNode(e)),i=0,a=o.length;a>i&&(r=o[i]);i++)if(!this.isParsed(r))ret urn this.hasResource(r)?t(r)?this.nextToParseInDoc(r["import"],r):r:void 0}retur n n},nextToParseDynamic:function(){return this.dynamicElements[0]},parseSelector sForNode:function(e){var t=e.ownerDocument||e;return t===s?this.documentSelector s:this.importsSelectors},isParsed:function(e){return e.__importParsed},needsDyna micParsing:function(e){return this.dynamicElements.indexOf(e)>=0},hasResource:fu nction(e){return t(e)&&void 0===e["import"]?!1:!0}};e.parser=h,e.IMPORT_SELECTOR =u}),HTMLImports.addModule(function(e){function t(e){return n(e,a)}function n(e, t){return"link"===e.localName&&e.getAttribute("rel")===t}function r(e){return!!O bject.getOwnPropertyDescriptor(e,"baseURI")}function o(e,t){var n=document.imple mentation.createHTMLDocument(a);n._URL=t;var o=n.createElement("base");o.setAttr ibute("href",t),n.baseURI||r(n)||Object.defineProperty(n,"baseURI",{value:t});va r i=n.createElement("meta");return i.setAttribute("charset","utf-8"),n.head.appe ndChild(i),n.head.appendChild(o),n.body.innerHTML=e,window.HTMLTemplateElement&& HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(n),n}var i=e.flags, a=e.IMPORT_LINK_TYPE,s=e.IMPORT_SELECTOR,c=e.rootDocument,d=e.Loader,l=e.Observe r,u=e.parser,h={documents:{},documentPreloadSelectors:s,importsPreloadSelectors: [s].join(","),loadNode:function(e){f.addNode(e)},loadSubtree:function(e){var t=t his.marshalNodes(e);f.addNodes(t)},marshalNodes:function(e){return e.querySelect orAll(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){var t=e.ow nerDocument||e;return t===c?this.documentPreloadSelectors:this.importsPreloadSel ectors},loaded:function(e,n,r,a,s){if(i.load&&console.log("loaded",e,n),n.__reso urce=r,n.__error=a,t(n)){var c=this.documents[e];void 0===c&&(c=a?null:o(r,s||e) ,c&&(c.__importLink=n,this.bootDocument(c)),this.documents[e]=c),n["import"]=c}u .parseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe (e),u.parseNext()},loadedAll:function(){u.parseNext()}},f=new d(h.loaded.bind(h) ,h.loadedAll.bind(h));if(h.observer=new l,!document.baseURI){var p={get:function (){var e=document.querySelector("base");return e?e.href:window.location.href},co nfigurable:!0};Object.defineProperty(document,"baseURI",p),Object.defineProperty (c,"baseURI",p)}e.importer=h,e.importLoader=f}),HTMLImports.addModule(function(e ){var t=e.parser,n=e.importer,r={added:function(e){for(var r,o,i,a,s=0,c=e.lengt h;c>s&&(a=e[s]);s++)r||(r=a.ownerDocument,o=t.isParsed(r)),i=this.shouldLoadNode (a),i&&n.loadNode(a),this.shouldParseNode(a)&&o&&t.parseDynamic(a,i)},shouldLoad Node:function(e){return 1===e.nodeType&&o.call(e,n.loadSelectorsForNode(e))},sho uldParseNode:function(e){return 1===e.nodeType&&o.call(e,t.parseSelectorsForNode (e))}};n.observer.addCallback=r.added.bind(r);var o=HTMLElement.prototype.matche s||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSel ector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatches Selector}),function(e){function t(){HTMLImports.importer.bootDocument(o)}var n=e .initializeModules,r=e.isIE;if(!e.useNative){r&&"function"!=typeof window.Custom Event&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("Cus tomEvent");return n.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t .detail),n},window.CustomEvent.prototype=window.Event.prototype),n();var o=e.roo tDocument;"complete"===document.readyState||"interactive"===document.readyState& &!window.attachEvent?t():document.addEventListener("DOMContentLoaded",t)}}(HTMLI mports),window.CustomElements=window.CustomElements||{flags:{}},function(e){var t=e.flags,n=[],r=function(e){n.push(e)},o=function(){n.forEach(function(t){t(e)} )};e.addModule=r,e.initializeModules=o,e.hasNative=Boolean(document.registerElem ent),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&(!window.H TMLImports||HTMLImports.useNative)}(CustomElements),CustomElements.addModule(fun ction(e){function t(e,t){n(e,function(e){return t(e)?!0:void r(e,t)}),r(e,t)}fun ction n(e,t,r){var o=e.firstElementChild;if(!o)for(o=e.firstChild;o&&o.nodeType! ==Node.ELEMENT_NODE;)o=o.nextSibling;for(;o;)t(o,r)!==!0&&n(o,t,r),o=o.nextEleme ntSibling;return null}function r(e,n){for(var r=e.shadowRoot;r;)t(r,n),r=r.older ShadowRoot}function o(e,t){i(e,t,[])}function i(e,t,n){if(e=wrap(e),!(n.indexOf( e)>=0)){n.push(e);for(var r,o=e.querySelectorAll("link[rel="+a+"]"),s=0,c=o.leng th;c>s&&(r=o[s]);s++)r["import"]&&i(r["import"],t,n);t(e)}}var a=window.HTMLImpo rts?HTMLImports.IMPORT_LINK_TYPE:"none";e.forDocumentTree=o,e.forSubtree=t}),Cus tomElements.addModule(function(e){function t(e){return n(e)||r(e)}function n(t){ return e.upgrade(t)?!0:void s(t)}function r(e){w(e,function(e){return n(e)?!0:vo id 0})}function o(e){s(e),h(e)&&w(e,function(e){s(e)})}function i(e){M.push(e),L ||(L=!0,setTimeout(a))}function a(){L=!1;for(var e,t=M,n=0,r=t.length;r>n&&(e=t[ n]);n++)e();M=[]}function s(e){E?i(function(){c(e)}):c(e)}function c(e){e.__upgr aded__&&(e.attachedCallback||e.detachedCallback)&&!e.__attached&&h(e)&&(e.__atta ched=!0,e.attachedCallback&&e.attachedCallback())}function d(e){l(e),w(e,functio n(e){l(e)})}function l(e){E?i(function(){u(e)}):u(e)}function u(e){e.__upgraded_ _&&(e.attachedCallback||e.detachedCallback)&&e.__attached&&!h(e)&&(e.__attached= !1,e.detachedCallback&&e.detachedCallback())}function h(e){for(var t=e,n=wrap(do cument);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT _NODE&&t.host}}function f(e){if(e.shadowRoot&&!e.shadowRoot.__watched){b.dom&&co nsole.log("watching shadow-root for: ",e.localName);for(var t=e.shadowRoot;t;)v( t),t=t.olderShadowRoot}}function p(e){if(b.dom){var n=e[0];if(n&&"childList"===n .type&&n.addedNodes&&n.addedNodes){for(var r=n.addedNodes[0];r&&r!==document&&!r .host;)r=r.parentNode;var o=r&&(r.URL||r._URL||r.host&&r.host.localName)||"";o=o .split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",e.leng th,o||"")}e.forEach(function(e){"childList"===e.type&&(T(e.addedNodes,function(e ){e.localName&&t(e)}),T(e.removedNodes,function(e){e.localName&&d(e)}))}),b.dom& &console.groupEnd()}function m(e){for(e=wrap(e),e||(e=wrap(document));e.parentNo de;)e=e.parentNode;var t=e.__observer;t&&(p(t.takeRecords()),a())}function v(e){ if(!e.__observer){var t=new MutationObserver(p);t.observe(e,{childList:!0,subtre e:!0}),e.__observer=t}}function _(e){e=wrap(e),b.dom&&console.group("upgradeDocu ment: ",e.baseURI.split("/").pop()),t(e),v(e),b.dom&&console.groupEnd()}function g(e){y(e,_)}var b=e.flags,w=e.forSubtree,y=e.forDocumentTree,E=!window.Mutation Observer||window.MutationObserver===window.JsMutationObserver;e.hasPolyfillMutat ions=E;var L=!1,M=[],T=Array.prototype.forEach.call.bind(Array.prototype.forEach ),N=Element.prototype.createShadowRoot;N&&(Element.prototype.createShadowRoot=fu nction(){var e=N.call(this);return CustomElements.watchShadow(this),e}),e.watchS hadow=f,e.upgradeDocumentTree=g,e.upgradeSubtree=r,e.upgradeAll=t,e.attachedNode =o,e.takeRecords=m}),CustomElements.addModule(function(e){function t(t){if(!t.__ upgraded__&&t.nodeType===Node.ELEMENT_NODE){var r=t.getAttribute("is"),o=e.getRe gisteredDefinition(r||t.localName);if(o){if(r&&o.tag==t.localName)return n(t,o); if(!r&&!o["extends"])return n(t,o)}}}function n(t,n){return a.upgrade&&console.g roup("upgrade:",t.localName),n.is&&t.setAttribute("is",n.is),r(t,n),t.__upgraded __=!0,i(t),e.attachedNode(t),e.upgradeSubtree(t),a.upgrade&&console.groupEnd(),t }function r(e,t){Object.__proto__?e.__proto__=t.prototype:(o(e,t.prototype,t["na tive"]),e.__proto__=t.prototype)}function o(e,t,n){for(var r={},o=t;o!==n&&o!==H TMLElement.prototype;){for(var i,a=Object.getOwnPropertyNames(o),s=0;i=a[s];s++) r[i]||(Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i)),r[i]=1);o =Object.getPrototypeOf(o)}}function i(e){e.createdCallback&&e.createdCallback()} var a=e.flags;e.upgrade=t,e.upgradeWithDefinition=n,e.implementPrototype=r}),Cus tomElements.addModule(function(e){function t(t,r){var c=r||{};if(!t)throw new Er ror("document.registerElement: first argument `name` must not be empty");if(t.in dexOf("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(t)+"'.");if(o(t))thro w new Error("Failed to execute 'registerElement' on 'Document': Registration fai led for type '"+String(t)+"'. The type name is invalid.");if(d(t))throw new Erro r("DuplicateDefinitionError: a type with name '"+String(t)+"' is already registe red");return c.prototype||(c.prototype=Object.create(HTMLElement.prototype)),c._ _name=t.toLowerCase(),c.lifecycle=c.lifecycle||{},c.ancestry=i(c["extends"]),a(c ),s(c),n(c.prototype),l(c.__name,c),c.ctor=u(c),c.ctor.prototype=c.prototype,c.p rototype.constructor=c.ctor,e.ready&&_(document),c.ctor}function n(e){if(!e.setA ttribute._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,n){r.call(t his,e,n,t)};var n=e.removeAttribute;e.removeAttribute=function(e){r.call(this,e, null,n)},e.setAttribute._polyfilled=!0}}function r(e,t,n){e=e.toLowerCase();var r=this.getAttribute(e);n.apply(this,arguments);var o=this.getAttribute(e);this.a ttributeChangedCallback&&o!==r&&this.attributeChangedCallback(e,r,o)}function o( e){for(var t=0;t<E.length;t++)if(e===E[t])return!0}function i(e){var t=d(e);retu rn t?i(t["extends"]).concat([t]):[]}function a(e){for(var t,n=e["extends"],r=0;t =e.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}function s (e){if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=document.cr eateElement(e.tag),r=Object.getPrototypeOf(n);r===e.prototype&&(t=r)}for(var o,i =e.prototype;i&&i!==t;)o=Object.getPrototypeOf(i),
12 e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.attachedCa llback())}function c(e){d(e),g(e,function(e){d(e)})}function d(e){y?r(function() {l(e)}):l(e)}function l(e){e.__upgraded__&&e.__attached&&(e.__attached=!1,e.deta chedCallback&&e.detachedCallback())}function u(e){for(var t=e,n=window.wrap(docu ment);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_N ODE&&t.host}}function h(e){if(e.shadowRoot&&!e.shadowRoot.__watched){_.dom&&cons ole.log("watching shadow-root for: ",e.localName);for(var t=e.shadowRoot;t;)m(t) ,t=t.olderShadowRoot}}function f(e,n){if(_.dom){var o=n[0];if(o&&"childList"===o .type&&o.addedNodes&&o.addedNodes){for(var r=o.addedNodes[0];r&&r!==document&&!r .host;)r=r.parentNode;var i=r&&(r.URL||r._URL||r.host&&r.host.localName)||"";i=i .split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",n.leng th,i||"")}var a=u(e);n.forEach(function(e){"childList"===e.type&&(N(e.addedNodes ,function(e){e.localName&&t(e,a)}),N(e.removedNodes,function(e){e.localName&&c(e )}))}),_.dom&&console.groupEnd()}function p(e){for(e=window.wrap(e),e||(e=window .wrap(document));e.parentNode;)e=e.parentNode;var t=e.__observer;t&&(f(e,t.takeR ecords()),i())}function m(e){if(!e.__observer){var t=new MutationObserver(f.bind (this,e));t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}function v(e){e =window.wrap(e),_.dom&&console.group("upgradeDocument: ",e.baseURI.split("/").po p());var n=e===window.wrap(document);t(e,n),m(e),_.dom&&console.groupEnd()}funct ion w(e){b(e,v)}var _=e.flags,g=e.forSubtree,b=e.forDocumentTree,y=window.Mutati onObserver._isPolyfilled&&_["throttle-attached"];e.hasPolyfillMutations=y,e.hasT hrottledAttached=y;var E=!1,L=[],N=Array.prototype.forEach.call.bind(Array.proto type.forEach),M=Element.prototype.createShadowRoot;M&&(Element.prototype.createS hadowRoot=function(){var e=M.call(this);return window.CustomElements.watchShadow (this),e}),e.watchShadow=h,e.upgradeDocumentTree=w,e.upgradeDocument=v,e.upgrade Subtree=o,e.upgradeAll=t,e.attached=a,e.takeRecords=p}),window.CustomElements.ad dModule(function(e){function t(t,o){if("template"===t.localName&&window.HTMLTemp lateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t),!t.__ upgraded__&&t.nodeType===Node.ELEMENT_NODE){var r=t.getAttribute("is"),i=e.getRe gisteredDefinition(t.localName)||e.getRegisteredDefinition(r);if(i&&(r&&i.tag==t .localName||!r&&!i["extends"]))return n(t,i,o)}}function n(t,n,r){return a.upgra de&&console.group("upgrade:",t.localName),n.is&&t.setAttribute("is",n.is),o(t,n) ,t.__upgraded__=!0,i(t),r&&e.attached(t),e.upgradeSubtree(t,r),a.upgrade&&consol e.groupEnd(),t}function o(e,t){Object.__proto__?e.__proto__=t.prototype:(r(e,t.p rototype,t["native"]),e.__proto__=t.prototype)}function r(e,t,n){for(var o={},r= t;r!==n&&r!==HTMLElement.prototype;){for(var i,a=Object.getOwnPropertyNames(r),s =0;i=a[s];s++)o[i]||(Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r ,i)),o[i]=1);r=Object.getPrototypeOf(r)}}function i(e){e.createdCallback&&e.crea tedCallback()}var a=e.flags;e.upgrade=t,e.upgradeWithDefinition=n,e.implementPro totype=o}),window.CustomElements.addModule(function(e){function t(t,o){var c=o|| {};if(!t)throw new Error("document.registerElement: first argument `name` must n ot be empty");if(t.indexOf("-")<0)throw new Error("document.registerElement: fir st argument ('name') must contain a dash ('-'). Argument provided was '"+String( t)+"'.");if(r(t))throw new Error("Failed to execute 'registerElement' on 'Docume nt': Registration failed for type '"+String(t)+"'. The type name is invalid.");i f(d(t))throw new Error("DuplicateDefinitionError: a type with name '"+String(t)+ "' is already registered");return c.prototype||(c.prototype=Object.create(HTMLEl ement.prototype)),c.__name=t.toLowerCase(),c["extends"]&&(c["extends"]=c["extend s"].toLowerCase()),c.lifecycle=c.lifecycle||{},c.ancestry=i(c["extends"]),a(c),s (c),n(c.prototype),l(c.__name,c),c.ctor=u(c),c.ctor.prototype=c.prototype,c.prot otype.constructor=c.ctor,e.ready&&v(document),c.ctor}function n(e){if(!e.setAttr ibute._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,n){o.call(this ,e,n,t)};var n=e.removeAttribute;e.removeAttribute=function(e){o.call(this,e,nul l,n)},e.setAttribute._polyfilled=!0}}function o(e,t,n){e=e.toLowerCase();var o=t his.getAttribute(e);n.apply(this,arguments);var r=this.getAttribute(e);this.attr ibuteChangedCallback&&r!==o&&this.attributeChangedCallback(e,o,r)}function r(e){ for(var t=0;t<y.length;t++)if(e===y[t])return!0}function i(e){var t=d(e);return t?i(t["extends"]).concat([t]):[]}function a(e){for(var t,n=e["extends"],o=0;t=e. ancestry[o];o++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}function s(e) {if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=document.creat eElement(e.tag);t=Object.getPrototypeOf(n)}for(var o,r=e.prototype,i=!1;r;)r==t& &(i=!0),o=Object.getPrototypeOf(r),o&&(r.__proto__=o),r=o;i||console.warn(e.tag+ " prototype not found in prototype chain for "+e.is),e["native"]=t}}function c(e ){return _(N(e.tag),e)}function d(e){return e?E[e.toLowerCase()]:void 0}function l(e,t){E[e]=t}function u(e){return function(){return c(e)}}function h(e,t,n){re turn e===L?f(t,n):M(e,t)}function f(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerC ase());var n=d(t||e);if(n){if(e==n.tag&&t==n.is)return new n.ctor;if(!t&&!n.is)r eturn new n.ctor}var o;return t?(o=f(e),o.setAttribute("is",t),o):(o=N(e),e.inde xOf("-")>=0&&g(o,HTMLElement),o)}function p(e,t){var n=e[t];e[t]=function(){var e=n.apply(this,arguments);return w(e),e}}var m,v=(e.isIE,e.upgradeDocumentTree), w=e.upgradeAll,_=e.upgradeWithDefinition,g=e.implementPrototype,b=e.useNative,y= ["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","f ont-face-format","font-face-name","missing-glyph"],E={},L="http://www.w3.org/199 9/xhtml",N=document.createElement.bind(document),M=document.createElementNS.bind (document);m=Object.__proto__||b?function(e,t){return e instanceof t}:function(e ,t){if(e instanceof t)return!0;for(var n=e;n;){if(n===t.prototype)return!0;n=n._ _proto__}return!1},p(Node.prototype,"cloneNode"),p(document,"importNode"),docume nt.registerElement=t,document.createElement=f,document.createElementNS=h,e.regis try=E,e["instanceof"]=m,e.reservedTagList=y,e.getRegisteredDefinition=d,document .register=document.registerElement}),function(e){function t(){i(window.wrap(docu ment)),window.CustomElements.ready=!0;var e=window.requestAnimationFrame||functi on(e){setTimeout(e,16)};e(function(){setTimeout(function(){window.CustomElements .readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window. CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(ne w CustomEvent("WebComponentsReady",{bubbles:!0}))})})}var n=e.useNative,o=e.init ializeModules;e.isIE;if(n){var r=function(){};e.watchShadow=r,e.upgrade=r,e.upgr adeAll=r,e.upgradeDocumentTree=r,e.upgradeSubtree=r,e.takeRecords=r,e["instanceo f"]=function(e,t){return e instanceof t}}else o();var i=e.upgradeDocumentTree,a= e.upgradeDocument;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window. ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNe eded):window.wrap=window.unwrap=function(e){return e}),window.HTMLImports&&(wind ow.HTMLImports.__importsParsingHook=function(e){e["import"]&&a(wrap(e["import"]) )}),"complete"===document.readyState||e.flags.eager)t();else if("interactive"!== document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports .ready){var s=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded": "DOMContentLoaded";window.addEventListener(s,t)}else t()}(window.CustomElements) ,function(e){var t=document.createElement("style");t.textContent="body {transiti on: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; over flow: hidden; position: relative; } \n";var n=document.querySelector("head");n.i nsertBefore(t,n.firstChild)}(window.WebComponents); 12 i.__proto__=o,i=o;e["native"]=t}}function c(e){return b(T(e.tag),e)}function d(e ){return e?L[e.toLowerCase()]:void 0}function l(e,t){L[e]=t}function u(e){return function(){return c(e)}}function h(e,t,n){return e===M?f(t,n):N(e,t)}function f (e,t){var n=d(t||e);if(n){if(e==n.tag&&t==n.is)return new n.ctor;if(!t&&!n.is)re turn new n.ctor}var r;return t?(r=f(e),r.setAttribute("is",t),r):(r=T(e),e.index Of("-")>=0&&w(r,HTMLElement),r)}function p(e,t){var n=e[t];e[t]=function(){var e =n.apply(this,arguments);return g(e),e}}var m,v=e.isIE11OrOlder,_=e.upgradeDocum entTree,g=e.upgradeAll,b=e.upgradeWithDefinition,w=e.implementPrototype,y=e.useN ative,E=["annotation-xml","color-profile","font-face","font-face-src","font-face -uri","font-face-format","font-face-name","missing-glyph"],L={},M="http://www.w3 .org/1999/xhtml",T=document.createElement.bind(document),N=document.createElemen tNS.bind(document);m=Object.__proto__||y?function(e,t){return e instanceof t}:fu nction(e,t){for(var n=e;n;){if(n===t.prototype)return!0;n=n.__proto__}return!1}, p(Node.prototype,"cloneNode"),p(document,"importNode"),v&&!function(){var e=docu ment.importNode;document.importNode=function(){var t=e.apply(document,arguments) ;if(t.nodeType==t.DOCUMENT_FRAGMENT_NODE){var n=document.createDocumentFragment( );return n.appendChild(t),n}return t}}(),document.registerElement=t,document.cre ateElement=f,document.createElementNS=h,e.registry=L,e["instanceof"]=m,e.reserve dTagList=E,e.getRegisteredDefinition=d,document.register=document.registerElemen t}),function(e){function t(){a(wrap(document)),window.HTMLImports&&(HTMLImports. __importsParsingHook=function(e){a(wrap(e["import"]))}),CustomElements.ready=!0, setTimeout(function(){CustomElements.readyTime=Date.now(),window.HTMLImports&&(C ustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime),document.d ispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}var n=e.useNa tive,r=e.initializeModules,o=/Trident/.test(navigator.userAgent);if(n){var i=fun ction(){};e.watchShadow=i,e.upgrade=i,e.upgradeAll=i,e.upgradeDocumentTree=i,e.u pgradeSubtree=i,e.takeRecords=i,e["instanceof"]=function(e,t){return e instanceo f t}}else r();var a=e.upgradeDocumentTree;if(window.wrap||(window.ShadowDOMPolyf ill?(window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill. unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}),o&&"function"!= typeof window.CustomEvent&&(window.CustomEvent=function(e,t){t=t||{};var n=docum ent.createEvent("CustomEvent");return n.initCustomEvent(e,Boolean(t.bubbles),Boo lean(t.cancelable),t.detail),n},window.CustomEvent.prototype=window.Event.protot ype),"complete"===document.readyState||e.flags.eager)t();else if("interactive"!= =document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImport s.ready){var s=window.HTMLImports&&!HTMLImports.ready?"HTMLImportsLoaded":"DOMCo ntentLoaded";window.addEventListener(s,t)}else t();e.isIE11OrOlder=o}(window.Cus tomElements),"undefined"==typeof HTMLTemplateElement&&!function(){var e="templat e";HTMLTemplateElement=function(){},HTMLTemplateElement.prototype=Object.create( HTMLElement.prototype),HTMLTemplateElement.decorate=function(e){if(!e.content){e .content=e.ownerDocument.createDocumentFragment();for(var t;t=e.firstChild;)e.co ntent.appendChild(t)}},HTMLTemplateElement.bootstrap=function(t){for(var n,r=t.q uerySelectorAll(e),o=0,i=r.length;i>o&&(n=r[o]);o++)HTMLTemplateElement.decorate (n)},addEventListener("DOMContentLoaded",function(){HTMLTemplateElement.bootstra p(document)})}(),function(e){var t=document.createElement("style");t.textContent ="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; disp lay: block; overflow: hidden; position: relative; } \n";var n=document.querySele ctor("head");n.insertBefore(t,n.firstChild)}(window.WebComponents);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698