function MakePromise(e){function t(e){if("object"!=typeof this||"function"!=typeof e)throw new TypeError;this._state=null,this._value=null,this._deferreds=[],s(e,n.bind(this),r.bind(this))}function i(t){var i=this;return null===this._state?void this._deferreds.push(t):void e(function(){var e=i._state?t.onFulfilled:t.onRejected;if("function"!=typeof e)return void(i._state?t.resolve:t.reject)(i._value);var n;try{n=e(i._value)}catch(r){return void t.reject(r)}t.resolve(n)})}function n(e){try{if(e===this)throw new TypeError;if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void s(t.bind(e),n.bind(this),r.bind(this))}this._state=!0,this._value=e,o.call(this)}catch(i){r.call(this,i)}}function r(e){this._state=!1,this._value=e,o.call(this)}function o(){for(var e=0,t=this._deferreds.length;t>e;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function s(e,t,i){var n=!1;try{e(function(e){n||(n=!0,t(e))},function(e){n||(n=!0,i(e))})}catch(r){if(n)return;n=!0,i(r)}}return t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(e,n){var r=this;return new t(function(t,o){i.call(r,{onFulfilled:e,onRejected:n,resolve:t,reject:o})})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,i){i(e)})},t}function makeRequest(e){return new Promise(function(t,i){var n=new XMLHttpRequest;n.open("GET",e),n.onload=function(){this.status>=200&&this.status<300?t(n.response):i({status:this.status,statusText:n.statusText})},n.onerror=function(){i({status:this.status,statusText:n.statusText})},n.send()})}function showFjLoader(e){e&&fjContentLoading.classList.add("visible"),window.clearTimeout(timeouts.showFjLoader),timeouts.showFjLoader=window.setTimeout(function(){fjLoaderCircular.classList.add("active")},300)}function hideFjLoader(e){e&&fjContentLoading.classList.remove("visible"),fjLoaderCircular.classList.remove("active")}function showErrorButton(){hideFjLoader(),fjRetryLoader.classList.remove("is-hidden")}function getComputedTranslateX(e){if(window.getComputedStyle){var t=getComputedStyle(e),i=t.transform||t.webkitTransform||t.mozTransform,n=i.match(/^matrix3d\((.+)\)$/);return n?parseFloat(n[1].split(", ")[7]):(n=i.match(/^matrix\((.+)\)$/),n?parseFloat(n[1].split(", ")[4]):0)}}function setTranslate3dY(e,t){setTransform(e,"translate3d(0, "+t+", 0)")}function isTouchDevice(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function getScrollVelocityFactor(){return isTouchDevice()?20:5}function deleteNode(e){e.parentNode.removeChild(e)}function clearInner(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function setOpacity(e,t){e.style.opacity=t}function setTransform(e,t){e.style.transform=t,e.style.webkitTransform=t,e.style.mozTransform=t}function setTransition(e,t){e.style.transition=t,e.style.webkitTransition=t,e.style.mozTransition=t}function doClasses(e,t,i){for(var n in t)i?e.classList.remove(t[n]):e.classList.add(t[n])}function getHashAsArray(e){e=e.split("?"),e=e[0],e=e.split("/");for(var t=e.length;t--;)""===e[t]&&e.splice(t,1);return e}function getBasePage(e){var t="",i=getHashAsArray(window.location.pathname);for(var n in i)e?t+="/"+i[n]:i[n].indexOf(".html")===-1&&(t+="/"+i[n]);return t||(t="/"),t}function getQueryAsObjects(e){e=e.split("&");for(var t,i={},n=e.length;n--;)e[n]&&(t=e[n].split("="),i[t[0]]=t[1]);return i}function addQuery(e,t){var i=e.split("="),n=!0;queries[i[0]]=i[1],querystring="";for(var r in Object.keys(queries))r>0&&(querystring+="&"),querystring+=Object.keys(queries)[r]+"="+queries[Object.keys(queries)[r]];if(t&&querystring)try{newHash}catch(o){n=!1,page("?"+querystring)}finally{n&&page("#/"+newHash.join("/")+"?"+querystring)}}function removeQuery(e,t){delete queries[e.split("=")[0]],querystring="";for(var i in Object.keys(queries))addQuery(Object.keys(queries)[i]+"="+queries[i]);t&&page("#/"+newHash.join("/")+querystring)}window.Polymer={dom:"shadow",lazyRegister:!0};var projectHostName="https://feeljoy.in",crew_ref;!function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomponents-lite.js",t=document.querySelector('script[src*="'+e+'"]'),i={};if(!i.noOpts){if(location.search.slice(1).split("&").forEach(function(e){var t,n=e.split("=");n[0]&&(t=n[0].match(/wc-(.+)/))&&(i[t[1]]=n[1]||!0)}),t)for(var n,r=0;n=t.attributes[r];r++)"src"!==n.name&&(i[n.name]=n.value||!0);if(i.log&&i.log.split){var o=i.log.split(",");i.log={},o.forEach(function(e){i.log[e]=!0})}else i.log={}}i.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=i.register),WebComponents.flags=i}(),function(e){"use strict";function t(e){return void 0!==d[e]}function i(){a.call(this),this._isInvalid=!0}function n(e){return""==e&&i.call(this),e.toLowerCase()}function r(e){var t=e.charCodeAt(0);return t>32&&127>t&&[34,35,60,62,63,96].indexOf(t)==-1?e:encodeURIComponent(e)}function o(e){var t=e.charCodeAt(0);return t>32&&127>t&&[34,35,60,62,96].indexOf(t)==-1?e:encodeURIComponent(e)}function s(e,s,a){function l(e){g.push(e)}var h=s||"scheme start",c=0,u="",y=!1,v=!1,g=[];e:for(;(e[c-1]!=p||0==c)&&!this._isInvalid;){var b=e[c];switch(h){case"scheme start":if(!b||!m.test(b)){if(s){l("Invalid scheme.");break e}u="",h="no scheme";continue}u+=b.toLowerCase(),h="scheme";break;case"scheme":if(b&&_.test(b))u+=b.toLowerCase();else{if(":"!=b){if(s){if(p==b)break e;l("Code point not allowed in scheme: "+b);break e}u="",c=0,h="no scheme";continue}if(this._scheme=u,u="",s)break e;t(this._scheme)&&(this._isRelative=!0),h="file"==this._scheme?"relative":this._isRelative&&a&&a._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this._query="?",h="query"):"#"==b?(this._fragment="#",h="fragment"):p!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this._schemeData+=r(b));break;case"no scheme":if(a&&t(a._scheme)){h="relative";continue}l("Missing scheme."),i.call(this);break;case"relative or authority":if("/"!=b||"/"!=e[c+1]){l("Expected /, got: "+b),h="relative";continue}h="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=a._scheme),p==b){this._host=a._host,this._port=a._port,this._path=a._path.slice(),this._query=a._query,this._username=a._username,this._password=a._password;break e}if("/"==b||"\\"==b)"\\"==b&&l("\\ is an invalid code point."),h="relative slash";else if("?"==b)this._host=a._host,this._port=a._port,this._path=a._path.slice(),this._query="?",this._username=a._username,this._password=a._password,h="query";else{if("#"!=b){var P=e[c+1],C=e[c+2];("file"!=this._scheme||!m.test(b)||":"!=P&&"|"!=P||p!=C&&"/"!=C&&"\\"!=C&&"?"!=C&&"#"!=C)&&(this._host=a._host,this._port=a._port,this._username=a._username,this._password=a._password,this._path=a._path.slice(),this._path.pop()),h="relative path";continue}this._host=a._host,this._port=a._port,this._path=a._path.slice(),this._query=a._query,this._fragment="#",this._username=a._username,this._password=a._password,h="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(this._host=a._host,this._port=a._port,this._username=a._username,this._password=a._password),h="relative path";continue}"\\"==b&&l("\\ is an invalid code point."),h="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=b){l("Expected '/', got: "+b),h="authority ignore slashes";continue}h="authority second slash";break;case"authority second slash":if(h="authority ignore slashes","/"!=b){l("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){h="authority";continue}l("Expected authority, got: "+b);break;case"authority":if("@"==b){y&&(l("@ already seen."),u+="%40"),y=!0;for(var w=0;w<u.length;w++){var E=u[w];if("\t"!=E&&"\n"!=E&&"\r"!=E)if(":"!=E||null!==this._password){var S=r(E);null!==this._password?this._password+=S:this._username+=S}else this._password="";else l("Invalid whitespace in authority.")}u=""}else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){c-=u.length,u="",h="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?h="relative path start":(this._host=n.call(this,u),u="",h="relative path start"):h="relative path";continue}"\t"==b||"\n"==b||"\r"==b?l("Invalid whitespace in file host."):u+=b;break;case"host":case"hostname":if(":"!=b||v){if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this._host=n.call(this,u),u="",h="relative path start",s)break e;continue}"\t"!=b&&"\n"!=b&&"\r"!=b?("["==b?v=!0:"]"==b&&(v=!1),u+=b):l("Invalid code point in host/hostname: "+b)}else if(this._host=n.call(this,u),u="",h="port","hostname"==s)break e;break;case"port":if(/[0-9]/.test(b))u+=b;else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b||s){if(""!=u){var A=parseInt(u,10);A!=d[this._scheme]&&(this._port=A+""),u=""}if(s)break e;h="relative path start";continue}"\t"==b||"\n"==b||"\r"==b?l("Invalid code point in port: "+b):i.call(this)}break;case"relative path start":if("\\"==b&&l("'\\' not allowed in path."),h="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":if(p!=b&&"/"!=b&&"\\"!=b&&(s||"?"!=b&&"#"!=b))"\t"!=b&&"\n"!=b&&"\r"!=b&&(u+=r(b));else{"\\"==b&&l("\\ not allowed in relative path.");var x;(x=f[u.toLowerCase()])&&(u=x),".."==u?(this._path.pop(),"/"!=b&&"\\"!=b&&this._path.push("")):"."==u&&"/"!=b&&"\\"!=b?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="","?"==b?(this._query="?",h="query"):"#"==b&&(this._fragment="#",h="fragment")}break;case"query":s||"#"!=b?p!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this._query+=o(b)):(this._fragment="#",h="fragment");break;case"fragment":p!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this._fragment+=b)}c++}}function a(){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}function l(e,t){void 0===t||t instanceof l||(t=new l(t+"")),this._url=e,a.call(this);var i=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");s.call(this,i,null,t)}var h=!1;if(!e.forceJURL)try{var c=new URL("b","http://a");c.pathname="c%20d",h="http://a/c%20d"===c.href}catch(u){}if(!h){var d=Object.create(null);d.ftp=21,d.file=0,d.gopher=70,d.http=80,d.https=443,d.ws=80,d.wss=443;var f=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var p=void 0,m=/[a-zA-Z]/,_=/[a-zA-Z0-9\+\-\.]/;l.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";return""==this._username&&null==this._password||(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){a.call(this),s.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||s.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&&s.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&s.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],s.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)),s.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),s.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var y=e.URL;y&&(l.createObjectURL=function(){return y.createObjectURL.apply(y,arguments)},l.revokeObjectURL=function(e){y.revokeObjectURL(e)}),e.URL=l}}(self),"undefined"==typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};i.prototype={set:function(t,i){var n=t[this.name];return n&&n[0]===t?n[1]=i:e(t,this.name,{value:[t,i],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))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=i}(),function(e){function t(e){b.push(e),g||(g=!0,m(n))}function i(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function n(){g=!1;var e=b;b=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var i=e.takeRecords();r(e),i.length&&(e.callback_(i,e),t=!0)}),t&&n()}function r(e){e.nodes_.forEach(function(t){var i=_.get(t);i&&i.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function o(e,t){for(var i=e;i;i=i.parentNode){var n=_.get(i);if(n)for(var r=0;r<n.length;r++){var o=n[r],s=o.options;if(i===e||s.subtree){var a=t(s);a&&o.enqueue(a)}}}}function s(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++P}function a(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function l(e){var t=new a(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),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 h(e,t){return C=new a(e,t)}function c(e){return w?w:(w=l(C),w.oldValue=e,w)}function u(){C=w=void 0}function d(e){return e===w||e===C}function f(e,t){return e===t?e:w&&d(e)?w:null}function p(e,t,i){this.observer=e,this.target=t,this.options=i,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var m,_=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;else if(window.setImmediate)m=window.setImmediate;else{var y=[],v=Math.random()+"";window.addEventListener("message",function(e){if(e.data===v){var t=y;y=[],t.forEach(function(e){e()})}}),m=function(e){y.push(e),window.postMessage(v,"*")}}var g=!1,b=[],P=0;s.prototype={observe:function(e,t){if(e=i(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var n=_.get(e);n||_.set(e,n=[]);for(var r,o=0;o<n.length;o++)if(n[o].observer===this){r=n[o],r.removeListeners(),r.options=t;break}r||(r=new p(this,e,t),n.push(r),this.nodes_.push(e)),r.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=_.get(e),i=0;i<t.length;i++){var n=t[i];if(n.observer===this){n.removeListeners(),t.splice(i,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}};var C,w;p.prototype={enqueue:function(e){var i=this.observer.records_,n=i.length;if(i.length>0){var r=i[n-1],o=f(r,e);if(o)return void(i[n-1]=o)}else t(this.observer);i[n]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",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:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=_.get(e);t||_.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=_.get(e),i=0;i<t.length;i++)if(t[i]===this){t.splice(i,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,i=e.relatedNode.namespaceURI,n=e.target,r=new h("attributes",n);r.attributeName=t,r.attributeNamespace=i;var s=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;o(n,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||e.attributeFilter.indexOf(t)!==-1||e.attributeFilter.indexOf(i)!==-1))return e.attributeOldValue?c(s):r});break;case"DOMCharacterDataModified":var n=e.target,r=h("characterData",n),s=e.prevValue;o(n,function(e){if(e.characterData)return e.characterDataOldValue?c(s):r});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var a,l,d=e.target;"DOMNodeInserted"===e.type?(a=[d],l=[]):(a=[],l=[d]);var f=d.previousSibling,p=d.nextSibling,r=h("childList",e.target.parentNode);r.addedNodes=a,r.removedNodes=l,r.previousSibling=f,r.nextSibling=p,o(e.relatedNode,function(e){if(e.childList)return r})}u()}},e.JsMutationObserver=s,e.MutationObserver||(e.MutationObserver=s,s._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 i="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&!function(){var e=document.importNode;document.importNode=function(){var t=e.apply(document,arguments);if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var i=document.createDocumentFragment();return i.appendChild(t),i}return t}}();var n=function(){if(!i){var e=document.createElement("template"),t=document.createElement("template");t.content.appendChild(document.createElement("div")),e.content.appendChild(t);var n=e.cloneNode(!0);return 0===n.content.childNodes.length||0===n.content.firstChild.content.childNodes.length}}(),r="template",o=function(){};if(i){var s=document.implementation.createHTMLDocument("template"),a=!0,l=document.createElement("style");l.textContent=r+"{display:none;}";var h=document.head;h.insertBefore(l,h.firstElementChild),o.prototype=Object.create(HTMLElement.prototype),o.decorate=function(e){if(!e.content){e.content=s.createDocumentFragment();for(var i;i=e.firstChild;)e.content.appendChild(i);if(e.cloneNode=function(e){return o.cloneNode(this,e)},a)try{Object.defineProperty(e,"innerHTML",{get:function(){for(var e="",i=this.content.firstChild;i;i=i.nextSibling)e+=i.outerHTML||t(i.data);return e},set:function(e){for(s.body.innerHTML=e,o.bootstrap(s);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;s.body.firstChild;)this.content.appendChild(s.body.firstChild)},configurable:!0})}catch(n){a=!1}o.bootstrap(e.content)}},o.bootstrap=function(e){for(var t,i=e.querySelectorAll(r),n=0,s=i.length;s>n&&(t=i[n]);n++)o.decorate(t)},document.addEventListener("DOMContentLoaded",function(){o.bootstrap(document)});var c=document.createElement;document.createElement=function(){"use strict";var e=c.apply(document,arguments);return"template"===e.localName&&o.decorate(e),e};var u=/[&\u00A0<>]/g}if(i||n){var d=Node.prototype.cloneNode;o.cloneNode=function(e,t){var i=d.call(e,!1);return this.decorate&&this.decorate(i),t&&(i.content.appendChild(d.call(e.content,!0)),this.fixClonedDom(i.content,e.content)),i},o.fixClonedDom=function(e,t){if(t.querySelectorAll)for(var i,n,o=t.querySelectorAll(r),s=e.querySelectorAll(r),a=0,l=s.length;l>a;a++)n=o[a],i=s[a],this.decorate&&this.decorate(n),i.parentNode.replaceChild(n.cloneNode(!0),i)};var f=document.importNode;Node.prototype.cloneNode=function(e){var t=d.call(this,e);return e&&o.fixClonedDom(t,this),t},document.importNode=function(e,t){if(e.localName===r)return o.cloneNode(e,t);var i=f.call(document,e,t);return t&&o.fixClonedDom(i,e),i},n&&(HTMLTemplateElement.prototype.cloneNode=function(e){return o.cloneNode(this,e)})}i&&(window.HTMLTemplateElement=o)}(),function(){"use strict";if(!window.performance||!window.performance.now){var e=Date.now();window.performance={now:function(){return Date.now()-e}}}if(window.requestAnimationFrame||(window.requestAnimationFrame=function(){var e=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return e?function(t){return e(function(){t(performance.now())})}:function(e){return window.setTimeout(e,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(){return window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}}()),!function(){var e=document.createEvent("Event");return e.initEvent("foo",!0,!0),e.preventDefault(),e.defaultPrevented}()){var t=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(t.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var i=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||i&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),i},window.CustomEvent.prototype=window.Event.prototype),!window.Event||i&&"function"!=typeof window.Event){var n=window.Event;window.Event=function(e,t){t=t||{};var i=document.createEvent("Event");return i.initEvent(e,!!t.bubbles,!!t.cancelable),i},window.Event.prototype=n.prototype}}(window.WebComponents),window.HTMLImports=window.HTMLImports||{flags:{}},function(e){function t(e,t){t=t||p,n(function(){o(e,t)},t)}function i(e){return"complete"===e.readyState||e.readyState===y}function n(e,t){if(i(t))e&&e();else{var r=function(){"complete"!==t.readyState&&t.readyState!==y||(t.removeEventListener(v,r),n(e,t))};t.addEventListener(v,r)}}function r(e){e.target.__loaded=!0}function o(e,t){function i(){l==h&&e&&e({allImports:a,loadedImports:c,errorImports:u})}function n(e){r(e),c.push(this),l++,i()}function o(){u.push(this),l++,i()}var a=t.querySelectorAll("link[rel=import]"),l=0,h=a.length,c=[],u=[];if(h)for(var d,f=0;h>f&&(d=a[f]);f++)s(d)?(c.push(this),l++,i()):(d.addEventListener("load",n),d.addEventListener("error",o));else i()}function s(e){return u?e.__loaded||e["import"]&&"loading"!==e["import"].readyState:e.__importParsed}function a(e){for(var t,i=0,n=e.length;n>i&&(t=e[i]);i++)l(t)&&h(t)}function l(e){return"link"===e.localName&&"import"===e.rel}function h(e){e["import"]?r({target:e}):(e.addEventListener("load",r),e.addEventListener("error",r))}var c="import",u=!!(c in document.createElement("link")),d=!!window.ShadowDOMPolyfill,f=function(e){return d?window.ShadowDOMPolyfill.wrapIfNeeded(e):e},p=f(document),m={get:function(){return f(window.HTMLImports.currentScript||document.currentScript||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null))},configurable:!0};Object.defineProperty(document,"_currentScript",m),Object.defineProperty(p,"_currentScript",m);var _=/Trident/.test(navigator.userAgent),y=_?"complete":"interactive",v="readystatechange";u&&(new MutationObserver(function(e){for(var t,i=0,n=e.length;n>i&&(t=e[i]);i++)t.addedNodes&&a(t.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loading"===document.readyState)for(var e,t=document.querySelectorAll("link[rel=import]"),i=0,n=t.length;n>i&&(e=t[i]);i++)h(e)}()),t(function(e){window.HTMLImports.ready=!0,window.HTMLImports.readyTime=(new Date).getTime();var t=p.createEvent("CustomEvent");t.initCustomEvent("HTMLImportsLoaded",!0,!0,e),p.dispatchEvent(t)}),e.IMPORT_LINK_TYPE=c,e.useNative=u,e.rootDocument=p,e.whenReady=t,e.isIE=_}(window.HTMLImports),function(e){var t=[],i=function(e){t.push(e)},n=function(){t.forEach(function(t){t(e)})};e.addModule=i,e.initializeModules=n}(window.HTMLImports),window.HTMLImports.addModule(function(e){var t=/(url\()([^)]*)(\))/g,i=/(@import[\s]+(?!url\())([^;]*)(;)/g,n={resolveUrlsInStyle:function(e,t){var i=e.ownerDocument,n=i.createElement("a");return e.textContent=this.resolveUrlsInCssText(e.textContent,t,n),e},resolveUrlsInCssText:function(e,n,r){var o=this.replaceUrls(e,r,n,t);return o=this.replaceUrls(o,r,n,i)},replaceUrls:function(e,t,i,n){return e.replace(n,function(e,n,r,o){var s=r.replace(/["']/g,"");return i&&(s=new URL(s,i).href),t.href=s,s=t.href,n+"'"+s+"'"+o})}};e.path=n}),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(i,n,r){var o=new XMLHttpRequest;return(e.flags.debug||e.flags.bust)&&(i+="?"+Math.random()),o.open("GET",i,t.async),o.addEventListener("readystatechange",function(e){if(4===o.readyState){var i=null;try{var s=o.getResponseHeader("Location");s&&(i="/"===s.substr(0,1)?location.origin+s:s)}catch(e){}n.call(r,!t.ok(o)&&o,o.response||o.responseText,i)}}),o.send(),o},loadDocument:function(e,t,i){this.load(e,t,i).responseType="document"}};e.xhr=t}),window.HTMLImports.addModule(function(e){var t=e.xhr,i=e.flags,n=function(e,t){this.cache={},this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};n.prototype={addNodes:function(e){this.inflight+=e.length;for(var t,i=0,n=e.length;n>i&&(t=e[i]);i++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.require(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){return this.pending[e]?(this.pending[e].push(t),!0):this.cache[e]?(this.onload(e,t,this.cache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,n){if(i.load&&void 0,e)if(e.match(/^data:/)){var r=e.split(","),o=r[0],s=r[1];s=o.indexOf(";base64")>-1?atob(s):decodeURIComponent(s),setTimeout(function(){this.receive(e,n,null,s)}.bind(this),0)}else{var a=function(t,i,r){this.receive(e,n,t,i,r)}.bind(this);t.load(e,a)}else setTimeout(function(){this.receive(e,n,{error:"href must be specified"},null)}.bind(this),0)},receive:function(e,t,i,n,r){this.cache[e]=n;for(var o,s=this.pending[e],a=0,l=s.length;l>a&&(o=s[a]);a++)this.onload(e,o,n,i,r),this.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=n}),window.HTMLImports.addModule(function(e){var t=function(e){this.addCallback=e,this.mo=new MutationObserver(this.handler.bind(this))};t.prototype={handler:function(e){for(var t,i=0,n=e.length;n>i&&(t=e[i]);i++)"childList"===t.type&&t.addedNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.addCallback(e);for(var t,i=0,n=e.length;n>i&&(t=e[i]);i++)t.children&&t.children.length&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{childList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImports.addModule(function(e){function t(e){return"link"===e.localName&&e.rel===c}function i(e){var t=n(e);return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}function n(e){return e.textContent+r(e)}function r(e){var t=e.ownerDocument;t.__importedScripts=t.__importedScripts||0;var i=e.ownerDocument.baseURI,n=t.__importedScripts?"-"+t.__importedScripts:"";return t.__importedScripts++,"\n//# sourceURL="+i+n+".js\n"}function o(e){var t=e.ownerDocument.createElement("style");return t.textContent=e.textContent,s.resolveUrlsInStyle(t),t}var s=e.path,a=e.rootDocument,l=e.flags,h=e.isIE,c=e.IMPORT_LINK_TYPE,u="link[rel="+c+"]",d={documentSelectors:u,importsSelectors:[u,'link[rel=stylesheet]:not([type]),style:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseStyle"},dynamicElements:[],parseNext:function(){var e=this.nextToParse();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))return void(l.parse&&void 0);var t=this[this.map[e.localName]];t&&(this.markParsing(e),t.call(this,e))},parseDynamic:function(e,t){this.dynamicElements.push(e),t||this.parseNext()},markParsing:function(e){l.parse&&void 0,this.parsingElement=e},markParsingComplete:function(e){e.__importParsed=!0,this.markDynamicParsingComplete(e),e.__importElement&&(e.__importElement.__importParsed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement=null,l.parse&&void 0},markDynamicParsingComplete:function(e){var t=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},parseImport:function(e){if(e["import"]=e.__doc,window.HTMLImports.__importsParsingHook&&window.HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__importParsed=!0),this.markParsingComplete(e),e.__resource&&!e.__error?e.dispatchEvent(new CustomEvent("load",{bubbles:!1})):e.dispatchEvent(new CustomEvent("error",{bubbles:!1})),e.__pending)for(var t;e.__pending.length;)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:function(e){var t=e;e=o(e),t.__appliedElement=e,e.__importElement=t,this.parseGeneric(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=this.rootImportForElement(e.__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){var i=this,n=function(r){e.removeEventListener("load",n),e.removeEventListener("error",n),t&&t(r),i.markParsingComplete(e),i.parseNext()};if(e.addEventListener("load",n),e.addEventListener("error",n),h&&"style"===e.localName){var r=!1;if(e.textContent.indexOf("@import")==-1)r=!0;else if(e.sheet){r=!0;for(var o,s=e.sheet.cssRules,a=s?s.length:0,l=0;a>l&&(o=s[l]);l++)o.type===CSSRule.IMPORT_RULE&&(r=r&&!!o.styleSheet)}r&&setTimeout(function(){e.dispatchEvent(new CustomEvent("load",{bubbles:!1}))})}},parseScript:function(t){var n=document.createElement("script");n.__importElement=t,n.src=t.src?t.src:i(t),e.currentScript=t,this.trackElement(n,function(){n.parentNode&&n.parentNode.removeChild(n),e.currentScript=null}),this.addElementToDocument(n)},nextToParse:function(){return this._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc(a)||this.nextToParseDynamic())},nextToParseInDoc:function(e,i){if(e&&this._mayParse.indexOf(e)<0){this._mayParse.push(e);for(var n,r=e.querySelectorAll(this.parseSelectorsForNode(e)),o=0,s=r.length;s>o&&(n=r[o]);o++)if(!this.isParsed(n))return this.hasResource(n)?t(n)?this.nextToParseInDoc(n.__doc,n):n:void 0}return i},nextToParseDynamic:function(){return this.dynamicElements[0]},parseSelectorsForNode:function(e){return(e.ownerDocument||e)===a?this.documentSelectors:this.importsSelectors},isParsed:function(e){return e.__importParsed},needsDynamicParsing:function(e){return this.dynamicElements.indexOf(e)>=0},hasResource:function(e){return!t(e)||void 0!==e.__doc}};e.parser=d,e.IMPORT_SELECTOR=u}),window.HTMLImports.addModule(function(e){function t(e){return i(e,s)}function i(e,t){return"link"===e.localName&&e.getAttribute("rel")===t}function n(e){return!!Object.getOwnPropertyDescriptor(e,"baseURI")}function r(e,t){var i=document.implementation.createHTMLDocument(s);i._URL=t;var r=i.createElement("base");r.setAttribute("href",t),i.baseURI||n(i)||Object.defineProperty(i,"baseURI",{value:t});var o=i.createElement("meta");
return o.setAttribute("charset","utf-8"),i.head.appendChild(o),i.head.appendChild(r),i.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(i),i}var o=e.flags,s=e.IMPORT_LINK_TYPE,a=e.IMPORT_SELECTOR,l=e.rootDocument,h=e.Loader,c=e.Observer,u=e.parser,d={documents:{},documentPreloadSelectors:a,importsPreloadSelectors:a,loadNode:function(e){f.addNode(e)},loadSubtree:function(e){var t=this.marshalNodes(e);f.addNodes(t)},marshalNodes:function(e){return e.querySelectorAll(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){return(e.ownerDocument||e)===l?this.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,i,n,s,a){if(o.load&&void 0,i.__resource=n,i.__error=s,t(i)){var l=this.documents[e];void 0===l&&(l=s?null:r(n,a||e),l&&(l.__importLink=i,this.bootDocument(l)),this.documents[e]=l),i.__doc=l}u.parseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e),u.parseNext()},loadedAll:function(){u.parseNext()}},f=new h(d.loaded.bind(d),d.loadedAll.bind(d));if(d.observer=new c,!document.baseURI){var p={get:function(){var e=document.querySelector("base");return e?e.href:window.location.href},configurable:!0};Object.defineProperty(document,"baseURI",p),Object.defineProperty(l,"baseURI",p)}e.importer=d,e.importLoader=f}),window.HTMLImports.addModule(function(e){var t=e.parser,i=e.importer,n={added:function(e){for(var n,r,o,s,a=0,l=e.length;l>a&&(s=e[a]);a++)n||(n=s.ownerDocument,r=t.isParsed(n)),o=this.shouldLoadNode(s),o&&i.loadNode(s),this.shouldParseNode(s)&&r&&t.parseDynamic(s,o)},shouldLoadNode:function(e){return 1===e.nodeType&&r.call(e,i.loadSelectorsForNode(e))},shouldParseNode:function(e){return 1===e.nodeType&&r.call(e,t.parseSelectorsForNode(e))}};i.observer.addCallback=n.added.bind(n);var r=HTMLElement.prototype.matches||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector}),function(e){function t(){window.HTMLImports.importer.bootDocument(n)}var i=e.initializeModules;if(e.isIE,!e.useNative){i();var n=e.rootDocument;"complete"===document.readyState||"interactive"===document.readyState&&!window.attachEvent?t():document.addEventListener("DOMContentLoaded",t)}}(window.HTMLImports),window.CustomElements=window.CustomElements||{flags:{}},function(e){var t=e.flags,i=[],n=function(e){i.push(e)},r=function(){i.forEach(function(t){t(e)})};e.addModule=n,e.initializeModules=r,e.hasNative=!!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){i(e,function(e){return!!t(e)||void n(e,t)}),n(e,t)}function i(e,t,n){var r=e.firstElementChild;if(!r)for(r=e.firstChild;r&&r.nodeType!==Node.ELEMENT_NODE;)r=r.nextSibling;for(;r;)t(r,n)!==!0&&i(r,t,n),r=r.nextElementSibling;return null}function n(e,i){for(var n=e.shadowRoot;n;)t(n,i),n=n.olderShadowRoot}function r(e,t){o(e,t,[])}function o(e,t,i){if(e=window.wrap(e),!(i.indexOf(e)>=0)){i.push(e);for(var n,r=e.querySelectorAll("link[rel="+s+"]"),a=0,l=r.length;l>a&&(n=r[a]);a++)n["import"]&&o(n["import"],t,i);t(e)}}var s=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";e.forDocumentTree=r,e.forSubtree=t}),window.CustomElements.addModule(function(e){function t(e,t){return i(e,t)||n(e,t)}function i(t,i){return!!e.upgrade(t,i)||void(i&&s(t))}function n(e,t){g(e,function(e){if(i(e,t))return!0})}function r(e){w.push(e),C||(C=!0,setTimeout(o))}function o(){C=!1;for(var e,t=w,i=0,n=t.length;n>i&&(e=t[i]);i++)e();w=[]}function s(e){P?r(function(){a(e)}):a(e)}function a(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.attachedCallback())}function l(e){h(e),g(e,function(e){h(e)})}function h(e){P?r(function(){c(e)}):c(e)}function c(e){e.__upgraded__&&e.__attached&&(e.__attached=!1,e.detachedCallback&&e.detachedCallback())}function u(e){for(var t=e,i=window.wrap(document);t;){if(t==i)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function d(e){if(e.shadowRoot&&!e.shadowRoot.__watched){v.dom&&void 0;for(var t=e.shadowRoot;t;)m(t),t=t.olderShadowRoot}}function f(e,i){if(v.dom){var n=i[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()}}var s=u(e);i.forEach(function(e){"childList"===e.type&&(E(e.addedNodes,function(e){e.localName&&t(e,s)}),E(e.removedNodes,function(e){e.localName&&l(e)}))}),v.dom&&void 0}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.takeRecords()),o())}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 _(e){e=window.wrap(e),v.dom&&void 0,t(e,e===window.wrap(document)),m(e),v.dom&&void 0}function y(e){b(e,_)}var v=e.flags,g=e.forSubtree,b=e.forDocumentTree,P=window.MutationObserver._isPolyfilled&&v["throttle-attached"];e.hasPolyfillMutations=P,e.hasThrottledAttached=P;var C=!1,w=[],E=Array.prototype.forEach.call.bind(Array.prototype.forEach),S=Element.prototype.createShadowRoot;S&&(Element.prototype.createShadowRoot=function(){var e=S.call(this);return window.CustomElements.watchShadow(this),e}),e.watchShadow=d,e.upgradeDocumentTree=y,e.upgradeDocument=_,e.upgradeSubtree=n,e.upgradeAll=t,e.attached=s,e.takeRecords=p}),window.CustomElements.addModule(function(e){function t(t,n){if("template"===t.localName&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t),!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE){var r=t.getAttribute("is"),o=e.getRegisteredDefinition(t.localName)||e.getRegisteredDefinition(r);if(o&&(r&&o.tag==t.localName||!r&&!o["extends"]))return i(t,o,n)}}function i(t,i,r){return s.upgrade&&void 0,i.is&&t.setAttribute("is",i.is),n(t,i),t.__upgraded__=!0,o(t),r&&e.attached(t),e.upgradeSubtree(t,r),s.upgrade&&void 0,t}function n(e,t){Object.__proto__?e.__proto__=t.prototype:(r(e,t.prototype,t["native"]),e.__proto__=t.prototype)}function r(e,t,i){for(var n={},r=t;r!==i&&r!==HTMLElement.prototype;){for(var o,s=Object.getOwnPropertyNames(r),a=0;o=s[a];a++)n[o]||(Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o)),n[o]=1);r=Object.getPrototypeOf(r)}}function o(e){e.createdCallback&&e.createdCallback()}var s=e.flags;e.upgrade=t,e.upgradeWithDefinition=i,e.implementPrototype=n}),window.CustomElements.addModule(function(e){function t(t,n){var l=n||{};if(!t)throw Error("document.registerElement: first argument `name` must not be empty");if(t.indexOf("-")<0)throw Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+(t+"")+"'.");if(r(t))throw Error("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+(t+"")+"'. The type name is invalid.");if(h(t))throw Error("DuplicateDefinitionError: a type with name '"+(t+"")+"' is already registered");return l.prototype||(l.prototype=Object.create(HTMLElement.prototype)),l.__name=t.toLowerCase(),l["extends"]&&(l["extends"]=l["extends"].toLowerCase()),l.lifecycle=l.lifecycle||{},l.ancestry=o(l["extends"]),s(l),a(l),i(l.prototype),c(l.__name,l),l.ctor=u(l),l.ctor.prototype=l.prototype,l.prototype.constructor=l.ctor,e.ready&&_(document),l.ctor}function i(e){if(!e.setAttribute._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,i){n.call(this,e,i,t)};var i=e.removeAttribute;e.removeAttribute=function(e){n.call(this,e,null,i)},e.setAttribute._polyfilled=!0}}function n(e,t,i){e=e.toLowerCase();var n=this.getAttribute(e);i.apply(this,arguments);var r=this.getAttribute(e);this.attributeChangedCallback&&r!==n&&this.attributeChangedCallback(e,n,r)}function r(e){for(var t=0;t<P.length;t++)if(e===P[t])return!0}function o(e){var t=h(e);return t?o(t["extends"]).concat([t]):[]}function s(e){for(var t,i=e["extends"],n=0;t=e.ancestry[n];n++)i=t.is&&t.tag;e.tag=i||e.__name,i&&(e.is=e.__name)}function a(e){if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var i=document.createElement(e.tag);t=Object.getPrototypeOf(i)}for(var n,r=e.prototype,o=!1;r;)r==t&&(o=!0),n=Object.getPrototypeOf(r),n&&(r.__proto__=n),r=n;e["native"]=t}}function l(e){return v(E(e.tag),e)}function h(e){if(e)return C[e.toLowerCase()]}function c(e,t){C[e]=t}function u(e){return function(){return l(e)}}function d(e,t,i){return e===w?f(t,i):S(e,t)}function f(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerCase());var i=h(t||e);if(i){if(e==i.tag&&t==i.is)return new i.ctor;if(!t&&!i.is)return new i.ctor}var n;return t?(n=f(e),n.setAttribute("is",t),n):(n=E(e),e.indexOf("-")>=0&&g(n,HTMLElement),n)}function p(e,t){var i=e[t];e[t]=function(){var e=i.apply(this,arguments);return y(e),e}}var m,_=(e.isIE,e.upgradeDocumentTree),y=e.upgradeAll,v=e.upgradeWithDefinition,g=e.implementPrototype,b=e.useNative,P=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],C={},w="http://www.w3.org/1999/xhtml",E=document.createElement.bind(document),S=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 i=e;i;){if(i===t.prototype)return!0;i=i.__proto__}return!1},p(Node.prototype,"cloneNode"),p(document,"importNode"),document.registerElement=t,document.createElement=f,document.createElementNS=d,e.registry=C,e["instanceof"]=m,e.reservedTagList=P,e.getRegisteredDefinition=h,document.register=document.registerElement}),function(e){function t(){o(window.wrap(document)),window.CustomElements.ready=!0,(window.requestAnimationFrame||function(e){setTimeout(e,16)})(function(){setTimeout(function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})}var i=e.useNative,n=e.initializeModules;if(e.isIE,i){var r=function(){};e.watchShadow=r,e.upgrade=r,e.upgradeAll=r,e.upgradeDocumentTree=r,e.upgradeSubtree=r,e.takeRecords=r,e["instanceof"]=function(e,t){return e instanceof t}}else n();var o=e.upgradeDocumentTree,s=e.upgradeDocument;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window.ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(e){e["import"]&&s(wrap(e["import"]))}),"complete"===document.readyState||e.flags.eager)t();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var a=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(a,t)}else t()}(window.CustomElements),function(){var e=document.createElement("style");e.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var t=document.querySelector("head");t.insertBefore(e,t.firstChild)}(window.WebComponents),function(){function e(){document.body.removeAttribute("unresolved")}window.WebComponents?addEventListener("WebComponentsReady",e):"interactive"===document.readyState||"complete"===document.readyState?e():addEventListener("DOMContentLoaded",e)}(),window.Polymer={Settings:function(){var e=window.Polymer||{};if(!e.noUrlSettings)for(var t,i=location.search.slice(1).split("&"),n=0;n<i.length&&(t=i[n]);n++)t=t.split("="),t[0]&&(e[t[0]]=t[1]||!0);return e.wantShadow="shadow"===e.dom,e.hasShadow=!!Element.prototype.createShadowRoot,e.nativeShadow=e.hasShadow&&!window.ShadowDOMPolyfill,e.useShadow=e.wantShadow&&e.hasShadow,e.hasNativeImports=!!("import"in document.createElement("link")),e.useNativeImports=e.hasNativeImports,e.useNativeCustomElements=!window.CustomElements||window.CustomElements.useNative,e.useNativeShadow=e.useShadow&&e.nativeShadow,e.usePolyfillProto=!e.useNativeCustomElements&&!Object.__proto__,e.hasNativeCSSProperties=!navigator.userAgent.match("AppleWebKit/601")&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)"),e.useNativeCSSProperties=e.hasNativeCSSProperties&&e.lazyRegister&&e.useNativeCSSProperties,e.isIE=navigator.userAgent.match("Trident"),e}()},function(){var e=window.Polymer;window.Polymer=function(e){"function"==typeof e&&(e=e.prototype),e||(e={}),e=t(e);var i=e===e.constructor.prototype?e.constructor:null,n={prototype:e};e["extends"]&&(n["extends"]=e["extends"]),Polymer.telemetry._registrate(e);var r=document.registerElement(e.is,n);return i||r};var t=function(e){var t=Polymer.Base;return e["extends"]&&(t=Polymer.Base._getExtendedPrototype(e["extends"])),e=Polymer.Base.chainObject(e,t),e.registerCallback(),e};if(e)for(var i in e)Polymer[i]=e[i];Polymer.Class=function(e){return e.factoryImpl||(e.factoryImpl=function(){}),t(e).constructor}}(),Polymer.telemetry={registrations:[],_regLog:function(e){},_registrate:function(e){this.registrations.push(e),Polymer.log&&this._regLog(e)},dumpRegistrations:function(){this.registrations.forEach(this._regLog)}},Object.defineProperty(window,"currentImport",{enumerable:!0,configurable:!0,get:function(){return(document._currentScript||document.currentScript||{}).ownerDocument}}),Polymer.RenderStatus={_ready:!1,_callbacks:[],whenReady:function(e){this._ready?e():this._callbacks.push(e)},_makeReady:function(){this._ready=!0;for(var e=0;e<this._callbacks.length;e++)this._callbacks[e]();this._callbacks=[]},_catchFirstRender:function(){requestAnimationFrame(function(){Polymer.RenderStatus._makeReady()})},_afterNextRenderQueue:[],_waitingNextRender:!1,afterNextRender:function(e,t,i){this._watchNextRender(),this._afterNextRenderQueue.push([e,t,i])},hasRendered:function(){return this._ready},_watchNextRender:function(){if(!this._waitingNextRender){this._waitingNextRender=!0;var e=function(){Polymer.RenderStatus._flushNextRender()};this._ready?requestAnimationFrame(e):this.whenReady(e)}},_flushNextRender:function(){var e=this;setTimeout(function(){e._flushRenderCallbacks(e._afterNextRenderQueue),e._afterNextRenderQueue=[],e._waitingNextRender=!1})},_flushRenderCallbacks:function(e){for(var t,i=0;i<e.length;i++)t=e[i],t[1].apply(t[0],t[2]||Polymer.nar)}},window.HTMLImports?HTMLImports.whenReady(function(){Polymer.RenderStatus._catchFirstRender()}):Polymer.RenderStatus._catchFirstRender(),Polymer.ImportStatus=Polymer.RenderStatus,Polymer.ImportStatus.whenLoaded=Polymer.ImportStatus.whenReady,function(){"use strict";var e=Polymer.Settings;Polymer.Base={__isPolymerInstance__:!0,_addFeature:function(e){this.mixin(this,e)},registerCallback:function(){if("max"===e.lazyRegister)this.beforeRegister&&this.beforeRegister();else{this._desugarBehaviors();for(var t,i=0;i<this.behaviors.length;i++)t=this.behaviors[i],t.beforeRegister&&t.beforeRegister.call(this);this.beforeRegister&&this.beforeRegister()}this._registerFeatures(),e.lazyRegister||this.ensureRegisterFinished()},createdCallback:function(){if(e.disableUpgradeEnabled){if(this.hasAttribute("disable-upgrade"))return this._propertySetter=t,this._configValue=null,void(this.__data__={});this.__hasInitialized=!0}this.__initialize()},__initialize:function(){this.__hasRegisterFinished||this._ensureRegisterFinished(this.__proto__),Polymer.telemetry.instanceCount++,this.root=this;for(var e,t=0;t<this.behaviors.length;t++)e=this.behaviors[t],e.created&&e.created.call(this);this.created&&this.created(),this._initFeatures()},ensureRegisterFinished:function(){this._ensureRegisterFinished(this)},_ensureRegisterFinished:function(t){if(t.__hasRegisterFinished!==t.is||!t.is){if("max"===e.lazyRegister){t._desugarBehaviors();for(var i,n=0;n<t.behaviors.length;n++)i=t.behaviors[n],i.beforeRegister&&i.beforeRegister.call(t)}t.__hasRegisterFinished=t.is,t._finishRegisterFeatures&&t._finishRegisterFeatures();for(var r,o=0;o<t.behaviors.length;o++)r=t.behaviors[o],r.registered&&r.registered.call(t);t.registered&&t.registered(),e.usePolyfillProto&&t!==this&&t.extend(this,t)}},attachedCallback:function(){var e=this;Polymer.RenderStatus.whenReady(function(){e.isAttached=!0;for(var t,i=0;i<e.behaviors.length;i++)t=e.behaviors[i],t.attached&&t.attached.call(e);e.attached&&e.attached()})},detachedCallback:function(){var e=this;Polymer.RenderStatus.whenReady(function(){e.isAttached=!1;for(var t,i=0;i<e.behaviors.length;i++)t=e.behaviors[i],t.detached&&t.detached.call(e);e.detached&&e.detached()})},attributeChangedCallback:function(e,t,i){this._attributeChangedImpl(e);for(var n,r=0;r<this.behaviors.length;r++)n=this.behaviors[r],n.attributeChanged&&n.attributeChanged.call(this,e,t,i);this.attributeChanged&&this.attributeChanged(e,t,i)},_attributeChangedImpl:function(e){this._setAttributeToProperty(this,e)},extend:function(e,t){if(e&&t)for(var i,n=Object.getOwnPropertyNames(t),r=0;r<n.length&&(i=n[r]);r++)this.copyOwnProperty(i,t,e);return e||t},mixin:function(e,t){for(var i in t)e[i]=t[i];return e},copyOwnProperty:function(e,t,i){var n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(i,e,n)},_logger:function(e,t){switch(1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":}},_log:function(){var e=Array.prototype.slice.call(arguments,0);this._logger("log",e)},_warn:function(){var e=Array.prototype.slice.call(arguments,0);this._logger("warn",e)},_error:function(){var e=Array.prototype.slice.call(arguments,0);this._logger("error",e)},_logf:function(){return this._logPrefix.concat(this.is).concat(Array.prototype.slice.call(arguments,0))}},Polymer.Base._logPrefix=function(){return window.chrome&&!/edge/i.test(navigator.userAgent)||/firefox/i.test(navigator.userAgent)?["%c[%s::%s]:","font-weight: bold; background-color:#EEEE00;"]:["[%s::%s]:"]}(),Polymer.Base.chainObject=function(e,t){return e&&t&&e!==t&&(Object.__proto__||(e=Polymer.Base.extend(Object.create(t),e)),e.__proto__=t),e},Polymer.Base=Polymer.Base.chainObject(Polymer.Base,HTMLElement.prototype),Polymer.BaseDescriptors={};var t;if(e.disableUpgradeEnabled){t=function(e,t){this.__data__[e]=t};var i=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(e,t,n){this.__hasInitialized||"disable-upgrade"!==e||(this.__hasInitialized=!0,this._propertySetter=Polymer.Bind._modelApi._propertySetter,this._configValue=Polymer.Base._configValue,this.__initialize()),i.call(this,e,t,n)}}window.CustomElements?Polymer["instanceof"]=CustomElements["instanceof"]:Polymer["instanceof"]=function(e,t){return e instanceof t},Polymer.isInstance=function(e){return!(!e||!e.__isPolymerInstance__)},Polymer.telemetry.instanceCount=0}(),function(){function e(){if(o)for(var e,t=document._currentScript||document.currentScript,i=t&&t.ownerDocument||document,n=i.querySelectorAll("dom-module"),r=n.length-1;r>=0&&(e=n[r]);r--){if(e.__upgraded__)return;CustomElements.upgrade(e)}}var t={},i={},n=function(e){return t[e]||i[e.toLowerCase()]},r=function(){return document.createElement("dom-module")};r.prototype=Object.create(HTMLElement.prototype),Polymer.Base.mixin(r.prototype,{createdCallback:function(){this.register()},register:function(e){e=e||this.id||this.getAttribute("name")||this.getAttribute("is"),e&&(this.id=e,t[e]=this,i[e.toLowerCase()]=this)},"import":function(t,i){if(t){var r=n(t);return r||(e(),r=n(t)),r&&i&&(r=r.querySelector(i)),r}}}),Object.defineProperty(r.prototype,"constructor",{value:r,configurable:!0,writable:!0});var o=window.CustomElements&&!CustomElements.useNative;document.registerElement("dom-module",r)}(),Polymer.Base._addFeature({_prepIs:function(){if(!this.is){var e=(document._currentScript||document.currentScript).parentNode;if("dom-module"===e.localName){var t=e.id||e.getAttribute("name")||e.getAttribute("is");this.is=t}}this.is&&(this.is=this.is.toLowerCase())}}),Polymer.Base._addFeature({behaviors:[],_desugarBehaviors:function(){this.behaviors.length&&(this.behaviors=this._desugarSomeBehaviors(this.behaviors))},_desugarSomeBehaviors:function(e){var t=[];e=this._flattenBehaviorsList(e);for(var i=e.length-1;i>=0;i--){var n=e[i];t.indexOf(n)===-1&&(this._mixinBehavior(n),t.unshift(n))}return t},_flattenBehaviorsList:function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];n instanceof Array?t=t.concat(this._flattenBehaviorsList(n)):n?t.push(n):this._warn(this._logf("_flattenBehaviorsList","behavior is null, check for missing or 404 import"))}return t},_mixinBehavior:function(e){for(var t,i=Object.getOwnPropertyNames(e),n=e._noAccessors,r=0;r<i.length&&(t=i[r]);r++)Polymer.Base._behaviorProperties[t]||this.hasOwnProperty(t)||(n?this[t]=e[t]:this.copyOwnProperty(t,e,this))},_prepBehaviors:function(){this._prepFlattenedBehaviors(this.behaviors)},_prepFlattenedBehaviors:function(e){for(var t=0,i=e.length;i>t;t++)this._prepBehavior(e[t]);this._prepBehavior(this)},_marshalBehaviors:function(){for(var e=0;e<this.behaviors.length;e++)this._marshalBehavior(this.behaviors[e]);this._marshalBehavior(this)}}),Polymer.Base._behaviorProperties={hostAttributes:!0,beforeRegister:!0,registered:!0,properties:!0,observers:!0,listeners:!0,created:!0,attached:!0,detached:!0,attributeChanged:!0,ready:!0,_noAccessors:!0},Polymer.Base._addFeature({_getExtendedPrototype:function(e){return this._getExtendedNativePrototype(e)},_nativePrototypes:{},_getExtendedNativePrototype:function(e){var t=this._nativePrototypes[e];if(!t){t=Object.create(this.getNativePrototype(e));for(var i,n=Object.getOwnPropertyNames(Polymer.Base),r=0;r<n.length&&(i=n[r]);r++)Polymer.BaseDescriptors[i]||(t[i]=Polymer.Base[i]);Object.defineProperties(t,Polymer.BaseDescriptors),this._nativePrototypes[e]=t}return t},getNativePrototype:function(e){return Object.getPrototypeOf(document.createElement(e))}}),Polymer.Base._addFeature({_prepConstructor:function(){this._factoryArgs=this["extends"]?[this["extends"],this.is]:[this.is];var e=function(){return this._factory(arguments)};this.hasOwnProperty("extends")&&(e["extends"]=this["extends"]),Object.defineProperty(this,"constructor",{value:e,writable:!0,configurable:!0}),e.prototype=this},_factory:function(e){var t=document.createElement.apply(document,this._factoryArgs);return this.factoryImpl&&this.factoryImpl.apply(t,e),t}}),Polymer.nob=Object.create(null),Polymer.Base._addFeature({getPropertyInfo:function(e){var t=this._getPropertyInfo(e,this.properties);if(!t)for(var i=0;i<this.behaviors.length;i++)if(t=this._getPropertyInfo(e,this.behaviors[i].properties))return t;return t||Polymer.nob},_getPropertyInfo:function(e,t){var i=t&&t[e];return"function"==typeof i&&(i=t[e]={type:i}),i&&(i.defined=!0),i},_prepPropertyInfo:function(){this._propertyInfo={};for(var e=0;e<this.behaviors.length;e++)this._addPropertyInfo(this._propertyInfo,this.behaviors[e].properties);this._addPropertyInfo(this._propertyInfo,this.properties),this._addPropertyInfo(this._propertyInfo,this._propertyEffects)},_addPropertyInfo:function(e,t){if(t){var i,n;for(var r in t)i=e[r],n=t[r],("_"!==r[0]||n.readOnly)&&(e[r]?(i.type||(i.type=n.type),i.readOnly||(i.readOnly=n.readOnly)):e[r]={type:"function"==typeof n?n:n.type,readOnly:n.readOnly,attribute:Polymer.CaseMap.camelToDashCase(r)})}}}),function(){var e={configurable:!0,writable:!0,enumerable:!0,value:{}};Polymer.BaseDescriptors.properties=e,Object.defineProperty(Polymer.Base,"properties",e)}(),Polymer.CaseMap={_caseMap:{},_rx:{dashToCamel:/-[a-z]/g,camelToDash:/([A-Z])/g},dashToCamelCase:function(e){return this._caseMap[e]||(this._caseMap[e]=e.indexOf("-")<0?e:e.replace(this._rx.dashToCamel,function(e){return e[1].toUpperCase()}))},camelToDashCase:function(e){return this._caseMap[e]||(this._caseMap[e]=e.replace(this._rx.camelToDash,"-$1").toLowerCase())}},Polymer.Base._addFeature({_addHostAttributes:function(e){this._aggregatedAttributes||(this._aggregatedAttributes={}),e&&this.mixin(this._aggregatedAttributes,e)},_marshalHostAttributes:function(){this._aggregatedAttributes&&this._applyAttributes(this,this._aggregatedAttributes)},_applyAttributes:function(e,t){for(var i in t)if(!this.hasAttribute(i)&&"class"!==i){var n=t[i];this.serializeValueToAttribute(n,i,this)}},_marshalAttributes:function(){this._takeAttributesToModel(this)},_takeAttributesToModel:function(e){if(this.hasAttributes())for(var t in this._propertyInfo){var i=this._propertyInfo[t];this.hasAttribute(i.attribute)&&this._setAttributeToProperty(e,i.attribute,t,i)}},_setAttributeToProperty:function(e,t,i,n){if(!this._serializing&&(i=i||Polymer.CaseMap.dashToCamelCase(t),n=n||this._propertyInfo&&this._propertyInfo[i],n&&!n.readOnly)){var r=this.getAttribute(t);e[i]=this.deserialize(r,n.type)}},_serializing:!1,reflectPropertyToAttribute:function(e,t,i){this._serializing=!0,i=void 0===i?this[e]:i,this.serializeValueToAttribute(i,t||Polymer.CaseMap.camelToDashCase(e)),this._serializing=!1},serializeValueToAttribute:function(e,t,i){var n=this.serialize(e);i=i||this,void 0===n?i.removeAttribute(t):i.setAttribute(t,n)},deserialize:function(e,t){switch(t){case Number:e=+e;break;case Boolean:e=null!=e;break;case Object:try{e=JSON.parse(e)}catch(i){}break;case Array:try{e=JSON.parse(e)}catch(i){e=null}break;case Date:e=new Date(e);break;case String:}return e},serialize:function(e){switch(typeof e){case"boolean":return e?"":void 0;case"object":if(e instanceof Date)return""+e;if(e)try{return JSON.stringify(e)}catch(t){return""}default:return null!=e?e:void 0}}}),Polymer.version="1.8.1",Polymer.Base._addFeature({_registerFeatures:function(){this._prepIs(),this._prepBehaviors(),this._prepConstructor(),this._prepPropertyInfo()},_prepBehavior:function(e){this._addHostAttributes(e.hostAttributes)},_marshalBehavior:function(){},_initFeatures:function(){this._marshalHostAttributes(),this._marshalBehaviors()}}),Polymer.Base._addFeature({_prepTemplate:function(){void 0===this._template&&(this._template=Polymer.DomModule["import"](this.is,"template")),this._template&&this._template.hasAttribute("is")&&this._warn(this._logf("_prepTemplate","top-level Polymer template must not be a type-extension, found",this._template,"Move inside simple <template>.")),this._template&&!this._template.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(this._template)},_stampTemplate:function(){this._template&&(this.root=this.instanceTemplate(this._template))},instanceTemplate:function(e){return document.importNode(e._content||e.content,!0)}}),function(){var e=Polymer.Base.attachedCallback;Polymer.Base._addFeature({_hostStack:[],ready:function(){},_registerHost:function(e){this.dataHost=e=e||Polymer.Base._hostStack[Polymer.Base._hostStack.length-1],e&&e._clients&&e._clients.push(this),this._clients=null,this._clientsReadied=!1},_beginHosting:function(){Polymer.Base._hostStack.push(this),this._clients||(this._clients=[])},_endHosting:function(){Polymer.Base._hostStack.pop()},_tryReady:function(){this._readied=!1,this._canReady()&&this._ready()},_canReady:function(){return!this.dataHost||this.dataHost._clientsReadied},_ready:function(){this._beforeClientsReady(),this._template&&(this._setupRoot(),this._readyClients()),this._clientsReadied=!0,this._clients=null,this._afterClientsReady(),this._readySelf()},_readyClients:function(){this._beginDistribute();var e=this._clients;if(e)for(var t,i=0,n=e.length;n>i&&(t=e[i]);i++)t._ready();this._finishDistribute()},_readySelf:function(){for(var e,t=0;t<this.behaviors.length;t++)e=this.behaviors[t],e.ready&&e.ready.call(this);this.ready&&this.ready(),this._readied=!0,this._attachedPending&&(this._attachedPending=!1,this.attachedCallback())},_beforeClientsReady:function(){},_afterClientsReady:function(){},_beforeAttached:function(){},attachedCallback:function(){this._readied?(this._beforeAttached(),e.call(this)):this._attachedPending=!0}})}(),Polymer.ArraySplice=function(){function e(e,t,i){return{index:e,removed:t,addedCount:i}}function t(){}var i=0,n=1,r=2,o=3;return t.prototype={calcEditDistances:function(e,t,i,n,r,o){for(var s=o-r+1,a=i-t+1,l=Array(s),h=0;s>h;h++)l[h]=Array(a),l[h][0]=h;for(var c=0;a>c;c++)l[0][c]=c;for(h=1;s>h;h++)for(c=1;a>c;c++)if(this.equals(e[t+c-1],n[r+h-1]))l[h][c]=l[h-1][c-1];else{var u=l[h-1][c]+1,d=l[h][c-1]+1;l[h][c]=d>u?u:d}return l},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,s=e[0].length-1,a=e[t][s],l=[];t>0||s>0;)if(0!=t)if(0!=s){var h,c=e[t-1][s-1],u=e[t-1][s],d=e[t][s-1];h=d>u?c>u?u:c:c>d?d:c,h==c?(c==a?l.push(i):(l.push(n),a=c),t--,s--):h==u?(l.push(o),t--,a=u):(l.push(r),s--,a=d)}else l.push(o),t--;else l.push(r),s--;return l.reverse(),l},calcSplices:function(t,s,a,l,h,c){var u=0,d=0,f=Math.min(a-s,c-h);if(0==s&&0==h&&(u=this.sharedPrefix(t,l,f)),a==t.length&&c==l.length&&(d=this.sharedSuffix(t,l,f-u)),s+=u,h+=u,a-=d,c-=d,a-s==0&&c-h==0)return[];if(s==a){for(var p=e(s,[],0);c>h;)p.removed.push(l[h++]);return[p]}if(h==c)return[e(s,[],a-s)];var m=this.spliceOperationsFromEditDistances(this.calcEditDistances(t,s,a,l,h,c));p=void 0;for(var _=[],y=s,v=h,g=0;g<m.length;g++)switch(m[g]){case i:p&&(_.push(p),p=void 0),y++,v++;break;case n:p||(p=e(y,[],0)),p.addedCount++,y++,p.removed.push(l[v]),v++;break;case r:p||(p=e(y,[],0)),p.addedCount++,y++;break;case o:p||(p=e(y,[],0)),p.removed.push(l[v]),v++}return p&&_.push(p),_},sharedPrefix:function(e,t,i){for(var n=0;i>n;n++)if(!this.equals(e[n],t[n]))return n;return i},sharedSuffix:function(e,t,i){for(var n=e.length,r=t.length,o=0;i>o&&this.equals(e[--n],t[--r]);)o++;return o},calculateSplices:function(e,t){return this.calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}},new t}(),Polymer.domInnerHTML=function(){function e(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function t(t){return t.replace(s,e)}function i(t){return t.replace(a,e)}function n(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=!0;return t}function r(e,n,r){switch(e.nodeType){case Node.ELEMENT_NODE:for(var s,a=e.localName,c="<"+a,u=e.attributes,d=0;s=u[d];d++)c+=" "+s.name+'="'+t(s.value)+'"';return c+=">",l[a]?c:c+o(e,r)+"</"+a+">";case Node.TEXT_NODE:var f=e.data;return n&&h[n.localName]?f:i(f);case Node.COMMENT_NODE:return"<!--"+e.data+"-->";default:throw Error("not implemented")}}function o(e,t){e instanceof HTMLTemplateElement&&(e=e.content);for(var i,n="",o=Polymer.dom(e).childNodes,s=0,a=o.length;a>s&&(i=o[s]);s++)n+=r(i,e,t);return n}var s=/[&\u00A0"]/g,a=/[&\u00A0<>]/g,l=n(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),h=n(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);return{getInnerHTML:o}}(),function(){"use strict";var e=Element.prototype.insertBefore,t=Element.prototype.appendChild,i=Element.prototype.removeChild;Polymer.TreeApi={arrayCopyChildNodes:function(e){for(var t=[],i=0,n=e.firstChild;n;n=n.nextSibling)t[i++]=n;return t},arrayCopyChildren:function(e){for(var t=[],i=0,n=e.firstElementChild;n;n=n.nextElementSibling)t[i++]=n;return t},arrayCopy:function(e){for(var t=e.length,i=Array(t),n=0;t>n;n++)i[n]=e[n];return i}},Polymer.TreeApi.Logical={hasParentNode:function(e){return!(!e.__dom||!e.__dom.parentNode)},hasChildNodes:function(e){return!(!e.__dom||void 0===e.__dom.childNodes)},getChildNodes:function(e){return this.hasChildNodes(e)?this._getChildNodes(e):e.childNodes},_getChildNodes:function(e){if(!e.__dom.childNodes){e.__dom.childNodes=[];for(var t=e.__dom.firstChild;t;t=t.__dom.nextSibling)e.__dom.childNodes.push(t)}return e.__dom.childNodes},getParentNode:function(e){return e.__dom&&void 0!==e.__dom.parentNode?e.__dom.parentNode:e.parentNode},getFirstChild:function(e){return e.__dom&&void 0!==e.__dom.firstChild?e.__dom.firstChild:e.firstChild;
},getLastChild:function(e){return e.__dom&&void 0!==e.__dom.lastChild?e.__dom.lastChild:e.lastChild},getNextSibling:function(e){return e.__dom&&void 0!==e.__dom.nextSibling?e.__dom.nextSibling:e.nextSibling},getPreviousSibling:function(e){return e.__dom&&void 0!==e.__dom.previousSibling?e.__dom.previousSibling:e.previousSibling},getFirstElementChild:function(e){return e.__dom&&void 0!==e.__dom.firstChild?this._getFirstElementChild(e):e.firstElementChild},_getFirstElementChild:function(e){for(var t=e.__dom.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.nextSibling;return t},getLastElementChild:function(e){return e.__dom&&void 0!==e.__dom.lastChild?this._getLastElementChild(e):e.lastElementChild},_getLastElementChild:function(e){for(var t=e.__dom.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previousSibling;return t},getNextElementSibling:function(e){return e.__dom&&void 0!==e.__dom.nextSibling?this._getNextElementSibling(e):e.nextElementSibling},_getNextElementSibling:function(e){for(var t=e.__dom.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.nextSibling;return t},getPreviousElementSibling:function(e){return e.__dom&&void 0!==e.__dom.previousSibling?this._getPreviousElementSibling(e):e.previousElementSibling},_getPreviousElementSibling:function(e){for(var t=e.__dom.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__dom.previousSibling;return t},saveChildNodes:function(e){if(!this.hasChildNodes(e)){e.__dom=e.__dom||{},e.__dom.firstChild=e.firstChild,e.__dom.lastChild=e.lastChild,e.__dom.childNodes=[];for(var t=e.firstChild;t;t=t.nextSibling)t.__dom=t.__dom||{},t.__dom.parentNode=e,e.__dom.childNodes.push(t),t.__dom.nextSibling=t.nextSibling,t.__dom.previousSibling=t.previousSibling}},recordInsertBefore:function(e,t,i){if(t.__dom.childNodes=null,e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var n=e.firstChild;n;n=n.nextSibling)this._linkNode(n,t,i);else this._linkNode(e,t,i)},_linkNode:function(e,t,i){e.__dom=e.__dom||{},t.__dom=t.__dom||{},i&&(i.__dom=i.__dom||{}),e.__dom.previousSibling=i?i.__dom.previousSibling:t.__dom.lastChild,e.__dom.previousSibling&&(e.__dom.previousSibling.__dom.nextSibling=e),e.__dom.nextSibling=i||null,e.__dom.nextSibling&&(e.__dom.nextSibling.__dom.previousSibling=e),e.__dom.parentNode=t,i?i===t.__dom.firstChild&&(t.__dom.firstChild=e):(t.__dom.lastChild=e,t.__dom.firstChild||(t.__dom.firstChild=e)),t.__dom.childNodes=null},recordRemoveChild:function(e,t){e.__dom=e.__dom||{},t.__dom=t.__dom||{},e===t.__dom.firstChild&&(t.__dom.firstChild=e.__dom.nextSibling),e===t.__dom.lastChild&&(t.__dom.lastChild=e.__dom.previousSibling);var i=e.__dom.previousSibling,n=e.__dom.nextSibling;i&&(i.__dom.nextSibling=n),n&&(n.__dom.previousSibling=i),e.__dom.parentNode=e.__dom.previousSibling=e.__dom.nextSibling=void 0,t.__dom.childNodes=null}},Polymer.TreeApi.Composed={getChildNodes:function(e){return Polymer.TreeApi.arrayCopyChildNodes(e)},getParentNode:function(e){return e.parentNode},clearChildNodes:function(e){e.textContent=""},insertBefore:function(t,i,n){return e.call(t,i,n||null)},appendChild:function(e,i){return t.call(e,i)},removeChild:function(e,t){return i.call(e,t)}}}(),Polymer.DomApi=function(){"use strict";var e=Polymer.Settings,t=Polymer.TreeApi,i=function(e){this.node=n?i.wrap(e):e},n=e.hasShadow&&!e.nativeShadow;i.wrap=window.wrap?window.wrap:function(e){return e},i.prototype={flush:function(){Polymer.dom.flush()},deepContains:function(e){if(this.node.contains(e))return!0;for(var t=e,i=e.ownerDocument;t&&t!==i&&t!==this.node;)t=Polymer.dom(t).parentNode||t.host;return t===this.node},queryDistributedElements:function(e){for(var t,n=this.getEffectiveChildNodes(),r=[],o=0,s=n.length;s>o&&(t=n[o]);o++)t.nodeType===Node.ELEMENT_NODE&&i.matchesSelector.call(t,e)&&r.push(t);return r},getEffectiveChildNodes:function(){for(var e,t=[],i=this.childNodes,n=0,s=i.length;s>n&&(e=i[n]);n++)if(e.localName===r)for(var a=o(e).getDistributedNodes(),l=0;l<a.length;l++)t.push(a[l]);else t.push(e);return t},observeNodes:function(e){if(e)return this.observer||(this.observer=this.node.localName===r?new i.DistributedNodesObserver(this):new i.EffectiveNodesObserver(this)),this.observer.addListener(e)},unobserveNodes:function(e){this.observer&&this.observer.removeListener(e)},notifyObserver:function(){this.observer&&this.observer.notify()},_query:function(e,i,n){i=i||this.node;var r=[];return this._queryElements(t.Logical.getChildNodes(i),e,n,r),r},_queryElements:function(e,t,i,n){for(var r,o=0,s=e.length;s>o&&(r=e[o]);o++)if(r.nodeType===Node.ELEMENT_NODE&&this._queryElement(r,t,i,n))return!0},_queryElement:function(e,i,n,r){var o=i(e);return o&&r.push(e),n&&n(o)?o:void this._queryElements(t.Logical.getChildNodes(e),i,n,r)}};var r=i.CONTENT="content",o=i.factory=function(e){return e=e||document,e.__domApi||(e.__domApi=new i.ctor(e)),e.__domApi};i.hasApi=function(e){return!!e.__domApi},i.ctor=i,Polymer.dom=function(e,t){return e instanceof Event?Polymer.EventApi.factory(e):i.factory(e,t)};var s=Element.prototype;return i.matchesSelector=s.matches||s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector,i}(),function(){"use strict";var e=Polymer.Settings,t=Polymer.DomApi,i=t.factory,n=Polymer.TreeApi,r=Polymer.domInnerHTML.getInnerHTML,o=t.CONTENT;if(!e.useShadow){var s=Element.prototype.cloneNode,a=Document.prototype.importNode;Polymer.Base.mixin(t.prototype,{_lazyDistribute:function(e){e.shadyRoot&&e.shadyRoot._distributionClean&&(e.shadyRoot._distributionClean=!1,Polymer.dom.addDebouncer(e.debounce("_distribute",e._distributeContent)))},appendChild:function(e){return this.insertBefore(e)},insertBefore:function(e,r){if(r&&n.Logical.getParentNode(r)!==this.node)throw Error("The ref_node to be inserted before is not a child of this node");if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var s=n.Logical.getParentNode(e);s?(t.hasApi(s)&&i(s).notifyObserver(),this._removeNode(e)):this._removeOwnerShadyRoot(e)}if(!this._addNode(e,r)){r&&(r=r.localName===o?this._firstComposedNode(r):r);var a=this.node._isShadyRoot?this.node.host:this.node;r?n.Composed.insertBefore(a,e,r):n.Composed.appendChild(a,e)}return this.notifyObserver(),e},_addNode:function(e,t){var i=this.getOwnerRoot();if(i){var r=this._maybeAddInsertionPoint(e,this.node);i._invalidInsertionPoints||(i._invalidInsertionPoints=r),this._addNodeToHost(i.host,e)}n.Logical.hasChildNodes(this.node)&&n.Logical.recordInsertBefore(e,this.node,t);var o=this._maybeDistribute(e)||this.node.shadyRoot;if(o)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(;e.firstChild;)n.Composed.removeChild(e,e.firstChild);else{var s=n.Composed.getParentNode(e);s&&n.Composed.removeChild(s,e)}return o},removeChild:function(e){if(n.Logical.getParentNode(e)!==this.node)throw Error("The node to be removed is not a child of this node: "+e);if(!this._removeNode(e)){var t=this.node._isShadyRoot?this.node.host:this.node;t===n.Composed.getParentNode(e)&&n.Composed.removeChild(t,e)}return this.notifyObserver(),e},_removeNode:function(e){var t,r=n.Logical.hasParentNode(e)&&n.Logical.getParentNode(e),o=this._ownerShadyRootForNode(e);return r&&(t=i(e)._maybeDistributeParent(),n.Logical.recordRemoveChild(e,r),o&&this._removeDistributedChildren(o,e)&&(o._invalidInsertionPoints=!0,this._lazyDistribute(o.host))),this._removeOwnerShadyRoot(e),o&&this._removeNodeFromHost(o.host,e),t},replaceChild:function(e,t){return this.insertBefore(e,t),this.removeChild(t),e},_hasCachedOwnerRoot:function(e){return!(void 0===e._ownerShadyRoot)},getOwnerRoot:function(){return this._ownerShadyRootForNode(this.node)},_ownerShadyRootForNode:function(e){if(e){var t=e._ownerShadyRoot;if(void 0===t){if(e._isShadyRoot)t=e;else{var i=n.Logical.getParentNode(e);t=i?i._isShadyRoot?i:this._ownerShadyRootForNode(i):null}(t||document.documentElement.contains(e))&&(e._ownerShadyRoot=t)}return t}},_maybeDistribute:function(e){var t=e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!e.__noContent&&i(e).querySelector(o),r=t&&n.Logical.getParentNode(t).nodeType!==Node.DOCUMENT_FRAGMENT_NODE,s=t||e.localName===o;if(s){var a=this.getOwnerRoot();a&&this._lazyDistribute(a.host)}var l=this._nodeNeedsDistribution(this.node);return l&&this._lazyDistribute(this.node),l||s&&!r},_maybeAddInsertionPoint:function(e,t){var r;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||e.__noContent)e.localName===o&&(n.Logical.saveChildNodes(t),n.Logical.saveChildNodes(e),r=!0);else for(var s,a,l,h=i(e).querySelectorAll(o),c=0;c<h.length&&(s=h[c]);c++)a=n.Logical.getParentNode(s),a===e&&(a=t),l=this._maybeAddInsertionPoint(s,a),r=r||l;return r},_updateInsertionPoints:function(e){for(var t,r=e.shadyRoot._insertionPoints=i(e.shadyRoot).querySelectorAll(o),s=0;s<r.length;s++)t=r[s],n.Logical.saveChildNodes(t),n.Logical.saveChildNodes(n.Logical.getParentNode(t))},_nodeNeedsDistribution:function(e){return e&&e.shadyRoot&&t.hasInsertionPoint(e.shadyRoot)},_addNodeToHost:function(e,t){e._elementAdd&&e._elementAdd(t)},_removeNodeFromHost:function(e,t){e._elementRemove&&e._elementRemove(t)},_removeDistributedChildren:function(e,t){for(var r,o=e._insertionPoints,s=0;s<o.length;s++){var a=o[s];if(this._contains(t,a))for(var l=i(a).getDistributedNodes(),h=0;h<l.length;h++){r=!0;var c=l[h],u=n.Composed.getParentNode(c);u&&n.Composed.removeChild(u,c)}}return r},_contains:function(e,t){for(;t;){if(t==e)return!0;t=n.Logical.getParentNode(t)}},_removeOwnerShadyRoot:function(e){if(this._hasCachedOwnerRoot(e))for(var t,i=n.Logical.getChildNodes(e),r=0,o=i.length;o>r&&(t=i[r]);r++)this._removeOwnerShadyRoot(t);e._ownerShadyRoot=void 0},_firstComposedNode:function(e){for(var t,n,r=i(e).getDistributedNodes(),o=0,s=r.length;s>o&&(t=r[o]);o++)if(n=i(t).getDestinationInsertionPoints(),n[n.length-1]===e)return t},querySelector:function(e){return this._query(function(i){return t.matchesSelector.call(i,e)},this.node,function(e){return!!e})[0]||null},querySelectorAll:function(e){return this._query(function(i){return t.matchesSelector.call(i,e)},this.node)},getDestinationInsertionPoints:function(){return this.node._destinationInsertionPoints||[]},getDistributedNodes:function(){return this.node._distributedNodes||[]},_clear:function(){for(;this.childNodes.length;)this.removeChild(this.childNodes[0])},setAttribute:function(e,t){this.node.setAttribute(e,t),this._maybeDistributeParent()},removeAttribute:function(e){this.node.removeAttribute(e),this._maybeDistributeParent()},_maybeDistributeParent:function(){if(this._nodeNeedsDistribution(this.parentNode))return this._lazyDistribute(this.parentNode),!0},cloneNode:function(e){var t=s.call(this.node,!1);if(e)for(var n,r=this.childNodes,o=i(t),a=0;a<r.length;a++)n=i(r[a]).cloneNode(!0),o.appendChild(n);return t},importNode:function(e,t){var r=this.node instanceof Document?this.node:this.node.ownerDocument,o=a.call(r,e,!1);if(t)for(var s,l=n.Logical.getChildNodes(e),h=i(o),c=0;c<l.length;c++)s=i(r).importNode(l[c],!0),h.appendChild(s);return o},_getComposedInnerHTML:function(){return r(this.node,!0)}}),Object.defineProperties(t.prototype,{activeElement:{get:function(){var e=document.activeElement;if(!e)return null;var t=!!this.node._isShadyRoot;if(this.node!==document){if(!t)return null;if(this.node.host===e||!this.node.host.contains(e))return null}for(var n=i(e).getOwnerRoot();n&&n!==this.node;)e=n.host,n=i(e).getOwnerRoot();return this.node===document?n?null:e:n===this.node?e:null},configurable:!0},childNodes:{get:function(){var e=n.Logical.getChildNodes(this.node);return Array.isArray(e)?e:n.arrayCopyChildNodes(this.node)},configurable:!0},children:{get:function(){return n.Logical.hasChildNodes(this.node)?Array.prototype.filter.call(this.childNodes,function(e){return e.nodeType===Node.ELEMENT_NODE}):n.arrayCopyChildren(this.node)},configurable:!0},parentNode:{get:function(){return n.Logical.getParentNode(this.node)},configurable:!0},firstChild:{get:function(){return n.Logical.getFirstChild(this.node)},configurable:!0},lastChild:{get:function(){return n.Logical.getLastChild(this.node)},configurable:!0},nextSibling:{get:function(){return n.Logical.getNextSibling(this.node)},configurable:!0},previousSibling:{get:function(){return n.Logical.getPreviousSibling(this.node)},configurable:!0},firstElementChild:{get:function(){return n.Logical.getFirstElementChild(this.node)},configurable:!0},lastElementChild:{get:function(){return n.Logical.getLastElementChild(this.node)},configurable:!0},nextElementSibling:{get:function(){return n.Logical.getNextElementSibling(this.node)},configurable:!0},previousElementSibling:{get:function(){return n.Logical.getPreviousElementSibling(this.node)},configurable:!0},textContent:{get:function(){var e=this.node.nodeType;if(e===Node.TEXT_NODE||e===Node.COMMENT_NODE)return this.node.textContent;for(var t,i=[],n=0,r=this.childNodes;t=r[n];n++)t.nodeType!==Node.COMMENT_NODE&&i.push(t.textContent);return i.join("")},set:function(e){var t=this.node.nodeType;t===Node.TEXT_NODE||t===Node.COMMENT_NODE?this.node.textContent=e:(this._clear(),e&&this.appendChild(document.createTextNode(e)))},configurable:!0},innerHTML:{get:function(){var e=this.node.nodeType;return e===Node.TEXT_NODE||e===Node.COMMENT_NODE?null:r(this.node)},set:function(e){var t=this.node.nodeType;if(t!==Node.TEXT_NODE||t!==Node.COMMENT_NODE){this._clear();var i=document.createElement("div");i.innerHTML=e;for(var r=n.arrayCopyChildNodes(i),o=0;o<r.length;o++)this.appendChild(r[o])}},configurable:!0}}),t.hasInsertionPoint=function(e){return!(!e||!e._insertionPoints.length)}}}(),function(){"use strict";var e=Polymer.Settings,t=Polymer.TreeApi,i=Polymer.DomApi;if(e.useShadow){Polymer.Base.mixin(i.prototype,{querySelectorAll:function(e){return t.arrayCopy(this.node.querySelectorAll(e))},getOwnerRoot:function(){for(var e=this.node;e;){if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host)return e;e=e.parentNode}},importNode:function(e,t){return(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(e,t)},getDestinationInsertionPoints:function(){var e=this.node.getDestinationInsertionPoints&&this.node.getDestinationInsertionPoints();return e?t.arrayCopy(e):[]},getDistributedNodes:function(){var e=this.node.getDistributedNodes&&this.node.getDistributedNodes();return e?t.arrayCopy(e):[]}}),Object.defineProperties(i.prototype,{activeElement:{get:function(){var e=i.wrap(this.node),t=e.activeElement;return e.contains(t)?t:null},configurable:!0},childNodes:{get:function(){return t.arrayCopyChildNodes(this.node)},configurable:!0},children:{get:function(){return t.arrayCopyChildren(this.node)},configurable:!0},textContent:{get:function(){return this.node.textContent},set:function(e){return this.node.textContent=e},configurable:!0},innerHTML:{get:function(){return this.node.innerHTML},set:function(e){return this.node.innerHTML=e},configurable:!0}});var n=function(e){i.prototype[e]=function(){return this.node[e].apply(this.node,arguments)}};!function(e){for(var t=0;t<e.length;t++)n(e[t])}(["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector"]);var r=function(e){Object.defineProperty(i.prototype,e,{get:function(){return this.node[e]},configurable:!0})};!function(e){for(var t=0;t<e.length;t++)r(e[t])}(["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling"])}}(),Polymer.Base.mixin(Polymer.dom,{_flushGuard:0,_FLUSH_MAX:100,_needsTakeRecords:!Polymer.Settings.useNativeCustomElements,_debouncers:[],_staticFlushList:[],_finishDebouncer:null,flush:function(){for(this._flushGuard=0,this._prepareFlush();this._debouncers.length&&this._flushGuard<this._FLUSH_MAX;){for(;this._debouncers.length;)this._debouncers.shift().complete();this._finishDebouncer&&this._finishDebouncer.complete(),this._prepareFlush(),this._flushGuard++}this._flushGuard>=this._FLUSH_MAX},_prepareFlush:function(){this._needsTakeRecords&&CustomElements.takeRecords();for(var e=0;e<this._staticFlushList.length;e++)this._staticFlushList[e]()},addStaticFlush:function(e){this._staticFlushList.push(e)},removeStaticFlush:function(e){var t=this._staticFlushList.indexOf(e);0>t||this._staticFlushList.splice(t,1)},addDebouncer:function(e){this._debouncers.push(e),this._finishDebouncer=Polymer.Debounce(this._finishDebouncer,this._finishFlush)},_finishFlush:function(){Polymer.dom._debouncers=[]}}),Polymer.EventApi=function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;return e.Event=function(e){this.event=e},t.useShadow?e.Event.prototype={get rootTarget(){return this.event.path[0]},get localTarget(){return this.event.target},get path(){var e=this.event.path;return Array.isArray(e)||(e=Array.prototype.slice.call(e)),e}}:e.Event.prototype={get rootTarget(){return this.event.target},get localTarget(){for(var e=this.event.currentTarget,t=e&&Polymer.dom(e).getOwnerRoot(),i=this.path,n=0;n<i.length;n++)if(Polymer.dom(i[n]).getOwnerRoot()===t)return i[n]},get path(){if(!this.event._path){for(var e=[],t=this.rootTarget;t;){e.push(t);var i=Polymer.dom(t).getDestinationInsertionPoints();if(i.length){for(var n=0;n<i.length-1;n++)e.push(i[n]);t=i[i.length-1]}else t=Polymer.dom(t).parentNode||t.host}e.push(window),this.event._path=e}return this.event._path}},{factory:function(t){return t.__eventApi||(t.__eventApi=new e.Event(t)),t.__eventApi}}}(),function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings.useShadow;Object.defineProperty(e.prototype,"classList",{get:function(){return this._classList||(this._classList=new e.ClassList(this)),this._classList},configurable:!0}),e.ClassList=function(e){this.domApi=e,this.node=e.node},e.ClassList.prototype={add:function(){this.node.classList.add.apply(this.node.classList,arguments),this._distributeParent()},remove:function(){this.node.classList.remove.apply(this.node.classList,arguments),this._distributeParent()},toggle:function(){this.node.classList.toggle.apply(this.node.classList,arguments),this._distributeParent()},_distributeParent:function(){t||this.domApi._maybeDistributeParent()},contains:function(){return this.node.classList.contains.apply(this.node.classList,arguments)}}}(),function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;if(e.EffectiveNodesObserver=function(e){this.domApi=e,this.node=this.domApi.node,this._listeners=[]},e.EffectiveNodesObserver.prototype={addListener:function(e){this._isSetup||(this._setup(),this._isSetup=!0);var t={fn:e,_nodes:[]};return this._listeners.push(t),this._scheduleNotify(),t},removeListener:function(e){var t=this._listeners.indexOf(e);0>t||(this._listeners.splice(t,1),e._nodes=[]),this._hasListeners()||(this._cleanup(),this._isSetup=!1)},_setup:function(){this._observeContentElements(this.domApi.childNodes)},_cleanup:function(){this._unobserveContentElements(this.domApi.childNodes)},_hasListeners:function(){return!!this._listeners.length},_scheduleNotify:function(){this._debouncer&&this._debouncer.stop(),this._debouncer=Polymer.Debounce(this._debouncer,this._notify),this._debouncer.context=this,Polymer.dom.addDebouncer(this._debouncer)},notify:function(){this._hasListeners()&&this._scheduleNotify()},_notify:function(){this._beforeCallListeners(),this._callListeners()},_beforeCallListeners:function(){this._updateContentElements()},_updateContentElements:function(){this._observeContentElements(this.domApi.childNodes)},_observeContentElements:function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++)this._isContent(t)&&(t.__observeNodesMap=t.__observeNodesMap||new WeakMap,t.__observeNodesMap.has(this)||t.__observeNodesMap.set(this,this._observeContent(t)))},_observeContent:function(e){var t=this,i=Polymer.dom(e).observeNodes(function(){t._scheduleNotify()});return i._avoidChangeCalculation=!0,i},_unobserveContentElements:function(e){for(var t,i,n=0;n<e.length&&(t=e[n]);n++)this._isContent(t)&&(i=t.__observeNodesMap.get(this),i&&(Polymer.dom(t).unobserveNodes(i),t.__observeNodesMap["delete"](this)))},_isContent:function(e){return"content"===e.localName},_callListeners:function(){for(var e,t=this._listeners,i=this._getEffectiveNodes(),n=0;n<t.length&&(e=t[n]);n++){var r=this._generateListenerInfo(e,i);(r||e._alwaysNotify)&&this._callListener(e,r)}},_getEffectiveNodes:function(){return this.domApi.getEffectiveChildNodes()},_generateListenerInfo:function(e,t){if(e._avoidChangeCalculation)return!0;for(var i,n=e._nodes,r={target:this.node,addedNodes:[],removedNodes:[]},o=Polymer.ArraySplice.calculateSplices(t,n),s=0;s<o.length&&(i=o[s]);s++)for(var a,l=0;l<i.removed.length&&(a=i.removed[l]);l++)r.removedNodes.push(a);for(s=0,i;s<o.length&&(i=o[s]);s++)for(l=i.index;l<i.index+i.addedCount;l++)r.addedNodes.push(t[l]);return e._nodes=t,r.addedNodes.length||r.removedNodes.length?r:void 0},_callListener:function(e,t){return e.fn.call(this.node,t)},enableShadowAttributeTracking:function(){}},t.useShadow){var i=e.EffectiveNodesObserver.prototype._setup,n=e.EffectiveNodesObserver.prototype._cleanup;Polymer.Base.mixin(e.EffectiveNodesObserver.prototype,{_setup:function(){if(!this._observer){var e=this;this._mutationHandler=function(t){t&&t.length&&e._scheduleNotify()},this._observer=new MutationObserver(this._mutationHandler),this._boundFlush=function(){e._flush()},Polymer.dom.addStaticFlush(this._boundFlush),this._observer.observe(this.node,{childList:!0})}i.call(this)},_cleanup:function(){this._observer.disconnect(),this._observer=null,this._mutationHandler=null,Polymer.dom.removeStaticFlush(this._boundFlush),n.call(this)},_flush:function(){this._observer&&this._mutationHandler(this._observer.takeRecords())},enableShadowAttributeTracking:function(){if(this._observer){this._makeContentListenersAlwaysNotify(),this._observer.disconnect(),this._observer.observe(this.node,{childList:!0,attributes:!0,subtree:!0});var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&&Polymer.dom(t).observer&&Polymer.dom(t).observer.enableShadowAttributeTracking()}},_makeContentListenersAlwaysNotify:function(){for(var e,t=0;t<this._listeners.length;t++)e=this._listeners[t],e._alwaysNotify=e._isContentListener}})}}(),function(){"use strict";var e=Polymer.DomApi.ctor,t=Polymer.Settings;e.DistributedNodesObserver=function(t){e.EffectiveNodesObserver.call(this,t)},e.DistributedNodesObserver.prototype=Object.create(e.EffectiveNodesObserver.prototype),Polymer.Base.mixin(e.DistributedNodesObserver.prototype,{_setup:function(){},_cleanup:function(){},_beforeCallListeners:function(){},_getEffectiveNodes:function(){return this.domApi.getDistributedNodes()}}),t.useShadow&&Polymer.Base.mixin(e.DistributedNodesObserver.prototype,{_setup:function(){if(!this._observer){var e=this.domApi.getOwnerRoot(),t=e&&e.host;if(t){var i=this;this._observer=Polymer.dom(t).observeNodes(function(){i._scheduleNotify()}),this._observer._isContentListener=!0,this._hasAttrSelect()&&Polymer.dom(t).observer.enableShadowAttributeTracking()}}},_hasAttrSelect:function(){var e=this.node.getAttribute("select");return e&&e.match(/[[.]+/)},_cleanup:function(){var e=this.domApi.getOwnerRoot(),t=e&&e.host;t&&Polymer.dom(t).unobserveNodes(this._observer),this._observer=null}})}(),function(){function e(e,t){t._distributedNodes.push(e);var i=e._destinationInsertionPoints;i?i.push(t):e._destinationInsertionPoints=[t]}function t(e){var t=e._distributedNodes;if(t)for(var i=0;i<t.length;i++){var n=t[i]._destinationInsertionPoints;n&&n.splice(n.indexOf(e)+1,n.length)}}function i(e,t){var i=u.Logical.getParentNode(e);i&&i.shadyRoot&&c.hasInsertionPoint(i.shadyRoot)&&i.shadyRoot._distributionClean&&(i.shadyRoot._distributionClean=!1,t.shadyRoot._dirtyRoots.push(i))}function n(e,t){var i=t._destinationInsertionPoints;return i&&i[i.length-1]===e}function r(e){return"content"==e.localName}function o(e){for(;e&&s(e);)e=e.domHost;return e}function s(e){for(var t,i=u.Logical.getChildNodes(e),n=0;n<i.length;n++)if(t=i[n],t.localName&&"content"===t.localName)return e.domHost}function a(e){for(var t,i=0;i<e._insertionPoints.length;i++)t=e._insertionPoints[i],c.hasApi(t)&&Polymer.dom(t).notifyObserver()}function l(e){c.hasApi(e)&&Polymer.dom(e).notifyObserver()}function h(e){if(f&&e)for(var t=0;t<e.length;t++)CustomElements.upgrade(e[t])}var c=Polymer.DomApi,u=Polymer.TreeApi;Polymer.Base._addFeature({_prepShady:function(){this._useContent=this._useContent||!!this._template},_setupShady:function(){this.shadyRoot=null,this.__domApi||(this.__domApi=null),this.__dom||(this.__dom=null),this._ownerShadyRoot||(this._ownerShadyRoot=void 0)},_poolContent:function(){this._useContent&&u.Logical.saveChildNodes(this)},_setupRoot:function(){this._useContent&&(this._createLocalRoot(),this.dataHost||h(u.Logical.getChildNodes(this)))},_createLocalRoot:function(){this.shadyRoot=this.root,this.shadyRoot._distributionClean=!1,this.shadyRoot._hasDistributed=!1,this.shadyRoot._isShadyRoot=!0,this.shadyRoot._dirtyRoots=[];var e=this.shadyRoot._insertionPoints=!this._notes||this._notes._hasContent?this.shadyRoot.querySelectorAll("content"):[];u.Logical.saveChildNodes(this.shadyRoot);for(var t,i=0;i<e.length;i++)t=e[i],u.Logical.saveChildNodes(t),u.Logical.saveChildNodes(t.parentNode);this.shadyRoot.host=this},distributeContent:function(e){if(this.shadyRoot){this.shadyRoot._invalidInsertionPoints=this.shadyRoot._invalidInsertionPoints||e;var t=o(this);Polymer.dom(this)._lazyDistribute(t)}},_distributeContent:function(){this._useContent&&!this.shadyRoot._distributionClean&&(this.shadyRoot._invalidInsertionPoints&&(Polymer.dom(this)._updateInsertionPoints(this),this.shadyRoot._invalidInsertionPoints=!1),this._beginDistribute(),this._distributeDirtyRoots(),this._finishDistribute())},_beginDistribute:function(){this._useContent&&c.hasInsertionPoint(this.shadyRoot)&&(this._resetDistribution(),this._distributePool(this.shadyRoot,this._collectPool()))},_distributeDirtyRoots:function(){for(var e,t=this.shadyRoot._dirtyRoots,i=0,n=t.length;n>i&&(e=t[i]);i++)e._distributeContent();this.shadyRoot._dirtyRoots=[]},_finishDistribute:function(){if(this._useContent){if(this.shadyRoot._distributionClean=!0,c.hasInsertionPoint(this.shadyRoot))this._composeTree(),a(this.shadyRoot);else if(this.shadyRoot._hasDistributed){var e=this._composeNode(this);this._updateChildNodes(this,e)}else u.Composed.clearChildNodes(this),this.appendChild(this.shadyRoot);this.shadyRoot._hasDistributed||l(this),this.shadyRoot._hasDistributed=!0}},elementMatches:function(e,t){return t=t||this,c.matchesSelector.call(t,e)},_resetDistribution:function(){for(var e=u.Logical.getChildNodes(this),i=0;i<e.length;i++){var n=e[i];n._destinationInsertionPoints&&(n._destinationInsertionPoints=void 0),r(n)&&t(n)}for(var o=this.shadyRoot,s=o._insertionPoints,a=0;a<s.length;a++)s[a]._distributedNodes=[]},_collectPool:function(){for(var e=[],t=u.Logical.getChildNodes(this),i=0;i<t.length;i++){var n=t[i];r(n)?e.push.apply(e,n._distributedNodes):e.push(n)}return e},_distributePool:function(e,t){for(var n,r=e._insertionPoints,o=0,s=r.length;s>o&&(n=r[o]);o++)this._distributeInsertionPoint(n,t),i(n,this)},_distributeInsertionPoint:function(t,i){for(var n,r=!1,o=0,s=i.length;s>o;o++)n=i[o],n&&this._matchesContentSelect(n,t)&&(e(n,t),i[o]=void 0,r=!0);if(!r)for(var a=u.Logical.getChildNodes(t),l=0;l<a.length;l++)e(a[l],t)},_composeTree:function(){this._updateChildNodes(this,this._composeNode(this));for(var e,t,i=this.shadyRoot._insertionPoints,n=0,r=i.length;r>n&&(e=i[n]);n++)t=u.Logical.getParentNode(e),t._useContent||t===this||t===this.shadyRoot||this._updateChildNodes(t,this._composeNode(t))},_composeNode:function(e){for(var t=[],i=u.Logical.getChildNodes(e.shadyRoot||e),o=0;o<i.length;o++){var s=i[o];if(r(s))for(var a=s._distributedNodes,l=0;l<a.length;l++){var h=a[l];n(s,h)&&t.push(h)}else t.push(s)}return t},_updateChildNodes:function(e,t){for(var i,n=u.Composed.getChildNodes(e),r=Polymer.ArraySplice.calculateSplices(t,n),o=0,s=0;o<r.length&&(i=r[o]);o++){for(var a,l=0;l<i.removed.length&&(a=i.removed[l]);l++)u.Composed.getParentNode(a)===e&&u.Composed.removeChild(e,a),n.splice(i.index+s,1);s-=i.addedCount}for(var i,h,o=0;o<r.length&&(i=r[o]);o++)for(h=n[i.index],l=i.index,a;l<i.index+i.addedCount;l++)a=t[l],u.Composed.insertBefore(e,a,h),n.splice(l,0,a)},_matchesContentSelect:function(e,t){var i=t.getAttribute("select");return!i||!(i=i.trim())||e instanceof Element&&!!/^(:not\()?[*.#[a-zA-Z_|]/.test(i)&&this.elementMatches(i,e)},_elementAdd:function(){},_elementRemove:function(){}});var d={get:function(){var e=Polymer.dom(this).getOwnerRoot();return e&&e.host},configurable:!0};Object.defineProperty(Polymer.Base,"domHost",d),Polymer.BaseDescriptors.domHost=d;var f=window.CustomElements&&!CustomElements.useNative}(),Polymer.Settings.useShadow&&Polymer.Base._addFeature({_poolContent:function(){},_beginDistribute:function(){},distributeContent:function(){},_distributeContent:function(){},_finishDistribute:function(){},_createLocalRoot:function(){this.createShadowRoot(),this.shadowRoot.appendChild(this.root),this.root=this.shadowRoot}}),Polymer.Async={_currVal:0,_lastVal:0,_callbacks:[],_twiddleContent:0,_twiddle:document.createTextNode(""),run:function(e,t){return t>0?~setTimeout(e,t):(this._twiddle.textContent=this._twiddleContent++,this._callbacks.push(e),this._currVal++)},cancel:function(e){if(0>e)clearTimeout(~e);else{var t=e-this._lastVal;if(t>=0){if(!this._callbacks[t])throw"invalid async handle: "+e;this._callbacks[t]=null}}},_atEndOfMicrotask:function(){for(var e=this._callbacks.length,t=0;e>t;t++){var i=this._callbacks[t];if(i)try{i()}catch(n){throw t++,this._callbacks.splice(0,t),this._lastVal+=t,this._twiddle.textContent=this._twiddleContent++,n}}this._callbacks.splice(0,e),this._lastVal+=e}},new window.MutationObserver(function(){Polymer.Async._atEndOfMicrotask()}).observe(Polymer.Async._twiddle,{characterData:!0}),Polymer.Debounce=function(){function e(e,t,n){return e?e.stop():e=new i(this),e.go(t,n),e}var t=Polymer.Async,i=function(e){this.context=e;var t=this;this.boundComplete=function(){t.complete()}};return i.prototype={go:function(e,i){var n;this.finish=function(){t.cancel(n)},n=t.run(this.boundComplete,i),this.callback=e},stop:function(){this.finish&&(this.finish(),this.finish=null,this.callback=null)},complete:function(){if(this.finish){var e=this.callback;this.stop(),e.call(this.context)}}},e}(),Polymer.Base._addFeature({_setupDebouncers:function(){this._debouncers={}},debounce:function(e,t,i){return this._debouncers[e]=Polymer.Debounce.call(this,this._debouncers[e],t,i)},isDebouncerActive:function(e){var t=this._debouncers[e];return!(!t||!t.finish)},flushDebouncer:function(e){var t=this._debouncers[e];t&&t.complete()},cancelDebouncer:function(e){var t=this._debouncers[e];t&&t.stop()}}),Polymer.DomModule=document.createElement("dom-module"),Polymer.Base._addFeature({_registerFeatures:function(){this._prepIs(),this._prepBehaviors(),this._prepConstructor(),this._prepTemplate(),this._prepShady(),this._prepPropertyInfo()},_prepBehavior:function(e){this._addHostAttributes(e.hostAttributes)},_initFeatures:function(){this._registerHost(),this._template&&(this._poolContent(),this._beginHosting(),this._stampTemplate(),this._endHosting()),this._marshalHostAttributes(),this._setupDebouncers(),this._marshalBehaviors(),this._tryReady()},_marshalBehavior:function(){}}),function(){Polymer.nar=[];var e=Polymer.Settings.disableUpgradeEnabled;Polymer.Annotations={parseAnnotations:function(e,t){var i=[],n=e._content||e.content;return this._parseNodeAnnotations(n,i,t||e.hasAttribute("strip-whitespace")),i},_parseNodeAnnotations:function(e,t,i){return e.nodeType===Node.TEXT_NODE?this._parseTextNodeAnnotation(e,t):this._parseElementAnnotations(e,t,i)},_bindingRegex:function(){var e="(?:[a-zA-Z_$][\\w.:$\\-*]*)",t="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",i="(?:'(?:[^'\\\\]|\\\\.)*')",n='(?:"(?:[^"\\\\]|\\\\.)*")',r="(?:"+i+"|"+n+")",o="(?:"+e+"|"+t+"|"+r+"\\s*)",s="(?:"+o+"(?:,\\s*"+o+")*)",a="(?:\\(\\s*(?:"+s+"?)\\)\\s*)",l="("+e+"\\s*"+a+"?)",h="(\\[\\[|{{)\\s*",c="(?:]]|}})",u="(?:(!)\\s*)?",d=h+u+l+c;
return RegExp(d,"g")}(),_parseBindings:function(e){for(var t,i=this._bindingRegex,n=[],r=0;null!==(t=i.exec(e));){t.index>r&&n.push({literal:e.slice(r,t.index)});var o,s,a,l=t[1][0],h=!!t[2],c=t[3].trim();"{"==l&&(a=c.indexOf("::"))>0&&(s=c.substring(a+2),c=c.substring(0,a),o=!0),n.push({compoundIndex:n.length,value:c,mode:l,negate:h,event:s,customEvent:o}),r=i.lastIndex}if(r&&r<e.length){var u=e.substring(r);u&&n.push({literal:u})}if(n.length)return n},_literalFromParts:function(e){for(var t="",i=0;i<e.length;i++)t+=e[i].literal||"";return t},_parseTextNodeAnnotation:function(e,t){var i=this._parseBindings(e.textContent);if(i){e.textContent=this._literalFromParts(i)||" ";var n={bindings:[{kind:"text",name:"textContent",parts:i,isCompound:1!==i.length}]};return t.push(n),n}},_parseElementAnnotations:function(e,t,i){var n={bindings:[],events:[]};return"content"===e.localName&&(t._hasContent=!0),this._parseChildNodesAnnotations(e,n,t,i),e.attributes&&(this._parseNodeAttributeAnnotations(e,n,t),this.prepElement&&this.prepElement(e)),(n.bindings.length||n.events.length||n.id)&&t.push(n),n},_parseChildNodesAnnotations:function(e,t,i,n){if(e.firstChild)for(var r=e.firstChild,o=0;r;){var s=r.nextSibling;if("template"!==r.localName||r.hasAttribute("preserve-content")||this._parseTemplate(r,o,i,t,n),"slot"==r.localName&&(r=this._replaceSlotWithContent(r)),r.nodeType===Node.TEXT_NODE){for(var a=s;a&&a.nodeType===Node.TEXT_NODE;)r.textContent+=a.textContent,s=a.nextSibling,e.removeChild(a),a=s;n&&!r.textContent.trim()&&(e.removeChild(r),o--)}if(r.parentNode){var l=this._parseNodeAnnotations(r,i,n);l&&(l.parent=t,l.index=o)}r=s,o++}},_replaceSlotWithContent:function(e){for(var t=e.ownerDocument.createElement("content");e.firstChild;)t.appendChild(e.firstChild);for(var i=e.attributes,n=0;n<i.length;n++){var r=i[n];t.setAttribute(r.name,r.value)}var o=e.getAttribute("name");return o&&t.setAttribute("select","[slot='"+o+"']"),e.parentNode.replaceChild(t,e),t},_parseTemplate:function(e,t,i,n,r){var o=document.createDocumentFragment();o._notes=this.parseAnnotations(e,r),o.appendChild(e.content),i.push({bindings:Polymer.nar,events:Polymer.nar,templateContent:o,parent:n,index:t})},_parseNodeAttributeAnnotations:function(e,t){for(var i,n=Array.prototype.slice.call(e.attributes),r=n.length-1;i=n[r];r--){var o,s=i.name,a=i.value;"on-"===s.slice(0,3)?(e.removeAttribute(s),t.events.push({name:s.slice(3),value:a})):(o=this._parseNodeAttributeAnnotation(e,s,a))?t.bindings.push(o):"id"===s&&(t.id=a)}},_parseNodeAttributeAnnotation:function(t,i,n){var r=this._parseBindings(n);if(r){var o=i,s="property";"$"==i[i.length-1]&&(i=i.slice(0,-1),s="attribute");var a=this._literalFromParts(r);a&&"attribute"==s&&t.setAttribute(i,a),"input"===t.localName&&"value"===o&&t.setAttribute(o,""),e&&"disable-upgrade$"===o&&t.setAttribute(i,""),t.removeAttribute(o);var l=Polymer.CaseMap.dashToCamelCase(i);return"property"===s&&(i=l),{kind:s,name:i,propertyName:l,parts:r,literal:a,isCompound:1!==r.length}}},findAnnotatedNode:function(e,t){var i=t.parent&&Polymer.Annotations.findAnnotatedNode(e,t.parent);if(!i)return e;for(var n=i.firstChild,r=0;n;n=n.nextSibling)if(t.index===r++)return n}}}(),function(){function e(e,t){return e.replace(a,function(e,n,r,o){return n+"'"+i(r.replace(/["']/g,""),t)+"'"+o})}function t(t,n){for(var r in l)for(var o,s,a,h=l[r],u=0,d=h.length;d>u&&(o=h[u]);u++)"*"!==r&&t.localName!==r||(s=t.attributes[o],a=s&&s.value,a&&a.search(c)<0&&(s.value="style"===o?e(a,n):i(a,n)))}function i(e,t){if(e&&h.test(e))return e;var i=r(t);return i.href=e,i.href||e}function n(e,t){return o||(o=document.implementation.createHTMLDocument("temp"),s=o.createElement("base"),o.head.appendChild(s)),s.href=t,i(e,o)}function r(e){return e.body.__urlResolver||(e.body.__urlResolver=e.createElement("a"))}var o,s,a=/(url\()([^)]*)(\))/g,l={"*":["href","src","style","url"],form:["action"]},h=/(^\/)|(^#)|(^[\w-\d]*:)/,c=/\{\{|\[\[/;Polymer.ResolveUrl={resolveCss:e,resolveAttrs:t,resolveUrl:n}}(),Polymer.Path={root:function(e){var t=e.indexOf(".");return t===-1?e:e.slice(0,t)},isDeep:function(e){return e.indexOf(".")!==-1},isAncestor:function(e,t){return 0===e.indexOf(t+".")},isDescendant:function(e,t){return 0===t.indexOf(e+".")},translate:function(e,t,i){return t+i.slice(e.length)},matches:function(e,t,i){return e===i||this.isAncestor(e,i)||!!t&&this.isDescendant(e,i)}},Polymer.Base._addFeature({_prepAnnotations:function(){if(this._template){var e=this;Polymer.Annotations.prepElement=function(t){e._prepElement(t)},this._template._content&&this._template._content._notes?this._notes=this._template._content._notes:(this._notes=Polymer.Annotations.parseAnnotations(this._template),this._processAnnotations(this._notes)),Polymer.Annotations.prepElement=null}else this._notes=[]},_processAnnotations:function(e){for(var t=0;t<e.length;t++){for(var i=e[t],n=0;n<i.bindings.length;n++)for(var r=i.bindings[n],o=0;o<r.parts.length;o++){var s=r.parts[o];if(!s.literal){var a=this._parseMethod(s.value);a?s.signature=a:s.model=Polymer.Path.root(s.value)}}if(i.templateContent){this._processAnnotations(i.templateContent._notes);var l=i.templateContent._parentProps=this._discoverTemplateParentProps(i.templateContent._notes),h=[];for(var c in l){var u="_parent_"+c;h.push({index:i.index,kind:"property",name:u,propertyName:u,parts:[{mode:"{",model:c,value:c}]})}i.bindings=i.bindings.concat(h)}}},_discoverTemplateParentProps:function(e){for(var t,i={},n=0;n<e.length&&(t=e[n]);n++){for(var r,o=0,s=t.bindings;o<s.length&&(r=s[o]);o++)for(var a,l=0,h=r.parts;l<h.length&&(a=h[l]);l++)if(a.signature){for(var c=a.signature.args,u=0;u<c.length;u++){var d=c[u].model;d&&(i[d]=!0)}a.signature.dynamicFn&&(i[a.signature.method]=!0)}else a.model&&(i[a.model]=!0);if(t.templateContent){var f=t.templateContent._parentProps;Polymer.Base.mixin(i,f)}}return i},_prepElement:function(e){Polymer.ResolveUrl.resolveAttrs(e,this._template.ownerDocument)},_findAnnotatedNode:Polymer.Annotations.findAnnotatedNode,_marshalAnnotationReferences:function(){this._template&&(this._marshalIdNodes(),this._marshalAnnotatedNodes(),this._marshalAnnotatedListeners())},_configureAnnotationReferences:function(){for(var e=this._notes,t=this._nodes,i=0;i<e.length;i++){var n=e[i],r=t[i];this._configureTemplateContent(n,r),this._configureCompoundBindings(n,r)}},_configureTemplateContent:function(e,t){e.templateContent&&(t._content=e.templateContent)},_configureCompoundBindings:function(e,t){for(var i=e.bindings,n=0;n<i.length;n++){var r=i[n];if(r.isCompound){for(var o=t.__compoundStorage__||(t.__compoundStorage__={}),s=r.parts,a=Array(s.length),l=0;l<s.length;l++)a[l]=s[l].literal;var h=r.name;o[h]=a,r.literal&&"property"==r.kind&&(t._configValue?t._configValue(h,r.literal):t[h]=r.literal)}}},_marshalIdNodes:function(){this.$={};for(var e,t=0,i=this._notes.length;i>t&&(e=this._notes[t]);t++)e.id&&(this.$[e.id]=this._findAnnotatedNode(this.root,e))},_marshalAnnotatedNodes:function(){if(this._notes&&this._notes.length){for(var e=Array(this._notes.length),t=0;t<this._notes.length;t++)e[t]=this._findAnnotatedNode(this.root,this._notes[t]);this._nodes=e}},_marshalAnnotatedListeners:function(){for(var e,t=0,i=this._notes.length;i>t&&(e=this._notes[t]);t++)if(e.events&&e.events.length)for(var n,r=this._findAnnotatedNode(this.root,e),o=0,s=e.events;o<s.length&&(n=s[o]);o++)this.listen(r,n.name,n.value)}}),Polymer.Base._addFeature({listeners:{},_listenListeners:function(e){var t,i,n;for(n in e)n.indexOf(".")<0?(t=this,i=n):(i=n.split("."),t=this.$[i[0]],i=i[1]),this.listen(t,i,e[n])},listen:function(e,t,i){var n=this._recallEventHandler(this,t,e,i);n||(n=this._createEventHandler(e,t,i)),n._listening||(this._listen(e,t,n),n._listening=!0)},_boundListenerKey:function(e,t){return e+":"+t},_recordEventHandler:function(e,t,i,n,r){var o=e.__boundListeners;o||(o=e.__boundListeners=new WeakMap);var s=o.get(i);s||(s={},Polymer.Settings.isIE&&i==window||o.set(i,s)),s[this._boundListenerKey(t,n)]=r},_recallEventHandler:function(e,t,i,n){var r=e.__boundListeners;if(r){var o=r.get(i);if(o)return o[this._boundListenerKey(t,n)]}},_createEventHandler:function(e,t,i){var n=this,r=function(e){n[i]?n[i](e,e.detail):n._warn(n._logf("_createEventHandler","listener method `"+i+"` not defined"))};return r._listening=!1,this._recordEventHandler(n,t,e,i,r),r},unlisten:function(e,t,i){var n=this._recallEventHandler(this,t,e,i);n&&(this._unlisten(e,t,n),n._listening=!1)},_listen:function(e,t,i){e.addEventListener(t,i)},_unlisten:function(e,t,i){e.removeEventListener(t,i)}}),function(){"use strict";function e(e){for(var t,i=b?["click"]:_,n=0;n<i.length;n++)t=i[n],e?document.addEventListener(t,P,!0):document.removeEventListener(t,P,!0)}function t(t){C.mouse.mouseIgnoreJob||e(!0);var i=function(){e(),C.mouse.target=null,C.mouse.mouseIgnoreJob=null};C.mouse.target=Polymer.dom(t).rootTarget,C.mouse.mouseIgnoreJob=Polymer.Debounce(C.mouse.mouseIgnoreJob,i,m)}function i(e){var t=e.type;if(_.indexOf(t)===-1)return!1;if("mousemove"===t){var i=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!v&&(i=y[e.which]||0),!!(1&i)}return 0===(void 0===e.button?0:e.button)}function n(e){if("click"===e.type){if(0===e.detail)return!0;var t=w.findOriginalTarget(e),i=t.getBoundingClientRect(),n=e.pageX,r=e.pageY;return!!(n<i.left||n>i.right||r<i.top||r>i.bottom)}return!1}function r(e){for(var t,i=Polymer.dom(e).path,n="auto",r=0;r<i.length;r++)if(t=i[r],t[u]){n=t[u];break}return n}function o(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function s(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}var a=Polymer.DomApi.wrap,l="string"==typeof document.head.style.touchAction,h="__polymerGestures",c="__polymerGesturesHandled",u="__polymerGesturesTouchAction",d=25,f=5,p=2,m=2500,_=["mousedown","mousemove","mouseup","click"],y=[0,1,4,2],v=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}(),g=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){g=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}}();var b=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),P=function(e){var t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[c]={skip:!0},"click"===e.type)){for(var i=Polymer.dom(e).path,n=0;n<i.length;n++)if(i[n]===C.mouse.target)return;e.preventDefault(),e.stopPropagation()}},C={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};document.addEventListener("touchend",t,!!g&&{passive:!0});var w={gestures:{},recognizers:[],deepTargetFind:function(e,t){for(var i=document.elementFromPoint(e,t),n=i;n&&n.shadowRoot;)n=n.shadowRoot.elementFromPoint(e,t),n&&(i=n);return i},findOriginalTarget:function(e){return e.path?e.path[0]:e.target},handleNative:function(e){var t,i=e.type,n=a(e.currentTarget),r=n[h];if(r){var o=r[i];if(o){if(!e[c]&&(e[c]={},"touch"===i.slice(0,5))){var s=e.changedTouches[0];if("touchstart"===i&&1===e.touches.length&&(C.touch.id=s.identifier),C.touch.id!==s.identifier)return;l||"touchstart"!==i&&"touchmove"!==i||w.handleTouchAction(e)}if(t=e[c],!t.skip){for(var u,d=w.recognizers,f=0;f<d.length;f++)u=d[f],o[u.name]&&!t[u.name]&&u.flow&&u.flow.start.indexOf(e.type)>-1&&u.reset&&u.reset();for(f=0,u;f<d.length;f++)u=d[f],o[u.name]&&!t[u.name]&&(t[u.name]=!0,u[i](e))}}}},handleTouchAction:function(e){var t=e.changedTouches[0],i=e.type;if("touchstart"===i)C.touch.x=t.clientX,C.touch.y=t.clientY,C.touch.scrollDecided=!1;else if("touchmove"===i){if(C.touch.scrollDecided)return;C.touch.scrollDecided=!0;var n=r(e),o=!1,s=Math.abs(C.touch.x-t.clientX),a=Math.abs(C.touch.y-t.clientY);e.cancelable&&("none"===n?o=!0:"pan-x"===n?o=a>s:"pan-y"===n&&(o=s>a)),o?e.preventDefault():w.prevent("track")}},add:function(e,t,i){e=a(e);var n=this.gestures[t],r=n.deps,o=n.name,s=e[h];s||(e[h]=s={});for(var l,c,u=0;u<r.length;u++)l=r[u],b&&_.indexOf(l)>-1&&"click"!==l||(c=s[l],c||(s[l]=c={_count:0}),0===c._count&&e.addEventListener(l,this.handleNative),c[o]=(c[o]||0)+1,c._count=(c._count||0)+1);e.addEventListener(t,i),n.touchAction&&this.setTouchAction(e,n.touchAction)},remove:function(e,t,i){e=a(e);var n=this.gestures[t],r=n.deps,o=n.name,s=e[h];if(s)for(var l,c,u=0;u<r.length;u++)l=r[u],c=s[l],c&&c[o]&&(c[o]=(c[o]||1)-1,c._count=(c._count||1)-1,0===c._count&&e.removeEventListener(l,this.handleNative));e.removeEventListener(t,i)},register:function(e){this.recognizers.push(e);for(var t=0;t<e.emits.length;t++)this.gestures[e.emits[t]]=e},findRecognizerByEvent:function(e){for(var t,i=0;i<this.recognizers.length;i++){t=this.recognizers[i];for(var n,r=0;r<t.emits.length;r++)if(n=t.emits[r],n===e)return t}return null},setTouchAction:function(e,t){l&&(e.style.touchAction=t),e[u]=t},fire:function(e,t,i){if(Polymer.Base.fire(t,i,{node:e,bubbles:!0,cancelable:!0}).defaultPrevented){var n=i.preventer||i.sourceEvent;n&&n.preventDefault&&n.preventDefault()}},prevent:function(e){var t=this.findRecognizerByEvent(e);t.info&&(t.info.prevent=!0)},resetMouseCanceller:function(){C.mouse.mouseIgnoreJob&&C.mouse.mouseIgnoreJob.complete()}};w.register({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){s(this.info)},mousedown:function(e){if(i(e)){var t=w.findOriginalTarget(e),n=this,r=function(e){i(e)||(n.fire("up",t,e),s(n.info))},a=function(e){i(e)&&n.fire("up",t,e),s(n.info)};o(this.info,r,a),this.fire("down",t,e)}},touchstart:function(e){this.fire("down",w.findOriginalTarget(e),e.changedTouches[0],e)},touchend:function(e){this.fire("up",w.findOriginalTarget(e),e.changedTouches[0],e)},fire:function(e,t,i,n){w.fire(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:function(e){return w.prevent(e)}})}}),w.register({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>p&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,s(this.info)},hasMovedEnough:function(e,t){if(this.info.prevent)return!1;if(this.info.started)return!0;var i=Math.abs(this.info.x-e),n=Math.abs(this.info.y-t);return i>=f||n>=f},mousedown:function(e){if(i(e)){var t=w.findOriginalTarget(e),n=this,r=function(e){var r=e.clientX,o=e.clientY;n.hasMovedEnough(r,o)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&w.prevent("tap"),n.info.addMove({x:r,y:o}),i(e)||(n.info.state="end",s(n.info)),n.fire(t,e),n.info.started=!0)},a=function(e){n.info.started&&r(e),s(n.info)};o(this.info,r,a),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){var t=w.findOriginalTarget(e),i=e.changedTouches[0],n=i.clientX,r=i.clientY;this.hasMovedEnough(n,r)&&("start"===this.info.state&&w.prevent("tap"),this.info.addMove({x:n,y:r}),this.fire(t,i),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=w.findOriginalTarget(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),this.fire(t,i,e))},fire:function(e,t,i){var n,r=this.info.moves[this.info.moves.length-2],o=this.info.moves[this.info.moves.length-1],s=o.x-this.info.x,a=o.y-this.info.y,l=0;return r&&(n=o.x-r.x,l=o.y-r.y),w.fire(e,"track",{state:this.info.state,x:t.clientX,y:t.clientY,dx:s,dy:a,ddx:n,ddy:l,sourceEvent:t,preventer:i,hover:function(){return w.deepTargetFind(t.clientX,t.clientY)}})}}),w.register({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},save:function(e){this.info.x=e.clientX,this.info.y=e.clientY},mousedown:function(e){i(e)&&this.save(e)},click:function(e){i(e)&&this.forward(e)},touchstart:function(e){this.save(e.changedTouches[0],e)},touchend:function(e){this.forward(e.changedTouches[0],e)},forward:function(e,t){var i=Math.abs(e.clientX-this.info.x),r=Math.abs(e.clientY-this.info.y),o=w.findOriginalTarget(e);(isNaN(i)||isNaN(r)||d>=i&&d>=r||n(e))&&(this.info.prevent||w.fire(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}});var E={x:"pan-x",y:"pan-y",none:"none",all:"auto"};Polymer.Base._addFeature({_setupGestures:function(){this.__polymerGestures=null},_listen:function(e,t,i){w.gestures[t]?w.add(e,t,i):e.addEventListener(t,i)},_unlisten:function(e,t,i){w.gestures[t]?w.remove(e,t,i):e.removeEventListener(t,i)},setScrollDirection:function(e,t){t=t||this,w.setTouchAction(t,E[e]||"auto")}}),Polymer.Gestures=w}(),function(){"use strict";if(Polymer.Base._addFeature({$$:function(e){return Polymer.dom(this.root).querySelector(e)},toggleClass:function(e,t,i){i=i||this,1==arguments.length&&(t=!i.classList.contains(e)),t?Polymer.dom(i).classList.add(e):Polymer.dom(i).classList.remove(e)},toggleAttribute:function(e,t,i){i=i||this,1==arguments.length&&(t=!i.hasAttribute(e)),t?Polymer.dom(i).setAttribute(e,""):Polymer.dom(i).removeAttribute(e)},classFollows:function(e,t,i){i&&Polymer.dom(i).classList.remove(e),t&&Polymer.dom(t).classList.add(e)},attributeFollows:function(e,t,i){i&&Polymer.dom(i).removeAttribute(e),t&&Polymer.dom(t).setAttribute(e,"")},getEffectiveChildNodes:function(){return Polymer.dom(this).getEffectiveChildNodes()},getEffectiveChildren:function(){return Polymer.dom(this).getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})},getEffectiveTextContent:function(){for(var e,t=this.getEffectiveChildNodes(),i=[],n=0;e=t[n];n++)e.nodeType!==Node.COMMENT_NODE&&i.push(Polymer.dom(e).textContent);return i.join("")},queryEffectiveChildren:function(e){var t=Polymer.dom(this).queryDistributedElements(e);return t&&t[0]},queryAllEffectiveChildren:function(e){return Polymer.dom(this).queryDistributedElements(e)},getContentChildNodes:function(e){var t=Polymer.dom(this.root).querySelector(e||"content");return t?Polymer.dom(t).getDistributedNodes():[]},getContentChildren:function(e){return this.getContentChildNodes(e).filter(function(e){return e.nodeType===Node.ELEMENT_NODE})},fire:function(e,t,i){i=i||Polymer.nob;var n=i.node||this;t=null===t||void 0===t?{}:t;var r=void 0===i.bubbles||i.bubbles,o=!!i.cancelable,s=i._useCache,a=this._getEvent(e,r,o,s);return a.detail=t,s&&(this.__eventCache[e]=null),n.dispatchEvent(a),s&&(this.__eventCache[e]=a),a},__eventCache:{},_getEvent:function(e,t,i,n){var r=n&&this.__eventCache[e];return r&&r.bubbles==t&&r.cancelable==i||(r=new Event(e,{bubbles:!!t,cancelable:i})),r},async:function(e,t){var i=this;return Polymer.Async.run(function(){e.call(i)},t)},cancelAsync:function(e){Polymer.Async.cancel(e)},arrayDelete:function(e,t){var i;if(Array.isArray(e)){if(i=e.indexOf(t),i>=0)return e.splice(i,1)}else if(i=this._get(e).indexOf(t),i>=0)return this.splice(e,i,1)},transform:function(e,t){t=t||this,t.style.webkitTransform=e,t.style.transform=e},translate3d:function(e,t,i,n){n=n||this,this.transform("translate3d("+e+","+t+","+i+")",n)},importHref:function(e,t,i,n){var r=document.createElement("link");r.rel="import",r.href=e;var o=Polymer.Base.importHref.imported=Polymer.Base.importHref.imported||{},s=o[r.href],a=s||r,l=this,h=function(e){return e.target.__firedLoad=!0,e.target.removeEventListener("load",h),e.target.removeEventListener("error",c),t.call(l,e)},c=function(e){return e.target.__firedError=!0,e.target.removeEventListener("load",h),e.target.removeEventListener("error",c),i.call(l,e)};return t&&a.addEventListener("load",h),i&&a.addEventListener("error",c),s?(s.__firedLoad&&s.dispatchEvent(new Event("load")),s.__firedError&&s.dispatchEvent(new Event("error"))):(o[r.href]=r,n=!!n,n&&r.setAttribute("async",""),document.head.appendChild(r)),a},create:function(e,t){var i=document.createElement(e);if(t)for(var n in t)i[n]=t[n];return i},isLightDescendant:function(e){return this!==e&&this.contains(e)&&Polymer.dom(this).getOwnerRoot()===Polymer.dom(e).getOwnerRoot()},isLocalDescendant:function(e){return this.root===Polymer.dom(e).getOwnerRoot()}}),!Polymer.Settings.useNativeCustomElements){var e=Polymer.Base.importHref;Polymer.Base.importHref=function(t,i,n,r){CustomElements.ready=!1;var o=function(e){if(CustomElements.upgradeDocumentTree(document),CustomElements.ready=!0,i)return i.call(this,e)};return e.call(this,t,o,n,r)}}}(),Polymer.Bind={prepareModel:function(e){Polymer.Base.mixin(e,this._modelApi)},_modelApi:{_notifyChange:function(e,t,i){i=void 0===i?this[e]:i,t=t||Polymer.CaseMap.camelToDashCase(e)+"-changed",this.fire(t,{value:i},{bubbles:!1,cancelable:!1,_useCache:Polymer.Settings.eventDataCache||!Polymer.Settings.isIE})},_propertySetter:function(e,t,i,n){var r=this.__data__[e];return r===t||r!==r&&t!==t||(this.__data__[e]=t,"object"==typeof t&&this._clearPath(e),this._propertyChanged&&this._propertyChanged(e,t,r),i&&this._effectEffects(e,t,i,r,n)),r},__setProperty:function(e,t,i,n){n=n||this;var r=n._propertyEffects&&n._propertyEffects[e];r?n._propertySetter(e,t,r,i):n[e]!==t&&(n[e]=t)},_effectEffects:function(e,t,i,n,r){for(var o,s=0,a=i.length;a>s&&(o=i[s]);s++)o.fn.call(this,e,this[e],o.effect,n,r)},_clearPath:function(e){for(var t in this.__data__)Polymer.Path.isDescendant(e,t)&&(this.__data__[t]=void 0)}},ensurePropertyEffects:function(e,t){e._propertyEffects||(e._propertyEffects={});var i=e._propertyEffects[t];return i||(i=e._propertyEffects[t]=[]),i},addPropertyEffect:function(e,t,i,n){var r=this.ensurePropertyEffects(e,t),o={kind:i,effect:n,fn:Polymer.Bind["_"+i+"Effect"]};return r.push(o),o},createBindings:function(e){var t=e._propertyEffects;if(t)for(var i in t){var n=t[i];n.sort(this._sortPropertyEffects),this._createAccessors(e,i,n)}},_sortPropertyEffects:function(){var e={compute:0,annotation:1,annotatedComputation:2,reflect:3,notify:4,observer:5,complexObserver:6,"function":7};return function(t,i){return e[t.kind]-e[i.kind]}}(),_createAccessors:function(e,t,i){var n={get:function(){return this.__data__[t]}},r=function(e){this._propertySetter(t,e,i)},o=e.getPropertyInfo&&e.getPropertyInfo(t);o&&o.readOnly?o.computed||(e["_set"+this.upper(t)]=r):n.set=r,Object.defineProperty(e,t,n)},upper:function(e){return e[0].toUpperCase()+e.substring(1)},_addAnnotatedListener:function(e,t,i,n,r,o){e._bindListeners||(e._bindListeners=[]);var s=this._notedListenerFactory(i,n,Polymer.Path.isDeep(n),o),a=r||Polymer.CaseMap.camelToDashCase(i)+"-changed";e._bindListeners.push({index:t,property:i,path:n,changedFn:s,event:a})},_isEventBogus:function(e,t){return e.path&&e.path[0]!==t},_notedListenerFactory:function(e,t,i,n){return function(r,o,s){if(s){var a=Polymer.Path.translate(e,t,s);this._notifyPath(a,o)}else o=r[e],n&&(o=!o),i?this.__data__[t]!=o&&this.set(t,o):this[t]=o}},prepareInstance:function(e){e.__data__=Object.create(null)},setupBindListeners:function(e){for(var t,i=e._bindListeners,n=0,r=i.length;r>n&&(t=i[n]);n++){var o=e._nodes[t.index];this._addNotifyListener(o,e,t.event,t.changedFn)}},_addNotifyListener:function(e,t,i,n){e.addEventListener(i,function(e){return t._notifyListener(n,e)})}},Polymer.Base.mixin(Polymer.Bind,{_shouldAddListener:function(e){return e.name&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode},_annotationEffect:function(e,t,i){e!=i.value&&(t=this._get(i.value),this.__data__[i.value]=t),this._applyEffectValue(i,t)},_reflectEffect:function(e,t,i){this.reflectPropertyToAttribute(e,i.attribute,t)},_notifyEffect:function(e,t,i,n,r){r||this._notifyChange(e,i.event,t)},_functionEffect:function(e,t,i,n,r){i.call(this,e,t,n,r)},_observerEffect:function(e,t,i,n){var r=this[i.method];r?r.call(this,t,n):this._warn(this._logf("_observerEffect","observer method `"+i.method+"` not defined"))},_complexObserverEffect:function(e,t,i){var n=this[i.method];if(n){var r=Polymer.Bind._marshalArgs(this.__data__,i,e,t);r&&n.apply(this,r)}else i.dynamicFn||this._warn(this._logf("_complexObserverEffect","observer method `"+i.method+"` not defined"))},_computeEffect:function(e,t,i){var n=this[i.method];if(n){var r=Polymer.Bind._marshalArgs(this.__data__,i,e,t);if(r){var o=n.apply(this,r);this.__setProperty(i.name,o)}}else i.dynamicFn||this._warn(this._logf("_computeEffect","compute method `"+i.method+"` not defined"))},_annotatedComputationEffect:function(e,t,i){var n=this._rootDataHost||this,r=n[i.method];if(r){var o=Polymer.Bind._marshalArgs(this.__data__,i,e,t);if(o){var s=r.apply(n,o);this._applyEffectValue(i,s)}}else i.dynamicFn||n._warn(n._logf("_annotatedComputationEffect","compute method `"+i.method+"` not defined"))},_marshalArgs:function(e,t,i,n){for(var r=[],o=t.args,s=o.length>1||t.dynamicFn,a=0,l=o.length;l>a;a++){var h,c=o[a],u=c.name;if(c.literal?h=c.value:i===u?h=n:(h=e[u],void 0===h&&c.structured&&(h=Polymer.Base._get(u,e))),s&&void 0===h)return;if(c.wildcard){var d=Polymer.Path.isAncestor(i,u);r[a]={path:d?i:u,value:d?n:h,base:h}}else r[a]=h}return r}}),Polymer.Base._addFeature({_addPropertyEffect:function(e,t,i){var n=Polymer.Bind.addPropertyEffect(this,e,t,i);n.pathFn=this["_"+n.kind+"PathEffect"]},_prepEffects:function(){Polymer.Bind.prepareModel(this),this._addAnnotationEffects(this._notes)},_prepBindings:function(){Polymer.Bind.createBindings(this)},_addPropertyEffects:function(e){if(e)for(var t in e){var i=e[t];if(i.observer&&this._addObserverEffect(t,i.observer),i.computed&&(i.readOnly=!0,this._addComputedEffect(t,i.computed)),i.notify&&this._addPropertyEffect(t,"notify",{event:Polymer.CaseMap.camelToDashCase(t)+"-changed"}),i.reflectToAttribute){var n=Polymer.CaseMap.camelToDashCase(t);"-"===n[0]?this._warn(this._logf("_addPropertyEffects","Property "+t+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.')):this._addPropertyEffect(t,"reflect",{attribute:n})}i.readOnly&&Polymer.Bind.ensurePropertyEffects(this,t)}},_addComputedEffect:function(e,t){for(var i,n=this._parseMethod(t),r=n.dynamicFn,o=0;o<n.args.length&&(i=n.args[o]);o++)this._addPropertyEffect(i.model,"compute",{method:n.method,args:n.args,trigger:i,name:e,dynamicFn:r});r&&this._addPropertyEffect(n.method,"compute",{method:n.method,args:n.args,trigger:null,name:e,dynamicFn:r})},_addObserverEffect:function(e,t){this._addPropertyEffect(e,"observer",{method:t,property:e})},_addComplexObserverEffects:function(e){if(e)for(var t,i=0;i<e.length&&(t=e[i]);i++)this._addComplexObserverEffect(t)},_addComplexObserverEffect:function(e){var t=this._parseMethod(e);if(!t)throw Error("Malformed observer expression '"+e+"'");for(var i,n=t.dynamicFn,r=0;r<t.args.length&&(i=t.args[r]);r++)this._addPropertyEffect(i.model,"complexObserver",{method:t.method,args:t.args,trigger:i,dynamicFn:n});n&&this._addPropertyEffect(t.method,"complexObserver",{method:t.method,args:t.args,trigger:null,dynamicFn:n})},_addAnnotationEffects:function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++)for(var n,r=t.bindings,o=0;o<r.length&&(n=r[o]);o++)this._addAnnotationEffect(n,i)},_addAnnotationEffect:function(e,t){Polymer.Bind._shouldAddListener(e)&&Polymer.Bind._addAnnotatedListener(this,t,e.name,e.parts[0].value,e.parts[0].event,e.parts[0].negate);for(var i=0;i<e.parts.length;i++){var n=e.parts[i];n.signature?this._addAnnotatedComputationEffect(e,n,t):n.literal||("attribute"===e.kind&&"-"===e.name[0]?this._warn(this._logf("_addAnnotationEffect","Cannot set attribute "+e.name+' because "-" is not a valid attribute starting character')):this._addPropertyEffect(n.model,"annotation",{kind:e.kind,index:t,name:e.name,propertyName:e.propertyName,value:n.value,isCompound:e.isCompound,compoundIndex:n.compoundIndex,event:n.event,customEvent:n.customEvent,negate:n.negate}))}},_addAnnotatedComputationEffect:function(e,t,i){var n=t.signature;if(n["static"])this.__addAnnotatedComputationEffect("__static__",i,e,t,null);else{for(var r,o=0;o<n.args.length&&(r=n.args[o]);o++)r.literal||this.__addAnnotatedComputationEffect(r.model,i,e,t,r);n.dynamicFn&&this.__addAnnotatedComputationEffect(n.method,i,e,t,null)}},__addAnnotatedComputationEffect:function(e,t,i,n,r){this._addPropertyEffect(e,"annotatedComputation",{index:t,isCompound:i.isCompound,compoundIndex:n.compoundIndex,kind:i.kind,name:i.name,negate:n.negate,method:n.signature.method,args:n.signature.args,trigger:r,dynamicFn:n.signature.dynamicFn})},_parseMethod:function(e){var t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){var i={method:t[1],"static":!0};if(this.getPropertyInfo(i.method)!==Polymer.nob&&(i["static"]=!1,i.dynamicFn=!0),t[2].trim()){var n=t[2].replace(/\\,/g,"&comma;").split(",");return this._parseArgs(n,i)}return i.args=Polymer.nar,i}},_parseArgs:function(e,t){return t.args=e.map(function(e){var i=this._parseArg(e);return i.literal||(t["static"]=!1),i},this),t},_parseArg:function(e){var t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t},n=t[0];switch("-"===n&&(n=t[1]),"0">n||n>"9"||(n="#"),n){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=+t,i.literal=!0}return i.literal||(i.model=Polymer.Path.root(t),i.structured=Polymer.Path.isDeep(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i},_marshalInstanceEffects:function(){Polymer.Bind.prepareInstance(this),this._bindListeners&&Polymer.Bind.setupBindListeners(this)},_applyEffectValue:function(e,t){var i=this._nodes[e.index],n=e.name;if(t=this._computeFinalAnnotationValue(i,n,t,e),"attribute"==e.kind)this.serializeValueToAttribute(t,n,i);else{var r=i._propertyInfo&&i._propertyInfo[n];if(r&&r.readOnly)return;this.__setProperty(n,t,Polymer.Settings.suppressBindingNotifications,i)}},_computeFinalAnnotationValue:function(e,t,i,n){if(n.negate&&(i=!i),n.isCompound){var r=e.__compoundStorage__[t];r[n.compoundIndex]=i,i=r.join("")}return"attribute"!==n.kind&&("className"===t&&(i=this._scopeElementClass(e,i)),("textContent"===t||"input"==e.localName&&"value"==t)&&(i=void 0==i?"":i)),i},_executeStaticEffects:function(){this._propertyEffects&&this._propertyEffects.__static__&&this._effectEffects("__static__",null,this._propertyEffects.__static__)}}),function(){var e=Polymer.Settings.usePolyfillProto,t=!!Object.getOwnPropertyDescriptor(document.documentElement,"properties");Polymer.Base._addFeature({_setupConfigure:function(e){if(this._config={},this._handlers=[],this._aboveConfig=null,e)for(var t in e)void 0!==e[t]&&(this._config[t]=e[t])},_marshalAttributes:function(){this._takeAttributesToModel(this._config)},_attributeChangedImpl:function(e){var t=this._clientsReadied?this:this._config;this._setAttributeToProperty(t,e)},_configValue:function(e,t){var i=this._propertyInfo[e];i&&i.readOnly||(this._config[e]=t)},_beforeClientsReady:function(){this._configure()},_configure:function(){this._configureAnnotationReferences(),this._configureInstanceProperties(),this._aboveConfig=this.mixin({},this._config);for(var e={},i=0;i<this.behaviors.length;i++)this._configureProperties(this.behaviors[i].properties,e);this._configureProperties(t?this.__proto__.properties:this.properties,e),this.mixin(e,this._aboveConfig),this._config=e,this._clients&&this._clients.length&&this._distributeConfig(this._config)},_configureInstanceProperties:function(){for(var t in this._propertyEffects)!e&&this.hasOwnProperty(t)&&(this._configValue(t,this[t]),delete this[t])},_configureProperties:function(e,t){for(var i in e){var n=e[i];if(void 0!==n.value){var r=n.value;"function"==typeof r&&(r=r.call(this,this._config)),t[i]=r}}},_distributeConfig:function(e){
var t=this._propertyEffects;if(t)for(var i in e){var n=t[i];if(n)for(var r,o=0,s=n.length;s>o&&(r=n[o]);o++)if("annotation"===r.kind){var a=this._nodes[r.effect.index],l=r.effect.propertyName,h="attribute"==r.effect.kind,c=a._propertyEffects&&a._propertyEffects[l];if(a._configValue&&(c||!h)){var u=i===r.effect.value?e[i]:this._get(r.effect.value,e);u=this._computeFinalAnnotationValue(a,l,u,r.effect),h&&(u=a.deserialize(this.serialize(u),a._propertyInfo[l].type)),a._configValue(l,u)}}}},_afterClientsReady:function(){this._executeStaticEffects(),this._applyConfig(this._config,this._aboveConfig),this._flushHandlers()},_applyConfig:function(e,t){for(var i in e)void 0===this[i]&&this.__setProperty(i,e[i],i in t)},_notifyListener:function(e,t){if(!Polymer.Bind._isEventBogus(t,t.target)){var i,n;if(t.detail&&(i=t.detail.value,n=t.detail.path),this._clientsReadied)return e.call(this,t.target,i,n);this._queueHandler([e,t.target,i,n])}},_queueHandler:function(e){this._handlers.push(e)},_flushHandlers:function(){for(var e,t=this._handlers,i=0,n=t.length;n>i&&(e=t[i]);i++)e[0].call(this,e[1],e[2],e[3]);this._handlers=[]}})}(),function(){"use strict";var e=Polymer.Path;Polymer.Base._addFeature({notifyPath:function(e,t,i){var n={},r=this._get(e,this,n);1===arguments.length&&(t=r),n.path&&this._notifyPath(n.path,t,i)},_notifyPath:function(e,t,i){var n=this._propertySetter(e,t);if(n!==t&&(n===n||t===t))return this._pathEffector(e,t),i||this._notifyPathUp(e,t),!0},_getPathParts:function(e){if(Array.isArray(e)){for(var t=[],i=0;i<e.length;i++)for(var n=(""+e[i]).split("."),r=0;r<n.length;r++)t.push(n[r]);return t}return(""+e).split(".")},set:function(e,t,i){var n,r=i||this,o=this._getPathParts(e),s=o[o.length-1];if(o.length>1){for(var a=0;a<o.length-1;a++){var l=o[a];if(n&&"#"==l[0]?r=Polymer.Collection.get(n).getItem(l):(r=r[l],n&&parseInt(l,10)==l&&(o[a]=Polymer.Collection.get(n).getKey(r))),!r)return;n=Array.isArray(r)?r:null}if(n){var h,c,u=Polymer.Collection.get(n);"#"==s[0]?(c=s,h=u.getItem(c),s=n.indexOf(h),u.setItem(c,t)):parseInt(s,10)==s&&(h=r[s],c=u.getKey(h),o[a]=c,u.setItem(c,t))}r[s]=t,i||this._notifyPath(o.join("."),t)}else r[e]=t},get:function(e,t){return this._get(e,t)},_get:function(e,t,i){for(var n,r=t||this,o=this._getPathParts(e),s=0;s<o.length;s++){if(!r)return;var a=o[s];n&&"#"==a[0]?r=Polymer.Collection.get(n).getItem(a):(r=r[a],i&&n&&parseInt(a,10)==a&&(o[s]=Polymer.Collection.get(n).getKey(r))),n=Array.isArray(r)?r:null}return i&&(i.path=o.join(".")),r},_pathEffector:function(t,i){var n=e.root(t),r=this._propertyEffects&&this._propertyEffects[n];if(r)for(var o,s=0;s<r.length&&(o=r[s]);s++){var a=o.pathFn;a&&a.call(this,t,i,o.effect)}this._boundPaths&&this._notifyBoundPaths(t,i)},_annotationPathEffect:function(t,i,n){if(e.matches(n.value,!1,t))Polymer.Bind._annotationEffect.call(this,t,i,n);else if(!n.negate&&e.isDescendant(n.value,t)){var r=this._nodes[n.index];if(r&&r._notifyPath){var o=e.translate(n.value,n.name,t);r._notifyPath(o,i,!0)}}},_complexObserverPathEffect:function(t,i,n){e.matches(n.trigger.name,n.trigger.wildcard,t)&&Polymer.Bind._complexObserverEffect.call(this,t,i,n)},_computePathEffect:function(t,i,n){e.matches(n.trigger.name,n.trigger.wildcard,t)&&Polymer.Bind._computeEffect.call(this,t,i,n)},_annotatedComputationPathEffect:function(t,i,n){e.matches(n.trigger.name,n.trigger.wildcard,t)&&Polymer.Bind._annotatedComputationEffect.call(this,t,i,n)},linkPaths:function(e,t){this._boundPaths=this._boundPaths||{},t?this._boundPaths[e]=t:this.unlinkPaths(e)},unlinkPaths:function(e){this._boundPaths&&delete this._boundPaths[e]},_notifyBoundPaths:function(t,i){for(var n in this._boundPaths){var r=this._boundPaths[n];e.isDescendant(n,t)?this._notifyPath(e.translate(n,r,t),i):e.isDescendant(r,t)&&this._notifyPath(e.translate(r,n,t),i)}},_notifyPathUp:function(t,i){var n=e.root(t),r=Polymer.CaseMap.camelToDashCase(n),o=r+this._EVENT_CHANGED;this.fire(o,{path:t,value:i},{bubbles:!1,_useCache:Polymer.Settings.eventDataCache||!Polymer.Settings.isIE})},_EVENT_CHANGED:"-changed",notifySplices:function(e,t){var i={},n=this._get(e,this,i);this._notifySplices(n,i.path,t)},_notifySplices:function(e,t,i){var n={keySplices:Polymer.Collection.applySplices(e,i),indexSplices:i},r=t+".splices";this._notifyPath(r,n),this._notifyPath(t+".length",e.length),this.__data__[r]={keySplices:null,indexSplices:null}},_notifySplice:function(e,t,i,n,r){this._notifySplices(e,t,[{index:i,addedCount:n,removed:r,object:e,type:"splice"}])},push:function(e){var t={},i=this._get(e,this,t),n=Array.prototype.slice.call(arguments,1),r=i.length,o=i.push.apply(i,n);return n.length&&this._notifySplice(i,t.path,r,n.length,[]),o},pop:function(e){var t={},i=this._get(e,this,t),n=!!i.length,r=Array.prototype.slice.call(arguments,1),o=i.pop.apply(i,r);return n&&this._notifySplice(i,t.path,i.length,0,[o]),o},splice:function(e,t){var i={},n=this._get(e,this,i);t=0>t?n.length-Math.floor(-t):Math.floor(t),t||(t=0);var r=Array.prototype.slice.call(arguments,1),o=n.splice.apply(n,r),s=Math.max(r.length-2,0);return(s||o.length)&&this._notifySplice(n,i.path,t,s,o),o},shift:function(e){var t={},i=this._get(e,this,t),n=!!i.length,r=Array.prototype.slice.call(arguments,1),o=i.shift.apply(i,r);return n&&this._notifySplice(i,t.path,0,0,[o]),o},unshift:function(e){var t={},i=this._get(e,this,t),n=Array.prototype.slice.call(arguments,1),r=i.unshift.apply(i,n);return n.length&&this._notifySplice(i,t.path,0,n.length,[]),r},prepareModelNotifyPath:function(e){this.mixin(e,{fire:Polymer.Base.fire,_getEvent:Polymer.Base._getEvent,__eventCache:Polymer.Base.__eventCache,notifyPath:Polymer.Base.notifyPath,_get:Polymer.Base._get,_EVENT_CHANGED:Polymer.Base._EVENT_CHANGED,_notifyPath:Polymer.Base._notifyPath,_notifyPathUp:Polymer.Base._notifyPathUp,_pathEffector:Polymer.Base._pathEffector,_annotationPathEffect:Polymer.Base._annotationPathEffect,_complexObserverPathEffect:Polymer.Base._complexObserverPathEffect,_annotatedComputationPathEffect:Polymer.Base._annotatedComputationPathEffect,_computePathEffect:Polymer.Base._computePathEffect,_notifyBoundPaths:Polymer.Base._notifyBoundPaths,_getPathParts:Polymer.Base._getPathParts})}})}(),Polymer.Base._addFeature({resolveUrl:function(e){var t=Polymer.DomModule["import"](this.is),i="";if(t){var n=t.getAttribute("assetpath")||"";i=Polymer.ResolveUrl.resolveUrl(n,t.ownerDocument.baseURI)}return Polymer.ResolveUrl.resolveUrl(e,i)}}),Polymer.CssParse=function(){return{parse:function(e){return e=this._clean(e),this._parseCss(this._lex(e),e)},_clean:function(e){return e.replace(this._rx.comments,"").replace(this._rx.port,"")},_lex:function(e){for(var t={start:0,end:e.length},i=t,n=0,r=e.length;r>n;n++)switch(e[n]){case this.OPEN_BRACE:i.rules||(i.rules=[]);var o=i;i={start:n+1,parent:o,previous:o.rules[o.rules.length-1]},o.rules.push(i);break;case this.CLOSE_BRACE:i.end=n+1,i=i.parent||t}return t},_parseCss:function(e,t){var i=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=i.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;i=t.substring(n,e.start-1),i=this._expandUnicodeEscapes(i),i=i.replace(this._rx.multipleSpaces," "),i=i.substring(i.lastIndexOf(";")+1);var r=e.parsedSelector=e.selector=i.trim();e.atRule=0===r.indexOf(this.AT_START),e.atRule?0===r.indexOf(this.MEDIA_START)?e.type=this.types.MEDIA_RULE:r.match(this._rx.keyframesRule)&&(e.type=this.types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(this._rx.multipleSpaces).pop()):0===r.indexOf(this.VAR_START)?e.type=this.types.MIXIN_RULE:e.type=this.types.STYLE_RULE}var o=e.rules;if(o)for(var s,a=0,l=o.length;l>a&&(s=o[a]);a++)this._parseCss(s,t);return e},_expandUnicodeEscapes:function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e})},stringify:function(e,t,i){i=i||"";var n="";if(e.cssText||e.rules){var r=e.rules;if(r&&!this._hasMixinRules(r))for(var o,s=0,a=r.length;a>s&&(o=r[s]);s++)n=this.stringify(o,t,n);else n=t?e.cssText:this.removeCustomProps(e.cssText),n=n.trim(),n&&(n="  "+n+"\n")}return n&&(e.selector&&(i+=e.selector+" "+this.OPEN_BRACE+"\n"),i+=n,e.selector&&(i+=this.CLOSE_BRACE+"\n\n")),i},_hasMixinRules:function(e){return 0===e[0].selector.indexOf(this.VAR_START)},removeCustomProps:function(e){return e=this.removeCustomPropAssignment(e),this.removeCustomPropApply(e)},removeCustomPropAssignment:function(e){return e.replace(this._rx.customProp,"").replace(this._rx.mixinProp,"")},removeCustomPropApply:function(e){return e.replace(this._rx.mixinApply,"").replace(this._rx.varApply,"")},types:{STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE:"{",CLOSE_BRACE:"}",_rx:{comments:/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START:"--",MEDIA_START:"@media",AT_START:"@"}}(),Polymer.StyleUtil=function(){var e=Polymer.Settings;return{NATIVE_VARIABLES:Polymer.Settings.useNativeCSSProperties,MODULE_STYLES_SELECTOR:"style, link[rel=import][type~=css], template",INCLUDE_ATTR:"include",toCssText:function(e,t){return"string"==typeof e&&(e=this.parser.parse(e)),t&&this.forEachRule(e,t),this.parser.stringify(e,this.NATIVE_VARIABLES)},forRulesInStyles:function(e,t,i){if(e)for(var n,r=0,o=e.length;o>r&&(n=e[r]);r++)this.forEachRuleInStyle(n,t,i)},forActiveRulesInStyles:function(e,t,i){if(e)for(var n,r=0,o=e.length;o>r&&(n=e[r]);r++)this.forEachRuleInStyle(n,t,i,!0)},rulesForStyle:function(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=this.parser.parse(e.textContent)),e.__cssRules},isKeyframesSelector:function(e){return e.parent&&e.parent.type===this.ruleTypes.KEYFRAMES_RULE},forEachRuleInStyle:function(e,t,i,n){var r,o,s=this.rulesForStyle(e);t&&(r=function(i){t(i,e)}),i&&(o=function(t){i(t,e)}),this.forEachRule(s,r,o,n)},forEachRule:function(e,t,i,n){if(e){var r=!1;if(n&&e.type===this.ruleTypes.MEDIA_RULE){var o=e.selector.match(this.rx.MEDIA_MATCH);o&&(window.matchMedia(o[1]).matches||(r=!0))}e.type===this.ruleTypes.STYLE_RULE?t(e):i&&e.type===this.ruleTypes.KEYFRAMES_RULE?i(e):e.type===this.ruleTypes.MIXIN_RULE&&(r=!0);var s=e.rules;if(s&&!r)for(var a,l=0,h=s.length;h>l&&(a=s[l]);l++)this.forEachRule(a,t,i,n)}},applyCss:function(e,t,i,n){var r=this.createScopeStyle(e,t);return this.applyStyle(r,i,n)},applyStyle:function(e,t,i){t=t||document.head;var n=i&&i.nextSibling||t.firstChild;return this.__lastHeadApplyNode=e,t.insertBefore(e,n)},createScopeStyle:function(e,t){var i=document.createElement("style");return t&&i.setAttribute("scope",t),i.textContent=e,i},__lastHeadApplyNode:null,applyStylePlaceHolder:function(e){var t=document.createComment(" Shady DOM styles for "+e+" "),i=this.__lastHeadApplyNode?this.__lastHeadApplyNode.nextSibling:null,n=document.head;return n.insertBefore(t,i||n.firstChild),this.__lastHeadApplyNode=t,t},cssFromModules:function(e,t){for(var i=e.trim().split(" "),n="",r=0;r<i.length;r++)n+=this.cssFromModule(i[r],t);return n},cssFromModule:function(e,t){var i=Polymer.DomModule["import"](e);return i&&!i._cssText&&(i._cssText=this.cssFromElement(i)),i&&i._cssText||""},cssFromElement:function(e){for(var t,i="",n=e.content||e,r=Polymer.TreeApi.arrayCopy(n.querySelectorAll(this.MODULE_STYLES_SELECTOR)),o=0;o<r.length;o++)if(t=r[o],"template"===t.localName)t.hasAttribute("preserve-content")||(i+=this.cssFromElement(t));else if("style"===t.localName){var s=t.getAttribute(this.INCLUDE_ATTR);s&&(i+=this.cssFromModules(s,!0)),t=t.__appliedElement||t,t.parentNode.removeChild(t),i+=this.resolveCss(t.textContent,e.ownerDocument)}else t["import"]&&t["import"].body&&(i+=this.resolveCss(t["import"].body.textContent,t["import"]));return i},styleIncludesToTemplate:function(e){for(var t,i=e.content.querySelectorAll("style[include]"),n=0;n<i.length;n++)t=i[n],t.parentNode.insertBefore(this._includesToFragment(t.getAttribute("include")),t)},_includesToFragment:function(e){for(var t=e.trim().split(" "),i=document.createDocumentFragment(),n=0;n<t.length;n++){var r=Polymer.DomModule["import"](t[n],"template");r&&this._addStylesToFragment(i,r.content)}return i},_addStylesToFragment:function(e,t){for(var i,n=t.querySelectorAll("style"),r=0;r<n.length;r++){i=n[r];var o=i.getAttribute("include");o&&e.appendChild(this._includesToFragment(o)),i.textContent&&e.appendChild(i.cloneNode(!0))}},isTargetedBuild:function(t){return e.useNativeShadow?"shadow"===t:"shady"===t},cssBuildTypeForModule:function(e){var t=Polymer.DomModule["import"](e);if(t)return this.getCssBuildType(t)},getCssBuildType:function(e){return e.getAttribute("css-build")},_findMatchingParen:function(e,t){for(var i=0,n=t,r=e.length;r>n;n++)switch(e[n]){case"(":i++;break;case")":if(0===--i)return n}return-1},processVariableAndFallback:function(e,t){var i=e.indexOf("var(");if(i===-1)return t(e,"","","");var n=this._findMatchingParen(e,i+3),r=e.substring(i+4,n),o=e.substring(0,i),s=this.processVariableAndFallback(e.substring(n+1),t),a=r.indexOf(",");return a===-1?t(o,r.trim(),"",s):t(o,r.substring(0,a).trim(),r.substring(a+1).trim(),s)},rx:{VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:"(?:^|[^.#[:])",HOST_SUFFIX:"($|[.:[\\s>+~])"},resolveCss:Polymer.ResolveUrl.resolveCss,parser:Polymer.CssParse,ruleTypes:Polymer.CssParse.types}}(),Polymer.StyleTransformer=function(){var e=Polymer.StyleUtil,t=Polymer.Settings,i={dom:function(e,t,i,n){this._transformDom(e,t||"",i,n)},_transformDom:function(e,t,i,n){e.setAttribute&&this.element(e,t,i,n);for(var r=Polymer.dom(e).childNodes,o=0;o<r.length;o++)this._transformDom(r[o],t,i,n)},element:function(e,t,i,r){if(i)r?e.removeAttribute(n):e.setAttribute(n,t);else if(t)if(e.classList)r?(e.classList.remove(n),e.classList.remove(t)):(e.classList.add(n),e.classList.add(t));else if(e.getAttribute){var o=e.getAttribute(g);r?o&&e.setAttribute(g,o.replace(n,"").replace(t,"")):e.setAttribute(g,(o?o+" ":"")+n+" "+t)}},elementStyles:function(i,n){var r,o=i._styles,s="",a=i.__cssBuild,l=t.useNativeShadow||"shady"===a;if(l){var c=this;r=function(e){e.selector=c._slottedToContent(e.selector),e.selector=e.selector.replace(h,":host > *"),n&&n(e)}}for(var u,d=0,f=o.length;f>d&&(u=o[d]);d++){var p=e.rulesForStyle(u);s+=l?e.toCssText(p,r):this.css(p,i.is,i["extends"],n,i._scopeCssViaAttr)+"\n\n"}return s.trim()},css:function(t,i,n,r,o){var s=this._calcHostScope(i,n);i=this._calcElementScope(i,o);var a=this;return e.toCssText(t,function(e){e.isScoped||(a.rule(e,i,s),e.isScoped=!0),r&&r(e,i,s)})},_calcElementScope:function(e,t){return e?t?_+e+y:m+e:""},_calcHostScope:function(e,t){return t?"[is="+e+"]":e},rule:function(e,t,i){this._transformRule(e,this._transformComplexSelector,t,i)},_transformRule:function(e,t,i,n){e.selector=e.transformedSelector=this._transformRuleCss(e,t,i,n)},_transformRuleCss:function(t,i,n,r){var s=t.selector.split(o);if(!e.isKeyframesSelector(t))for(var a,l=0,h=s.length;h>l&&(a=s[l]);l++)s[l]=i.call(this,a,n,r);return s.join(o)},_transformComplexSelector:function(e,t,i){var n=!1,r=!1,a=this;return e=e.trim(),e=this._slottedToContent(e),e=e.replace(h,":host > *"),e=e.replace(b,l+" $1"),e=e.replace(s,function(e,o,s){if(n)s=s.replace(p," ");else{var l=a._transformCompoundSelector(s,o,t,i);n=n||l.stop,r=r||l.hostContext,o=l.combinator,s=l.value}return o+s}),r&&(e=e.replace(d,function(e,t,n,r){return t+n+" "+i+r+o+" "+t+i+n+r})),e},_transformCompoundSelector:function(e,t,i,n){var r=e.search(p),o=!1;e.indexOf(u)<0?e.indexOf(l)<0?0!==r&&(e=i?this._transformSimpleSelector(e,i):e):e=this._transformHostSelector(e,n):o=!0,e.indexOf(f)<0||(t="");var s;return 0>r||(e=e.replace(p," "),s=!0),{value:e,combinator:t,stop:s,hostContext:o}},_transformSimpleSelector:function(e,t){var i=e.split(v);return i[0]+=t,i.join(v)},_transformHostSelector:function(e,t){var i=e.match(c),n=i&&i[2].trim()||"";return n?n[0].match(a)?e.replace(c,function(e,i,n){return t+n}):n.split(a)[0]===t?n:P:e.replace(l,t)},documentRule:function(e){e.selector=e.parsedSelector,this.normalizeRootSelector(e),t.useNativeShadow||this._transformRule(e,this._transformDocumentSelector)},normalizeRootSelector:function(e){e.selector=e.selector.replace(h,"html")},_transformDocumentSelector:function(e){return e.match(p)?this._transformComplexSelector(e,r):this._transformSimpleSelector(e.trim(),r)},_slottedToContent:function(e){return e.replace(C,f+"> $1")},SCOPE_NAME:"style-scope"},n=i.SCOPE_NAME,r=":not(["+n+"]):not(."+n+")",o=",",s=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,a=/[[.:#*]/,l=":host",h=":root",c=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,u=":host-context",d=/(.*)(?::host-context)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))(.*)/,f="::content",p=/::content|::shadow|\/deep\//,m=".",_="["+n+"~=",y="]",v=":",g="class",b=RegExp("^("+f+")"),P="should_not_match",C=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/g;return i}(),Polymer.StyleExtends=function(){var e=Polymer.StyleUtil;return{hasExtends:function(e){return!!e.match(this.rx.EXTEND)},transform:function(t){var i=e.rulesForStyle(t),n=this;return e.forEachRule(i,function(e){if(n._mapRuleOntoParent(e),e.parent)for(var t;t=n.rx.EXTEND.exec(e.cssText);){var i=t[1],r=n._findExtendor(i,e);r&&n._extendRule(e,r)}e.cssText=e.cssText.replace(n.rx.EXTEND,"")}),e.toCssText(i,function(e){e.selector.match(n.rx.STRIP)&&(e.cssText="")},!0)},_mapRuleOntoParent:function(e){if(e.parent){for(var t,i=e.parent.map||(e.parent.map={}),n=e.selector.split(","),r=0;r<n.length;r++)t=n[r],i[t.trim()]=e;return i}},_findExtendor:function(e,t){return t.parent&&t.parent.map&&t.parent.map[e]||this._findExtendor(e,t.parent)},_extendRule:function(e,t){e.parent!==t.parent&&this._cloneAndAddRuleToParent(t,e.parent),e["extends"]=e["extends"]||[],e["extends"].push(t),t.selector=t.selector.replace(this.rx.STRIP,""),t.selector=(t.selector&&t.selector+",\n")+e.selector,t["extends"]&&t["extends"].forEach(function(t){this._extendRule(e,t)},this)},_cloneAndAddRuleToParent:function(e,t){e=Object.create(e),e.parent=t,e["extends"]&&(e["extends"]=e["extends"].slice()),t.rules.push(e)},rx:{EXTEND:/@extends\(([^)]*)\)\s*?;/gim,STRIP:/%[^,]*$/}}}(),Polymer.ApplyShim=function(){"use strict";function e(e,t){e=e.trim(),_[e]={properties:t,dependants:{}}}function t(e){return e=e.trim(),_[e]}function i(e,t){var i=p.exec(t);return i&&(t=i[1]?y._getInitialValueForProperty(e):"apply-shim-inherit"),t}function n(e){for(var t,n,r,o,s=e.split(";"),a={},l=0;l<s.length;l++)r=s[l],r&&(o=r.split(":"),o.length>1&&(t=o[0].trim(),n=i(t,o.slice(1).join(":")),a[t]=n));return a}function r(e){var t=y.__currentElementProto,i=t&&t.is;for(var n in e.dependants)n!==i&&(e.dependants[n].__applyShimInvalid=!0)}function o(i,o,s,a){if(s&&h.processVariableAndFallback(s,function(e,i){i&&t(i)&&(a="@apply "+i+";")}),!a)return i;var c=l(a),u=i.slice(0,i.indexOf("--")),d=n(c),f=d,p=t(o),_=p&&p.properties;_?(f=Object.create(_),f=Polymer.Base.mixin(f,d)):e(o,f);var y,v,g=[],b=!1;for(y in f)v=d[y],void 0===v&&(v="initial"),!_||y in _||(b=!0),g.push(o+m+y+": "+v);return b&&r(p),p&&(p.properties=f),s&&(u=i+";"+u),u+g.join("; ")+";"}function s(e,t,i){return"var("+t+",var("+i+"))"}function a(i,n){i=i.replace(f,"");var r=[],o=t(i);if(o||(e(i,{}),o=t(i)),o){var s=y.__currentElementProto;s&&(o.dependants[s.is]=s);var a,l,h;for(a in o.properties)h=n&&n[a],l=[a,": var(",i,m,a],h&&l.push(",",h),l.push(")"),r.push(l.join(""))}return r.join("; ")}function l(e){for(var t;t=c.exec(e);){var i=t[0],r=t[1],o=t.index,s=o+i.indexOf("@apply"),l=o+i.length,h=e.slice(0,s),u=e.slice(l),d=n(h),f=a(r,d);e=""+h+f+u,c.lastIndex=o+f.length}return e}var h=Polymer.StyleUtil,c=h.rx.MIXIN_MATCH,u=h.rx.VAR_ASSIGN,d=/var\(\s*(--[^,]*),\s*(--[^)]*)\)/g,f=/;\s*/m,p=/^\s*(initial)|(inherit)\s*$/,m="_-_",_={},y={_measureElement:null,_map:_,_separator:m,transform:function(e,t){this.__currentElementProto=t,h.forRulesInStyles(e,this._boundFindDefinitions),h.forRulesInStyles(e,this._boundFindApplications),t&&(t.__applyShimInvalid=!1),this.__currentElementProto=null},_findDefinitions:function(e){var t=e.parsedCssText;t=t.replace(d,s),t=t.replace(u,o),e.cssText=t,":root"===e.selector&&(e.selector=":host > *")},_findApplications:function(e){e.cssText=l(e.cssText)},transformRule:function(e){this._findDefinitions(e),this._findApplications(e)},_getInitialValueForProperty:function(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}};return y._boundTransformRule=y.transformRule.bind(y),y._boundFindDefinitions=y._findDefinitions.bind(y),y._boundFindApplications=y._findApplications.bind(y),y}(),function(){var e=Polymer.Base._prepElement,t=Polymer.Settings.useNativeShadow,i=Polymer.StyleUtil,n=Polymer.StyleTransformer,r=Polymer.StyleExtends,o=Polymer.ApplyShim,s=Polymer.Settings;Polymer.Base._addFeature({_prepElement:function(t){this._encapsulateStyle&&"shady"!==this.__cssBuild&&n.element(t,this.is,this._scopeCssViaAttr),e.call(this,t)},_prepStyles:function(){void 0===this._encapsulateStyle&&(this._encapsulateStyle=!t),t||(this._scopeStyle=i.applyStylePlaceHolder(this.is)),this.__cssBuild=i.cssBuildTypeForModule(this.is)},_prepShimStyles:function(){if(this._template){var e=i.isTargetedBuild(this.__cssBuild);if(s.useNativeCSSProperties&&"shadow"===this.__cssBuild&&e)return void(s.preserveStyleIncludes&&i.styleIncludesToTemplate(this._template));this._styles=this._styles||this._collectStyles(),s.useNativeCSSProperties&&!this.__cssBuild&&o.transform(this._styles,this);var r=s.useNativeCSSProperties&&e?this._styles.length&&this._styles[0].textContent.trim():n.elementStyles(this);this._prepStyleProperties(),!this._needsStyleProperties()&&r&&i.applyCss(r,this.is,t?this._template.content:null,this._scopeStyle)}else this._styles=[]},_collectStyles:function(){var e=[],t="",n=this.styleModules;if(n)for(var o,s=0,a=n.length;a>s&&(o=n[s]);s++)t+=i.cssFromModule(o);t+=i.cssFromModule(this.is);var l=this._template&&this._template.parentNode;if(!this._template||l&&l.id.toLowerCase()===this.is||(t+=i.cssFromElement(this._template)),t){var h=document.createElement("style");h.textContent=t,r.hasExtends(h.textContent)&&(t=r.transform(h)),e.push(h)}return e},_elementAdd:function(e){this._encapsulateStyle&&(e.__styleScoped?e.__styleScoped=!1:n.dom(e,this.is,this._scopeCssViaAttr))},_elementRemove:function(e){this._encapsulateStyle&&n.dom(e,this.is,this._scopeCssViaAttr,!0)},scopeSubtree:function(e,i){if(!t){var n=this,r=function(e){if(e.nodeType===Node.ELEMENT_NODE){var t=e.getAttribute("class");e.setAttribute("class",n._scopeElementClass(e,t));for(var i,r=e.querySelectorAll("*"),o=0;o<r.length&&(i=r[o]);o++)t=i.getAttribute("class"),i.setAttribute("class",n._scopeElementClass(i,t))}};if(r(e),i){var o=new MutationObserver(function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++)if(t.addedNodes)for(var n=0;n<t.addedNodes.length;n++)r(t.addedNodes[n])});return o.observe(e,{childList:!0,subtree:!0}),o}}}})}(),Polymer.StyleProperties=function(){"use strict";function e(e,t){var i=parseInt(e/32),n=1<<e%32;t[i]=(t[i]||0)|n}var t=Polymer.DomApi.matchesSelector,i=Polymer.StyleUtil,n=Polymer.StyleTransformer,r=navigator.userAgent.match("Trident"),o=Polymer.Settings;return{decorateStyles:function(e,t){var r=this,o={},s=[],a=0,l=n._calcHostScope(t.is,t["extends"]);i.forRulesInStyles(e,function(e,n){r.decorateRule(e),e.index=a++,r.whenHostOrRootRule(t,e,n,function(n){if(e.parent.type===i.ruleTypes.MEDIA_RULE&&(t.__notStyleScopeCacheable=!0),n.isHost){var r=n.selector.split(" ").some(function(e){return 0===e.indexOf(l)&&e.length!==l.length});t.__notStyleScopeCacheable=t.__notStyleScopeCacheable||r}}),r.collectPropertiesInCssText(e.propertyInfo.cssText,o)},function(e){s.push(e)}),e._keyframes=s;var h=[];for(var c in o)h.push(c);return h},decorateRule:function(e){if(e.propertyInfo)return e.propertyInfo;var t={},i={};return this.collectProperties(e,i)&&(t.properties=i,e.rules=null),t.cssText=this.collectCssText(e),e.propertyInfo=t,t},collectProperties:function(e,t){var i=e.propertyInfo;if(!i){for(var n,r,o,s=this.rx.VAR_ASSIGN,a=e.parsedCssText;n=s.exec(a);)r=(n[2]||n[3]).trim(),"inherit"!==r&&(t[n[1].trim()]=r),o=!0;return o}if(i.properties)return Polymer.Base.mixin(t,i.properties),!0},collectCssText:function(e){return this.collectConsumingCssText(e.parsedCssText)},collectConsumingCssText:function(e){return e.replace(this.rx.BRACKETED,"").replace(this.rx.VAR_ASSIGN,"")},collectPropertiesInCssText:function(e,t){for(var i;i=this.rx.VAR_CONSUMED.exec(e);){var n=i[1];":"!==i[2]&&(t[n]=!0)}},reify:function(e){for(var t,i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++)t=i[n],e[t]=this.valueForProperty(e[t],e)},valueForProperty:function(e,t){if(e)if(e.indexOf(";")<0){var n=this,r=function(e,i,r,o){var s=n.valueForProperty(t[i],t);return s&&"initial"!==s?"apply-shim-inherit"===s&&(s="inherit"):s=n.valueForProperty(t[r]||r,t)||r,e+(s||"")+o};e=i.processVariableAndFallback(e,r)}else e=this.valueForProperties(e,t);return e&&e.trim()||""},valueForProperties:function(e,t){for(var i,n,r=e.split(";"),o=0;o<r.length;o++)if(i=r[o]){if(this.rx.MIXIN_MATCH.lastIndex=0,n=this.rx.MIXIN_MATCH.exec(i))i=this.valueForProperty(t[n[1]],t);else{var s=i.indexOf(":");if(s!==-1){var a=i.substring(s);a=a.trim(),a=this.valueForProperty(a,t)||a,i=i.substring(0,s)+a}}r[o]=i&&i.lastIndexOf(";")===i.length-1?i.slice(0,-1):i||""}return r.join(";")},applyProperties:function(e,t){var i="";e.propertyInfo||this.decorateRule(e),e.propertyInfo.cssText&&(i=this.valueForProperties(e.propertyInfo.cssText,t)),e.cssText=i},applyKeyframeTransforms:function(e,t){var i=e.cssText,n=e.cssText;if(null==e.hasAnimations&&(e.hasAnimations=this.rx.ANIMATION_MATCH.test(i)),e.hasAnimations){var r;if(null==e.keyframeNamesToTransform){e.keyframeNamesToTransform=[];for(var o in t)r=t[o],n=r(i),i!==n&&(i=n,e.keyframeNamesToTransform.push(o))}else{for(var s=0;s<e.keyframeNamesToTransform.length;++s)r=t[e.keyframeNamesToTransform[s]],i=r(i);n=i}}e.cssText=n},propertyDataFromStyles:function(n,r){var o={},s=this,a=[];return i.forActiveRulesInStyles(n,function(i){i.propertyInfo||s.decorateRule(i);var n=i.transformedSelector||i.parsedSelector;r&&i.propertyInfo.properties&&n&&t.call(r,n)&&(s.collectProperties(i,o),e(i.index,a))}),{properties:o,key:a}},_rootSelector:/:root|:host\s*>\s*\*/,_checkRoot:function(e,t){return!!t.match(this._rootSelector)||"html"===e&&t.indexOf("html")>-1},whenHostOrRootRule:function(e,t,i,r){if(t.propertyInfo||self.decorateRule(t),t.propertyInfo.properties){var s=e.is?n._calcHostScope(e.is,e["extends"]):"html",a=t.parsedSelector,l=this._checkRoot(s,a),h=!l&&0===a.indexOf(":host");if("shady"===(e.__cssBuild||i.__cssBuild)&&(l=a===s+" > *."+s||a.indexOf("html")>-1,h=!l&&0===a.indexOf(s)),l||h){var c=s;h&&(o.useNativeShadow&&!t.transformedSelector&&(t.transformedSelector=n._transformRuleCss(t,n._transformComplexSelector,e.is,s)),c=t.transformedSelector||t.parsedSelector),l&&"html"===s&&(c=t.transformedSelector||t.parsedSelector),r({selector:c,isHost:h,isRoot:l})}}},hostAndRootPropertiesForScope:function(e){var n={},r={},o=this;return i.forActiveRulesInStyles(e._styles,function(i,s){o.whenHostOrRootRule(e,i,s,function(s){var a=e._element||e;t.call(a,s.selector)&&(s.isHost?o.collectProperties(i,n):o.collectProperties(i,r))})}),{rootProps:r,hostProps:n}},transformStyles:function(e,t,i){var r=this,s=n._calcHostScope(e.is,e["extends"]),a=e["extends"]?"\\"+s.slice(0,-1)+"\\]":s,l=RegExp(this.rx.HOST_PREFIX+a+this.rx.HOST_SUFFIX),h=this._elementKeyframeTransforms(e,i);return n.elementStyles(e,function(n){r.applyProperties(n,t),o.useNativeShadow||Polymer.StyleUtil.isKeyframesSelector(n)||!n.cssText||(r.applyKeyframeTransforms(n,h),r._scopeSelector(n,l,s,e._scopeCssViaAttr,i))})},_elementKeyframeTransforms:function(e,t){var i=e._styles._keyframes,n={};if(!o.useNativeShadow&&i)for(var r=0,s=i[r];r<i.length;s=i[++r])this._scopeKeyframes(s,t),n[s.keyframesName]=this._keyframesRuleTransformer(s);return n},_keyframesRuleTransformer:function(e){return function(t){return t.replace(e.keyframesNameRx,e.transformedKeyframesName)}},_scopeKeyframes:function(e,t){e.keyframesNameRx=RegExp(e.keyframesName,"g"),e.transformedKeyframesName=e.keyframesName+"-"+t,e.transformedSelector=e.transformedSelector||e.selector,e.selector=e.transformedSelector.replace(e.keyframesName,e.transformedKeyframesName)},_scopeSelector:function(e,t,i,r,o){e.transformedSelector=e.transformedSelector||e.selector;for(var s,a=e.transformedSelector,l=r?"["+n.SCOPE_NAME+"~="+o+"]":"."+o,h=a.split(","),c=0,u=h.length;u>c&&(s=h[c]);c++)h[c]=s.match(t)?s.replace(i,l):l+" "+s;e.selector=h.join(",")},applyElementScopeSelector:function(e,t,i,r){var o=r?e.getAttribute(n.SCOPE_NAME):e.getAttribute("class")||"",s=i?o.replace(i,t):(o?o+" ":"")+this.XSCOPE_NAME+" "+t;o!==s&&(r?e.setAttribute(n.SCOPE_NAME,s):e.setAttribute("class",s))},applyElementStyle:function(e,t,n,s){var a=s?s.textContent||"":this.transformStyles(e,t,n),l=e._customStyle;return l&&!o.useNativeShadow&&l!==s&&(l._useCount--,l._useCount<=0&&l.parentNode&&l.parentNode.removeChild(l)),o.useNativeShadow?e._customStyle?(e._customStyle.textContent=a,s=e._customStyle):a&&(s=i.applyCss(a,n,e.root,e._scopeStyle)):s?s.parentNode||(r&&a.indexOf("@media")>-1&&(s.textContent=a),i.applyStyle(s,null,e._scopeStyle)):a&&(s=i.applyCss(a,n,null,e._scopeStyle)),s&&(s._useCount=s._useCount||0,e._customStyle!=s&&s._useCount++,e._customStyle=s),s},mixinCustomStyle:function(e,t){var i;for(var n in t)i=t[n],(i||0===i)&&(e[n]=i)},updateNativeStyleProperties:function(e,t){var i=e.__customStyleProperties;if(i)for(var n=0;n<i.length;n++)e.style.removeProperty(i[n]);var r=[];for(var o in t)null!==t[o]&&(e.style.setProperty(o,t[o]),r.push(o));e.__customStyleProperties=r},rx:i.rx,XSCOPE_NAME:"x-scope"}}(),function(){Polymer.StyleCache=function(){this.cache={}},Polymer.StyleCache.prototype={MAX:100,store:function(e,t,i,n){t.keyValues=i,t.styles=n;var r=this.cache[e]=this.cache[e]||[];r.push(t),r.length>this.MAX&&r.shift()},retrieve:function(e,t,i){var n=this.cache[e];if(n)for(var r,o=n.length-1;o>=0;o--)if(r=n[o],i===r.styles&&this._objectsEqual(t,r.keyValues))return r},clear:function(){this.cache={}},_objectsEqual:function(e,t){var i,n;for(var r in e)if(i=e[r],n=t[r],!("object"==typeof i&&i?this._objectsStrictlyEqual(i,n):i===n))return!1;return!Array.isArray(e)||e.length===t.length},_objectsStrictlyEqual:function(e,t){return this._objectsEqual(e,t)&&this._objectsEqual(t,e)}}}(),Polymer.StyleDefaults=function(){var e=Polymer.StyleProperties,t=Polymer.StyleCache,i=Polymer.Settings.useNativeCSSProperties;return{_styles:[],_properties:null,customStyle:{},_styleCache:new t,_element:Polymer.DomApi.wrap(document.documentElement),addStyle:function(e){this._styles.push(e),this._properties=null},get _styleProperties(){return this._properties||(e.decorateStyles(this._styles,this),this._styles._scopeStyleProperties=null,this._properties=e.hostAndRootPropertiesForScope(this).rootProps,e.mixinCustomStyle(this._properties,this.customStyle),e.reify(this._properties)),this._properties},hasStyleProperties:function(){return!!this._properties},_needsStyleProperties:function(){},_computeStyleProperties:function(){return this._styleProperties},updateStyles:function(t){this._properties=null,t&&Polymer.Base.mixin(this.customStyle,t),this._styleCache.clear();for(var n,r=0;r<this._styles.length;r++)n=this._styles[r],n=n.__importElement||n,n._apply();i&&e.updateNativeStyleProperties(document.documentElement,this.customStyle);
}}}(),function(){"use strict";var e=Polymer.Base.serializeValueToAttribute,t=Polymer.StyleProperties,i=Polymer.StyleTransformer,n=Polymer.StyleDefaults,r=Polymer.Settings.useNativeShadow,o=Polymer.Settings.useNativeCSSProperties;Polymer.Base._addFeature({_prepStyleProperties:function(){o||(this._ownStylePropertyNames=this._styles&&this._styles.length?t.decorateStyles(this._styles,this):null)},customStyle:null,getComputedStyleValue:function(e){return o||this._styleProperties||this._computeStyleProperties(),!o&&this._styleProperties&&this._styleProperties[e]||getComputedStyle(this).getPropertyValue(e)},_setupStyleProperties:function(){this.customStyle={},this._styleCache=null,this._styleProperties=null,this._scopeSelector=null,this._ownStyleProperties=null,this._customStyle=null},_needsStyleProperties:function(){return!(o||!this._ownStylePropertyNames||!this._ownStylePropertyNames.length)},_validateApplyShim:function(){if(this.__applyShimInvalid){Polymer.ApplyShim.transform(this._styles,this.__proto__);var e=i.elementStyles(this);if(r){var t=this._template.content.querySelector("style");t&&(t.textContent=e)}else{var n=this._scopeStyle&&this._scopeStyle.nextSibling;n&&(n.textContent=e)}}},_beforeAttached:function(){this._scopeSelector&&!this.__stylePropertiesInvalid||!this._needsStyleProperties()||(this.__stylePropertiesInvalid=!1,this._updateStyleProperties())},_findStyleHost:function(){for(var e,t=this;e=Polymer.dom(t).getOwnerRoot();){if(Polymer.isInstance(e.host))return e.host;t=e.host}return n},_updateStyleProperties:function(){var e,i=this._findStyleHost();i._styleProperties||i._computeStyleProperties(),i._styleCache||(i._styleCache=new Polymer.StyleCache);var n=t.propertyDataFromStyles(i._styles,this),o=!this.__notStyleScopeCacheable;o&&(n.key.customStyle=this.customStyle,e=i._styleCache.retrieve(this.is,n.key,this._styles));var a=!!e;a?this._styleProperties=e._styleProperties:this._computeStyleProperties(n.properties),this._computeOwnStyleProperties(),a||(e=s.retrieve(this.is,this._ownStyleProperties,this._styles));var l=!!e&&!a,h=this._applyStyleProperties(e);a||(h=h&&r?h.cloneNode(!0):h,e={style:h,_scopeSelector:this._scopeSelector,_styleProperties:this._styleProperties},o&&(n.key.customStyle={},this.mixin(n.key.customStyle,this.customStyle),i._styleCache.store(this.is,e,n.key,this._styles)),l||s.store(this.is,Object.create(e),this._ownStyleProperties,this._styles))},_computeStyleProperties:function(e){var i=this._findStyleHost();i._styleProperties||i._computeStyleProperties();var n=Object.create(i._styleProperties),r=t.hostAndRootPropertiesForScope(this);this.mixin(n,r.hostProps),e=e||t.propertyDataFromStyles(i._styles,this).properties,this.mixin(n,e),this.mixin(n,r.rootProps),t.mixinCustomStyle(n,this.customStyle),t.reify(n),this._styleProperties=n},_computeOwnStyleProperties:function(){for(var e,t={},i=0;i<this._ownStylePropertyNames.length;i++)e=this._ownStylePropertyNames[i],t[e]=this._styleProperties[e];this._ownStyleProperties=t},_scopeCount:0,_applyStyleProperties:function(e){var i=this._scopeSelector;this._scopeSelector=e?e._scopeSelector:this.is+"-"+this.__proto__._scopeCount++;var n=t.applyElementStyle(this,this._styleProperties,this._scopeSelector,e&&e.style);return r||t.applyElementScopeSelector(this,this._scopeSelector,i,this._scopeCssViaAttr),n},serializeValueToAttribute:function(t,i,n){if(n=n||this,"class"===i&&!r){var o=n===this?this.domHost||this.dataHost:this;o&&(t=o._scopeElementClass(n,t))}n=this.shadyRoot&&this.shadyRoot._hasDistributed?Polymer.dom(n):n,e.call(this,t,i,n)},_scopeElementClass:function(e,t){return r||this._scopeCssViaAttr||(t=(t?t+" ":"")+a+" "+this.is+(e._scopeSelector?" "+l+" "+e._scopeSelector:"")),t},updateStyles:function(e){e&&this.mixin(this.customStyle,e),o?t.updateNativeStyleProperties(this,this.customStyle):(this.isAttached?this._needsStyleProperties()?this._updateStyleProperties():this._styleProperties=null:this.__stylePropertiesInvalid=!0,this._styleCache&&this._styleCache.clear(),this._updateRootStyles())},_updateRootStyles:function(e){e=e||this.root;for(var t,i=Polymer.dom(e)._query(function(e){return e.shadyRoot||e.shadowRoot}),n=0,r=i.length;r>n&&(t=i[n]);n++)t.updateStyles&&t.updateStyles()}}),Polymer.updateStyles=function(e){n.updateStyles(e),Polymer.Base._updateRootStyles(document)};var s=new Polymer.StyleCache;Polymer.customStyleCache=s;var a=i.SCOPE_NAME,l=t.XSCOPE_NAME}(),Polymer.Base._addFeature({_registerFeatures:function(){this._prepIs(),this.factoryImpl&&this._prepConstructor(),this._prepStyles()},_finishRegisterFeatures:function(){this._prepTemplate(),this._prepShimStyles(),this._prepAnnotations(),this._prepEffects(),this._prepBehaviors(),this._prepPropertyInfo(),this._prepBindings(),this._prepShady()},_prepBehavior:function(e){this._addPropertyEffects(e.properties),this._addComplexObserverEffects(e.observers),this._addHostAttributes(e.hostAttributes)},_initFeatures:function(){this._setupGestures(),this._setupConfigure(this.__data__),this._setupStyleProperties(),this._setupDebouncers(),this._setupShady(),this._registerHost(),this._template&&(this._validateApplyShim(),this._poolContent(),this._beginHosting(),this._stampTemplate(),this._endHosting(),this._marshalAnnotationReferences()),this._marshalInstanceEffects(),this._marshalBehaviors(),this._marshalHostAttributes(),this._marshalAttributes(),this._tryReady()},_marshalBehavior:function(e){e.listeners&&this._listenListeners(e.listeners)}}),function(){var e,t=Polymer.StyleProperties,i=Polymer.StyleUtil,n=Polymer.CssParse,r=Polymer.StyleDefaults,o=Polymer.StyleTransformer,s=Polymer.ApplyShim,a=Polymer.Debounce,l=Polymer.Settings;Polymer({is:"custom-style","extends":"style",_template:null,properties:{include:String},ready:function(){this.__appliedElement=this.__appliedElement||this,this.__cssBuild=i.getCssBuildType(this),this.__appliedElement!==this&&(this.__appliedElement.__cssBuild=this.__cssBuild),this._tryApply()},attached:function(){this._tryApply()},_tryApply:function(){if(!this._appliesToDocument&&this.parentNode&&"dom-module"!==this.parentNode.localName){this._appliesToDocument=!0;var e=this.__appliedElement;if(l.useNativeCSSProperties||(this.__needsUpdateStyles=r.hasStyleProperties(),r.addStyle(e)),e.textContent||this.include)this._apply(!0);else{var t=this,i=new MutationObserver(function(){i.disconnect(),t._apply(!0)});i.observe(e,{childList:!0})}}},_updateStyles:function(){Polymer.updateStyles()},_apply:function(e){var t=this.__appliedElement;if(this.include&&(t.textContent=i.cssFromModules(this.include,!0)+t.textContent),t.textContent){var n=this.__cssBuild,r=i.isTargetedBuild(n);if(!l.useNativeCSSProperties||!r){var a=i.rulesForStyle(t);if(r||(i.forEachRule(a,function(e){o.documentRule(e)}),l.useNativeCSSProperties&&!n&&s.transform([t])),l.useNativeCSSProperties)t.textContent=i.toCssText(a);else{var h=this,c=function(){h._flushCustomProperties()};e?Polymer.RenderStatus.whenReady(c):c()}}}},_flushCustomProperties:function(){this.__needsUpdateStyles?(this.__needsUpdateStyles=!1,e=a(e,this._updateStyles)):this._applyCustomProperties()},_applyCustomProperties:function(){var e=this.__appliedElement;this._computeStyleProperties();var r=this._styleProperties,o=i.rulesForStyle(e);o&&(e.textContent=i.toCssText(o,function(e){var i=e.cssText=e.parsedCssText;e.propertyInfo&&e.propertyInfo.cssText&&(i=n.removeCustomPropAssignment(i),e.cssText=t.valueForProperties(i,r))}))}})}(),Polymer.Templatizer={properties:{__hideTemplateChildren__:{observer:"_showHideChildren"}},_instanceProps:Polymer.nob,_parentPropPrefix:"_parent_",templatize:function(e){if(this._templatized=e,e._content||(e._content=e.content),e._content._ctor)return this.ctor=e._content._ctor,void this._prepParentProperties(this.ctor.prototype,e);var t=Object.create(Polymer.Base);this._customPrepAnnotations(t,e),this._prepParentProperties(t,e),t._prepEffects(),this._customPrepEffects(t),t._prepBehaviors(),t._prepPropertyInfo(),t._prepBindings(),t._notifyPathUp=this._notifyPathUpImpl,t._scopeElementClass=this._scopeElementClassImpl,t.listen=this._listenImpl,t._showHideChildren=this._showHideChildrenImpl,t.__setPropertyOrig=this.__setProperty,t.__setProperty=this.__setPropertyImpl;var i=this._constructorImpl,n=function(e,t){i.call(this,e,t)};n.prototype=t,t.constructor=n,e._content._ctor=n,this.ctor=n},_getRootDataHost:function(){return this.dataHost&&this.dataHost._rootDataHost||this.dataHost},_showHideChildrenImpl:function(e){for(var t=this._children,i=0;i<t.length;i++){var n=t[i];!!e!=!!n.__hideTemplateChildren__&&(n.nodeType===Node.TEXT_NODE?e?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__:n.style&&(e?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__)),n.__hideTemplateChildren__=e}},__setPropertyImpl:function(e,t,i,n){n&&n.__hideTemplateChildren__&&"textContent"==e&&(e="__polymerTextContent__"),this.__setPropertyOrig(e,t,i,n)},_debounceTemplate:function(e){Polymer.dom.addDebouncer(this.debounce("_debounceTemplate",e))},_flushTemplates:function(){Polymer.dom.flush()},_customPrepEffects:function(e){var t=e._parentProps;for(var i in t)e._addPropertyEffect(i,"function",this._createHostPropEffector(i));for(i in this._instanceProps)e._addPropertyEffect(i,"function",this._createInstancePropEffector(i))},_customPrepAnnotations:function(e,t){e._template=t;var i=t._content;if(!i._notes){var n=e._rootDataHost;n&&(Polymer.Annotations.prepElement=function(){n._prepElement()}),i._notes=Polymer.Annotations.parseAnnotations(t),Polymer.Annotations.prepElement=null,this._processAnnotations(i._notes)}e._notes=i._notes,e._parentProps=i._parentProps},_prepParentProperties:function(e,t){var i=this._parentProps=e._parentProps;if(this._forwardParentProp&&i){var n,r=e._parentPropProto;if(!r){for(n in this._instanceProps)delete i[n];r=e._parentPropProto=Object.create(null),t!=this&&(Polymer.Bind.prepareModel(r),Polymer.Base.prepareModelNotifyPath(r));for(n in i){var o=this._parentPropPrefix+n,s=[{kind:"function",effect:this._createForwardPropEffector(n),fn:Polymer.Bind._functionEffect},{kind:"notify",fn:Polymer.Bind._notifyEffect,effect:{event:Polymer.CaseMap.camelToDashCase(o)+"-changed"}}];r._propertyEffects=r._propertyEffects||{},r._propertyEffects[o]=s,Polymer.Bind._createAccessors(r,o,s)}}var a=this;t!=this&&(Polymer.Bind.prepareInstance(t),t._forwardParentProp=function(e,t){a._forwardParentProp(e,t)}),this._extendTemplate(t,r),t._pathEffector=function(e,t,i){return a._pathEffectorImpl(e,t,i)}}},_createForwardPropEffector:function(e){return function(t,i){this._forwardParentProp(e,i)}},_createHostPropEffector:function(e){var t=this._parentPropPrefix;return function(i,n){this.dataHost._templatized[t+e]=n}},_createInstancePropEffector:function(e){return function(t,i,n,r){r||this.dataHost._forwardInstanceProp(this,e,i)}},_extendTemplate:function(e,t){var i=Object.getOwnPropertyNames(t);t._propertySetter&&(e._propertySetter=t._propertySetter);for(var n,r=0;r<i.length&&(n=i[r]);r++){var o=e[n];if(o&&"_propertyEffects"==n){var s=Polymer.Base.mixin({},o);e._propertyEffects=Polymer.Base.mixin(s,t._propertyEffects)}else{var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,a),void 0!==o&&e._propertySetter(n,o)}}},_showHideChildren:function(){},_forwardInstancePath:function(){},_forwardInstanceProp:function(){},_notifyPathUpImpl:function(e,t){var i=this.dataHost,n=Polymer.Path.root(e);i._forwardInstancePath.call(i,this,e,t),n in i._parentProps&&i._templatized._notifyPath(i._parentPropPrefix+e,t)},_pathEffectorImpl:function(e,t,i){if(this._forwardParentPath&&0===e.indexOf(this._parentPropPrefix)){var n=e.substring(this._parentPropPrefix.length);Polymer.Path.root(n)in this._parentProps&&this._forwardParentPath(n,t)}Polymer.Base._pathEffector.call(this._templatized,e,t,i)},_constructorImpl:function(e,t){this._rootDataHost=t._getRootDataHost(),this._setupConfigure(e),this._registerHost(t),this._beginHosting(),this.root=this.instanceTemplate(this._template),this.root.__noContent=!this._notes._hasContent,this.root.__styleScoped=!0,this._endHosting(),this._marshalAnnotatedNodes(),this._marshalInstanceEffects(),this._marshalAnnotatedListeners();for(var i=[],n=this.root.firstChild;n;n=n.nextSibling)i.push(n),n._templateInstance=this;this._children=i,t.__hideTemplateChildren__&&this._showHideChildren(!0),this._tryReady()},_listenImpl:function(e,t,i){var n=this,r=this._rootDataHost,o=r._createEventHandler(e,t,i),s=function(e){e.model=n,o(e)};r._listen(e,t,s)},_scopeElementClassImpl:function(e,t){var i=this._rootDataHost;return i?i._scopeElementClass(e,t):t},stamp:function(e){if(e=e||{},this._parentProps){var t=this._templatized;for(var i in this._parentProps)void 0===e[i]&&(e[i]=t[this._parentPropPrefix+i])}return new this.ctor(e,this)},modelForElement:function(e){for(var t;e;)if(t=e._templateInstance){if(t.dataHost==this)return t;e=t.dataHost}else e=e.parentNode}},Polymer({is:"dom-template","extends":"template",_template:null,behaviors:[Polymer.Templatizer],ready:function(){this.templatize(this)}}),Polymer._collections=new WeakMap,Polymer.Collection=function(e){Polymer._collections.set(e,this),this.userArray=e,this.store=e.slice(),this.initMap()},Polymer.Collection.prototype={constructor:Polymer.Collection,initMap:function(){for(var e=this.omap=new WeakMap,t=this.pmap={},i=this.store,n=0;n<i.length;n++){var r=i[n];r&&"object"==typeof r?e.set(r,n):t[r]=n}},add:function(e){var t=this.store.push(e)-1;return e&&"object"==typeof e?this.omap.set(e,t):this.pmap[e]=t,"#"+t},removeKey:function(e){(e=this._parseKey(e))&&(this._removeFromMap(this.store[e]),delete this.store[e])},_removeFromMap:function(e){e&&"object"==typeof e?this.omap["delete"](e):delete this.pmap[e]},remove:function(e){var t=this.getKey(e);return this.removeKey(t),t},getKey:function(e){var t;if(t=e&&"object"==typeof e?this.omap.get(e):this.pmap[e],void 0!=t)return"#"+t},getKeys:function(){return Object.keys(this.store).map(function(e){return"#"+e})},_parseKey:function(e){if(e&&"#"==e[0])return e.slice(1)},setItem:function(e,t){if(e=this._parseKey(e)){var i=this.store[e];i&&this._removeFromMap(i),t&&"object"==typeof t?this.omap.set(t,e):this.pmap[t]=e,this.store[e]=t}},getItem:function(e){if(e=this._parseKey(e))return this.store[e]},getItems:function(){var e=[],t=this.store;for(var i in t)e.push(t[i]);return e},_applySplices:function(e){for(var t,i,n={},r=0;r<e.length&&(i=e[r]);r++){i.addedKeys=[];for(var o=0;o<i.removed.length;o++)t=this.getKey(i.removed[o]),n[t]=n[t]?null:-1;for(o=0;o<i.addedCount;o++){var s=this.userArray[i.index+o];t=this.getKey(s),t=void 0===t?this.add(s):t,n[t]=n[t]?null:1,i.addedKeys.push(t)}}var a=[],l=[];for(t in n)n[t]<0&&(this.removeKey(t),a.push(t)),n[t]>0&&l.push(t);return[{removed:a,added:l}]}},Polymer.Collection.get=function(e){return Polymer._collections.get(e)||new Polymer.Collection(e)},Polymer.Collection.applySplices=function(e,t){var i=Polymer._collections.get(e);return i?i._applySplices(t):null},Polymer({is:"dom-repeat","extends":"template",_template:null,properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},sort:{type:Function,observer:"_sortChanged"},filter:{type:Function,observer:"_filterChanged"},observe:{type:String,observer:"_observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Polymer.Settings.suppressTemplateNotifications,readOnly:!0},initialCount:{type:Number,observer:"_initializeChunking"},targetFramerate:{type:Number,value:20},notifyDomChange:{type:Boolean},_targetFrameTime:{type:Number,computed:"_computeFrameTime(targetFramerate)"}},behaviors:[Polymer.Templatizer],observers:["_itemsChanged(items.*)"],created:function(){this._instances=[],this._pool=[],this._limit=1/0;var e=this;this._boundRenderChunk=function(){e._renderChunk()}},detached:function(){this.__isDetached=!0;for(var e=0;e<this._instances.length;e++)this._detachInstance(e)},attached:function(){if(this.__isDetached){this.__isDetached=!1;for(var e=Polymer.dom(Polymer.dom(this).parentNode),t=0;t<this._instances.length;t++)this._attachInstance(t,e)}},ready:function(){this._instanceProps={__key__:!0},this._instanceProps[this.as]=!0,this._instanceProps[this.indexAs]=!0,this.ctor||this.templatize(this)},_sortChanged:function(e){var t=this._getRootDataHost();this._sortFn=e&&("function"==typeof e?e:function(){return t[e].apply(t,arguments)}),this._needFullRefresh=!0,this.items&&this._debounceTemplate(this._render)},_filterChanged:function(e){var t=this._getRootDataHost();this._filterFn=e&&("function"==typeof e?e:function(){return t[e].apply(t,arguments)}),this._needFullRefresh=!0,this.items&&this._debounceTemplate(this._render)},_computeFrameTime:function(e){return Math.ceil(1e3/e)},_initializeChunking:function(){this.initialCount&&(this._limit=this.initialCount,this._chunkCount=this.initialCount,this._lastChunkTime=performance.now())},_tryRenderChunk:function(){this.items&&this._limit<this.items.length&&this.debounce("renderChunk",this._requestRenderChunk)},_requestRenderChunk:function(){requestAnimationFrame(this._boundRenderChunk)},_renderChunk:function(){var e=performance.now(),t=this._targetFrameTime/(e-this._lastChunkTime);this._chunkCount=Math.round(this._chunkCount*t)||1,this._limit+=this._chunkCount,this._lastChunkTime=e,this._debounceTemplate(this._render)},_observeChanged:function(){this._observePaths=this.observe&&this.observe.replace(".*",".").split(" ")},_itemsChanged:function(e){if("items"==e.path)Array.isArray(this.items)?this.collection=Polymer.Collection.get(this.items):this.items?this._error(this._logf("dom-repeat","expected array for `items`, found",this.items)):this.collection=null,this._keySplices=[],this._indexSplices=[],this._needFullRefresh=!0,this._initializeChunking(),this._debounceTemplate(this._render);else if("items.splices"==e.path)this._keySplices=this._keySplices.concat(e.value.keySplices),this._indexSplices=this._indexSplices.concat(e.value.indexSplices),this._debounceTemplate(this._render);else{var t=e.path.slice(6);this._forwardItemPath(t,e.value),this._checkObservedPaths(t)}},_checkObservedPaths:function(e){if(this._observePaths){e=e.substring(e.indexOf(".")+1);for(var t=this._observePaths,i=0;i<t.length;i++)if(0===e.indexOf(t[i]))return this._needFullRefresh=!0,void(this.delay?this.debounce("render",this._render,this.delay):this._debounceTemplate(this._render))}},render:function(){this._needFullRefresh=!0,this._debounceTemplate(this._render),this._flushTemplates()},_render:function(){this._needFullRefresh?(this._applyFullRefresh(),this._needFullRefresh=!1):this._keySplices.length&&(this._sortFn?this._applySplicesUserSort(this._keySplices):this._filterFn?this._applyFullRefresh():this._applySplicesArrayOrder(this._indexSplices)),this._keySplices=[],this._indexSplices=[];for(var e=this._keyToInstIdx={},t=this._instances.length-1;t>=0;t--){var i=this._instances[t];i.isPlaceholder&&t<this._limit?i=this._insertInstance(t,i.__key__):i.isPlaceholder||t<this._limit||(i=this._downgradeInstance(t,i.__key__)),e[i.__key__]=t,i.isPlaceholder||i.__setProperty(this.indexAs,t,!0)}this._pool.length=0,this._setRenderedItemCount(this._instances.length),Polymer.Settings.suppressTemplateNotifications&&!this.notifyDomChange||this.fire("dom-change"),this._tryRenderChunk()},_applyFullRefresh:function(){var e,t=this.collection;if(this._sortFn)e=t?t.getKeys():[];else{e=[];var i=this.items;if(i)for(var n=0;n<i.length;n++)e.push(t.getKey(i[n]))}var r=this;for(this._filterFn&&(e=e.filter(function(e){return r._filterFn(t.getItem(e))})),this._sortFn&&e.sort(function(e,i){return r._sortFn(t.getItem(e),t.getItem(i))}),n=0;n<e.length;n++){var o=e[n],s=this._instances[n];s?(s.__key__=o,!s.isPlaceholder&&n<this._limit&&s.__setProperty(this.as,t.getItem(o),!0)):n<this._limit?this._insertInstance(n,o):this._insertPlaceholder(n,o)}for(var a=this._instances.length-1;a>=n;a--)this._detachAndRemoveInstance(a)},_numericSort:function(e,t){return e-t},_applySplicesUserSort:function(e){for(var t,i,n=this.collection,r={},o=0;o<e.length&&(i=e[o]);o++){for(var s=0;s<i.removed.length;s++)t=i.removed[s],r[t]=r[t]?null:-1;for(s=0;s<i.added.length;s++)t=i.added[s],r[t]=r[t]?null:1}var a=[],l=[];for(t in r)r[t]===-1&&a.push(this._keyToInstIdx[t]),1===r[t]&&l.push(t);if(a.length)for(a.sort(this._numericSort),o=a.length-1;o>=0;o--){var h=a[o];void 0!==h&&this._detachAndRemoveInstance(h)}var c=this;if(l.length){this._filterFn&&(l=l.filter(function(e){return c._filterFn(n.getItem(e))})),l.sort(function(e,t){return c._sortFn(n.getItem(e),n.getItem(t))});var u=0;for(o=0;o<l.length;o++)u=this._insertRowUserSort(u,l[o])}},_insertRowUserSort:function(e,t){for(var i=this.collection,n=i.getItem(t),r=this._instances.length-1,o=-1;r>=e;){var s=e+r>>1,a=this._instances[s].__key__,l=this._sortFn(i.getItem(a),n);if(0>l)e=s+1;else{if(0>=l){o=s;break}r=s-1}}return 0>o&&(o=r+1),this._insertPlaceholder(o,t),o},_applySplicesArrayOrder:function(e){for(var t,i=0;i<e.length&&(t=e[i]);i++){for(var n=0;n<t.removed.length;n++)this._detachAndRemoveInstance(t.index);for(n=0;n<t.addedKeys.length;n++)this._insertPlaceholder(t.index+n,t.addedKeys[n])}},_detachInstance:function(e){var t=this._instances[e];if(!t.isPlaceholder){for(var i=0;i<t._children.length;i++){var n=t._children[i];Polymer.dom(t.root).appendChild(n)}return t}},_attachInstance:function(e,t){var i=this._instances[e];i.isPlaceholder||t.insertBefore(i.root,this)},_detachAndRemoveInstance:function(e){var t=this._detachInstance(e);t&&this._pool.push(t),this._instances.splice(e,1)},_insertPlaceholder:function(e,t){this._instances.splice(e,0,{isPlaceholder:!0,__key__:t})},_stampInstance:function(e,t){var i={__key__:t};return i[this.as]=this.collection.getItem(t),i[this.indexAs]=e,this.stamp(i)},_insertInstance:function(e,t){var i=this._pool.pop();i?(i.__setProperty(this.as,this.collection.getItem(t),!0),i.__setProperty("__key__",t,!0)):i=this._stampInstance(e,t);var n=this._instances[e+1],r=n&&!n.isPlaceholder?n._children[0]:this,o=Polymer.dom(this).parentNode;return Polymer.dom(o).insertBefore(i.root,r),this._instances[e]=i,i},_downgradeInstance:function(e,t){var i=this._detachInstance(e);return i&&this._pool.push(i),i={isPlaceholder:!0,__key__:t},this._instances[e]=i,i},_showHideChildren:function(e){for(var t=0;t<this._instances.length;t++)this._instances[t].isPlaceholder||this._instances[t]._showHideChildren(e)},_forwardInstanceProp:function(e,t,i){if(t==this.as){var n;n=this._sortFn||this._filterFn?this.items.indexOf(this.collection.getItem(e.__key__)):e[this.indexAs],this.set("items."+n,i)}},_forwardInstancePath:function(e,t,i){0===t.indexOf(this.as+".")&&this._notifyPath("items."+e.__key__+"."+t.slice(this.as.length+1),i)},_forwardParentProp:function(e,t){for(var i,n=this._instances,r=0;r<n.length&&(i=n[r]);r++)i.isPlaceholder||i.__setProperty(e,t,!0)},_forwardParentPath:function(e,t){for(var i,n=this._instances,r=0;r<n.length&&(i=n[r]);r++)i.isPlaceholder||i._notifyPath(e,t,!0)},_forwardItemPath:function(e,t){if(this._keyToInstIdx){var i=e.indexOf("."),n=e.substring(0,0>i?e.length:i),r=this._keyToInstIdx[n],o=this._instances[r];o&&!o.isPlaceholder&&(0>i?o.__setProperty(this.as,t,!0):(e=this.as+"."+e.substring(i+1),o._notifyPath(e,t,!0)))}},itemForElement:function(e){var t=this.modelForElement(e);return t&&t[this.as]},keyForElement:function(e){var t=this.modelForElement(e);return t&&t.__key__},indexForElement:function(e){var t=this.modelForElement(e);return t&&t[this.indexAs]}}),Polymer({is:"array-selector",_template:null,properties:{items:{type:Array,observer:"clearSelection"},multi:{type:Boolean,value:!1,observer:"clearSelection"},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}},clearSelection:function(){if(Array.isArray(this.selected))for(var e=0;e<this.selected.length;e++)this.unlinkPaths("selected."+e);else this.unlinkPaths("selected"),this.unlinkPaths("selectedItem");this.multi?this.selected&&!this.selected.length||(this.selected=[],this._selectedColl=Polymer.Collection.get(this.selected)):(this.selected=null,this._selectedColl=null),this.selectedItem=null},isSelected:function(e){return this.multi?void 0!==this._selectedColl.getKey(e):this.selected==e},deselect:function(e){if(this.multi){if(this.isSelected(e)){var t=this._selectedColl.getKey(e);this.arrayDelete("selected",e),this.unlinkPaths("selected."+t)}}else this.selected=null,this.selectedItem=null,this.unlinkPaths("selected"),this.unlinkPaths("selectedItem")},select:function(e){var t=Polymer.Collection.get(this.items),i=t.getKey(e);if(this.multi)if(this.isSelected(e))this.toggle&&this.deselect(e);else{this.push("selected",e);var n=this._selectedColl.getKey(e);this.linkPaths("selected."+n,"items."+i)}else this.toggle&&e==this.selected?this.deselect():(this.selected=e,this.selectedItem=e,this.linkPaths("selected","items."+i),this.linkPaths("selectedItem","items."+i))}}),Polymer({is:"dom-if","extends":"template",_template:null,properties:{"if":{type:Boolean,value:!1,observer:"_queueRender"},restamp:{type:Boolean,value:!1,observer:"_queueRender"},notifyDomChange:{type:Boolean}},behaviors:[Polymer.Templatizer],_queueRender:function(){this._debounceTemplate(this._render)},detached:function(){this.parentNode&&(this.parentNode.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||Polymer.Settings.hasShadow&&this.parentNode instanceof ShadowRoot)||this._teardownInstance()},attached:function(){this["if"]&&this.ctor&&this.async(this._ensureInstance)},render:function(){this._flushTemplates()},_render:function(){this["if"]?(this.ctor||this.templatize(this),this._ensureInstance(),this._showHideChildren()):this.restamp&&this._teardownInstance(),!this.restamp&&this._instance&&this._showHideChildren(),this["if"]!=this._lastIf&&(Polymer.Settings.suppressTemplateNotifications&&!this.notifyDomChange||this.fire("dom-change"),this._lastIf=this["if"])},_ensureInstance:function(){var e=Polymer.dom(this).parentNode;if(e){var t=Polymer.dom(e);if(this._instance){var i=this._instance._children;if(i&&i.length&&Polymer.dom(this).previousSibling!==i[i.length-1])for(var n,r=0;r<i.length&&(n=i[r]);r++)t.insertBefore(n,this)}else{this._instance=this.stamp();var o=this._instance.root;t.insertBefore(o,this)}}},_teardownInstance:function(){if(this._instance){var e=this._instance._children;if(e&&e.length)for(var t,i=Polymer.dom(Polymer.dom(e[0]).parentNode),n=0;n<e.length&&(t=e[n]);n++)i.removeChild(t);this._instance=null}},_showHideChildren:function(){var e=this.__hideTemplateChildren__||!this["if"];this._instance&&this._instance._showHideChildren(e)},_forwardParentProp:function(e,t){this._instance&&this._instance.__setProperty(e,t,!0)},_forwardParentPath:function(e,t){this._instance&&this._instance._notifyPath(e,t,!0)}}),Polymer({is:"dom-bind",properties:{notifyDomChange:{type:Boolean}},"extends":"template",_template:null,created:function(){var e=this;Polymer.RenderStatus.whenReady(function(){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",function(){e._markImportsReady()}):e._markImportsReady()})},_ensureReady:function(){this._readied||this._readySelf()},_markImportsReady:function(){this._importsReady=!0,this._ensureReady()},_registerFeatures:function(){this._prepConstructor()},_insertChildren:function(){Polymer.dom(Polymer.dom(this).parentNode).insertBefore(this.root,this)},_removeChildren:function(){if(this._children)for(var e=0;e<this._children.length;e++)this.root.appendChild(this._children[e])},_initFeatures:function(){},_scopeElementClass:function(e,t){return this.dataHost?this.dataHost._scopeElementClass(e,t):t},_configureInstanceProperties:function(){},_prepConfigure:function(){var e={};for(var t in this._propertyEffects)e[t]=this[t];var i=this._setupConfigure;this._setupConfigure=function(){i.call(this,e)}},attached:function(){this._importsReady&&this.render()},detached:function(){this._removeChildren()},render:function(){this._ensureReady(),this._children||(this._template=this,this._prepAnnotations(),this._prepEffects(),this._prepBehaviors(),this._prepConfigure(),this._prepBindings(),this._prepPropertyInfo(),Polymer.Base._initFeatures.call(this),this._children=Polymer.TreeApi.arrayCopyChildNodes(this.root)),this._insertChildren(),Polymer.Settings.suppressTemplateNotifications&&!this.notifyDomChange||this.fire("dom-change")}}),function(){var e={},t={},i=null;Polymer.IronMeta=Polymer({is:"iron-meta",properties:{type:{type:String,value:"default",observer:"_typeChanged"},key:{type:String,observer:"_keyChanged"},value:{type:Object,notify:!0,observer:"_valueChanged"},self:{type:Boolean,observer:"_selfChanged"},list:{type:Array,notify:!0}},hostAttributes:{hidden:!0},factoryImpl:function(e){if(e)for(var t in e)switch(t){case"type":case"key":case"value":this[t]=e[t]}},created:function(){this._metaDatas=e,this._metaArrays=t},_keyChanged:function(e,t){this._resetRegistration(t)},_valueChanged:function(){this._resetRegistration(this.key)},_selfChanged:function(e){e&&(this.value=this)},_typeChanged:function(i){this._unregisterKey(this.key),e[i]||(e[i]={}),this._metaData=e[i],t[i]||(t[i]=[]),this.list=t[i],this._registerKeyValue(this.key,this.value)},byKey:function(e){return this._metaData&&this._metaData[e]},_resetRegistration:function(e){this._unregisterKey(e),this._registerKeyValue(this.key,this.value)},_unregisterKey:function(e){this._unregister(e,this._metaData,this.list)},_registerKeyValue:function(e,t){this._register(e,t,this._metaData,this.list)},_register:function(e,t,i,n){e&&i&&void 0!==t&&(i[e]=t,n.push(t))},_unregister:function(e,t,i){if(e&&t&&e in t){var n=t[e];delete t[e],this.arrayDelete(i,n)}}}),Polymer.IronMeta.getIronMeta=function(){return null===i&&(i=new Polymer.IronMeta),i},Polymer.IronMetaQuery=Polymer({is:"iron-meta-query",properties:{type:{type:String,value:"default",observer:"_typeChanged"},key:{type:String,observer:"_keyChanged"},value:{type:Object,notify:!0,readOnly:!0},list:{type:Array,notify:!0}},factoryImpl:function(e){if(e)for(var t in e)switch(t){case"type":case"key":this[t]=e[t]}},created:function(){this._metaDatas=e,this._metaArrays=t},_keyChanged:function(e){this._setValue(this._metaData&&this._metaData[e])},_typeChanged:function(i){this._metaData=e[i],this.list=t[i],this.key&&this._keyChanged(this.key)},byKey:function(e){return this._metaData&&this._metaData[e]}})}(),Polymer.NeonAnimationBehavior={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},isNeonAnimation:!0,timingFromConfig:function(e){if(e.timing)for(var t in e.timing)this.animationTiming[t]=e.timing[t];return this.animationTiming},setPrefixedProperty:function(e,t,i){for(var n,r={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]},o=r[t],s=0;n=o[s];s++)e.style[n]=i;e.style[t]=i},complete:function(){}},!function(a,b){var c={},d={},e={},f=null;!function(e){function t(e){if("number"==typeof e)return e;var t={};for(var i in e)t[i]=e[i];return t}function i(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=C}function n(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function r(t,n){var r=new i;return n&&(r.fill="both",r.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach(function(i){if("auto"!=t[i]){if(("number"==typeof r[i]||"duration"==i)&&("number"!=typeof t[i]||isNaN(t[i])))return;if("fill"==i&&b.indexOf(t[i])==-1)return;if("direction"==i&&P.indexOf(t[i])==-1)return;if("playbackRate"==i&&1!==t[i]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;r[i]=t[i]}}):r.duration=t,r}function o(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e}function s(t,i){return t=e.numericTimingToObject(t),
r(t,i)}function a(e,t,i,n){return 0>e||e>1||0>i||i>1?C:function(r){function o(e,t,i){return 3*e*(1-i)*(1-i)*i+3*t*(1-i)*i*i+i*i*i}if(0>=r){var s=0;return e>0?s=t/e:!t&&i>0&&(s=n/i),s*r}if(r>=1){var a=0;return 1>i?a=(n-1)/(i-1):1==i&&1>e&&(a=(t-1)/(e-1)),1+a*(r-1)}for(var l=0,h=1;h>l;){var c=(l+h)/2,u=o(e,i,c);if(Math.abs(r-u)<1e-5)return o(t,n,c);r>u?l=c:h=c}return o(t,n,c)}}function l(e,t){return function(i){if(i>=1)return 1;var n=1/e;return i+=t*n,i-i%n}}function h(e){x||(x=document.createElement("div").style),x.animationTimingFunction="",x.animationTimingFunction=e;var t=x.animationTimingFunction;if(""==t&&n())throw new TypeError(e+" is not a valid value for easing");return t}function c(e){if("linear"==e)return C;var t=N.exec(e);if(t)return a.apply(this,t.slice(1).map(Number));var i=I.exec(e);if(i)return l(+i[1],{start:w,middle:E,end:S}[i[2]]);var n=A[e];return n?n:C}function u(e){return Math.abs(d(e)/e.playbackRate)}function d(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}function f(e,t,i){if(null==t)return O;var n=i.delay+e+i.endDelay;return t<Math.min(i.delay,n)?R:t<Math.min(i.delay+e,n)?B:k}function p(e,t,i,n,r){switch(n){case R:return"backwards"==t||"both"==t?0:null;case B:return i-r;case k:return"forwards"==t||"both"==t?e:null;case O:return null}}function m(e,t,i,n,r){var o=r;return 0===e?t!==R&&(o+=i):o+=n/e,o}function _(e,t,i,n,r,o){var s=e===1/0?t%1:e%1;return 0!==s||i!==k||0===n||0===r&&0!==o||(s=1),s}function y(e,t,i,n){return e===k&&t===1/0?1/0:1===i?Math.floor(n)-1:Math.floor(n)}function v(e,t,i){var n=e;if("normal"!==e&&"reverse"!==e){var r=t;"alternate-reverse"===e&&(r+=1),n="normal",r!==1/0&&r%2!==0&&(n="reverse")}return"normal"===n?i:1-i}function g(e,t,i){var n=f(e,t,i),r=p(e,i.fill,t,n,i.delay);if(null===r)return null;var o=m(i.duration,n,i.iterations,r,i.iterationStart),s=_(o,i.iterationStart,n,i.iterations,r,i.duration),a=y(n,i.iterations,s,o),l=v(i.direction,a,s);return i._easingFunction(l)}var b="backwards|forwards|both|none".split("|"),P="reverse|alternate|alternate-reverse".split("|"),C=function(e){return e};i.prototype={_setMember:function(t,i){this["_"+t]=i,this._effect&&(this._effect._timingInput[t]=i,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||0>e)&&n())throw new TypeError("iterationStart must be a non-negative number, received: "+timing.iterationStart);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||0>e)&&n())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=c(h(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||0>e)&&n())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var w=1,E=.5,S=0,A={ease:a(.25,.1,.25,1),"ease-in":a(.42,0,1,1),"ease-out":a(0,0,.58,1),"ease-in-out":a(.42,0,.58,1),"step-start":l(1,w),"step-middle":l(1,E),"step-end":l(1,S)},x=null,T="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",N=RegExp("cubic-bezier\\("+T+","+T+","+T+","+T+"\\)"),I=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,O=0,R=1,k=2,B=3;e.cloneTimingInput=t,e.makeTiming=r,e.numericTimingToObject=o,e.normalizeTimingInput=s,e.calculateActiveDuration=u,e.calculateIterationProgress=g,e.calculatePhase=f,e.normalizeEasing=h,e.parseEasingFunction=c}(c,f),function(e){function t(e,t){return e in h?h[e][t]||t:t}function i(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}function n(e,n,r){if(!i(e)){var o=s[e];if(o){a.style[e]=n;for(var l in o){var h=o[l],c=a.style[h];r[h]=t(h,c)}}else r[e]=t(e,n)}}function r(e){var t=[];for(var i in e)if(!(i in["easing","offset","composite"])){var n=e[i];Array.isArray(n)||(n=[n]);for(var r,o=n.length,s=0;o>s;s++)r={},"offset"in e?r.offset=e.offset:1==o?r.offset=1:r.offset=s/(o-1),"easing"in e&&(r.easing=e.easing),"composite"in e&&(r.composite=e.composite),r[i]=n[s],t.push(r)}return t.sort(function(e,t){return e.offset-t.offset}),t}function o(t){function i(){var e=o.length;null==o[e-1].offset&&(o[e-1].offset=1),e>1&&null==o[0].offset&&(o[0].offset=0);for(var t=0,i=o[0].offset,n=1;e>n;n++){var r=o[n].offset;if(null!=r){for(var s=1;n-t>s;s++)o[t+s].offset=i+(r-i)*s/(n-t);t=n,i=r}}}if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=r(t));for(var o=t.map(function(t){var i={};for(var r in t){var o=t[r];if("offset"==r){if(null!=o){if(o=+o,!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(0>o||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==r){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==r?e.normalizeEasing(o):""+o;n(r,o,i)}return void 0==i.offset&&(i.offset=null),void 0==i.easing&&(i.easing="linear"),i}),s=!0,a=-(1/0),l=0;l<o.length;l++){var h=o[l].offset;if(null!=h){if(a>h)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=h}else s=!1}return o=o.filter(function(e){return e.offset>=0&&e.offset<=1}),s||i(),o}var s={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),l={thin:"1px",medium:"3px",thick:"5px"},h={borderBottomWidth:l,borderLeftWidth:l,borderRightWidth:l,borderTopWidth:l,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:l,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=r,e.normalizeKeyframes=o}(c,f),function(e){var t={};e.isDeprecated=function(e,i,n,r){var o=new Date,s=new Date(i);return s.setMonth(s.getMonth()+3),!(s>o&&(t[e]=!0,1))},e.deprecated=function(t,i,n,r){var o=r?"are":"is";if(e.isDeprecated(t,i,n,r))throw Error(t+" "+o+" no longer supported. "+n)}}(c),function(){if(document.documentElement.animate){var a=document.documentElement.animate([],0),b=!0;if(a&&(b=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach(function(e){void 0===a[e]&&(b=!0)})),!b)return}!function(e,t){function i(e){for(var t={},i=0;i<e.length;i++)for(var n in e[i])if("offset"!=n&&"easing"!=n&&"composite"!=n){var r={offset:e[i].offset,easing:e[i].easing,value:e[i][n]};t[n]=t[n]||[],t[n].push(r)}for(var o in t){var s=t[o];if(0!=s[0].offset||1!=s[s.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}function n(i){var n=[];for(var r in i)for(var o=i[r],s=0;s<o.length-1;s++){var a=s,l=s+1,h=o[a].offset,c=o[l].offset,u=h,d=c;0==s&&(u=-(1/0),0==c&&(l=a)),s==o.length-2&&(d=1/0,1==h&&(a=l)),n.push({applyFrom:u,applyTo:d,startOffset:o[a].offset,endOffset:o[l].offset,easingFunction:e.parseEasingFunction(o[a].easing),property:r,interpolation:t.propertyInterpolation(r,o[a].value,o[l].value)})}return n.sort(function(e,t){return e.startOffset-t.startOffset}),n}t.convertEffectInput=function(r){var o=e.normalizeKeyframes(r),s=i(o),a=n(s);return function(e,i){if(null!=i)a.filter(function(e){return i>=e.applyFrom&&i<e.applyTo}).forEach(function(n){var r=i-n.startOffset,o=n.endOffset-n.startOffset,s=0==o?0:n.easingFunction(r/o);t.apply(e,n.property,n.interpolation(s))});else for(var n in s)"offset"!=n&&"easing"!=n&&"composite"!=n&&t.clear(e,n)}}}(c,d,f),function(e,t){function i(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function n(e,t,i){s[i]=s[i]||[],s[i].push([e,t])}function r(e,t,r){for(var o=0;o<r.length;o++)n(e,t,i(r[o]))}function o(n,r,o){var l=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(l=i(n)),"initial"!=r&&"initial"!=o||("initial"==r&&(r=a[l]),"initial"==o&&(o=a[l]));for(var h=r==o?[]:s[l],c=0;h&&c<h.length;c++){var u=h[c][0](r),d=h[c][0](o);if(void 0!==u&&void 0!==d){var f=h[c][1](u,d);if(f){var p=t.Interpolation.apply(null,f);return function(e){return 0==e?r:1==e?o:p(e)}}}}return t.Interpolation(!1,!0,function(e){return e?o:r})}var s={};t.addPropertiesHandler=r;var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=o}(c,d,f),function(e,t){function i(t){var i=e.calculateActiveDuration(t),n=function(n){return e.calculateIterationProgress(i,n,t)};return n._totalDuration=t.delay+i+t.endDelay,n}t.KeyframeEffect=function(n,r,o,s){var a,l=i(e.normalizeTimingInput(o)),h=t.convertEffectInput(r),c=function(){h(n,a)};return c._update=function(e){return a=l(e),null!==a},c._clear=function(){h(n,null)},c._hasSameTarget=function(e){return n===e},c._target=n,c._totalDuration=l._totalDuration,c._id=s,c},t.NullEffect=function(e){var t=function(){e&&(e(),e=null)};return t._update=function(){return null},t._totalDuration=0,t._hasSameTarget=function(){return!1},t}}(c,d,f),function(e){e.apply=function(t,i,n){t.style[e.propertyName(i)]=n},e.clear=function(t,i){t.style[e.propertyName(i)]=""}}(d,f),function(e){window.Element.prototype.animate=function(t,i){var n="";return i&&i.id&&(n=i.id),e.timeline._play(e.KeyframeEffect(this,t,i,n))}}(d),function(e){function t(e,i,n){if("number"==typeof e&&"number"==typeof i)return e*(1-n)+i*n;if("boolean"==typeof e&&"boolean"==typeof i)return.5>n?e:i;if(e.length==i.length){for(var r=[],o=0;o<e.length;o++)r.push(t(e[o],i[o],n));return r}throw"Mismatched interpolation arguments "+e+":"+i}e.Interpolation=function(e,i,n){return function(r){return n(t(e,i,r))}}}(d,f),function(e,t){e.sequenceNumber=0;var i=function(e,t,i){this.target=e,this.currentTime=t,this.timelineTime=i,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var i=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=i&&(this.currentTime=i)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate<0){if(this._totalDuration>=1/0)throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}else this._currentTime=0},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var i=this._finishHandlers.indexOf(t);i>=0&&this._finishHandlers.splice(i,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new i(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){n.forEach(function(e){e.call(t.target,t)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();e.indexOf(this)===-1&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);t!==-1&&e.splice(t,1)}}}(c,d,f),function(e,t){function i(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(n),m._animations=s(e,!0,m._animations)[0],t.forEach(function(t){t[1](e)}),o(),c=void 0}function n(e,t){return e._sequenceNumber-t._sequenceNumber}function r(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function o(){f.forEach(function(e){e()}),f.length=0}function s(e,i,n){p=!0,d=!1,t.timeline.currentTime=e,u=!1;var r=[],o=[],s=[],a=[];return n.forEach(function(t){t._tick(e,i),t._inEffect?(o.push(t._effect),t._markTarget()):(r.push(t._effect),t._unmarkTarget()),t._needsTick&&(u=!0);var n=t._inEffect||t._needsTick;t._inTimeline=n,n?s.push(t):a.push(t)}),f.push.apply(f,r),f.push.apply(f,o),u&&requestAnimationFrame(function(){}),p=!1,[s,a]}var a=window.requestAnimationFrame,l=[],h=0;window.requestAnimationFrame=function(e){var t=h++;return 0==l.length&&a(i),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach(function(t){t[0]==e&&(t[1]=function(){})})},r.prototype={_play:function(i){i._timing=e.normalizeTimingInput(i.timing);var n=new t.Animation(i);return n._idle=!1,n._timeline=this,this._animations.push(n),t.restart(),t.applyDirtiedAnimation(n),n}};var c=void 0,u=!1,d=!1;t.restart=function(){return u||(u=!0,requestAnimationFrame(function(){}),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var i=e._targetAnimations();i.sort(n),s(t.timeline.currentTime,!1,i.slice())[1].forEach(function(e){var t=m._animations.indexOf(e);t!==-1&&m._animations.splice(t,1)}),o()}};var f=[],p=!1,m=new r;t.timeline=m}(c,d,f),function(e){function t(e,t){var i=e.exec(t);if(i)return i=e.ignoreCase?i[0].toLowerCase():i[0],[i,t.substr(i.length)]}function i(e,t){t=t.replace(/^\s*/,"");var i=e(t);if(i)return[i[0],i[1].replace(/^\s*/,"")]}function n(e,n,r){e=i.bind(null,e);for(var o=[];;){var s=e(r);if(!s)return[o,r];if(o.push(s[0]),r=s[1],s=t(n,r),!s||""==s[1])return[o,r];r=s[1]}}function r(e,t){for(var i=0,n=0;n<t.length&&(!/\s|,/.test(t[n])||0!=i);n++)if("("==t[n])i++;else if(")"==t[n]&&(i--,0==i&&n++,0>=i))break;var r=e(t.substr(0,n));return void 0==r?void 0:[r,t.substr(n)]}function o(e,t){for(var i=e,n=t;i&&n;)i>n?i%=n:n%=i;return i=e*t/(i+n)}function s(e){return function(t){var i=e(t);return i&&(i[0]=void 0),i}}function a(e,t){return function(i){var n=e(i);return n?n:[t,i]}}function l(t,i){for(var n=[],r=0;r<t.length;r++){var o=e.consumeTrimmed(t[r],i);if(!o||""==o[0])return;void 0!==o[0]&&n.push(o[0]),i=o[1]}if(""==i)return n}function h(e,t,i,n,r){for(var s=[],a=[],l=[],h=o(n.length,r.length),c=0;h>c;c++){var u=t(n[c%n.length],r[c%r.length]);if(!u)return;s.push(u[0]),a.push(u[1]),l.push(u[2])}return[s,a,function(t){var n=t.map(function(e,t){return l[t](e)}).join(i);return e?e(n):n}]}function c(e,t,i){for(var n=[],r=[],o=[],s=0,a=0;a<i.length;a++)if("function"==typeof i[a]){var l=i[a](e[s],t[s++]);n.push(l[0]),r.push(l[1]),o.push(l[2])}else!function(e){n.push(!1),r.push(!1),o.push(function(){return i[e]})}(a);return[n,r,function(e){for(var t="",i=0;i<e.length;i++)t+=o[i](e[i]);return t}]}e.consumeToken=t,e.consumeTrimmed=i,e.consumeRepeated=n,e.consumeParenthesised=r,e.ignore=s,e.optional=a,e.consumeList=l,e.mergeNestedRepeated=h.bind(null,null),e.mergeWrappedNestedRepeated=h,e.mergeList=c}(d),function(e){function t(t){function i(t){var i=e.consumeToken(/^inset/i,t);if(i)return n.inset=!0,i;var i=e.consumeLengthOrPercent(t);if(i)return n.lengths.push(i[0]),i;var i=e.consumeColor(t);return i?(n.color=i[0],i):void 0}var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated(i,/^/,t);if(r&&r[0].length)return[n,r[1]]}function i(i){var n=e.consumeRepeated(t,/^,/,i);if(n&&""==n[1])return n[0]}function n(t,i){for(;t.lengths.length<Math.max(t.lengths.length,i.lengths.length);)t.lengths.push({px:0});for(;i.lengths.length<Math.max(t.lengths.length,i.lengths.length);)i.lengths.push({px:0});if(t.inset==i.inset&&!!t.color==!!i.color){for(var n,r=[],o=[[],0],s=[[],0],a=0;a<t.lengths.length;a++){var l=e.mergeDimensions(t.lengths[a],i.lengths[a],2==a);o[0].push(l[0]),s[0].push(l[1]),r.push(l[2])}if(t.color&&i.color){var h=e.mergeColors(t.color,i.color);o[1]=h[0],s[1]=h[1],n=h[2]}return[o,s,function(e){for(var i=t.inset?"inset ":" ",o=0;o<r.length;o++)i+=r[o](e[0][o])+" ";return n&&(i+=n(e[1])),i}]}}function r(t,i,n,r){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var s=[],a=[],l=0;l<n.length||l<r.length;l++){var h=n[l]||o(r[l].inset),c=r[l]||o(n[l].inset);s.push(h),a.push(c)}return e.mergeNestedRepeated(t,i,s,a)}var o=r.bind(null,n,", ");e.addPropertiesHandler(i,o,["box-shadow","text-shadow"])}(d),function(e){function t(e){return e.toFixed(3).replace(".000","")}function i(e,t,i){return Math.min(t,Math.max(e,i))}function n(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return+e}function r(e,i){return[e,i,t]}function o(e,t){if(0!=e)return a(0,1/0)(e,t)}function s(e,t){return[e,t,function(e){return Math.round(i(1,1/0,e))}]}function a(e,n){return function(r,o){return[r,o,function(r){return t(i(e,n,r))}]}}function l(e,t){return[e,t,Math.round]}e.clamp=i,e.addPropertiesHandler(n,a(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(n,a(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(n,o,["flex-grow","flex-shrink"]),e.addPropertiesHandler(n,s,["orphans","widows"]),e.addPropertiesHandler(n,l,["z-index"]),e.parseNumber=n,e.mergeNumbers=r,e.numberToString=t}(d,f),function(e){function t(e,t){if("visible"==e||"visible"==t)return[0,1,function(i){return i>0?1>i?"visible":t:e}]}e.addPropertiesHandler(String,t,["visibility"])}(d),function(e){function t(e){e=e.trim(),r.fillStyle="#000",r.fillStyle=e;var t=r.fillStyle;if(r.fillStyle="#fff",r.fillStyle=e,t==r.fillStyle){r.fillRect(0,0,1,1);var i=r.getImageData(0,0,1,1).data;r.clearRect(0,0,1,1);var n=i[3]/255;return[i[0]*n,i[1]*n,i[2]*n,n]}}function i(t,i){return[t,i,function(t){function i(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var n=0;3>n;n++)t[n]=Math.round(i(t[n]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");n.width=n.height=1;var r=n.getContext("2d");e.addPropertiesHandler(t,i,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","outline-color","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,t),e.mergeColors=i}(d,f),function(a,b){function c(a,b){if(b=b.trim().toLowerCase(),"0"==b&&"px".search(a)>=0)return{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\(/g,"(");var c={};b=b.replace(a,function(e){return c[e]=null,"U"+e});for(var d="U("+a.source+")",e=b.replace(/[-+]?(\d*\.)?\d+/g,"N").replace(RegExp("N"+d,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),f=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],g=0;g<f.length;)f[g].test(e)?(e=e.replace(f[g],"$1"),g=0):g++;if("D"==e){for(var h in c){var i=eval(b.replace(RegExp("U"+h,"g"),"").replace(RegExp(d,"g"),"*0"));if(!isFinite(i))return;c[h]=i}return c}}}function d(t,i){return e(t,i,!0)}function e(e,t,i){var n,r=[];for(n in e)r.push(n);for(n in t)r.indexOf(n)<0&&r.push(n);return e=r.map(function(t){return e[t]||0}),t=r.map(function(e){return t[e]||0}),[e,t,function(e){var t=e.map(function(t,n){return 1==e.length&&i&&(t=Math.max(t,0)),a.numberToString(t)+r[n]}).join(" + ");return e.length>1?"calc("+t+")":t}]}var f="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",g=c.bind(null,RegExp(f,"g")),h=c.bind(null,RegExp(f+"|%","g")),i=c.bind(null,/deg|rad|grad|turn/g);a.parseLength=g,a.parseLengthOrPercent=h,a.consumeLengthOrPercent=a.consumeParenthesised.bind(null,h),a.parseAngle=i,a.mergeDimensions=e;var j=a.consumeParenthesised.bind(null,g),k=a.consumeRepeated.bind(void 0,j,/^/),l=a.consumeRepeated.bind(void 0,k,/^,/);a.consumeSizePairList=l;var m=function(e){var t=l(e);if(t&&""==t[1])return t[0]},n=a.mergeNestedRepeated.bind(void 0,d," "),o=a.mergeNestedRepeated.bind(void 0,n,",");a.mergeNonNegativeSizePair=n,a.addPropertiesHandler(m,o,["background-size"]),a.addPropertiesHandler(h,d,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),a.addPropertiesHandler(h,e,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","text-indent","top","vertical-align","word-spacing"])}(d,f),function(e){function t(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function i(i){var n=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,t,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],i);if(n&&4==n[0].length)return n[0]}function n(t,i){return"auto"==t||"auto"==i?[!0,!1,function(n){var r=n?t:i;if("auto"==r)return"auto";var o=e.mergeDimensions(r,r);return o[2](o[0])}]:e.mergeDimensions(t,i)}function r(e){return"rect("+e+")"}var o=e.mergeWrappedNestedRepeated.bind(null,r,n,", ");e.parseBox=i,e.mergeBoxes=o,e.addPropertiesHandler(i,o,["clip"])}(d,f),function(e){function t(e){return function(t){var i=0;return e.map(function(e){return e===h?t[i++]:e})}}function i(e){return e}function n(t){if(t=t.toLowerCase().trim(),"none"==t)return[];for(var i,n=/\s*(\w+)\(([^)]*)\)/g,r=[],o=0;i=n.exec(t);){if(i.index!=o)return;o=i.index+i[0].length;var s=i[1],a=d[s];if(!a)return;var l=i[2].split(","),h=a[0];if(h.length<l.length)return;for(var f=[],p=0;p<h.length;p++){var m,_=l[p],y=h[p];if(m=_?{A:function(t){return"0"==t.trim()?u:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[y.toUpperCase()](_):{a:u,n:f[0],t:c}[y],void 0===m)return;f.push(m)}if(r.push({t:s,d:f}),n.lastIndex==t.length)return r}}function r(e){return e.toFixed(6).replace(".000000","")}function o(t,i){if(t.decompositionPair!==i){t.decompositionPair=i;var n=e.makeMatrixDecomposition(t)}if(i.decompositionPair!==t){i.decompositionPair=t;var o=e.makeMatrixDecomposition(i)}return null==n[0]||null==o[0]?[[!1],[!0],function(e){return e?i[0].d:t[0].d}]:(n[0].push(0),o[0].push(1),[n,o,function(t){var i=e.quat(n[0][3],o[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],i,t[4]).map(r).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function a(e){return e.replace(/(x|y|z|3d)?$/,"3d")}function l(t,i){var n=e.makeMatrixDecomposition&&!0,r=!1;if(!t.length||!i.length){t.length||(r=!0,t=i,i=[]);for(var l=0;l<t.length;l++){var h=t[l].t,c=t[l].d,u="scale"==h.substr(0,5)?1:0;i.push({t:h,d:c.map(function(e){if("number"==typeof e)return u;var t={};for(var i in e)t[i]=u;return t})})}}var f=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],_=[];if(t.length!=i.length){if(!n)return;var y=o(t,i);p=[y[0]],m=[y[1]],_=[["matrix",[y[2]]]]}else for(var l=0;l<t.length;l++){var h,v=t[l].t,g=i[l].t,b=t[l].d,P=i[l].d,C=d[v],w=d[g];if(f(v,g)){if(!n)return;var y=o([t[l]],[i[l]]);p.push(y[0]),m.push(y[1]),_.push(["matrix",[y[2]]])}else{if(v==g)h=v;else if(C[2]&&w[2]&&s(v)==s(g))h=s(v),b=C[2](b),P=w[2](P);else{if(!C[1]||!w[1]||a(v)!=a(g)){if(!n)return;var y=o(t,i);p=[y[0]],m=[y[1]],_=[["matrix",[y[2]]]];break}h=a(v),b=C[1](b),P=w[1](P)}for(var E=[],S=[],A=[],x=0;x<b.length;x++){var T="number"==typeof b[x]?e.mergeNumbers:e.mergeDimensions,y=T(b[x],P[x]);E[x]=y[0],S[x]=y[1],A.push(y[2])}p.push(E),m.push(S),_.push([h,A])}}if(r){var N=p;p=m,m=N}return[p,m,function(e){return e.map(function(e,t){var i=e.map(function(e,i){return _[t][1][i](e)}).join(",");return"matrix"==_[t][0]&&16==i.split(",").length&&(_[t][0]="matrix3d"),_[t][0]+"("+i+")"}).join(" ")}]}var h=null,c={px:0},u={deg:0},d={matrix:["NNNNNN",[h,h,0,0,h,h,0,0,0,0,1,0,h,h,0,1],i],matrix3d:["NNNNNNNNNNNNNNNN",i],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",t([h,h,1]),i],scalex:["N",t([h,1,1]),t([h,1])],scaley:["N",t([1,h,1]),t([1,h])],scalez:["N",t([1,1,h])],scale3d:["NNN",i],skew:["Aa",null,i],skewx:["A",null,t([h,u])],skewy:["A",null,t([u,h])],translate:["Tt",t([h,h,c]),i],translatex:["T",t([h,c,c]),t([h,c])],translatey:["T",t([c,h,c]),t([c,h])],translatez:["L",t([c,c,h])],translate3d:["TTL",i]};e.addPropertiesHandler(n,l,["transform"])}(d,f),function(e){function t(e,t){t.concat([e]).forEach(function(t){t in document.documentElement.style&&(i[e]=t)})}var i={};t("transform",["webkitTransform","msTransform"]),t("transformOrigin",["webkitTransformOrigin"]),t("perspective",["webkitPerspective"]),t("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return i[e]||e}}(d,f)}(),!function(){if(void 0===document.createElement("div").animate([]).oncancel){var e;if(window.performance&&performance.now)var e=function(){return performance.now()};else var e=function(){return Date.now()};var t=function(e,t,i){this.target=e,this.currentTime=t,this.timelineTime=i,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},i=window.Element.prototype.animate;window.Element.prototype.animate=function(n,r){var o=i.call(this,n,r);o._cancelHandlers=[],o.oncancel=null;var s=o.cancel;o.cancel=function(){s.call(this);var i=new t(this,null,e()),n=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout(function(){n.forEach(function(e){e.call(i.target,i)})},0)};var a=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):a.call(this,e,t)};var l=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var i=this._cancelHandlers.indexOf(t);i>=0&&this._cancelHandlers.splice(i,1)}else l.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,i=null,n=!1;try{var r=getComputedStyle(t).getPropertyValue("opacity"),o="0"==r?"1":"0";i=t.animate({opacity:[o,o]},{duration:1}),i.currentTime=0,n=getComputedStyle(t).getPropertyValue("opacity")==o}catch(e){}finally{i&&i.cancel()}if(!n){var s=window.Element.prototype.animate;window.Element.prototype.animate=function(t,i){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),s.call(this,t,i)}}}(c),!function(e,t){function i(e){var n=t.timeline;n.currentTime=e,
n._discardAnimations(),0==n._animations.length?r=!1:requestAnimationFrame(i)}var n=window.requestAnimationFrame;window.requestAnimationFrame=function(e){return n(function(i){t.timeline._updateAnimationsPromises(),e(i),t.timeline._updateAnimationsPromises()})},t.AnimationTimeline=function(){this._animations=[],this.currentTime=void 0},t.AnimationTimeline.prototype={getAnimations:function(){return this._discardAnimations(),this._animations.slice()},_updateAnimationsPromises:function(){t.animationsWithPromises=t.animationsWithPromises.filter(function(e){return e._updatePromises()})},_discardAnimations:function(){this._updateAnimationsPromises(),this._animations=this._animations.filter(function(e){return"finished"!=e.playState&&"idle"!=e.playState})},_play:function(e){var i=new t.Animation(e,this);return this._animations.push(i),t.restartWebAnimationsNextTick(),i._updatePromises(),i._animation.play(),i._updatePromises(),i},play:function(e){return e&&e.remove(),this._play(e)}};var r=!1;t.restartWebAnimationsNextTick=function(){r||(r=!0,requestAnimationFrame(i))};var o=new t.AnimationTimeline;t.timeline=o;try{Object.defineProperty(window.document,"timeline",{configurable:!0,get:function(){return o}})}catch(e){}try{window.document.timeline=o}catch(e){}}(c,e,f),function(e,t){t.animationsWithPromises=[],t.Animation=function(t,i){if(this.id="",t&&t._id&&(this.id=t._id),this.effect=t,t&&(t._animation=this),!i)throw Error("Animation with null timeline is not supported");this._timeline=i,this._sequenceNumber=e.sequenceNumber++,this._holdTime=0,this._paused=!1,this._isGroup=!1,this._animation=null,this._childAnimations=[],this._callback=null,this._oldPlayState="idle",this._rebuildUnderlyingAnimation(),this._animation.cancel(),this._updatePromises()},t.Animation.prototype={_updatePromises:function(){var e=this._oldPlayState,t=this.playState;return this._readyPromise&&t!==e&&("idle"==t?(this._rejectReadyPromise(),this._readyPromise=void 0):"pending"==e?this._resolveReadyPromise():"pending"==t&&(this._readyPromise=void 0)),this._finishedPromise&&t!==e&&("idle"==t?(this._rejectFinishedPromise(),this._finishedPromise=void 0):"finished"==t?this._resolveFinishedPromise():"finished"==e&&(this._finishedPromise=void 0)),this._oldPlayState=this.playState,this._readyPromise||this._finishedPromise},_rebuildUnderlyingAnimation:function(){this._updatePromises();var e,i,n,r,o=!!this._animation;o&&(e=this.playbackRate,i=this._paused,n=this.startTime,r=this.currentTime,this._animation.cancel(),this._animation._wrapper=null,this._animation=null),(!this.effect||this.effect instanceof window.KeyframeEffect)&&(this._animation=t.newUnderlyingAnimationForKeyframeEffect(this.effect),t.bindAnimationForKeyframeEffect(this)),(this.effect instanceof window.SequenceEffect||this.effect instanceof window.GroupEffect)&&(this._animation=t.newUnderlyingAnimationForGroup(this.effect),t.bindAnimationForGroup(this)),this.effect&&this.effect._onsample&&t.bindAnimationForCustomEffect(this),o&&(1!=e&&(this.playbackRate=e),null!==n?this.startTime=n:null!==r?this.currentTime=r:null!==this._holdTime&&(this.currentTime=this._holdTime),i&&this.pause()),this._updatePromises()},_updateChildren:function(){if(this.effect&&"idle"!=this.playState){var e=this.effect._timing.delay;this._childAnimations.forEach(function(i){this._arrangeChildren(i,e),this.effect instanceof window.SequenceEffect&&(e+=t.groupChildDuration(i.effect))}.bind(this))}},_setExternalAnimation:function(e){if(this.effect&&this._isGroup)for(var t=0;t<this.effect.children.length;t++)this.effect.children[t]._animation=e,this._childAnimations[t]._setExternalAnimation(e)},_constructChildAnimations:function(){if(this.effect&&this._isGroup){var e=this.effect._timing.delay;this._removeChildAnimations(),this.effect.children.forEach(function(i){var n=t.timeline._play(i);this._childAnimations.push(n),n.playbackRate=this.playbackRate,this._paused&&n.pause(),i._animation=this.effect._animation,this._arrangeChildren(n,e),this.effect instanceof window.SequenceEffect&&(e+=t.groupChildDuration(i))}.bind(this))}},_arrangeChildren:function(e,t){null===this.startTime?e.currentTime=this.currentTime-t/this.playbackRate:e.startTime!==this.startTime+t/this.playbackRate&&(e.startTime=this.startTime+t/this.playbackRate)},get timeline(){return this._timeline},get playState(){return this._animation?this._animation.playState:"idle"},get finished(){return window.Promise?(this._finishedPromise||(t.animationsWithPromises.indexOf(this)==-1&&t.animationsWithPromises.push(this),this._finishedPromise=new Promise(function(e,t){this._resolveFinishedPromise=function(){e(this)},this._rejectFinishedPromise=function(){t({type:DOMException.ABORT_ERR,name:"AbortError"})}}.bind(this)),"finished"==this.playState&&this._resolveFinishedPromise()),this._finishedPromise):null},get ready(){return window.Promise?(this._readyPromise||(t.animationsWithPromises.indexOf(this)==-1&&t.animationsWithPromises.push(this),this._readyPromise=new Promise(function(e,t){this._resolveReadyPromise=function(){e(this)},this._rejectReadyPromise=function(){t({type:DOMException.ABORT_ERR,name:"AbortError"})}}.bind(this)),"pending"!==this.playState&&this._resolveReadyPromise()),this._readyPromise):null},get onfinish(){return this._animation.onfinish},set onfinish(e){"function"==typeof e?this._animation.onfinish=function(t){t.target=this,e.call(this,t)}.bind(this):this._animation.onfinish=e},get oncancel(){return this._animation.oncancel},set oncancel(e){"function"==typeof e?this._animation.oncancel=function(t){t.target=this,e.call(this,t)}.bind(this):this._animation.oncancel=e},get currentTime(){this._updatePromises();var e=this._animation.currentTime;return this._updatePromises(),e},set currentTime(e){this._updatePromises(),this._animation.currentTime=isFinite(e)?e:Math.sign(e)*Number.MAX_VALUE,this._register(),this._forEachChild(function(t,i){t.currentTime=e-i}),this._updatePromises()},get startTime(){return this._animation.startTime},set startTime(e){this._updatePromises(),this._animation.startTime=isFinite(e)?e:Math.sign(e)*Number.MAX_VALUE,this._register(),this._forEachChild(function(t,i){t.startTime=e+i}),this._updatePromises()},get playbackRate(){return this._animation.playbackRate},set playbackRate(e){this._updatePromises();var t=this.currentTime;this._animation.playbackRate=e,this._forEachChild(function(t){t.playbackRate=e}),null!==t&&(this.currentTime=t),this._updatePromises()},play:function(){this._updatePromises(),this._paused=!1,this._animation.play(),this._timeline._animations.indexOf(this)==-1&&this._timeline._animations.push(this),this._register(),t.awaitStartTime(this),this._forEachChild(function(e){var t=e.currentTime;e.play(),e.currentTime=t}),this._updatePromises()},pause:function(){this._updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._animation.pause(),this._register(),this._forEachChild(function(e){e.pause()}),this._paused=!0,this._updatePromises()},finish:function(){this._updatePromises(),this._animation.finish(),this._register(),this._updatePromises()},cancel:function(){this._updatePromises(),this._animation.cancel(),this._register(),this._removeChildAnimations(),this._updatePromises()},reverse:function(){this._updatePromises();var e=this.currentTime;this._animation.reverse(),this._forEachChild(function(e){e.reverse()}),null!==e&&(this.currentTime=e),this._updatePromises()},addEventListener:function(e,t){var i=t;"function"==typeof t&&(i=function(e){e.target=this,t.call(this,e)}.bind(this),t._wrapper=i),this._animation.addEventListener(e,i)},removeEventListener:function(e,t){this._animation.removeEventListener(e,t&&t._wrapper||t)},_removeChildAnimations:function(){for(;this._childAnimations.length;)this._childAnimations.pop().cancel()},_forEachChild:function(t){var i=0;if(this.effect.children&&this._childAnimations.length<this.effect.children.length&&this._constructChildAnimations(),this._childAnimations.forEach(function(e){t.call(this,e,i),this.effect instanceof window.SequenceEffect&&(i+=e.effect.activeDuration)}.bind(this)),"pending"!=this.playState){var n=this.effect._timing,r=this.currentTime;null!==r&&(r=e.calculateIterationProgress(e.calculateActiveDuration(n),r,n)),(null==r||isNaN(r))&&this._removeChildAnimations()}}},window.Animation=t.Animation}(c,e,f),function(e,t){function i(t){this._frames=e.normalizeKeyframes(t)}function n(){for(var e=!1;a.length;)a.shift()._updateChildren(),e=!0;return e}var r=function(e){if(e._animation=void 0,e instanceof window.SequenceEffect||e instanceof window.GroupEffect)for(var t=0;t<e.children.length;t++)r(e.children[t])};t.removeMulti=function(e){for(var t=[],i=0;i<e.length;i++){var n=e[i];n._parent?(t.indexOf(n._parent)==-1&&t.push(n._parent),n._parent.children.splice(n._parent.children.indexOf(n),1),n._parent=null,r(n)):n._animation&&n._animation.effect==n&&(n._animation.cancel(),n._animation.effect=new KeyframeEffect(null,[]),n._animation._callback&&(n._animation._callback._animation=null),n._animation._rebuildUnderlyingAnimation(),r(n))}for(i=0;i<t.length;i++)t[i]._rebuild()},t.KeyframeEffect=function(t,n,r,o){return this.target=t,this._parent=null,r=e.numericTimingToObject(r),this._timingInput=e.cloneTimingInput(r),this._timing=e.normalizeTimingInput(r),this.timing=e.makeTiming(r,!1,this),this.timing._effect=this,"function"==typeof n?(e.deprecated("Custom KeyframeEffect","2015-06-22","Use KeyframeEffect.onsample instead."),this._normalizedKeyframes=n):this._normalizedKeyframes=new i(n),this._keyframes=n,this.activeDuration=e.calculateActiveDuration(this._timing),this._id=o,this},t.KeyframeEffect.prototype={getFrames:function(){return"function"==typeof this._normalizedKeyframes?this._normalizedKeyframes:this._normalizedKeyframes._frames},set onsample(e){if("function"==typeof this.getFrames())throw Error("Setting onsample on custom effect KeyframeEffect is not supported.");this._onsample=e,this._animation&&this._animation._rebuildUnderlyingAnimation()},get parent(){return this._parent},clone:function(){if("function"==typeof this.getFrames())throw Error("Cloning custom effects is not supported.");var t=new KeyframeEffect(this.target,[],e.cloneTimingInput(this._timingInput),this._id);return t._normalizedKeyframes=this._normalizedKeyframes,t._keyframes=this._keyframes,t},remove:function(){t.removeMulti([this])}};var o=Element.prototype.animate;Element.prototype.animate=function(e,i){var n="";return i&&i.id&&(n=i.id),t.timeline._play(new t.KeyframeEffect(this,e,i,n))};var s=document.createElementNS("http://www.w3.org/1999/xhtml","div");t.newUnderlyingAnimationForKeyframeEffect=function(e){if(e){var t=e.target||s,i=e._keyframes;"function"==typeof i&&(i=[]);var n=e._timingInput;n.id=e._id}else var t=s,i=[],n=0;return o.apply(t,[i,n])},t.bindAnimationForKeyframeEffect=function(e){e.effect&&"function"==typeof e.effect._normalizedKeyframes&&t.bindAnimationForCustomEffect(e)};var a=[];t.awaitStartTime=function(e){null===e.startTime&&e._isGroup&&(0==a.length&&requestAnimationFrame(n),a.push(e))};var l=window.getComputedStyle;Object.defineProperty(window,"getComputedStyle",{configurable:!0,enumerable:!0,value:function(){t.timeline._updateAnimationsPromises();var e=l.apply(this,arguments);return n()&&(e=l.apply(this,arguments)),t.timeline._updateAnimationsPromises(),e}}),window.KeyframeEffect=t.KeyframeEffect,window.Element.prototype.getAnimations=function(){return document.timeline.getAnimations().filter(function(e){return null!==e.effect&&e.effect.target==this}.bind(this))}}(c,e,f),function(e,t){function i(e){e._registered||(e._registered=!0,o.push(e),s||(s=!0,requestAnimationFrame(n)))}function n(){var e=o;o=[],e.sort(function(e,t){return e._sequenceNumber-t._sequenceNumber}),e=e.filter(function(e){e();var t=e._animation?e._animation.playState:"idle";return"running"!=t&&"pending"!=t&&(e._registered=!1),e._registered}),o.push.apply(o,e),o.length?(s=!0,requestAnimationFrame(n)):s=!1}var r=(document.createElementNS("http://www.w3.org/1999/xhtml","div"),0);t.bindAnimationForCustomEffect=function(t){var n,o=t.effect.target,s="function"==typeof t.effect.getFrames();n=s?t.effect.getFrames():t.effect._onsample;var a=t.effect.timing,l=null;a=e.normalizeTimingInput(a);var h=function(){var i=h._animation?h._animation.currentTime:null;null!==i&&(i=e.calculateIterationProgress(e.calculateActiveDuration(a),i,a),isNaN(i)&&(i=null)),i!==l&&(s?n(i,o,t.effect):n(i,t.effect,t.effect._animation)),l=i};h._animation=t,h._registered=!1,h._sequenceNumber=r++,t._callback=h,i(h)};var o=[],s=!1;t.Animation.prototype._register=function(){this._callback&&i(this._callback)}}(c,e,f),function(e,t){function i(e){return e._timing.delay+e.activeDuration+e._timing.endDelay}function n(t,i,n){this._id=n,this._parent=null,this.children=t||[],this._reparent(this.children),i=e.numericTimingToObject(i),this._timingInput=e.cloneTimingInput(i),this._timing=e.normalizeTimingInput(i,!0),this.timing=e.makeTiming(i,!0,this),this.timing._effect=this,"auto"===this._timing.duration&&(this._timing.duration=this.activeDuration)}window.SequenceEffect=function(){n.apply(this,arguments)},window.GroupEffect=function(){n.apply(this,arguments)},n.prototype={_isAncestor:function(e){for(var t=this;null!==t;){if(t==e)return!0;t=t._parent}return!1},_rebuild:function(){for(var e=this;e;)"auto"===e.timing.duration&&(e._timing.duration=e.activeDuration),e=e._parent;this._animation&&this._animation._rebuildUnderlyingAnimation()},_reparent:function(e){t.removeMulti(e);for(var i=0;i<e.length;i++)e[i]._parent=this},_putChild:function(e,t){for(var i=t?"Cannot append an ancestor or self":"Cannot prepend an ancestor or self",n=0;n<e.length;n++)if(this._isAncestor(e[n]))throw{type:DOMException.HIERARCHY_REQUEST_ERR,name:"HierarchyRequestError",message:i};for(var n=0;n<e.length;n++)t?this.children.push(e[n]):this.children.unshift(e[n]);this._reparent(e),this._rebuild()},append:function(){this._putChild(arguments,!0)},prepend:function(){this._putChild(arguments,!1)},get parent(){return this._parent},get firstChild(){return this.children.length?this.children[0]:null},get lastChild(){return this.children.length?this.children[this.children.length-1]:null},clone:function(){for(var t=e.cloneTimingInput(this._timingInput),i=[],n=0;n<this.children.length;n++)i.push(this.children[n].clone());return this instanceof GroupEffect?new GroupEffect(i,t):new SequenceEffect(i,t)},remove:function(){t.removeMulti([this])}},window.SequenceEffect.prototype=Object.create(n.prototype),Object.defineProperty(window.SequenceEffect.prototype,"activeDuration",{get:function(){var e=0;return this.children.forEach(function(t){e+=i(t)}),Math.max(e,0)}}),window.GroupEffect.prototype=Object.create(n.prototype),Object.defineProperty(window.GroupEffect.prototype,"activeDuration",{get:function(){var e=0;return this.children.forEach(function(t){e=Math.max(e,i(t))}),e}}),t.newUnderlyingAnimationForGroup=function(i){var n,r=null,o=function(t){var i=n._wrapper;if(i&&"pending"!=i.playState&&i.effect)return null==t?void i._removeChildAnimations():0==t&&i.playbackRate<0&&(r||(r=e.normalizeTimingInput(i.effect.timing)),t=e.calculateIterationProgress(e.calculateActiveDuration(r),-1,r),isNaN(t)||null==t)?(i._forEachChild(function(e){e.currentTime=-1}),void i._removeChildAnimations()):void 0},s=new KeyframeEffect(null,[],i._timing,i._id);return s.onsample=o,n=t.timeline._play(s)},t.bindAnimationForGroup=function(e){e._animation._wrapper=e,e._isGroup=!0,t.awaitStartTime(e),e._constructChildAnimations(),e._setExternalAnimation(e)},t.groupChildDuration=i}(c,e,f),b["true"]=a}({},function(){return this}()),Polymer({is:"cascaded-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){this._animations=[];var t=e.nodes,i=[],n=e.nodeDelay||50;e.timing=e.timing||{},e.timing.delay=e.timing.delay||0;for(var r,o,s=e.timing.delay,a=0;o=t[a];a++){e.timing.delay+=n,e.node=o;var l=document.createElement(e.animation);if(!l.isNeonAnimation){r=!0;break}var h=l.configure(e);this._animations.push(l),i.push(h)}if(e.timing.delay=s,e.node=null,!r)return this._effect=new GroupEffect(i),this._effect},complete:function(){for(var e,t=0;e=this._animations[t];t++)e.complete(e.config)}}),Polymer({is:"fade-in-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(e)),this._effect}}),Polymer({is:"fade-out-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(e)),this._effect}}),Polymer.NeonSharedElementAnimationBehaviorImpl={properties:{sharedElements:{type:Object}},findSharedElements:function(e){var t=e.fromPage,i=e.toPage;if(!t||!i)return null;if(!t.sharedElements||!i.sharedElements)return null;var n=t.sharedElements[e.id],r=i.sharedElements[e.id];return n&&r?(this.sharedElements={from:n,to:r},this.sharedElements):null}},Polymer.NeonSharedElementAnimationBehavior=[Polymer.NeonAnimationBehavior,Polymer.NeonSharedElementAnimationBehaviorImpl],Polymer({is:"hero-animation",behaviors:[Polymer.NeonSharedElementAnimationBehavior],configure:function(e){var t=this.findSharedElements(e);if(t){var i=t.from.getBoundingClientRect(),n=t.to.getBoundingClientRect(),r=i.left-n.left,o=i.top-n.top,s=i.width/n.width,a=i.height/n.height;return this._effect=new KeyframeEffect(t.to,[{transform:"translate("+r+"px,"+o+"px) scale("+s+","+a+")"},{transform:"none"}],this.timingFromConfig(e)),this.setPrefixedProperty(t.to,"transformOrigin","0 0"),t.to.style.zIndex=1e4,t.from.style.visibility="hidden",this._effect}},complete:function(e){var t=this.findSharedElements(e);return t?(t.to.style.zIndex="",void(t.from.style.visibility="")):null}}),Polymer({is:"opaque-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{opacity:"1"},{opacity:"1"}],this.timingFromConfig(e)),t.style.opacity="0",this._effect},complete:function(e){e.node.style.opacity=""}}),Polymer({is:"ripple-animation",behaviors:[Polymer.NeonSharedElementAnimationBehavior],configure:function(e){var t=this.findSharedElements(e);if(!t)return null;var i,n,r=t.to.getBoundingClientRect();if(e.gesture)i=e.gesture.x-(r.left+r.width/2),n=e.gesture.y-(r.top+r.height/2);else{var o=t.from.getBoundingClientRect();i=o.left+o.width/2-(r.left+r.width/2),n=o.top+o.height/2-(r.top+r.height/2)}var s="translate("+i+"px,"+n+"px)",a=Math.max(r.width+2*Math.abs(i),r.height+2*Math.abs(n)),l=Math.sqrt(2*a*a),h=l/r.width,c=l/r.height,u="scale("+h+","+c+")";return this._effect=new KeyframeEffect(t.to,[{transform:s+" scale(0)"},{transform:s+" "+u}],this.timingFromConfig(e)),this.setPrefixedProperty(t.to,"transformOrigin","50% 50%"),t.to.style.borderRadius="50%",this._effect},complete:function(){this.sharedElements&&(this.setPrefixedProperty(this.sharedElements.to,"transformOrigin",""),this.sharedElements.to.style.borderRadius="")}}),Polymer({is:"reverse-ripple-animation",behaviors:[Polymer.NeonSharedElementAnimationBehavior],configure:function(e){var t=this.findSharedElements(e);if(!t)return null;var i,n,r=t.from.getBoundingClientRect();if(e.gesture)i=e.gesture.x-(r.left+r.width/2),n=e.gesture.y-(r.top+r.height/2);else{var o=t.to.getBoundingClientRect();i=o.left+o.width/2-(r.left+r.width/2),n=o.top+o.height/2-(r.top+r.height/2)}var s="translate("+i+"px,"+n+"px)",a=Math.max(r.width+2*Math.abs(i),r.height+2*Math.abs(n)),l=Math.sqrt(2*a*a),h=l/r.width,c=l/r.height,u="scale("+h+","+c+")";return this._effect=new KeyframeEffect(t.from,[{transform:s+" "+u},{transform:s+" scale(0)"}],this.timingFromConfig(e)),this.setPrefixedProperty(t.from,"transformOrigin","50% 50%"),t.from.style.borderRadius="50%",this._effect},complete:function(){this.sharedElements&&(this.setPrefixedProperty(this.sharedElements.from,"transformOrigin",""),this.sharedElements.from.style.borderRadius="")}}),Polymer({is:"scale-down-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node,i="scale(0, 0)";return"x"===e.axis?i="scale(0, 1)":"y"===e.axis&&(i="scale(1, 0)"),this._effect=new KeyframeEffect(t,[{transform:"scale(1,1)"},{transform:i}],this.timingFromConfig(e)),e.transformOrigin&&this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin),this._effect}}),Polymer({is:"scale-up-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node,i="scale(0)";return"x"===e.axis?i="scale(0, 1)":"y"===e.axis&&(i="scale(1, 0)"),this._effect=new KeyframeEffect(t,[{transform:i},{transform:"scale(1, 1)"}],this.timingFromConfig(e)),e.transformOrigin&&this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin),this._effect}}),Polymer({is:"slide-from-left-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"translateX(-100%)"},{transform:"none"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","0 50%"),this._effect}}),Polymer({is:"slide-from-right-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"translateX(100%)"},{transform:"none"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","0 50%"),this._effect}}),Polymer({is:"slide-from-top-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"translateY(-100%)"},{transform:"translateY(0%)"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","50% 0"),this._effect}}),Polymer({is:"slide-from-bottom-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"translateY(100%)"},{transform:"translateY(0)"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","50% 0"),this._effect}}),Polymer({is:"slide-left-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"none"},{transform:"translateX(-100%)"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","0 50%"),this._effect}}),Polymer({is:"slide-right-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"none"},{transform:"translateX(100%)"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","0 50%"),this._effect}}),Polymer({is:"slide-up-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"translate(0)"},{transform:"translateY(-100%)"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","50% 0"),this._effect}}),Polymer({is:"slide-down-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{transform:"translateY(0%)"},{transform:"translateY(100%)"}],this.timingFromConfig(e)),e.transformOrigin?this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin):this.setPrefixedProperty(t,"transformOrigin","50% 0"),this._effect}}),Polymer({is:"transform-animation",behaviors:[Polymer.NeonAnimationBehavior],configure:function(e){var t=e.node,i=e.transformFrom||"none",n=e.transformTo||"none";return this._effect=new KeyframeEffect(t,[{transform:i},{transform:n}],this.timingFromConfig(e)),e.transformOrigin&&this.setPrefixedProperty(t,"transformOrigin",e.transformOrigin),this._effect}}),Polymer.IronResizableBehavior={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this)},attached:function(){this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable||(window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):window.removeEventListener("resize",this._boundNotifyResize),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable=e},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);t>-1&&(this._interestedResizables.splice(t,1),this.unlisten(e,"iron-resize","_onDescendantIronResize"))},resizerShouldNotify:function(){return!0},_onDescendantIronResize:function(e){return this._notifyingDescendant?void e.stopPropagation():void(Polymer.Settings.useShadow||this._fireResize())},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=e.path?e.path[0]:e.target;t!==this&&(this._interestedResizables.indexOf(t)===-1&&(this._interestedResizables.push(t),this.listen(t,"iron-resize","_onDescendantIronResize")),t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)}},Polymer.IronSelection=function(e){this.selection=[],this.selectCallback=e},Polymer.IronSelection.prototype={get:function(){return this.multi?this.selection.slice():this.selection[0]},clear:function(e){this.selection.slice().forEach(function(t){e&&e.indexOf(t)>=0||this.setItemSelected(t,!1)},this)},isSelected:function(e){return this.selection.indexOf(e)>=0},setItemSelected:function(e,t){if(null!=e&&t!==this.isSelected(e)){if(t)this.selection.push(e);else{var i=this.selection.indexOf(e);0>i||this.selection.splice(i,1)}this.selectCallback&&this.selectCallback(e,t)}},select:function(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected(this.get(),!1),this.setItemSelected(e,!0))},toggle:function(e){this.setItemSelected(e,!this.isSelected(e))}},Polymer.IronSelectableBehavior={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this),this._selection=new Polymer.IronSelection(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._updateItems(),this._shouldUpdateSelection||this._updateSelected(),this._addListener(this.activateEvent)},detached:function(){this._observer&&Polymer.dom(this).unobserveNodes(this._observer),this._removeListener(this.activateEvent)},indexOf:function(e){return this.items.indexOf(e)},select:function(e){this.selected=e},selectPrevious:function(){var e=this.items.length,t=(+this._valueToIndex(this.selected)-1+e)%e;this.selected=this._indexToValue(t)},selectNext:function(){var e=(+this._valueToIndex(this.selected)+1)%this.items.length;this.selected=this._indexToValue(e)},selectIndex:function(e){this.select(this._indexToValue(e))},forceSynchronousItemUpdate:function(){this._updateItems()},get _shouldUpdateSelection(){return null!=this.selected},_checkFallback:function(){this._shouldUpdateSelection&&this._updateSelected()},_addListener:function(e){this.listen(this,e,"_activateHandler")},_removeListener:function(e){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:function(e,t){this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=Polymer.dom(this).queryDistributedElements(this.selectable||"*");e=Array.prototype.filter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelected:function(){this._shouldUpdateSelection&&(this.selected=this._indexToValue(this.indexOf(this.selectedItem)))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(){this._selection.select(this._valueToItem(this.selected)),this.fallbackSelection&&this.items.length&&void 0===this._selection.get()&&(this.selected=this.fallbackSelection)},_filterItem:function(e){return!this._excludedLocalNames[e.localName]},_valueToItem:function(e){return null==e?null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!this.attrForSelected)return+e;for(var t,i=0;t=this.items[i];i++)if(this._valueForItem(t)==e)return i},_indexToValue:function(e){if(!this.attrForSelected)return e;var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem:function(e){var t=e[Polymer.CaseMap.dashToCamelCase(this.attrForSelected)];return void 0!=t?t:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttribute&&this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(),this.fire("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function(){this._setSelectedItem(this._selection.get())},_observeItems:function(e){return Polymer.dom(e).observeNodes(function(e){this._updateItems(),this._shouldUpdateSelection&&this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})})},_activateHandler:function(e){for(var t=e.target,i=this.items;t&&t!=this;){var n=i.indexOf(t);if(n>=0){var r=this._indexToValue(n);return void this._itemActivate(r,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("iron-activate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select(e)}},Polymer.NeonAnimatableBehavior={properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyProperties:function(e,t){for(var i in t)e[i]=t[i]},_cloneConfig:function(e){var t={isClone:!0};return this._copyProperties(t,e),t},_getAnimationConfigRecursive:function(e,t,i){if(this.animationConfig){if(this.animationConfig.value&&"function"==typeof this.animationConfig.value)return void this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));var n;if(n=e?this.animationConfig[e]:this.animationConfig,Array.isArray(n)||(n=[n]),n)for(var r,o=0;r=n[o];o++)if(r.animatable)r.animatable._getAnimationConfigRecursive(r.type||e,t,i);else if(r.id){var s=t[r.id];s?(s.isClone||(t[r.id]=this._cloneConfig(s),s=t[r.id]),this._copyProperties(s,r)):t[r.id]=r;
}else i.push(r)}},getAnimationConfig:function(e){var t={},i=[];this._getAnimationConfigRecursive(e,t,i);for(var n in t)i.push(t[n]);return i}},Polymer.NeonAnimationRunnerBehaviorImpl={_configureAnimations:function(e){var t=[];if(e.length>0)for(var i,n=0;i=e[n];n++){var r=document.createElement(i.name);if(r.isNeonAnimation){var o=null;try{o=r.configure(i),"function"!=typeof o.cancel&&(o=document.timeline.play(o))}catch(s){o=null}o&&t.push({neonAnimation:r,config:i,animation:o})}}return t},_shouldComplete:function(e){for(var t=!0,i=0;i<e.length;i++)if("finished"!=e[i].animation.playState){t=!1;break}return t},_complete:function(e){for(var t=0;t<e.length;t++)e[t].neonAnimation.complete(e[t].config);for(var t=0;t<e.length;t++)e[t].animation.cancel()},playAnimation:function(e,t){var i=this.getAnimationConfig(e);if(i){this._active=this._active||{},this._active[e]&&(this._complete(this._active[e]),delete this._active[e]);var n=this._configureAnimations(i);if(0==n.length)return void this.fire("neon-animation-finish",t,{bubbles:!1});this._active[e]=n;for(var r=0;r<n.length;r++)n[r].animation.onfinish=function(){this._shouldComplete(n)&&(this._complete(n),delete this._active[e],this.fire("neon-animation-finish",t,{bubbles:!1}))}.bind(this)}},cancelAnimation:function(){for(var e in this._animations)this._animations[e].cancel();this._animations={}}},Polymer.NeonAnimationRunnerBehavior=[Polymer.NeonAnimatableBehavior,Polymer.NeonAnimationRunnerBehaviorImpl],function(){Polymer({is:"neon-animated-pages",behaviors:[Polymer.IronResizableBehavior,Polymer.IronSelectableBehavior,Polymer.NeonAnimationRunnerBehavior],properties:{activateEvent:{type:String,value:""},animateInitialSelection:{type:Boolean,value:!1}},listeners:{"iron-select":"_onIronSelect","neon-animation-finish":"_onNeonAnimationFinish"},_onIronSelect:function(e){var t=e.detail.item;if(this.items.indexOf(t)>=0){var i=this._valueToItem(this._prevSelected)||!1;if(this._prevSelected=this.selected,!i&&!this.animateInitialSelection)return void this._completeSelectedChanged();this.animationConfig=[],this.entryAnimation?this.animationConfig.push({name:this.entryAnimation,node:t}):t.getAnimationConfig&&this.animationConfig.push({animatable:t,type:"entry"}),i&&(i.classList.contains("neon-animating")&&(this._squelchNextFinishEvent=!0,this.cancelAnimation(),this._completeSelectedChanged(),this._squelchNextFinishEvent=!1),this.exitAnimation?this.animationConfig.push({name:this.exitAnimation,node:i}):i.getAnimationConfig&&this.animationConfig.push({animatable:i,type:"exit"}),i.classList.add("neon-animating")),t.classList.add("neon-animating"),this.animationConfig.length<1?this._completeSelectedChanged(i,t):this.isAttached?this.playAnimation(void 0,{fromPage:i,toPage:t}):this.async(function(){this.playAnimation(void 0,{fromPage:null,toPage:t})})}},_completeSelectedChanged:function(e,t){if(t&&t.classList.remove("neon-animating"),e&&e.classList.remove("neon-animating"),!t||!e)for(var i,n=Polymer.dom(this.$.content).getDistributedNodes(),r=0;i=n[r];r++)i.classList&&i.classList.remove("neon-animating");this.async(this._notifyPageResize)},_onNeonAnimationFinish:function(e){return this._squelchNextFinishEvent?void(this._squelchNextFinishEvent=!1):void this._completeSelectedChanged(e.detail.fromPage,e.detail.toPage)},_notifyPageResize:function(){var e=this.selectedItem||this._valueToItem(this.selected);this.resizerShouldNotify=function(t){return t==e},this.notifyResize()}})}(),Polymer({is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:Polymer.Base.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&Polymer.dom(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,Polymer.dom(this.root).appendChild(this._img))}}),Polymer({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1}},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map(function(e){return this.name+":"+e},this)},applyIcon:function(e,t){e=e.root||e,this.removeIcon(e);var i=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(e));if(i){var n=Polymer.dom(e);return n.insertBefore(i,n.childNodes[0]),e._svgIcon=i}return null},removeIcon:function(e){e=e.root||e,e._svgIcon&&(Polymer.dom(e).removeChild(e._svgIcon),e._svgIcon=null)},_targetIsRTL:function(e){return null==this.__targetIsRTL&&(e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.host),this.__targetIsRTL=e&&"rtl"===window.getComputedStyle(e).direction),this.__targetIsRTL},_nameChanged:function(){new Polymer.IronMeta({type:"iconset",key:this.name,value:this}),this.async(function(){this.fire("iron-iconset-added",this,{node:window})})},_createIconMap:function(){var e=Object.create(null);return Polymer.dom(this).querySelectorAll("[id]").forEach(function(t){e[t.id]=t}),e},_cloneIcon:function(e,t){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[e],this.size,t)},_prepareSvgClone:function(e,t,i){if(e){var n=e.cloneNode(!0),r=document.createElementNS("http://www.w3.org/2000/svg","svg"),o=n.getAttribute("viewBox")||"0 0 "+t+" "+t,s="pointer-events: none; display: block; width: 100%; height: 100%;";return i&&n.hasAttribute("mirror-in-rtl")&&(s+="-webkit-transform:scale(-1,1);transform:scale(-1,1);"),r.setAttribute("viewBox",o),r.setAttribute("preserveAspectRatio","xMidYMid meet"),r.style.cssText=s,r.appendChild(n).removeAttribute("id"),r}return null}}),"undefined"!=typeof module&&(module.exports=MakePromise),window.Promise||(window.Promise=MakePromise(Polymer.Base.async)),Polymer({is:"iron-request",hostAttributes:{hidden:!0},properties:{xhr:{type:Object,notify:!0,readOnly:!0,value:function(){return new XMLHttpRequest}},response:{type:Object,notify:!0,readOnly:!0,value:function(){return null}},status:{type:Number,notify:!0,readOnly:!0,value:0},statusText:{type:String,notify:!0,readOnly:!0,value:""},completes:{type:Object,readOnly:!0,notify:!0,value:function(){return new Promise(function(e,t){this.resolveCompletes=e,this.rejectCompletes=t}.bind(this))}},progress:{type:Object,notify:!0,readOnly:!0,value:function(){return{}}},aborted:{type:Boolean,notify:!0,readOnly:!0,value:!1},errored:{type:Boolean,notify:!0,readOnly:!0,value:!1},timedOut:{type:Boolean,notify:!0,readOnly:!0,value:!1}},get succeeded(){if(this.errored||this.aborted||this.timedOut)return!1;var e=this.xhr.status||0;return 0===e||e>=200&&300>e},send:function(e){var t=this.xhr;if(t.readyState>0)return null;t.addEventListener("progress",function(e){this._setProgress({lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total})}.bind(this)),t.addEventListener("error",function(e){this._setErrored(!0),this._updateStatus(),this.rejectCompletes(e)}.bind(this)),t.addEventListener("timeout",function(e){this._setTimedOut(!0),this._updateStatus(),this.rejectCompletes(e)}.bind(this)),t.addEventListener("abort",function(){this._updateStatus(),this.rejectCompletes(Error("Request aborted."))}.bind(this)),t.addEventListener("loadend",function(){return this._updateStatus(),this._setResponse(this.parseResponse()),this.succeeded?void this.resolveCompletes(this):void this.rejectCompletes(Error("The request failed with status code: "+this.xhr.status))}.bind(this)),this.url=e.url,t.open(e.method||"GET",e.url,e.async!==!1);var i={json:"application/json",text:"text/plain",html:"text/html",xml:"application/xml",arraybuffer:"application/octet-stream"}[e.handleAs],n=e.headers||Object.create(null),r=Object.create(null);for(var o in n)r[o.toLowerCase()]=n[o];if(n=r,i&&!n.accept&&(n.accept=i),Object.keys(n).forEach(function(e){/[A-Z]/.test(e)&&Polymer.Base._error("Headers must be lower case, got",e),t.setRequestHeader(e,n[e])},this),e.async!==!1){e.async&&(t.timeout=e.timeout);var s=e.handleAs;!e.jsonPrefix&&s||(s="text"),t.responseType=t._responseType=s,e.jsonPrefix&&(t._jsonPrefix=e.jsonPrefix)}t.withCredentials=!!e.withCredentials;var a=this._encodeBodyObject(e.body,n["content-type"]);return t.send(a),this.completes},parseResponse:function(){var e=this.xhr,t=e.responseType||e._responseType,i=!this.xhr.responseType,n=e._jsonPrefix&&e._jsonPrefix.length||0;try{switch(t){case"json":if(i||void 0===e.response)try{return JSON.parse(e.responseText)}catch(r){return null}return e.response;case"xml":return e.responseXML;case"blob":case"document":case"arraybuffer":return e.response;case"text":default:if(n)try{return JSON.parse(e.responseText.substring(n))}catch(r){return null}return e.responseText}}catch(o){this.rejectCompletes(Error("Could not parse response. "+o.message))}},abort:function(){this._setAborted(!0),this.xhr.abort()},_encodeBodyObject:function(e,t){if("string"==typeof e)return e;var i=e;switch(t){case"application/json":return JSON.stringify(i);case"application/x-www-form-urlencoded":return this._wwwFormUrlEncode(i)}return e},_wwwFormUrlEncode:function(e){if(!e)return"";var t=[];return Object.keys(e).forEach(function(i){t.push(this._wwwFormUrlEncodePiece(i)+"="+this._wwwFormUrlEncodePiece(e[i]))},this),t.join("&")},_wwwFormUrlEncodePiece:function(e){return null===e?"":encodeURIComponent((""+e).replace(/\r?\n/g,"\r\n")).replace(/%20/g,"+")},_updateStatus:function(){this._setStatus(this.xhr.status),this._setStatusText(void 0===this.xhr.statusText?"":this.xhr.statusText)}}),Polymer({is:"iron-ajax",hostAttributes:{hidden:!0},properties:{url:{type:String},params:{type:Object,value:function(){return{}}},method:{type:String,value:"GET"},headers:{type:Object,value:function(){return{}}},contentType:{type:String,value:null},body:{type:Object,value:null},sync:{type:Boolean,value:!1},handleAs:{type:String,value:"json"},withCredentials:{type:Boolean,value:!1},timeout:{type:Number,value:0},auto:{type:Boolean,value:!1},verbose:{type:Boolean,value:!1},lastRequest:{type:Object,notify:!0,readOnly:!0},loading:{type:Boolean,notify:!0,readOnly:!0},lastResponse:{type:Object,notify:!0,readOnly:!0},lastError:{type:Object,notify:!0,readOnly:!0},activeRequests:{type:Array,notify:!0,readOnly:!0,value:function(){return[]}},debounceDuration:{type:Number,value:0,notify:!0},jsonPrefix:{type:String,value:""},bubbles:{type:Boolean,value:!1},_boundHandleResponse:{type:Function,value:function(){return this._handleResponse.bind(this)}}},observers:["_requestOptionsChanged(url, method, params.*, headers, contentType, body, sync, handleAs, jsonPrefix, withCredentials, timeout, auto)"],get queryString(){var e,t,i=[];for(e in this.params)if(t=this.params[e],e=window.encodeURIComponent(e),Array.isArray(t))for(var n=0;n<t.length;n++)i.push(e+"="+window.encodeURIComponent(t[n]));else null!==t?i.push(e+"="+window.encodeURIComponent(t)):i.push(e);return i.join("&")},get requestUrl(){var e=this.queryString,t=this.url||"";return e?t+(t.indexOf("?")<0?"?":"&")+e:t},get requestHeaders(){var e={},t=this.contentType;null==t&&"string"==typeof this.body&&(t="application/x-www-form-urlencoded"),t&&(e["content-type"]=t);var i;if(this.headers instanceof Object)for(i in this.headers)e[i]=""+this.headers[i];return e},toRequestOptions:function(){return{url:this.requestUrl||"",method:this.method,headers:this.requestHeaders,body:this.body,async:!this.sync,handleAs:this.handleAs,jsonPrefix:this.jsonPrefix,withCredentials:this.withCredentials,timeout:this.timeout}},generateRequest:function(){var e=document.createElement("iron-request"),t=this.toRequestOptions();return this.push("activeRequests",e),e.completes.then(this._boundHandleResponse)["catch"](this._handleError.bind(this,e)).then(this._discardRequest.bind(this,e)),e.send(t),this._setLastRequest(e),this._setLoading(!0),this.fire("request",{request:e,options:t},{bubbles:this.bubbles}),this.fire("iron-ajax-request",{request:e,options:t},{bubbles:this.bubbles}),e},_handleResponse:function(e){e===this.lastRequest&&(this._setLastResponse(e.response),this._setLastError(null),this._setLoading(!1)),this.fire("response",e,{bubbles:this.bubbles}),this.fire("iron-ajax-response",e,{bubbles:this.bubbles})},_handleError:function(e,t){this.verbose&&Polymer.Base._error(t),e===this.lastRequest&&(this._setLastError({request:e,error:t,status:e.xhr.status,statusText:e.xhr.statusText,response:e.xhr.response}),this._setLastResponse(null),this._setLoading(!1)),this.fire("iron-ajax-error",{request:e,error:t},{bubbles:this.bubbles}),this.fire("error",{request:e,error:t},{bubbles:this.bubbles})},_discardRequest:function(e){var t=this.activeRequests.indexOf(e);t>-1&&this.splice("activeRequests",t,1)},_requestOptionsChanged:function(){this.debounce("generate-request",function(){null!=this.url&&this.auto&&this.generateRequest()},this.debounceDuration)}}),function(){"use strict";Polymer({is:"iron-location",properties:{path:{type:String,notify:!0,value:function(){return window.decodeURIComponent(window.location.pathname)}},query:{type:String,notify:!0,value:function(){return window.location.search.slice(1)}},hash:{type:String,notify:!0,value:function(){return window.decodeURIComponent(window.location.hash.slice(1))}},dwellTime:{type:Number,value:2e3},urlSpaceRegex:{type:String,value:""},_urlSpaceRegExp:{computed:"_makeRegExp(urlSpaceRegex)"},_lastChangedAt:{type:Number},_initialized:{type:Boolean,value:!1}},hostAttributes:{hidden:!0},observers:["_updateUrl(path, query, hash)"],attached:function(){this.listen(window,"hashchange","_hashChanged"),this.listen(window,"location-changed","_urlChanged"),this.listen(window,"popstate","_urlChanged"),this.listen(document.body,"click","_globalOnClick"),this._lastChangedAt=window.performance.now()-(this.dwellTime-200),this._initialized=!0,this._urlChanged()},detached:function(){this.unlisten(window,"hashchange","_hashChanged"),this.unlisten(window,"location-changed","_urlChanged"),this.unlisten(window,"popstate","_urlChanged"),this.unlisten(document.body,"click","_globalOnClick"),this._initialized=!1},_hashChanged:function(){this.hash=window.decodeURIComponent(window.location.hash.substring(1))},_urlChanged:function(){this._dontUpdateUrl=!0,this._hashChanged(),this.path=window.decodeURIComponent(window.location.pathname),this.query=window.location.search.substring(1),this._dontUpdateUrl=!1,this._updateUrl()},_getUrl:function(){var e=window.encodeURI(this.path).replace(/\#/g,"%23").replace(/\?/g,"%3F"),t="";this.query&&(t="?"+this.query.replace(/\#/g,"%23"));var i="";return this.hash&&(i="#"+window.encodeURI(this.hash)),e+t+i},_updateUrl:function(){if(!this._dontUpdateUrl&&this._initialized&&(this.path!==window.decodeURIComponent(window.location.pathname)||this.query!==window.location.search.substring(1)||this.hash!==window.decodeURIComponent(window.location.hash.substring(1)))){var e=this._getUrl(),t=new URL(e,window.location.protocol+"//"+window.location.host).href,i=window.performance.now(),n=this._lastChangedAt+this.dwellTime>i;this._lastChangedAt=i,n?window.history.replaceState({},"",t):window.history.pushState({},"",t),this.fire("location-changed",{},{node:window})}},_globalOnClick:function(e){if(!e.defaultPrevented){var t=this._getSameOriginLinkHref(e);t&&(e.preventDefault(),t!==window.location.href&&(window.history.pushState({},"",t),this.fire("location-changed",{},{node:window})))}},_getSameOriginLinkHref:function(e){if(0!==e.button)return null;if(e.metaKey||e.ctrlKey)return null;for(var t=Polymer.dom(e).path,i=null,n=0;n<t.length;n++){var r=t[n];if("A"===r.tagName&&r.href){i=r;break}}if(!i)return null;if("_blank"===i.target)return null;if(("_top"===i.target||"_parent"===i.target)&&window.top!==window)return null;var o,s=i.href;o=null!=document.baseURI?new URL(s,document.baseURI):new URL(s);var a;if(window.location.origin?a=window.location.origin:(a=window.location.protocol+"//"+window.location.hostname,window.location.port&&(a+=":"+window.location.port)),o.origin!==a)return null;var l=o.pathname+o.search+o.hash;return this._urlSpaceRegExp&&!this._urlSpaceRegExp.test(l)?null:new URL(l,window.location.href).href},_makeRegExp:function(e){return RegExp(e)}})}(),Polymer({is:"iron-query-params",properties:{paramsString:{type:String,notify:!0,observer:"paramsStringChanged"},paramsObject:{type:Object,notify:!0,value:function(){return{}}},_dontReact:{type:Boolean,value:!1}},hostAttributes:{hidden:!0},observers:["paramsObjectChanged(paramsObject.*)"],paramsStringChanged:function(){this._dontReact=!0,this.paramsObject=this._decodeParams(this.paramsString),this._dontReact=!1},paramsObjectChanged:function(){this._dontReact||(this.paramsString=this._encodeParams(this.paramsObject).replace(/%3F/g,"?").replace(/%2F/g,"/").replace(/'/g,"%27"))},_encodeParams:function(e){var t=[];for(var i in e){var n=e[i];""===n?t.push(encodeURIComponent(i)):n&&t.push(encodeURIComponent(i)+"="+encodeURIComponent(""+n))}return t.join("&")},_decodeParams:function(e){var t={};e=(e||"").replace(/\+/g,"%20");for(var i=e.split("&"),n=0;n<i.length;n++){var r=i[n].split("=");r[0]&&(t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||""))}return t}}),function(){"use strict";Polymer.AppRouteConverterBehavior={properties:{route:{type:Object,notify:!0},queryParams:{type:Object,notify:!0},path:{type:String,notify:!0}},observers:["_locationChanged(path, queryParams)","_routeChanged(route.prefix, route.path)","_routeQueryParamsChanged(route.__queryParams)"],created:function(){this.linkPaths("route.__queryParams","queryParams"),this.linkPaths("queryParams","route.__queryParams")},_locationChanged:function(){this.route&&this.route.path===this.path&&this.queryParams===this.route.__queryParams||(this.route={prefix:"",path:this.path,__queryParams:this.queryParams})},_routeChanged:function(){this.route&&(this.path=this.route.prefix+this.route.path)},_routeQueryParamsChanged:function(e){this.route&&(this.queryParams=e)}}}(),function(){"use strict";Polymer({is:"app-location",properties:{route:{type:Object,notify:!0},useHashAsPath:{type:Boolean,value:!1},urlSpaceRegex:{type:String,notify:!0},__queryParams:{type:Object},__path:{type:String},__query:{type:String},__hash:{type:String},path:{type:String,observer:"__onPathChanged"}},behaviors:[Polymer.AppRouteConverterBehavior],observers:["__computeRoutePath(useHashAsPath, __hash, __path)"],__computeRoutePath:function(){this.path=this.useHashAsPath?this.__hash:this.__path},__onPathChanged:function(){this._readied&&(this.useHashAsPath?this.__hash=this.path:this.__path=this.path)}})}(),function(){"use strict";Polymer({is:"app-route",properties:{route:{type:Object,notify:!0},pattern:{type:String},data:{type:Object,value:function(){return{}},notify:!0},queryParams:{type:Object,value:function(){return{}},notify:!0},tail:{type:Object,value:function(){return{path:null,prefix:null,__queryParams:null}},notify:!0},active:{type:Boolean,notify:!0,readOnly:!0},_queryParamsUpdating:{type:Boolean,value:!1},_matched:{type:String,value:""}},observers:["__tryToMatch(route.path, pattern)","__updatePathOnDataChange(data.*)","__tailPathChanged(tail.path)","__routeQueryParamsChanged(route.__queryParams)","__tailQueryParamsChanged(tail.__queryParams)","__queryParamsChanged(queryParams.*)"],created:function(){this.linkPaths("route.__queryParams","tail.__queryParams"),this.linkPaths("tail.__queryParams","route.__queryParams")},__routeQueryParamsChanged:function(e){if(e&&this.tail){if(this.set("tail.__queryParams",e),!this.active||this._queryParamsUpdating)return;var t={},i=!1;for(var n in e)t[n]=e[n],!i&&this.queryParams&&e[n]===this.queryParams[n]||(i=!0);for(var n in this.queryParams)if(i||!(n in e)){i=!0;break}if(!i)return;this._queryParamsUpdating=!0,this.set("queryParams",t),this._queryParamsUpdating=!1}},__tailQueryParamsChanged:function(e){e&&this.route&&this.set("route.__queryParams",e)},__queryParamsChanged:function(e){this.active&&!this._queryParamsUpdating&&this.set("route.__"+e.path,e.value)},__resetProperties:function(){this._setActive(!1),this._matched=null},__tryToMatch:function(){if(this.route){var e=this.route.path,t=this.pattern;if(t){if(!e)return void this.__resetProperties();for(var i=e.split("/"),n=t.split("/"),r=[],o={},s=0;s<n.length;s++){var a=n[s];if(!a&&""!==a)break;var l=i.shift();if(!l&&""!==l)return void this.__resetProperties();if(r.push(l),":"==a.charAt(0))o[a.slice(1)]=l;else if(a!==l)return void this.__resetProperties()}this._matched=r.join("/");var h={};this.active||(h.active=!0);var c=this.route.prefix+this._matched,u=i.join("/");i.length>0&&(u="/"+u),this.tail&&this.tail.prefix===c&&this.tail.path===u||(h.tail={prefix:c,path:u,__queryParams:this.route.__queryParams}),h.data=o,this._dataInUrl={};for(var d in o)this._dataInUrl[d]=o[d];this.__setMulti(h)}}},__tailPathChanged:function(e){if(this.active){var t=e,i=this._matched;t&&("/"!==t.charAt(0)&&(t="/"+t),i+=t),this.set("route.path",i)}},__updatePathOnDataChange:function(){if(this.route&&this.active){var e=this.__getLink({});e!==this.__getLink(this._dataInUrl)&&this.set("route.path",e)}},__getLink:function(e){var t={tail:null};for(var i in this.data)t[i]=this.data[i];for(var i in e)t[i]=e[i];var n=this.pattern.split("/"),r=n.map(function(e){return":"==e[0]&&(e=t[e.slice(1)]),e},this);return t.tail&&t.tail.path&&(r.length>0&&"/"===t.tail.path.charAt(0)?r.push(t.tail.path.slice(1)):r.push(t.tail.path)),r.join("/")},__setMulti:function(e){for(var t in e)this._propertySetter(t,e[t]);void 0!==e.data&&(this._pathEffector("data",this.data),this._notifyChange("data")),void 0!==e.active&&(this._pathEffector("active",this.active),this._notifyChange("active")),void 0!==e.tail&&(this._pathEffector("tail",this.tail),this._notifyChange("tail"))}})}(),function(){"use strict";function e(e,t){var i="";if(e){var n=e.toLowerCase();" "===n||f.test(n)?i="space":p.test(n)?i="esc":1==n.length?t&&!c.test(n)||(i=n):i=d.test(n)?n.replace("arrow",""):"multiply"==n?"*":n}return i}function t(e){var t="";return e&&(e in a?t=a[e]:u.test(e)?(e=parseInt(e.replace("U+","0x"),16),t=String.fromCharCode(e).toLowerCase()):t=e.toLowerCase()),t}function i(e){var t="";return+e&&(t=65>e||e>90?112>e||e>123?48>e||e>57?96>e||e>105?l[e]:e-96+"":e-48+"":"f"+(e-112):String.fromCharCode(32+e)),t}function n(n,r){return n.key?e(n.key,r):n.detail&&n.detail.key?e(n.detail.key,r):t(n.keyIdentifier)||i(n.keyCode)||""}function r(e,t){return n(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function o(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var i=t.split(":"),n=i[0],r=i[1];return n in h?(e[h[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=r||"keydown"),e},{combo:e.split(":").shift()})}function s(e){return e.trim().split(" ").map(function(e){return o(e)})}var a={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},l={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},h={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},c=/[a-z0-9*]/,u=/U\+/,d=/^arrow/,f=/^space(bar)?/,p=/^escape$/;Polymer.IronA11yKeysBehavior={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var i=s(t),n=0;n<i.length;++n)if(r(i[n],e))return!0;return!1},_collectKeyBindings:function(){var e=this.behaviors.map(function(e){return e.keyBindings});return e.indexOf(this.keyBindings)===-1&&e.push(this.keyBindings),e},_prepKeyBindings:function(){this._keyBindings={},this._collectKeyBindings().forEach(function(e){for(var t in e)this._addKeyBinding(t,e[t])},this);for(var e in this._imperativeKeyBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in this._keyBindings)this._keyBindings[t].sort(function(e,t){var i=e[0].hasModifiers;return i===t[0].hasModifiers?0:i?-1:1})},_addKeyBinding:function(e,t){s(e).forEach(function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this._keyBindings[e.event].push([e,t])},this)},_resetKeyEventListeners:function(){this._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_listenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._keyBindings).forEach(function(e){var t=this._keyBindings[e],i=this._onKeyBindingEvent.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,i]),this.keyEventTarget.addEventListener(e,i)},this)},_unlistenKeyEventListeners:function(){for(var e,t,i,n;this._boundKeyHandlers.length;)e=this._boundKeyHandlers.pop(),t=e[0],i=e[1],n=e[2],t.removeEventListener(i,n)},_onKeyBindingEvent:function(e,t){if(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var i=0;i<e.length;i++){var n=e[i][0],o=e[i][1];if(r(n,t)&&(this._triggerKeyHandler(n,o,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,i){var n=Object.create(e);n.keyboardEvent=i;var r=new CustomEvent(e.event,{detail:n,cancelable:!0});this[t].call(this,r),r.defaultPrevented&&i.preventDefault()}}}(),Polymer.IronControlState={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:Number},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:function(e){if(e.target===this)this._setFocused("focus"===e.type);else if(!this.shadowRoot){var t=Polymer.dom(e).localTarget;this.isLightDescendant(t)||this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})}},_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false"),this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.tabIndex,this._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(this.tabIndex=this._oldTabIndex)},_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}},Polymer.IronButtonStateImpl={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_tapHandler"},observers:["_detectKeyboardFocus(focused)","_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this.pointerDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this.fire("change"))},_downHandler:function(){this._setPointerDown(!0),this._setPressed(!0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._setPointerDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.detail.keyboardEvent,i=Polymer.dom(t).localTarget;this.isLightDescendant(i)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandler:function(e){var t=e.detail.keyboardEvent,i=Polymer.dom(t).localTarget;this.isLightDescendant(i)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},_asyncClick:function(){this.async(function(){this.click()},1)},_pressedChanged:function(){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t){t&&t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:function(e){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false"):this.removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Polymer.IronButtonState=[Polymer.IronA11yKeysBehavior,Polymer.IronButtonStateImpl],function(){function e(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function t(e){this.element=e,this.color=window.getComputedStyle(e).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),Polymer.dom(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}var i={distance:function(e,t,i,n){var r=e-i,o=t-n;return Math.sqrt(r*r+o*o)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};e.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var n=i.distance(e,t,0,0),r=i.distance(e,t,this.width,0),o=i.distance(e,t,0,this.height),s=i.distance(e,t,this.width,this.height);return Math.max(n,r,o,s)}},t.MAX_RADIUS=300,t.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=i.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?i.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var e=this.containerMetrics.width*this.containerMetrics.width,i=this.containerMetrics.height*this.containerMetrics.height,n=1.1*Math.min(Math.sqrt(e+i),t.MAX_RADIUS)+5,r=1.1-.2*(n/t.MAX_RADIUS),o=this.mouseInteractionSeconds/r,s=n*(1-Math.pow(80,-o));return Math.abs(s)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){
var e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,t.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,t.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new e(this.element)},draw:function(){var e,t,i;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,i=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+i+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+i+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,n=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=i.now(),this.center?(this.xStart=t,this.yStart=n,this.slideDistance=i.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=n,this.slideDistance=i.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(){this.isMouseDown&&(this.mouseUpStart=i.now())},remove:function(){Polymer.dom(this.waveContainer.parentNode).removeChild(this.waveContainer)}},Polymer({is:"paper-ripple",behaviors:[Polymer.IronA11yKeysBehavior],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==this.parentNode.nodeType?this.keyEventTarget=Polymer.dom(this).getOwnerRoot().host:this.keyEventTarget=this.parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e<this.ripples.length;++e)if(!this.ripples[e].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null),this.async(function(){this.upAction()},1)},uiDownAction:function(e){this.noink||this.downAction(e)},downAction:function(e){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach(function(t){t.upAction(e)}),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor=null,this.fire("transitionend")},addRipple:function(){var e=new t(this);return Polymer.dom(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);0>t||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e<this.ripples.length;++e)t=this.ripples[e],t.draw(),this.$.background.style.opacity=t.outerOpacity,t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t);this.shouldKeepAnimating||0!==this.ripples.length?window.requestAnimationFrame(this._boundAnimate):this.onAnimationComplete()}},_onEnterKeydown:function(){this.uiDownAction(),this.async(this.uiUpAction,1)},_onSpaceKeydown:function(){this.uiDownAction()},_onSpaceKeyup:function(){this.uiUpAction()},_holdDownChanged:function(e,t){void 0!==t&&(e?this.downAction():this.upAction())}})}(),Polymer.PaperRippleBehavior={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(e){Polymer.IronButtonStateImpl._downHandler.call(this,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;if(t&&Polymer.dom(t).appendChild(this._ripple),e){var i=Polymer.dom(this._rippleContainer||this),n=Polymer.dom(e).rootTarget;i.deepContains(n)&&this._ripple.uiDownAction(e)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return!!this._ripple},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}},Polymer.PaperInkyFocusBehaviorImpl={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=Polymer.PaperRippleBehavior._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},Polymer.PaperInkyFocusBehavior=[Polymer.IronButtonState,Polymer.IronControlState,Polymer.PaperRippleBehavior,Polymer.PaperInkyFocusBehaviorImpl],Polymer({is:"paper-icon-button",hostAttributes:{role:"button",tabindex:"0"},behaviors:[Polymer.PaperInkyFocusBehavior],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(e,t){var i=this.getAttribute("aria-label");i&&t!=i||this.setAttribute("aria-label",e)}}),Polymer.IronRangeBehavior={properties:{value:{type:Number,value:0,notify:!0,reflectToAttribute:!0},min:{type:Number,value:0,notify:!0},max:{type:Number,value:100,notify:!0},step:{type:Number,value:1,notify:!0},ratio:{type:Number,value:0,readOnly:!0,notify:!0}},observers:["_update(value, min, max, step)"],_calcRatio:function(e){return(this._clampValue(e)-this.min)/(this.max-this.min)},_clampValue:function(e){return Math.min(this.max,Math.max(this.min,this._calcStep(e)))},_calcStep:function(e){if(e=parseFloat(e),!this.step)return e;var t=Math.round((e-this.min)/this.step);return this.step<1?t/(1/this.step)+this.min:t*this.step+this.min},_validateValue:function(){var e=this._clampValue(this.value);return this.value=this.oldValue=isNaN(e)?this.oldValue:e,this.value!==e},_update:function(){this._validateValue(),this._setRatio(100*this._calcRatio(this.value))}},Polymer({is:"paper-progress",behaviors:[Polymer.IronRangeBehavior],properties:{secondaryProgress:{type:Number,value:0},secondaryRatio:{type:Number,value:0,readOnly:!0},indeterminate:{type:Boolean,value:!1,observer:"_toggleIndeterminate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_disabledChanged"}},observers:["_progressChanged(secondaryProgress, value, min, max)"],hostAttributes:{role:"progressbar"},_toggleIndeterminate:function(e){this.toggleClass("indeterminate",e,this.$.primaryProgress)},_transformProgress:function(e,t){var i="scaleX("+t/100+")";e.style.transform=e.style.webkitTransform=i},_mainRatioChanged:function(e){this._transformProgress(this.$.primaryProgress,e)},_progressChanged:function(e,t,i,n){e=this._clampValue(e),t=this._clampValue(t);var r=100*this._calcRatio(e),o=100*this._calcRatio(t);this._setSecondaryRatio(r),this._transformProgress(this.$.secondaryProgress,r),this._transformProgress(this.$.primaryProgress,o),this.secondaryProgress=e,this.setAttribute("aria-valuenow",t),this.setAttribute("aria-valuemin",i),this.setAttribute("aria-valuemax",n)},_disabledChanged:function(e){this.setAttribute("aria-disabled",e?"true":"false")},_hideSecondaryProgress:function(e){return 0===e}}),Polymer.PaperButtonBehaviorImpl={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var e=1;this.disabled?e=0:this.active||this.pressed?e=4:this.receivedFocusFromKeyboard&&(e=3),this._setElevation(e)},_computeKeyboardClass:function(e){this.toggleClass("keyboard-focus",e)},_spaceKeyDownHandler:function(e){Polymer.IronButtonStateImpl._spaceKeyDownHandler.call(this,e),this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},_spaceKeyUpHandler:function(e){Polymer.IronButtonStateImpl._spaceKeyUpHandler.call(this,e),this.hasRipple()&&this._ripple.uiUpAction()}},Polymer.PaperButtonBehavior=[Polymer.IronButtonState,Polymer.IronControlState,Polymer.PaperRippleBehavior,Polymer.PaperButtonBehaviorImpl],Polymer({is:"paper-button",behaviors:[Polymer.PaperButtonBehavior],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Polymer.PaperButtonBehaviorImpl._calculateElevation.apply(this):this._setElevation(0)}}),function(){"use strict";Polymer.IronA11yAnnouncer=Polymer({is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},_text:{type:String,value:""}},created:function(){Polymer.IronA11yAnnouncer.instance||(Polymer.IronA11yAnnouncer.instance=this),document.body.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async(function(){this._text=e},100)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}}),Polymer.IronA11yAnnouncer.instance=null,Polymer.IronA11yAnnouncer.requestAvailability=function(){Polymer.IronA11yAnnouncer.instance||(Polymer.IronA11yAnnouncer.instance=document.createElement("iron-a11y-announcer")),document.body.appendChild(Polymer.IronA11yAnnouncer.instance)}}(),Polymer.IronFitBehavior={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth(){var e;return e=this.fitInto===window?this.fitInto.innerWidth:this.fitInto.getBoundingClientRect().width},get _fitHeight(){var e;return e=this.fitInto===window?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fitLeft(){var e;return e=this.fitInto===window?0:this.fitInto.getBoundingClientRect().left},get _fitTop(){var e;return e=this.fitInto===window?0:this.fitInto.getBoundingClientRect().top},get _defaultPositionTarget(){var e=Polymer.dom(this).parentNode;return e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e=e.host),e},get _localeHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign},attached:function(){void 0===this._isRTL&&(this._isRTL="rtl"==window.getComputedStyle(this).direction),this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):this.fit())},fit:function(){this.position(),this.constrain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var e=window.getComputedStyle(this),t=window.getComputedStyle(this.sizingTarget);this._fitInfo={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},positionedBy:{vertically:"auto"!==e.top?"top":"auto"!==e.bottom?"bottom":null,horizontally:"auto"!==e.left?"left":"auto"!==e.right?"right":null},sizedBy:{height:"none"!==t.maxHeight,width:"none"!==t.maxWidth,minWidth:parseInt(t.minWidth,10)||0,minHeight:parseInt(t.minHeight,10)||0},margin:{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}}}},resetFit:function(){var e=this._fitInfo||{};for(var t in e.sizerInlineStyle)this.sizingTarget.style[t]=e.sizerInlineStyle[t];for(var t in e.inlineStyle)this.style[t]=e.inlineStyle[t];this._fitInfo=null},refit:function(){var e=this.sizingTarget.scrollLeft,t=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),this.sizingTarget.scrollLeft=e,this.sizingTarget.scrollTop=t},position:function(){if(this.horizontalAlign||this.verticalAlign){this._discoverInfo(),this.style.position="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0px",this.style.top="0px";var e=this.getBoundingClientRect(),t=this.__getNormalizedRect(this.positionTarget),i=this.__getNormalizedRect(this.fitInto),n=this._fitInfo.margin,r={width:e.width+n.left+n.right,height:e.height+n.top+n.bottom},o=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,r,t,i),s=o.left+n.left,a=o.top+n.top,l=Math.min(i.right-n.right,s+e.width),h=Math.min(i.bottom-n.bottom,a+e.height);s=Math.max(i.left+n.left,Math.min(s,l-this._fitInfo.sizedBy.minWidth)),a=Math.max(i.top+n.top,Math.min(a,h-this._fitInfo.sizedBy.minHeight)),this.sizingTarget.style.maxWidth=Math.max(l-s,this._fitInfo.sizedBy.minWidth)+"px",this.sizingTarget.style.maxHeight=Math.max(h-a,this._fitInfo.sizedBy.minHeight)+"px",this.style.left=s-e.left+"px",this.style.top=a-e.top+"px"}},constrain:function(){if(!this.horizontalAlign&&!this.verticalAlign){this._discoverInfo();var e=this._fitInfo;e.positionedBy.vertically||(this.style.position="fixed",this.style.top="0px"),e.positionedBy.horizontally||(this.style.position="fixed",this.style.left="0px"),this.sizingTarget.style.boxSizing="border-box";var t=this.getBoundingClientRect();e.sizedBy.height||this.__sizeDimension(t,e.positionedBy.vertically,"top","bottom","Height"),e.sizedBy.width||this.__sizeDimension(t,e.positionedBy.horizontally,"left","right","Width")}},_sizeDimension:function(e,t,i,n,r){this.__sizeDimension(e,t,i,n,r)},__sizeDimension:function(e,t,i,n,r){var o=this._fitInfo,s=this.__getNormalizedRect(this.fitInto),a="Width"===r?s.width:s.height,l=t===n,h=l?a-e[n]:e[i],c=o.margin[l?i:n],u="offset"+r,d=this[u]-this.sizingTarget[u];this.sizingTarget.style["max"+r]=a-c-h-d+"px"},center:function(){if(!this.horizontalAlign&&!this.verticalAlign){this._discoverInfo();var e=this._fitInfo.positionedBy;if(!e.vertically||!e.horizontally){this.style.position="fixed",e.vertically||(this.style.top="0px"),e.horizontally||(this.style.left="0px");var t=this.getBoundingClientRect(),i=this.__getNormalizedRect(this.fitInto);if(!e.vertically){var n=i.top-t.top+(i.height-t.height)/2;this.style.top=n+"px"}if(!e.horizontally){var r=i.left-t.left+(i.width-t.width)/2;this.style.left=r+"px"}}}},__getNormalizedRect:function(e){return e===document.documentElement||e===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect()},__getCroppedArea:function(e,t,i){var n=Math.min(0,e.top)+Math.min(0,i.bottom-(e.top+t.height)),r=Math.min(0,e.left)+Math.min(0,i.right-(e.left+t.width));return Math.abs(n)*t.width+Math.abs(r)*t.height},__getPosition:function(e,t,i,n,r){var o=[{verticalAlign:"top",horizontalAlign:"left",top:n.top+this.verticalOffset,left:n.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:n.top+this.verticalOffset,left:n.right-i.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:n.bottom-i.height-this.verticalOffset,left:n.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:n.bottom-i.height-this.verticalOffset,left:n.right-i.width-this.horizontalOffset}];if(this.noOverlap){for(var s=0,a=o.length;a>s;s++){var l={};for(var h in o[s])l[h]=o[s][h];o.push(l)}o[0].top=o[1].top+=n.height,o[2].top=o[3].top-=n.height,o[4].left=o[6].left+=n.width,o[5].left=o[7].left-=n.width}t="auto"===t?null:t,e="auto"===e?null:e;for(var c,s=0;s<o.length;s++){var u=o[s];if(!this.dynamicAlign&&!this.noOverlap&&u.verticalAlign===t&&u.horizontalAlign===e){c=u;break}var d=!(t&&u.verticalAlign!==t||e&&u.horizontalAlign!==e);if(this.dynamicAlign||d){c=c||u,u.croppedArea=this.__getCroppedArea(u,i,r);var f=u.croppedArea-c.croppedArea;if((0>f||0===f&&d)&&(c=u),0===c.croppedArea&&d)break}}return c}},function(){"use strict";Polymer({is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&Polymer.dom(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||Polymer.dom(this.parentNode).removeChild(this)},_onTransitionend:function(e){e&&e.target===this&&this.complete()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComputedStyle(this);"0s"!==t.transitionDuration&&0!=t.opacity||this.complete()}this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.opened)}.bind(this)))}})}(),Polymer.IronOverlayManagerClass=function(){this._overlays=[],this._minimumZ=101,this._backdropElement=null,Polymer.Gestures.add(document,"tap",null),document.addEventListener("tap",this._onCaptureClick.bind(this),!0),document.addEventListener("focus",this._onCaptureFocus.bind(this),!0),document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)},Polymer.IronOverlayManagerClass.prototype={constructor:Polymer.IronOverlayManagerClass,get backdropElement(){return this._backdropElement||(this._backdropElement=document.createElement("iron-overlay-backdrop")),this._backdropElement},get deepActiveElement(){for(var e=document.activeElement||document.body;e.root&&Polymer.dom(e.root).activeElement;)e=Polymer.dom(e.root).activeElement;return e},_bringOverlayAtIndexToFront:function(e){var t=this._overlays[e];if(t){var i=this._overlays.length-1,n=this._overlays[i];if(n&&this._shouldBeBehindOverlay(t,n)&&i--,i>e){var r=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(t)>r||this._applyOverlayZ(t,r);i>e;)this._overlays[e]=this._overlays[e+1],e++;this._overlays[i]=t}}},addOrRemoveOverlay:function(e){e.opened?this.addOverlay(e):this.removeOverlay(e)},addOverlay:function(e){var t=this._overlays.indexOf(e);if(t>=0)return this._bringOverlayAtIndexToFront(t),void this.trackBackdrop();var i=this._overlays.length,n=this._overlays[i-1],r=Math.max(this._getZ(n),this._minimumZ),o=this._getZ(e);if(n&&this._shouldBeBehindOverlay(e,n)){this._applyOverlayZ(n,r),i--;var s=this._overlays[i-1];r=Math.max(this._getZ(s),this._minimumZ)}o>r||this._applyOverlayZ(e,r),this._overlays.splice(i,0,e),this.trackBackdrop()},removeOverlay:function(e){var t=this._overlays.indexOf(e);t!==-1&&(this._overlays.splice(t,1),this.trackBackdrop())},currentOverlay:function(){var e=this._overlays.length-1;return this._overlays[e]},currentOverlayZ:function(){return this._getZ(this.currentOverlay())},ensureMinimumZ:function(e){this._minimumZ=Math.max(this._minimumZ,e)},focusOverlay:function(){var e=this.currentOverlay();e&&e._applyFocus()},trackBackdrop:function(){var e=this._overlayWithBackdrop();(e||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e)},getBackdrops:function(){for(var e=[],t=0;t<this._overlays.length;t++)this._overlays[t].withBackdrop&&e.push(this._overlays[t]);return e},backdropZ:function(){return this._getZ(this._overlayWithBackdrop())-1},_overlayWithBackdrop:function(){for(var e=0;e<this._overlays.length;e++)if(this._overlays[e].withBackdrop)return this._overlays[e]},_getZ:function(e){var t=this._minimumZ;if(e){var i=+(e.style.zIndex||window.getComputedStyle(e).zIndex);i===i&&(t=i)}return t},_setZ:function(e,t){e.style.zIndex=t},_applyOverlayZ:function(e,t){this._setZ(e,t+2)},_overlayInPath:function(e){e=e||[];for(var t=0;t<e.length;t++)if(e[t]._manager===this)return e[t]},_onCaptureClick:function(e){var t=this.currentOverlay();t&&this._overlayInPath(Polymer.dom(e).path)!==t&&t._onCaptureClick(e)},_onCaptureFocus:function(e){var t=this.currentOverlay();t&&t._onCaptureFocus(e)},_onCaptureKeyDown:function(e){var t=this.currentOverlay();t&&(Polymer.IronA11yKeysBehavior.keyboardEventMatchesKeys(e,"esc")?t._onCaptureEsc(e):Polymer.IronA11yKeysBehavior.keyboardEventMatchesKeys(e,"tab")&&t._onCaptureTab(e))},_shouldBeBehindOverlay:function(e,t){return!e.alwaysOnTop&&t.alwaysOnTop}},Polymer.IronOverlayManager=new Polymer.IronOverlayManagerClass,function(){"use strict";var e=Element.prototype,t=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;Polymer.IronFocusablesHelper={getTabbableNodes:function(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t},isFocusable:function(e){return t.call(e,"input, select, textarea, button, object")?t.call(e,":not([disabled])"):t.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")},isTabbable:function(e){return this.isFocusable(e)&&t.call(e,':not([tabindex="-1"])')&&this._isVisible(e)},_normalizedTabIndex:function(e){return this.isFocusable(e)?+(e.getAttribute("tabindex")||0):-1},_collectTabbableNodes:function(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var i=e,n=this._normalizedTabIndex(i),r=n>0;0>n||t.push(i);var o;o="content"===i.localName?Polymer.dom(i).getDistributedNodes():Polymer.dom(i.root||i).children;for(var s=0;s<o.length;s++){var a=this._collectTabbableNodes(o[s],t);r=r||a}return r},_isVisible:function(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&(t=window.getComputedStyle(e),"hidden"!==t.visibility&&"none"!==t.display)},_sortByTabIndex:function(e){var t=e.length;if(2>t)return e;var i=Math.ceil(t/2),n=this._sortByTabIndex(e.slice(0,i)),r=this._sortByTabIndex(e.slice(i));return this._mergeSortByTabIndex(n,r)},_mergeSortByTabIndex:function(e,t){for(var i=[];e.length>0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)},_hasLowerTabOrder:function(e,t){var i=Math.max(e.tabIndex,0),n=Math.max(t.tabIndex,0);return 0===i||0===n?n>i:i>n}}}(),function(){"use strict";Polymer.IronOverlayBehaviorImpl={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},alwaysOnTop:{type:Boolean},_manager:{type:Object,value:Polymer.IronOverlayManager},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},get backdropElement(){return this._manager.backdropElement},get _focusNode(){return this._focusedChild||Polymer.dom(this).querySelector("[autofocus]")||this},get _focusableNodes(){return Polymer.IronFocusablesHelper.getTabbableNodes(this)},ready:function(){this.__isAnimating=!1,this.__shouldRemoveTabIndex=!1,this.__firstFocusableNode=this.__lastFocusableNode=null,this.__raf=null,this.__restoreFocusNode=null,this._ensureSetup()},attached:function(){this.opened&&this._openedChanged(this.opened),this._observer=Polymer.dom(this).observeNodes(this._onNodesChange)},detached:function(){Polymer.dom(this).unobserveNodes(this._observer),this._observer=null,this.__raf&&(window.cancelAnimationFrame(this.__raf),this.__raf=null),this._manager.removeOverlay(this)},toggle:function(){this._setCanceled(!1),this.opened=!this.opened},open:function(){this._setCanceled(!1),this.opened=!0},close:function(){this._setCanceled(!1),this.opened=!1},cancel:function(e){this.fire("iron-overlay-canceled",e,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},_ensureSetup:function(){this._overlaySetup||(this._overlaySetup=!0,this.style.outline="none",this.style.display="none")},_openedChanged:function(e){e?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true"),this.isAttached&&(this.__isAnimating=!0,this.__onNextAnimationFrame(this.__openedChanged))},_canceledChanged:function(){this.closingReason=this.closingReason||{},this.closingReason.canceled=this.canceled},_withBackdropChanged:function(){this.withBackdrop&&!this.hasAttribute("tabindex")?(this.setAttribute("tabindex","-1"),this.__shouldRemoveTabIndex=!0):this.__shouldRemoveTabIndex&&(this.removeAttribute("tabindex"),this.__shouldRemoveTabIndex=!1),this.opened&&this.isAttached&&this._manager.trackBackdrop()},_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement,this._preparePositioning(),this.refit(),this._finishPositioning(),this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},_renderOpened:function(){this._finishRenderOpened()},_renderClosed:function(){this._finishRenderClosed()},_finishRenderOpened:function(){this.notifyResize(),this.__isAnimating=!1,this.fire("iron-overlay-opened")},_finishRenderClosed:function(){this.style.display="none",this.style.zIndex="",this.notifyResize(),this.__isAnimating=!1,this.fire("iron-overlay-closed",this.closingReason)},_preparePositioning:function(){this.style.transition=this.style.webkitTransition="none",this.style.transform=this.style.webkitTransform="none",this.style.display=""},_finishPositioning:function(){this.style.display="none",this.scrollTop=this.scrollTop,this.style.transition=this.style.webkitTransition="",this.style.transform=this.style.webkitTransform="",this.style.display="",this.scrollTop=this.scrollTop},_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{this._focusNode.blur(),this._focusedChild=null,this.restoreFocusOnClose&&this.__restoreFocusNode&&this.__restoreFocusNode.focus(),this.__restoreFocusNode=null;var e=this._manager.currentOverlay();e&&this!==e&&e._applyFocus()}},_onCaptureClick:function(e){this.noCancelOnOutsideClick||this.cancel(e)},_onCaptureFocus:function(e){if(this.withBackdrop){var t=Polymer.dom(e).path;t.indexOf(this)===-1?(e.stopPropagation(),this._applyFocus()):this._focusedChild=t[0]}},_onCaptureEsc:function(e){this.noCancelOnEscKey||this.cancel(e)},_onCaptureTab:function(e){if(this.withBackdrop){this.__ensureFirstLastFocusables();var t=e.shiftKey,i=t?this.__firstFocusableNode:this.__lastFocusableNode,n=t?this.__lastFocusableNode:this.__firstFocusableNode,r=!1;if(i===n)r=!0;else{var o=this._manager.deepActiveElement;r=o===i||o===this}r&&(e.preventDefault(),this._focusedChild=n,this._applyFocus())}},_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__onNextAnimationFrame(this.refit)},_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},__ensureFirstLastFocusables:function(){if(!this.__firstFocusableNode||!this.__lastFocusableNode){var e=this._focusableNodes;this.__firstFocusableNode=e[0],this.__lastFocusableNode=e[e.length-1]}},__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},__onNextAnimationFrame:function(e){this.__raf&&window.cancelAnimationFrame(this.__raf);var t=this;this.__raf=window.requestAnimationFrame(function(){t.__raf=null,e.call(t)})}},Polymer.IronOverlayBehavior=[Polymer.IronFitBehavior,Polymer.IronResizableBehavior,Polymer.IronOverlayBehaviorImpl]}(),function(){var e=null;Polymer({is:"paper-toast",behaviors:[Polymer.IronOverlayBehavior],properties:{fitInto:{type:Object,value:window,observer:"_onFitIntoChanged"},horizontalAlign:{type:String,value:"left"},verticalAlign:{type:String,value:"bottom"},duration:{type:Number,value:3e3},text:{type:String,value:""},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0}},listeners:{transitionend:"__onTransitionEnd"},get visible(){return Polymer.Base._warn("`visible` is deprecated, use `opened` instead"),this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==1/0},created:function(){this._autoClose=null,Polymer.IronA11yAnnouncer.requestAvailability()},show:function(e){"string"==typeof e&&(e={text:e});for(var t in e)0===t.indexOf("_")?Polymer.Base._warn('The property "'+t+'" is private and was not set.'):t in this?this[t]=e[t]:Polymer.Base._warn('The property "'+t+'" is not valid.');this.open()},hide:function(){this.close()},__onTransitionEnd:function(e){e&&e.target===this&&"opacity"===e.propertyName&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},_openedChanged:function(){null!==this._autoClose&&(this.cancelAsync(this._autoClose),this._autoClose=null),this.opened?(e&&e!==this&&e.close(),e=this,this.fire("iron-announce",{text:this.text}),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):e===this&&(e=null),Polymer.IronOverlayBehaviorImpl._openedChanged.apply(this,arguments)},_renderOpened:function(){this.classList.add("paper-toast-open")},_renderClosed:function(){this.classList.remove("paper-toast-open")},_onFitIntoChanged:function(e){this.positionTarget=e}})}(),Polymer.IronFormElementBehavior={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1},_parentForm:{type:Object}},attached:function(){this.fire("iron-form-element-register")},detached:function(){this._parentForm&&this._parentForm.fire("iron-form-element-unregister",{target:this})}},Polymer.IronValidatableBehaviorMeta=null,Polymer.IronValidatableBehavior={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1},_validatorMeta:{type:Object},validatorType:{type:String,value:"validator"},_validator:{type:Object,computed:"__computeValidator(validator)"}},observers:["_invalidChanged(invalid)"],registered:function(){Polymer.IronValidatableBehaviorMeta=new Polymer.IronMeta({type:"validator"})},_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid");
},hasValidator:function(){return null!=this._validator},validate:function(e){return this.invalid=!this._getValidity(e),!this.invalid},_getValidity:function(e){return!this.hasValidator()||this._validator.validate(e)},__computeValidator:function(){return Polymer.IronValidatableBehaviorMeta&&Polymer.IronValidatableBehaviorMeta.byKey(this.validator)}},Polymer({is:"iron-input","extends":"input",behaviors:[Polymer.IronValidatableBehavior],properties:{bindValue:{observer:"_bindValueChanged",type:String},preventInvalidInput:{type:Boolean},allowedPattern:{type:String,observer:"_allowedPatternChanged"},_previousValidInput:{type:String,value:""},_patternAlreadyChecked:{type:Boolean,value:!1}},listeners:{input:"_onInput",keypress:"_onKeypress"},registered:function(){this._canDispatchEventOnDisabled()||(this._origDispatchEvent=this.dispatchEvent,this.dispatchEvent=this._dispatchEventFirefoxIE)},created:function(){Polymer.IronA11yAnnouncer.requestAvailability()},_canDispatchEventOnDisabled:function(){var e=document.createElement("input"),t=!1;e.disabled=!0,e.addEventListener("feature-check-dispatch-event",function(){t=!0});try{e.dispatchEvent(new Event("feature-check-dispatch-event"))}catch(i){}return t},_dispatchEventFirefoxIE:function(){var e=this.disabled;this.disabled=!1,this._origDispatchEvent.apply(this,arguments),this.disabled=e},get _patternRegExp(){var e;if(this.allowedPattern)e=RegExp(this.allowedPattern);else switch(this.type){case"number":e=/[0-9.,e-]/}return e},ready:function(){this.bindValue=this.value},_bindValueChanged:function(){this.value!==this.bindValue&&(this.value=this.bindValue||0===this.bindValue||this.bindValue===!1?this.bindValue:""),this.fire("bind-value-changed",{value:this.bindValue})},_allowedPatternChanged:function(){this.preventInvalidInput=!!this.allowedPattern},_onInput:function(){this.preventInvalidInput&&!this._patternAlreadyChecked&&(this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.value=this._previousValidInput)),this.bindValue=this.value,this._previousValidInput=this.value,this._patternAlreadyChecked=!1},_isPrintable:function(e){var t=8==e.keyCode||9==e.keyCode||13==e.keyCode||27==e.keyCode,i=19==e.keyCode||20==e.keyCode||45==e.keyCode||46==e.keyCode||144==e.keyCode||145==e.keyCode||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(t||0==e.charCode&&i)},_onKeypress:function(e){if(this.preventInvalidInput||"number"===this.type){var t=this._patternRegExp;if(t&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var i=String.fromCharCode(e.charCode);this._isPrintable(e)&&!t.test(i)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+i+" not entered."))}}},_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var t=0;t<this.value.length;t++)if(!e.test(this.value[t]))return!1;return!0},validate:function(){var e=this.checkValidity();return e&&(this.required&&""===this.value?e=!1:this.hasValidator()&&(e=Polymer.IronValidatableBehavior.validate.call(this,this.value))),this.invalid=!e,this.fire("iron-input-validate"),e},_announceInvalidCharacter:function(e){this.fire("iron-announce",{text:e})}}),Polymer.PaperInputHelper={},Polymer.PaperInputHelper.NextLabelID=1,Polymer.PaperInputHelper.NextAddonID=1,Polymer.PaperInputBehaviorImpl={properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},preventInvalidInput:{type:Boolean},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){return this.$.input},get _focusableElement(){return this.inputElement},registered:function(){this._typesThatHaveText=["date","datetime","datetime-local","month","time","week","file"]},attached:function(){this._updateAriaLabelledBy(),this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(e,t){return e=e?e+" "+t:t},_onAddonAttached:function(e){var t=e.path?e.path[0]:e.target;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var i="paper-input-add-on-"+Polymer.PaperInputHelper.NextAddonID++;t.id=i,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,i)}},validate:function(){return this.inputElement.validate()},_focusBlurHandler:function(e){Polymer.IronControlState._focusBlurHandler.call(this,e),this.focused&&!this._shiftTabPressed&&this._focusableElement.focus()},_onShiftTabDown:function(){var e=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async(function(){this.setAttribute("tabindex",e),this._shiftTabPressed=!1},1)},_handleAutoValidate:function(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(e){try{var t=this.inputElement.selectionStart;this.value=e,this.inputElement.selectionStart=t,this.inputElement.selectionEnd=t}catch(i){this.value=e}},_computeAlwaysFloatLabel:function(e,t){return t||e},_updateAriaLabelledBy:function(){var e=Polymer.dom(this.root).querySelector("label");if(!e)return void(this._ariaLabelledBy="");var t;e.id?t=e.id:(t="paper-input-label-"+Polymer.PaperInputHelper.NextLabelID++,e.id=t),this._ariaLabelledBy=t},_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement||this._focusableElement.focus()}}},Polymer.PaperInputBehavior=[Polymer.IronControlState,Polymer.IronA11yKeysBehavior,Polymer.PaperInputBehaviorImpl],Polymer.PaperInputAddonBehavior={hostAttributes:{"add-on":""},attached:function(){this.fire("addon-attached")},update:function(){}},Polymer({is:"paper-input-char-counter",behaviors:[Polymer.PaperInputAddonBehavior],properties:{_charCounterStr:{type:String,value:"0"}},update:function(e){if(e.inputElement){e.value=e.value||"";var t=""+(""+e.value).length;e.inputElement.hasAttribute("maxlength")&&(t+="/"+e.inputElement.getAttribute("maxlength")),this._charCounterStr=t}}}),Polymer({is:"paper-input-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,textarea,.paper-input-input"},_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return Polymer.CaseMap.dashToCamelCase(this.attrForValue)},get _inputElement(){return Polymer.dom(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this._addons||(this._addons=[]),this.addEventListener("focus",this._boundOnFocus,!0),this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged):this.addEventListener("input",this._onInput),""!=this._inputElementValue?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement)},_onAddonAttached:function(e){this._addons||(this._addons=[]);var t=e.target;this._addons.indexOf(t)===-1&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function(){this._setFocused(!1),this._handleValueAndAutoValidate(this._inputElement)},_onInput:function(e){this._handleValueAndAutoValidate(e.target)},_onValueChanged:function(e){this._handleValueAndAutoValidate(e.target)},_handleValue:function(e){var t=this._inputElementValue;t||0===t||"number"===e.type&&!e.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1,this.updateAddons({inputElement:e,value:t,invalid:this.invalid})},_handleValueAndAutoValidate:function(e){if(this.autoValidate){var t;t=e.validate?e.validate(this._inputElementValue):e.checkValidity(),this.invalid=!t}this._handleValue(e)},_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},updateAddons:function(e){for(var t,i=0;t=this._addons[i];i++)t.update(e)},_computeInputContentClass:function(e,t,i,n,r){var o="input-content";if(e)r&&(o+=" label-is-hidden");else{var s=this.querySelector("label");t||r?(o+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?o+=" is-invalid":i&&(o+=" label-is-highlighted")):s&&(this.$.labelAndInputContainer.style.position="relative")}return o},_computeUnderlineClass:function(e,t){var i="underline";return t?i+=" is-invalid":e&&(i+=" is-highlighted"),i},_computeAddOnContentClass:function(e,t){var i="add-on-content";return t?i+=" is-invalid":e&&(i+=" is-highlighted"),i}}),Polymer({is:"paper-input-error",behaviors:[Polymer.PaperInputAddonBehavior],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}}),Polymer({is:"paper-input",behaviors:[Polymer.IronFormElementBehavior,Polymer.PaperInputBehavior]}),Polymer.IronMultiSelectableBehaviorImpl={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0},selectedItems:{type:Array,readOnly:!0,notify:!0}},observers:["_updateSelected(selectedValues.splices)"],select:function(e){this.multi?this.selectedValues?this._toggleSelected(e):this.selectedValues=[e]:this.selected=e},multiChanged:function(e){this._selection.multi=e},get _shouldUpdateSelection(){return null!=this.selected||null!=this.selectedValues&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this._shouldUpdateSelection&&(this.selectedValues=this.selectedItems.map(function(e){return this._indexToValue(this.indexOf(e))},this).filter(function(e){return null!=e},this)):Polymer.IronSelectableBehavior._updateAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},_selectMulti:function(e){if(e){var t=this._valuesToItems(e);this._selection.clear(t);for(var i=0;i<t.length;i++)this._selection.setItemSelected(t[i],!0);this.fallbackSelection&&this.items.length&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&(this.selectedValues=[this.fallbackSelection])}else this._selection.clear()},_selectionChange:function(){var e=this._selection.get();this.multi?this._setSelectedItems(e):(this._setSelectedItems([e]),this._setSelectedItem(e))},_toggleSelected:function(e){var t=this.selectedValues.indexOf(e);0>t?this.push("selectedValues",e):this.splice("selectedValues",t,1)},_valuesToItems:function(e){return null==e?null:e.map(function(e){return this._valueToItem(e)},this)}},Polymer.IronMultiSelectableBehavior=[Polymer.IronSelectableBehavior,Polymer.IronMultiSelectableBehaviorImpl],Polymer.IronMenuBehaviorImpl={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String}},_SEARCH_RESET_TIMEOUT_MS:1e3,hostAttributes:{role:"menu",tabindex:"0"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},select:function(e){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var t=this._valueToItem(e);t&&t.hasAttribute("disabled")||(this._setFocusedItem(t),Polymer.IronMultiSelectableBehaviorImpl.select.apply(this,arguments))},_resetTabindices:function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(t){t.setAttribute("tabindex",t===e?"0":"-1")},this)},_updateMultiselectable:function(e){e?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},_focusWithKeyboardEvent:function(e){this.cancelDebouncer("_clearSearchText");var t=this._searchText||"";t+=(e.key&&1==e.key.length?e.key:String.fromCharCode(e.keyCode)).toLocaleLowerCase();for(var i,n=t.length,r=0;i=this.items[r];r++)if(!i.hasAttribute("disabled")){var o=this.attrForItemTitle||"textContent",s=(i[o]||i.getAttribute(o)||"").trim();if(s.length>=n&&s.slice(0,n).toLocaleLowerCase()==t){this._setFocusedItem(i);break}}this._searchText=t,this.debounce("_clearSearchText",this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)},_clearSearchText:function(){this._searchText=""},_focusPrevious:function(){for(var e=this.items.length,t=+this.indexOf(this.focusedItem),i=1;e+1>i;i++){var n=this.items[(t-i+e)%e];if(!n.hasAttribute("disabled")){var r=Polymer.dom(n).getOwnerRoot()||document;if(this._setFocusedItem(n),Polymer.dom(r).activeElement==n)return}}},_focusNext:function(){for(var e=this.items.length,t=+this.indexOf(this.focusedItem),i=1;e+1>i;i++){var n=this.items[(t+i)%e];if(!n.hasAttribute("disabled")){var r=Polymer.dom(n).getOwnerRoot()||document;if(this._setFocusedItem(n),Polymer.dom(r).activeElement==n)return}}},_applySelection:function(e,t){t?e.setAttribute("aria-selected","true"):e.removeAttribute("aria-selected"),Polymer.IronSelectableBehavior._applySelection.apply(this,arguments)},_focusedItemChanged:function(e,t){t&&t.setAttribute("tabindex","-1"),e&&(e.setAttribute("tabindex","0"),e.focus())},_onIronItemsChanged:function(e){e.detail.addedNodes.length&&this._resetTabindices()},_onShiftTabDown:function(){var e=this.getAttribute("tabindex");Polymer.IronMenuBehaviorImpl._shiftTabPressed=!0,this._setFocusedItem(null),this.setAttribute("tabindex","-1"),this.async(function(){this.setAttribute("tabindex",e),Polymer.IronMenuBehaviorImpl._shiftTabPressed=!1},1)},_onFocus:function(e){if(!Polymer.IronMenuBehaviorImpl._shiftTabPressed){var t=Polymer.dom(e).rootTarget;(t===this||void 0===t.tabIndex||this.isLightDescendant(t))&&(this._defaultFocusAsync=this.async(function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null),e?this._setFocusedItem(e):this.items[0]&&this._focusNext()}))}},_onUpKey:function(e){this._focusPrevious(),e.detail.keyboardEvent.preventDefault()},_onDownKey:function(e){this._focusNext(),e.detail.keyboardEvent.preventDefault()},_onEscKey:function(){this.focusedItem.blur()},_onKeydown:function(e){this.keyboardEventMatchesKeys(e,"up down esc")||this._focusWithKeyboardEvent(e),e.stopPropagation()},_activateHandler:function(e){Polymer.IronSelectableBehavior._activateHandler.call(this,e),e.stopPropagation()}},Polymer.IronMenuBehaviorImpl._shiftTabPressed=!1,Polymer.IronMenuBehavior=[Polymer.IronMultiSelectableBehavior,Polymer.IronA11yKeysBehavior,Polymer.IronMenuBehaviorImpl],Polymer.IronMenubarBehaviorImpl={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(e){this.focusedItem.click(),e.detail.keyboardEvent.preventDefault()},_onDownKey:function(e){this.focusedItem.click(),e.detail.keyboardEvent.preventDefault()},get _isRTL(){return"rtl"===window.getComputedStyle(this).direction},_onLeftKey:function(e){this._isRTL?this._focusNext():this._focusPrevious(),e.detail.keyboardEvent.preventDefault()},_onRightKey:function(e){this._isRTL?this._focusPrevious():this._focusNext(),e.detail.keyboardEvent.preventDefault()},_onKeydown:function(e){this.keyboardEventMatchesKeys(e,"up down left right esc")||this._focusWithKeyboardEvent(e)}},Polymer.IronMenubarBehavior=[Polymer.IronMenuBehavior,Polymer.IronMenubarBehaviorImpl],Polymer.IronCheckedElementBehaviorImpl={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},_getValidity:function(){return this.disabled||!this.required||this.checked},_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},_checkedChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},Polymer.IronCheckedElementBehavior=[Polymer.IronFormElementBehavior,Polymer.IronValidatableBehavior,Polymer.IronCheckedElementBehaviorImpl],Polymer.PaperCheckedElementBehaviorImpl={_checkedChanged:function(){Polymer.IronCheckedElementBehaviorImpl._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){Polymer.PaperRippleBehavior._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}},Polymer.PaperCheckedElementBehavior=[Polymer.PaperInkyFocusBehavior,Polymer.IronCheckedElementBehavior,Polymer.PaperCheckedElementBehaviorImpl],Polymer({is:"paper-radio-button",behaviors:[Polymer.PaperCheckedElementBehavior],hostAttributes:{role:"radio","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},ready:function(){this._rippleContainer=this.$.radioContainer},attached:function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()){var e=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),t=Math.floor(3*e);t%2!==e%2&&t++,this.customStyle["--paper-radio-button-ink-size"]=t+"px",this.updateStyles()}}}),Polymer({is:"paper-radio-group",behaviors:[Polymer.IronMenubarBehavior],hostAttributes:{role:"radiogroup",tabindex:0},properties:{attrForSelected:{type:String,value:"name"},selectedAttribute:{type:String,value:"checked"},selectable:{type:String,value:"paper-radio-button"},allowEmptySelection:{type:Boolean,value:!1}},select:function(e){var t=this._valueToItem(e);if(!t||!t.hasAttribute("disabled")){if(this.selected){var i=this._valueToItem(this.selected);if(this.selected==e){if(!this.allowEmptySelection)return void(i&&(i.checked=!0));e=""}i&&(i.checked=!1)}Polymer.IronSelectableBehavior.select.apply(this,[e]),this.fire("paper-radio-group-changed")}},_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},_onUpKey:function(e){this._focusPrevious(),e.preventDefault(),this._activateFocusedItem()},_onDownKey:function(e){this._focusNext(),e.preventDefault(),this._activateFocusedItem()},_onLeftKey:function(){Polymer.IronMenubarBehaviorImpl._onLeftKey.apply(this,arguments),this._activateFocusedItem()},_onRightKey:function(){Polymer.IronMenubarBehaviorImpl._onRightKey.apply(this,arguments),this._activateFocusedItem()}}),Polymer.PaperDialogBehaviorImpl={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1}},observers:["_modalChanged(modal, _readied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop},_modalChanged:function(e,t){t&&(e?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.noCancelOnOutsideClick=!0,this.noCancelOnEscKey=!0,this.withBackdrop=!0):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&this.__prevWithBackdrop))},_updateClosingReasonConfirmed:function(e){this.closingReason=this.closingReason||{},this.closingReason.confirmed=e},_onDialogClick:function(e){for(var t=Polymer.dom(e).path,i=0;i<t.indexOf(this);i++){var n=t[i];if(n.hasAttribute&&(n.hasAttribute("dialog-dismiss")||n.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(n.hasAttribute("dialog-confirm")),this.close(),e.stopPropagation();break}}}},Polymer.PaperDialogBehavior=[Polymer.IronOverlayBehavior,Polymer.PaperDialogBehaviorImpl],function(){Polymer({is:"paper-dialog",behaviors:[Polymer.PaperDialogBehavior,Polymer.NeonAnimationRunnerBehavior],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation(),this.playAnimation("entry")},_renderClosed:function(){this.cancelAnimation(),this.playAnimation("exit")},_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}})}(),Polymer({is:"paper-dialog-scrollable",properties:{dialogElement:{type:Object}},listeners:{"scrollable.scroll":"_scroll"},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget()},attached:function(){this.classList.add("no-padding"),this._ensureTarget(),requestAnimationFrame(this._scroll.bind(this))},_scroll:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0),this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight),this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},_ensureTarget:function(){this.dialogElement=this.dialogElement||Polymer.dom(this).parentNode,this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Polymer.PaperDialogBehaviorImpl)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}}),Polymer({is:"paper-checkbox",behaviors:[Polymer.PaperCheckedElementBehavior],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=parseFloat(this.getComputedStyleValue("--calculated-paper-checkbox-size").trim()),t=Math.floor(8/3*e);t%2!==e%2&&t++,this.customStyle["--paper-checkbox-ink-size"]=t+"px",this.updateStyles()}},_computeCheckboxClass:function(e,t){var i="";return e&&(i+="checked "),t&&(i+="invalid"),i},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,Polymer.PaperInkyFocusBehaviorImpl._createRipple.call(this)}});var queries={},fjContentLoading=document.getElementById("fj-content-loading"),fjLoaderCircular=document.getElementById("fj-loader-circular"),fjRetryLoader=document.getElementById("fj-retry-loader"),stdEasing="s cubic-bezier(.4, 0, .2, 1)",outEasing="s cubic-bezier(.4, 0, 1, 1)",inEasing="s cubic-bezier(0, 0, .2, 1)",querystring="";!function(e,t,i,n,r,o,s){e.GoogleAnalyticsObject=r,e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},e[r].l=1*new Date,o=t.createElement(i),s=t.getElementsByTagName(i)[0],o.async=1,o.src=n,s.parentNode.insertBefore(o,s)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),ga("create","UA-86096862-1","auto"),ga("send","pageview"),Polymer({is:"customer-welcome",properties:{subpage:{type:String},route:{type:Object},routeData:{type:Object},isLogin:{type:Boolean,value:!0},lastButton:{type:String,computed:"computeButtonText(isLogin)"},message:{type:String},email:{type:String},password:{type:String},name:{type:String},age:{type:Number},gender:{type:String,value:"male"},cur_page:{type:String,value:"https://feeljoy.in/welcome"},ref_url:{type:String,value:"https://feeljoy.in"},rememberme:{type:Boolean},remember:{type:Number,value:0,compute:"computeRemember(rememberme)"},loginurl:{type:String,value:projectHostName+"/apis/login"},signupurl:{type:String,value:projectHostName+"/apis/signup"},detailsurl:{type:String,value:projectHostName+"/apis/signup/details"},signupresponse:{type:Object,observer:"_onSignupResponse"},detailsresponse:{type:Object,observer:"_onDetailsResponse"},sendLogin:{type:Boolean,computed:"_computeSendLogin(email, password)"},sendSignup:{type:Boolean,computed:"_computeSendSignup(email, password)"},sendDetails:{type:Boolean,computed:"_computeSendDetails(email, name, age, gender)"}},observers:["_routePageChanged(routeData.subpage)"],attached:function(){this.listen(this.$.create,"tap","onCreate"),this.listen(this.$.login,"tap","onLogin"),this.listen(this.$.google,"tap","onGoogleLogin"),this.listen(this.$.done,"tap","onDone"),this.listen(this.$.details,"tap","onDetails")},detached:function(){this.unlisten(this.$.create,"tap","onCreate"),this.unlisten(this.$.login,"tap","onLogin"),this.unlisten(this.$.google,"tap","onGoogleLogin"),this.unlisten(this.$.done,"tap","onDone"),this.unlisten(this.$.details,"tap","onDetails")},_routePageChanged:function(e){e||this.setSubpage("welcome"),this.subpage=e||"welcome"},_onLoadingLogin:function(){this.loadinglogin?(this.$.done.disabled=!0,this.$.progress.style.opacity=1):(this.$.done.disabled=!1,this.$.progress.style.opacity=0)},_computeSendLogin:function(e,t){return e&&t?this.$.done.disabled=!1:this.$.done.disabled=!0,{username:e,password:t}},_computeSendSignup:function(e,t){return{email:e,password:t}},_computeSendDetails:function(e,t,i,n){return e&&t&&i&&n?this.$.details.disabled=!1:this.$.details.disabled=!0,{email:e,contact_name:t,age:i,gender:n}},computeButtonText:function(e){return e?(this.$.remember.style.display="","Login"):(this.$.remember.style.display="none","Signup")},computeRemember:function(e){return e?1:0},setSubpage:function(e){window.history.pushState({},null,"#/"+e),window.dispatchEvent(new CustomEvent("location-changed"))},onBackButton:function(){window.history.back()},onGoogleLogin:function(){window.location.href="https://accounts.google.com/o/oauth2/auth?response_type=code&redirect_uri=https%3A%2F%2Ffeeljoy.in%2Fuser_authentication%2F&client_id=679180648415-fch3v2k0t3qns5vml3hf1qp0drcspb6e.apps.googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&access_type=offline&approval_prompt=force"},onCreate:function(){this.isLogin=!1,this.setSubpage("email"),this.email="",this.async(function(){this.$.email.focus()},600)},onLogin:function(){this.isLogin=!0,this.setSubpage("email"),this.email="",this.async(function(){this.$.email.focus()},600)},_onSignupResponse:function(){"object"==typeof this.signupresponse&&null!==this.signupresponse?this.signupresponse.error?(this.message=this.signupresponse.message,this.$.toast.open()):(this.$.verify.open(),this.setSubpage("details")):(this.message="An Error Occured",this.$.toast.open())},_onDetailsResponse:function(){"object"==typeof this.detailsresponse&&null!==this.detailsresponse?this.detailsresponse.error?(this.message=this.detailsresponse.message,this.$.toast.open()):this.$.fLogin.submit():(this.message="An Error Occured",this.$.toast.open())},onDone:function(){this.cur_page=window.location.href,this.queryParams.redirect&&(this.ref_url=this.queryParams.redirect),this.isLogin?this.$.fLogin.submit():this.$.aSignup.generateRequest()},onDetails:function(){this.$.aDetails.generateRequest()}}),function(){"use strict";if("registerElement"in document&&"import"in document.createElement("link")&&"content"in document.createElement("template"))window.HTMLImports||document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}));else{var e=document.createElement("script");e.src="bower_components/webcomponentsjs/webcomponents-lite.min.js",document.body.appendChild(e)}}();