OLD | NEW |
1 /** | 1 /** |
2 * @license | 2 * @license |
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. | 3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt | 4 * This code may only be used under the BSD style license found at http://polyme
r.github.io/LICENSE.txt |
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt | 5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS.
txt |
6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt | 6 * The complete set of contributors may be found at http://polymer.github.io/CON
TRIBUTORS.txt |
7 * Code distributed by Google as part of the polymer project is also | 7 * Code distributed by Google as part of the polymer project is also |
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt | 8 * subject to an additional IP rights grant found at http://polymer.github.io/PA
TENTS.txt |
9 */ | 9 */ |
10 // @version 0.7.22 | 10 // @version 0.6.1 |
11 !function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomp
onents.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOpts){i
f(location.search.slice(1).split("&").forEach(function(e){var t,r=e.split("=");r
[0]&&(t=r[0].match(/wc-(.+)/))&&(n[t[1]]=r[1]||!0)}),t)for(var r,o=0;r=t.attribu
tes[o];o++)"src"!==r.name&&(n[r.name]=r.value||!0);if(n.log&&n.log.split){var i=
n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}else n.log={}}n.sh
adow=n.shadow||n.shadowdom||n.polyfill,"native"===n.shadow?n.shadow=!1:n.shadow=
n.shadow||!HTMLElement.prototype.createShadowRoot,n.register&&(window.CustomElem
ents=window.CustomElements||{flags:{}},window.CustomElements.flags.register=n.re
gister),WebComponents.flags=n}(),WebComponents.flags.shadow&&("undefined"==typeo
f WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function()
{this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};n.prototype={set:function
(t,n){var r=t[this.name];return r&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],wr
itable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:vo
id 0},"delete":function(e){var t=e[this.name];return t&&t[0]===e?(t[0]=t[1]=void
0,!0):!1},has:function(e){var t=e[this.name];return t?t[0]===e:!1}},window.Weak
Map=n}(),window.ShadowDOMPolyfill={},function(e){"use strict";function t(){if("u
ndefined"!=typeof chrome&&chrome.app&&chrome.app.runtime)return!1;if(navigator.g
etDeviceStorage)return!1;try{var e=new Function("return true;");return e()}catch
(t){return!1}}function n(e){if(!e)throw new Error("Assertion failed")}function r
(e,t){for(var n=W(t),r=0;r<n.length;r++){var o=n[r];A(e,o,F(t,o))}return e}funct
ion o(e,t){for(var n=W(t),r=0;r<n.length;r++){var o=n[r];switch(o){case"argument
s":case"caller":case"length":case"name":case"prototype":case"toString":continue}
A(e,o,F(t,o))}return e}function i(e,t){for(var n=0;n<t.length;n++)if(t[n]in e)re
turn t[n]}function a(e,t,n){U.value=n,A(e,t,U)}function s(e,t){var n=e.__proto__
||Object.getPrototypeOf(e);if(q)try{W(n)}catch(r){n=n.__proto__}var o=R.get(n);i
f(o)return o;var i=s(n),a=E(i);return g(n,a,t),a}function c(e,t){w(e,t,!0)}funct
ion l(e,t){w(t,e,!1)}function u(e){return/^on[a-z]+$/.test(e)}function d(e){retu
rn/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)}function p(e){return k&&d(e)?new Function
("return this.__impl4cf1e782hg__."+e):function(){return this.__impl4cf1e782hg__[
e]}}function h(e){return k&&d(e)?new Function("v","this.__impl4cf1e782hg__."+e+"
= v"):function(t){this.__impl4cf1e782hg__[e]=t}}function f(e){return k&&d(e)?ne
w Function("return this.__impl4cf1e782hg__."+e+".apply(this.__impl4cf1e782hg__,
arguments)"):function(){return this.__impl4cf1e782hg__[e].apply(this.__impl4cf1e
782hg__,arguments)}}function m(e,t){try{return Object.getOwnPropertyDescriptor(e
,t)}catch(n){return B}}function w(t,n,r,o){for(var i=W(t),a=0;a<i.length;a++){va
r s=i[a];if("polymerBlackList_"!==s&&!(s in n||t.polymerBlackList_&&t.polymerBla
ckList_[s])){q&&t.__lookupGetter__(s);var c,l,d=m(t,s);if("function"!=typeof d.v
alue){var w=u(s);c=w?e.getEventHandlerGetter(s):p(s),(d.writable||d.set||V)&&(l=
w?e.getEventHandlerSetter(s):h(s));var v=V||d.configurable;A(n,s,{get:c,set:l,co
nfigurable:v,enumerable:d.enumerable})}else r&&(n[s]=f(s))}}}function v(e,t,n){i
f(null!=e){var r=e.prototype;g(r,t,n),o(t,e)}}function g(e,t,r){var o=t.prototyp
e;n(void 0===R.get(e)),R.set(e,t),I.set(o,e),c(e,o),r&&l(o,r),a(o,"constructor",
t),t.prototype=o}function b(e,t){return R.get(t.prototype)===e}function y(e){var
t=Object.getPrototypeOf(e),n=s(t),r=E(n);return g(t,r,e),r}function E(e){functi
on t(t){e.call(this,t)}var n=Object.create(e.prototype);return n.constructor=t,t
.prototype=n,t}function _(e){return e&&e.__impl4cf1e782hg__}function S(e){return
!_(e)}function T(e){if(null===e)return null;n(S(e));var t=e.__wrapper8e3dd93a60_
_;return null!=t?t:e.__wrapper8e3dd93a60__=new(s(e,e))(e)}function M(e){return n
ull===e?null:(n(_(e)),e.__impl4cf1e782hg__)}function O(e){return e.__impl4cf1e78
2hg__}function L(e,t){t.__impl4cf1e782hg__=e,e.__wrapper8e3dd93a60__=t}function
N(e){return e&&_(e)?M(e):e}function C(e){return e&&!_(e)?T(e):e}function j(e,t){
null!==t&&(n(S(e)),n(void 0===t||_(t)),e.__wrapper8e3dd93a60__=t)}function D(e,t
,n){G.get=n,A(e.prototype,t,G)}function H(e,t){D(e,t,function(){return T(this.__
impl4cf1e782hg__[t])})}function x(e,t){e.forEach(function(e){t.forEach(function(
t){e.prototype[t]=function(){var e=C(this);return e[t].apply(e,arguments)}})})}v
ar R=new WeakMap,I=new WeakMap,P=Object.create(null),k=t(),A=Object.defineProper
ty,W=Object.getOwnPropertyNames,F=Object.getOwnPropertyDescriptor,U={value:void
0,configurable:!0,enumerable:!1,writable:!0};W(window);var q=/Firefox/.test(navi
gator.userAgent),B={get:function(){},set:function(e){},configurable:!0,enumerabl
e:!0},V=function(){var e=Object.getOwnPropertyDescriptor(Node.prototype,"nodeTyp
e");return e&&!e.get&&!e.set}(),G={get:void 0,configurable:!0,enumerable:!0};e.a
ddForwardingProperties=c,e.assert=n,e.constructorTable=R,e.defineGetter=D,e.defi
neWrapGetter=H,e.forwardMethodsToWrapper=x,e.isIdentifierName=d,e.isWrapper=_,e.
isWrapperFor=b,e.mixin=r,e.nativePrototypeTable=I,e.oneOf=i,e.registerObject=y,e
.registerWrapper=v,e.rewrap=j,e.setWrapper=L,e.unsafeUnwrap=O,e.unwrap=M,e.unwra
pIfNeeded=N,e.wrap=T,e.wrapIfNeeded=C,e.wrappers=P}(window.ShadowDOMPolyfill),fu
nction(e){"use strict";function t(e,t,n){return{index:e,removed:t,addedCount:n}}
function n(){}var r=0,o=1,i=2,a=3;n.prototype={calcEditDistances:function(e,t,n,
r,o,i){for(var a=i-o+1,s=n-t+1,c=new Array(a),l=0;a>l;l++)c[l]=new Array(s),c[l]
[0]=l;for(var u=0;s>u;u++)c[0][u]=u;for(var l=1;a>l;l++)for(var u=1;s>u;u++)if(t
his.equals(e[t+u-1],r[o+l-1]))c[l][u]=c[l-1][u-1];else{var d=c[l-1][u]+1,p=c[l][
u-1]+1;c[l][u]=p>d?d:p}return c},spliceOperationsFromEditDistances:function(e){f
or(var t=e.length-1,n=e[0].length-1,s=e[t][n],c=[];t>0||n>0;)if(0!=t)if(0!=n){va
r l,u=e[t-1][n-1],d=e[t-1][n],p=e[t][n-1];l=p>d?u>d?d:u:u>p?p:u,l==u?(u==s?c.pus
h(r):(c.push(o),s=u),t--,n--):l==d?(c.push(a),t--,s=d):(c.push(i),n--,s=p)}else
c.push(a),t--;else c.push(i),n--;return c.reverse(),c},calcSplices:function(e,n,
s,c,l,u){var d=0,p=0,h=Math.min(s-n,u-l);if(0==n&&0==l&&(d=this.sharedPrefix(e,c
,h)),s==e.length&&u==c.length&&(p=this.sharedSuffix(e,c,h-d)),n+=d,l+=d,s-=p,u-=
p,s-n==0&&u-l==0)return[];if(n==s){for(var f=t(n,[],0);u>l;)f.removed.push(c[l++
]);return[f]}if(l==u)return[t(n,[],s-n)];for(var m=this.spliceOperationsFromEdit
Distances(this.calcEditDistances(e,n,s,c,l,u)),f=void 0,w=[],v=n,g=l,b=0;b<m.len
gth;b++)switch(m[b]){case r:f&&(w.push(f),f=void 0),v++,g++;break;case o:f||(f=t
(v,[],0)),f.addedCount++,v++,f.removed.push(c[g]),g++;break;case i:f||(f=t(v,[],
0)),f.addedCount++,v++;break;case a:f||(f=t(v,[],0)),f.removed.push(c[g]),g++}re
turn f&&w.push(f),w},sharedPrefix:function(e,t,n){for(var r=0;n>r;r++)if(!this.e
quals(e[r],t[r]))return r;return n},sharedSuffix:function(e,t,n){for(var r=e.len
gth,o=t.length,i=0;n>i&&this.equals(e[--r],t[--o]);)i++;return i},calculateSplic
es:function(e,t){return this.calcSplices(e,0,e.length,t,0,t.length)},equals:func
tion(e,t){return e===t}},e.ArraySplice=n}(window.ShadowDOMPolyfill),function(e){
"use strict";function t(){a=!1;var e=i.slice(0);i=[];for(var t=0;t<e.length;t++)
(0,e[t])()}function n(e){i.push(e),a||(a=!0,r(t,0))}var r,o=window.MutationObser
ver,i=[],a=!1;if(o){var s=1,c=new o(t),l=document.createTextNode(s);c.observe(l,
{characterData:!0}),r=function(){s=(s+1)%2,l.data=s}}else r=window.setTimeout;e.
setEndOfMicrotask=n}(window.ShadowDOMPolyfill),function(e){"use strict";function
t(e){e.scheduled_||(e.scheduled_=!0,f.push(e),m||(u(n),m=!0))}function n(){for(
m=!1;f.length;){var e=f;f=[],e.sort(function(e,t){return e.uid_-t.uid_});for(var
t=0;t<e.length;t++){var n=e[t];n.scheduled_=!1;var r=n.takeRecords();i(n),r.len
gth&&n.callback_(r,n)}}}function r(e,t){this.type=e,this.target=t,this.addedNode
s=new p.NodeList,this.removedNodes=new p.NodeList,this.previousSibling=null,this
.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldV
alue=null}function o(e,t){for(;e;e=e.parentNode){var n=h.get(e);if(n)for(var r=0
;r<n.length;r++){var o=n[r];o.options.subtree&&o.addTransientObserver(t)}}}funct
ion i(e){for(var t=0;t<e.nodes_.length;t++){var n=e.nodes_[t],r=h.get(n);if(!r)r
eturn;for(var o=0;o<r.length;o++){var i=r[o];i.observer===e&&i.removeTransientOb
servers()}}}function a(e,n,o){for(var i=Object.create(null),a=Object.create(null
),s=e;s;s=s.parentNode){var c=h.get(s);if(c)for(var l=0;l<c.length;l++){var u=c[
l],d=u.options;if((s===e||d.subtree)&&("attributes"!==n||d.attributes)&&("attrib
utes"!==n||!d.attributeFilter||null===o.namespace&&-1!==d.attributeFilter.indexO
f(o.name))&&("characterData"!==n||d.characterData)&&("childList"!==n||d.childLis
t)){var p=u.observer;i[p.uid_]=p,("attributes"===n&&d.attributeOldValue||"charac
terData"===n&&d.characterDataOldValue)&&(a[p.uid_]=o.oldValue)}}}for(var f in i)
{var p=i[f],m=new r(n,e);"name"in o&&"namespace"in o&&(m.attributeName=o.name,m.
attributeNamespace=o.namespace),o.addedNodes&&(m.addedNodes=o.addedNodes),o.remo
vedNodes&&(m.removedNodes=o.removedNodes),o.previousSibling&&(m.previousSibling=
o.previousSibling),o.nextSibling&&(m.nextSibling=o.nextSibling),void 0!==a[f]&&(
m.oldValue=a[f]),t(p),p.records_.push(m)}}function s(e){if(this.childList=!!e.ch
ildList,this.subtree=!!e.subtree,"attributes"in e||!("attributeOldValue"in e||"a
ttributeFilter"in e)?this.attributes=!!e.attributes:this.attributes=!0,"characte
rDataOldValue"in e&&!("characterData"in e)?this.characterData=!0:this.characterD
ata=!!e.characterData,!this.attributes&&(e.attributeOldValue||"attributeFilter"i
n e)||!this.characterData&&e.characterDataOldValue)throw new TypeError;if(this.c
haracterData=!!e.characterData,this.attributeOldValue=!!e.attributeOldValue,this
.characterDataOldValue=!!e.characterDataOldValue,"attributeFilter"in e){if(null=
=e.attributeFilter||"object"!=typeof e.attributeFilter)throw new TypeError;this.
attributeFilter=w.call(e.attributeFilter)}else this.attributeFilter=null}functio
n c(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++v,this.sched
uled_=!1}function l(e,t,n){this.observer=e,this.target=t,this.options=n,this.tra
nsientObservedNodes=[]}var u=e.setEndOfMicrotask,d=e.wrapIfNeeded,p=e.wrappers,h
=new WeakMap,f=[],m=!1,w=Array.prototype.slice,v=0;c.prototype={constructor:c,ob
serve:function(e,t){e=d(e);var n,r=new s(t),o=h.get(e);o||h.set(e,o=[]);for(var
i=0;i<o.length;i++)o[i].observer===this&&(n=o[i],n.removeTransientObservers(),n.
options=r);n||(n=new l(this,e,r),o.push(n),this.nodes_.push(e))},disconnect:func
tion(){this.nodes_.forEach(function(e){for(var t=h.get(e),n=0;n<t.length;n++){va
r r=t[n];if(r.observer===this){t.splice(n,1);break}}},this),this.records_=[]},ta
keRecords:function(){var e=this.records_;return this.records_=[],e}},l.prototype
={addTransientObserver:function(e){if(e!==this.target){t(this.observer),this.tra
nsientObservedNodes.push(e);var n=h.get(e);n||h.set(e,n=[]),n.push(this)}},remov
eTransientObservers:function(){var e=this.transientObservedNodes;this.transientO
bservedNodes=[];for(var t=0;t<e.length;t++)for(var n=e[t],r=h.get(n),o=0;o<r.len
gth;o++)if(r[o]===this){r.splice(o,1);break}}},e.enqueueMutation=a,e.registerTra
nsientObservers=o,e.wrappers.MutationObserver=c,e.wrappers.MutationRecord=r}(win
dow.ShadowDOMPolyfill),function(e){"use strict";function t(e,t){this.root=e,this
.parent=t}function n(e,t){if(e.treeScope_!==t){e.treeScope_=t;for(var r=e.shadow
Root;r;r=r.olderShadowRoot)r.treeScope_.parent=t;for(var o=e.firstChild;o;o=o.ne
xtSibling)n(o,t)}}function r(n){if(n instanceof e.wrappers.Window,n.treeScope_)r
eturn n.treeScope_;var o,i=n.parentNode;return o=i?r(i):new t(n,null),n.treeScop
e_=o}t.prototype={get renderer(){return this.root instanceof e.wrappers.ShadowRo
ot?e.getRendererForHost(this.root.host):null},contains:function(e){for(;e;e=e.pa
rent)if(e===this)return!0;return!1}},e.TreeScope=t,e.getTreeScope=r,e.setTreeSco
pe=n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){return e
instanceof G.ShadowRoot}function n(e){return A(e).root}function r(e,r){var s=[],
c=e;for(s.push(c);c;){var l=a(c);if(l&&l.length>0){for(var u=0;u<l.length;u++){v
ar p=l[u];if(i(p)){var h=n(p),f=h.olderShadowRoot;f&&s.push(f)}s.push(p)}c=l[l.l
ength-1]}else if(t(c)){if(d(e,c)&&o(r))break;c=c.host,s.push(c)}else c=c.parentN
ode,c&&s.push(c)}return s}function o(e){if(!e)return!1;switch(e.type){case"abort
":case"error":case"select":case"change":case"load":case"reset":case"resize":case
"scroll":case"selectstart":return!0}return!1}function i(e){return e instanceof H
TMLShadowElement}function a(t){return e.getDestinationInsertionPoints(t)}functio
n s(e,t){if(0===e.length)return t;t instanceof G.Window&&(t=t.document);for(var
n=A(t),r=e[0],o=A(r),i=l(n,o),a=0;a<e.length;a++){var s=e[a];if(A(s)===i)return
s}return e[e.length-1]}function c(e){for(var t=[];e;e=e.parent)t.push(e);return
t}function l(e,t){for(var n=c(e),r=c(t),o=null;n.length>0&&r.length>0;){var i=n.
pop(),a=r.pop();if(i!==a)break;o=i}return o}function u(e,t,n){t instanceof G.Win
dow&&(t=t.document);var o,i=A(t),a=A(n),s=r(n,e),o=l(i,a);o||(o=a.root);for(var
c=o;c;c=c.parent)for(var u=0;u<s.length;u++){var d=s[u];if(A(d)===c)return d}ret
urn null}function d(e,t){return A(e)===A(t)}function p(e){if(!K.get(e)&&(K.set(e
,!0),f(V(e),V(e.target)),P)){var t=P;throw P=null,t}}function h(e){switch(e.type
){case"load":case"beforeunload":case"unload":return!0}return!1}function f(t,n){i
f($.get(t))throw new Error("InvalidStateError");$.set(t,!0),e.renderAllPending()
;var o,i,a;if(h(t)&&!t.bubbles){var s=n;s instanceof G.Document&&(a=s.defaultVie
w)&&(i=s,o=[])}if(!o)if(n instanceof G.Window)a=n,o=[];else if(o=r(n,t),!h(t)){v
ar s=o[o.length-1];s instanceof G.Document&&(a=s.defaultView)}return ne.set(t,o)
,m(t,o,a,i)&&w(t,o,a,i)&&v(t,o,a,i),J.set(t,re),Y["delete"](t,null),$["delete"](
t),t.defaultPrevented}function m(e,t,n,r){var o=oe;if(n&&!g(n,e,o,t,r))return!1;
for(var i=t.length-1;i>0;i--)if(!g(t[i],e,o,t,r))return!1;return!0}function w(e,
t,n,r){var o=ie,i=t[0]||n;return g(i,e,o,t,r)}function v(e,t,n,r){for(var o=ae,i
=1;i<t.length;i++)if(!g(t[i],e,o,t,r))return;n&&t.length>0&&g(n,e,o,t,r)}functio
n g(e,t,n,r,o){var i=z.get(e);if(!i)return!0;var a=o||s(r,e);if(a===e){if(n===oe
)return!0;n===ae&&(n=ie)}else if(n===ae&&!t.bubbles)return!0;if("relatedTarget"i
n t){var c=B(t),l=c.relatedTarget;if(l){if(l instanceof Object&&l.addEventListen
er){var d=V(l),p=u(t,e,d);if(p===a)return!0}else p=null;Z.set(t,p)}}J.set(t,n);v
ar h=t.type,f=!1;X.set(t,a),Y.set(t,e),i.depth++;for(var m=0,w=i.length;w>m;m++)
{var v=i[m];if(v.removed)f=!0;else if(!(v.type!==h||!v.capture&&n===oe||v.captur
e&&n===ae))try{if("function"==typeof v.handler?v.handler.call(e,t):v.handler.han
dleEvent(t),ee.get(t))return!1}catch(g){P||(P=g)}}if(i.depth--,f&&0===i.depth){v
ar b=i.slice();i.length=0;for(var m=0;m<b.length;m++)b[m].removed||i.push(b[m])}
return!Q.get(t)}function b(e,t,n){this.type=e,this.handler=t,this.capture=Boolea
n(n)}function y(e,t){if(!(e instanceof se))return V(T(se,"Event",e,t));var n=e;r
eturn be||"beforeunload"!==n.type||this instanceof M?void U(n,this):new M(n)}fun
ction E(e){return e&&e.relatedTarget?Object.create(e,{relatedTarget:{value:B(e.r
elatedTarget)}}):e}function _(e,t,n){var r=window[e],o=function(t,n){return t in
stanceof r?void U(t,this):V(T(r,e,t,n))};if(o.prototype=Object.create(t.prototyp
e),n&&W(o.prototype,n),r)try{F(r,o,new r("temp"))}catch(i){F(r,o,document.create
Event(e))}return o}function S(e,t){return function(){arguments[t]=B(arguments[t]
);var n=B(this);n[e].apply(n,arguments)}}function T(e,t,n,r){if(ve)return new e(
n,E(r));var o=B(document.createEvent(t)),i=we[t],a=[n];return Object.keys(i).for
Each(function(e){var t=null!=r&&e in r?r[e]:i[e];"relatedTarget"===e&&(t=B(t)),a
.push(t)}),o["init"+t].apply(o,a),o}function M(e){y.call(this,e)}function O(e){r
eturn"function"==typeof e?!0:e&&e.handleEvent}function L(e){switch(e){case"DOMAt
trModified":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DO
MElementNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":cas
e"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":retu
rn!0}return!1}function N(e){U(e,this)}function C(e){return e instanceof G.Shadow
Root&&(e=e.host),B(e)}function j(e,t){var n=z.get(e);if(n)for(var r=0;r<n.length
;r++)if(!n[r].removed&&n[r].type===t)return!0;return!1}function D(e,t){for(var n
=B(e);n;n=n.parentNode)if(j(V(n),t))return!0;return!1}function H(e){k(e,Ee)}func
tion x(t,n,o,i){e.renderAllPending();var a=V(_e.call(q(n),o,i));if(!a)return nul
l;var c=r(a,null),l=c.lastIndexOf(t);return-1==l?null:(c=c.slice(0,l),s(c,t))}fu
nction R(e){return function(){var t=te.get(this);return t&&t[e]&&t[e].value||nul
l}}function I(e){var t=e.slice(2);return function(n){var r=te.get(this);r||(r=Ob
ject.create(null),te.set(this,r));var o=r[e];if(o&&this.removeEventListener(t,o.
wrapped,!1),"function"==typeof n){var i=function(t){var r=n.call(this,t);r===!1?
t.preventDefault():"onbeforeunload"===e&&"string"==typeof r&&(t.returnValue=r)};
this.addEventListener(t,i,!1),r[e]={value:n,wrapped:i}}}}var P,k=e.forwardMethod
sToWrapper,A=e.getTreeScope,W=e.mixin,F=e.registerWrapper,U=e.setWrapper,q=e.uns
afeUnwrap,B=e.unwrap,V=e.wrap,G=e.wrappers,z=(new WeakMap,new WeakMap),K=new Wea
kMap,$=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,J=new WeakMap,Q=new
WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=0,oe=1,ie=2,ae=3;b.prot
otype={equals:function(e){return this.handler===e.handler&&this.type===e.type&&t
his.capture===e.capture},get removed(){return null===this.handler},remove:functi
on(){this.handler=null}};var se=window.Event;se.prototype.polymerBlackList_={ret
urnValue:!0,keyLocation:!0},y.prototype={get target(){return X.get(this)},get cu
rrentTarget(){return Y.get(this)},get eventPhase(){return J.get(this)},get path(
){var e=ne.get(this);return e?e.slice():[]},stopPropagation:function(){Q.set(thi
s,!0)},stopImmediatePropagation:function(){Q.set(this,!0),ee.set(this,!0)}};var
ce=function(){var e=document.createEvent("Event");return e.initEvent("test",!0,!
0),e.preventDefault(),e.defaultPrevented}();ce||(y.prototype.preventDefault=func
tion(){this.cancelable&&(q(this).preventDefault(),Object.defineProperty(this,"de
faultPrevented",{get:function(){return!0},configurable:!0}))}),F(se,y,document.c
reateEvent("Event"));var le=_("UIEvent",y),ue=_("CustomEvent",y),de={get related
Target(){var e=Z.get(this);return void 0!==e?e:V(B(this).relatedTarget)}},pe=W({
initMouseEvent:S("initMouseEvent",14)},de),he=W({initFocusEvent:S("initFocusEven
t",5)},de),fe=_("MouseEvent",le,pe),me=_("FocusEvent",le,he),we=Object.create(nu
ll),ve=function(){try{new window.FocusEvent("focus")}catch(e){return!1}return!0}
();if(!ve){var ge=function(e,t,n){if(n){var r=we[n];t=W(W({},r),t)}we[e]=t};ge("
Event",{bubbles:!1,cancelable:!1}),ge("CustomEvent",{detail:null},"Event"),ge("U
IEvent",{view:null,detail:0},"Event"),ge("MouseEvent",{screenX:0,screenY:0,clien
tX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarge
t:null},"UIEvent"),ge("FocusEvent",{relatedTarget:null},"UIEvent")}var be=window
.BeforeUnloadEvent;M.prototype=Object.create(y.prototype),W(M.prototype,{get ret
urnValue(){return q(this).returnValue},set returnValue(e){q(this).returnValue=e}
}),be&&F(be,M);var ye=window.EventTarget,Ee=["addEventListener","removeEventList
ener","dispatchEvent"];[Node,Window].forEach(function(e){var t=e.prototype;Ee.fo
rEach(function(e){Object.defineProperty(t,e+"_",{value:t[e]})})}),N.prototype={a
ddEventListener:function(e,t,n){if(O(t)&&!L(e)){var r=new b(e,t,n),o=z.get(this)
;if(o){for(var i=0;i<o.length;i++)if(r.equals(o[i]))return}else o=[],o.depth=0,z
.set(this,o);o.push(r);var a=C(this);a.addEventListener_(e,p,!0)}},removeEventLi
stener:function(e,t,n){n=Boolean(n);var r=z.get(this);if(r){for(var o=0,i=!1,a=0
;a<r.length;a++)r[a].type===e&&r[a].capture===n&&(o++,r[a].handler===t&&(i=!0,r[
a].remove()));if(i&&1===o){var s=C(this);s.removeEventListener_(e,p,!0)}}},dispa
tchEvent:function(t){var n=B(t),r=n.type;K.set(n,!1),e.renderAllPending();var o;
D(this,r)||(o=function(){},this.addEventListener(r,o,!0));try{return B(this).dis
patchEvent_(n)}finally{o&&this.removeEventListener(r,o,!0)}}},ye&&F(ye,N);var _e
=document.elementFromPoint;e.elementFromPoint=x,e.getEventHandlerGetter=R,e.getE
ventHandlerSetter=I,e.wrapEventTargetMethods=H,e.wrappers.BeforeUnloadEvent=M,e.
wrappers.CustomEvent=ue,e.wrappers.Event=y,e.wrappers.EventTarget=N,e.wrappers.F
ocusEvent=me,e.wrappers.MouseEvent=fe,e.wrappers.UIEvent=le}(window.ShadowDOMPol
yfill),function(e){"use strict";function t(e,t){Object.defineProperty(e,t,m)}fun
ction n(e){l(e,this)}function r(){this.length=0,t(this,"length")}function o(e){f
or(var t=new r,o=0;o<e.length;o++)t[o]=new n(e[o]);return t.length=o,t}function
i(e){a.call(this,e)}var a=e.wrappers.UIEvent,s=e.mixin,c=e.registerWrapper,l=e.s
etWrapper,u=e.unsafeUnwrap,d=e.wrap,p=window.TouchEvent;if(p){var h;try{h=docume
nt.createEvent("TouchEvent")}catch(f){return}var m={enumerable:!1};n.prototype={
get target(){return d(u(this).target)}};var w={configurable:!0,enumerable:!0,get
:null};["clientX","clientY","screenX","screenY","pageX","pageY","identifier","we
bkitRadiusX","webkitRadiusY","webkitRotationAngle","webkitForce"].forEach(functi
on(e){w.get=function(){return u(this)[e]},Object.defineProperty(n.prototype,e,w)
}),r.prototype={item:function(e){return this[e]}},i.prototype=Object.create(a.pr
ototype),s(i.prototype,{get touches(){return o(u(this).touches)},get targetTouch
es(){return o(u(this).targetTouches)},get changedTouches(){return o(u(this).chan
gedTouches)},initTouchEvent:function(){throw new Error("Not implemented")}}),c(p
,i,h),e.wrappers.Touch=n,e.wrappers.TouchEvent=i,e.wrappers.TouchList=r}}(window
.ShadowDOMPolyfill),function(e){"use strict";function t(e,t){Object.defineProper
ty(e,t,s)}function n(){this.length=0,t(this,"length")}function r(e){if(null==e)r
eturn e;for(var t=new n,r=0,o=e.length;o>r;r++)t[r]=a(e[r]);return t.length=o,t}
function o(e,t){e.prototype[t]=function(){return r(i(this)[t].apply(i(this),argu
ments))}}var i=e.unsafeUnwrap,a=e.wrap,s={enumerable:!1};n.prototype={item:funct
ion(e){return this[e]}},t(n.prototype,"item"),e.wrappers.NodeList=n,e.addWrapNod
eListMethod=o,e.wrapNodeList=r}(window.ShadowDOMPolyfill),function(e){"use stric
t";e.wrapHTMLCollection=e.wrapNodeList,e.wrappers.HTMLCollection=e.wrappers.Node
List}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){O(e insta
nceof _)}function n(e){var t=new T;return t[0]=e,t.length=1,t}function r(e,t,n){
N(t,"childList",{removedNodes:n,previousSibling:e.previousSibling,nextSibling:e.
nextSibling})}function o(e,t){N(e,"childList",{removedNodes:t})}function i(e,t,r
,o){if(e instanceof DocumentFragment){var i=s(e);U=!0;for(var a=i.length-1;a>=0;
a--)e.removeChild(i[a]),i[a].parentNode_=t;U=!1;for(var a=0;a<i.length;a++)i[a].
previousSibling_=i[a-1]||r,i[a].nextSibling_=i[a+1]||o;return r&&(r.nextSibling_
=i[0]),o&&(o.previousSibling_=i[i.length-1]),i}var i=n(e),c=e.parentNode;return
c&&c.removeChild(e),e.parentNode_=t,e.previousSibling_=r,e.nextSibling_=o,r&&(r.
nextSibling_=e),o&&(o.previousSibling_=e),i}function a(e){if(e instanceof Docume
ntFragment)return s(e);var t=n(e),o=e.parentNode;return o&&r(e,o,t),t}function s
(e){for(var t=new T,n=0,r=e.firstChild;r;r=r.nextSibling)t[n++]=r;return t.lengt
h=n,o(e,t),t}function c(e){return e}function l(e,t){R(e,t),e.nodeIsInserted_()}f
unction u(e,t){for(var n=C(t),r=0;r<e.length;r++)l(e[r],n)}function d(e){R(e,new
M(e,null))}function p(e){for(var t=0;t<e.length;t++)d(e[t])}function h(e,t){var
n=e.nodeType===_.DOCUMENT_NODE?e:e.ownerDocument;n!==t.ownerDocument&&n.adoptNo
de(t)}function f(t,n){if(n.length){var r=t.ownerDocument;if(r!==n[0].ownerDocume
nt)for(var o=0;o<n.length;o++)e.adoptNodeNoRemove(n[o],r)}}function m(e,t){f(e,t
);var n=t.length;if(1===n)return P(t[0]);for(var r=P(e.ownerDocument.createDocum
entFragment()),o=0;n>o;o++)r.appendChild(P(t[o]));return r}function w(e){if(void
0!==e.firstChild_)for(var t=e.firstChild_;t;){var n=t;t=t.nextSibling_,n.parent
Node_=n.previousSibling_=n.nextSibling_=void 0}e.firstChild_=e.lastChild_=void 0
}function v(e){if(e.invalidateShadowRenderer()){for(var t=e.firstChild;t;){O(t.p
arentNode===e);var n=t.nextSibling,r=P(t),o=r.parentNode;o&&X.call(o,r),t.previo
usSibling_=t.nextSibling_=t.parentNode_=null,t=n}e.firstChild_=e.lastChild_=null
}else for(var n,i=P(e),a=i.firstChild;a;)n=a.nextSibling,X.call(i,a),a=n}functio
n g(e){var t=e.parentNode;return t&&t.invalidateShadowRenderer()}function b(e){f
or(var t,n=0;n<e.length;n++)t=e[n],t.parentNode.removeChild(t)}function y(e,t,n)
{var r;if(r=A(n?q.call(n,I(e),!1):B.call(I(e),!1)),t){for(var o=e.firstChild;o;o
=o.nextSibling)r.appendChild(y(o,!0,n));if(e instanceof F.HTMLTemplateElement)fo
r(var i=r.content,o=e.content.firstChild;o;o=o.nextSibling)i.appendChild(y(o,!0,
n))}return r}function E(e,t){if(!t||C(e)!==C(t))return!1;for(var n=t;n;n=n.paren
tNode)if(n===e)return!0;return!1}function _(e){O(e instanceof V),S.call(this,e),
this.parentNode_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,this.next
Sibling_=void 0,this.previousSibling_=void 0,this.treeScope_=void 0}var S=e.wrap
pers.EventTarget,T=e.wrappers.NodeList,M=e.TreeScope,O=e.assert,L=e.defineWrapGe
tter,N=e.enqueueMutation,C=e.getTreeScope,j=e.isWrapper,D=e.mixin,H=e.registerTr
ansientObservers,x=e.registerWrapper,R=e.setTreeScope,I=e.unsafeUnwrap,P=e.unwra
p,k=e.unwrapIfNeeded,A=e.wrap,W=e.wrapIfNeeded,F=e.wrappers,U=!1,q=document.impo
rtNode,B=window.Node.prototype.cloneNode,V=window.Node,G=window.DocumentFragment
,z=(V.prototype.appendChild,V.prototype.compareDocumentPosition),K=V.prototype.i
sEqualNode,$=V.prototype.insertBefore,X=V.prototype.removeChild,Y=V.prototype.re
placeChild,Z=/Trident|Edge/.test(navigator.userAgent),J=Z?function(e,t){try{X.ca
ll(e,t)}catch(n){if(!(e instanceof G))throw n}}:function(e,t){X.call(e,t)};_.pro
totype=Object.create(S.prototype),D(_.prototype,{appendChild:function(e){return
this.insertBefore(e,null)},insertBefore:function(e,n){t(e);var r;n?j(n)?r=P(n):(
r=n,n=A(r)):(n=null,r=null),n&&O(n.parentNode===this);var o,s=n?n.previousSiblin
g:this.lastChild,c=!this.invalidateShadowRenderer()&&!g(e);if(o=c?a(e):i(e,this,
s,n),c)h(this,e),w(this),$.call(I(this),P(e),r);else{s||(this.firstChild_=o[0]),
n||(this.lastChild_=o[o.length-1],void 0===this.firstChild_&&(this.firstChild_=t
his.firstChild));var l=r?r.parentNode:I(this);l?$.call(l,m(this,o),r):f(this,o)}
return N(this,"childList",{addedNodes:o,nextSibling:n,previousSibling:s}),u(o,th
is),e},removeChild:function(e){if(t(e),e.parentNode!==this){for(var r=!1,o=(this
.childNodes,this.firstChild);o;o=o.nextSibling)if(o===e){r=!0;break}if(!r)throw
new Error("NotFoundError")}var i=P(e),a=e.nextSibling,s=e.previousSibling;if(thi
s.invalidateShadowRenderer()){var c=this.firstChild,l=this.lastChild,u=i.parentN
ode;u&&J(u,i),c===e&&(this.firstChild_=a),l===e&&(this.lastChild_=s),s&&(s.nextS
ibling_=a),a&&(a.previousSibling_=s),e.previousSibling_=e.nextSibling_=e.parentN
ode_=void 0}else w(this),J(I(this),i);return U||N(this,"childList",{removedNodes
:n(e),nextSibling:a,previousSibling:s}),H(this,e),e},replaceChild:function(e,r){
t(e);var o;if(j(r)?o=P(r):(o=r,r=A(o)),r.parentNode!==this)throw new Error("NotF
oundError");var s,c=r.nextSibling,l=r.previousSibling,p=!this.invalidateShadowRe
nderer()&&!g(e);return p?s=a(e):(c===e&&(c=e.nextSibling),s=i(e,this,l,c)),p?(h(
this,e),w(this),Y.call(I(this),P(e),o)):(this.firstChild===r&&(this.firstChild_=
s[0]),this.lastChild===r&&(this.lastChild_=s[s.length-1]),r.previousSibling_=r.n
extSibling_=r.parentNode_=void 0,o.parentNode&&Y.call(o.parentNode,m(this,s),o))
,N(this,"childList",{addedNodes:s,removedNodes:n(r),nextSibling:c,previousSiblin
g:l}),d(r),u(s,this),r},nodeIsInserted_:function(){for(var e=this.firstChild;e;e
=e.nextSibling)e.nodeIsInserted_()},hasChildNodes:function(){return null!==this.
firstChild},get parentNode(){return void 0!==this.parentNode_?this.parentNode_:A
(I(this).parentNode)},get firstChild(){return void 0!==this.firstChild_?this.fir
stChild_:A(I(this).firstChild)},get lastChild(){return void 0!==this.lastChild_?
this.lastChild_:A(I(this).lastChild)},get nextSibling(){return void 0!==this.nex
tSibling_?this.nextSibling_:A(I(this).nextSibling)},get previousSibling(){return
void 0!==this.previousSibling_?this.previousSibling_:A(I(this).previousSibling)
},get parentElement(){for(var e=this.parentNode;e&&e.nodeType!==_.ELEMENT_NODE;)
e=e.parentNode;return e},get textContent(){for(var e="",t=this.firstChild;t;t=t.
nextSibling)t.nodeType!=_.COMMENT_NODE&&(e+=t.textContent);return e},set textCon
tent(e){null==e&&(e="");var t=c(this.childNodes);if(this.invalidateShadowRendere
r()){if(v(this),""!==e){var n=I(this).ownerDocument.createTextNode(e);this.appen
dChild(n)}}else w(this),I(this).textContent=e;var r=c(this.childNodes);N(this,"c
hildList",{addedNodes:r,removedNodes:t}),p(t),u(r,this)},get childNodes(){for(va
r e=new T,t=0,n=this.firstChild;n;n=n.nextSibling)e[t++]=n;return e.length=t,e},
cloneNode:function(e){return y(this,e)},contains:function(e){return E(this,W(e))
},compareDocumentPosition:function(e){return z.call(I(this),k(e))},isEqualNode:f
unction(e){return K.call(I(this),k(e))},normalize:function(){for(var e,t,n=c(thi
s.childNodes),r=[],o="",i=0;i<n.length;i++)t=n[i],t.nodeType===_.TEXT_NODE?e||t.
data.length?e?(o+=t.data,r.push(t)):e=t:this.removeChild(t):(e&&r.length&&(e.dat
a+=o,b(r)),r=[],o="",e=null,t.childNodes.length&&t.normalize());e&&r.length&&(e.
data+=o,b(r))}}),L(_,"ownerDocument"),x(V,_,document.createDocumentFragment()),d
elete _.prototype.querySelector,delete _.prototype.querySelectorAll,_.prototype=
D(Object.create(S.prototype),_.prototype),e.cloneNode=y,e.nodeWasAdded=l,e.nodeW
asRemoved=d,e.nodesWereAdded=u,e.nodesWereRemoved=p,e.originalInsertBefore=$,e.o
riginalRemoveChild=X,e.snapshotNodeList=c,e.wrappers.Node=_}(window.ShadowDOMPol
yfill),function(e){"use strict";function t(t,n,r,o){for(var i=null,a=null,s=0,c=
t.length;c>s;s++)i=b(t[s]),!o&&(a=v(i).root)&&a instanceof e.wrappers.ShadowRoot
||(r[n++]=i);return n}function n(e){return String(e).replace(/\/deep\/|::shadow|
>>>/g," ")}function r(e){return String(e).replace(/:host\(([^\s]+)\)/g,"$1").rep
lace(/([^\s]):host/g,"$1").replace(":host","*").replace(/\^|\/shadow\/|\/shadow-
deep\/|::shadow|\/deep\/|::content|>>>/g," ")}function o(e,t){for(var n,r=e.firs
tElementChild;r;){if(r.matches(t))return r;if(n=o(r,t))return n;r=r.nextElementS
ibling}return null}function i(e,t){return e.matches(t)}function a(e,t,n){var r=e
.localName;return r===t||r===n&&e.namespaceURI===j}function s(){return!0}functio
n c(e,t,n){return e.localName===n}function l(e,t){return e.namespaceURI===t}func
tion u(e,t,n){return e.namespaceURI===t&&e.localName===n}function d(e,t,n,r,o,i)
{for(var a=e.firstElementChild;a;)r(a,o,i)&&(n[t++]=a),t=d(a,t,n,r,o,i),a=a.next
ElementSibling;return t}function p(n,r,o,i,a){var s,c=g(this),l=v(this).root;if(
l instanceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,null);if(c instanceof N
)s=S.call(c,i);else{if(!(c instanceof C))return d(this,r,o,n,i,null);s=_.call(c,
i)}return t(s,r,o,a)}function h(n,r,o,i,a){var s,c=g(this),l=v(this).root;if(l i
nstanceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,a);if(c instanceof N)s=M.c
all(c,i,a);else{if(!(c instanceof C))return d(this,r,o,n,i,a);s=T.call(c,i,a)}re
turn t(s,r,o,!1)}function f(n,r,o,i,a){var s,c=g(this),l=v(this).root;if(l insta
nceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,a);if(c instanceof N)s=L.call(
c,i,a);else{if(!(c instanceof C))return d(this,r,o,n,i,a);s=O.call(c,i,a)}return
t(s,r,o,!1)}var m=e.wrappers.HTMLCollection,w=e.wrappers.NodeList,v=e.getTreeSc
ope,g=e.unsafeUnwrap,b=e.wrap,y=document.querySelector,E=document.documentElemen
t.querySelector,_=document.querySelectorAll,S=document.documentElement.querySele
ctorAll,T=document.getElementsByTagName,M=document.documentElement.getElementsBy
TagName,O=document.getElementsByTagNameNS,L=document.documentElement.getElements
ByTagNameNS,N=window.Element,C=window.HTMLDocument||window.Document,j="http://ww
w.w3.org/1999/xhtml",D={ | 11 window.WebComponents=window.WebComponents||{},function(e){var t=e.flags||{},n="w
ebcomponents.js",r=document.querySelector('script[src*="'+n+'"]');if(!t.noOpts){
if(location.search.slice(1).split("&").forEach(function(e){e=e.split("="),e[0]&&
(t[e[0]]=e[1]||!0)}),r)for(var o,i=0;o=r.attributes[i];i++)"src"!==o.name&&(t[o.
name]=o.value||!0);if(t.log&&t.log.split){var a=t.log.split(",");t.log={},a.forE
ach(function(e){t.log[e]=!0})}else t.log={}}t.shadow=t.shadow||t.shadowdom||t.po
lyfill,t.shadow="native"===t.shadow?!1:t.shadow||!HTMLElement.prototype.createSh
adowRoot,t.register&&(window.CustomElements=window.CustomElements||{flags:{}},wi
ndow.CustomElements.flags.register=t.register),e.flags=t}(WebComponents),WebComp
onents.flags.shadow&&("undefined"==typeof WeakMap&&!function(){var e=Object.defi
neProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0
)+(t++ +"__")};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]=
==t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){var t;
return(t=e[this.name])&&t[0]===e?t[1]:void 0},"delete":function(e){var t=e[this.
name];return t&&t[0]===e?(t[0]=t[1]=void 0,!0):!1},has:function(e){var t=e[this.
name];return t?t[0]===e:!1}},window.WeakMap=n}(),window.ShadowDOMPolyfill={},fun
ction(e){"use strict";function t(){if("undefined"!=typeof chrome&&chrome.app&&ch
rome.app.runtime)return!1;if(navigator.getDeviceStorage)return!1;try{var e=new F
unction("return true;");return e()}catch(t){return!1}}function n(e){if(!e)throw
new Error("Assertion failed")}function r(e,t){for(var n=W(t),r=0;r<n.length;r++)
{var o=n[r];A(e,o,F(t,o))}return e}function o(e,t){for(var n=W(t),r=0;r<n.length
;r++){var o=n[r];switch(o){case"arguments":case"caller":case"length":case"name":
case"prototype":case"toString":continue}A(e,o,F(t,o))}return e}function i(e,t){f
or(var n=0;n<t.length;n++)if(t[n]in e)return t[n]}function a(e,t,n){U.value=n,A(
e,t,U)}function s(e){var t=e.__proto__||Object.getPrototypeOf(e);if(q)try{W(t)}c
atch(n){t=t.__proto__}var r=R.get(t);if(r)return r;var o=s(t),i=E(o);return g(t,
i,e),i}function c(e,t){w(e,t,!0)}function l(e,t){w(t,e,!1)}function u(e){return/
^on[a-z]+$/.test(e)}function d(e){return/^[a-zA-Z_$][a-zA-Z_$0-9]*$/.test(e)}fun
ction p(e){return k&&d(e)?new Function("return this.__impl4cf1e782hg__."+e):func
tion(){return this.__impl4cf1e782hg__[e]}}function h(e){return k&&d(e)?new Funct
ion("v","this.__impl4cf1e782hg__."+e+" = v"):function(t){this.__impl4cf1e782hg__
[e]=t}}function f(e){return k&&d(e)?new Function("return this.__impl4cf1e782hg__
."+e+".apply(this.__impl4cf1e782hg__, arguments)"):function(){return this.__impl
4cf1e782hg__[e].apply(this.__impl4cf1e782hg__,arguments)}}function m(e,t){try{re
turn Object.getOwnPropertyDescriptor(e,t)}catch(n){return B}}function w(t,n,r,o)
{for(var i=W(t),a=0;a<i.length;a++){var s=i[a];if("polymerBlackList_"!==s&&!(s i
n n||t.polymerBlackList_&&t.polymerBlackList_[s])){q&&t.__lookupGetter__(s);var
c,l,d=m(t,s);if(r&&"function"==typeof d.value)n[s]=f(s);else{var w=u(s);c=w?e.ge
tEventHandlerGetter(s):p(s),(d.writable||d.set||V)&&(l=w?e.getEventHandlerSetter
(s):h(s));var v=V||d.configurable;A(n,s,{get:c,set:l,configurable:v,enumerable:d
.enumerable})}}}}function v(e,t,n){var r=e.prototype;g(r,t,n),o(t,e)}function g(
e,t,r){var o=t.prototype;n(void 0===R.get(e)),R.set(e,t),I.set(o,e),c(e,o),r&&l(
o,r),a(o,"constructor",t),t.prototype=o}function b(e,t){return R.get(t.prototype
)===e}function y(e){var t=Object.getPrototypeOf(e),n=s(t),r=E(n);return g(t,r,e)
,r}function E(e){function t(t){e.call(this,t)}var n=Object.create(e.prototype);r
eturn n.constructor=t,t.prototype=n,t}function _(e){return e&&e.__impl4cf1e782hg
__}function S(e){return!_(e)}function T(e){return null===e?null:(n(S(e)),e.__wra
pper8e3dd93a60__||(e.__wrapper8e3dd93a60__=new(s(e))(e)))}function M(e){return n
ull===e?null:(n(_(e)),e.__impl4cf1e782hg__)}function O(e){return e.__impl4cf1e78
2hg__}function L(e,t){t.__impl4cf1e782hg__=e,e.__wrapper8e3dd93a60__=t}function
N(e){return e&&_(e)?M(e):e}function C(e){return e&&!_(e)?T(e):e}function j(e,t){
null!==t&&(n(S(e)),n(void 0===t||_(t)),e.__wrapper8e3dd93a60__=t)}function D(e,t
,n){G.get=n,A(e.prototype,t,G)}function H(e,t){D(e,t,function(){return T(this.__
impl4cf1e782hg__[t])})}function x(e,t){e.forEach(function(e){t.forEach(function(
t){e.prototype[t]=function(){var e=C(this);return e[t].apply(e,arguments)}})})}v
ar R=new WeakMap,I=new WeakMap,P=Object.create(null),k=t(),A=Object.defineProper
ty,W=Object.getOwnPropertyNames,F=Object.getOwnPropertyDescriptor,U={value:void
0,configurable:!0,enumerable:!1,writable:!0};W(window);var q=/Firefox/.test(navi
gator.userAgent),B={get:function(){},set:function(e){},configurable:!0,enumerabl
e:!0},V=function(){var e=Object.getOwnPropertyDescriptor(Node.prototype,"nodeTyp
e");return e&&!e.get&&!e.set}(),G={get:void 0,configurable:!0,enumerable:!0};e.a
ssert=n,e.constructorTable=R,e.defineGetter=D,e.defineWrapGetter=H,e.forwardMeth
odsToWrapper=x,e.isIdentifierName=d,e.isWrapper=_,e.isWrapperFor=b,e.mixin=r,e.n
ativePrototypeTable=I,e.oneOf=i,e.registerObject=y,e.registerWrapper=v,e.rewrap=
j,e.setWrapper=L,e.unsafeUnwrap=O,e.unwrap=M,e.unwrapIfNeeded=N,e.wrap=T,e.wrapI
fNeeded=C,e.wrappers=P}(window.ShadowDOMPolyfill),function(e){"use strict";funct
ion t(e,t,n){return{index:e,removed:t,addedCount:n}}function n(){}var r=0,o=1,i=
2,a=3;n.prototype={calcEditDistances:function(e,t,n,r,o,i){for(var a=i-o+1,s=n-t
+1,c=new Array(a),l=0;a>l;l++)c[l]=new Array(s),c[l][0]=l;for(var u=0;s>u;u++)c[
0][u]=u;for(var l=1;a>l;l++)for(var u=1;s>u;u++)if(this.equals(e[t+u-1],r[o+l-1]
))c[l][u]=c[l-1][u-1];else{var d=c[l-1][u]+1,p=c[l][u-1]+1;c[l][u]=p>d?d:p}retur
n c},spliceOperationsFromEditDistances:function(e){for(var t=e.length-1,n=e[0].l
ength-1,s=e[t][n],c=[];t>0||n>0;)if(0!=t)if(0!=n){var l,u=e[t-1][n-1],d=e[t-1][n
],p=e[t][n-1];l=p>d?u>d?d:u:u>p?p:u,l==u?(u==s?c.push(r):(c.push(o),s=u),t--,n--
):l==d?(c.push(a),t--,s=d):(c.push(i),n--,s=p)}else c.push(a),t--;else c.push(i)
,n--;return c.reverse(),c},calcSplices:function(e,n,s,c,l,u){var d=0,p=0,h=Math.
min(s-n,u-l);if(0==n&&0==l&&(d=this.sharedPrefix(e,c,h)),s==e.length&&u==c.lengt
h&&(p=this.sharedSuffix(e,c,h-d)),n+=d,l+=d,s-=p,u-=p,s-n==0&&u-l==0)return[];if
(n==s){for(var f=t(n,[],0);u>l;)f.removed.push(c[l++]);return[f]}if(l==u)return[
t(n,[],s-n)];for(var m=this.spliceOperationsFromEditDistances(this.calcEditDista
nces(e,n,s,c,l,u)),f=void 0,w=[],v=n,g=l,b=0;b<m.length;b++)switch(m[b]){case r:
f&&(w.push(f),f=void 0),v++,g++;break;case o:f||(f=t(v,[],0)),f.addedCount++,v++
,f.removed.push(c[g]),g++;break;case i:f||(f=t(v,[],0)),f.addedCount++,v++;break
;case a:f||(f=t(v,[],0)),f.removed.push(c[g]),g++}return f&&w.push(f),w},sharedP
refix:function(e,t,n){for(var r=0;n>r;r++)if(!this.equals(e[r],t[r]))return r;re
turn n},sharedSuffix:function(e,t,n){for(var r=e.length,o=t.length,i=0;n>i&&this
.equals(e[--r],t[--o]);)i++;return i},calculateSplices:function(e,t){return this
.calcSplices(e,0,e.length,t,0,t.length)},equals:function(e,t){return e===t}},e.A
rraySplice=n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(){a=
!1;var e=i.slice(0);i=[];for(var t=0;t<e.length;t++)e[t]()}function n(e){i.push(
e),a||(a=!0,r(t,0))}var r,o=window.MutationObserver,i=[],a=!1;if(o){var s=1,c=ne
w o(t),l=document.createTextNode(s);c.observe(l,{characterData:!0}),r=function()
{s=(s+1)%2,l.data=s}}else r=window.setTimeout;e.setEndOfMicrotask=n}(window.Shad
owDOMPolyfill),function(e){"use strict";function t(e){e.scheduled_||(e.scheduled
_=!0,f.push(e),m||(u(n),m=!0))}function n(){for(m=!1;f.length;){var e=f;f=[],e.s
ort(function(e,t){return e.uid_-t.uid_});for(var t=0;t<e.length;t++){var n=e[t];
n.scheduled_=!1;var r=n.takeRecords();i(n),r.length&&n.callback_(r,n)}}}function
r(e,t){this.type=e,this.target=t,this.addedNodes=new p.NodeList,this.removedNod
es=new p.NodeList,this.previousSibling=null,this.nextSibling=null,this.attribute
Name=null,this.attributeNamespace=null,this.oldValue=null}function o(e,t){for(;e
;e=e.parentNode){var n=h.get(e);if(n)for(var r=0;r<n.length;r++){var o=n[r];o.op
tions.subtree&&o.addTransientObserver(t)}}}function i(e){for(var t=0;t<e.nodes_.
length;t++){var n=e.nodes_[t],r=h.get(n);if(!r)return;for(var o=0;o<r.length;o++
){var i=r[o];i.observer===e&&i.removeTransientObservers()}}}function a(e,n,o){fo
r(var i=Object.create(null),a=Object.create(null),s=e;s;s=s.parentNode){var c=h.
get(s);if(c)for(var l=0;l<c.length;l++){var u=c[l],d=u.options;if((s===e||d.subt
ree)&&!("attributes"===n&&!d.attributes||"attributes"===n&&d.attributeFilter&&(n
ull!==o.namespace||-1===d.attributeFilter.indexOf(o.name))||"characterData"===n&
&!d.characterData||"childList"===n&&!d.childList)){var p=u.observer;i[p.uid_]=p,
("attributes"===n&&d.attributeOldValue||"characterData"===n&&d.characterDataOldV
alue)&&(a[p.uid_]=o.oldValue)}}}for(var f in i){var p=i[f],m=new r(n,e);"name"in
o&&"namespace"in o&&(m.attributeName=o.name,m.attributeNamespace=o.namespace),o
.addedNodes&&(m.addedNodes=o.addedNodes),o.removedNodes&&(m.removedNodes=o.remov
edNodes),o.previousSibling&&(m.previousSibling=o.previousSibling),o.nextSibling&
&(m.nextSibling=o.nextSibling),void 0!==a[f]&&(m.oldValue=a[f]),t(p),p.records_.
push(m)}}function s(e){if(this.childList=!!e.childList,this.subtree=!!e.subtree,
this.attributes="attributes"in e||!("attributeOldValue"in e||"attributeFilter"in
e)?!!e.attributes:!0,this.characterData="characterDataOldValue"in e&&!("charact
erData"in e)?!0:!!e.characterData,!this.attributes&&(e.attributeOldValue||"attri
buteFilter"in e)||!this.characterData&&e.characterDataOldValue)throw new TypeErr
or;if(this.characterData=!!e.characterData,this.attributeOldValue=!!e.attributeO
ldValue,this.characterDataOldValue=!!e.characterDataOldValue,"attributeFilter"in
e){if(null==e.attributeFilter||"object"!=typeof e.attributeFilter)throw new Typ
eError;this.attributeFilter=w.call(e.attributeFilter)}else this.attributeFilter=
null}function c(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++
v,this.scheduled_=!1}function l(e,t,n){this.observer=e,this.target=t,this.option
s=n,this.transientObservedNodes=[]}var u=e.setEndOfMicrotask,d=e.wrapIfNeeded,p=
e.wrappers,h=new WeakMap,f=[],m=!1,w=Array.prototype.slice,v=0;c.prototype={cons
tructor:c,observe:function(e,t){e=d(e);var n,r=new s(t),o=h.get(e);o||h.set(e,o=
[]);for(var i=0;i<o.length;i++)o[i].observer===this&&(n=o[i],n.removeTransientOb
servers(),n.options=r);n||(n=new l(this,e,r),o.push(n),this.nodes_.push(e))},dis
connect:function(){this.nodes_.forEach(function(e){for(var t=h.get(e),n=0;n<t.le
ngth;n++){var r=t[n];if(r.observer===this){t.splice(n,1);break}}},this),this.rec
ords_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}}
,l.prototype={addTransientObserver:function(e){if(e!==this.target){t(this.observ
er),this.transientObservedNodes.push(e);var n=h.get(e);n||h.set(e,n=[]),n.push(t
his)}},removeTransientObservers:function(){var e=this.transientObservedNodes;thi
s.transientObservedNodes=[];for(var t=0;t<e.length;t++)for(var n=e[t],r=h.get(n)
,o=0;o<r.length;o++)if(r[o]===this){r.splice(o,1);break}}},e.enqueueMutation=a,e
.registerTransientObservers=o,e.wrappers.MutationObserver=c,e.wrappers.MutationR
ecord=r}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e,t){this
.root=e,this.parent=t}function n(e,t){if(e.treeScope_!==t){e.treeScope_=t;for(va
r r=e.shadowRoot;r;r=r.olderShadowRoot)r.treeScope_.parent=t;for(var o=e.firstCh
ild;o;o=o.nextSibling)n(o,t)}}function r(n){if(n instanceof e.wrappers.Window,n.
treeScope_)return n.treeScope_;var o,i=n.parentNode;return o=i?r(i):new t(n,null
),n.treeScope_=o}t.prototype={get renderer(){return this.root instanceof e.wrapp
ers.ShadowRoot?e.getRendererForHost(this.root.host):null},contains:function(e){f
or(;e;e=e.parent)if(e===this)return!0;return!1}},e.TreeScope=t,e.getTreeScope=r,
e.setTreeScope=n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(
e){return e instanceof G.ShadowRoot}function n(e){return A(e).root}function r(e,
r){var s=[],c=e;for(s.push(c);c;){var l=a(c);if(l&&l.length>0){for(var u=0;u<l.l
ength;u++){var p=l[u];if(i(p)){var h=n(p),f=h.olderShadowRoot;f&&s.push(f)}s.pus
h(p)}c=l[l.length-1]}else if(t(c)){if(d(e,c)&&o(r))break;c=c.host,s.push(c)}else
c=c.parentNode,c&&s.push(c)}return s}function o(e){if(!e)return!1;switch(e.type
){case"abort":case"error":case"select":case"change":case"load":case"reset":case"
resize":case"scroll":case"selectstart":return!0}return!1}function i(e){return e
instanceof HTMLShadowElement}function a(t){return e.getDestinationInsertionPoint
s(t)}function s(e,t){if(0===e.length)return t;t instanceof G.Window&&(t=t.docume
nt);for(var n=A(t),r=e[0],o=A(r),i=l(n,o),a=0;a<e.length;a++){var s=e[a];if(A(s)
===i)return s}return e[e.length-1]}function c(e){for(var t=[];e;e=e.parent)t.pus
h(e);return t}function l(e,t){for(var n=c(e),r=c(t),o=null;n.length>0&&r.length>
0;){var i=n.pop(),a=r.pop();if(i!==a)break;o=i}return o}function u(e,t,n){t inst
anceof G.Window&&(t=t.document);var o,i=A(t),a=A(n),s=r(n,e),o=l(i,a);o||(o=a.ro
ot);for(var c=o;c;c=c.parent)for(var u=0;u<s.length;u++){var d=s[u];if(A(d)===c)
return d}return null}function d(e,t){return A(e)===A(t)}function p(e){if(!K.get(
e)&&(K.set(e,!0),f(V(e),V(e.target)),P)){var t=P;throw P=null,t}}function h(e){s
witch(e.type){case"load":case"beforeunload":case"unload":return!0}return!1}funct
ion f(t,n){if(Y.get(t))throw new Error("InvalidStateError");Y.set(t,!0),e.render
AllPending();var o,i,a;if(h(t)&&!t.bubbles){var s=n;s instanceof G.Document&&(a=
s.defaultView)&&(i=s,o=[])}if(!o)if(n instanceof G.Window)a=n,o=[];else if(o=r(n
,t),!h(t)){var s=o[o.length-1];s instanceof G.Document&&(a=s.defaultView)}return
ne.set(t,o),m(t,o,a,i)&&w(t,o,a,i)&&v(t,o,a,i),J.set(t,re),X["delete"](t,null),
Y["delete"](t),t.defaultPrevented}function m(e,t,n,r){var o=oe;if(n&&!g(n,e,o,t,
r))return!1;for(var i=t.length-1;i>0;i--)if(!g(t[i],e,o,t,r))return!1;return!0}f
unction w(e,t,n,r){var o=ie,i=t[0]||n;return g(i,e,o,t,r)}function v(e,t,n,r){fo
r(var o=ae,i=1;i<t.length;i++)if(!g(t[i],e,o,t,r))return;n&&t.length>0&&g(n,e,o,
t,r)}function g(e,t,n,r,o){var i=z.get(e);if(!i)return!0;var a=o||s(r,e);if(a===
e){if(n===oe)return!0;n===ae&&(n=ie)}else if(n===ae&&!t.bubbles)return!0;if("rel
atedTarget"in t){var c=B(t),l=c.relatedTarget;if(l){if(l instanceof Object&&l.ad
dEventListener){var d=V(l),p=u(t,e,d);if(p===a)return!0}else p=null;Z.set(t,p)}}
J.set(t,n);var h=t.type,f=!1;$.set(t,a),X.set(t,e),i.depth++;for(var m=0,w=i.len
gth;w>m;m++){var v=i[m];if(v.removed)f=!0;else if(!(v.type!==h||!v.capture&&n===
oe||v.capture&&n===ae))try{if("function"==typeof v.handler?v.handler.call(e,t):v
.handler.handleEvent(t),ee.get(t))return!1}catch(g){P||(P=g)}}if(i.depth--,f&&0=
==i.depth){var b=i.slice();i.length=0;for(var m=0;m<b.length;m++)b[m].removed||i
.push(b[m])}return!Q.get(t)}function b(e,t,n){this.type=e,this.handler=t,this.ca
pture=Boolean(n)}function y(e,t){if(!(e instanceof se))return V(T(se,"Event",e,t
));var n=e;return ge||"beforeunload"!==n.type||this instanceof M?void U(n,this):
new M(n)}function E(e){return e&&e.relatedTarget?Object.create(e,{relatedTarget:
{value:B(e.relatedTarget)}}):e}function _(e,t,n){var r=window[e],o=function(t,n)
{return t instanceof r?void U(t,this):V(T(r,e,t,n))};if(o.prototype=Object.creat
e(t.prototype),n&&W(o.prototype,n),r)try{F(r,o,new r("temp"))}catch(i){F(r,o,doc
ument.createEvent(e))}return o}function S(e,t){return function(){arguments[t]=B(
arguments[t]);var n=B(this);n[e].apply(n,arguments)}}function T(e,t,n,r){if(we)r
eturn new e(n,E(r));var o=B(document.createEvent(t)),i=me[t],a=[n];return Object
.keys(i).forEach(function(e){var t=null!=r&&e in r?r[e]:i[e];"relatedTarget"===e
&&(t=B(t)),a.push(t)}),o["init"+t].apply(o,a),o}function M(e){y.call(this,e)}fun
ction O(e){return"function"==typeof e?!0:e&&e.handleEvent}function L(e){switch(e
){case"DOMAttrModified":case"DOMAttributeNameChanged":case"DOMCharacterDataModif
ied":case"DOMElementNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoD
ocument":case"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeMo
dified":return!0}return!1}function N(e){U(e,this)}function C(e){return e instanc
eof G.ShadowRoot&&(e=e.host),B(e)}function j(e,t){var n=z.get(e);if(n)for(var r=
0;r<n.length;r++)if(!n[r].removed&&n[r].type===t)return!0;return!1}function D(e,
t){for(var n=B(e);n;n=n.parentNode)if(j(V(n),t))return!0;return!1}function H(e){
k(e,ye)}function x(t,n,o,i){e.renderAllPending();var a=V(Ee.call(q(n),o,i));if(!
a)return null;var c=r(a,null),l=c.lastIndexOf(t);return-1==l?null:(c=c.slice(0,l
),s(c,t))}function R(e){return function(){var t=te.get(this);return t&&t[e]&&t[e
].value||null}}function I(e){var t=e.slice(2);return function(n){var r=te.get(th
is);r||(r=Object.create(null),te.set(this,r));var o=r[e];if(o&&this.removeEventL
istener(t,o.wrapped,!1),"function"==typeof n){var i=function(t){var r=n.call(thi
s,t);r===!1?t.preventDefault():"onbeforeunload"===e&&"string"==typeof r&&(t.retu
rnValue=r)};this.addEventListener(t,i,!1),r[e]={value:n,wrapped:i}}}}var P,k=e.f
orwardMethodsToWrapper,A=e.getTreeScope,W=e.mixin,F=e.registerWrapper,U=e.setWra
pper,q=e.unsafeUnwrap,B=e.unwrap,V=e.wrap,G=e.wrappers,z=(new WeakMap,new WeakMa
p),K=new WeakMap,Y=new WeakMap,$=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new W
eakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,re=0,oe=1,ie=2
,ae=3;b.prototype={equals:function(e){return this.handler===e.handler&&this.type
===e.type&&this.capture===e.capture},get removed(){return null===this.handler},r
emove:function(){this.handler=null}};var se=window.Event;se.prototype.polymerBla
ckList_={returnValue:!0,keyLocation:!0},y.prototype={get target(){return $.get(t
his)},get currentTarget(){return X.get(this)},get eventPhase(){return J.get(this
)},get path(){var e=ne.get(this);return e?e.slice():[]},stopPropagation:function
(){Q.set(this,!0)},stopImmediatePropagation:function(){Q.set(this,!0),ee.set(thi
s,!0)}},F(se,y,document.createEvent("Event"));var ce=_("UIEvent",y),le=_("Custom
Event",y),ue={get relatedTarget(){var e=Z.get(this);return void 0!==e?e:V(B(this
).relatedTarget)}},de=W({initMouseEvent:S("initMouseEvent",14)},ue),pe=W({initFo
cusEvent:S("initFocusEvent",5)},ue),he=_("MouseEvent",ce,de),fe=_("FocusEvent",c
e,pe),me=Object.create(null),we=function(){try{new window.FocusEvent("focus")}ca
tch(e){return!1}return!0}();if(!we){var ve=function(e,t,n){if(n){var r=me[n];t=W
(W({},r),t)}me[e]=t};ve("Event",{bubbles:!1,cancelable:!1}),ve("CustomEvent",{de
tail:null},"Event"),ve("UIEvent",{view:null,detail:0},"Event"),ve("MouseEvent",{
screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey
:!1,button:0,relatedTarget:null},"UIEvent"),ve("FocusEvent",{relatedTarget:null}
,"UIEvent")}var ge=window.BeforeUnloadEvent;M.prototype=Object.create(y.prototyp
e),W(M.prototype,{get returnValue(){return q(this).returnValue},set returnValue(
e){q(this).returnValue=e}}),ge&&F(ge,M);var be=window.EventTarget,ye=["addEventL
istener","removeEventListener","dispatchEvent"];[Node,Window].forEach(function(e
){var t=e.prototype;ye.forEach(function(e){Object.defineProperty(t,e+"_",{value:
t[e]})})}),N.prototype={addEventListener:function(e,t,n){if(O(t)&&!L(e)){var r=n
ew b(e,t,n),o=z.get(this);if(o){for(var i=0;i<o.length;i++)if(r.equals(o[i]))ret
urn}else o=[],o.depth=0,z.set(this,o);o.push(r);var a=C(this);a.addEventListener
_(e,p,!0)}},removeEventListener:function(e,t,n){n=Boolean(n);var r=z.get(this);i
f(r){for(var o=0,i=!1,a=0;a<r.length;a++)r[a].type===e&&r[a].capture===n&&(o++,r
[a].handler===t&&(i=!0,r[a].remove()));if(i&&1===o){var s=C(this);s.removeEventL
istener_(e,p,!0)}}},dispatchEvent:function(t){var n=B(t),r=n.type;K.set(n,!1),e.
renderAllPending();var o;D(this,r)||(o=function(){},this.addEventListener(r,o,!0
));try{return B(this).dispatchEvent_(n)}finally{o&&this.removeEventListener(r,o,
!0)}}},be&&F(be,N);var Ee=document.elementFromPoint;e.elementFromPoint=x,e.getEv
entHandlerGetter=R,e.getEventHandlerSetter=I,e.wrapEventTargetMethods=H,e.wrappe
rs.BeforeUnloadEvent=M,e.wrappers.CustomEvent=le,e.wrappers.Event=y,e.wrappers.E
ventTarget=N,e.wrappers.FocusEvent=fe,e.wrappers.MouseEvent=he,e.wrappers.UIEven
t=ce}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e,t){Object.
defineProperty(e,t,m)}function n(e){l(e,this)}function r(){this.length=0,t(this,
"length")}function o(e){for(var t=new r,o=0;o<e.length;o++)t[o]=new n(e[o]);retu
rn t.length=o,t}function i(e){a.call(this,e)}var a=e.wrappers.UIEvent,s=e.mixin,
c=e.registerWrapper,l=e.setWrapper,u=e.unsafeUnwrap,d=e.wrap,p=window.TouchEvent
;if(p){var h;try{h=document.createEvent("TouchEvent")}catch(f){return}var m={enu
merable:!1};n.prototype={get target(){return d(u(this).target)}};var w={configur
able:!0,enumerable:!0,get:null};["clientX","clientY","screenX","screenY","pageX"
,"pageY","identifier","webkitRadiusX","webkitRadiusY","webkitRotationAngle","web
kitForce"].forEach(function(e){w.get=function(){return u(this)[e]},Object.define
Property(n.prototype,e,w)}),r.prototype={item:function(e){return this[e]}},i.pro
totype=Object.create(a.prototype),s(i.prototype,{get touches(){return o(u(this).
touches)},get targetTouches(){return o(u(this).targetTouches)},get changedTouche
s(){return o(u(this).changedTouches)},initTouchEvent:function(){throw new Error(
"Not implemented")}}),c(p,i,h),e.wrappers.Touch=n,e.wrappers.TouchEvent=i,e.wrap
pers.TouchList=r}}(window.ShadowDOMPolyfill),function(e){"use strict";function t
(e,t){Object.defineProperty(e,t,s)}function n(){this.length=0,t(this,"length")}f
unction r(e){if(null==e)return e;for(var t=new n,r=0,o=e.length;o>r;r++)t[r]=a(e
[r]);return t.length=o,t}function o(e,t){e.prototype[t]=function(){return r(i(th
is)[t].apply(i(this),arguments))}}var i=e.unsafeUnwrap,a=e.wrap,s={enumerable:!1
};n.prototype={item:function(e){return this[e]}},t(n.prototype,"item"),e.wrapper
s.NodeList=n,e.addWrapNodeListMethod=o,e.wrapNodeList=r}(window.ShadowDOMPolyfil
l),function(e){"use strict";e.wrapHTMLCollection=e.wrapNodeList,e.wrappers.HTMLC
ollection=e.wrappers.NodeList}(window.ShadowDOMPolyfill),function(e){"use strict
";function t(e){O(e instanceof _)}function n(e){var t=new T;return t[0]=e,t.leng
th=1,t}function r(e,t,n){N(t,"childList",{removedNodes:n,previousSibling:e.previ
ousSibling,nextSibling:e.nextSibling})}function o(e,t){N(e,"childList",{removedN
odes:t})}function i(e,t,r,o){if(e instanceof DocumentFragment){var i=s(e);U=!0;f
or(var a=i.length-1;a>=0;a--)e.removeChild(i[a]),i[a].parentNode_=t;U=!1;for(var
a=0;a<i.length;a++)i[a].previousSibling_=i[a-1]||r,i[a].nextSibling_=i[a+1]||o;
return r&&(r.nextSibling_=i[0]),o&&(o.previousSibling_=i[i.length-1]),i}var i=n(
e),c=e.parentNode;return c&&c.removeChild(e),e.parentNode_=t,e.previousSibling_=
r,e.nextSibling_=o,r&&(r.nextSibling_=e),o&&(o.previousSibling_=e),i}function a(
e){if(e instanceof DocumentFragment)return s(e);var t=n(e),o=e.parentNode;return
o&&r(e,o,t),t}function s(e){for(var t=new T,n=0,r=e.firstChild;r;r=r.nextSiblin
g)t[n++]=r;return t.length=n,o(e,t),t}function c(e){return e}function l(e,t){R(e
,t),e.nodeIsInserted_()}function u(e,t){for(var n=C(t),r=0;r<e.length;r++)l(e[r]
,n)}function d(e){R(e,new M(e,null))}function p(e){for(var t=0;t<e.length;t++)d(
e[t])}function h(e,t){var n=e.nodeType===_.DOCUMENT_NODE?e:e.ownerDocument;n!==t
.ownerDocument&&n.adoptNode(t)}function f(t,n){if(n.length){var r=t.ownerDocumen
t;if(r!==n[0].ownerDocument)for(var o=0;o<n.length;o++)e.adoptNodeNoRemove(n[o],
r)}}function m(e,t){f(e,t);var n=t.length;if(1===n)return P(t[0]);for(var r=P(e.
ownerDocument.createDocumentFragment()),o=0;n>o;o++)r.appendChild(P(t[o]));retur
n r}function w(e){if(void 0!==e.firstChild_)for(var t=e.firstChild_;t;){var n=t;
t=t.nextSibling_,n.parentNode_=n.previousSibling_=n.nextSibling_=void 0}e.firstC
hild_=e.lastChild_=void 0}function v(e){if(e.invalidateShadowRenderer()){for(var
t=e.firstChild;t;){O(t.parentNode===e);var n=t.nextSibling,r=P(t),o=r.parentNod
e;o&&$.call(o,r),t.previousSibling_=t.nextSibling_=t.parentNode_=null,t=n}e.firs
tChild_=e.lastChild_=null}else for(var n,i=P(e),a=i.firstChild;a;)n=a.nextSiblin
g,$.call(i,a),a=n}function g(e){var t=e.parentNode;return t&&t.invalidateShadowR
enderer()}function b(e){for(var t,n=0;n<e.length;n++)t=e[n],t.parentNode.removeC
hild(t)}function y(e,t,n){var r;if(r=A(n?q.call(n,I(e),!1):B.call(I(e),!1)),t){f
or(var o=e.firstChild;o;o=o.nextSibling)r.appendChild(y(o,!0,n));if(e instanceof
F.HTMLTemplateElement)for(var i=r.content,o=e.content.firstChild;o;o=o.nextSibl
ing)i.appendChild(y(o,!0,n))}return r}function E(e,t){if(!t||C(e)!==C(t))return!
1;for(var n=t;n;n=n.parentNode)if(n===e)return!0;return!1}function _(e){O(e inst
anceof V),S.call(this,e),this.parentNode_=void 0,this.firstChild_=void 0,this.la
stChild_=void 0,this.nextSibling_=void 0,this.previousSibling_=void 0,this.treeS
cope_=void 0}var S=e.wrappers.EventTarget,T=e.wrappers.NodeList,M=e.TreeScope,O=
e.assert,L=e.defineWrapGetter,N=e.enqueueMutation,C=e.getTreeScope,j=e.isWrapper
,D=e.mixin,H=e.registerTransientObservers,x=e.registerWrapper,R=e.setTreeScope,I
=e.unsafeUnwrap,P=e.unwrap,k=e.unwrapIfNeeded,A=e.wrap,W=e.wrapIfNeeded,F=e.wrap
pers,U=!1,q=document.importNode,B=window.Node.prototype.cloneNode,V=window.Node,
G=window.DocumentFragment,z=(V.prototype.appendChild,V.prototype.compareDocument
Position),K=V.prototype.isEqualNode,Y=V.prototype.insertBefore,$=V.prototype.rem
oveChild,X=V.prototype.replaceChild,Z=/Trident|Edge/.test(navigator.userAgent),J
=Z?function(e,t){try{$.call(e,t)}catch(n){if(!(e instanceof G))throw n}}:functio
n(e,t){$.call(e,t)};_.prototype=Object.create(S.prototype),D(_.prototype,{append
Child:function(e){return this.insertBefore(e,null)},insertBefore:function(e,n){t
(e);var r;n?j(n)?r=P(n):(r=n,n=A(r)):(n=null,r=null),n&&O(n.parentNode===this);v
ar o,s=n?n.previousSibling:this.lastChild,c=!this.invalidateShadowRenderer()&&!g
(e);if(o=c?a(e):i(e,this,s,n),c)h(this,e),w(this),Y.call(I(this),P(e),r);else{s|
|(this.firstChild_=o[0]),n||(this.lastChild_=o[o.length-1],void 0===this.firstCh
ild_&&(this.firstChild_=this.firstChild));var l=r?r.parentNode:I(this);l?Y.call(
l,m(this,o),r):f(this,o)}return N(this,"childList",{addedNodes:o,nextSibling:n,p
reviousSibling:s}),u(o,this),e},removeChild:function(e){if(t(e),e.parentNode!==t
his){for(var r=!1,o=(this.childNodes,this.firstChild);o;o=o.nextSibling)if(o===e
){r=!0;break}if(!r)throw new Error("NotFoundError")}var i=P(e),a=e.nextSibling,s
=e.previousSibling;if(this.invalidateShadowRenderer()){var c=this.firstChild,l=t
his.lastChild,u=i.parentNode;u&&J(u,i),c===e&&(this.firstChild_=a),l===e&&(this.
lastChild_=s),s&&(s.nextSibling_=a),a&&(a.previousSibling_=s),e.previousSibling_
=e.nextSibling_=e.parentNode_=void 0}else w(this),J(I(this),i);return U||N(this,
"childList",{removedNodes:n(e),nextSibling:a,previousSibling:s}),H(this,e),e},re
placeChild:function(e,r){t(e);var o;if(j(r)?o=P(r):(o=r,r=A(o)),r.parentNode!==t
his)throw new Error("NotFoundError");var s,c=r.nextSibling,l=r.previousSibling,p
=!this.invalidateShadowRenderer()&&!g(e);return p?s=a(e):(c===e&&(c=e.nextSiblin
g),s=i(e,this,l,c)),p?(h(this,e),w(this),X.call(I(this),P(e),o)):(this.firstChil
d===r&&(this.firstChild_=s[0]),this.lastChild===r&&(this.lastChild_=s[s.length-1
]),r.previousSibling_=r.nextSibling_=r.parentNode_=void 0,o.parentNode&&X.call(o
.parentNode,m(this,s),o)),N(this,"childList",{addedNodes:s,removedNodes:n(r),nex
tSibling:c,previousSibling:l}),d(r),u(s,this),r},nodeIsInserted_:function(){for(
var e=this.firstChild;e;e=e.nextSibling)e.nodeIsInserted_()},hasChildNodes:funct
ion(){return null!==this.firstChild},get parentNode(){return void 0!==this.paren
tNode_?this.parentNode_:A(I(this).parentNode)},get firstChild(){return void 0!==
this.firstChild_?this.firstChild_:A(I(this).firstChild)},get lastChild(){return
void 0!==this.lastChild_?this.lastChild_:A(I(this).lastChild)},get nextSibling()
{return void 0!==this.nextSibling_?this.nextSibling_:A(I(this).nextSibling)},get
previousSibling(){return void 0!==this.previousSibling_?this.previousSibling_:A
(I(this).previousSibling)},get parentElement(){for(var e=this.parentNode;e&&e.no
deType!==_.ELEMENT_NODE;)e=e.parentNode;return e},get textContent(){for(var e=""
,t=this.firstChild;t;t=t.nextSibling)t.nodeType!=_.COMMENT_NODE&&(e+=t.textConte
nt);return e},set textContent(e){null==e&&(e="");var t=c(this.childNodes);if(thi
s.invalidateShadowRenderer()){if(v(this),""!==e){var n=I(this).ownerDocument.cre
ateTextNode(e);this.appendChild(n)}}else w(this),I(this).textContent=e;var r=c(t
his.childNodes);N(this,"childList",{addedNodes:r,removedNodes:t}),p(t),u(r,this)
},get childNodes(){for(var e=new T,t=0,n=this.firstChild;n;n=n.nextSibling)e[t++
]=n;return e.length=t,e},cloneNode:function(e){return y(this,e)},contains:functi
on(e){return E(this,W(e))},compareDocumentPosition:function(e){return z.call(I(t
his),k(e))},isEqualNode:function(e){return K.call(I(this),k(e))},normalize:funct
ion(){for(var e,t,n=c(this.childNodes),r=[],o="",i=0;i<n.length;i++)t=n[i],t.nod
eType===_.TEXT_NODE?e||t.data.length?e?(o+=t.data,r.push(t)):e=t:this.removeChil
d(t):(e&&r.length&&(e.data+=o,b(r)),r=[],o="",e=null,t.childNodes.length&&t.norm
alize());e&&r.length&&(e.data+=o,b(r))}}),L(_,"ownerDocument"),x(V,_,document.cr
eateDocumentFragment()),delete _.prototype.querySelector,delete _.prototype.quer
ySelectorAll,_.prototype=D(Object.create(S.prototype),_.prototype),e.cloneNode=y
,e.nodeWasAdded=l,e.nodeWasRemoved=d,e.nodesWereAdded=u,e.nodesWereRemoved=p,e.o
riginalInsertBefore=Y,e.originalRemoveChild=$,e.snapshotNodeList=c,e.wrappers.No
de=_}(window.ShadowDOMPolyfill),function(e){"use strict";function t(t,n,r,o){for
(var i=null,a=null,s=0,c=t.length;c>s;s++)i=b(t[s]),!o&&(a=v(i).root)&&a instanc
eof e.wrappers.ShadowRoot||(r[n++]=i);return n}function n(e){return String(e).re
place(/\/deep\/|::shadow|>>>/g," ")}function r(e){return String(e).replace(/:hos
t\(([^\s]+)\)/g,"$1").replace(/([^\s]):host/g,"$1").replace(":host","*").replace
(/\^|\/shadow\/|\/shadow-deep\/|::shadow|\/deep\/|::content|>>>/g," ")}function
o(e,t){for(var n,r=e.firstElementChild;r;){if(r.matches(t))return r;if(n=o(r,t))
return n;r=r.nextElementSibling}return null}function i(e,t){return e.matches(t)}
function a(e,t,n){var r=e.localName;return r===t||r===n&&e.namespaceURI===j}func
tion s(){return!0}function c(e,t,n){return e.localName===n}function l(e,t){retur
n e.namespaceURI===t}function u(e,t,n){return e.namespaceURI===t&&e.localName===
n}function d(e,t,n,r,o,i){for(var a=e.firstElementChild;a;)r(a,o,i)&&(n[t++]=a),
t=d(a,t,n,r,o,i),a=a.nextElementSibling;return t}function p(n,r,o,i,a){var s,c=g
(this),l=v(this).root;if(l instanceof e.wrappers.ShadowRoot)return d(this,r,o,n,
i,null);if(c instanceof N)s=S.call(c,i);else{if(!(c instanceof C))return d(this,
r,o,n,i,null);s=_.call(c,i)}return t(s,r,o,a)}function h(n,r,o,i,a){var s,c=g(th
is),l=v(this).root;if(l instanceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,a
);if(c instanceof N)s=M.call(c,i,a);else{if(!(c instanceof C))return d(this,r,o,
n,i,a);s=T.call(c,i,a)}return t(s,r,o,!1)}function f(n,r,o,i,a){var s,c=g(this),
l=v(this).root;if(l instanceof e.wrappers.ShadowRoot)return d(this,r,o,n,i,a);if
(c instanceof N)s=L.call(c,i,a);else{if(!(c instanceof C))return d(this,r,o,n,i,
a);s=O.call(c,i,a)}return t(s,r,o,!1)}var m=e.wrappers.HTMLCollection,w=e.wrappe
rs.NodeList,v=e.getTreeScope,g=e.unsafeUnwrap,b=e.wrap,y=document.querySelector,
E=document.documentElement.querySelector,_=document.querySelectorAll,S=document.
documentElement.querySelectorAll,T=document.getElementsByTagName,M=document.docu
mentElement.getElementsByTagName,O=document.getElementsByTagNameNS,L=document.do
cumentElement.getElementsByTagNameNS,N=window.Element,C=window.HTMLDocument||win
dow.Document,j="http://www.w3.org/1999/xhtml",D={querySelector:function(t){var r
=n(t),i=r!==t;t=r;var a,s=g(this),c=v(this).root;if(c instanceof e.wrappers.Shad
owRoot)return o(this,t);if(s instanceof N)a=b(E.call(s,t));else{if(!(s instanceo
f C))return o(this,t);a=b(y.call(s,t))}return a&&!i&&(c=v(a).root)&&c instanceof
e.wrappers.ShadowRoot?o(this,t):a; |
12 querySelector:function(t){var r=n(t),i=r!==t;t=r;var a,s=g(this),c=v(this).root;
if(c instanceof e.wrappers.ShadowRoot)return o(this,t);if(s instanceof N)a=b(E.c
all(s,t));else{if(!(s instanceof C))return o(this,t);a=b(y.call(s,t))}return a&&
!i&&(c=v(a).root)&&c instanceof e.wrappers.ShadowRoot?o(this,t):a},querySelector
All:function(e){var t=n(e),r=t!==e;e=t;var o=new w;return o.length=p.call(this,i
,0,o,e,r),o}},H={matches:function(t){return t=r(t),e.originalMatches.call(g(this
),t)}},x={getElementsByTagName:function(e){var t=new m,n="*"===e?s:a;return t.le
ngth=h.call(this,n,0,t,e,e.toLowerCase()),t},getElementsByClassName:function(e){
return this.querySelectorAll("."+e)},getElementsByTagNameNS:function(e,t){var n=
new m,r=null;return r="*"===e?"*"===t?s:c:"*"===t?l:u,n.length=f.call(this,r,0,n
,e||null,t),n}};e.GetElementsByInterface=x,e.SelectorsInterface=D,e.MatchesInter
face=H}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){for(;e&
&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}function n(e){for(;e&&
e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}var r=e.wrappers.No
deList,o={get firstElementChild(){return t(this.firstChild)},get lastElementChil
d(){return n(this.lastChild)},get childElementCount(){for(var e=0,t=this.firstEl
ementChild;t;t=t.nextElementSibling)e++;return e},get children(){for(var e=new r
,t=0,n=this.firstElementChild;n;n=n.nextElementSibling)e[t++]=n;return e.length=
t,e},remove:function(){var e=this.parentNode;e&&e.removeChild(this)}},i={get nex
tElementSibling(){return t(this.nextSibling)},get previousElementSibling(){retur
n n(this.previousSibling)}},a={getElementById:function(e){return/[ \t\n\r\f]/.te
st(e)?null:this.querySelector('[id="'+e+'"]')}};e.ChildNodeInterface=i,e.NonElem
entParentNodeInterface=a,e.ParentNodeInterface=o}(window.ShadowDOMPolyfill),func
tion(e){"use strict";function t(e){r.call(this,e)}var n=e.ChildNodeInterface,r=e
.wrappers.Node,o=e.enqueueMutation,i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwra
p,c=window.CharacterData;t.prototype=Object.create(r.prototype),i(t.prototype,{g
et nodeValue(){return this.data},set nodeValue(e){this.data=e},get textContent()
{return this.data},set textContent(e){this.data=e},get data(){return s(this).dat
a},set data(e){var t=s(this).data;o(this,"characterData",{oldValue:t}),s(this).d
ata=e}}),i(t.prototype,n),a(c,t,document.createTextNode("")),e.wrappers.Characte
rData=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){return
e>>>0}function n(e){r.call(this,e)}var r=e.wrappers.CharacterData,o=(e.enqueueM
utation,e.mixin),i=e.registerWrapper,a=window.Text;n.prototype=Object.create(r.p
rototype),o(n.prototype,{splitText:function(e){e=t(e);var n=this.data;if(e>n.len
gth)throw new Error("IndexSizeError");var r=n.slice(0,e),o=n.slice(e);this.data=
r;var i=this.ownerDocument.createTextNode(o);return this.parentNode&&this.parent
Node.insertBefore(i,this.nextSibling),i}}),i(a,n,document.createTextNode("")),e.
wrappers.Text=n}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e
){return i(e).getAttribute("class")}function n(e,t){a(e,"attributes",{name:"clas
s",namespace:null,oldValue:t})}function r(t){e.invalidateRendererBasedOnAttribut
e(t,"class")}function o(e,o,i){var a=e.ownerElement_;if(null==a)return o.apply(e
,i);var s=t(a),c=o.apply(e,i);return t(a)!==s&&(n(a,s),r(a)),c}if(!window.DOMTok
enList)return void console.warn("Missing DOMTokenList prototype, please include
a compatible classList polyfill such as http://goo.gl/uTcepH.");var i=e.unsafeUn
wrap,a=e.enqueueMutation,s=DOMTokenList.prototype.add;DOMTokenList.prototype.add
=function(){o(this,s,arguments)};var c=DOMTokenList.prototype.remove;DOMTokenLis
t.prototype.remove=function(){o(this,c,arguments)};var l=DOMTokenList.prototype.
toggle;DOMTokenList.prototype.toggle=function(){return o(this,l,arguments)}}(win
dow.ShadowDOMPolyfill),function(e){"use strict";function t(t,n){var r=t.parentNo
de;if(r&&r.shadowRoot){var o=e.getRendererForHost(r);o.dependsOnAttribute(n)&&o.
invalidate()}}function n(e,t,n){u(e,"attributes",{name:t,namespace:null,oldValue
:n})}function r(e){a.call(this,e)}var o=e.ChildNodeInterface,i=e.GetElementsByIn
terface,a=e.wrappers.Node,s=e.ParentNodeInterface,c=e.SelectorsInterface,l=e.Mat
chesInterface,u=(e.addWrapNodeListMethod,e.enqueueMutation),d=e.mixin,p=(e.oneOf
,e.registerWrapper),h=e.unsafeUnwrap,f=e.wrappers,m=window.Element,w=["matches",
"mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"].filter(functio
n(e){return m.prototype[e]}),v=w[0],g=m.prototype[v],b=new WeakMap;r.prototype=O
bject.create(a.prototype),d(r.prototype,{createShadowRoot:function(){var t=new f
.ShadowRoot(this);h(this).polymerShadowRoot_=t;var n=e.getRendererForHost(this);
return n.invalidate(),t},get shadowRoot(){return h(this).polymerShadowRoot_||nul
l},setAttribute:function(e,r){var o=h(this).getAttribute(e);h(this).setAttribute
(e,r),n(this,e,o),t(this,e)},removeAttribute:function(e){var r=h(this).getAttrib
ute(e);h(this).removeAttribute(e),n(this,e,r),t(this,e)},get classList(){var e=b
.get(this);if(!e){if(e=h(this).classList,!e)return;e.ownerElement_=this,b.set(th
is,e)}return e},get className(){return h(this).className},set className(e){this.
setAttribute("class",e)},get id(){return h(this).id},set id(e){this.setAttribute
("id",e)}}),w.forEach(function(e){"matches"!==e&&(r.prototype[e]=function(e){ret
urn this.matches(e)})}),m.prototype.webkitCreateShadowRoot&&(r.prototype.webkitC
reateShadowRoot=r.prototype.createShadowRoot),d(r.prototype,o),d(r.prototype,i),
d(r.prototype,s),d(r.prototype,c),d(r.prototype,l),p(m,r,document.createElementN
S(null,"x")),e.invalidateRendererBasedOnAttribute=t,e.matchesNames=w,e.originalM
atches=g,e.wrappers.Element=r}(window.ShadowDOMPolyfill),function(e){"use strict
";function t(e){switch(e){case"&":return"&";case"<":return"<";case">":ret
urn">";case'"':return""";case"Â ":return" "}}function n(e){return e.
replace(L,t)}function r(e){return e.replace(N,t)}function o(e){for(var t={},n=0;
n<e.length;n++)t[e[n]]=!0;return t}function i(e){if(e.namespaceURI!==D)return!0;
var t=e.ownerDocument.doctype;return t&&t.publicId&&t.systemId}function a(e,t){s
witch(e.nodeType){case Node.ELEMENT_NODE:for(var o,a=e.tagName.toLowerCase(),c="
<"+a,l=e.attributes,u=0;o=l[u];u++)c+=" "+o.name+'="'+n(o.value)+'"';return C[a]
?(i(e)&&(c+="/"),c+">"):c+">"+s(e)+"</"+a+">";case Node.TEXT_NODE:var d=e.data;r
eturn t&&j[t.localName]?d:r(d);case Node.COMMENT_NODE:return"<!--"+e.data+"-->";
default:throw console.error(e),new Error("not implemented")}}function s(e){e ins
tanceof O.HTMLTemplateElement&&(e=e.content);for(var t="",n=e.firstChild;n;n=n.n
extSibling)t+=a(n,e);return t}function c(e,t,n){var r=n||"div";e.textContent="";
var o=T(e.ownerDocument.createElement(r));o.innerHTML=t;for(var i;i=o.firstChild
;)e.appendChild(M(i))}function l(e){m.call(this,e)}function u(e,t){var n=T(e.clo
neNode(!1));n.innerHTML=t;for(var r,o=T(document.createDocumentFragment());r=n.f
irstChild;)o.appendChild(r);return M(o)}function d(t){return function(){return e
.renderAllPending(),S(this)[t]}}function p(e){w(l,e,d(e))}function h(t){Object.d
efineProperty(l.prototype,t,{get:d(t),set:function(n){e.renderAllPending(),S(thi
s)[t]=n},configurable:!0,enumerable:!0})}function f(t){Object.defineProperty(l.p
rototype,t,{value:function(){return e.renderAllPending(),S(this)[t].apply(S(this
),arguments)},configurable:!0,enumerable:!0})}var m=e.wrappers.Element,w=e.defin
eGetter,v=e.enqueueMutation,g=e.mixin,b=e.nodesWereAdded,y=e.nodesWereRemoved,E=
e.registerWrapper,_=e.snapshotNodeList,S=e.unsafeUnwrap,T=e.unwrap,M=e.wrap,O=e.
wrappers,L=/[&\u00A0"]/g,N=/[&\u00A0<>]/g,C=o(["area","base","br","col","command
","embed","hr","img","input","keygen","link","meta","param","source","track","wb
r"]),j=o(["style","script","xmp","iframe","noembed","noframes","plaintext","nosc
ript"]),D="http://www.w3.org/1999/xhtml",H=/MSIE/.test(navigator.userAgent),x=wi
ndow.HTMLElement,R=window.HTMLTemplateElement;l.prototype=Object.create(m.protot
ype),g(l.prototype,{get innerHTML(){return s(this)},set innerHTML(e){if(H&&j[thi
s.localName])return void(this.textContent=e);var t=_(this.childNodes);this.inval
idateShadowRenderer()?this instanceof O.HTMLTemplateElement?c(this.content,e):c(
this,e,this.tagName):!R&&this instanceof O.HTMLTemplateElement?c(this.content,e)
:S(this).innerHTML=e;var n=_(this.childNodes);v(this,"childList",{addedNodes:n,r
emovedNodes:t}),y(t),b(n,this)},get outerHTML(){return a(this,this.parentNode)},
set outerHTML(e){var t=this.parentNode;if(t){t.invalidateShadowRenderer();var n=
u(t,e);t.replaceChild(n,this)}},insertAdjacentHTML:function(e,t){var n,r;switch(
String(e).toLowerCase()){case"beforebegin":n=this.parentNode,r=this;break;case"a
fterend":n=this.parentNode,r=this.nextSibling;break;case"afterbegin":n=this,r=th
is.firstChild;break;case"beforeend":n=this,r=null;break;default:return}var o=u(n
,t);n.insertBefore(o,r)},get hidden(){return this.hasAttribute("hidden")},set hi
dden(e){e?this.setAttribute("hidden",""):this.removeAttribute("hidden")}}),["cli
entHeight","clientLeft","clientTop","clientWidth","offsetHeight","offsetLeft","o
ffsetTop","offsetWidth","scrollHeight","scrollWidth"].forEach(p),["scrollLeft","
scrollTop"].forEach(h),["focus","getBoundingClientRect","getClientRects","scroll
IntoView"].forEach(f),E(x,l,document.createElement("b")),e.wrappers.HTMLElement=
l,e.getInnerHTML=s,e.setInnerHTML=c}(window.ShadowDOMPolyfill),function(e){"use
strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.
registerWrapper,i=e.unsafeUnwrap,a=e.wrap,s=window.HTMLCanvasElement;t.prototype
=Object.create(n.prototype),r(t.prototype,{getContext:function(){var e=i(this).g
etContext.apply(i(this),arguments);return e&&a(e)}}),o(s,t,document.createElemen
t("canvas")),e.wrappers.HTMLCanvasElement=t}(window.ShadowDOMPolyfill),function(
e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mi
xin,o=e.registerWrapper,i=window.HTMLContentElement;t.prototype=Object.create(n.
prototype),r(t.prototype,{constructor:t,get select(){return this.getAttribute("s
elect")},set select(e){this.setAttribute("select",e)},setAttribute:function(e,t)
{n.prototype.setAttribute.call(this,e,t),"select"===String(e).toLowerCase()&&thi
s.invalidateShadowRenderer(!0)}}),i&&o(i,t),e.wrappers.HTMLContentElement=t}(win
dow.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var
n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.wrapHTMLCollection,a
=e.unwrap,s=window.HTMLFormElement;t.prototype=Object.create(n.prototype),r(t.pr
ototype,{get elements(){return i(a(this).elements)}}),o(s,t,document.createEleme
nt("form")),e.wrappers.HTMLFormElement=t}(window.ShadowDOMPolyfill),function(e){
"use strict";function t(e){r.call(this,e)}function n(e,t){if(!(this instanceof n
))throw new TypeError("DOM object constructor cannot be called as a function.");
var o=i(document.createElement("img"));r.call(this,o),a(o,this),void 0!==e&&(o.w
idth=e),void 0!==t&&(o.height=t)}var r=e.wrappers.HTMLElement,o=e.registerWrappe
r,i=e.unwrap,a=e.rewrap,s=window.HTMLImageElement;t.prototype=Object.create(r.pr
ototype),o(s,t,document.createElement("img")),n.prototype=t.prototype,e.wrappers
.HTMLImageElement=t,e.wrappers.Image=n}(window.ShadowDOMPolyfill),function(e){"u
se strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=(e.mixin,
e.wrappers.NodeList,e.registerWrapper),o=window.HTMLShadowElement;t.prototype=Ob
ject.create(n.prototype),t.prototype.constructor=t,o&&r(o,t),e.wrappers.HTMLShad
owElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){if
(!e.defaultView)return e;var t=d.get(e);if(!t){for(t=e.implementation.createHTML
Document("");t.lastChild;)t.removeChild(t.lastChild);d.set(e,t)}return t}functio
n n(e){for(var n,r=t(e.ownerDocument),o=c(r.createDocumentFragment());n=e.firstC
hild;)o.appendChild(n);return o}function r(e){if(o.call(this,e),!p){var t=n(e);u
.set(this,l(t))}}var o=e.wrappers.HTMLElement,i=e.mixin,a=e.registerWrapper,s=e.
unsafeUnwrap,c=e.unwrap,l=e.wrap,u=new WeakMap,d=new WeakMap,p=window.HTMLTempla
teElement;r.prototype=Object.create(o.prototype),i(r.prototype,{constructor:r,ge
t content(){return p?l(s(this).content):u.get(this)}}),p&&a(p,r),e.wrappers.HTML
TemplateElement=r}(window.ShadowDOMPolyfill),function(e){"use strict";function t
(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.registerWrapper,o=window.HTM
LMediaElement;o&&(t.prototype=Object.create(n.prototype),r(o,t,document.createEl
ement("audio")),e.wrappers.HTMLMediaElement=t)}(window.ShadowDOMPolyfill),functi
on(e){"use strict";function t(e){r.call(this,e)}function n(e){if(!(this instance
of n))throw new TypeError("DOM object constructor cannot be called as a function
.");var t=i(document.createElement("audio"));r.call(this,t),a(t,this),t.setAttri
bute("preload","auto"),void 0!==e&&t.setAttribute("src",e)}var r=e.wrappers.HTML
MediaElement,o=e.registerWrapper,i=e.unwrap,a=e.rewrap,s=window.HTMLAudioElement
;s&&(t.prototype=Object.create(r.prototype),o(s,t,document.createElement("audio"
)),n.prototype=t.prototype,e.wrappers.HTMLAudioElement=t,e.wrappers.Audio=n)}(wi
ndow.ShadowDOMPolyfill),function(e){"use strict";function t(e){return e.replace(
/\s+/g," ").trim()}function n(e){o.call(this,e)}function r(e,t,n,i){if(!(this in
stanceof r))throw new TypeError("DOM object constructor cannot be called as a fu
nction.");var a=c(document.createElement("option"));o.call(this,a),s(a,this),voi
d 0!==e&&(a.text=e),void 0!==t&&a.setAttribute("value",t),n===!0&&a.setAttribute
("selected",""),a.selected=i===!0}var o=e.wrappers.HTMLElement,i=e.mixin,a=e.reg
isterWrapper,s=e.rewrap,c=e.unwrap,l=e.wrap,u=window.HTMLOptionElement;n.prototy
pe=Object.create(o.prototype),i(n.prototype,{get text(){return t(this.textConten
t)},set text(e){this.textContent=t(String(e))},get form(){return l(c(this).form)
}}),a(u,n,document.createElement("option")),r.prototype=n.prototype,e.wrappers.H
TMLOptionElement=n,e.wrappers.Option=r}(window.ShadowDOMPolyfill),function(e){"u
se strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o
=e.registerWrapper,i=e.unwrap,a=e.wrap,s=window.HTMLSelectElement;t.prototype=Ob
ject.create(n.prototype),r(t.prototype,{add:function(e,t){"object"==typeof t&&(t
=i(t)),i(this).add(i(e),t)},remove:function(e){return void 0===e?void n.prototyp
e.remove.call(this):("object"==typeof e&&(e=i(e)),void i(this).remove(e))},get f
orm(){return a(i(this).form)}}),o(s,t,document.createElement("select")),e.wrappe
rs.HTMLSelectElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";funct
ion t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapp
er,i=e.unwrap,a=e.wrap,s=e.wrapHTMLCollection,c=window.HTMLTableElement;t.protot
ype=Object.create(n.prototype),r(t.prototype,{get caption(){return a(i(this).cap
tion)},createCaption:function(){return a(i(this).createCaption())},get tHead(){r
eturn a(i(this).tHead)},createTHead:function(){return a(i(this).createTHead())},
createTFoot:function(){return a(i(this).createTFoot())},get tFoot(){return a(i(t
his).tFoot)},get tBodies(){return s(i(this).tBodies)},createTBody:function(){ret
urn a(i(this).createTBody())},get rows(){return s(i(this).rows)},insertRow:funct
ion(e){return a(i(this).insertRow(e))}}),o(c,t,document.createElement("table")),
e.wrappers.HTMLTableElement=t}(window.ShadowDOMPolyfill),function(e){"use strict
";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.regist
erWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=e.wrap,c=window.HTMLTableSectionEl
ement;t.prototype=Object.create(n.prototype),r(t.prototype,{constructor:t,get ro
ws(){return i(a(this).rows)},insertRow:function(e){return s(a(this).insertRow(e)
)}}),o(c,t,document.createElement("thead")),e.wrappers.HTMLTableSectionElement=t
}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e
)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.wrapHTMLCollect
ion,a=e.unwrap,s=e.wrap,c=window.HTMLTableRowElement;t.prototype=Object.create(n
.prototype),r(t.prototype,{get cells(){return i(a(this).cells)},insertCell:funct
ion(e){return s(a(this).insertCell(e))}}),o(c,t,document.createElement("tr")),e.
wrappers.HTMLTableRowElement=t}(window.ShadowDOMPolyfill),function(e){"use stric
t";function t(e){switch(e.localName){case"content":return new n(e);case"shadow":
return new o(e);case"template":return new i(e)}r.call(this,e)}var n=e.wrappers.H
TMLContentElement,r=e.wrappers.HTMLElement,o=e.wrappers.HTMLShadowElement,i=e.wr
appers.HTMLTemplateElement,a=(e.mixin,e.registerWrapper),s=window.HTMLUnknownEle
ment;t.prototype=Object.create(r.prototype),a(s,t),e.wrappers.HTMLUnknownElement
=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this
,e)}var n=e.wrappers.Element,r=e.wrappers.HTMLElement,o=e.registerWrapper,i=(e.d
efineWrapGetter,e.unsafeUnwrap),a=e.wrap,s=e.mixin,c="http://www.w3.org/2000/svg
",l=window.SVGElement,u=document.createElementNS(c,"title");if(!("classList"in u
)){var d=Object.getOwnPropertyDescriptor(n.prototype,"classList");Object.defineP
roperty(r.prototype,"classList",d),delete n.prototype.classList}t.prototype=Obje
ct.create(n.prototype),s(t.prototype,{get ownerSVGElement(){return a(i(this).own
erSVGElement)}}),o(l,t,document.createElementNS(c,"title")),e.wrappers.SVGElemen
t=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){p.call(thi
s,e)}var n=e.mixin,r=e.registerWrapper,o=e.unwrap,i=e.wrap,a=window.SVGUseElemen
t,s="http://www.w3.org/2000/svg",c=i(document.createElementNS(s,"g")),l=document
.createElementNS(s,"use"),u=c.constructor,d=Object.getPrototypeOf(u.prototype),p
=d.constructor;t.prototype=Object.create(d),"instanceRoot"in l&&n(t.prototype,{g
et instanceRoot(){return i(o(this).instanceRoot)},get animatedInstanceRoot(){ret
urn i(o(this).animatedInstanceRoot)}}),r(a,t,l),e.wrappers.SVGUseElement=t}(wind
ow.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var
n=e.wrappers.EventTarget,r=e.mixin,o=e.registerWrapper,i=e.unsafeUnwrap,a=e.wrap
,s=window.SVGElementInstance;s&&(t.prototype=Object.create(n.prototype),r(t.prot
otype,{get correspondingElement(){return a(i(this).correspondingElement)},get co
rrespondingUseElement(){return a(i(this).correspondingUseElement)},get parentNod
e(){return a(i(this).parentNode)},get childNodes(){throw new Error("Not implemen
ted")},get firstChild(){return a(i(this).firstChild)},get lastChild(){return a(i
(this).lastChild)},get previousSibling(){return a(i(this).previousSibling)},get
nextSibling(){return a(i(this).nextSibling)}}),o(s,t),e.wrappers.SVGElementInsta
nce=t)}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){o(e,thi
s)}var n=e.mixin,r=e.registerWrapper,o=e.setWrapper,i=e.unsafeUnwrap,a=e.unwrap,
s=e.unwrapIfNeeded,c=e.wrap,l=window.CanvasRenderingContext2D;n(t.prototype,{get
canvas(){return c(i(this).canvas)},drawImage:function(){arguments[0]=s(argument
s[0]),i(this).drawImage.apply(i(this),arguments)},createPattern:function(){retur
n arguments[0]=a(arguments[0]),i(this).createPattern.apply(i(this),arguments)}})
,r(l,t,document.createElement("canvas").getContext("2d")),e.wrappers.CanvasRende
ringContext2D=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e
){i(e,this)}var n=e.addForwardingProperties,r=e.mixin,o=e.registerWrapper,i=e.se
tWrapper,a=e.unsafeUnwrap,s=e.unwrapIfNeeded,c=e.wrap,l=window.WebGLRenderingCon
text;if(l){r(t.prototype,{get canvas(){return c(a(this).canvas)},texImage2D:func
tion(){arguments[5]=s(arguments[5]),a(this).texImage2D.apply(a(this),arguments)}
,texSubImage2D:function(){arguments[6]=s(arguments[6]),a(this).texSubImage2D.app
ly(a(this),arguments)}});var u=Object.getPrototypeOf(l.prototype);u!==Object.pro
totype&&n(u,t.prototype);var d=/WebKit/.test(navigator.userAgent)?{drawingBuffer
Height:null,drawingBufferWidth:null}:{};o(l,t,d),e.wrappers.WebGLRenderingContex
t=t}}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(th
is,e)}var n=e.wrappers.Node,r=e.GetElementsByInterface,o=e.NonElementParentNodeI
nterface,i=e.ParentNodeInterface,a=e.SelectorsInterface,s=e.mixin,c=e.registerOb
ject,l=e.registerWrapper,u=window.DocumentFragment;t.prototype=Object.create(n.p
rototype),s(t.prototype,i),s(t.prototype,a),s(t.prototype,r),s(t.prototype,o),l(
u,t,document.createDocumentFragment()),e.wrappers.DocumentFragment=t;var d=c(doc
ument.createComment(""));e.wrappers.Comment=d}(window.ShadowDOMPolyfill),functio
n(e){"use strict";function t(e){var t=d(u(e).ownerDocument.createDocumentFragmen
t());n.call(this,t),c(t,this);var o=e.shadowRoot;f.set(this,o),this.treeScope_=n
ew r(this,a(o||e)),h.set(this,e)}var n=e.wrappers.DocumentFragment,r=e.TreeScope
,o=e.elementFromPoint,i=e.getInnerHTML,a=e.getTreeScope,s=e.mixin,c=e.rewrap,l=e
.setInnerHTML,u=e.unsafeUnwrap,d=e.unwrap,p=e.wrap,h=new WeakMap,f=new WeakMap;t
.prototype=Object.create(n.prototype),s(t.prototype,{constructor:t,get innerHTML
(){return i(this)},set innerHTML(e){l(this,e),this.invalidateShadowRenderer()},g
et olderShadowRoot(){return f.get(this)||null},get host(){return h.get(this)||nu
ll},invalidateShadowRenderer:function(){return h.get(this).invalidateShadowRende
rer()},elementFromPoint:function(e,t){return o(this,this.ownerDocument,e,t)},get
Selection:function(){return document.getSelection()},get activeElement(){var e=d
(this).ownerDocument.activeElement;if(!e||!e.nodeType)return null;for(var t=p(e)
;!this.contains(t);){for(;t.parentNode;)t=t.parentNode;if(!t.host)return null;t=
t.host}return t}}),e.wrappers.ShadowRoot=t}(window.ShadowDOMPolyfill),function(e
){"use strict";function t(e){var t=d(e).root;return t instanceof h?t.host:null}f
unction n(t,n){if(t.shadowRoot){n=Math.min(t.childNodes.length-1,n);var r=t.chil
dNodes[n];if(r){var o=e.getDestinationInsertionPoints(r);if(o.length>0){var i=o[
0].parentNode;i.nodeType==Node.ELEMENT_NODE&&(t=i)}}}return t}function r(e){retu
rn e=u(e),t(e)||e}function o(e){a(e,this)}var i=e.registerWrapper,a=e.setWrapper
,s=e.unsafeUnwrap,c=e.unwrap,l=e.unwrapIfNeeded,u=e.wrap,d=e.getTreeScope,p=wind
ow.Range,h=e.wrappers.ShadowRoot;o.prototype={get startContainer(){return r(s(th
is).startContainer)},get endContainer(){return r(s(this).endContainer)},get comm
onAncestorContainer(){return r(s(this).commonAncestorContainer)},setStart:functi
on(e,t){e=n(e,t),s(this).setStart(l(e),t)},setEnd:function(e,t){e=n(e,t),s(this)
.setEnd(l(e),t)},setStartBefore:function(e){s(this).setStartBefore(l(e))},setSta
rtAfter:function(e){s(this).setStartAfter(l(e))},setEndBefore:function(e){s(this
).setEndBefore(l(e))},setEndAfter:function(e){s(this).setEndAfter(l(e))},selectN
ode:function(e){s(this).selectNode(l(e))},selectNodeContents:function(e){s(this)
.selectNodeContents(l(e))},compareBoundaryPoints:function(e,t){return s(this).co
mpareBoundaryPoints(e,c(t))},extractContents:function(){return u(s(this).extract
Contents())},cloneContents:function(){return u(s(this).cloneContents())},insertN
ode:function(e){s(this).insertNode(l(e))},surroundContents:function(e){s(this).s
urroundContents(l(e))},cloneRange:function(){return u(s(this).cloneRange())},isP
ointInRange:function(e,t){return s(this).isPointInRange(l(e),t)},comparePoint:fu
nction(e,t){return s(this).comparePoint(l(e),t)},intersectsNode:function(e){retu
rn s(this).intersectsNode(l(e))},toString:function(){return s(this).toString()}}
,p.prototype.createContextualFragment&&(o.prototype.createContextualFragment=fun
ction(e){return u(s(this).createContextualFragment(e))}),i(window.Range,o,docume
nt.createRange()),e.wrappers.Range=o}(window.ShadowDOMPolyfill),function(e){"use
strict";function t(e){e.previousSibling_=e.previousSibling,e.nextSibling_=e.nex
tSibling,e.parentNode_=e.parentNode}function n(n,o,i){var a=x(n),s=x(o),c=i?x(i)
:null;if(r(o),t(o),i)n.firstChild===i&&(n.firstChild_=i),i.previousSibling_=i.pr
eviousSibling;else{n.lastChild_=n.lastChild,n.lastChild===n.firstChild&&(n.first
Child_=n.firstChild);var l=R(a.lastChild);l&&(l.nextSibling_=l.nextSibling)}e.or
iginalInsertBefore.call(a,s,c)}function r(n){var r=x(n),o=r.parentNode;if(o){var
i=R(o);t(n),n.previousSibling&&(n.previousSibling.nextSibling_=n),n.nextSibling
&&(n.nextSibling.previousSibling_=n),i.lastChild===n&&(i.lastChild_=n),i.firstCh
ild===n&&(i.firstChild_=n),e.originalRemoveChild.call(o,r)}}function o(e){P.set(
e,[])}function i(e){var t=P.get(e);return t||P.set(e,t=[]),t}function a(e){for(v
ar t=[],n=0,r=e.firstChild;r;r=r.nextSibling)t[n++]=r;return t}function s(){for(
var e=0;e<F.length;e++){var t=F[e],n=t.parentRenderer;n&&n.dirty||t.render()}F=[
]}function c(){T=null,s()}function l(e){var t=A.get(e);return t||(t=new h(e),A.s
et(e,t)),t}function u(e){var t=j(e).root;return t instanceof C?t:null}function d
(e){return l(e.host)}function p(e){this.skip=!1,this.node=e,this.childNodes=[]}f
unction h(e){this.host=e,this.dirty=!1,this.invalidateAttributes(),this.associat
eNode(e)}function f(e){for(var t=[],n=e.firstChild;n;n=n.nextSibling)E(n)?t.push
.apply(t,i(n)):t.push(n);return t}function m(e){if(e instanceof L)return e;if(e
instanceof O)return null;for(var t=e.firstChild;t;t=t.nextSibling){var n=m(t);if
(n)return n}return null}function w(e,t){i(t).push(e);var n=k.get(e);n?n.push(t):
k.set(e,[t])}function v(e){return k.get(e)}function g(e){k.set(e,void 0)}functio
n b(e,t){var n=t.getAttribute("select");if(!n)return!0;if(n=n.trim(),!n)return!0
;if(!(e instanceof M))return!1;if(!q.test(n))return!1;try{return e.matches(n)}ca
tch(r){return!1}}function y(e,t){var n=v(t);return n&&n[n.length-1]===e}function
E(e){return e instanceof O||e instanceof L}function _(e){return e.shadowRoot}fu
nction S(e){for(var t=[],n=e.shadowRoot;n;n=n.olderShadowRoot)t.push(n);return t
}var T,M=e.wrappers.Element,O=e.wrappers.HTMLContentElement,L=e.wrappers.HTMLSha
dowElement,N=e.wrappers.Node,C=e.wrappers.ShadowRoot,j=(e.assert,e.getTreeScope)
,D=(e.mixin,e.oneOf),H=e.unsafeUnwrap,x=e.unwrap,R=e.wrap,I=e.ArraySplice,P=new
WeakMap,k=new WeakMap,A=new WeakMap,W=D(window,["requestAnimationFrame","mozRequ
estAnimationFrame","webkitRequestAnimationFrame","setTimeout"]),F=[],U=new I;U.e
quals=function(e,t){return x(e.node)===t},p.prototype={append:function(e){var t=
new p(e);return this.childNodes.push(t),t},sync:function(e){if(!this.skip){for(v
ar t=this.node,o=this.childNodes,i=a(x(t)),s=e||new WeakMap,c=U.calculateSplices
(o,i),l=0,u=0,d=0,p=0;p<c.length;p++){for(var h=c[p];d<h.index;d++)u++,o[l++].sy
nc(s);for(var f=h.removed.length,m=0;f>m;m++){var w=R(i[u++]);s.get(w)||r(w)}for
(var v=h.addedCount,g=i[u]&&R(i[u]),m=0;v>m;m++){var b=o[l++],y=b.node;n(t,y,g),
s.set(y,!0),b.sync(s)}d+=v}for(var p=d;p<o.length;p++)o[p].sync(s)}}},h.prototyp
e={render:function(e){if(this.dirty){this.invalidateAttributes();var t=this.host
;this.distribution(t);var n=e||new p(t);this.buildRenderTree(n,t);var r=!e;r&&n.
sync(),this.dirty=!1}},get parentRenderer(){return j(this.host).renderer},invali
date:function(){if(!this.dirty){this.dirty=!0;var e=this.parentRenderer;if(e&&e.
invalidate(),F.push(this),T)return;T=window[W](c,0)}},distribution:function(e){t
his.resetAllSubtrees(e),this.distributionResolution(e)},resetAll:function(e){E(e
)?o(e):g(e),this.resetAllSubtrees(e)},resetAllSubtrees:function(e){for(var t=e.f
irstChild;t;t=t.nextSibling)this.resetAll(t);e.shadowRoot&&this.resetAll(e.shado
wRoot),e.olderShadowRoot&&this.resetAll(e.olderShadowRoot)},distributionResoluti
on:function(e){if(_(e)){for(var t=e,n=f(t),r=S(t),o=0;o<r.length;o++)this.poolDi
stribution(r[o],n);for(var o=r.length-1;o>=0;o--){var i=r[o],a=m(i);if(a){var s=
i.olderShadowRoot;s&&(n=f(s));for(var c=0;c<n.length;c++)w(n[c],a)}this.distribu
tionResolution(i)}}for(var l=e.firstChild;l;l=l.nextSibling)this.distributionRes
olution(l)},poolDistribution:function(e,t){if(!(e instanceof L))if(e instanceof
O){var n=e;this.updateDependentAttributes(n.getAttribute("select"));for(var r=!1
,o=0;o<t.length;o++){var e=t[o];e&&b(e,n)&&(w(e,n),t[o]=void 0,r=!0)}if(!r)for(v
ar i=n.firstChild;i;i=i.nextSibling)w(i,n)}else for(var i=e.firstChild;i;i=i.nex
tSibling)this.poolDistribution(i,t)},buildRenderTree:function(e,t){for(var n=thi
s.compose(t),r=0;r<n.length;r++){var o=n[r],i=e.append(o);this.buildRenderTree(i
,o)}if(_(t)){var a=l(t);a.dirty=!1}},compose:function(e){for(var t=[],n=e.shadow
Root||e,r=n.firstChild;r;r=r.nextSibling)if(E(r)){this.associateNode(n);for(var
o=i(r),a=0;a<o.length;a++){var s=o[a];y(r,s)&&t.push(s)}}else t.push(r);return t
},invalidateAttributes:function(){this.attributes=Object.create(null)},updateDep
endentAttributes:function(e){if(e){var t=this.attributes;/\.\w+/.test(e)&&(t["cl
ass"]=!0),/#\w+/.test(e)&&(t.id=!0),e.replace(/\[\s*([^\s=\|~\]]+)/g,function(e,
n){t[n]=!0})}},dependsOnAttribute:function(e){return this.attributes[e]},associa
teNode:function(e){H(e).polymerShadowRenderer_=this}};var q=/^(:not\()?[*.#[a-zA
-Z_|]/;N.prototype.invalidateShadowRenderer=function(e){var t=H(this).polymerSha
dowRenderer_;return t?(t.invalidate(),!0):!1},O.prototype.getDistributedNodes=L.
prototype.getDistributedNodes=function(){return s(),i(this)},M.prototype.getDest
inationInsertionPoints=function(){return s(),v(this)||[]},O.prototype.nodeIsInse
rted_=L.prototype.nodeIsInserted_=function(){this.invalidateShadowRenderer();var
e,t=u(this);t&&(e=d(t)),H(this).polymerShadowRenderer_=e,e&&e.invalidate()},e.g
etRendererForHost=l,e.getShadowTrees=S,e.renderAllPending=s,e.getDestinationInse
rtionPoints=v,e.visual={insertBefore:n,remove:r}}(window.ShadowDOMPolyfill),func
tion(e){"use strict";function t(t){if(window[t]){r(!e.wrappers[t]);var c=functio
n(e){n.call(this,e)};c.prototype=Object.create(n.prototype),o(c.prototype,{get f
orm(){return s(a(this).form)}}),i(window[t],c,document.createElement(t.slice(4,-
7))),e.wrappers[t]=c}}var n=e.wrappers.HTMLElement,r=e.assert,o=e.mixin,i=e.regi
sterWrapper,a=e.unwrap,s=e.wrap,c=["HTMLButtonElement","HTMLFieldSetElement","HT
MLInputElement","HTMLKeygenElement","HTMLLabelElement","HTMLLegendElement","HTML
ObjectElement","HTMLOutputElement","HTMLTextAreaElement"];c.forEach(t)}(window.S
hadowDOMPolyfill),function(e){"use strict";function t(e){r(e,this)}var n=e.regis
terWrapper,r=e.setWrapper,o=e.unsafeUnwrap,i=e.unwrap,a=e.unwrapIfNeeded,s=e.wra
p,c=window.Selection;t.prototype={get anchorNode(){return s(o(this).anchorNode)}
,get focusNode(){return s(o(this).focusNode)},addRange:function(e){o(this).addRa
nge(a(e))},collapse:function(e,t){o(this).collapse(a(e),t)},containsNode:functio
n(e,t){return o(this).containsNode(a(e),t)},getRangeAt:function(e){return s(o(th
is).getRangeAt(e))},removeRange:function(e){o(this).removeRange(i(e))},selectAll
Children:function(e){o(this).selectAllChildren(e instanceof ShadowRoot?o(e.host)
:a(e))},toString:function(){return o(this).toString()}},c.prototype.extend&&(t.p
rototype.extend=function(e,t){o(this).extend(a(e),t)}),n(window.Selection,t,wind
ow.getSelection()),e.wrappers.Selection=t}(window.ShadowDOMPolyfill),function(e)
{"use strict";function t(e){r(e,this)}var n=e.registerWrapper,r=e.setWrapper,o=e
.unsafeUnwrap,i=e.unwrapIfNeeded,a=e.wrap,s=window.TreeWalker;t.prototype={get r
oot(){return a(o(this).root)},get currentNode(){return a(o(this).currentNode)},s
et currentNode(e){o(this).currentNode=i(e)},get filter(){return o(this).filter},
parentNode:function(){return a(o(this).parentNode())},firstChild:function(){retu
rn a(o(this).firstChild())},lastChild:function(){return a(o(this).lastChild())},
previousSibling:function(){return a(o(this).previousSibling())},previousNode:fun
ction(){return a(o(this).previousNode())},nextNode:function(){return a(o(this).n
extNode())}},n(s,t),e.wrappers.TreeWalker=t}(window.ShadowDOMPolyfill),function(
e){"use strict";function t(e){u.call(this,e),this.treeScope_=new w(this,null)}fu
nction n(e){var n=document[e];t.prototype[e]=function(){return j(n.apply(N(this)
,arguments))}}function r(e,t){x.call(N(t),C(e)),o(e,t)}function o(e,t){e.shadowR
oot&&t.adoptNode(e.shadowRoot),e instanceof m&&i(e,t);for(var n=e.firstChild;n;n
=n.nextSibling)o(n,t)}function i(e,t){var n=e.olderShadowRoot;n&&t.adoptNode(n)}
function a(e){L(e,this)}function s(e,t){var n=document.implementation[t];e.proto
type[t]=function(){ | 12 |
13 return j(n.apply(N(this),arguments))}}function c(e,t){var n=document.implementat
ion[t];e.prototype[t]=function(){return n.apply(N(this),arguments)}}var l=e.GetE
lementsByInterface,u=e.wrappers.Node,d=e.ParentNodeInterface,p=e.NonElementParen
tNodeInterface,h=e.wrappers.Selection,f=e.SelectorsInterface,m=e.wrappers.Shadow
Root,w=e.TreeScope,v=e.cloneNode,g=e.defineGetter,b=e.defineWrapGetter,y=e.eleme
ntFromPoint,E=e.forwardMethodsToWrapper,_=e.matchesNames,S=e.mixin,T=e.registerW
rapper,M=e.renderAllPending,O=e.rewrap,L=e.setWrapper,N=e.unsafeUnwrap,C=e.unwra
p,j=e.wrap,D=e.wrapEventTargetMethods,H=(e.wrapNodeList,new WeakMap);t.prototype
=Object.create(u.prototype),b(t,"documentElement"),b(t,"body"),b(t,"head"),g(t,"
activeElement",function(){var e=C(this).activeElement;if(!e||!e.nodeType)return
null;for(var t=j(e);!this.contains(t);){for(;t.parentNode;)t=t.parentNode;if(!t.
host)return null;t=t.host}return t}),["createComment","createDocumentFragment","
createElement","createElementNS","createEvent","createEventNS","createRange","cr
eateTextNode"].forEach(n);var x=document.adoptNode,R=document.getSelection;S(t.p
rototype,{adoptNode:function(e){return e.parentNode&&e.parentNode.removeChild(e)
,r(e,this),e},elementFromPoint:function(e,t){return y(this,this,e,t)},importNode
:function(e,t){return v(e,t,N(this))},getSelection:function(){return M(),new h(R
.call(C(this)))},getElementsByName:function(e){return f.querySelectorAll.call(th
is,"[name="+JSON.stringify(String(e))+"]")}});var I=document.createTreeWalker,P=
e.wrappers.TreeWalker;if(t.prototype.createTreeWalker=function(e,t,n,r){var o=nu
ll;return n&&(n.acceptNode&&"function"==typeof n.acceptNode?o={acceptNode:functi
on(e){return n.acceptNode(j(e))}}:"function"==typeof n&&(o=function(e){return n(
j(e))})),new P(I.call(C(this),C(e),t,o,r))},document.registerElement){var k=docu
ment.registerElement;t.prototype.registerElement=function(t,n){function r(e){ret
urn e?void L(e,this):i?document.createElement(i,t):document.createElement(t)}var
o,i;if(void 0!==n&&(o=n.prototype,i=n["extends"]),o||(o=Object.create(HTMLEleme
nt.prototype)),e.nativePrototypeTable.get(o))throw new Error("NotSupportedError"
);for(var a,s=Object.getPrototypeOf(o),c=[];s&&!(a=e.nativePrototypeTable.get(s)
);)c.push(s),s=Object.getPrototypeOf(s);if(!a)throw new Error("NotSupportedError
");for(var l=Object.create(a),u=c.length-1;u>=0;u--)l=Object.create(l);["created
Callback","attachedCallback","detachedCallback","attributeChangedCallback"].forE
ach(function(e){var t=o[e];t&&(l[e]=function(){j(this)instanceof r||O(this),t.ap
ply(j(this),arguments)})});var d={prototype:l};i&&(d["extends"]=i),r.prototype=o
,r.prototype.constructor=r,e.constructorTable.set(l,r),e.nativePrototypeTable.se
t(o,l);k.call(C(this),t,d);return r},E([window.HTMLDocument||window.Document],["
registerElement"])}E([window.HTMLBodyElement,window.HTMLDocument||window.Documen
t,window.HTMLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocument
Position","contains","getElementsByClassName","getElementsByTagName","getElement
sByTagNameNS","insertBefore","querySelector","querySelectorAll","removeChild","r
eplaceChild"]),E([window.HTMLBodyElement,window.HTMLHeadElement,window.HTMLHtmlE
lement],_),E([window.HTMLDocument||window.Document],["adoptNode","importNode","c
ontains","createComment","createDocumentFragment","createElement","createElement
NS","createEvent","createEventNS","createRange","createTextNode","createTreeWalk
er","elementFromPoint","getElementById","getElementsByName","getSelection"]),S(t
.prototype,l),S(t.prototype,d),S(t.prototype,f),S(t.prototype,p),S(t.prototype,{
get implementation(){var e=H.get(this);return e?e:(e=new a(C(this).implementatio
n),H.set(this,e),e)},get defaultView(){return j(C(this).defaultView)}}),T(window
.Document,t,document.implementation.createHTMLDocument("")),window.HTMLDocument&
&T(window.HTMLDocument,t),D([window.HTMLBodyElement,window.HTMLDocument||window.
Document,window.HTMLHeadElement]);var A=document.implementation.createDocument;a
.prototype.createDocument=function(){return arguments[2]=C(arguments[2]),j(A.app
ly(N(this),arguments))},s(a,"createDocumentType"),s(a,"createHTMLDocument"),c(a,
"hasFeature"),T(window.DOMImplementation,a),E([window.DOMImplementation],["creat
eDocument","createDocumentType","createHTMLDocument","hasFeature"]),e.adoptNodeN
oRemove=r,e.wrappers.DOMImplementation=a,e.wrappers.Document=t}(window.ShadowDOM
Polyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers
.EventTarget,r=e.wrappers.Selection,o=e.mixin,i=e.registerWrapper,a=e.renderAllP
ending,s=e.unwrap,c=e.unwrapIfNeeded,l=e.wrap,u=window.Window,d=window.getComput
edStyle,p=window.getDefaultComputedStyle,h=window.getSelection;t.prototype=Objec
t.create(n.prototype),u.prototype.getComputedStyle=function(e,t){return l(this||
window).getComputedStyle(c(e),t)},p&&(u.prototype.getDefaultComputedStyle=functi
on(e,t){return l(this||window).getDefaultComputedStyle(c(e),t)}),u.prototype.get
Selection=function(){return l(this||window).getSelection()},delete window.getCom
putedStyle,delete window.getDefaultComputedStyle,delete window.getSelection,["ad
dEventListener","removeEventListener","dispatchEvent"].forEach(function(e){u.pro
totype[e]=function(){var t=l(this||window);return t[e].apply(t,arguments)},delet
e window[e]}),o(t.prototype,{getComputedStyle:function(e,t){return a(),d.call(s(
this),c(e),t)},getSelection:function(){return a(),new r(h.call(s(this)))},get do
cument(){return l(s(this).document)}}),p&&(t.prototype.getDefaultComputedStyle=f
unction(e,t){return a(),p.call(s(this),c(e),t)}),i(u,t,window),e.wrappers.Window
=t}(window.ShadowDOMPolyfill),function(e){"use strict";var t=e.unwrap,n=window.D
ataTransfer||window.Clipboard,r=n.prototype.setDragImage;r&&(n.prototype.setDrag
Image=function(e,n,o){r.call(this,t(e),n,o)})}(window.ShadowDOMPolyfill),functio
n(e){"use strict";function t(e){var t;t=e instanceof i?e:new i(e&&o(e)),r(t,this
)}var n=e.registerWrapper,r=e.setWrapper,o=e.unwrap,i=window.FormData;i&&(n(i,t,
new i),e.wrappers.FormData=t)}(window.ShadowDOMPolyfill),function(e){"use strict
";var t=e.unwrapIfNeeded,n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototyp
e.send=function(e){return n.call(this,t(e))}}(window.ShadowDOMPolyfill),function
(e){"use strict";function t(e){var t=n[e],r=window[t];if(r){var o=document.creat
eElement(e),i=o.constructor;window[t]=i}}var n=(e.isWrapperFor,{a:"HTMLAnchorEle
ment",area:"HTMLAreaElement",audio:"HTMLAudioElement",base:"HTMLBaseElement",bod
y:"HTMLBodyElement",br:"HTMLBRElement",button:"HTMLButtonElement",canvas:"HTMLCa
nvasElement",caption:"HTMLTableCaptionElement",col:"HTMLTableColElement",content
:"HTMLContentElement",data:"HTMLDataElement",datalist:"HTMLDataListElement",del:
"HTMLModElement",dir:"HTMLDirectoryElement",div:"HTMLDivElement",dl:"HTMLDListEl
ement",embed:"HTMLEmbedElement",fieldset:"HTMLFieldSetElement",font:"HTMLFontEle
ment",form:"HTMLFormElement",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElem
ent",h1:"HTMLHeadingElement",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTM
LHtmlElement",iframe:"HTMLIFrameElement",img:"HTMLImageElement",input:"HTMLInput
Element",keygen:"HTMLKeygenElement",label:"HTMLLabelElement",legend:"HTMLLegendE
lement",li:"HTMLLIElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"
HTMLMarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"
HTMLMetaElement",meter:"HTMLMeterElement",object:"HTMLObjectElement",ol:"HTMLOLi
stElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionElement",output:"HTM
LOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElement",pre:"HTMLPreEl
ement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",script:"HTMLScriptEle
ment",select:"HTMLSelectElement",shadow:"HTMLShadowElement",source:"HTMLSourceEl
ement",span:"HTMLSpanElement",style:"HTMLStyleElement",table:"HTMLTableElement",
tbody:"HTMLTableSectionElement",template:"HTMLTemplateElement",textarea:"HTMLTex
tAreaElement",thead:"HTMLTableSectionElement",time:"HTMLTimeElement",title:"HTML
TitleElement",tr:"HTMLTableRowElement",track:"HTMLTrackElement",ul:"HTMLUListEle
ment",video:"HTMLVideoElement"});Object.keys(n).forEach(t),Object.getOwnProperty
Names(e.wrappers).forEach(function(t){window[t]=e.wrappers[t]})}(window.ShadowDO
MPolyfill),function(e){function t(e,t){var n="";return Array.prototype.forEach.c
all(e,function(e){n+=e.textContent+"\n\n"}),t||(n=n.replace(d,"")),n}function n(
e){var t=document.createElement("style");return t.textContent=e,t}function r(e){
var t=n(e);document.head.appendChild(t);var r=[];if(t.sheet)try{r=t.sheet.cssRul
es}catch(o){}else console.warn("sheet not found",t);return t.parentNode.removeCh
ild(t),r}function o(){C.initialized=!0,document.body.appendChild(C);var e=C.cont
entDocument,t=e.createElement("base");t.href=document.baseURI,e.head.appendChild
(t)}function i(e){C.initialized||o(),document.body.appendChild(C),e(C.contentDoc
ument),document.body.removeChild(C)}function a(e,t){if(t){var o;if(e.match("@imp
ort")&&D){var a=n(e);i(function(e){e.head.appendChild(a.impl),o=Array.prototype.
slice.call(a.sheet.cssRules,0),t(o)})}else o=r(e),t(o)}}function s(e){e&&l().app
endChild(document.createTextNode(e))}function c(e,t){var r=n(e);r.setAttribute(t
,""),r.setAttribute(x,""),document.head.appendChild(r)}function l(){return j||(j
=document.createElement("style"),j.setAttribute(x,""),j[x]=!0),j}var u={strictSt
yling:!1,registry:{},shimStyling:function(e,n,r){var o=this.prepareRoot(e,n,r),i
=this.isTypeExtension(r),a=this.makeScopeSelector(n,i),s=t(o,!0);s=this.scopeCss
Text(s,a),e&&(e.shimmedStyle=s),this.addCssToDocument(s,n)},shimStyle:function(e
,t){return this.shimCssText(e.textContent,t)},shimCssText:function(e,t){return e
=this.insertDirectives(e),this.scopeCssText(e,t)},makeScopeSelector:function(e,t
){return e?t?"[is="+e+"]":e:""},isTypeExtension:function(e){return e&&e.indexOf(
"-")<0},prepareRoot:function(e,t,n){var r=this.registerRoot(e,t,n);return this.r
eplaceTextInStyles(r.rootStyles,this.insertDirectives),this.removeStyles(e,r.roo
tStyles),this.strictStyling&&this.applyScopeToContent(e,t),r.scopeStyles},remove
Styles:function(e,t){for(var n,r=0,o=t.length;o>r&&(n=t[r]);r++)n.parentNode.rem
oveChild(n)},registerRoot:function(e,t,n){var r=this.registry[t]={root:e,name:t,
extendsName:n},o=this.findStyles(e);r.rootStyles=o,r.scopeStyles=r.rootStyles;va
r i=this.registry[r.extendsName];return i&&(r.scopeStyles=i.scopeStyles.concat(r
.scopeStyles)),r},findStyles:function(e){if(!e)return[];var t=e.querySelectorAll
("style");return Array.prototype.filter.call(t,function(e){return!e.hasAttribute
(R)})},applyScopeToContent:function(e,t){e&&(Array.prototype.forEach.call(e.quer
ySelectorAll("*"),function(e){e.setAttribute(t,"")}),Array.prototype.forEach.cal
l(e.querySelectorAll("template"),function(e){this.applyScopeToContent(e.content,
t)},this))},insertDirectives:function(e){return e=this.insertPolyfillDirectivesI
nCssText(e),this.insertPolyfillRulesInCssText(e)},insertPolyfillDirectivesInCssT
ext:function(e){return e=e.replace(p,function(e,t){return t.slice(0,-2)+"{"}),e.
replace(h,function(e,t){return t+" {"})},insertPolyfillRulesInCssText:function(e
){return e=e.replace(f,function(e,t){return t.slice(0,-1)}),e.replace(m,function
(e,t,n,r){var o=e.replace(t,"").replace(n,"");return r+o})},scopeCssText:functio
n(e,t){var n=this.extractUnscopedRulesFromCssText(e);if(e=this.insertPolyfillHos
tInCssText(e),e=this.convertColonHost(e),e=this.convertColonHostContext(e),e=thi
s.convertShadowDOMSelectors(e),t){var e,r=this;a(e,function(n){e=r.scopeRules(n,
t)})}return e=e+"\n"+n,e.trim()},extractUnscopedRulesFromCssText:function(e){for
(var t,n="";t=w.exec(e);)n+=t[1].slice(0,-1)+"\n\n";for(;t=v.exec(e);)n+=t[0].re
place(t[2],"").replace(t[1],t[3])+"\n\n";return n},convertColonHost:function(e){
return this.convertColonRule(e,E,this.colonHostPartReplacer)},convertColonHostCo
ntext:function(e){return this.convertColonRule(e,_,this.colonHostContextPartRepl
acer)},convertColonRule:function(e,t,n){return e.replace(t,function(e,t,r,o){if(
t=O,r){for(var i,a=r.split(","),s=[],c=0,l=a.length;l>c&&(i=a[c]);c++)i=i.trim()
,s.push(n(t,i,o));return s.join(",")}return t+o})},colonHostContextPartReplacer:
function(e,t,n){return t.match(g)?this.colonHostPartReplacer(e,t,n):e+t+n+", "+t
+" "+e+n},colonHostPartReplacer:function(e,t,n){return e+t.replace(g,"")+n},conv
ertShadowDOMSelectors:function(e){for(var t=0;t<N.length;t++)e=e.replace(N[t],"
");return e},scopeRules:function(e,t){var n="";return e&&Array.prototype.forEach
.call(e,function(e){if(e.selectorText&&e.style&&void 0!==e.style.cssText)n+=this
.scopeSelector(e.selectorText,t,this.strictStyling)+" {\n ",n+=this.proper
tiesFromRule(e)+"\n}\n\n";else if(e.type===CSSRule.MEDIA_RULE)n+="@media "+e.med
ia.mediaText+" {\n",n+=this.scopeRules(e.cssRules,t),n+="\n}\n\n";else try{e.css
Text&&(n+=e.cssText+"\n\n")}catch(r){e.type===CSSRule.KEYFRAMES_RULE&&e.cssRules
&&(n+=this.ieSafeCssTextFromKeyFrameRule(e))}},this),n},ieSafeCssTextFromKeyFram
eRule:function(e){var t="@keyframes "+e.name+" {";return Array.prototype.forEach
.call(e.cssRules,function(e){t+=" "+e.keyText+" {"+e.style.cssText+"}"}),t+=" }"
},scopeSelector:function(e,t,n){var r=[],o=e.split(",");return o.forEach(functio
n(e){e=e.trim(),this.selectorNeedsScoping(e,t)&&(e=n&&!e.match(O)?this.applyStri
ctSelectorScope(e,t):this.applySelectorScope(e,t)),r.push(e)},this),r.join(", ")
},selectorNeedsScoping:function(e,t){if(Array.isArray(t))return!0;var n=this.mak
eScopeMatcher(t);return!e.match(n)},makeScopeMatcher:function(e){return e=e.repl
ace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+S,"m")},applySelecto
rScope:function(e,t){return Array.isArray(t)?this.applySelectorScopeList(e,t):th
is.applySimpleSelectorScope(e,t)},applySelectorScopeList:function(e,t){for(var n
,r=[],o=0;n=t[o];o++)r.push(this.applySimpleSelectorScope(e,n));return r.join(",
")},applySimpleSelectorScope:function(e,t){return e.match(L)?(e=e.replace(O,t),
e.replace(L,t+" ")):t+" "+e},applyStrictSelectorScope:function(e,t){t=t.replace(
/\[is=([^\]]*)\]/g,"$1");var n=[" ",">","+","~"],r=e,o="["+t+"]";return n.forEac
h(function(e){var t=r.split(e);r=t.map(function(e){var t=e.trim().replace(L,"");
return t&&n.indexOf(t)<0&&t.indexOf(o)<0&&(e=t.replace(/([^:]*)(:*)(.*)/,"$1"+o+
"$2$3")),e}).join(e)}),r},insertPolyfillHostInCssText:function(e){return e.repla
ce(M,b).replace(T,g)},propertiesFromRule:function(e){var t=e.style.cssText;e.sty
le.content&&!e.style.content.match(/['"]+|attr/)&&(t=t.replace(/content:[^;]*;/g
,"content: '"+e.style.content+"';"));var n=e.style;for(var r in n)"initial"===n[
r]&&(t+=r+": initial; ");return t},replaceTextInStyles:function(e,t){e&&t&&(e in
stanceof Array||(e=[e]),Array.prototype.forEach.call(e,function(e){e.textContent
=t.call(this,e.textContent)},this))},addCssToDocument:function(e,t){e.match("@im
port")?c(e,t):s(e)}},d=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim,p=/\/\*\s*@polyfill
([^*]*\*+([^\/*][^*]*\*+)*\/)([^{]*?){/gim,h=/polyfill-next-selector[^}]*content
\:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,f=/\/\*\s@polyfill-rule([^*]*\*+([^\/*
][^*]*\*+)*)\//gim,m=/(polyfill-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}
]*}/gim,w=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^\/*][^*]*\*+)*)\//gim,v=/(po
lyfill-unscoped-rule)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,g="-shad
owcsshost",b="-shadowcsscontext",y=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{
]*)",E=new RegExp("("+g+y,"gim"),_=new RegExp("("+b+y,"gim"),S="([>\\s~+[.,{:][\
\s\\S]*)?$",T=/\:host/gim,M=/\:host-context/gim,O=g+"-no-combinator",L=new RegEx
p(g,"gim"),N=(new RegExp(b,"gim"),[/>>>/g,/::shadow/g,/::content/g,/\/deep\//g,/
\/shadow\//g,/\/shadow-deep\//g,/\^\^/g,/\^/g]),C=document.createElement("iframe
");C.style.display="none";var j,D=navigator.userAgent.match("Chrome"),H="shim-sh
adowdom",x="shim-shadowdom-css",R="no-shim";if(window.ShadowDOMPolyfill){s("styl
e { display: none !important; }\n");var I=ShadowDOMPolyfill.wrap(document),P=I.q
uerySelector("head");P.insertBefore(l(),P.childNodes[0]),document.addEventListen
er("DOMContentLoaded",function(){e.urlResolver;if(window.HTMLImports&&!HTMLImpor
ts.useNative){var t="link[rel=stylesheet]["+H+"]",n="style["+H+"]";HTMLImports.i
mporter.documentPreloadSelectors+=","+t,HTMLImports.importer.importsPreloadSelec
tors+=","+t,HTMLImports.parser.documentSelectors=[HTMLImports.parser.documentSel
ectors,t,n].join(",");var r=HTMLImports.parser.parseGeneric;HTMLImports.parser.p
arseGeneric=function(e){if(!e[x]){var t=e.__importElement||e;if(!t.hasAttribute(
H))return void r.call(this,e);e.__resource&&(t=e.ownerDocument.createElement("st
yle"),t.textContent=e.__resource),HTMLImports.path.resolveUrlsInStyle(t,e.href),
t.textContent=u.shimStyle(t),t.removeAttribute(H,""),t.setAttribute(x,""),t[x]=!
0,t.parentNode!==P&&(e.parentNode===P?P.replaceChild(t,e):this.addElementToDocum
ent(t)),t.__importParsed=!0,this.markParsingComplete(e),this.parseNext()}};var o
=HTMLImports.parser.hasResource;HTMLImports.parser.hasResource=function(e){retur
n"link"===e.localName&&"stylesheet"===e.rel&&e.hasAttribute(H)?e.__resource:o.ca
ll(this,e)}}})}e.ShadowCSS=u}(window.WebComponents)),function(e){window.ShadowDO
MPolyfill?(window.wrap=ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=ShadowDOMPol
yfill.unwrapIfNeeded):window.wrap=window.unwrap=function(e){return e}}(window.We
bComponents),function(e){"use strict";function t(e){return void 0!==p[e]}functio
n n(){s.call(this),this._isInvalid=!0}function r(e){return""==e&&n.call(this),e.
toLowerCase()}function o(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35
,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function i(e){var t=e.charCodeA
t(0);return t>32&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)
}function a(e,a,s){function c(e){b.push(e)}var l=a||"scheme start",u=0,d="",v=!1
,g=!1,b=[];e:for(;(e[u-1]!=f||0==u)&&!this._isInvalid;){var y=e[u];switch(l){cas
e"scheme start":if(!y||!m.test(y)){if(a){c("Invalid scheme.");break e}d="",l="no
scheme";continue}d+=y.toLowerCase(),l="scheme";break;case"scheme":if(y&&w.test(
y))d+=y.toLowerCase();else{if(":"!=y){if(a){if(f==y)break e;c("Code point not al
lowed in scheme: "+y);break e}d="",u=0,l="no scheme";continue}if(this._scheme=d,
d="",a)break e;t(this._scheme)&&(this._isRelative=!0),l="file"==this._scheme?"re
lative":this._isRelative&&s&&s._scheme==this._scheme?"relative or authority":thi
s._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"=
=y?(this._query="?",l="query"):"#"==y?(this._fragment="#",l="fragment"):f!=y&&"
"!=y&&"\n"!=y&&"\r"!=y&&(this._schemeData+=o(y));break;case"no scheme":if(s&&t(s
._scheme)){l="relative";continue}c("Missing scheme."),n.call(this);break;case"re
lative or authority":if("/"!=y||"/"!=e[u+1]){c("Expected /, got: "+y),l="relativ
e";continue}l="authority ignore slashes";break;case"relative":if(this._isRelativ
e=!0,"file"!=this._scheme&&(this._scheme=s._scheme),f==y){this._host=s._host,thi
s._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s
._username,this._password=s._password;break e}if("/"==y||"\\"==y)"\\"==y&&c("\\
is an invalid code point."),l="relative slash";else if("?"==y)this._host=s._host
,this._port=s._port,this._path=s._path.slice(),this._query="?",this._username=s.
_username,this._password=s._password,l="query";else{if("#"!=y){var E=e[u+1],_=e[
u+2];("file"!=this._scheme||!m.test(y)||":"!=E&&"|"!=E||f!=_&&"/"!=_&&"\\"!=_&&"
?"!=_&&"#"!=_)&&(this._host=s._host,this._port=s._port,this._username=s._usernam
e,this._password=s._password,this._path=s._path.slice(),this._path.pop()),l="rel
ative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.sl
ice(),this._query=s._query,this._fragment="#",this._username=s._username,this._p
assword=s._password,l="fragment"}break;case"relative slash":if("/"!=y&&"\\"!=y){
"file"!=this._scheme&&(this._host=s._host,this._port=s._port,this._username=s._u
sername,this._password=s._password),l="relative path";continue}"\\"==y&&c("\\ is
an invalid code point."),l="file"==this._scheme?"file host":"authority ignore s
lashes";break;case"authority first slash":if("/"!=y){c("Expected '/', got: "+y),
l="authority ignore slashes";continue}l="authority second slash";break;case"auth
ority second slash":if(l="authority ignore slashes","/"!=y){c("Expected '/', got
: "+y);continue}break;case"authority ignore slashes":if("/"!=y&&"\\"!=y){l="auth
ority";continue}c("Expected authority, got: "+y);break;case"authority":if("@"==y
){v&&(c("@ already seen."),d+="%40"),v=!0;for(var S=0;S<d.length;S++){var T=d[S]
;if(" "!=T&&"\n"!=T&&"\r"!=T)if(":"!=T||null!==this._password){var M=o(T);null
!==this._password?this._password+=M:this._username+=M}else this._password="";els
e c("Invalid whitespace in authority.")}d=""}else{if(f==y||"/"==y||"\\"==y||"?"=
=y||"#"==y){u-=d.length,d="",l="host";continue}d+=y}break;case"file host":if(f==
y||"/"==y||"\\"==y||"?"==y||"#"==y){2!=d.length||!m.test(d[0])||":"!=d[1]&&"|"!=
d[1]?0==d.length?l="relative path start":(this._host=r.call(this,d),d="",l="rela
tive path start"):l="relative path";continue}" "==y||"\n"==y||"\r"==y?c("Invali
d whitespace in file host."):d+=y;break;case"host":case"hostname":if(":"!=y||g){
if(f==y||"/"==y||"\\"==y||"?"==y||"#"==y){if(this._host=r.call(this,d),d="",l="r
elative path start",a)break e;continue}" "!=y&&"\n"!=y&&"\r"!=y?("["==y?g
=!0:"]"==y&&(g=!1),d+=y):c("Invalid code point in host/hostname: "+y)}else if(th
is._host=r.call(this,d),d="",l="port","hostname"==a)break e;break;case"port":if(
/[0-9]/.test(y))d+=y;else{if(f==y||"/"==y||"\\"==y||"?"==y||"#"==y||a){if(""!=d)
{var O=parseInt(d,10);O!=p[this._scheme]&&(this._port=O+""),d=""}if(a)break e;l=
"relative path start";continue}" "==y||"\n"==y||"\r"==y?c("Invalid code p
oint in port: "+y):n.call(this)}break;case"relative path start":if("\\"==y&&c("'
\\' not allowed in path."),l="relative path","/"!=y&&"\\"!=y)continue;break;case
"relative path":if(f!=y&&"/"!=y&&"\\"!=y&&(a||"?"!=y&&"#"!=y))" "!=y&&"\n"!=y&&"
\r"!=y&&(d+=o(y));else{"\\"==y&&c("\\ not allowed in relative path.");var L;(L=h
[d.toLowerCase()])&&(d=L),".."==d?(this._path.pop(),"/"!=y&&"\\"!=y&&this._path.
push("")):"."==d&&"/"!=y&&"\\"!=y?this._path.push(""):"."!=d&&("file"==this._sch
eme&&0==this._path.length&&2==d.length&&m.test(d[0])&&"|"==d[1]&&(d=d[0]+":"),th
is._path.push(d)),d="","?"==y?(this._query="?",l="query"):"#"==y&&(this._fragmen
t="#",l="fragment")}break;case"query":a||"#"!=y?f!=y&&" "!=y&&"\n"!=y&&"\r"!=y&&
(this._query+=i(y)):(this._fragment="#",l="fragment");break;case"fragment":f!=y&
&" "!=y&&"\n"!=y&&"\r"!=y&&(this._fragment+=y)}u++}}function s(){this._sche
me="",this._schemeData="",this._username="",this._password=null,this._host="",th
is._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,th
is._isRelative=!1}function c(e,t){void 0===t||t instanceof c||(t=new c(String(t)
)),this._url=e,s.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");a
.call(this,n,null,t)}var l=!1;if(!e.forceJURL)try{var u=new URL("b","http://a");
u.pathname="c%20d",l="http://a/c%20d"===u.href}catch(d){}if(!l){var p=Object.cre
ate(null);p.ftp=21,p.file=0,p.gopher=70,p.http=80,p.https=443,p.ws=80,p.wss=443;
var h=Object.create(null);h["%2e"]=".",h[".%2e"]="..",h["%2e."]="..",h["%2e%2e"]
="..";var f=void 0,m=/[a-zA-Z]/,w=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:func
tion(){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){s.call(this),a.c
all(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInv
alid||a.call(this,e+":","scheme start")},get host(){return this._isInvalid?"":th
is._port?this._host+":"+this._port:this._host},set host(e){!this._isInvalid&&thi
s._isRelative&&a.call(this,e,"host")},get hostname(){return this._host},set host
name(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"hostname")},get port(
){return this._port},set port(e){!this._isInvalid&&this._isRelative&&a.call(this
,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._
path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelat
ive&&(this._path=[],a.call(this,e,"relative path start"))},get search(){return t
his._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!th
is._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),a.ca
ll(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==th
is._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#"
,"#"==e[0]&&(e=e.slice(1)),a.call(this,e,"fragment"))},get origin(){var e;if(thi
s._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 v=e.URL;v&&(c.createObjectURL=function(e){return v.createObjectURL
.apply(v,arguments)},c.revokeObjectURL=function(e){v.revokeObjectURL(e)}),e.URL=
c}}(self),function(e){function t(e){y.push(e),b||(b=!0,m(r))}function n(e){retur
n window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function
r(){b=!1;var e=y;y=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.fo
rEach(function(e){var n=e.takeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)})
,t&&r()}function o(e){e.nodes_.forEach(function(t){var n=w.get(t);n&&n.forEach(f
unction(t){t.observer===e&&t.removeTransientObservers()})})}function i(e,t){for(
var n=e;n;n=n.parentNode){var r=w.get(n);if(r)for(var o=0;o<r.length;o++){var i=
r[o],a=i.options;if(n===e||a.subtree){var s=t(a);s&&i.enqueue(s)}}}}function a(e
){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++E}function s(e,t)
{this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previous
Sibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespa
ce=null,this.oldValue=null}function c(e){var t=new s(e.type,e.target);return t.a
ddedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousS
ibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attribute
Name,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}function
l(e,t){return _=new s(e,t)}function u(e){return S?S:(S=c(_),S.oldValue=e,S)}func
tion d(){_=S=void 0}function p(e){return e===S||e===_}function h(e,t){return e==
=t?e:S&&p(e)?S:null}function f(e,t,n){this.observer=e,this.target=t,this.options
=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var m,w=new WeakMap;
if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;else if(window.setImmed
iate)m=window.setImmediate;else{var v=[],g=String(Math.random());window.addEvent
Listener("message",function(e){if(e.data===g){var t=v;v=[],t.forEach(function(e)
{e()})}}),m=function(e){v.push(e),window.postMessage(g,"*")}}var b=!1,y=[],E=0;a
.prototype={observe:function(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t.char
acterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFil
ter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new S
yntaxError;var r=w.get(e);r||w.set(e,r=[]);for(var o,i=0;i<r.length;i++)if(r[i].
observer===this){o=r[i],o.removeListeners(),o.options=t;break}o||(o=new f(this,e
,t),r.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.
nodes_.forEach(function(e){for(var t=w.get(e),n=0;n<t.length;n++){var r=t[n];if(
r.observer===this){r.removeListeners(),t.splice(n,1);break}}},this),this.records
_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}};var
_,S;f.prototype={enqueue:function(e){var n=this.observer.records_,r=n.length;if
(n.length>0){var o=n[r-1],i=h(o,e);if(i)return void(n[r-1]=i)}else t(this.observ
er);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListener
s_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModif
ied",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",thi
s,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t
.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:functio
n(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.
options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.charact
erData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e
.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.remo
veEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e
!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=
w.get(e);t||w.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var
e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function
(e){this.removeListeners_(e);for(var t=w.get(e),n=0;n<t.length;n++)if(t[n]===thi
s){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePr
opagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.names
paceURI,r=e.target,o=new l("attributes",r);o.attributeName=t,o.attributeNamespac
e=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(r,function(e)
{return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.attrib
uteFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void 0:e.attributeOldVal
ue?u(a):o});break;case"DOMCharacterDataModified":var r=e.target,o=l("characterDa
ta",r),a=e.prevValue;i(r,function(e){return e.characterData?e.characterDataOldVa
lue?u(a):o:void 0});break;case"DOMNodeRemoved":this.addTransientObserver(e.targe
t);case"DOMNodeInserted":var s,c,p=e.target;"DOMNodeInserted"===e.type?(s=[p],c=
[]):(s=[],c=[p]);var h=p.previousSibling,f=p.nextSibling,o=l("childList",e.targe
t.parentNode);o.addedNodes=s,o.removedNodes=c,o.previousSibling=h,o.nextSibling=
f,i(e.relatedNode,function(e){return e.childList?o:void 0})}d()}},e.JsMutationOb
server=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(self),f
unction(e){"use strict";if(!window.performance){var t=Date.now();window.performa
nce={now:function(){return Date.now()-t}}}window.requestAnimationFrame||(window.
requestAnimationFrame=function(){var e=window.webkitRequestAnimationFrame||windo
w.mozRequestAnimationFrame;return e?function(t){return e(function(){t(performanc
e.now())})}:function(e){return window.setTimeout(e,1e3/60)}}()),window.cancelAni
mationFrame||(window.cancelAnimationFrame=function(){return window.webkitCancelA
nimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}}());
var n=function(){var e=document.createEvent("Event");return e.initEvent("foo",!0
,!0),e.preventDefault(),e.defaultPrevented}();if(!n){var r=Event.prototype.preve
ntDefault;Event.prototype.preventDefault=function(){this.cancelable&&(r.call(thi
s),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},confi
gurable:!0}))}}var o=/Trident/.test(navigator.userAgent);if((!window.CustomEvent
||o&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t
=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,Bool
ean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=w
indow.Event.prototype),!window.Event||o&&"function"!=typeof window.Event){var i=
window.Event;window.Event=function(e,t){t=t||{};var n=document.createEvent("Even
t");return n.initEvent(e,Boolean(t.bubbles),Boolean(t.cancelable)),n},window.Eve
nt.prototype=i.prototype}}(window.WebComponents),window.HTMLImports=window.HTMLI
mports||{flags:{}},function(e){function t(e,t){t=t||f,r(function(){i(e,t)},t)}fu
nction n(e){return"complete"===e.readyState||e.readyState===v}function r(e,t){if
(n(t))e&&e();else{var o=function(){"complete"!==t.readyState&&t.readyState!==v||
(t.removeEventListener(g,o),r(e,t))};t.addEventListener(g,o)}}function o(e){e.ta
rget.__loaded=!0}function i(e,t){function n(){c==l&&e&&e({allImports:s,loadedImp
orts:u,errorImports:d})}function r(e){o(e),u.push(this),c++,n()}function i(e){d.
push(this),c++,n()}var s=t.querySelectorAll("link[rel=import]"),c=0,l=s.length,u
=[],d=[]; | 13 },querySelectorAll:function(e){var t=n(e),r=t!==e;e=t;var o=new w;return o.lengt
h=p.call(this,i,0,o,e,r),o}},H={matches:function(t){return t=r(t),e.originalMatc
hes.call(g(this),t)}},x={getElementsByTagName:function(e){var t=new m,n="*"===e?
s:a;return t.length=h.call(this,n,0,t,e,e.toLowerCase()),t},getElementsByClassNa
me:function(e){return this.querySelectorAll("."+e)},getElementsByTagNameNS:funct
ion(e,t){var n=new m,r=null;return r="*"===e?"*"===t?s:c:"*"===t?l:u,n.length=f.
call(this,r,0,n,e||null,t),n}};e.GetElementsByInterface=x,e.SelectorsInterface=D
,e.MatchesInterface=H}(window.ShadowDOMPolyfill),function(e){"use strict";functi
on t(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}functio
n n(e){for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}var
r=e.wrappers.NodeList,o={get firstElementChild(){return t(this.firstChild)},get
lastElementChild(){return n(this.lastChild)},get childElementCount(){for(var e=0
,t=this.firstElementChild;t;t=t.nextElementSibling)e++;return e},get children(){
for(var e=new r,t=0,n=this.firstElementChild;n;n=n.nextElementSibling)e[t++]=n;r
eturn e.length=t,e},remove:function(){var e=this.parentNode;e&&e.removeChild(thi
s)}},i={get nextElementSibling(){return t(this.nextSibling)},get previousElement
Sibling(){return n(this.previousSibling)}};e.ChildNodeInterface=i,e.ParentNodeIn
terface=o}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.ca
ll(this,e)}var n=e.ChildNodeInterface,r=e.wrappers.Node,o=e.enqueueMutation,i=e.
mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=window.CharacterData;t.prototype=Ob
ject.create(r.prototype),i(t.prototype,{get nodeValue(){return this.data},set no
deValue(e){this.data=e},get textContent(){return this.data},set textContent(e){t
his.data=e},get data(){return s(this).data},set data(e){var t=s(this).data;o(thi
s,"characterData",{oldValue:t}),s(this).data=e}}),i(t.prototype,n),a(c,t,documen
t.createTextNode("")),e.wrappers.CharacterData=t}(window.ShadowDOMPolyfill),func
tion(e){"use strict";function t(e){return e>>>0}function n(e){r.call(this,e)}var
r=e.wrappers.CharacterData,o=(e.enqueueMutation,e.mixin),i=e.registerWrapper,a=
window.Text;n.prototype=Object.create(r.prototype),o(n.prototype,{splitText:func
tion(e){e=t(e);var n=this.data;if(e>n.length)throw new Error("IndexSizeError");v
ar r=n.slice(0,e),o=n.slice(e);this.data=r;var i=this.ownerDocument.createTextNo
de(o);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i
}}),i(a,n,document.createTextNode("")),e.wrappers.Text=n}(window.ShadowDOMPolyfi
ll),function(e){"use strict";function t(e){return i(e).getAttribute("class")}fun
ction n(e,t){a(e,"attributes",{name:"class",namespace:null,oldValue:t})}function
r(t){e.invalidateRendererBasedOnAttribute(t,"class")}function o(e,o,i){var a=e.
ownerElement_;if(null==a)return o.apply(e,i);var s=t(a),c=o.apply(e,i);return t(
a)!==s&&(n(a,s),r(a)),c}if(!window.DOMTokenList)return void console.warn("Missin
g DOMTokenList prototype, please include a compatible classList polyfill such as
http://goo.gl/uTcepH.");var i=e.unsafeUnwrap,a=e.enqueueMutation,s=DOMTokenList
.prototype.add;DOMTokenList.prototype.add=function(){o(this,s,arguments)};var c=
DOMTokenList.prototype.remove;DOMTokenList.prototype.remove=function(){o(this,c,
arguments)};var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=fu
nction(){return o(this,l,arguments)}}(window.ShadowDOMPolyfill),function(e){"use
strict";function t(t,n){var r=t.parentNode;if(r&&r.shadowRoot){var o=e.getRende
rerForHost(r);o.dependsOnAttribute(n)&&o.invalidate()}}function n(e,t,n){u(e,"at
tributes",{name:t,namespace:null,oldValue:n})}function r(e){a.call(this,e)}var o
=e.ChildNodeInterface,i=e.GetElementsByInterface,a=e.wrappers.Node,s=e.ParentNod
eInterface,c=e.SelectorsInterface,l=e.MatchesInterface,u=(e.addWrapNodeListMetho
d,e.enqueueMutation),d=e.mixin,p=(e.oneOf,e.registerWrapper),h=e.unsafeUnwrap,f=
e.wrappers,m=window.Element,w=["matches","mozMatchesSelector","msMatchesSelector
","webkitMatchesSelector"].filter(function(e){return m.prototype[e]}),v=w[0],g=m
.prototype[v],b=new WeakMap;r.prototype=Object.create(a.prototype),d(r.prototype
,{createShadowRoot:function(){var t=new f.ShadowRoot(this);h(this).polymerShadow
Root_=t;var n=e.getRendererForHost(this);return n.invalidate(),t},get shadowRoot
(){return h(this).polymerShadowRoot_||null},setAttribute:function(e,r){var o=h(t
his).getAttribute(e);h(this).setAttribute(e,r),n(this,e,o),t(this,e)},removeAttr
ibute:function(e){var r=h(this).getAttribute(e);h(this).removeAttribute(e),n(thi
s,e,r),t(this,e)},get classList(){var e=b.get(this);if(!e){if(e=h(this).classLis
t,!e)return;e.ownerElement_=this,b.set(this,e)}return e},get className(){return
h(this).className},set className(e){this.setAttribute("class",e)},get id(){retur
n h(this).id},set id(e){this.setAttribute("id",e)}}),w.forEach(function(e){"matc
hes"!==e&&(r.prototype[e]=function(e){return this.matches(e)})}),m.prototype.web
kitCreateShadowRoot&&(r.prototype.webkitCreateShadowRoot=r.prototype.createShado
wRoot),d(r.prototype,o),d(r.prototype,i),d(r.prototype,s),d(r.prototype,c),d(r.p
rototype,l),p(m,r,document.createElementNS(null,"x")),e.invalidateRendererBasedO
nAttribute=t,e.matchesNames=w,e.originalMatches=g,e.wrappers.Element=r}(window.S
hadowDOMPolyfill),function(e){"use strict";function t(e){switch(e){case"&":retur
n"&";case"<":return"<";case">":return">";case'"':return""";case"Â
":return" "}}function n(e){return e.replace(O,t)}function r(e){return e.rep
lace(L,t)}function o(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}func
tion i(e,t){switch(e.nodeType){case Node.ELEMENT_NODE:for(var o,i=e.tagName.toLo
werCase(),s="<"+i,c=e.attributes,l=0;o=c[l];l++)s+=" "+o.name+'="'+n(o.value)+'"
';return s+=">",N[i]?s:s+a(e)+"</"+i+">";case Node.TEXT_NODE:var u=e.data;return
t&&C[t.localName]?u:r(u);case Node.COMMENT_NODE:return"<!--"+e.data+"-->";defau
lt:throw console.error(e),new Error("not implemented")}}function a(e){e instance
of M.HTMLTemplateElement&&(e=e.content);for(var t="",n=e.firstChild;n;n=n.nextSi
bling)t+=i(n,e);return t}function s(e,t,n){var r=n||"div";e.textContent="";var o
=S(e.ownerDocument.createElement(r));o.innerHTML=t;for(var i;i=o.firstChild;)e.a
ppendChild(T(i))}function c(e){f.call(this,e)}function l(e,t){var n=S(e.cloneNod
e(!1));n.innerHTML=t;for(var r,o=S(document.createDocumentFragment());r=n.firstC
hild;)o.appendChild(r);return T(o)}function u(t){return function(){return e.rend
erAllPending(),_(this)[t]}}function d(e){m(c,e,u(e))}function p(t){Object.define
Property(c.prototype,t,{get:u(t),set:function(n){e.renderAllPending(),_(this)[t]
=n},configurable:!0,enumerable:!0})}function h(t){Object.defineProperty(c.protot
ype,t,{value:function(){return e.renderAllPending(),_(this)[t].apply(_(this),arg
uments)},configurable:!0,enumerable:!0})}var f=e.wrappers.Element,m=e.defineGett
er,w=e.enqueueMutation,v=e.mixin,g=e.nodesWereAdded,b=e.nodesWereRemoved,y=e.reg
isterWrapper,E=e.snapshotNodeList,_=e.unsafeUnwrap,S=e.unwrap,T=e.wrap,M=e.wrapp
ers,O=/[&\u00A0"]/g,L=/[&\u00A0<>]/g,N=o(["area","base","br","col","command","em
bed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),
C=o(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"
]),j=/MSIE/.test(navigator.userAgent),D=window.HTMLElement,H=window.HTMLTemplate
Element;c.prototype=Object.create(f.prototype),v(c.prototype,{get innerHTML(){re
turn a(this)},set innerHTML(e){if(j&&C[this.localName])return void(this.textCont
ent=e);var t=E(this.childNodes);this.invalidateShadowRenderer()?this instanceof
M.HTMLTemplateElement?s(this.content,e):s(this,e,this.tagName):!H&&this instance
of M.HTMLTemplateElement?s(this.content,e):_(this).innerHTML=e;var n=E(this.chil
dNodes);w(this,"childList",{addedNodes:n,removedNodes:t}),b(t),g(n,this)},get ou
terHTML(){return i(this,this.parentNode)},set outerHTML(e){var t=this.parentNode
;if(t){t.invalidateShadowRenderer();var n=l(t,e);t.replaceChild(n,this)}},insert
AdjacentHTML:function(e,t){var n,r;switch(String(e).toLowerCase()){case"beforebe
gin":n=this.parentNode,r=this;break;case"afterend":n=this.parentNode,r=this.next
Sibling;break;case"afterbegin":n=this,r=this.firstChild;break;case"beforeend":n=
this,r=null;break;default:return}var o=l(n,t);n.insertBefore(o,r)},get hidden(){
return this.hasAttribute("hidden")},set hidden(e){e?this.setAttribute("hidden","
"):this.removeAttribute("hidden")}}),["clientHeight","clientLeft","clientTop","c
lientWidth","offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight"
,"scrollWidth"].forEach(d),["scrollLeft","scrollTop"].forEach(p),["getBoundingCl
ientRect","getClientRects","scrollIntoView"].forEach(h),y(D,c,document.createEle
ment("b")),e.wrappers.HTMLElement=c,e.getInnerHTML=a,e.setInnerHTML=s}(window.Sh
adowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.w
rappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unsafeUnwrap,a=e.wrap,s=wi
ndow.HTMLCanvasElement;t.prototype=Object.create(n.prototype),r(t.prototype,{get
Context:function(){var e=i(this).getContext.apply(i(this),arguments);return e&&a
(e)}}),o(s,t,document.createElement("canvas")),e.wrappers.HTMLCanvasElement=t}(w
indow.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}v
ar n=e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=window.HTMLContentEl
ement;t.prototype=Object.create(n.prototype),r(t.prototype,{constructor:t,get se
lect(){return this.getAttribute("select")},set select(e){this.setAttribute("sele
ct",e)},setAttribute:function(e,t){n.prototype.setAttribute.call(this,e,t),"sele
ct"===String(e).toLowerCase()&&this.invalidateShadowRenderer(!0)}}),i&&o(i,t),e.
wrappers.HTMLContentElement=t}(window.ShadowDOMPolyfill),function(e){"use strict
";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.regist
erWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=window.HTMLFormElement;t.prototype
=Object.create(n.prototype),r(t.prototype,{get elements(){return i(a(this).eleme
nts)}}),o(s,t,document.createElement("form")),e.wrappers.HTMLFormElement=t}(wind
ow.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.call(this,e)}func
tion n(e,t){if(!(this instanceof n))throw new TypeError("DOM object constructor
cannot be called as a function.");var o=i(document.createElement("img"));r.call(
this,o),a(o,this),void 0!==e&&(o.width=e),void 0!==t&&(o.height=t)}var r=e.wrapp
ers.HTMLElement,o=e.registerWrapper,i=e.unwrap,a=e.rewrap,s=window.HTMLImageElem
ent;t.prototype=Object.create(r.prototype),o(s,t,document.createElement("img")),
n.prototype=t.prototype,e.wrappers.HTMLImageElement=t,e.wrappers.Image=n}(window
.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=
e.wrappers.HTMLElement,r=(e.mixin,e.wrappers.NodeList,e.registerWrapper),o=windo
w.HTMLShadowElement;t.prototype=Object.create(n.prototype),t.prototype.construct
or=t,o&&r(o,t),e.wrappers.HTMLShadowElement=t}(window.ShadowDOMPolyfill),functio
n(e){"use strict";function t(e){if(!e.defaultView)return e;var t=d.get(e);if(!t)
{for(t=e.implementation.createHTMLDocument("");t.lastChild;)t.removeChild(t.last
Child);d.set(e,t)}return t}function n(e){for(var n,r=t(e.ownerDocument),o=c(r.cr
eateDocumentFragment());n=e.firstChild;)o.appendChild(n);return o}function r(e){
if(o.call(this,e),!p){var t=n(e);u.set(this,l(t))}}var o=e.wrappers.HTMLElement,
i=e.mixin,a=e.registerWrapper,s=e.unsafeUnwrap,c=e.unwrap,l=e.wrap,u=new WeakMap
,d=new WeakMap,p=window.HTMLTemplateElement;r.prototype=Object.create(o.prototyp
e),i(r.prototype,{constructor:r,get content(){return p?l(s(this).content):u.get(
this)}}),p&&a(p,r),e.wrappers.HTMLTemplateElement=r}(window.ShadowDOMPolyfill),f
unction(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElemen
t,r=e.registerWrapper,o=window.HTMLMediaElement;o&&(t.prototype=Object.create(n.
prototype),r(o,t,document.createElement("audio")),e.wrappers.HTMLMediaElement=t)
}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){r.call(this,e
)}function n(e){if(!(this instanceof n))throw new TypeError("DOM object construc
tor cannot be called as a function.");var t=i(document.createElement("audio"));r
.call(this,t),a(t,this),t.setAttribute("preload","auto"),void 0!==e&&t.setAttrib
ute("src",e)}var r=e.wrappers.HTMLMediaElement,o=e.registerWrapper,i=e.unwrap,a=
e.rewrap,s=window.HTMLAudioElement;s&&(t.prototype=Object.create(r.prototype),o(
s,t,document.createElement("audio")),n.prototype=t.prototype,e.wrappers.HTMLAudi
oElement=t,e.wrappers.Audio=n)}(window.ShadowDOMPolyfill),function(e){"use stric
t";function t(e){return e.replace(/\s+/g," ").trim()}function n(e){o.call(this,e
)}function r(e,t,n,i){if(!(this instanceof r))throw new TypeError("DOM object co
nstructor cannot be called as a function.");var a=c(document.createElement("opti
on"));o.call(this,a),s(a,this),void 0!==e&&(a.text=e),void 0!==t&&a.setAttribute
("value",t),n===!0&&a.setAttribute("selected",""),a.selected=i===!0}var o=e.wrap
pers.HTMLElement,i=e.mixin,a=e.registerWrapper,s=e.rewrap,c=e.unwrap,l=e.wrap,u=
window.HTMLOptionElement;n.prototype=Object.create(o.prototype),i(n.prototype,{g
et text(){return t(this.textContent)},set text(e){this.textContent=t(String(e))}
,get form(){return l(c(this).form)}}),a(u,n,document.createElement("option")),r.
prototype=n.prototype,e.wrappers.HTMLOptionElement=n,e.wrappers.Option=r}(window
.ShadowDOMPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=
e.wrappers.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.unwrap,a=e.wrap,s=windo
w.HTMLSelectElement;t.prototype=Object.create(n.prototype),r(t.prototype,{add:fu
nction(e,t){"object"==typeof t&&(t=i(t)),i(this).add(i(e),t)},remove:function(e)
{return void 0===e?void n.prototype.remove.call(this):("object"==typeof e&&(e=i(
e)),void i(this).remove(e))},get form(){return a(i(this).form)}}),o(s,t,document
.createElement("select")),e.wrappers.HTMLSelectElement=t}(window.ShadowDOMPolyfi
ll),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLE
lement,r=e.mixin,o=e.registerWrapper,i=e.unwrap,a=e.wrap,s=e.wrapHTMLCollection,
c=window.HTMLTableElement;t.prototype=Object.create(n.prototype),r(t.prototype,{
get caption(){return a(i(this).caption)},createCaption:function(){return a(i(thi
s).createCaption())},get tHead(){return a(i(this).tHead)},createTHead:function()
{return a(i(this).createTHead())},createTFoot:function(){return a(i(this).create
TFoot())},get tFoot(){return a(i(this).tFoot)},get tBodies(){return s(i(this).tB
odies)},createTBody:function(){return a(i(this).createTBody())},get rows(){retur
n s(i(this).rows)},insertRow:function(e){return a(i(this).insertRow(e))}}),o(c,t
,document.createElement("table")),e.wrappers.HTMLTableElement=t}(window.ShadowDO
MPolyfill),function(e){"use strict";function t(e){n.call(this,e)}var n=e.wrapper
s.HTMLElement,r=e.mixin,o=e.registerWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=
e.wrap,c=window.HTMLTableSectionElement;t.prototype=Object.create(n.prototype),r
(t.prototype,{constructor:t,get rows(){return i(a(this).rows)},insertRow:functio
n(e){return s(a(this).insertRow(e))}}),o(c,t,document.createElement("thead")),e.
wrappers.HTMLTableSectionElement=t}(window.ShadowDOMPolyfill),function(e){"use s
trict";function t(e){n.call(this,e)}var n=e.wrappers.HTMLElement,r=e.mixin,o=e.r
egisterWrapper,i=e.wrapHTMLCollection,a=e.unwrap,s=e.wrap,c=window.HTMLTableRowE
lement;t.prototype=Object.create(n.prototype),r(t.prototype,{get cells(){return
i(a(this).cells)},insertCell:function(e){return s(a(this).insertCell(e))}}),o(c,
t,document.createElement("tr")),e.wrappers.HTMLTableRowElement=t}(window.ShadowD
OMPolyfill),function(e){"use strict";function t(e){switch(e.localName){case"cont
ent":return new n(e);case"shadow":return new o(e);case"template":return new i(e)
}r.call(this,e)}var n=e.wrappers.HTMLContentElement,r=e.wrappers.HTMLElement,o=e
.wrappers.HTMLShadowElement,i=e.wrappers.HTMLTemplateElement,a=(e.mixin,e.regist
erWrapper),s=window.HTMLUnknownElement;t.prototype=Object.create(r.prototype),a(
s,t),e.wrappers.HTMLUnknownElement=t}(window.ShadowDOMPolyfill),function(e){"use
strict";var t=e.wrappers.Element,n=e.wrappers.HTMLElement,r=e.registerObject,o=
e.defineWrapGetter,i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"
title"),s=r(a),c=Object.getPrototypeOf(s.prototype).constructor;if(!("classList"
in a)){var l=Object.getOwnPropertyDescriptor(t.prototype,"classList");Object.def
ineProperty(n.prototype,"classList",l),delete t.prototype.classList}o(c,"ownerSV
GElement"),e.wrappers.SVGElement=c}(window.ShadowDOMPolyfill),function(e){"use s
trict";function t(e){p.call(this,e)}var n=e.mixin,r=e.registerWrapper,o=e.unwrap
,i=e.wrap,a=window.SVGUseElement,s="http://www.w3.org/2000/svg",c=i(document.cre
ateElementNS(s,"g")),l=document.createElementNS(s,"use"),u=c.constructor,d=Objec
t.getPrototypeOf(u.prototype),p=d.constructor;t.prototype=Object.create(d),"inst
anceRoot"in l&&n(t.prototype,{get instanceRoot(){return i(o(this).instanceRoot)}
,get animatedInstanceRoot(){return i(o(this).animatedInstanceRoot)}}),r(a,t,l),e
.wrappers.SVGUseElement=t}(window.ShadowDOMPolyfill),function(e){"use strict";fu
nction t(e){n.call(this,e)}var n=e.wrappers.EventTarget,r=e.mixin,o=e.registerWr
apper,i=e.unsafeUnwrap,a=e.wrap,s=window.SVGElementInstance;s&&(t.prototype=Obje
ct.create(n.prototype),r(t.prototype,{get correspondingElement(){return a(i(this
).correspondingElement)},get correspondingUseElement(){return a(i(this).correspo
ndingUseElement)},get parentNode(){return a(i(this).parentNode)},get childNodes(
){throw new Error("Not implemented")},get firstChild(){return a(i(this).firstChi
ld)},get lastChild(){return a(i(this).lastChild)},get previousSibling(){return a
(i(this).previousSibling)},get nextSibling(){return a(i(this).nextSibling)}}),o(
s,t),e.wrappers.SVGElementInstance=t)}(window.ShadowDOMPolyfill),function(e){"us
e strict";function t(e){o(e,this)}var n=e.mixin,r=e.registerWrapper,o=e.setWrapp
er,i=e.unsafeUnwrap,a=e.unwrap,s=e.unwrapIfNeeded,c=e.wrap,l=window.CanvasRender
ingContext2D;n(t.prototype,{get canvas(){return c(i(this).canvas)},drawImage:fun
ction(){arguments[0]=s(arguments[0]),i(this).drawImage.apply(i(this),arguments)}
,createPattern:function(){return arguments[0]=a(arguments[0]),i(this).createPatt
ern.apply(i(this),arguments)}}),r(l,t,document.createElement("canvas").getContex
t("2d")),e.wrappers.CanvasRenderingContext2D=t}(window.ShadowDOMPolyfill),functi
on(e){"use strict";function t(e){o(e,this)}var n=e.mixin,r=e.registerWrapper,o=e
.setWrapper,i=e.unsafeUnwrap,a=e.unwrapIfNeeded,s=e.wrap,c=window.WebGLRendering
Context;if(c){n(t.prototype,{get canvas(){return s(i(this).canvas)},texImage2D:f
unction(){arguments[5]=a(arguments[5]),i(this).texImage2D.apply(i(this),argument
s)},texSubImage2D:function(){arguments[6]=a(arguments[6]),i(this).texSubImage2D.
apply(i(this),arguments)}});var l=/WebKit/.test(navigator.userAgent)?{drawingBuf
ferHeight:null,drawingBufferWidth:null}:{};r(c,t,l),e.wrappers.WebGLRenderingCon
text=t}}(window.ShadowDOMPolyfill),function(e){"use strict";var t=e.GetElementsB
yInterface,n=e.ParentNodeInterface,r=e.SelectorsInterface,o=e.mixin,i=e.register
Object,a=i(document.createDocumentFragment());o(a.prototype,n),o(a.prototype,r),
o(a.prototype,t);var s=i(document.createComment(""));e.wrappers.Comment=s,e.wrap
pers.DocumentFragment=a}(window.ShadowDOMPolyfill),function(e){"use strict";func
tion t(e){var t=d(u(e).ownerDocument.createDocumentFragment());n.call(this,t),c(
t,this);var o=e.shadowRoot;h.set(this,o),this.treeScope_=new r(this,a(o||e)),p.s
et(this,e)}var n=e.wrappers.DocumentFragment,r=e.TreeScope,o=e.elementFromPoint,
i=e.getInnerHTML,a=e.getTreeScope,s=e.mixin,c=e.rewrap,l=e.setInnerHTML,u=e.unsa
feUnwrap,d=e.unwrap,p=new WeakMap,h=new WeakMap,f=/[ \t\n\r\f]/;t.prototype=Obje
ct.create(n.prototype),s(t.prototype,{constructor:t,get innerHTML(){return i(thi
s)},set innerHTML(e){l(this,e),this.invalidateShadowRenderer()},get olderShadowR
oot(){return h.get(this)||null},get host(){return p.get(this)||null},invalidateS
hadowRenderer:function(){return p.get(this).invalidateShadowRenderer()},elementF
romPoint:function(e,t){return o(this,this.ownerDocument,e,t)},getElementById:fun
ction(e){return f.test(e)?null:this.querySelector('[id="'+e+'"]')}}),e.wrappers.
ShadowRoot=t}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){v
ar t=d(e).root;return t instanceof h?t.host:null}function n(t,n){if(t.shadowRoot
){n=Math.min(t.childNodes.length-1,n);var r=t.childNodes[n];if(r){var o=e.getDes
tinationInsertionPoints(r);if(o.length>0){var i=o[0].parentNode;i.nodeType==Node
.ELEMENT_NODE&&(t=i)}}}return t}function r(e){return e=u(e),t(e)||e}function o(e
){a(e,this)}var i=e.registerWrapper,a=e.setWrapper,s=e.unsafeUnwrap,c=e.unwrap,l
=e.unwrapIfNeeded,u=e.wrap,d=e.getTreeScope,p=window.Range,h=e.wrappers.ShadowRo
ot;o.prototype={get startContainer(){return r(s(this).startContainer)},get endCo
ntainer(){return r(s(this).endContainer)},get commonAncestorContainer(){return r
(s(this).commonAncestorContainer)},setStart:function(e,t){e=n(e,t),s(this).setSt
art(l(e),t)},setEnd:function(e,t){e=n(e,t),s(this).setEnd(l(e),t)},setStartBefor
e:function(e){s(this).setStartBefore(l(e))},setStartAfter:function(e){s(this).se
tStartAfter(l(e))},setEndBefore:function(e){s(this).setEndBefore(l(e))},setEndAf
ter:function(e){s(this).setEndAfter(l(e))},selectNode:function(e){s(this).select
Node(l(e))},selectNodeContents:function(e){s(this).selectNodeContents(l(e))},com
pareBoundaryPoints:function(e,t){return s(this).compareBoundaryPoints(e,c(t))},e
xtractContents:function(){return u(s(this).extractContents())},cloneContents:fun
ction(){return u(s(this).cloneContents())},insertNode:function(e){s(this).insert
Node(l(e))},surroundContents:function(e){s(this).surroundContents(l(e))},cloneRa
nge:function(){return u(s(this).cloneRange())},isPointInRange:function(e,t){retu
rn s(this).isPointInRange(l(e),t)},comparePoint:function(e,t){return s(this).com
parePoint(l(e),t)},intersectsNode:function(e){return s(this).intersectsNode(l(e)
)},toString:function(){return s(this).toString()}},p.prototype.createContextualF
ragment&&(o.prototype.createContextualFragment=function(e){return u(s(this).crea
teContextualFragment(e))}),i(window.Range,o,document.createRange()),e.wrappers.R
ange=o}(window.ShadowDOMPolyfill),function(e){"use strict";function t(e){e.previ
ousSibling_=e.previousSibling,e.nextSibling_=e.nextSibling,e.parentNode_=e.paren
tNode}function n(n,o,i){var a=x(n),s=x(o),c=i?x(i):null;if(r(o),t(o),i)n.firstCh
ild===i&&(n.firstChild_=i),i.previousSibling_=i.previousSibling;else{n.lastChild
_=n.lastChild,n.lastChild===n.firstChild&&(n.firstChild_=n.firstChild);var l=R(a
.lastChild);l&&(l.nextSibling_=l.nextSibling)}e.originalInsertBefore.call(a,s,c)
}function r(n){var r=x(n),o=r.parentNode;if(o){var i=R(o);t(n),n.previousSibling
&&(n.previousSibling.nextSibling_=n),n.nextSibling&&(n.nextSibling.previousSibli
ng_=n),i.lastChild===n&&(i.lastChild_=n),i.firstChild===n&&(i.firstChild_=n),e.o
riginalRemoveChild.call(o,r)}}function o(e){P.set(e,[])}function i(e){var t=P.ge
t(e);return t||P.set(e,t=[]),t}function a(e){for(var t=[],n=0,r=e.firstChild;r;r
=r.nextSibling)t[n++]=r;return t}function s(){for(var e=0;e<F.length;e++){var t=
F[e],n=t.parentRenderer;n&&n.dirty||t.render()}F=[]}function c(){T=null,s()}func
tion l(e){var t=A.get(e);return t||(t=new h(e),A.set(e,t)),t}function u(e){var t
=j(e).root;return t instanceof C?t:null}function d(e){return l(e.host)}function
p(e){this.skip=!1,this.node=e,this.childNodes=[]}function h(e){this.host=e,this.
dirty=!1,this.invalidateAttributes(),this.associateNode(e)}function f(e){for(var
t=[],n=e.firstChild;n;n=n.nextSibling)E(n)?t.push.apply(t,i(n)):t.push(n);retur
n t}function m(e){if(e instanceof L)return e;if(e instanceof O)return null;for(v
ar t=e.firstChild;t;t=t.nextSibling){var n=m(t);if(n)return n}return null}functi
on w(e,t){i(t).push(e);var n=k.get(e);n?n.push(t):k.set(e,[t])}function v(e){ret
urn k.get(e)}function g(e){k.set(e,void 0)}function b(e,t){var n=t.getAttribute(
"select");if(!n)return!0;if(n=n.trim(),!n)return!0;if(!(e instanceof M))return!1
;if(!q.test(n))return!1;try{return e.matches(n)}catch(r){return!1}}function y(e,
t){var n=v(t);return n&&n[n.length-1]===e}function E(e){return e instanceof O||e
instanceof L}function _(e){return e.shadowRoot}function S(e){for(var t=[],n=e.s
hadowRoot;n;n=n.olderShadowRoot)t.push(n);return t}var T,M=e.wrappers.Element,O=
e.wrappers.HTMLContentElement,L=e.wrappers.HTMLShadowElement,N=e.wrappers.Node,C
=e.wrappers.ShadowRoot,j=(e.assert,e.getTreeScope),D=(e.mixin,e.oneOf),H=e.unsaf
eUnwrap,x=e.unwrap,R=e.wrap,I=e.ArraySplice,P=new WeakMap,k=new WeakMap,A=new We
akMap,W=D(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequ
estAnimationFrame","setTimeout"]),F=[],U=new I;U.equals=function(e,t){return x(e
.node)===t},p.prototype={append:function(e){var t=new p(e);return this.childNode
s.push(t),t},sync:function(e){if(!this.skip){for(var t=this.node,o=this.childNod
es,i=a(x(t)),s=e||new WeakMap,c=U.calculateSplices(o,i),l=0,u=0,d=0,p=0;p<c.leng
th;p++){for(var h=c[p];d<h.index;d++)u++,o[l++].sync(s);for(var f=h.removed.leng
th,m=0;f>m;m++){var w=R(i[u++]);s.get(w)||r(w)}for(var v=h.addedCount,g=i[u]&&R(
i[u]),m=0;v>m;m++){var b=o[l++],y=b.node;n(t,y,g),s.set(y,!0),b.sync(s)}d+=v}for
(var p=d;p<o.length;p++)o[p].sync(s)}}},h.prototype={render:function(e){if(this.
dirty){this.invalidateAttributes();var t=this.host;this.distribution(t);var n=e|
|new p(t);this.buildRenderTree(n,t);var r=!e;r&&n.sync(),this.dirty=!1}},get par
entRenderer(){return j(this.host).renderer},invalidate:function(){if(!this.dirty
){this.dirty=!0;var e=this.parentRenderer;if(e&&e.invalidate(),F.push(this),T)re
turn;T=window[W](c,0)}},distribution:function(e){this.resetAllSubtrees(e),this.d
istributionResolution(e)},resetAll:function(e){E(e)?o(e):g(e),this.resetAllSubtr
ees(e)},resetAllSubtrees:function(e){for(var t=e.firstChild;t;t=t.nextSibling)th
is.resetAll(t);e.shadowRoot&&this.resetAll(e.shadowRoot),e.olderShadowRoot&&this
.resetAll(e.olderShadowRoot)},distributionResolution:function(e){if(_(e)){for(va
r t=e,n=f(t),r=S(t),o=0;o<r.length;o++)this.poolDistribution(r[o],n);for(var o=r
.length-1;o>=0;o--){var i=r[o],a=m(i);if(a){var s=i.olderShadowRoot;s&&(n=f(s));
for(var c=0;c<n.length;c++)w(n[c],a)}this.distributionResolution(i)}}for(var l=e
.firstChild;l;l=l.nextSibling)this.distributionResolution(l)},poolDistribution:f
unction(e,t){if(!(e instanceof L))if(e instanceof O){var n=e;this.updateDependen
tAttributes(n.getAttribute("select"));for(var r=!1,o=0;o<t.length;o++){var e=t[o
];e&&b(e,n)&&(w(e,n),t[o]=void 0,r=!0)}if(!r)for(var i=n.firstChild;i;i=i.nextSi
bling)w(i,n)}else for(var i=e.firstChild;i;i=i.nextSibling)this.poolDistribution
(i,t)},buildRenderTree:function(e,t){for(var n=this.compose(t),r=0;r<n.length;r+
+){var o=n[r],i=e.append(o);this.buildRenderTree(i,o)}if(_(t)){var a=l(t);a.dirt
y=!1}},compose:function(e){for(var t=[],n=e.shadowRoot||e,r=n.firstChild;r;r=r.n
extSibling)if(E(r)){this.associateNode(n);for(var o=i(r),a=0;a<o.length;a++){var
s=o[a];y(r,s)&&t.push(s)}}else t.push(r);return t},invalidateAttributes:functio
n(){this.attributes=Object.create(null)},updateDependentAttributes:function(e){i
f(e){var t=this.attributes;/\.\w+/.test(e)&&(t["class"]=!0),/#\w+/.test(e)&&(t.i
d=!0),e.replace(/\[\s*([^\s=\|~\]]+)/g,function(e,n){t[n]=!0})}},dependsOnAttrib
ute:function(e){return this.attributes[e]},associateNode:function(e){H(e).polyme
rShadowRenderer_=this}};var q=/^(:not\()?[*.#[a-zA-Z_|]/;N.prototype.invalidateS
hadowRenderer=function(e){var t=H(this).polymerShadowRenderer_;return t?(t.inval
idate(),!0):!1},O.prototype.getDistributedNodes=L.prototype.getDistributedNodes=
function(){return s(),i(this)},M.prototype.getDestinationInsertionPoints=functio
n(){return s(),v(this)||[]},O.prototype.nodeIsInserted_=L.prototype.nodeIsInsert
ed_=function(){this.invalidateShadowRenderer();var e,t=u(this);t&&(e=d(t)),H(thi
s).polymerShadowRenderer_=e,e&&e.invalidate()},e.getRendererForHost=l,e.getShado
wTrees=S,e.renderAllPending=s,e.getDestinationInsertionPoints=v,e.visual={insert
Before:n,remove:r}}(window.ShadowDOMPolyfill),function(e){"use strict";function
t(t){if(window[t]){r(!e.wrappers[t]);var c=function(e){n.call(this,e)};c.prototy
pe=Object.create(n.prototype),o(c.prototype,{get form(){return s(a(this).form)}}
),i(window[t],c,document.createElement(t.slice(4,-7))),e.wrappers[t]=c}}var n=e.
wrappers.HTMLElement,r=e.assert,o=e.mixin,i=e.registerWrapper,a=e.unwrap,s=e.wra
p,c=["HTMLButtonElement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenEle
ment","HTMLLabelElement","HTMLLegendElement","HTMLObjectElement","HTMLOutputElem
ent","HTMLTextAreaElement"];c.forEach(t)}(window.ShadowDOMPolyfill),function(e){
"use strict";function t(e){r(e,this)}var n=e.registerWrapper,r=e.setWrapper,o=e.
unsafeUnwrap,i=e.unwrap,a=e.unwrapIfNeeded,s=e.wrap,c=window.Selection;t.prototy
pe={get anchorNode(){return s(o(this).anchorNode)},get focusNode(){return s(o(th
is).focusNode)},addRange:function(e){o(this).addRange(a(e))},collapse:function(e
,t){o(this).collapse(a(e),t)},containsNode:function(e,t){return o(this).contains
Node(a(e),t)},getRangeAt:function(e){return s(o(this).getRangeAt(e))},removeRang
e:function(e){o(this).removeRange(i(e))},selectAllChildren:function(e){o(this).s
electAllChildren(a(e))},toString:function(){return o(this).toString()}},c.protot
ype.extend&&(t.prototype.extend=function(e,t){o(this).extend(a(e),t)}),n(window.
Selection,t,window.getSelection()),e.wrappers.Selection=t}(window.ShadowDOMPolyf
ill),function(e){"use strict";function t(e){r(e,this)}var n=e.registerWrapper,r=
e.setWrapper,o=e.unsafeUnwrap,i=e.unwrapIfNeeded,a=e.wrap,s=window.TreeWalker;t.
prototype={get root(){return a(o(this).root)},get currentNode(){return a(o(this)
.currentNode)},set currentNode(e){o(this).currentNode=i(e)},get filter(){return
o(this).filter},parentNode:function(){return a(o(this).parentNode())},firstChild
:function(){return a(o(this).firstChild())},lastChild:function(){return a(o(this
).lastChild())},previousSibling:function(){return a(o(this).previousSibling())},
previousNode:function(){return a(o(this).previousNode())},nextNode:function(){re
turn a(o(this).nextNode())}},n(s,t),e.wrappers.TreeWalker=t}(window.ShadowDOMPol
yfill),function(e){"use strict";function t(e){u.call(this,e),this.treeScope_=new
m(this,null)}function n(e){var n=document[e];t.prototype[e]=function(){return N
(n.apply(O(this),arguments))}}function r(e,t){D.call(O(t),L(e)),o(e,t)}function
o(e,t){e.shadowRoot&&t.adoptNode(e.shadowRoot),e instanceof f&&i(e,t);for(var n=
e.firstChild;n;n=n.nextSibling)o(n,t)}function i(e,t){var n=e.olderShadowRoot;n&
&t.adoptNode(n)}function a(e){M(e,this)}function s(e,t){var n=document.implement
ation[t];e.prototype[t]=function(){return N(n.apply(O(this),arguments))}}functio
n c(e,t){var n=document.implementation[t];e.prototype[t]=function(){return n.app
ly(O(this),arguments)}}var l=e.GetElementsByInterface,u=e.wrappers.Node,d=e.Pare
ntNodeInterface,p=e.wrappers.Selection,h=e.SelectorsInterface,f=e.wrappers.Shado
wRoot,m=e.TreeScope,w=e.cloneNode,v=e.defineWrapGetter,g=e.elementFromPoint,b=e.
forwardMethodsToWrapper,y=e.matchesNames,E=e.mixin,_=e.registerWrapper,S=e.rende
rAllPending,T=e.rewrap,M=e.setWrapper,O=e.unsafeUnwrap,L=e.unwrap,N=e.wrap,C=e.w
rapEventTargetMethods,j=(e.wrapNodeList,new WeakMap);t.prototype=Object.create(u
.prototype),v(t,"documentElement"),v(t,"body"),v(t,"head"),["createComment","cre
ateDocumentFragment","createElement","createElementNS","createEvent","createEven
tNS","createRange","createTextNode","getElementById"].forEach(n);var D=document.
adoptNode,H=document.getSelection;E(t.prototype,{adoptNode:function(e){return e.
parentNode&&e.parentNode.removeChild(e),r(e,this),e},elementFromPoint:function(e
,t){return g(this,this,e,t)},importNode:function(e,t){return w(e,t,O(this))},get
Selection:function(){return S(),new p(H.call(L(this)))},getElementsByName:functi
on(e){return h.querySelectorAll.call(this,"[name="+JSON.stringify(String(e))+"]"
); |
14 if(l)for(var p,h=0;l>h&&(p=s[h]);h++)a(p)?(u.push(this),c++,n()):(p.addEventList
ener("load",r),p.addEventListener("error",i));else n()}function a(e){return d?e.
__loaded||e["import"]&&"loading"!==e["import"].readyState:e.__importParsed}funct
ion s(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)c(t)&&l(t)}function c(e){ret
urn"link"===e.localName&&"import"===e.rel}function l(e){var t=e["import"];t?o({t
arget:e}):(e.addEventListener("load",o),e.addEventListener("error",o))}var u="im
port",d=Boolean(u in document.createElement("link")),p=Boolean(window.ShadowDOMP
olyfill),h=function(e){return p?window.ShadowDOMPolyfill.wrapIfNeeded(e):e},f=h(
document),m={get:function(){var e=window.HTMLImports.currentScript||document.cur
rentScript||("complete"!==document.readyState?document.scripts[document.scripts.
length-1]:null);return h(e)},configurable:!0};Object.defineProperty(document,"_c
urrentScript",m),Object.defineProperty(f,"_currentScript",m);var w=/Trident/.tes
t(navigator.userAgent),v=w?"complete":"interactive",g="readystatechange";d&&(new
MutationObserver(function(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)t.added
Nodes&&s(t.addedNodes)}).observe(document.head,{childList:!0}),function(){if("lo
ading"===document.readyState)for(var e,t=document.querySelectorAll("link[rel=imp
ort]"),n=0,r=t.length;r>n&&(e=t[n]);n++)l(e)}()),t(function(e){window.HTMLImport
s.ready=!0,window.HTMLImports.readyTime=(new Date).getTime();var t=f.createEvent
("CustomEvent");t.initCustomEvent("HTMLImportsLoaded",!0,!0,e),f.dispatchEvent(t
)}),e.IMPORT_LINK_TYPE=u,e.useNative=d,e.rootDocument=f,e.whenReady=t,e.isIE=w}(
window.HTMLImports),function(e){var t=[],n=function(e){t.push(e)},r=function(){t
.forEach(function(t){t(e)})};e.addModule=n,e.initializeModules=r}(window.HTMLImp
orts),window.HTMLImports.addModule(function(e){var t=/(url\()([^)]*)(\))/g,n=/(@
import[\s]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInStyle:function(e,t){var n=e.ow
nerDocument,r=n.createElement("a");return e.textContent=this.resolveUrlsInCssTex
t(e.textContent,t,r),e},resolveUrlsInCssText:function(e,r,o){var i=this.replaceU
rls(e,o,r,t);return i=this.replaceUrls(i,o,r,n)},replaceUrls:function(e,t,n,r){r
eturn e.replace(r,function(e,r,o,i){var a=o.replace(/["']/g,"");return n&&(a=new
URL(a,n).href),t.href=a,a=t.href,r+"'"+a+"'"+i})}};e.path=r}),window.HTMLImport
s.addModule(function(e){var t={async:!0,ok:function(e){return e.status>=200&&e.s
tatus<300||304===e.status||0===e.status},load:function(n,r,o){var i=new XMLHttpR
equest;return(e.flags.debug||e.flags.bust)&&(n+="?"+Math.random()),i.open("GET",
n,t.async),i.addEventListener("readystatechange",function(e){if(4===i.readyState
){var n=null;try{var a=i.getResponseHeader("Location");a&&(n="/"===a.substr(0,1)
?location.origin+a:a)}catch(e){console.error(e.message)}r.call(o,!t.ok(i)&&i,i.r
esponse||i.responseText,n)}}),i.send(),i},loadDocument:function(e,t,n){this.load
(e,t,n).responseType="document"}};e.xhr=t}),window.HTMLImports.addModule(functio
n(e){var t=e.xhr,n=e.flags,r=function(e,t){this.cache={},this.onload=e,this.onco
mplete=t,this.inflight=0,this.pending={}};r.prototype={addNodes:function(e){this
.inflight+=e.length;for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)this.require(t);t
his.checkDone()},addNode:function(e){this.inflight++,this.require(e),this.checkD
one()},require:function(e){var t=e.src||e.href;e.__nodeUrl=t,this.dedupe(t,e)||t
his.fetch(t,e)},dedupe:function(e,t){if(this.pending[e])return this.pending[e].p
ush(t),!0;return this.cache[e]?(this.onload(e,t,this.cache[e]),this.tail(),!0):(
this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load&&console.log("fetch",e,r)
,e)if(e.match(/^data:/)){var o=e.split(","),i=o[0],a=o[1];a=i.indexOf(";base64")
>-1?atob(a):decodeURIComponent(a),setTimeout(function(){this.receive(e,r,null,a)
}.bind(this),0)}else{var s=function(t,n,o){this.receive(e,r,t,n,o)}.bind(this);t
.load(e,s)}else setTimeout(function(){this.receive(e,r,{error:"href must be spec
ified"},null)}.bind(this),0)},receive:function(e,t,n,r,o){this.cache[e]=r;for(va
r i,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.onload(e,i,r,n,o),th
is.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()
},checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=r}),window.HT
MLImports.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,n=0,r=e.length;r>n&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.lengt
h&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.
addCallback(e);for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)t.children&&t.children
.length&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{chi
ldList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImports.addModule(function(e)
{function t(e){return"link"===e.localName&&e.rel===u}function n(e){var t=r(e);re
turn"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}function r(e){re
turn e.textContent+o(e)}function o(e){var t=e.ownerDocument;t.__importedScripts=
t.__importedScripts||0;var n=e.ownerDocument.baseURI,r=t.__importedScripts?"-"+t
.__importedScripts:"";return t.__importedScripts++,"\n//# sourceURL="+n+r+".js\n
"}function i(e){var t=e.ownerDocument.createElement("style");return t.textConten
t=e.textContent,a.resolveUrlsInStyle(t),t}var a=e.path,s=e.rootDocument,c=e.flag
s,l=e.isIE,u=e.IMPORT_LINK_TYPE,d="link[rel="+u+"]",p={documentSelectors:d,impor
tsSelectors:[d,"link[rel=stylesheet]:not([type])","style:not([type])","script:no
t([type])",'script[type="application/javascript"]','script[type="text/javascript
"]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseStyle"},dy
namicElements:[],parseNext:function(){var e=this.nextToParse();e&&this.parse(e)}
,parse:function(e){if(this.isParsed(e))return void(c.parse&&console.log("[%s] is
already parsed",e.localName));var t=this[this.map[e.localName]];t&&(this.markPa
rsing(e),t.call(this,e))},parseDynamic:function(e,t){this.dynamicElements.push(e
),t||this.parseNext()},markParsing:function(e){c.parse&&console.log("parsing",e)
,this.parsingElement=e},markParsingComplete:function(e){e.__importParsed=!0,this
.markDynamicParsingComplete(e),e.__importElement&&(e.__importElement.__importPar
sed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement=n
ull,c.parse&&console.log("completed",e)},markDynamicParsingComplete:function(e){
var t=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},pa
rseImport:function(e){if(e["import"]=e.__doc,window.HTMLImports.__importsParsing
Hook&&window.HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__imp
ortParsed=!0),this.markParsingComplete(e),e.__resource&&!e.__error?e.dispatchEve
nt(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=i(e),t.
__appliedElement=e,e.__importElement=t,this.parseGeneric(e)},parseGeneric:functi
on(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElement:fu
nction(e){for(var t=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__importLi
nk;return t},addElementToDocument:function(e){var t=this.rootImportForElement(e.
__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){v
ar n=this,r=function(o){e.removeEventListener("load",r),e.removeEventListener("e
rror",r),t&&t(o),n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("
load",r),e.addEventListener("error",r),l&&"style"===e.localName){var o=!1;if(-1=
=e.textContent.indexOf("@import"))o=!0;else if(e.sheet){o=!0;for(var i,a=e.sheet
.cssRules,s=a?a.length:0,c=0;s>c&&(i=a[c]);c++)i.type===CSSRule.IMPORT_RULE&&(o=
o&&Boolean(i.styleSheet))}o&&setTimeout(function(){e.dispatchEvent(new CustomEve
nt("load",{bubbles:!1}))})}},parseScript:function(t){var r=document.createElemen
t("script");r.__importElement=t,r.src=t.src?t.src:n(t),e.currentScript=t,this.tr
ackElement(r,function(t){r.parentNode&&r.parentNode.removeChild(r),e.currentScri
pt=null}),this.addElementToDocument(r)},nextToParse:function(){return this._mayP
arse=[],!this.parsingElement&&(this.nextToParseInDoc(s)||this.nextToParseDynamic
())},nextToParseInDoc:function(e,n){if(e&&this._mayParse.indexOf(e)<0){this._may
Parse.push(e);for(var r,o=e.querySelectorAll(this.parseSelectorsForNode(e)),i=0,
a=o.length;a>i&&(r=o[i]);i++)if(!this.isParsed(r))return this.hasResource(r)?t(r
)?this.nextToParseInDoc(r.__doc,r):r:void 0}return n},nextToParseDynamic:functio
n(){return this.dynamicElements[0]},parseSelectorsForNode:function(e){var t=e.ow
nerDocument||e;return t===s?this.documentSelectors:this.importsSelectors},isPars
ed:function(e){return e.__importParsed},needsDynamicParsing:function(e){return t
his.dynamicElements.indexOf(e)>=0},hasResource:function(e){return!t(e)||void 0!=
=e.__doc}};e.parser=p,e.IMPORT_SELECTOR=d}),window.HTMLImports.addModule(functio
n(e){function t(e){return n(e,a)}function n(e,t){return"link"===e.localName&&e.g
etAttribute("rel")===t}function r(e){return!!Object.getOwnPropertyDescriptor(e,"
baseURI")}function o(e,t){var n=document.implementation.createHTMLDocument(a);n.
_URL=t;var o=n.createElement("base");o.setAttribute("href",t),n.baseURI||r(n)||O
bject.defineProperty(n,"baseURI",{value:t});var i=n.createElement("meta");return
i.setAttribute("charset","utf-8"),n.head.appendChild(i),n.head.appendChild(o),n
.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTM
LTemplateElement.bootstrap(n),n}var i=e.flags,a=e.IMPORT_LINK_TYPE,s=e.IMPORT_SE
LECTOR,c=e.rootDocument,l=e.Loader,u=e.Observer,d=e.parser,p={documents:{},docum
entPreloadSelectors:s,importsPreloadSelectors:[s].join(","),loadNode:function(e)
{h.addNode(e)},loadSubtree:function(e){var t=this.marshalNodes(e);h.addNodes(t)}
,marshalNodes:function(e){return e.querySelectorAll(this.loadSelectorsForNode(e)
)},loadSelectorsForNode:function(e){var t=e.ownerDocument||e;return t===c?this.d
ocumentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,n,r,a,s)
{if(i.load&&console.log("loaded",e,n),n.__resource=r,n.__error=a,t(n)){var c=thi
s.documents[e];void 0===c&&(c=a?null:o(r,s||e),c&&(c.__importLink=n,this.bootDoc
ument(c)),this.documents[e]=c),n.__doc=c}d.parseNext()},bootDocument:function(e)
{this.loadSubtree(e),this.observer.observe(e),d.parseNext()},loadedAll:function(
){d.parseNext()}},h=new l(p.loaded.bind(p),p.loadedAll.bind(p));if(p.observer=ne
w u,!document.baseURI){var f={get:function(){var e=document.querySelector("base"
);return e?e.href:window.location.href},configurable:!0};Object.defineProperty(d
ocument,"baseURI",f),Object.defineProperty(c,"baseURI",f)}e.importer=p,e.importL
oader=h}),window.HTMLImports.addModule(function(e){var t=e.parser,n=e.importer,r
={added:function(e){for(var r,o,i,a,s=0,c=e.length;c>s&&(a=e[s]);s++)r||(r=a.own
erDocument,o=t.isParsed(r)),i=this.shouldLoadNode(a),i&&n.loadNode(a),this.shoul
dParseNode(a)&&o&&t.parseDynamic(a,i)},shouldLoadNode:function(e){return 1===e.n
odeType&&o.call(e,n.loadSelectorsForNode(e))},shouldParseNode:function(e){return
1===e.nodeType&&o.call(e,t.parseSelectorsForNode(e))}};n.observer.addCallback=r
.added.bind(r);var o=HTMLElement.prototype.matches||HTMLElement.prototype.matche
sSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mo
zMatchesSelector||HTMLElement.prototype.msMatchesSelector}),function(e){function
t(){window.HTMLImports.importer.bootDocument(r)}var n=e.initializeModules;e.isI
E;if(!e.useNative){n();var r=e.rootDocument;"complete"===document.readyState||"i
nteractive"===document.readyState&&!window.attachEvent?t():document.addEventList
ener("DOMContentLoaded",t)}}(window.HTMLImports),window.CustomElements=window.Cu
stomElements||{flags:{}},function(e){var t=e.flags,n=[],r=function(e){n.push(e)}
,o=function(){n.forEach(function(t){t(e)})};e.addModule=r,e.initializeModules=o,
e.hasNative=Boolean(document.registerElement),e.isIE=/Trident/.test(navigator.us
erAgent),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&(!wind
ow.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),window.Cus
tomElements.addModule(function(e){function t(e,t){n(e,function(e){return t(e)?!0
:void r(e,t)}),r(e,t)}function n(e,t,r){var o=e.firstElementChild;if(!o)for(o=e.
firstChild;o&&o.nodeType!==Node.ELEMENT_NODE;)o=o.nextSibling;for(;o;)t(o,r)!==!
0&&n(o,t,r),o=o.nextElementSibling;return null}function r(e,n){for(var r=e.shado
wRoot;r;)t(r,n),r=r.olderShadowRoot}function o(e,t){i(e,t,[])}function i(e,t,n){
if(e=window.wrap(e),!(n.indexOf(e)>=0)){n.push(e);for(var r,o=e.querySelectorAll
("link[rel="+a+"]"),s=0,c=o.length;c>s&&(r=o[s]);s++)r["import"]&&i(r["import"],
t,n);t(e)}}var a=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";e
.forDocumentTree=o,e.forSubtree=t}),window.CustomElements.addModule(function(e){
function t(e,t){return n(e,t)||r(e,t)}function n(t,n){return e.upgrade(t,n)?!0:v
oid(n&&a(t))}function r(e,t){b(e,function(e){return n(e,t)?!0:void 0})}function
o(e){S.push(e),_||(_=!0,setTimeout(i))}function i(){_=!1;for(var e,t=S,n=0,r=t.l
ength;r>n&&(e=t[n]);n++)e();S=[]}function a(e){E?o(function(){s(e)}):s(e)}functi
on s(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.at
tachedCallback())}function c(e){l(e),b(e,function(e){l(e)})}function l(e){E?o(fu
nction(){u(e)}):u(e)}function u(e){e.__upgraded__&&e.__attached&&(e.__attached=!
1,e.detachedCallback&&e.detachedCallback())}function d(e){for(var t=e,n=window.w
rap(document);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FR
AGMENT_NODE&&t.host}}function p(e){if(e.shadowRoot&&!e.shadowRoot.__watched){g.d
om&&console.log("watching shadow-root for: ",e.localName);for(var t=e.shadowRoot
;t;)m(t),t=t.olderShadowRoot}}function h(e,n){if(g.dom){var r=n[0];if(r&&"childL
ist"===r.type&&r.addedNodes&&r.addedNodes){for(var o=r.addedNodes[0];o&&o!==docu
ment&&!o.host;)o=o.parentNode;var i=o&&(o.URL||o._URL||o.host&&o.host.localName)
||"";i=i.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]
",n.length,i||"")}var a=d(e);n.forEach(function(e){"childList"===e.type&&(T(e.ad
dedNodes,function(e){e.localName&&t(e,a)}),T(e.removedNodes,function(e){e.localN
ame&&c(e)}))}),g.dom&&console.groupEnd()}function f(e){for(e=window.wrap(e),e||(
e=window.wrap(document));e.parentNode;)e=e.parentNode;var t=e.__observer;t&&(h(e
,t.takeRecords()),i())}function m(e){if(!e.__observer){var t=new MutationObserve
r(h.bind(this,e));t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}functio
n w(e){e=window.wrap(e),g.dom&&console.group("upgradeDocument: ",e.baseURI.split
("/").pop());var n=e===window.wrap(document);t(e,n),m(e),g.dom&&console.groupEnd
()}function v(e){y(e,w)}var g=e.flags,b=e.forSubtree,y=e.forDocumentTree,E=windo
w.MutationObserver._isPolyfilled&&g["throttle-attached"];e.hasPolyfillMutations=
E,e.hasThrottledAttached=E;var _=!1,S=[],T=Array.prototype.forEach.call.bind(Arr
ay.prototype.forEach),M=Element.prototype.createShadowRoot;M&&(Element.prototype
.createShadowRoot=function(){var e=M.call(this);return window.CustomElements.wat
chShadow(this),e}),e.watchShadow=p,e.upgradeDocumentTree=v,e.upgradeDocument=w,e
.upgradeSubtree=r,e.upgradeAll=t,e.attached=a,e.takeRecords=f}),window.CustomEle
ments.addModule(function(e){function t(t,r){if("template"===t.localName&&window.
HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(
t),!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE){var o=t.getAttribute("is"),i
=e.getRegisteredDefinition(t.localName)||e.getRegisteredDefinition(o);if(i&&(o&&
i.tag==t.localName||!o&&!i["extends"]))return n(t,i,r)}}function n(t,n,o){return
a.upgrade&&console.group("upgrade:",t.localName),n.is&&t.setAttribute("is",n.is
),r(t,n),t.__upgraded__=!0,i(t),o&&e.attached(t),e.upgradeSubtree(t,o),a.upgrade
&&console.groupEnd(),t}function r(e,t){Object.__proto__?e.__proto__=t.prototype:
(o(e,t.prototype,t["native"]),e.__proto__=t.prototype)}function o(e,t,n){for(var
r={},o=t;o!==n&&o!==HTMLElement.prototype;){for(var i,a=Object.getOwnPropertyNa
mes(o),s=0;i=a[s];s++)r[i]||(Object.defineProperty(e,i,Object.getOwnPropertyDesc
riptor(o,i)),r[i]=1);o=Object.getPrototypeOf(o)}}function i(e){e.createdCallback
&&e.createdCallback()}var a=e.flags;e.upgrade=t,e.upgradeWithDefinition=n,e.impl
ementPrototype=r}),window.CustomElements.addModule(function(e){function t(t,r){v
ar c=r||{};if(!t)throw new Error("document.registerElement: first argument `name
` must not be empty");if(t.indexOf("-")<0)throw new Error("document.registerElem
ent: first argument ('name') must contain a dash ('-'). Argument provided was '"
+String(t)+"'.");if(o(t))throw new Error("Failed to execute 'registerElement' on
'Document': Registration failed for type '"+String(t)+"'. The type name is inva
lid.");if(l(t))throw new Error("DuplicateDefinitionError: a type with name '"+St
ring(t)+"' is already registered");return c.prototype||(c.prototype=Object.creat
e(HTMLElement.prototype)),c.__name=t.toLowerCase(),c["extends"]&&(c["extends"]=c
["extends"].toLowerCase()),c.lifecycle=c.lifecycle||{},c.ancestry=i(c["extends"]
),a(c),s(c),n(c.prototype),u(c.__name,c),c.ctor=d(c),c.ctor.prototype=c.prototyp
e,c.prototype.constructor=c.ctor,e.ready&&w(document),c.ctor}function n(e){if(!e
.setAttribute._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,n){r.c
all(this,e,n,t)};var n=e.removeAttribute;e.removeAttribute=function(e){r.call(th
is,e,null,n)},e.setAttribute._polyfilled=!0}}function r(e,t,n){e=e.toLowerCase()
;var r=this.getAttribute(e);n.apply(this,arguments);var o=this.getAttribute(e);t
his.attributeChangedCallback&&o!==r&&this.attributeChangedCallback(e,r,o)}functi
on o(e){for(var t=0;t<E.length;t++)if(e===E[t])return!0}function i(e){var t=l(e)
;return t?i(t["extends"]).concat([t]):[]}function a(e){for(var t,n=e["extends"],
r=0;t=e.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}funct
ion s(e){if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=docume
nt.createElement(e.tag);t=Object.getPrototypeOf(n)}for(var r,o=e.prototype,i=!1;
o;)o==t&&(i=!0),r=Object.getPrototypeOf(o),r&&(o.__proto__=r),o=r;i||console.war
n(e.tag+" prototype not found in prototype chain for "+e.is),e["native"]=t}}func
tion c(e){return g(T(e.tag),e)}function l(e){return e?_[e.toLowerCase()]:void 0}
function u(e,t){_[e]=t}function d(e){return function(){return c(e)}}function p(e
,t,n){return e===S?h(t,n):M(e,t)}function h(e,t){e&&(e=e.toLowerCase()),t&&(t=t.
toLowerCase());var n=l(t||e);if(n){if(e==n.tag&&t==n.is)return new n.ctor;if(!t&
&!n.is)return new n.ctor}var r;return t?(r=h(e),r.setAttribute("is",t),r):(r=T(e
),e.indexOf("-")>=0&&b(r,HTMLElement),r)}function f(e,t){var n=e[t];e[t]=functio
n(){var e=n.apply(this,arguments);return v(e),e}}var m,w=(e.isIE,e.upgradeDocume
ntTree),v=e.upgradeAll,g=e.upgradeWithDefinition,b=e.implementPrototype,y=e.useN
ative,E=["annotation-xml","color-profile","font-face","font-face-src","font-face
-uri","font-face-format","font-face-name","missing-glyph"],_={},S="http://www.w3
.org/1999/xhtml",T=document.createElement.bind(document),M=document.createElemen
tNS.bind(document);m=Object.__proto__||y?function(e,t){return e instanceof t}:fu
nction(e,t){if(e instanceof t)return!0;for(var n=e;n;){if(n===t.prototype)return
!0;n=n.__proto__}return!1},f(Node.prototype,"cloneNode"),f(document,"importNode"
),document.registerElement=t,document.createElement=h,document.createElementNS=p
,e.registry=_,e["instanceof"]=m,e.reservedTagList=E,e.getRegisteredDefinition=l,
document.register=document.registerElement}),function(e){function t(){i(window.w
rap(document)),window.CustomElements.ready=!0;var e=window.requestAnimationFrame
||function(e){setTimeout(e,16)};e(function(){setTimeout(function(){window.Custom
Elements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed
=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatch
Event(new CustomEvent("WebComponentsReady",{bubbles:!0}))})})}var n=e.useNative,
r=e.initializeModules;e.isIE;if(n){var o=function(){};e.watchShadow=o,e.upgrade=
o,e.upgradeAll=o,e.upgradeDocumentTree=o,e.upgradeSubtree=o,e.takeRecords=o,e["i
nstanceof"]=function(e,t){return e instanceof t}}else r();var i=e.upgradeDocumen
tTree,a=e.upgradeDocument;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap
=window.ShadowDOMPolyfill.wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.un
wrapIfNeeded):window.wrap=window.unwrap=function(e){return e}),window.HTMLImport
s&&(window.HTMLImports.__importsParsingHook=function(e){e["import"]&&a(wrap(e["i
mport"]))}),"complete"===document.readyState||e.flags.eager)t();else if("interac
tive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTM
LImports.ready){var s=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImports
Loaded":"DOMContentLoaded";window.addEventListener(s,t)}else t()}(window.CustomE
lements),function(e){Function.prototype.bind||(Function.prototype.bind=function(
e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){var r=
n.slice();return r.push.apply(r,arguments),t.apply(e,r)}})}(window.WebComponents
),function(e){var t=document.createElement("style");t.textContent="body {transit
ion: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; ove
rflow: hidden; position: relative; } \n";var n=document.querySelector("head");n.
insertBefore(t,n.firstChild)}(window.WebComponents),function(e){window.Platform=
e}(window.WebComponents); | 14 |
| 15 }});var x=document.createTreeWalker,R=e.wrappers.TreeWalker;if(t.prototype.creat
eTreeWalker=function(e,t,n,r){var o=null;return n&&(n.acceptNode&&"function"==ty
peof n.acceptNode?o={acceptNode:function(e){return n.acceptNode(N(e))}}:"functio
n"==typeof n&&(o=function(e){return n(N(e))})),new R(x.call(L(this),L(e),t,o,r))
},document.registerElement){var I=document.registerElement;t.prototype.registerE
lement=function(t,n){function r(e){return e?void M(e,this):i?document.createElem
ent(i,t):document.createElement(t)}var o,i;if(void 0!==n&&(o=n.prototype,i=n["ex
tends"]),o||(o=Object.create(HTMLElement.prototype)),e.nativePrototypeTable.get(
o))throw new Error("NotSupportedError");for(var a,s=Object.getPrototypeOf(o),c=[
];s&&!(a=e.nativePrototypeTable.get(s));)c.push(s),s=Object.getPrototypeOf(s);if
(!a)throw new Error("NotSupportedError");for(var l=Object.create(a),u=c.length-1
;u>=0;u--)l=Object.create(l);["createdCallback","attachedCallback","detachedCall
back","attributeChangedCallback"].forEach(function(e){var t=o[e];t&&(l[e]=functi
on(){N(this)instanceof r||T(this),t.apply(N(this),arguments)})});var d={prototyp
e:l};i&&(d["extends"]=i),r.prototype=o,r.prototype.constructor=r,e.constructorTa
ble.set(l,r),e.nativePrototypeTable.set(o,l);I.call(L(this),t,d);return r},b([wi
ndow.HTMLDocument||window.Document],["registerElement"])}b([window.HTMLBodyEleme
nt,window.HTMLDocument||window.Document,window.HTMLHeadElement,window.HTMLHtmlEl
ement],["appendChild","compareDocumentPosition","contains","getElementsByClassNa
me","getElementsByTagName","getElementsByTagNameNS","insertBefore","querySelecto
r","querySelectorAll","removeChild","replaceChild"]),b([window.HTMLBodyElement,w
indow.HTMLHeadElement,window.HTMLHtmlElement],y),b([window.HTMLDocument||window.
Document],["adoptNode","importNode","contains","createComment","createDocumentFr
agment","createElement","createElementNS","createEvent","createEventNS","createR
ange","createTextNode","createTreeWalker","elementFromPoint","getElementById","g
etElementsByName","getSelection"]),E(t.prototype,l),E(t.prototype,d),E(t.prototy
pe,h),E(t.prototype,{get implementation(){var e=j.get(this);return e?e:(e=new a(
L(this).implementation),j.set(this,e),e)},get defaultView(){return N(L(this).def
aultView)}}),_(window.Document,t,document.implementation.createHTMLDocument(""))
,window.HTMLDocument&&_(window.HTMLDocument,t),C([window.HTMLBodyElement,window.
HTMLDocument||window.Document,window.HTMLHeadElement]),s(a,"createDocumentType")
,s(a,"createDocument"),s(a,"createHTMLDocument"),c(a,"hasFeature"),_(window.DOMI
mplementation,a),b([window.DOMImplementation],["createDocumentType","createDocum
ent","createHTMLDocument","hasFeature"]),e.adoptNodeNoRemove=r,e.wrappers.DOMImp
lementation=a,e.wrappers.Document=t}(window.ShadowDOMPolyfill),function(e){"use
strict";function t(e){n.call(this,e)}var n=e.wrappers.EventTarget,r=e.wrappers.S
election,o=e.mixin,i=e.registerWrapper,a=e.renderAllPending,s=e.unwrap,c=e.unwra
pIfNeeded,l=e.wrap,u=window.Window,d=window.getComputedStyle,p=window.getDefault
ComputedStyle,h=window.getSelection;t.prototype=Object.create(n.prototype),u.pro
totype.getComputedStyle=function(e,t){return l(this||window).getComputedStyle(c(
e),t)},p&&(u.prototype.getDefaultComputedStyle=function(e,t){return l(this||wind
ow).getDefaultComputedStyle(c(e),t)}),u.prototype.getSelection=function(){return
l(this||window).getSelection()},delete window.getComputedStyle,delete window.ge
tDefaultComputedStyle,delete window.getSelection,["addEventListener","removeEven
tListener","dispatchEvent"].forEach(function(e){u.prototype[e]=function(){var t=
l(this||window);return t[e].apply(t,arguments)},delete window[e]}),o(t.prototype
,{getComputedStyle:function(e,t){return a(),d.call(s(this),c(e),t)},getSelection
:function(){return a(),new r(h.call(s(this)))},get document(){return l(s(this).d
ocument)}}),p&&(t.prototype.getDefaultComputedStyle=function(e,t){return a(),p.c
all(s(this),c(e),t)}),i(u,t,window),e.wrappers.Window=t}(window.ShadowDOMPolyfil
l),function(e){"use strict";var t=e.unwrap,n=window.DataTransfer||window.Clipboa
rd,r=n.prototype.setDragImage;r&&(n.prototype.setDragImage=function(e,n,o){r.cal
l(this,t(e),n,o)})}(window.ShadowDOMPolyfill),function(e){"use strict";function
t(e){var t;t=e instanceof i?e:new i(e&&o(e)),r(t,this)}var n=e.registerWrapper,r
=e.setWrapper,o=e.unwrap,i=window.FormData;i&&(n(i,t,new i),e.wrappers.FormData=
t)}(window.ShadowDOMPolyfill),function(e){"use strict";var t=e.unwrapIfNeeded,n=
XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(e){return n
.call(this,t(e))}}(window.ShadowDOMPolyfill),function(e){"use strict";function t
(e){var t=n[e],r=window[t];if(r){var o=document.createElement(e),i=o.constructor
;window[t]=i}}var n=(e.isWrapperFor,{a:"HTMLAnchorElement",area:"HTMLAreaElement
",audio:"HTMLAudioElement",base:"HTMLBaseElement",body:"HTMLBodyElement",br:"HTM
LBRElement",button:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLT
ableCaptionElement",col:"HTMLTableColElement",content:"HTMLContentElement",data:
"HTMLDataElement",datalist:"HTMLDataListElement",del:"HTMLModElement",dir:"HTMLD
irectoryElement",div:"HTMLDivElement",dl:"HTMLDListElement",embed:"HTMLEmbedElem
ent",fieldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement
",frame:"HTMLFrameElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement
",head:"HTMLHeadElement",hr:"HTMLHRElement",html:"HTMLHtmlElement",iframe:"HTMLI
FrameElement",img:"HTMLImageElement",input:"HTMLInputElement",keygen:"HTMLKeygen
Element",label:"HTMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",
link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:"H
TMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTM
LMeterElement",object:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOp
tGroupElement",option:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLPara
graphElement",param:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgre
ssElement",q:"HTMLQuoteElement",script:"HTMLScriptElement",select:"HTMLSelectEle
ment",shadow:"HTMLShadowElement",source:"HTMLSourceElement",span:"HTMLSpanElemen
t",style:"HTMLStyleElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElem
ent",template:"HTMLTemplateElement",textarea:"HTMLTextAreaElement",thead:"HTMLTa
bleSectionElement",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTable
RowElement",track:"HTMLTrackElement",ul:"HTMLUListElement",video:"HTMLVideoEleme
nt"});Object.keys(n).forEach(t),Object.getOwnPropertyNames(e.wrappers).forEach(f
unction(t){window[t]=e.wrappers[t]})}(window.ShadowDOMPolyfill),function(e){func
tion t(e,t){var n="";return Array.prototype.forEach.call(e,function(e){n+=e.text
Content+"\n\n"}),t||(n=n.replace(d,"")),n}function n(e){var t=document.createEle
ment("style");return t.textContent=e,t}function r(e){var t=n(e);document.head.ap
pendChild(t);var r=[];if(t.sheet)try{r=t.sheet.cssRules}catch(o){}else console.w
arn("sheet not found",t);return t.parentNode.removeChild(t),r}function o(){C.ini
tialized=!0,document.body.appendChild(C);var e=C.contentDocument,t=e.createEleme
nt("base");t.href=document.baseURI,e.head.appendChild(t)}function i(e){C.initial
ized||o(),document.body.appendChild(C),e(C.contentDocument),document.body.remove
Child(C)}function a(e,t){if(t){var o;if(e.match("@import")&&D){var a=n(e);i(func
tion(e){e.head.appendChild(a.impl),o=Array.prototype.slice.call(a.sheet.cssRules
,0),t(o)})}else o=r(e),t(o)}}function s(e){e&&l().appendChild(document.createTex
tNode(e))}function c(e,t){var r=n(e);r.setAttribute(t,""),r.setAttribute(x,""),d
ocument.head.appendChild(r)}function l(){return j||(j=document.createElement("st
yle"),j.setAttribute(x,""),j[x]=!0),j}var u={strictStyling:!1,registry:{},shimSt
yling:function(e,n,r){var o=this.prepareRoot(e,n,r),i=this.isTypeExtension(r),a=
this.makeScopeSelector(n,i),s=t(o,!0);s=this.scopeCssText(s,a),e&&(e.shimmedStyl
e=s),this.addCssToDocument(s,n)},shimStyle:function(e,t){return this.shimCssText
(e.textContent,t)},shimCssText:function(e,t){return e=this.insertDirectives(e),t
his.scopeCssText(e,t)},makeScopeSelector:function(e,t){return e?t?"[is="+e+"]":e
:""},isTypeExtension:function(e){return e&&e.indexOf("-")<0},prepareRoot:functio
n(e,t,n){var r=this.registerRoot(e,t,n);return this.replaceTextInStyles(r.rootSt
yles,this.insertDirectives),this.removeStyles(e,r.rootStyles),this.strictStyling
&&this.applyScopeToContent(e,t),r.scopeStyles},removeStyles:function(e,t){for(va
r n,r=0,o=t.length;o>r&&(n=t[r]);r++)n.parentNode.removeChild(n)},registerRoot:f
unction(e,t,n){var r=this.registry[t]={root:e,name:t,extendsName:n},o=this.findS
tyles(e);r.rootStyles=o,r.scopeStyles=r.rootStyles;var i=this.registry[r.extends
Name];return i&&(r.scopeStyles=i.scopeStyles.concat(r.scopeStyles)),r},findStyle
s:function(e){if(!e)return[];var t=e.querySelectorAll("style");return Array.prot
otype.filter.call(t,function(e){return!e.hasAttribute(R)})},applyScopeToContent:
function(e,t){e&&(Array.prototype.forEach.call(e.querySelectorAll("*"),function(
e){e.setAttribute(t,"")}),Array.prototype.forEach.call(e.querySelectorAll("templ
ate"),function(e){this.applyScopeToContent(e.content,t)},this))},insertDirective
s:function(e){return e=this.insertPolyfillDirectivesInCssText(e),this.insertPoly
fillRulesInCssText(e)},insertPolyfillDirectivesInCssText:function(e){return e=e.
replace(p,function(e,t){return t.slice(0,-2)+"{"}),e.replace(h,function(e,t){ret
urn t+" {"})},insertPolyfillRulesInCssText:function(e){return e=e.replace(f,func
tion(e,t){return t.slice(0,-1)}),e.replace(m,function(e,t,n,r){var o=e.replace(t
,"").replace(n,"");return r+o})},scopeCssText:function(e,t){var n=this.extractUn
scopedRulesFromCssText(e);if(e=this.insertPolyfillHostInCssText(e),e=this.conver
tColonHost(e),e=this.convertColonHostContext(e),e=this.convertShadowDOMSelectors
(e),t){var e,r=this;a(e,function(n){e=r.scopeRules(n,t)})}return e=e+"\n"+n,e.tr
im()},extractUnscopedRulesFromCssText:function(e){for(var t,n="";t=w.exec(e);)n+
=t[1].slice(0,-1)+"\n\n";for(;t=v.exec(e);)n+=t[0].replace(t[2],"").replace(t[1]
,t[3])+"\n\n";return n},convertColonHost:function(e){return this.convertColonRul
e(e,E,this.colonHostPartReplacer)},convertColonHostContext:function(e){return th
is.convertColonRule(e,_,this.colonHostContextPartReplacer)},convertColonRule:fun
ction(e,t,n){return e.replace(t,function(e,t,r,o){if(t=O,r){for(var i,a=r.split(
","),s=[],c=0,l=a.length;l>c&&(i=a[c]);c++)i=i.trim(),s.push(n(t,i,o));return s.
join(",")}return t+o})},colonHostContextPartReplacer:function(e,t,n){return t.ma
tch(g)?this.colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},colonHostPartRepl
acer:function(e,t,n){return e+t.replace(g,"")+n},convertShadowDOMSelectors:funct
ion(e){for(var t=0;t<N.length;t++)e=e.replace(N[t]," ");return e},scopeRules:fun
ction(e,t){var n="";return e&&Array.prototype.forEach.call(e,function(e){if(e.se
lectorText&&e.style&&void 0!==e.style.cssText)n+=this.scopeSelector(e.selectorTe
xt,t,this.strictStyling)+" {\n ",n+=this.propertiesFromRule(e)+"\n}\n\n";else i
f(e.type===CSSRule.MEDIA_RULE)n+="@media "+e.media.mediaText+" {\n",n+=this.scop
eRules(e.cssRules,t),n+="\n}\n\n";else try{e.cssText&&(n+=e.cssText+"\n\n")}catc
h(r){e.type===CSSRule.KEYFRAMES_RULE&&e.cssRules&&(n+=this.ieSafeCssTextFromKeyF
rameRule(e))}},this),n},ieSafeCssTextFromKeyFrameRule:function(e){var t="@keyfra
mes "+e.name+" {";return Array.prototype.forEach.call(e.cssRules,function(e){t+=
" "+e.keyText+" {"+e.style.cssText+"}"}),t+=" }"},scopeSelector:function(e,t,n){
var r=[],o=e.split(",");return o.forEach(function(e){e=e.trim(),this.selectorNee
dsScoping(e,t)&&(e=n&&!e.match(O)?this.applyStrictSelectorScope(e,t):this.applyS
electorScope(e,t)),r.push(e)},this),r.join(", ")},selectorNeedsScoping:function(
e,t){if(Array.isArray(t))return!0;var n=this.makeScopeMatcher(t);return!e.match(
n)},makeScopeMatcher:function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"
\\]"),new RegExp("^("+e+")"+S,"m")},applySelectorScope:function(e,t){return Arra
y.isArray(t)?this.applySelectorScopeList(e,t):this.applySimpleSelectorScope(e,t)
},applySelectorScopeList:function(e,t){for(var n,r=[],o=0;n=t[o];o++)r.push(this
.applySimpleSelectorScope(e,n));return r.join(", ")},applySimpleSelectorScope:fu
nction(e,t){return e.match(L)?(e=e.replace(O,t),e.replace(L,t+" ")):t+" "+e},app
lyStrictSelectorScope:function(e,t){t=t.replace(/\[is=([^\]]*)\]/g,"$1");var n=[
" ",">","+","~"],r=e,o="["+t+"]";return n.forEach(function(e){var t=r.split(e);r
=t.map(function(e){var t=e.trim().replace(L,"");return t&&n.indexOf(t)<0&&t.inde
xOf(o)<0&&(e=t.replace(/([^:]*)(:*)(.*)/,"$1"+o+"$2$3")),e}).join(e)}),r},insert
PolyfillHostInCssText:function(e){return e.replace(M,b).replace(T,g)},properties
FromRule:function(e){var t=e.style.cssText;e.style.content&&!e.style.content.mat
ch(/['"]+|attr/)&&(t=t.replace(/content:[^;]*;/g,"content: '"+e.style.content+"'
;"));var n=e.style;for(var r in n)"initial"===n[r]&&(t+=r+": initial; ");return
t},replaceTextInStyles:function(e,t){e&&t&&(e instanceof Array||(e=[e]),Array.pr
ototype.forEach.call(e,function(e){e.textContent=t.call(this,e.textContent)},thi
s))},addCssToDocument:function(e,t){e.match("@import")?c(e,t):s(e)}},d=/\/\*[^*]
*\*+([^/*][^*]*\*+)*\//gim,p=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]
*?){/gim,h=/polyfill-next-selector[^}]*content\:[\s]*?['"](.*?)['"][;\s]*}([^{]*
?){/gim,f=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,m=/(polyfill-rul
e)[^}]*(content\:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,w=/\/\*\s@polyfill-unscoped
-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,v=/(polyfill-unscoped-rule)[^}]*(content\:
[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,g="-shadowcsshost",b="-shadowcsscontext",y="
)(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",E=new RegExp("("+g+y,"gim"),_=n
ew RegExp("("+b+y,"gim"),S="([>\\s~+[.,{:][\\s\\S]*)?$",T=/\:host/gim,M=/\:host-
context/gim,O=g+"-no-combinator",L=new RegExp(g,"gim"),N=(new RegExp(b,"gim"),[/
>>>/g,/::shadow/g,/::content/g,/\/deep\//g,/\/shadow\//g,/\/shadow-deep\//g,/\^\
^/g,/\^/g]),C=document.createElement("iframe");C.style.display="none";var j,D=na
vigator.userAgent.match("Chrome"),H="shim-shadowdom",x="shim-shadowdom-css",R="n
o-shim";if(window.ShadowDOMPolyfill){s("style { display: none !important; }\n");
var I=ShadowDOMPolyfill.wrap(document),P=I.querySelector("head");P.insertBefore(
l(),P.childNodes[0]),document.addEventListener("DOMContentLoaded",function(){e.u
rlResolver;if(window.HTMLImports&&!HTMLImports.useNative){var t="link[rel=styles
heet]["+H+"]",n="style["+H+"]";HTMLImports.importer.documentPreloadSelectors+=",
"+t,HTMLImports.importer.importsPreloadSelectors+=","+t,HTMLImports.parser.docum
entSelectors=[HTMLImports.parser.documentSelectors,t,n].join(",");var r=HTMLImpo
rts.parser.parseGeneric;HTMLImports.parser.parseGeneric=function(e){if(!e[x]){va
r t=e.__importElement||e;if(!t.hasAttribute(H))return void r.call(this,e);e.__re
source&&(t=e.ownerDocument.createElement("style"),t.textContent=e.__resource),HT
MLImports.path.resolveUrlsInStyle(t,e.href),t.textContent=u.shimStyle(t),t.remov
eAttribute(H,""),t.setAttribute(x,""),t[x]=!0,t.parentNode!==P&&(e.parentNode===
P?P.replaceChild(t,e):this.addElementToDocument(t)),t.__importParsed=!0,this.mar
kParsingComplete(e),this.parseNext()}};var o=HTMLImports.parser.hasResource;HTML
Imports.parser.hasResource=function(e){return"link"===e.localName&&"stylesheet"=
==e.rel&&e.hasAttribute(H)?e.__resource:o.call(this,e)}}})}e.ShadowCSS=u}(window
.WebComponents)),function(e){window.ShadowDOMPolyfill?(window.wrap=ShadowDOMPoly
fill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=wi
ndow.unwrap=function(e){return e}}(window.WebComponents),function(e){"use strict
";function t(e){return void 0!==p[e]}function n(){s.call(this),this._isInvalid=!
0}function r(e){return""==e&&n.call(this),e.toLowerCase()}function o(e){var t=e.
charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURI
Component(e)}function i(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,
60,62,96].indexOf(t)?e:encodeURIComponent(e)}function a(e,a,s){function c(e){b.p
ush(e)}var l=a||"scheme start",u=0,d="",v=!1,g=!1,b=[];e:for(;(e[u-1]!=f||0==u)&
&!this._isInvalid;){var y=e[u];switch(l){case"scheme start":if(!y||!m.test(y)){i
f(a){c("Invalid scheme.");break e}d="",l="no scheme";continue}d+=y.toLowerCase()
,l="scheme";break;case"scheme":if(y&&w.test(y))d+=y.toLowerCase();else{if(":"!=y
){if(a){if(f==y)break e;c("Code point not allowed in scheme: "+y);break e}d="",u
=0,l="no scheme";continue}if(this._scheme=d,d="",a)break e;t(this._scheme)&&(thi
s._isRelative=!0),l="file"==this._scheme?"relative":this._isRelative&&s&&s._sche
me==this._scheme?"relative or authority":this._isRelative?"authority first slash
":"scheme data"}break;case"scheme data":"?"==y?(query="?",l="query"):"#"==y?(thi
s._fragment="#",l="fragment"):f!=y&&" "!=y&&"\n"!=y&&"\r"!=y&&(this._schemeDat
a+=o(y));break;case"no scheme":if(s&&t(s._scheme)){l="relative";continue}c("Miss
ing scheme."),n.call(this);break;case"relative or authority":if("/"!=y||"/"!=e[u
+1]){c("Expected /, got: "+y),l="relative";continue}l="authority ignore slashes"
;break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme
=s._scheme),f==y){this._host=s._host,this._port=s._port,this._path=s._path.slice
(),this._query=s._query;break e}if("/"==y||"\\"==y)"\\"==y&&c("\\ is an invalid
code point."),l="relative slash";else if("?"==y)this._host=s._host,this._port=s.
_port,this._path=s._path.slice(),this._query="?",l="query";else{if("#"!=y){var E
=e[u+1],_=e[u+2];("file"!=this._scheme||!m.test(y)||":"!=E&&"|"!=E||f!=_&&"/"!=_
&&"\\"!=_&&"?"!=_&&"#"!=_)&&(this._host=s._host,this._port=s._port,this._path=s.
_path.slice(),this._path.pop()),l="relative path";continue}this._host=s._host,th
is._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment=
"#",l="fragment"}break;case"relative slash":if("/"!=y&&"\\"!=y){"file"!=this._sc
heme&&(this._host=s._host,this._port=s._port),l="relative path";continue}"\\"==y
&&c("\\ is an invalid code point."),l="file"==this._scheme?"file host":"authorit
y ignore slashes";break;case"authority first slash":if("/"!=y){c("Expected '/',
got: "+y),l="authority ignore slashes";continue}l="authority second slash";break
;case"authority second slash":if(l="authority ignore slashes","/"!=y){c("Expecte
d '/', got: "+y);continue}break;case"authority ignore slashes":if("/"!=y&&"\\"!=
y){l="authority";continue}c("Expected authority, got: "+y);break;case"authority"
:if("@"==y){v&&(c("@ already seen."),d+="%40"),v=!0;for(var S=0;S<d.length;S++){
var T=d[S];if(" "!=T&&"\n"!=T&&"\r"!=T)if(":"!=T||null!==this._password){var M=o
(T);null!==this._password?this._password+=M:this._username+=M}else this._passwor
d="";else c("Invalid whitespace in authority.")}d=""}else{if(f==y||"/"==y||"\\"=
=y||"?"==y||"#"==y){u-=d.length,d="",l="host";continue}d+=y}break;case"file host
":if(f==y||"/"==y||"\\"==y||"?"==y||"#"==y){2!=d.length||!m.test(d[0])||":"!=d[1
]&&"|"!=d[1]?0==d.length?l="relative path start":(this._host=r.call(this,d),d=""
,l="relative path start"):l="relative path";continue}" "==y||"\n"==y||"\r"==y?c
("Invalid whitespace in file host."):d+=y;break;case"host":case"hostname":if(":"
!=y||g){if(f==y||"/"==y||"\\"==y||"?"==y||"#"==y){if(this._host=r.call(this,d),d
="",l="relative path start",a)break e;continue}" "!=y&&"\n"!=y&&"\r"!=y?(
"["==y?g=!0:"]"==y&&(g=!1),d+=y):c("Invalid code point in host/hostname: "+y)}el
se if(this._host=r.call(this,d),d="",l="port","hostname"==a)break e;break;case"p
ort":if(/[0-9]/.test(y))d+=y;else{if(f==y||"/"==y||"\\"==y||"?"==y||"#"==y||a){i
f(""!=d){var O=parseInt(d,10);O!=p[this._scheme]&&(this._port=O+""),d=""}if(a)br
eak e;l="relative path start";continue}" "==y||"\n"==y||"\r"==y?c("Invali
d code point in port: "+y):n.call(this)}break;case"relative path start":if("\\"=
=y&&c("'\\' not allowed in path."),l="relative path","/"!=y&&"\\"!=y)continue;br
eak;case"relative path":if(f!=y&&"/"!=y&&"\\"!=y&&(a||"?"!=y&&"#"!=y))" "!=y&&"\
n"!=y&&"\r"!=y&&(d+=o(y));else{"\\"==y&&c("\\ not allowed in relative path.");va
r L;(L=h[d.toLowerCase()])&&(d=L),".."==d?(this._path.pop(),"/"!=y&&"\\"!=y&&thi
s._path.push("")):"."==d&&"/"!=y&&"\\"!=y?this._path.push(""):"."!=d&&("file"==t
his._scheme&&0==this._path.length&&2==d.length&&m.test(d[0])&&"|"==d[1]&&(d=d[0]
+":"),this._path.push(d)),d="","?"==y?(this._query="?",l="query"):"#"==y&&(this.
_fragment="#",l="fragment")}break;case"query":a||"#"!=y?f!=y&&" "!=y&&"\n"!=y&&"
\r"!=y&&(this._query+=i(y)):(this._fragment="#",l="fragment");break;case"fragmen
t":f!=y&&" "!=y&&"\n"!=y&&"\r"!=y&&(this._fragment+=y)}u++}}function s(){th
is._scheme="",this._schemeData="",this._username="",this._password=null,this._ho
st="",this._port="",this._path=[],this._query="",this._fragment="",this._isInval
id=!1,this._isRelative=!1}function c(e,t){void 0===t||t instanceof c||(t=new c(S
tring(t))),this._url=e,s.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$
/g,"");a.call(this,n,null,t)}var l=!1;if(!e.forceJURL)try{var u=new URL("b","htt
p://a");u.pathname="c%20d",l="http://a/c%20d"===u.href}catch(d){}if(!l){var p=Ob
ject.create(null);p.ftp=21,p.file=0,p.gopher=70,p.http=80,p.https=443,p.ws=80,p.
wss=443;var h=Object.create(null);h["%2e"]=".",h[".%2e"]="..",h["%2e."]="..",h["
%2e%2e"]="..";var f=void 0,m=/[a-zA-Z]/,w=/[a-zA-Z0-9\+\-\.]/;c.prototype={toStr
ing:function(){return this.href},get href(){if(this._isInvalid)return this._url;
var e="";return(""!=this._username||null!=this._password)&&(e=this._username+(nu
ll!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"
//"+e+this.host:"")+this.pathname+this._query+this._fragment},set href(e){s.call
(this),a.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){t
his._isInvalid||a.call(this,e+":","scheme start")},get host(){return this._isInv
alid?"":this._port?this._host+":"+this._port:this._host},set host(e){!this._isIn
valid&&this._isRelative&&a.call(this,e,"host")},get hostname(){return this._host
},set hostname(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"hostname")}
,get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&a
.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?
"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&thi
s._isRelative&&(this._path=[],a.call(this,e,"relative path start"))},get search(
){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set sea
rch(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slic
e(1)),a.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragmen
t||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fr
agment="#","#"==e[0]&&(e=e.slice(1)),a.call(this,e,"fragment"))},get origin(){va
r e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":c
ase"file":case"javascript":case"mailto":return"null"}return e=this.host,e?this._
scheme+"://"+e:""}};var v=e.URL;v&&(c.createObjectURL=function(e){return v.creat
eObjectURL.apply(v,arguments)},c.revokeObjectURL=function(e){v.revokeObjectURL(e
)}),e.URL=c}}(this),function(e){function t(e){y.push(e),b||(b=!0,m(r))}function
n(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||
e}function r(){b=!1;var e=y;y=[],e.sort(function(e,t){return e.uid_-t.uid_});var
t=!1;e.forEach(function(e){var n=e.takeRecords();o(e),n.length&&(e.callback_(n,
e),t=!0)}),t&&r()}function o(e){e.nodes_.forEach(function(t){var n=w.get(t);n&&n
.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function i
(e,t){for(var n=e;n;n=n.parentNode){var r=w.get(n);if(r)for(var o=0;o<r.length;o
++){var i=r[o],a=i.options;if(n===e||a.subtree){var s=t(a);s&&i.enqueue(s)}}}}fu
nction a(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++E}funct
ion s(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],thi
s.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attrib
uteNamespace=null,this.oldValue=null}function c(e){var t=new s(e.type,e.target);
return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t
.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e
.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t
}function l(e,t){return _=new s(e,t)}function u(e){return S?S:(S=c(_),S.oldValue
=e,S)}function d(){_=S=void 0}function p(e){return e===S||e===_}function h(e,t){
return e===t?e:S&&p(e)?S:null}function f(e,t,n){this.observer=e,this.target=t,th
is.options=n,this.transientObservedNodes=[]}var m,w=new WeakMap;if(/Trident|Edge
/.test(navigator.userAgent))m=setTimeout;else if(window.setImmediate)m=window.se
tImmediate;else{var v=[],g=String(Math.random());window.addEventListener("messag
e",function(e){if(e.data===g){var t=v;v=[],t.forEach(function(e){e()})}}),m=func
tion(e){v.push(e),window.postMessage(g,"*")}}var b=!1,y=[],E=0;a.prototype={obse
rve:function(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t.characterData||t.att
ributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.a
ttributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var r
=w.get(e);r||w.set(e,r=[]);for(var o,i=0;i<r.length;i++)if(r[i].observer===this)
{o=r[i],o.removeListeners(),o.options=t;break}o||(o=new f(this,e,t),r.push(o),th
is.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach(f
unction(e){for(var t=w.get(e),n=0;n<t.length;n++){var r=t[n];if(r.observer===thi
s){r.removeListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecord
s:function(){var e=this.records_;return this.records_=[],e}};var _,S;f.prototype
={enqueue:function(e){var n=this.observer.records_,r=n.length;if(n.length>0){var
o=n[r-1],i=h(o,e);if(i)return void(n[r-1]=i)}else t(this.observer);n[r]=e},addL
isteners:function(){this.addListeners_(this.target)},addListeners_:function(e){v
ar t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.
characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childLis
t&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.add
EventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeL
isteners_(this.target)},removeListeners_:function(e){var t=this.options;t.attrib
utes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.remove
EventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventList
ener("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=w.get(e);t||w.se
t(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transien
tObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeL
isteners_(e);for(var t=w.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1)
;break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.ty
pe){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.targ
et,o=new l("attributes",r);o.attributeName=t,o.attributeNamespace=n;var a=e.attr
Change===MutationEvent.ADDITION?null:e.prevValue;i(r,function(e){return!e.attrib
utes||e.attributeFilter&&e.attributeFilter.length&&-1===e.attributeFilter.indexO
f(t)&&-1===e.attributeFilter.indexOf(n)?void 0:e.attributeOldValue?u(a):o});brea
k;case"DOMCharacterDataModified":var r=e.target,o=l("characterData",r),a=e.prevV
alue;i(r,function(e){return e.characterData?e.characterDataOldValue?u(a):o:void
0});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeI
nserted":var s,c,p=e.target;"DOMNodeInserted"===e.type?(s=[p],c=[]):(s=[],c=[p])
;var h=p.previousSibling,f=p.nextSibling,o=l("childList",e.target.parentNode);o.
addedNodes=s,o.removedNodes=c,o.previousSibling=h,o.nextSibling=f,i(e.relatedNod
e,function(e){return e.childList?o:void 0})}d()}},e.JsMutationObserver=a,e.Mutat
ionObserver||(e.MutationObserver=a)}(this),window.HTMLImports=window.HTMLImports
||{flags:{}},function(e){function t(e,t){t=t||f,r(function(){i(e,t)},t)}function
n(e){return"complete"===e.readyState||e.readyState===v}function r(e,t){if(n(t))
e&&e();else{var o=function(){("complete"===t.readyState||t.readyState===v)&&(t.r
emoveEventListener(g,o),r(e,t))};t.addEventListener(g,o)}}function o(e){e.target
.__loaded=!0}function i(e,t){function n(){c==l&&e&&e({allImports:s,loadedImports
:u,errorImports:d})}function r(e){o(e),u.push(this),c++,n()}function i(e){d.push
(this),c++,n()}var s=t.querySelectorAll("link[rel=import]"),c=0,l=s.length,u=[],
d=[];if(l)for(var p,h=0;l>h&&(p=s[h]);h++)a(p)?(c++,n()):(p.addEventListener("lo
ad",r),p.addEventListener("error",i));else n()}function a(e){return d?e.__loaded
||e["import"]&&"loading"!==e["import"].readyState:e.__importParsed}function s(e)
{for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)c(t)&&l(t)}function c(e){return"link
"===e.localName&&"import"===e.rel}function l(e){var t=e["import"];t?o({target:e}
):(e.addEventListener("load",o),e.addEventListener("error",o))}var u="import",d=
Boolean(u in document.createElement("link")),p=Boolean(window.ShadowDOMPolyfill)
,h=function(e){return p?ShadowDOMPolyfill.wrapIfNeeded(e):e},f=h(document),m={ge
t:function(){var e=HTMLImports.currentScript||document.currentScript||("complete
"!==document.readyState?document.scripts[document.scripts.length-1]:null);return
h(e)},configurable:!0};Object.defineProperty(document,"_currentScript",m),Objec
t.defineProperty(f,"_currentScript",m);var w=/Trident|Edge/.test(navigator.userA
gent),v=w?"complete":"interactive",g="readystatechange";d&&(new MutationObserver
(function(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)t.addedNodes&&s(t.addedN
odes)}).observe(document.head,{childList:!0}),function(){if("loading"===document
.readyState)for(var e,t=document.querySelectorAll("link[rel=import]"),n=0,r=t.le
ngth;r>n&&(e=t[n]);n++)l(e)}()),t(function(e){HTMLImports.ready=!0,HTMLImports.r
eadyTime=(new Date).getTime();var t=f.createEvent("CustomEvent");t.initCustomEve
nt("HTMLImportsLoaded",!0,!0,e),f.dispatchEvent(t)}),e.IMPORT_LINK_TYPE=u,e.useN
ative=d,e.rootDocument=f,e.whenReady=t,e.isIE=w}(HTMLImports),function(e){var t=
[],n=function(e){t.push(e)},r=function(){t.forEach(function(t){t(e)})};e.addModu
le=n,e.initializeModules=r}(HTMLImports),HTMLImports.addModule(function(e){var t
=/(url\()([^)]*)(\))/g,n=/(@import[\s]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInSt
yle:function(e,t){var n=e.ownerDocument,r=n.createElement("a");return e.textCont
ent=this.resolveUrlsInCssText(e.textContent,t,r),e},resolveUrlsInCssText:functio
n(e,r,o){var i=this.replaceUrls(e,o,r,t);return i=this.replaceUrls(i,o,r,n)},rep
laceUrls:function(e,t,n,r){return e.replace(r,function(e,r,o,i){var a=o.replace(
/["']/g,"");return n&&(a=new URL(a,n).href),t.href=a,a=t.href,r+"'"+a+"'"+i})}};
e.path=r}),HTMLImports.addModule(function(e){var t={async:!0,ok:function(e){retu
rn e.status>=200&&e.status<300||304===e.status||0===e.status},load:function(n,r,
o){var i=new XMLHttpRequest;return(e.flags.debug||e.flags.bust)&&(n+="?"+Math.ra
ndom()),i.open("GET",n,t.async),i.addEventListener("readystatechange",function(e
){if(4===i.readyState){var n=i.getResponseHeader("Location"),a=null;if(n)var a="
/"===n.substr(0,1)?location.origin+n:n;r.call(o,!t.ok(i)&&i,i.response||i.respon
seText,a)}}),i.send(),i},loadDocument:function(e,t,n){this.load(e,t,n).responseT
ype="document"}};e.xhr=t}),HTMLImports.addModule(function(e){var t=e.xhr,n=e.fla
gs,r=function(e,t){this.cache={},this.onload=e,this.oncomplete=t,this.inflight=0
,this.pending={}};r.prototype={addNodes:function(e){this.inflight+=e.length;for(
var t,n=0,r=e.length;r>n&&(t=e[n]);n++)this.require(t);this.checkDone()},addNode
:function(e){this.inflight++,this.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:f
unction(e,t){if(this.pending[e])return this.pending[e].push(t),!0;return this.ca
che[e]?(this.onload(e,t,this.cache[e]), |
| 16 this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load&&console
.log("fetch",e,r),e)if(e.match(/^data:/)){var o=e.split(","),i=o[0],a=o[1];a=i.i
ndexOf(";base64")>-1?atob(a):decodeURIComponent(a),setTimeout(function(){this.re
ceive(e,r,null,a)}.bind(this),0)}else{var s=function(t,n,o){this.receive(e,r,t,n
,o)}.bind(this);t.load(e,s)}else setTimeout(function(){this.receive(e,r,{error:"
href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,r,o){this.
cache[e]=r;for(var i,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.onl
oad(e,i,r,n,o),this.tail();this.pending[e]=null},tail:function(){--this.inflight
,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},e.Loa
der=r}),HTMLImports.addModule(function(e){var t=function(e){this.addCallback=e,t
his.mo=new MutationObserver(this.handler.bind(this))};t.prototype={handler:funct
ion(e){for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)"childList"===t.type&&t.addedN
odes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallb
ack&&this.addCallback(e);for(var t,n=0,r=e.length;r>n&&(t=e[n]);n++)t.children&&
t.children.length&&this.addedNodes(t.children)},observe:function(e){this.mo.obse
rve(e,{childList:!0,subtree:!0})}},e.Observer=t}),HTMLImports.addModule(function
(e){function t(e){return"link"===e.localName&&e.rel===u}function n(e){var t=r(e)
;return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}function r(e)
{return e.textContent+o(e)}function o(e){var t=e.ownerDocument;t.__importedScrip
ts=t.__importedScripts||0;var n=e.ownerDocument.baseURI,r=t.__importedScripts?"-
"+t.__importedScripts:"";return t.__importedScripts++,"\n//# sourceURL="+n+r+".j
s\n"}function i(e){var t=e.ownerDocument.createElement("style");return t.textCon
tent=e.textContent,a.resolveUrlsInStyle(t),t}var a=e.path,s=e.rootDocument,c=e.f
lags,l=e.isIE,u=e.IMPORT_LINK_TYPE,d="link[rel="+u+"]",p={documentSelectors:d,im
portsSelectors:[d,"link[rel=stylesheet]","style","script:not([type])",'script[ty
pe="text/javascript"]'].join(","),map:{link:"parseLink",script:"parseScript",sty
le:"parseStyle"},dynamicElements:[],parseNext:function(){var e=this.nextToParse(
);e&&this.parse(e)},parse:function(e){if(this.isParsed(e))return void(c.parse&&c
onsole.log("[%s] is already parsed",e.localName));var t=this[this.map[e.localNam
e]];t&&(this.markParsing(e),t.call(this,e))},parseDynamic:function(e,t){this.dyn
amicElements.push(e),t||this.parseNext()},markParsing:function(e){c.parse&&conso
le.log("parsing",e),this.parsingElement=e},markParsingComplete:function(e){e.__i
mportParsed=!0,this.markDynamicParsingComplete(e),e.__importElement&&(e.__import
Element.__importParsed=!0,this.markDynamicParsingComplete(e.__importElement)),th
is.parsingElement=null,c.parse&&console.log("completed",e)},markDynamicParsingCo
mplete:function(e){var t=this.dynamicElements.indexOf(e);t>=0&&this.dynamicEleme
nts.splice(t,1)},parseImport:function(e){if(HTMLImports.__importsParsingHook&&HT
MLImports.__importsParsingHook(e),e["import"]&&(e["import"].__importParsed=!0),t
his.markParsingComplete(e),e.dispatchEvent(e.__resource&&!e.__error?new CustomEv
ent("load",{bubbles:!1}):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.parseGener
ic(e))},parseStyle:function(e){var t=e;e=i(e),t.__appliedElement=e,e.__importEle
ment=t,this.parseGeneric(e)},parseGeneric:function(e){this.trackElement(e),this.
addElementToDocument(e)},rootImportForElement:function(e){for(var t=e;t.ownerDoc
ument.__importLink;)t=t.ownerDocument.__importLink;return t},addElementToDocumen
t:function(e){var t=this.rootImportForElement(e.__importElement||e);t.parentNode
.insertBefore(e,t)},trackElement:function(e,t){var n=this,r=function(r){t&&t(r),
n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("load",r),e.addEve
ntListener("error",r),l&&"style"===e.localName){var o=!1;if(-1==e.textContent.in
dexOf("@import"))o=!0;else if(e.sheet){o=!0;for(var i,a=e.sheet.cssRules,s=a?a.l
ength:0,c=0;s>c&&(i=a[c]);c++)i.type===CSSRule.IMPORT_RULE&&(o=o&&Boolean(i.styl
eSheet))}o&&e.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}},parseScript:
function(t){var r=document.createElement("script");r.__importElement=t,r.src=t.s
rc?t.src:n(t),e.currentScript=t,this.trackElement(r,function(t){r.parentNode.rem
oveChild(r),e.currentScript=null}),this.addElementToDocument(r)},nextToParse:fun
ction(){return this._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc(s)
||this.nextToParseDynamic())},nextToParseInDoc:function(e,n){if(e&&this._mayPars
e.indexOf(e)<0){this._mayParse.push(e);for(var r,o=e.querySelectorAll(this.parse
SelectorsForNode(e)),i=0,a=o.length;a>i&&(r=o[i]);i++)if(!this.isParsed(r))retur
n this.hasResource(r)?t(r)?this.nextToParseInDoc(r["import"],r):r:void 0}return
n},nextToParseDynamic:function(){return this.dynamicElements[0]},parseSelectorsF
orNode:function(e){var t=e.ownerDocument||e;return t===s?this.documentSelectors:
this.importsSelectors},isParsed:function(e){return e.__importParsed},needsDynami
cParsing:function(e){return this.dynamicElements.indexOf(e)>=0},hasResource:func
tion(e){return t(e)&&void 0===e["import"]?!1:!0}};e.parser=p,e.IMPORT_SELECTOR=d
}),HTMLImports.addModule(function(e){function t(e){return n(e,a)}function n(e,t)
{return"link"===e.localName&&e.getAttribute("rel")===t}function r(e){return!!Obj
ect.getOwnPropertyDescriptor(e,"baseURI")}function o(e,t){var n=document.impleme
ntation.createHTMLDocument(a);n._URL=t;var o=n.createElement("base");o.setAttrib
ute("href",t),n.baseURI||r(n)||Object.defineProperty(n,"baseURI",{value:t});var
i=n.createElement("meta");return i.setAttribute("charset","utf-8"),n.head.append
Child(i),n.head.appendChild(o),n.body.innerHTML=e,window.HTMLTemplateElement&&HT
MLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(n),n}var i=e.flags,a=
e.IMPORT_LINK_TYPE,s=e.IMPORT_SELECTOR,c=e.rootDocument,l=e.Loader,u=e.Observer,
d=e.parser,p={documents:{},documentPreloadSelectors:s,importsPreloadSelectors:[s
].join(","),loadNode:function(e){h.addNode(e)},loadSubtree:function(e){var t=thi
s.marshalNodes(e);h.addNodes(t)},marshalNodes:function(e){return e.querySelector
All(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){var t=e.owne
rDocument||e;return t===c?this.documentPreloadSelectors:this.importsPreloadSelec
tors},loaded:function(e,n,r,a,s){if(i.load&&console.log("loaded",e,n),n.__resour
ce=r,n.__error=a,t(n)){var c=this.documents[e];void 0===c&&(c=a?null:o(r,s||e),c
&&(c.__importLink=n,this.bootDocument(c)),this.documents[e]=c),n["import"]=c}d.p
arseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e
),d.parseNext()},loadedAll:function(){d.parseNext()}},h=new l(p.loaded.bind(p),p
.loadedAll.bind(p));if(p.observer=new u,!document.baseURI){var f={get:function()
{var e=document.querySelector("base");return e?e.href:window.location.href},conf
igurable:!0};Object.defineProperty(document,"baseURI",f),Object.defineProperty(c
,"baseURI",f)}e.importer=p,e.importLoader=h}),HTMLImports.addModule(function(e){
var t=e.parser,n=e.importer,r={added:function(e){for(var r,o,i,a,s=0,c=e.length;
c>s&&(a=e[s]);s++)r||(r=a.ownerDocument,o=t.isParsed(r)),i=this.shouldLoadNode(a
),i&&n.loadNode(a),this.shouldParseNode(a)&&o&&t.parseDynamic(a,i)},shouldLoadNo
de:function(e){return 1===e.nodeType&&o.call(e,n.loadSelectorsForNode(e))},shoul
dParseNode:function(e){return 1===e.nodeType&&o.call(e,t.parseSelectorsForNode(e
))}};n.observer.addCallback=r.added.bind(r);var o=HTMLElement.prototype.matches|
|HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelec
tor||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSe
lector}),function(e){function t(){HTMLImports.importer.bootDocument(o)}var n=e.i
nitializeModules,r=e.isIE;if(!e.useNative){r&&"function"!=typeof window.CustomEv
ent&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("Custo
mEvent");return n.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.d
etail),n},window.CustomEvent.prototype=window.Event.prototype),n();var o=e.rootD
ocument;"complete"===document.readyState||"interactive"===document.readyState&&!
window.attachEvent?t():document.addEventListener("DOMContentLoaded",t)}}(HTMLImp
orts),window.CustomElements=window.CustomElements||{flags:{}},function(e){var t=
e.flags,n=[],r=function(e){n.push(e)},o=function(){n.forEach(function(t){t(e)})}
;e.addModule=r,e.initializeModules=o,e.hasNative=Boolean(document.registerElemen
t),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&(!window.HTM
LImports||HTMLImports.useNative)}(CustomElements),CustomElements.addModule(funct
ion(e){function t(e,t){n(e,function(e){return t(e)?!0:void r(e,t)}),r(e,t)}funct
ion n(e,t,r){var o=e.firstElementChild;if(!o)for(o=e.firstChild;o&&o.nodeType!==
Node.ELEMENT_NODE;)o=o.nextSibling;for(;o;)t(o,r)!==!0&&n(o,t,r),o=o.nextElement
Sibling;return null}function r(e,n){for(var r=e.shadowRoot;r;)t(r,n),r=r.olderSh
adowRoot}function o(e,t){i(e,t,[])}function i(e,t,n){if(e=wrap(e),!(n.indexOf(e)
>=0)){n.push(e);for(var r,o=e.querySelectorAll("link[rel="+a+"]"),s=0,c=o.length
;c>s&&(r=o[s]);s++)r["import"]&&i(r["import"],t,n);t(e)}}var a=window.HTMLImport
s?HTMLImports.IMPORT_LINK_TYPE:"none";e.forDocumentTree=o,e.forSubtree=t}),Custo
mElements.addModule(function(e){function t(e){return n(e)||r(e)}function n(t){re
turn e.upgrade(t)?!0:void s(t)}function r(e){y(e,function(e){return n(e)?!0:void
0})}function o(e){s(e),p(e)&&y(e,function(e){s(e)})}function i(e){T.push(e),S||
(S=!0,setTimeout(a))}function a(){S=!1;for(var e,t=T,n=0,r=t.length;r>n&&(e=t[n]
);n++)e();T=[]}function s(e){_?i(function(){c(e)}):c(e)}function c(e){e.__upgrad
ed__&&(e.attachedCallback||e.detachedCallback)&&!e.__attached&&p(e)&&(e.__attach
ed=!0,e.attachedCallback&&e.attachedCallback())}function l(e){u(e),y(e,function(
e){u(e)})}function u(e){_?i(function(){d(e)}):d(e)}function d(e){e.__upgraded__&
&(e.attachedCallback||e.detachedCallback)&&e.__attached&&!p(e)&&(e.__attached=!1
,e.detachedCallback&&e.detachedCallback())}function p(e){for(var t=e,n=wrap(docu
ment);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_N
ODE&&t.host}}function h(e){if(e.shadowRoot&&!e.shadowRoot.__watched){b.dom&&cons
ole.log("watching shadow-root for: ",e.localName);for(var t=e.shadowRoot;t;)w(t)
,t=t.olderShadowRoot}}function f(e){if(b.dom){var n=e[0];if(n&&"childList"===n.t
ype&&n.addedNodes&&n.addedNodes){for(var r=n.addedNodes[0];r&&r!==document&&!r.h
ost;)r=r.parentNode;var o=r&&(r.URL||r._URL||r.host&&r.host.localName)||"";o=o.s
plit("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",e.length
,o||"")}e.forEach(function(e){"childList"===e.type&&(M(e.addedNodes,function(e){
e.localName&&t(e)}),M(e.removedNodes,function(e){e.localName&&l(e)}))}),b.dom&&c
onsole.groupEnd()}function m(e){for(e=wrap(e),e||(e=wrap(document));e.parentNode
;)e=e.parentNode;var t=e.__observer;t&&(f(t.takeRecords()),a())}function w(e){if
(!e.__observer){var t=new MutationObserver(f);t.observe(e,{childList:!0,subtree:
!0}),e.__observer=t}}function v(e){e=wrap(e),b.dom&&console.group("upgradeDocume
nt: ",e.baseURI.split("/").pop()),t(e),w(e),b.dom&&console.groupEnd()}function g
(e){E(e,v)}var b=e.flags,y=e.forSubtree,E=e.forDocumentTree,_=!window.MutationOb
server||window.MutationObserver===window.JsMutationObserver;e.hasPolyfillMutatio
ns=_;var S=!1,T=[],M=Array.prototype.forEach.call.bind(Array.prototype.forEach),
O=Element.prototype.createShadowRoot;O&&(Element.prototype.createShadowRoot=func
tion(){var e=O.call(this);return CustomElements.watchShadow(this),e}),e.watchSha
dow=h,e.upgradeDocumentTree=g,e.upgradeSubtree=r,e.upgradeAll=t,e.attachedNode=o
,e.takeRecords=m}),CustomElements.addModule(function(e){function t(t){if(!t.__up
graded__&&t.nodeType===Node.ELEMENT_NODE){var r=t.getAttribute("is"),o=e.getRegi
steredDefinition(r||t.localName);if(o){if(r&&o.tag==t.localName)return n(t,o);if
(!r&&!o["extends"])return n(t,o)}}}function n(t,n){return a.upgrade&&console.gro
up("upgrade:",t.localName),n.is&&t.setAttribute("is",n.is),r(t,n),t.__upgraded__
=!0,i(t),e.attachedNode(t),e.upgradeSubtree(t),a.upgrade&&console.groupEnd(),t}f
unction r(e,t){Object.__proto__?e.__proto__=t.prototype:(o(e,t.prototype,t["nati
ve"]),e.__proto__=t.prototype)}function o(e,t,n){for(var r={},o=t;o!==n&&o!==HTM
LElement.prototype;){for(var i,a=Object.getOwnPropertyNames(o),s=0;i=a[s];s++)r[
i]||(Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i)),r[i]=1);o=O
bject.getPrototypeOf(o)}}function i(e){e.createdCallback&&e.createdCallback()}va
r a=e.flags;e.upgrade=t,e.upgradeWithDefinition=n,e.implementPrototype=r}),Custo
mElements.addModule(function(e){function t(t,r){var c=r||{};if(!t)throw new Erro
r("document.registerElement: first argument `name` must not be empty");if(t.inde
xOf("-")<0)throw new Error("document.registerElement: first argument ('name') mu
st contain a dash ('-'). Argument provided was '"+String(t)+"'.");if(o(t))throw
new Error("Failed to execute 'registerElement' on 'Document': Registration faile
d for type '"+String(t)+"'. The type name is invalid.");if(l(t))throw new Error(
"DuplicateDefinitionError: a type with name '"+String(t)+"' is already registere
d");return c.prototype||(c.prototype=Object.create(HTMLElement.prototype)),c.__n
ame=t.toLowerCase(),c.lifecycle=c.lifecycle||{},c.ancestry=i(c["extends"]),a(c),
s(c),n(c.prototype),u(c.__name,c),c.ctor=d(c),c.ctor.prototype=c.prototype,c.pro
totype.constructor=c.ctor,e.ready&&v(document),c.ctor}function n(e){if(!e.setAtt
ribute._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,n){r.call(thi
s,e,n,t)};var n=e.removeAttribute;e.removeAttribute=function(e){r.call(this,e,nu
ll,n)},e.setAttribute._polyfilled=!0}}function r(e,t,n){e=e.toLowerCase();var r=
this.getAttribute(e);n.apply(this,arguments);var o=this.getAttribute(e);this.att
ributeChangedCallback&&o!==r&&this.attributeChangedCallback(e,r,o)}function o(e)
{for(var t=0;t<_.length;t++)if(e===_[t])return!0}function i(e){var t=l(e);return
t?i(t["extends"]).concat([t]):[]}function a(e){for(var t,n=e["extends"],r=0;t=e
.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}function s(e
){if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=document.crea
teElement(e.tag),r=Object.getPrototypeOf(n);r===e.prototype&&(t=r)}for(var o,i=e
.prototype;i&&i!==t;)o=Object.getPrototypeOf(i),i.__proto__=o,i=o;e["native"]=t}
}function c(e){return b(M(e.tag),e)}function l(e){return e?S[e.toLowerCase()]:vo
id 0}function u(e,t){S[e]=t}function d(e){return function(){return c(e)}}functio
n p(e,t,n){return e===T?h(t,n):O(e,t)}function h(e,t){var n=l(t||e);if(n){if(e==
n.tag&&t==n.is)return new n.ctor;if(!t&&!n.is)return new n.ctor}var r;return t?(
r=h(e),r.setAttribute("is",t),r):(r=M(e),e.indexOf("-")>=0&&y(r,HTMLElement),r)}
function f(e,t){var n=e[t];e[t]=function(){var e=n.apply(this,arguments);return
g(e),e}}var m,w=e.isIE11OrOlder,v=e.upgradeDocumentTree,g=e.upgradeAll,b=e.upgra
deWithDefinition,y=e.implementPrototype,E=e.useNative,_=["annotation-xml","color
-profile","font-face","font-face-src","font-face-uri","font-face-format","font-f
ace-name","missing-glyph"],S={},T="http://www.w3.org/1999/xhtml",M=document.crea
teElement.bind(document),O=document.createElementNS.bind(document);m=Object.__pr
oto__||E?function(e,t){return e instanceof t}:function(e,t){for(var n=e;n;){if(n
===t.prototype)return!0;n=n.__proto__}return!1},f(Node.prototype,"cloneNode"),f(
document,"importNode"),w&&!function(){var e=document.importNode;document.importN
ode=function(){var t=e.apply(document,arguments);if(t.nodeType==t.DOCUMENT_FRAGM
ENT_NODE){var n=document.createDocumentFragment();return n.appendChild(t),n}retu
rn t}}(),document.registerElement=t,document.createElement=h,document.createElem
entNS=p,e.registry=S,e["instanceof"]=m,e.reservedTagList=_,e.getRegisteredDefini
tion=l,document.register=document.registerElement}),function(e){function t(){a(w
rap(document)),window.HTMLImports&&(HTMLImports.__importsParsingHook=function(e)
{a(wrap(e["import"]))}),CustomElements.ready=!0,setTimeout(function(){CustomElem
ents.readyTime=Date.now(),window.HTMLImports&&(CustomElements.elapsed=CustomElem
ents.readyTime-HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("We
bComponentsReady",{bubbles:!0}))})}var n=e.useNative,r=e.initializeModules,o=/Tr
ident/.test(navigator.userAgent);if(n){var i=function(){};e.watchShadow=i,e.upgr
ade=i,e.upgradeAll=i,e.upgradeDocumentTree=i,e.upgradeSubtree=i,e.takeRecords=i,
e["instanceof"]=function(e,t){return e instanceof t}}else r();var a=e.upgradeDoc
umentTree;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=ShadowDOMPolyfi
ll.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded):window.wrap=wind
ow.unwrap=function(e){return e}),o&&"function"!=typeof window.CustomEvent&&(wind
ow.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");r
eturn n.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},
window.CustomEvent.prototype=window.Event.prototype),"complete"===document.ready
State||e.flags.eager)t();else if("interactive"!==document.readyState||window.att
achEvent||window.HTMLImports&&!window.HTMLImports.ready){var s=window.HTMLImport
s&&!HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventList
ener(s,t)}else t();e.isIE11OrOlder=o}(window.CustomElements),function(e){Functio
n.prototype.bind||(Function.prototype.bind=function(e){var t=this,n=Array.protot
ype.slice.call(arguments,1);return function(){var r=n.slice();return r.push.appl
y(r,arguments),t.apply(e,r)}})}(window.WebComponents),function(e){"use strict";f
unction t(){window.Polymer===o&&(window.Polymer=function(){throw new Error('You
tried to use polymer without loading it first. To load polymer, <link rel="impor
t" href="components/polymer/polymer.html">')})}if(!window.performance){var n=Dat
e.now();window.performance={now:function(){return Date.now()-n}}}window.requestA
nimationFrame||(window.requestAnimationFrame=function(){var e=window.webkitReque
stAnimationFrame||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(){retu
rn window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e
){clearTimeout(e)}}());var r=[],o=function(e,t){"string"!=typeof e&&1===argument
s.length&&Array.prototype.push.call(arguments,document._currentScript),r.push(ar
guments)};window.Polymer=o,e.consumeDeclarations=function(t){e.consumeDeclaratio
ns=function(){throw"Possible attempt to load Polymer twice"},t&&t(r),r=null},HTM
LImports.useNative?t():addEventListener("DOMContentLoaded",t)}(window.WebCompone
nts),function(e){var t=document.createElement("style");t.textContent="body {tran
sition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block;
overflow: hidden; position: relative; } \n";var n=document.querySelector("head")
;n.insertBefore(t,n.firstChild)}(window.WebComponents),function(e){window.Platfo
rm=e}(window.WebComponents); |
OLD | NEW |