OLD | NEW |
(Empty) | |
| 1 /** |
| 2 * @license |
| 3 * Copyright (c) 2012-2014 The Polymer Authors. All rights reserved. |
| 4 * |
| 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are |
| 7 * met: |
| 8 * |
| 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. |
| 11 * * Redistributions in binary form must reproduce the above |
| 12 * copyright notice, this list of conditions and the following disclaimer |
| 13 * in the documentation and/or other materials provided with the |
| 14 * distribution. |
| 15 * * Neither the name of Google Inc. nor the names of its |
| 16 * contributors may be used to endorse or promote products derived from |
| 17 * this software without specific prior written permission. |
| 18 * |
| 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ |
| 31 // @version: 0.2.0-a258a14 |
| 32 function PointerGestureEvent(a,b){var c=b||{},d=document.createEvent("Event"),e=
{bubbles:Boolean(c.bubbles)===c.bubbles||!0,cancelable:Boolean(c.cancelable)===c
.cancelable||!0};d.initEvent(a,e.bubbles,e.cancelable);for(var f,g=Object.keys(c
),h=0;h<g.length;h++)f=g[h],d[f]=c[f];return d.preventTap=this.preventTap,d}"und
efined"==typeof WeakMap&&!function(){var a=Object.defineProperty,b=Date.now()%1e
9,c=function(){this.name="__st"+(1e9*Math.random()>>>0)+(b++ +"__")};c.prototype
={set:function(b,c){var d=b[this.name];d&&d[0]===b?d[1]=c:a(b,this.name,{value:[
b,c],writable:!0})},get:function(a){var b;return(b=a[this.name])&&b[0]===a?b[1]:
void 0},"delete":function(a){this.set(a,void 0)}},window.WeakMap=c}(),function(a
){"use strict";function b(){function a(a){b=a}if("function"!=typeof Object.obser
ve||"function"!=typeof Array.observe)return!1;var b=[],c={};if(Object.observe(c,
a),c.id=1,c.id=2,delete c.id,Object.deliverChangeRecords(a),3!==b.length)return!
1;if("new"==b[0].type&&"updated"==b[1].type&&"deleted"==b[2].type)L="new",M="upd
ated",N="reconfigured",O="deleted";else if("add"!=b[0].type||"update"!=b[1].type
||"delete"!=b[2].type)return console.error("Unexpected change record names for O
bject.observe. Using dirty-checking instead"),!1;return Object.unobserve(c,a),c=
[0],Array.observe(c,a),c[1]=1,c.length=0,Object.deliverChangeRecords(a),2!=b.len
gth?!1:b[0].type!=P||b[1].type!=P?!1:(Array.unobserve(c,a),!0)}function c(){if(a
.document&&"securityPolicy"in a.document&&!a.document.securityPolicy.allowsEval)
return!1;try{var b=new Function("","return true;");return b()}catch(c){return!1}
}function d(a){return+a===a>>>0}function e(a){return+a}function f(a){return a===
Object(a)}function g(a,b){return a===b?0!==a||1/a===1/b:S(a)&&S(b)?!0:a!==a&&b!=
=b}function h(a){return"string"!=typeof a?!1:(a=a.trim(),""==a?!0:"."==a[0]?!1:$
.test(a))}function i(a,b){if(b!==_)throw Error("Use Path.get to retrieve path ob
jects");return""==a.trim()?this:d(a)?(this.push(a),this):(a.split(/\s*\.\s*/).fi
lter(function(a){return a}).forEach(function(a){this.push(a)},this),void(R&&this
.length&&(this.getValueFrom=this.compiledGetValueFromFn())))}function j(a){if(a
instanceof i)return a;null==a&&(a=""),"string"!=typeof a&&(a=String(a));var b=ab
[a];if(b)return b;if(!h(a))return bb;var b=new i(a,_);return ab[a]=b,b}function
k(b){for(var c=0;db>c&&b.check_();)c++;return a.testingExposeCycleCount&&(a.dirt
yCheckCycleCount=c),c>0}function l(a){for(var b in a)return!1;return!0}function
m(a){return l(a.added)&&l(a.removed)&&l(a.changed)}function n(a,b){var c={},d={}
,e={};for(var f in b){var g=a[f];(void 0===g||g!==b[f])&&(f in a?g!==b[f]&&(e[f]
=g):d[f]=void 0)}for(var f in a)f in b||(c[f]=a[f]);return Array.isArray(a)&&a.l
ength!==b.length&&(e.length=a.length),{added:c,removed:d,changed:e}}function o()
{if(!eb.length)return!1;for(var a=0;a<eb.length;a++)eb[a]();return eb.length=0,!
0}function p(){function a(a){b&&b.state_===kb&&!d&&b.check_(a)}var b,c,d=!1,e=!0
;return{open:function(c){if(b)throw Error("ObservedObject in use");e||Object.del
iverChangeRecords(a),b=c,e=!1},observe:function(b,d){c=b,d?Array.observe(c,a):Ob
ject.observe(c,a)},deliver:function(b){d=b,Object.deliverChangeRecords(a),d=!1},
close:function(){b=void 0,Object.unobserve(c,a),gb.push(this)}}}function q(a,b,c
){var d=gb.pop()||p();return d.open(a),d.observe(b,c),d}function r(){function a(
b){if(f(b)){var c=i.indexOf(b);c>=0?(i[c]=void 0,h.push(b)):h.indexOf(b)<0&&(h.p
ush(b),Object.observe(b,d)),a(Object.getPrototypeOf(b))}}function b(){if(k=!1,j)
{var b=i===hb?[]:i;i=h,h=b;var c;for(var f in e)c=e[f],c&&c.state_==kb&&c.iterat
eObjects_(a);for(var g=0;g<i.length;g++){var l=i[g];l&&Object.unobserve(l,d)}i.l
ength=0}}function c(){k||(j=!0,k=!0,fb(b))}function d(){var a;for(var b in e)a=e
[b],a&&a.state_==kb&&a.check_();c()}var e=[],g=0,h=[],i=hb,j=!1,k=!1,l={object:v
oid 0,objects:h,open:function(b){e[b.id_]=b,g++,b.iterateObjects_(a)},close:func
tion(a){if(e[a.id_]=void 0,g--,g)return void c();j=!1;for(var b=0;b<h.length;b++
)Object.unobserve(h[b],d),t.unobservedCount++;e.length=0,h.length=0,ib.push(this
)},reset:c};return l}function s(a,b){return cb&&cb.object===b||(cb=ib.pop()||r()
,cb.object=b),cb.open(a),cb}function t(){this.state_=jb,this.callback_=void 0,th
is.target_=void 0,this.directObserver_=void 0,this.value_=void 0,this.id_=nb++}f
unction u(a){t._allObserversCount++,pb&&ob.push(a)}function v(){t._allObserversC
ount--}function w(a){t.call(this),this.value_=a,this.oldObject_=void 0}function
x(a){if(!Array.isArray(a))throw Error("Provided object is not an Array");w.call(
this,a)}function y(a,b){t.call(this),this.object_=a,this.path_=b instanceof i?b:
j(b),this.directObserver_=void 0}function z(){t.call(this),this.value_=[],this.d
irectObserver_=void 0,this.observed_=[]}function A(a){return a}function B(a,b,c,
d){this.callback_=void 0,this.target_=void 0,this.value_=void 0,this.observable_
=a,this.getValueFn_=b||A,this.setValueFn_=c||A,this.dontPassThroughSet_=d}functi
on C(a,b){if("function"==typeof Object.observe){var c=Object.getNotifier(a);retu
rn function(d,e){var f={object:a,type:d,name:b};2===arguments.length&&(f.oldValu
e=e),c.notify(f)}}}function D(a,b,c){for(var d={},e={},f=0;f<b.length;f++){var g
=b[f];tb[g.type]?(g.name in c||(c[g.name]=g.oldValue),g.type!=M&&(g.type!=L?g.na
me in d?(delete d[g.name],delete c[g.name]):e[g.name]=!0:g.name in e?delete e[g.
name]:d[g.name]=!0)):(console.error("Unknown changeRecord type: "+g.type),consol
e.error(g))}for(var h in d)d[h]=a[h];for(var h in e)e[h]=void 0;var i={};for(var
h in c)if(!(h in d||h in e)){var j=a[h];c[h]!==j&&(i[h]=j)}return{added:d,remov
ed:e,changed:i}}function E(a,b,c){return{index:a,removed:b,addedCount:c}}functio
n F(){}function G(a,b,c,d,e,f){return yb.calcSplices(a,b,c,d,e,f)}function H(a,b
,c,d){return c>b||a>d?-1:b==c||d==a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function I(a,b
,c,d){for(var e=E(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,!
f){var j=H(e.index,e.index+e.removed.length,i.index,i.index+i.addedCount);if(j>=
0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.addedCount
-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var c=i.removed
;if(e.index<i.index){var l=e.removed.slice(0,i.index-e.index);Array.prototype.pu
sh.apply(l,c),c=l}if(e.index+e.removed.length>i.index+i.addedCount){var m=e.remo
ved.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(c,m)}e.remove
d=c,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.index<i.index){f=!0,a
.splice(h,0,e),h++;var n=e.addedCount-e.removed.length;i.index+=n,g+=n}}}f||a.pu
sh(e)}function J(a,b){for(var c=[],f=0;f<b.length;f++){var g=b[f];switch(g.type)
{case P:I(c,g.index,g.removed.slice(),g.addedCount);break;case L:case M:case O:i
f(!d(g.name))continue;var h=e(g.name);if(0>h)continue;I(c,h,[g.oldValue],1);brea
k;default:console.error("Unexpected record type: "+JSON.stringify(g))}}return c}
function K(a,b){var c=[];return J(a,b).forEach(function(b){return 1==b.addedCoun
t&&1==b.removed.length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.conca
t(G(a,b.index,b.index+b.addedCount,b.removed,0,b.removed.length)))}),c}var L="ad
d",M="update",N="reconfigure",O="delete",P="splice",Q=b(),R=c(),S=a.Number.isNaN
||function(b){return"number"==typeof b&&a.isNaN(b)},T="__proto__"in{}?function(a
){return a}:function(a){var b=a.__proto__;if(!b)return a;var c=Object.create(b);
return Object.getOwnPropertyNames(a).forEach(function(b){Object.defineProperty(c
,b,Object.getOwnPropertyDescriptor(a,b))}),c},U="[$_a-zA-Z]",V="[$_a-zA-Z0-9]",W
=U+"+"+V+"*",X="(?:[0-9]|[1-9]+[0-9]+)",Y="(?:"+W+"|"+X+")",Z="(?:"+Y+")(?:\\s*\
\.\\s*"+Y+")*",$=new RegExp("^"+Z+"$"),_={},ab={};i.get=j,i.prototype=T({__proto
__:[],valid:!0,toString:function(){return this.join(".")},getValueFrom:function(
a){for(var b=0;b<this.length;b++){if(null==a)return;a=a[this[b]]}return a},itera
teObjects:function(a,b){for(var c=0;c<this.length;c++){if(c&&(a=a[this[c-1]]),!a
)return;b(a)}},compiledGetValueFromFn:function(){var a=this.map(function(a){retu
rn d(a)?'["'+a+'"]':"."+a}),b="",c="obj";b+="if (obj != null";for(var e=0;e<this
.length-1;e++){{this[e]}c+=a[e],b+=" &&\n "+c+" != null"}return b+=")\n",c+=
a[e],b+=" return "+c+";\nelse\n return undefined;",new Function("obj",b)},setV
alueFrom:function(a,b){if(!this.length)return!1;for(var c=0;c<this.length-1;c++)
{if(!f(a))return!1;a=a[this[c]]}return f(a)?(a[this[c]]=b,!0):!1}});var bb=new i
("",_);bb.valid=!1,bb.getValueFrom=bb.setValueFrom=function(){};var cb,db=1e3,eb
=[],fb=Q?function(){var a={pingPong:!0},b=!1;return Object.observe(a,function(){
o(),b=!1}),function(c){eb.push(c),b||(b=!0,a.pingPong=!a.pingPong)}}():function(
){return function(a){eb.push(a)}}(),gb=[],hb=[],ib=[],jb=0,kb=1,lb=2,mb=3,nb=1;t
.prototype={open:function(a,b){if(this.state_!=jb)throw Error("Observer has alre
ady been opened.");return u(this),this.callback_=a,this.target_=b,this.state_=kb
,this.connect_(),this.value_},close:function(){this.state_==kb&&(v(this),this.st
ate_=lb,this.disconnect_(),this.value_=void 0,this.callback_=void 0,this.target_
=void 0)},deliver:function(){this.state_==kb&&k(this)},report_:function(a){try{t
his.callback_.apply(this.target_,a)}catch(b){t._errorThrownDuringCallback=!0,con
sole.error("Exception caught during observer callback: "+(b.stack||b))}},discard
Changes:function(){return this.check_(void 0,!0),this.value_}};var ob,pb=!Q;t._a
llObserversCount=0,pb&&(ob=[]);var qb=!1,rb="function"==typeof Object.deliverAll
ChangeRecords;a.Platform=a.Platform||{},a.Platform.performMicrotaskCheckpoint=fu
nction(){if(!qb){if(rb)return void Object.deliverAllChangeRecords();if(pb){qb=!0
;var b,c,d=0;do{d++,c=ob,ob=[],b=!1;for(var e=0;e<c.length;e++){var f=c[e];f.sta
te_==kb&&(f.check_()&&(b=!0),ob.push(f))}o()&&(b=!0)}while(db>d&&b);a.testingExp
oseCycleCount&&(a.dirtyCheckCycleCount=d),qb=!1}}},pb&&(a.Platform.clearObserver
s=function(){ob=[]}),w.prototype=T({__proto__:t.prototype,arrayObserve:!1,connec
t_:function(){Q?this.directObserver_=q(this,this.value_,this.arrayObserve):this.
oldObject_=this.copyObject(this.value_)},copyObject:function(a){var b=Array.isAr
ray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.isArray(a)&&(b.length=a.lengt
h),b},check_:function(a){var b,c;if(Q){if(!a)return!1;c={},b=D(this.value_,a,c)}
else c=this.oldObject_,b=n(this.value_,this.oldObject_);return m(b)?!1:(Q||(this
.oldObject_=this.copyObject(this.value_)),this.report_([b.added||{},b.removed||{
},b.changed||{},function(a){return c[a]}]),!0)},disconnect_:function(){Q?(this.d
irectObserver_.close(),this.directObserver_=void 0):this.oldObject_=void 0},deli
ver:function(){this.state_==kb&&(Q?this.directObserver_.deliver(!1):k(this))},di
scardChanges:function(){return this.directObserver_?this.directObserver_.deliver
(!0):this.oldObject_=this.copyObject(this.value_),this.value_}}),x.prototype=T({
__proto__:w.prototype,arrayObserve:!0,copyObject:function(a){return a.slice()},c
heck_:function(a){var b;if(Q){if(!a)return!1;b=K(this.value_,a)}else b=G(this.va
lue_,0,this.value_.length,this.oldObject_,0,this.oldObject_.length);return b&&b.
length?(Q||(this.oldObject_=this.copyObject(this.value_)),this.report_([b]),!0):
!1}}),x.applySplices=function(a,b,c){c.forEach(function(c){for(var d=[c.index,c.
removed.length],e=c.index;e<c.index+c.addedCount;)d.push(b[e]),e++;Array.prototy
pe.splice.apply(a,d)})},y.prototype=T({__proto__:t.prototype,connect_:function()
{Q&&(this.directObserver_=s(this,this.object_)),this.check_(void 0,!0)},disconne
ct_:function(){this.value_=void 0,this.directObserver_&&(this.directObserver_.cl
ose(this),this.directObserver_=void 0)},iterateObjects_:function(a){this.path_.i
terateObjects(this.object_,a)},check_:function(a,b){var c=this.value_;return thi
s.value_=this.path_.getValueFrom(this.object_),b||g(this.value_,c)?!1:(this.repo
rt_([this.value_,c]),!0)},setValue:function(a){this.path_&&this.path_.setValueFr
om(this.object_,a)}});var sb={};z.prototype=T({__proto__:t.prototype,connect_:fu
nction(){if(this.check_(void 0,!0),Q){for(var a,b=!1,c=0;c<this.observed_.length
;c+=2)if(a=this.observed_[c],a!==sb){b=!0;break}return this.directObserver_?b?vo
id this.directObserver_.reset():(this.directObserver_.close(),void(this.directOb
server_=void 0)):void(b&&(this.directObserver_=s(this,a)))}},closeObservers_:fun
ction(){for(var a=0;a<this.observed_.length;a+=2)this.observed_[a]===sb&&this.ob
served_[a+1].close();this.observed_.length=0},disconnect_:function(){this.value_
=void 0,this.directObserver_&&(this.directObserver_.close(this),this.directObser
ver_=void 0),this.closeObservers_()},addPath:function(a,b){if(this.state_!=jb&&t
his.state_!=mb)throw Error("Cannot add paths once started.");this.observed_.push
(a,b instanceof i?b:j(b))},addObserver:function(a){if(this.state_!=jb&&this.stat
e_!=mb)throw Error("Cannot add observers once started.");a.open(this.deliver,thi
s),this.observed_.push(sb,a)},startReset:function(){if(this.state_!=kb)throw Err
or("Can only reset while open");this.state_=mb,this.closeObservers_()},finishRes
et:function(){if(this.state_!=mb)throw Error("Can only finishReset after startRe
set");return this.state_=kb,this.connect_(),this.value_},iterateObjects_:functio
n(a){for(var b,c=0;c<this.observed_.length;c+=2)b=this.observed_[c],b!==sb&&this
.observed_[c+1].iterateObjects(b,a)},check_:function(a,b){for(var c,d=0;d<this.o
bserved_.length;d+=2){var e=this.observed_[d+1],f=this.observed_[d],h=f===sb?e.d
iscardChanges():e.getValueFrom(f);b?this.value_[d/2]=h:g(h,this.value_[d/2])||(c
=c||[],c[d/2]=this.value_[d/2],this.value_[d/2]=h)}return c?(this.report_([this.
value_,c,this.observed_]),!0):!1}}),B.prototype={open:function(a,b){return this.
callback_=a,this.target_=b,this.value_=this.getValueFn_(this.observable_.open(th
is.observedCallback_,this)),this.value_},observedCallback_:function(a){if(a=this
.getValueFn_(a),!g(a,this.value_)){var b=this.value_;this.value_=a,this.callback
_.call(this.target_,this.value_,b)}},discardChanges:function(){return this.value
_=this.getValueFn_(this.observable_.discardChanges()),this.value_},deliver:funct
ion(){return this.observable_.deliver()},setValue:function(a){return a=this.setV
alueFn_(a),!this.dontPassThroughSet_&&this.observable_.setValue?this.observable_
.setValue(a):void 0},close:function(){this.observable_&&this.observable_.close()
,this.callback_=void 0,this.target_=void 0,this.observable_=void 0,this.value_=v
oid 0,this.getValueFn_=void 0,this.setValueFn_=void 0}};var tb={};tb[L]=!0,tb[M]
=!0,tb[O]=!0,t.defineComputedProperty=function(a,b,c){var d=C(a,b),e=c.open(func
tion(a,b){e=a,d&&d(M,b)});return Object.defineProperty(a,b,{get:function(){retur
n c.deliver(),e},set:function(a){return c.setValue(a),a},configurable:!0}),{clos
e:function(){c.close(),Object.defineProperty(a,b,{value:e,writable:!0,configurab
le:!0})}}};var ub=0,vb=1,wb=2,xb=3;F.prototype={calcEditDistances:function(a,b,c
,d,e,f){for(var g=f-e+1,h=c-b+1,i=new Array(g),j=0;g>j;j++)i[j]=new Array(h),i[j
][0]=j;for(var k=0;h>k;k++)i[0][k]=k;for(var j=1;g>j;j++)for(var k=1;h>k;k++)if(
this.equals(a[b+k-1],d[e+j-1]))i[j][k]=i[j-1][k-1];else{var l=i[j-1][k]+1,m=i[j]
[k-1]+1;i[j][k]=m>l?l:m}return i},spliceOperationsFromEditDistances:function(a){
for(var b=a.length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!=b)if(0!=c){v
ar f,g=a[b-1][c-1],h=a[b-1][c],i=a[b][c-1];f=i>h?g>h?h:g:g>i?i:g,f==g?(g==d?e.pu
sh(ub):(e.push(vb),d=g),b--,c--):f==h?(e.push(xb),b--,d=h):(e.push(wb),c--,d=i)}
else e.push(xb),b--;else e.push(wb),c--;return e.reverse(),e},calcSplices:functi
on(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(0==b&&0==e&&(g=this.sharedPre
fix(a,d,i)),c==a.length&&f==d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c
-=h,f-=h,c-b==0&&f-e==0)return[];if(b==c){for(var j=E(b,[],0);f>e;)j.removed.pus
h(d[e++]);return[j]}if(e==f)return[E(b,[],c-b)];for(var k=this.spliceOperationsF
romEditDistances(this.calcEditDistances(a,b,c,d,e,f)),j=void 0,l=[],m=b,n=e,o=0;
o<k.length;o++)switch(k[o]){case ub:j&&(l.push(j),j=void 0),m++,n++;break;case v
b:j||(j=E(m,[],0)),j.addedCount++,m++,j.removed.push(d[n]),n++;break;case wb:j||
(j=E(m,[],0)),j.addedCount++,m++;break;case xb:j||(j=E(m,[],0)),j.removed.push(d
[n]),n++}return j&&l.push(j),l},sharedPrefix:function(a,b,c){for(var d=0;c>d;d++
)if(!this.equals(a[d],b[d]))return d;return c},sharedSuffix:function(a,b,c){for(
var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},cal
culateSplices:function(a,b){return this.calcSplices(a,0,a.length,b,0,b.length)},
equals:function(a,b){return a===b}};var yb=new F;a.Observer=t,a.Observer.runEOM_
=fb,a.Observer.hasObjectObserve=Q,a.ArrayObserver=x,a.ArrayObserver.calculateSpl
ices=function(a,b){return yb.calculateSplices(a,b)},a.ArraySplice=F,a.ObjectObse
rver=w,a.PathObserver=y,a.CompoundObserver=z,a.Path=i,a.ObserverTransform=B,a.Ob
server.changeRecordTypes={add:L,update:M,reconfigure:N,"delete":O,splice:P}}("un
defined"!=typeof global&&global&&"undefined"!=typeof module&&module?global:this|
|window),window.Platform=window.Platform||{},window.logFlags=window.logFlags||{}
,function(a){var b=a.flags||{};location.search.slice(1).split("&").forEach(funct
ion(a){a=a.split("="),a[0]&&(b[a[0]]=a[1]||!0)});var c=document.currentScript||d
ocument.querySelector('script[src*="platform.js"]');if(c)for(var d,e=c.attribute
s,f=0;f<e.length;f++)d=e[f],"src"!==d.name&&(b[d.name]=d.value||!0);b.log&&b.log
.split(",").forEach(function(a){window.logFlags[a]=!0}),b.shadow=b.shadow||b.sha
dowdom||b.polyfill,b.shadow="native"===b.shadow?!1:b.shadow||!HTMLElement.protot
ype.createShadowRoot,b.register&&(window.CustomElements=window.CustomElements||{
flags:{}},window.CustomElements.flags.register=b.register),b.imports&&(window.HT
MLImports=window.HTMLImports||{flags:{}},window.HTMLImports.flags.imports=b.impo
rts),a.flags=b}(Platform),Platform.flags.shadow?(window.ShadowDOMPolyfill={},fun
ction(a){"use strict";function b(a){if(!a)throw new Error("Assertion failed")}fu
nction c(a,b){return L(b).forEach(function(c){K(a,c,M(b,c))}),a}function d(a,b){
return L(b).forEach(function(c){switch(c){case"arguments":case"caller":case"leng
th":case"name":case"prototype":case"toString":return}K(a,c,M(b,c))}),a}function
e(a,b){for(var c=0;c<b.length;c++)if(b[c]in a)return b[c]}function f(a){var b=a.
__proto__||Object.getPrototypeOf(a),c=E.get(b);if(c)return c;var d=f(b),e=t(d);r
eturn q(b,e,a),e}function g(a,b){o(a,b,!0)}function h(a,b){o(b,a,!1)}function i(
a){return/^on[a-z]+$/.test(a)}function j(a){return/^\w[a-zA-Z_0-9]*$/.test(a)}fu
nction k(a){return H&&j(a)?new Function("return this.impl."+a):function(){return
this.impl[a]}}function l(a){return H&&j(a)?new Function("v","this.impl."+a+" =
v"):function(b){this.impl[a]=b}}function m(a){return H&&j(a)?new Function("retur
n this.impl."+a+".apply(this.impl, arguments)"):function(){return this.impl[a].a
pply(this.impl,arguments)}}function n(a,b){try{return Object.getOwnPropertyDescr
iptor(a,b)}catch(c){return O}}function o(b,c,d){for(var e=L(b),f=0;f<e.length;f+
+){var g=e[f];if("polymerBlackList_"!==g&&!(g in c||b.polymerBlackList_&&b.polym
erBlackList_[g])){N&&b.__lookupGetter__(g);var h,j,o=n(b,g);if(d&&"function"==ty
peof o.value)c[g]=m(g);else{var p=i(g);h=p?a.getEventHandlerGetter(g):k(g),(o.wr
itable||o.set)&&(j=p?a.getEventHandlerSetter(g):l(g)),K(c,g,{get:h,set:j,configu
rable:o.configurable,enumerable:o.enumerable})}}}}function p(a,b,c){var e=a.prot
otype;q(e,b,c),d(b,a)}function q(a,c,d){var e=c.prototype;b(void 0===E.get(a)),E
.set(a,c),F.set(e,a),g(a,e),d&&h(e,d),K(e,"constructor",{value:c,configurable:!0
,enumerable:!1,writable:!0})}function r(a,b){return E.get(b.prototype)===a}funct
ion s(a){var b=Object.getPrototypeOf(a),c=f(b),d=t(c);return q(b,d,a),d}function
t(a){function b(b){a.call(this,b)}return b.prototype=Object.create(a.prototype)
,b.prototype.constructor=b,b}function u(a){return a instanceof G.EventTarget||a
instanceof G.Event||a instanceof G.Range||a instanceof G.DOMImplementation||a in
stanceof G.CanvasRenderingContext2D||G.WebGLRenderingContext&&a instanceof G.Web
GLRenderingContext}function v(a){return Q&&a instanceof Q||a instanceof S||a ins
tanceof R||a instanceof T||a instanceof U||a instanceof P||a instanceof V||W&&a
instanceof W||X&&a instanceof X}function w(a){return null===a?null:(b(v(a)),a.po
lymerWrapper_||(a.polymerWrapper_=new(f(a))(a)))}function x(a){return null===a?n
ull:(b(u(a)),a.impl)}function y(a){return a&&u(a)?x(a):a}function z(a){return a&
&!u(a)?w(a):a}function A(a,c){null!==c&&(b(v(a)),b(void 0===c||u(c)),a.polymerWr
apper_=c)}function B(a,b,c){K(a.prototype,b,{get:c,configurable:!0,enumerable:!0
})}function C(a,b){B(a,b,function(){return w(this.impl[b])})}function D(a,b){a.f
orEach(function(a){b.forEach(function(b){a.prototype[b]=function(){var a=z(this)
;return a[b].apply(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.cr
eate(null),H=!("securityPolicy"in document)||document.securityPolicy.allowsEval;
if(H)try{var I=new Function("","return true;");H=I()}catch(J){H=!1}var K=Object.
defineProperty,L=Object.getOwnPropertyNames,M=Object.getOwnPropertyDescriptor;L(
window);var N=/Firefox/.test(navigator.userAgent),O={get:function(){},set:functi
on(){},configurable:!0,enumerable:!0},P=window.DOMImplementation,Q=window.EventT
arget,R=window.Event,S=window.Node,T=window.Window,U=window.Range,V=window.Canva
sRenderingContext2D,W=window.WebGLRenderingContext,X=window.SVGElementInstance;a
.assert=b,a.constructorTable=E,a.defineGetter=B,a.defineWrapGetter=C,a.forwardMe
thodsToWrapper=D,a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a.nativePrototypeTable
=F,a.oneOf=e,a.registerObject=s,a.registerWrapper=p,a.rewrap=A,a.unwrap=x,a.unwr
apIfNeeded=y,a.wrap=w,a.wrapIfNeeded=z,a.wrappers=G}(window.ShadowDOMPolyfill),f
unction(a){"use strict";function b(){g=!1;var a=f.slice(0);f=[];for(var b=0;b<a.
length;b++)a[b]()}function c(a){f.push(a),g||(g=!0,d(b,0))}var d,e=window.Mutati
onObserver,f=[],g=!1;if(e){var h=1,i=new e(b),j=document.createTextNode(h);i.obs
erve(j,{characterData:!0}),d=function(){h=(h+1)%2,j.data=h}}else d=window.setImm
ediate||window.setTimeout;a.setEndOfMicrotask=c}(window.ShadowDOMPolyfill),funct
ion(a){"use strict";function b(){p||(k(c),p=!0)}function c(){p=!1;do for(var a=o
.slice(),b=!1,c=0;c<a.length;c++){var d=a[c],e=d.takeRecords();f(d),e.length&&(d
.callback_(e,d),b=!0)}while(b)}function d(a,b){this.type=a,this.target=b,this.ad
dedNodes=new m.NodeList,this.removedNodes=new m.NodeList,this.previousSibling=nu
ll,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,th
is.oldValue=null}function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(
var d=0;d<c.length;d++){var e=c[d];e.options.subtree&&e.addTransientObserver(b)}
}}function f(a){for(var b=0;b<a.nodes_.length;b++){var c=a.nodes_[b],d=n.get(c);
if(!d)return;for(var e=0;e<d.length;e++){var f=d[e];f.observer===a&&f.removeTran
sientObservers()}}}function g(a,c,e){for(var f=Object.create(null),g=Object.crea
te(null),h=a;h;h=h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.length;j++){v
ar k=i[j],l=k.options;if((h===a||l.subtree)&&!("attributes"===c&&!l.attributes||
"attributes"===c&&l.attributeFilter&&(null!==e.namespace||-1===l.attributeFilter
.indexOf(e.name))||"characterData"===c&&!l.characterData||"childList"===c&&!l.ch
ildList)){var m=k.observer;f[m.uid_]=m,("attributes"===c&&l.attributeOldValue||"
characterData"===c&&l.characterDataOldValue)&&(g[m.uid_]=e.oldValue)}}}var o=!1;
for(var p in f){var m=f[p],q=new d(c,a);"name"in e&&"namespace"in e&&(q.attribut
eName=e.name,q.attributeNamespace=e.namespace),e.addedNodes&&(q.addedNodes=e.add
edNodes),e.removedNodes&&(q.removedNodes=e.removedNodes),e.previousSibling&&(q.p
reviousSibling=e.previousSibling),e.nextSibling&&(q.nextSibling=e.nextSibling),v
oid 0!==g[p]&&(q.oldValue=g[p]),m.records_.push(q),o=!0}o&&b()}function h(a){if(
this.childList=!!a.childList,this.subtree=!!a.subtree,this.attributes="attribute
s"in a||!("attributeOldValue"in a||"attributeFilter"in a)?!!a.attributes:!0,this
.characterData="characterDataOldValue"in a&&!("characterData"in a)?!0:!!a.charac
terData,!this.attributes&&(a.attributeOldValue||"attributeFilter"in a)||!this.ch
aracterData&&a.characterDataOldValue)throw new TypeError;if(this.characterData=!
!a.characterData,this.attributeOldValue=!!a.attributeOldValue,this.characterData
OldValue=!!a.characterDataOldValue,"attributeFilter"in a){if(null==a.attributeFi
lter||"object"!=typeof a.attributeFilter)throw new TypeError;this.attributeFilte
r=q.call(a.attributeFilter)}else this.attributeFilter=null}function i(a){this.ca
llback_=a,this.nodes_=[],this.records_=[],this.uid_=++r,o.push(this)}function j(
a,b,c){this.observer=a,this.target=b,this.options=c,this.transientObservedNodes=
[]}var k=a.setEndOfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n=new WeakMap,o=[],p=
!1,q=Array.prototype.slice,r=0;i.prototype={observe:function(a,b){a=l(a);var c,d
=new h(b),e=n.get(a);e||n.set(a,e=[]);for(var f=0;f<e.length;f++)e[f].observer==
=this&&(c=e[f],c.removeTransientObservers(),c.options=d);c||(c=new j(this,a,d),e
.push(c),this.nodes_.push(a))},disconnect:function(){this.nodes_.forEach(functio
n(a){for(var b=n.get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){b.s
plice(c,1);break}}},this),this.records_=[]},takeRecords:function(){var a=this.re
cords_;return this.records_=[],a}},j.prototype={addTransientObserver:function(a)
{if(a!==this.target){this.transientObservedNodes.push(a);var b=n.get(a);b||n.set
(a,b=[]),b.push(this)}},removeTransientObservers:function(){var a=this.transient
ObservedNodes;this.transientObservedNodes=[];for(var b=0;b<a.length;b++)for(var
c=a[b],d=n.get(c),e=0;e<d.length;e++)if(d[e]===this){d.splice(e,1);break}}},a.en
queueMutation=g,a.registerTransientObservers=e,a.wrappers.MutationObserver=i,a.w
rappers.MutationRecord=d}(window.ShadowDOMPolyfill),function(a){"use strict";fun
ction b(a){return a instanceof Q.ShadowRoot}function c(a){var b=a.localName;retu
rn"content"===b||"shadow"===b}function d(a){return!!a.shadowRoot}function e(a){v
ar b;return a.parentNode||(b=a.defaultView)&&P(b)||null}function f(f,g,h){if(h.l
ength)return h.shift();if(b(f))return j(f)||f.host;var i=a.eventParentsTable.get
(f);if(i){for(var k=1;k<i.length;k++)h[k-1]=i[k];return i[0]}if(g&&c(f)){var l=f
.parentNode;if(l&&d(l))for(var m=a.getShadowTrees(l),n=j(g),k=0;k<m.length;k++)i
f(m[k].contains(n))return n}return e(f)}function g(a){for(var d=[],e=a,g=[],i=[]
;e;){var j=null;if(c(e)){j=h(d);var k=d[d.length-1]||e;d.push(k)}else d.length||
d.push(e);var l=d[d.length-1];g.push({target:l,currentTarget:e}),b(e)&&d.pop(),e
=f(e,j,i)}return g}function h(a){for(var b=a.length-1;b>=0;b--)if(!c(a[b]))retur
n a[b];return null}function i(a,d){for(var e=[];a;){for(var g=[],i=d,j=void 0;i;
){var l=null;if(g.length){if(c(i)&&(l=h(g),k(j))){var n=g[g.length-1];g.push(n)}
}else g.push(i);if(m(i,a))return g[g.length-1];b(i)&&g.pop(),j=i,i=f(i,l,e)}a=b(
a)?a.host:a.parentNode}}function j(b){return a.insertionParentTable.get(b)}funct
ion k(a){return j(a)}function l(a){for(var b;b=a.parentNode;)a=b;return a}functi
on m(a,b){return l(a)===l(b)}function n(a,b){return a===b?!0:a instanceof Q.Shad
owRoot?n(l(a.host),b):!1}function o(a){return S.get(a)?void 0:(S.set(a,!0),p(P(a
),P(a.target)))}function p(b,c){if(T.get(b))throw new Error("InvalidStateError")
;T.set(b,!0),a.renderAllPending();var d=g(c);return"load"===b.type&&2===d.length
&&d[0].target instanceof Q.Document&&d.shift(),_.set(b,d),q(b,d)&&r(b,d)&&s(b,d)
,X.set(b,v.NONE),V.delete(b,null),T.delete(b),b.defaultPrevented}function q(a,b)
{for(var c,d=b.length-1;d>0;d--){var e=b[d].target,f=b[d].currentTarget;if(e!==f
&&(c=v.CAPTURING_PHASE,!t(b[d],a,c)))return!1}return!0}function r(a,b){var c=v.A
T_TARGET;return t(b[0],a,c)}function s(a,b){for(var c,d=a.bubbles,e=1;e<b.length
;e++){var f=b[e].target,g=b[e].currentTarget;if(f===g)c=v.AT_TARGET;else{if(!d||
Z.get(a))continue;c=v.BUBBLING_PHASE}if(!t(b[e],a,c))return}}function t(a,b,c){v
ar d=a.target,e=a.currentTarget,f=R.get(e);if(!f)return!0;if("relatedTarget"in b
){var g=O(b);if(g.relatedTarget){var h=P(g.relatedTarget),j=i(e,h);if(j===d)retu
rn!0;W.set(b,j)}}X.set(b,c);var k=b.type,l=!1;U.set(b,d),V.set(b,e);for(var m=0;
m<f.length;m++){var n=f[m];if(n.removed)l=!0;else if(!(n.type!==k||!n.capture&&c
===v.CAPTURING_PHASE||n.capture&&c===v.BUBBLING_PHASE))try{if("function"==typeof
n.handler?n.handler.call(e,b):n.handler.handleEvent(b),Z.get(b))return!1}catch(
o){window.onerror?window.onerror(o.message):console.error(o,o.stack)}}if(l){var
p=f.slice();f.length=0;for(var m=0;m<p.length;m++)p[m].removed||f.push(p[m])}ret
urn!Y.get(b)}function u(a,b,c){this.type=a,this.handler=b,this.capture=Boolean(c
)}function v(a,b){return a instanceof ab?void(this.impl=a):P(z(ab,"Event",a,b))}
function w(a){return a&&a.relatedTarget?Object.create(a,{relatedTarget:{value:O(
a.relatedTarget)}}):a}function x(a,b,c){var d=window[a],e=function(b,c){return b
instanceof d?void(this.impl=b):P(z(d,a,b,c))};if(e.prototype=Object.create(b.pr
ototype),c&&M(e.prototype,c),d)try{N(d,e,new d("temp"))}catch(f){N(d,e,document.
createEvent(a))}return e}function y(a,b){return function(){arguments[b]=O(argume
nts[b]);var c=O(this);c[a].apply(c,arguments)}}function z(a,b,c,d){if(jb)return
new a(c,w(d));var e=O(document.createEvent(b)),f=ib[b],g=[c];return Object.keys(
f).forEach(function(a){var b=null!=d&&a in d?d[a]:f[a];"relatedTarget"===a&&(b=O
(b)),g.push(b)}),e["init"+b].apply(e,g),e}function A(){v.call(this)}function B(a
){return"function"==typeof a?!0:a&&a.handleEvent}function C(a){switch(a){case"DO
MAttrModified":case"DOMAttributeNameChanged":case"DOMCharacterDataModified":case
"DOMElementNameChanged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":
case"DOMNodeRemoved":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":r
eturn!0}return!1}function D(a){this.impl=a}function E(a){return a instanceof Q.S
hadowRoot&&(a=a.host),O(a)}function F(a,b){var c=R.get(a);if(c)for(var d=0;d<c.l
ength;d++)if(!c[d].removed&&c[d].type===b)return!0;return!1}function G(a,b){for(
var c=O(a);c;c=c.parentNode)if(F(P(c),b))return!0;return!1}function H(a){L(a,mb)
}function I(b,c,d,e){a.renderAllPending();for(var f=P(nb.call(c.impl,d,e)),h=g(f
,this),i=0;i<h.length;i++){var j=h[i];if(j.currentTarget===b)return j.target}ret
urn null}function J(a){return function(){var b=$.get(this);return b&&b[a]&&b[a].
value||null}}function K(a){var b=a.slice(2);return function(c){var d=$.get(this)
;d||(d=Object.create(null),$.set(this,d));var e=d[a];if(e&&this.removeEventListe
ner(b,e.wrapped,!1),"function"==typeof c){var f=function(b){var d=c.call(this,b)
;d===!1?b.preventDefault():"onbeforeunload"===a&&"string"==typeof d&&(b.returnVa
lue=d)};this.addEventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var L=a.forward
MethodsToWrapper,M=a.mixin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a.wrappers,
R=(new WeakMap,new WeakMap),S=new WeakMap,T=new WeakMap,U=new WeakMap,V=new Weak
Map,W=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,_=new
WeakMap;u.prototype={equals:function(a){return this.handler===a.handler&&this.ty
pe===a.type&&this.capture===a.capture},get removed(){return null===this.handler}
,remove:function(){this.handler=null}};var ab=window.Event;ab.prototype.polymerB
lackList_={returnValue:!0,keyLocation:!0},v.prototype={get target(){return U.get
(this)},get currentTarget(){return V.get(this)},get eventPhase(){return X.get(th
is)},get path(){var a=new Q.NodeList,b=_.get(this);if(b){for(var c=0,d=b.length-
1,e=l(V.get(this)),f=0;d>=f;f++){var g=b[f].currentTarget,h=l(g);n(e,h)&&(f!==d|
|g instanceof Q.Node)&&(a[c++]=g)}a.length=c}return a},stopPropagation:function(
){Y.set(this,!0)},stopImmediatePropagation:function(){Y.set(this,!0),Z.set(this,
!0)}},N(ab,v,document.createEvent("Event"));var bb=x("UIEvent",v),cb=x("CustomEv
ent",v),db={get relatedTarget(){return W.get(this)||P(O(this).relatedTarget)}},e
b=M({initMouseEvent:y("initMouseEvent",14)},db),fb=M({initFocusEvent:y("initFocu
sEvent",5)},db),gb=x("MouseEvent",bb,eb),hb=x("FocusEvent",bb,fb),ib=Object.crea
te(null),jb=function(){try{new window.FocusEvent("focus")}catch(a){return!1}retu
rn!0}();if(!jb){var kb=function(a,b,c){if(c){var d=ib[c];b=M(M({},d),b)}ib[a]=b}
; |
| 33 kb("Event",{bubbles:!1,cancelable:!1}),kb("CustomEvent",{detail:null},"Event"),k
b("UIEvent",{view:null,detail:0},"Event"),kb("MouseEvent",{screenX:0,screenY:0,c
lientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedT
arget:null},"UIEvent"),kb("FocusEvent",{relatedTarget:null},"UIEvent")}A.prototy
pe=Object.create(v.prototype),M(A.prototype,{get returnValue(){return this.impl.
returnValue},set returnValue(a){this.impl.returnValue=a}});var lb=window.EventTa
rget,mb=["addEventListener","removeEventListener","dispatchEvent"];[Node,Window]
.forEach(function(a){var b=a.prototype;mb.forEach(function(a){Object.definePrope
rty(b,a+"_",{value:b[a]})})}),D.prototype={addEventListener:function(a,b,c){if(B
(b)&&!C(a)){var d=new u(a,b,c),e=R.get(this);if(e){for(var f=0;f<e.length;f++)if
(d.equals(e[f]))return}else e=[],R.set(this,e);e.push(d);var g=E(this);g.addEven
tListener_(a,o,!0)}},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.ge
t(this);if(d){for(var e=0,f=!1,g=0;g<d.length;g++)d[g].type===a&&d[g].capture===
c&&(e++,d[g].handler===b&&(f=!0,d[g].remove()));if(f&&1===e){var h=E(this);h.rem
oveEventListener_(a,o,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set
(c,!1),a.renderAllPending();var e;G(this,d)||(e=function(){},this.addEventListen
er(d,e,!0));try{return O(this).dispatchEvent_(c)}finally{e&&this.removeEventList
ener(d,e,!0)}}},lb&&N(lb,D);var nb=document.elementFromPoint;a.adjustRelatedTarg
et=i,a.elementFromPoint=I,a.getEventHandlerGetter=J,a.getEventHandlerSetter=K,a.
wrapEventTargetMethods=H,a.wrappers.BeforeUnloadEvent=A,a.wrappers.CustomEvent=c
b,a.wrappers.Event=v,a.wrappers.EventTarget=D,a.wrappers.FocusEvent=hb,a.wrapper
s.MouseEvent=gb,a.wrappers.UIEvent=bb}(window.ShadowDOMPolyfill),function(a){"us
e strict";function b(a,b){Object.defineProperty(a,b,{enumerable:!1})}function c(
){this.length=0,b(this,"length")}function d(a){if(null==a)return a;for(var b=new
c,d=0,e=a.length;e>d;d++)b[d]=f(a[d]);return b.length=e,b}function e(a,b){a.pro
totype[b]=function(){return d(this.impl[b].apply(this.impl,arguments))}}var f=a.
wrap;c.prototype={item:function(a){return this[a]}},b(c.prototype,"item"),a.wrap
pers.NodeList=c,a.addWrapNodeListMethod=e,a.wrapNodeList=d}(window.ShadowDOMPoly
fill),function(a){"use strict";function b(a){y(a instanceof v)}function c(a){var
b=new x;return b[0]=a,b.length=1,b}function d(a,b,c){A(b,"childList",{removedNo
des:c,previousSibling:a.previousSibling,nextSibling:a.nextSibling})}function e(a
,b){A(a,"childList",{removedNodes:b})}function f(a,b,d,e){if(a instanceof Docume
ntFragment){var f=h(a);J=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[
g].parentNode_=b;J=!1;for(var g=0;g<f.length;g++)f[g].previousSibling_=f[g-1]||d
,f[g].nextSibling_=f[g+1]||e;return d&&(d.nextSibling_=f[0]),e&&(e.previousSibli
ng_=f[f.length-1]),f}var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a.pare
ntNode_=b,a.previousSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.prev
iousSibling_=a),f}function g(a){if(a instanceof DocumentFragment)return h(a);var
b=c(a),e=a.parentNode;return e&&d(a,e,b),b}function h(a){for(var b=new x,c=0,d=
a.firstChild;d;d=d.nextSibling)b[c++]=d;return b.length=c,e(a,b),b}function i(a)
{return a}function j(a){a.nodeIsInserted_()}function k(a){for(var b=0;b<a.length
;b++)j(a[b])}function l(){}function m(){}function n(a,b){var c=a.nodeType===v.DO
CUMENT_NODE?a:a.ownerDocument;c!==b.ownerDocument&&c.adoptNode(b)}function o(b,c
){if(c.length){var d=b.ownerDocument;if(d!==c[0].ownerDocument)for(var e=0;e<c.l
ength;e++)a.adoptNodeNoRemove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(
1===c)return F(b[0]);for(var d=F(a.ownerDocument.createDocumentFragment()),e=0;c
>e;e++)d.appendChild(F(b[e]));return d}function q(a){if(void 0!==a.firstChild_)f
or(var b=a.firstChild_;b;){var c=b;b=b.nextSibling_,c.parentNode_=c.previousSibl
ing_=c.nextSibling_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.
invalidateShadowRenderer()){for(var b=a.firstChild;b;){y(b.parentNode===a);var c
=b.nextSibling,d=F(b),e=d.parentNode;e&&Q.call(e,d),b.previousSibling_=b.nextSib
ling_=b.parentNode_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=F(
a),g=f.firstChild;g;)c=g.nextSibling,Q.call(f,g),g=c}function s(a){var b=a.paren
tNode;return b&&b.invalidateShadowRenderer()}function t(a){for(var b,c=0;c<a.len
gth;c++)b=a[c],b.parentNode.removeChild(b)}function u(a,b,c){var d;if(d=G(c?K.ca
ll(c,a.impl,!1):L.call(a.impl,!1)),b){for(var e=a.firstChild;e;e=e.nextSibling)d
.appendChild(u(e,!0,c));if(a instanceof I.HTMLTemplateElement)for(var f=d.conten
t,e=a.content.firstChild;e;e=e.nextSibling)f.appendChild(u(e,!0,c))}return d}fun
ction v(a){y(a instanceof M),w.call(this,a),this.parentNode_=void 0,this.firstCh
ild_=void 0,this.lastChild_=void 0,this.nextSibling_=void 0,this.previousSibling
_=void 0}var w=a.wrappers.EventTarget,x=a.wrappers.NodeList,y=a.assert,z=a.defin
eWrapGetter,A=a.enqueueMutation,B=a.isWrapper,C=a.mixin,D=a.registerTransientObs
ervers,E=a.registerWrapper,F=a.unwrap,G=a.wrap,H=a.wrapIfNeeded,I=a.wrappers,J=!
1,K=document.importNode,L=window.Node.prototype.cloneNode,M=window.Node,N=window
.DocumentFragment,O=(M.prototype.appendChild,M.prototype.compareDocumentPosition
),P=M.prototype.insertBefore,Q=M.prototype.removeChild,R=M.prototype.replaceChil
d,S=/Trident/.test(navigator.userAgent),T=S?function(a,b){try{Q.call(a,b)}catch(
c){if(!(a instanceof N))throw c}}:function(a,b){Q.call(a,b)};v.prototype=Object.
create(w.prototype),C(v.prototype,{appendChild:function(a){return this.insertBef
ore(a,null)},insertBefore:function(a,c){b(a);var d;c?B(c)?d=F(c):(d=c,c=G(d)):(c
=null,d=null),c&&y(c.parentNode===this);var e,h=c?c.previousSibling:this.lastChi
ld,i=!this.invalidateShadowRenderer()&&!s(a);if(e=i?g(a):f(a,this,h,c),i)n(this,
a),q(this),P.call(this.impl,F(a),d);else{h||(this.firstChild_=e[0]),c||(this.las
tChild_=e[e.length-1]);var j=d?d.parentNode:this.impl;j?P.call(j,p(this,e),d):o(
this,e)}return A(this,"childList",{addedNodes:e,nextSibling:c,previousSibling:h}
),k(e),a},removeChild:function(a){if(b(a),a.parentNode!==this){for(var d=!1,e=(t
his.childNodes,this.firstChild);e;e=e.nextSibling)if(e===a){d=!0;break}if(!d)thr
ow new Error("NotFoundError")}var f=F(a),g=a.nextSibling,h=a.previousSibling;if(
this.invalidateShadowRenderer()){var i=this.firstChild,j=this.lastChild,k=f.pare
ntNode;k&&T(k,f),i===a&&(this.firstChild_=g),j===a&&(this.lastChild_=h),h&&(h.ne
xtSibling_=g),g&&(g.previousSibling_=h),a.previousSibling_=a.nextSibling_=a.pare
ntNode_=void 0}else q(this),T(this.impl,f);return J||A(this,"childList",{removed
Nodes:c(a),nextSibling:g,previousSibling:h}),D(this,a),a},replaceChild:function(
a,d){b(a);var e;if(B(d)?e=F(d):(e=d,d=G(e)),d.parentNode!==this)throw new Error(
"NotFoundError");var h,i=d.nextSibling,j=d.previousSibling,m=!this.invalidateSha
dowRenderer()&&!s(a);return m?h=g(a):(i===a&&(i=a.nextSibling),h=f(a,this,j,i)),
m?(n(this,a),q(this),R.call(this.impl,F(a),e)):(this.firstChild===d&&(this.first
Child_=h[0]),this.lastChild===d&&(this.lastChild_=h[h.length-1]),d.previousSibli
ng_=d.nextSibling_=d.parentNode_=void 0,e.parentNode&&R.call(e.parentNode,p(this
,h),e)),A(this,"childList",{addedNodes:h,removedNodes:c(d),nextSibling:i,previou
sSibling:j}),l(d),k(h),d},nodeIsInserted_:function(){for(var a=this.firstChild;a
;a=a.nextSibling)a.nodeIsInserted_()},hasChildNodes:function(){return null!==thi
s.firstChild},get parentNode(){return void 0!==this.parentNode_?this.parentNode_
:G(this.impl.parentNode)},get firstChild(){return void 0!==this.firstChild_?this
.firstChild_:G(this.impl.firstChild)},get lastChild(){return void 0!==this.lastC
hild_?this.lastChild_:G(this.impl.lastChild)},get nextSibling(){return void 0!==
this.nextSibling_?this.nextSibling_:G(this.impl.nextSibling)},get previousSiblin
g(){return void 0!==this.previousSibling_?this.previousSibling_:G(this.impl.prev
iousSibling)},get parentElement(){for(var a=this.parentNode;a&&a.nodeType!==v.EL
EMENT_NODE;)a=a.parentNode;return a},get textContent(){for(var a="",b=this.first
Child;b;b=b.nextSibling)b.nodeType!=v.COMMENT_NODE&&(a+=b.textContent);return a}
,set textContent(a){var b=i(this.childNodes);if(this.invalidateShadowRenderer())
{if(r(this),""!==a){var c=this.impl.ownerDocument.createTextNode(a);this.appendC
hild(c)}}else q(this),this.impl.textContent=a;var d=i(this.childNodes);A(this,"c
hildList",{addedNodes:d,removedNodes:b}),m(b),k(d)},get childNodes(){for(var a=n
ew x,b=0,c=this.firstChild;c;c=c.nextSibling)a[b++]=c;return a.length=b,a},clone
Node:function(a){return u(this,a)},contains:function(a){if(!a)return!1;if(a=H(a)
,a===this)return!0;var b=a.parentNode;return b?this.contains(b):!1},compareDocum
entPosition:function(a){return O.call(this.impl,F(a))},normalize:function(){for(
var a,b,c=i(this.childNodes),d=[],e="",f=0;f<c.length;f++)b=c[f],b.nodeType===v.
TEXT_NODE?a||b.data.length?a?(e+=b.data,d.push(b)):a=b:this.removeNode(b):(a&&d.
length&&(a.data+=e,cleanUpNodes(d)),d=[],e="",a=null,b.childNodes.length&&b.norm
alize());a&&d.length&&(a.data+=e,t(d))}}),z(v,"ownerDocument"),E(M,v,document.cr
eateDocumentFragment()),delete v.prototype.querySelector,delete v.prototype.quer
ySelectorAll,v.prototype=C(Object.create(w.prototype),v.prototype),a.nodeWasAdde
d=j,a.nodeWasRemoved=l,a.nodesWereAdded=k,a.nodesWereRemoved=m,a.snapshotNodeLis
t=i,a.wrappers.Node=v,a.cloneNode=u}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a,c){for(var d,e=a.firstElementChild;e;){if(e.matches(c))retu
rn e;if(d=b(e,c))return d;e=e.nextElementSibling}return null}function c(a,b,d){f
or(var e=a.firstElementChild;e;)e.matches(b)&&(d[d.length++]=e),c(e,b,d),e=e.nex
tElementSibling;return d}var d={querySelector:function(a){return b(this,a)},quer
ySelectorAll:function(a){return c(this,a,new NodeList)}},e={getElementsByTagName
:function(a){return this.querySelectorAll(a)},getElementsByClassName:function(a)
{return this.querySelectorAll("."+a)},getElementsByTagNameNS:function(a,b){if("*
"===a)return this.getElementsByTagName(b);for(var c=new NodeList,d=this.getEleme
ntsByTagName(b),e=0,f=0;e<d.length;e++)d[e].namespaceURI===a&&(c[f++]=d[e]);retu
rn c.length=f,c}};a.GetElementsByInterface=e,a.SelectorsInterface=d}(window.Shad
owDOMPolyfill),function(a){"use strict";function b(a){for(;a&&a.nodeType!==Node.
ELEMENT_NODE;)a=a.nextSibling;return a}function c(a){for(;a&&a.nodeType!==Node.E
LEMENT_NODE;)a=a.previousSibling;return a}var d=a.wrappers.NodeList,e={get first
ElementChild(){return b(this.firstChild)},get lastElementChild(){return c(this.l
astChild)},get childElementCount(){for(var a=0,b=this.firstElementChild;b;b=b.ne
xtElementSibling)a++;return a},get children(){for(var a=new d,b=0,c=this.firstEl
ementChild;c;c=c.nextElementSibling)a[b++]=c;return a.length=b,a}},f={get nextEl
ementSibling(){return b(this.nextSibling)},get previousElementSibling(){return c
(this.previousSibling)}};a.ChildNodeInterface=f,a.ParentNodeInterface=e}(window.
ShadowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}var c=a
.ChildNodeInterface,d=a.wrappers.Node,e=a.enqueueMutation,f=a.mixin,g=a.register
Wrapper,h=window.CharacterData;b.prototype=Object.create(d.prototype),f(b.protot
ype,{get textContent(){return this.data},set textContent(a){this.data=a},get dat
a(){return this.impl.data},set data(a){var b=this.impl.data;e(this,"characterDat
a",{oldValue:b}),this.impl.data=a}}),f(b.prototype,c),g(h,b,document.createTextN
ode("")),a.wrappers.CharacterData=b}(window.ShadowDOMPolyfill),function(a){"use
strict";function b(a){return a>>>0}function c(a){d.call(this,a)}var d=a.wrappers
.CharacterData,e=(a.enqueueMutation,a.mixin),f=a.registerWrapper,g=window.Text;c
.prototype=Object.create(d.prototype),e(c.prototype,{splitText:function(a){a=b(a
);var c=this.data;if(a>c.length)throw new Error("IndexSizeError");var d=c.slice(
0,a),e=c.slice(a);this.data=d;var f=this.ownerDocument.createTextNode(e);return
this.parentNode&&this.parentNode.insertBefore(f,this.nextSibling),f}}),f(g,c,doc
ument.createTextNode("")),a.wrappers.Text=c}(window.ShadowDOMPolyfill),function(
a){"use strict";function b(b,c){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.g
etRendererForHost(d);e.dependsOnAttribute(c)&&e.invalidate()}}function c(a,b,c){
k(a,"attributes",{name:b,namespace:null,oldValue:c})}function d(a){h.call(this,a
)}function e(a,c,d){var e=d||c;Object.defineProperty(a,c,{get:function(){return
this.impl[c]},set:function(a){this.impl[c]=a,b(this,e)},configurable:!0,enumerab
le:!0})}var f=a.ChildNodeInterface,g=a.GetElementsByInterface,h=a.wrappers.Node,
i=a.ParentNodeInterface,j=a.SelectorsInterface,k=(a.addWrapNodeListMethod,a.enqu
eueMutation),l=a.mixin,m=(a.oneOf,a.registerWrapper),n=a.wrappers,o=window.Eleme
nt,p=["matches","mozMatchesSelector","msMatchesSelector","webkitMatchesSelector"
].filter(function(a){return o.prototype[a]}),q=p[0],r=o.prototype[q];d.prototype
=Object.create(h.prototype),l(d.prototype,{createShadowRoot:function(){var b=new
n.ShadowRoot(this);this.impl.polymerShadowRoot_=b;var c=a.getRendererForHost(th
is);return c.invalidate(),b},get shadowRoot(){return this.impl.polymerShadowRoot
_||null},setAttribute:function(a,d){var e=this.impl.getAttribute(a);this.impl.se
tAttribute(a,d),c(this,a,e),b(this,a)},removeAttribute:function(a){var d=this.im
pl.getAttribute(a);this.impl.removeAttribute(a),c(this,a,d),b(this,a)},matches:f
unction(a){return r.call(this.impl,a)}}),p.forEach(function(a){"matches"!==a&&(d
.prototype[a]=function(a){return this.matches(a)})}),o.prototype.webkitCreateSha
dowRoot&&(d.prototype.webkitCreateShadowRoot=d.prototype.createShadowRoot),e(d.p
rototype,"id"),e(d.prototype,"className","class"),l(d.prototype,f),l(d.prototype
,g),l(d.prototype,i),l(d.prototype,j),m(o,d,document.createElementNS(null,"x")),
a.matchesNames=p,a.wrappers.Element=d}(window.ShadowDOMPolyfill),function(a){"us
e strict";function b(a){switch(a){case"&":return"&";case"<":return"<";cas
e">":return">";case'"':return""";case" ":return" "}}function c(a){r
eturn a.replace(z,b)}function d(a){return a.replace(A,b)}function e(a){for(var b
={},c=0;c<a.length;c++)b[a[c]]=!0;return b}function f(a,b){switch(a.nodeType){ca
se Node.ELEMENT_NODE:for(var e,f=a.tagName.toLowerCase(),h="<"+f,i=a.attributes,
j=0;e=i[j];j++)h+=" "+e.name+'="'+c(e.value)+'"';return h+=">",B[f]?h:h+g(a)+"</
"+f+">";case Node.TEXT_NODE:var k=a.data;return b&&C[b.localName]?k:d(k);case No
de.COMMENT_NODE:return"<!--"+a.data+"-->";default:throw console.error(a),new Err
or("not implemented")}}function g(a){a instanceof y.HTMLTemplateElement&&(a=a.co
ntent);for(var b="",c=a.firstChild;c;c=c.nextSibling)b+=f(c,a);return b}function
h(a,b,c){var d=c||"div";a.textContent="";var e=w(a.ownerDocument.createElement(
d));e.innerHTML=b;for(var f;f=e.firstChild;)a.appendChild(x(f))}function i(a){o.
call(this,a)}function j(a,b){var c=w(a.cloneNode(!1));c.innerHTML=b;for(var d,e=
w(document.createDocumentFragment());d=c.firstChild;)e.appendChild(d);return x(e
)}function k(b){return function(){return a.renderAllPending(),this.impl[b]}}func
tion l(a){p(i,a,k(a))}function m(b){Object.defineProperty(i.prototype,b,{get:k(b
),set:function(c){a.renderAllPending(),this.impl[b]=c},configurable:!0,enumerabl
e:!0})}function n(b){Object.defineProperty(i.prototype,b,{value:function(){retur
n a.renderAllPending(),this.impl[b].apply(this.impl,arguments)},configurable:!0,
enumerable:!0})}var o=a.wrappers.Element,p=a.defineGetter,q=a.enqueueMutation,r=
a.mixin,s=a.nodesWereAdded,t=a.nodesWereRemoved,u=a.registerWrapper,v=a.snapshot
NodeList,w=a.unwrap,x=a.wrap,y=a.wrappers,z=/[&\u00A0"]/g,A=/[&\u00A0<>]/g,B=e([
"area","base","br","col","command","embed","hr","img","input","keygen","link","m
eta","param","source","track","wbr"]),C=e(["style","script","xmp","iframe","noem
bed","noframes","plaintext","noscript"]),D=/MSIE/.test(navigator.userAgent),E=wi
ndow.HTMLElement,F=window.HTMLTemplateElement;i.prototype=Object.create(o.protot
ype),r(i.prototype,{get innerHTML(){return g(this)},set innerHTML(a){if(D&&C[thi
s.localName])return void(this.textContent=a);var b=v(this.childNodes);this.inval
idateShadowRenderer()?this instanceof y.HTMLTemplateElement?h(this.content,a):h(
this,a,this.tagName):!F&&this instanceof y.HTMLTemplateElement?h(this.content,a)
:this.impl.innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedNodes:c
,removedNodes:b}),t(b),s(c)},get outerHTML(){return f(this,this.parentNode)},set
outerHTML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer();var c=j(b
,a);b.replaceChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d;switch(Str
ing(a).toLowerCase()){case"beforebegin":c=this.parentNode,d=this;break;case"afte
rend":c=this.parentNode,d=this.nextSibling;break;case"afterbegin":c=this,d=this.
firstChild;break;case"beforeend":c=this,d=null;break;default:return}var e=j(c,b)
;c.insertBefore(e,d)}}),["clientHeight","clientLeft","clientTop","clientWidth","
offsetHeight","offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidth
"].forEach(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClientRect","ge
tClientRects","scrollIntoView"].forEach(n),u(E,i,document.createElement("b")),a.
wrappers.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(window.ShadowDOMPolyfi
ll),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLE
lement,d=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElement;b.proto
type=Object.create(c.prototype),d(b.prototype,{getContext:function(){var a=this.
impl.getContext.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,document.crea
teElement("canvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOMPolyfill),f
unction(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElemen
t,d=a.mixin,e=a.registerWrapper,f=window.HTMLContentElement;b.prototype=Object.c
reate(c.prototype),d(b.prototype,{get select(){return this.getAttribute("select"
)},set select(a){this.setAttribute("select",a)},setAttribute:function(a,b){c.pro
totype.setAttribute.call(this,a,b),"select"===String(a).toLowerCase()&&this.inva
lidateShadowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(window.Sh
adowDOMPolyfill),function(a){"use strict";function b(a){d.call(this,a)}function
c(a,b){if(!(this instanceof c))throw new TypeError("DOM object constructor canno
t be called as a function.");var e=f(document.createElement("img"));d.call(this,
e),g(e,this),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.H
TMLElement,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b
.prototype=Object.create(d.prototype),e(h,b,document.createElement("img")),c.pro
totype=b.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.Shad
owDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wra
ppers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowElement;b.pro
totype=Object.create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrappers.HTMLSha
dowElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){i
f(!a.defaultView)return a;var b=k.get(a);if(!b){for(b=a.implementation.createHTM
LDocument("");b.lastChild;)b.removeChild(b.lastChild);k.set(a,b)}return b}functi
on c(a){for(var c,d=b(a.ownerDocument),e=h(d.createDocumentFragment());c=a.first
Child;)e.appendChild(c);return e}function d(a){if(e.call(this,a),!l){var b=c(a);
j.set(this,i(b))}}var e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a
.unwrap,i=a.wrap,j=new WeakMap,k=new WeakMap,l=window.HTMLTemplateElement;d.prot
otype=Object.create(e.prototype),f(d.prototype,{get content(){return l?i(this.im
pl.content):j.get(this)}}),l&&g(l,d),a.wrappers.HTMLTemplateElement=d}(window.Sh
adowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.w
rappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMediaElement;b.prototype=Ob
ject.create(c.prototype),d(e,b,document.createElement("audio")),a.wrappers.HTMLM
ediaElement=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){
d.call(this,a)}function c(a){if(!(this instanceof c))throw new TypeError("DOM ob
ject constructor cannot be called as a function.");var b=f(document.createElemen
t("audio"));d.call(this,b),g(b,this),b.setAttribute("preload","auto"),void 0!==a
&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElement,e=a.registerWrapper,
f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototype=Object.create(d.prot
otype),e(h,b,document.createElement("audio")),c.prototype=b.prototype,a.wrappers
.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPolyfill),function(a){"u
se strict";function b(a){return a.replace(/\s+/g," ").trim()}function c(a){e.cal
l(this,a)}function d(a,b,c,f){if(!(this instanceof d))throw new TypeError("DOM o
bject constructor cannot be called as a function.");var g=i(document.createEleme
nt("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text=a),void 0!==b&&g.setA
ttribute("value",b),c===!0&&g.setAttribute("selected",""),g.selected=f===!0}var
e=a.wrappers.HTMLElement,f=a.mixin,g=a.registerWrapper,h=a.rewrap,i=a.unwrap,j=a
.wrap,k=window.HTMLOptionElement;c.prototype=Object.create(e.prototype),f(c.prot
otype,{get text(){return b(this.textContent)},set text(a){this.textContent=b(Str
ing(a))},get form(){return j(i(this).form)}}),g(k,c,document.createElement("opti
on")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement=c,a.wrappers.Option=d
}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.call(this,a
)}var c=a.wrappers.HTMLElement,d=a.mixin,e=a.registerWrapper,f=a.unwrap,g=a.wrap
,h=window.HTMLSelectElement;b.prototype=Object.create(c.prototype),d(b.prototype
,{add:function(a,b){"object"==typeof b&&(b=f(b)),f(this).add(f(a),b)},remove:fun
ction(a){"object"==typeof a&&(a=f(a)),f(this).remove(a)},get form(){return g(f(t
his).form)}}),e(h,b,document.createElement("select")),a.wrappers.HTMLSelectEleme
nt=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch(a.
localName){case"content":return new c(a);case"shadow":return new e(a);case"templ
ate":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLContentElement,d=a.wrap
pers.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.HTMLTemplateElement
,g=(a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.prototype=Object.cr
eate(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(window.ShadowDOMPolyfi
ll),function(a){"use strict";var b=a.registerObject,c="http://www.w3.org/2000/sv
g",d=document.createElementNS(c,"title"),e=b(d),f=Object.getPrototypeOf(e.protot
ype).constructor;a.wrappers.SVGElement=f}(window.ShadowDOMPolyfill),function(a){
"use strict";function b(a){m.call(this,a)}var c=a.mixin,d=a.registerWrapper,e=a.
unwrap,f=a.wrap,g=window.SVGUseElement,h="http://www.w3.org/2000/svg",i=f(docume
nt.createElementNS(h,"g")),j=document.createElementNS(h,"use"),k=i.constructor,l
=Object.getPrototypeOf(k.prototype),m=l.constructor;b.prototype=Object.create(l)
,"instanceRoot"in j&&c(b.prototype,{get instanceRoot(){return f(e(this).instance
Root)},get animatedInstanceRoot(){return f(e(this).animatedInstanceRoot)}}),d(g,
b,j),a.wrappers.SVGUseElement=b}(window.ShadowDOMPolyfill),function(a){"use stri
ct";function b(a){c.call(this,a)}var c=a.wrappers.EventTarget,d=a.mixin,e=a.regi
sterWrapper,f=a.wrap,g=window.SVGElementInstance;g&&(b.prototype=Object.create(c
.prototype),d(b.prototype,{get correspondingElement(){return f(this.impl.corresp
ondingElement)},get correspondingUseElement(){return f(this.impl.correspondingUs
eElement)},get parentNode(){return f(this.impl.parentNode)},get childNodes(){thr
ow new Error("Not implemented")},get firstChild(){return f(this.impl.firstChild)
},get lastChild(){return f(this.impl.lastChild)},get previousSibling(){return f(
this.impl.previousSibling)},get nextSibling(){return f(this.impl.nextSibling)}})
,e(g,b),a.wrappers.SVGElementInstance=b)}(window.ShadowDOMPolyfill),function(a){
"use strict";function b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unw
rap,f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRenderingContext2D;c(b.prototype,
{get canvas(){return g(this.impl.canvas)},drawImage:function(){arguments[0]=f(ar
guments[0]),this.impl.drawImage.apply(this.impl,arguments)},createPattern:functi
on(){return arguments[0]=e(arguments[0]),this.impl.createPattern.apply(this.impl
,arguments)}}),d(h,b,document.createElement("canvas").getContext("2d")),a.wrappe
rs.CanvasRenderingContext2D=b}(window.ShadowDOMPolyfill),function(a){"use strict
";function b(a){this.impl=a}var c=a.mixin,d=a.registerWrapper,e=a.unwrapIfNeeded
,f=a.wrap,g=window.WebGLRenderingContext;if(g){c(b.prototype,{get canvas(){retur
n f(this.impl.canvas)},texImage2D:function(){arguments[5]=e(arguments[5]),this.i
mpl.texImage2D.apply(this.impl,arguments)},texSubImage2D:function(){arguments[6]
=e(arguments[6]),this.impl.texSubImage2D.apply(this.impl,arguments)}});var h=/We
bKit/.test(navigator.userAgent)?{drawingBufferHeight:null,drawingBufferWidth:nul
l}:{};d(g,b,h),a.wrappers.WebGLRenderingContext=b}}(window.ShadowDOMPolyfill),fu
nction(a){"use strict";function b(a){this.impl=a}var c=a.registerWrapper,d=a.unw
rap,e=a.unwrapIfNeeded,f=a.wrap,g=window.Range;b.prototype={get startContainer()
{return f(this.impl.startContainer)},get endContainer(){return f(this.impl.endCo
ntainer)},get commonAncestorContainer(){return f(this.impl.commonAncestorContain
er)},setStart:function(a,b){this.impl.setStart(e(a),b)},setEnd:function(a,b){thi
s.impl.setEnd(e(a),b)},setStartBefore:function(a){this.impl.setStartBefore(e(a))
},setStartAfter:function(a){this.impl.setStartAfter(e(a))},setEndBefore:function
(a){this.impl.setEndBefore(e(a))},setEndAfter:function(a){this.impl.setEndAfter(
e(a))},selectNode:function(a){this.impl.selectNode(e(a))},selectNodeContents:fun
ction(a){this.impl.selectNodeContents(e(a))},compareBoundaryPoints:function(a,b)
{return this.impl.compareBoundaryPoints(a,d(b))},extractContents:function(){retu
rn f(this.impl.extractContents())},cloneContents:function(){return f(this.impl.c
loneContents())},insertNode:function(a){this.impl.insertNode(e(a))},surroundCont
ents:function(a){this.impl.surroundContents(e(a))},cloneRange:function(){return
f(this.impl.cloneRange())},isPointInRange:function(a,b){return this.impl.isPoint
InRange(e(a),b)},comparePoint:function(a,b){return this.impl.comparePoint(e(a),b
)},intersectsNode:function(a){return this.impl.intersectsNode(e(a))},toString:fu
nction(){return this.impl.toString()}},g.prototype.createContextualFragment&&(b.
prototype.createContextualFragment=function(a){return f(this.impl.createContextu
alFragment(a))}),c(window.Range,b,document.createRange()),a.wrappers.Range=b}(wi
ndow.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetElementsByInterface,
c=a.ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.registerObject,g=f(
document.createDocumentFragment());e(g.prototype,c),e(g.prototype,d),e(g.prototy
pe,b);var h=f(document.createComment(""));a.wrappers.Comment=h,a.wrappers.Docume
ntFragment=g}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){v
ar b=i(a.impl.ownerDocument.createDocumentFragment());c.call(this,b),g(b,this);v
ar d=a.shadowRoot;k.set(this,d),j.set(this,a)}var c=a.wrappers.DocumentFragment,
d=a.elementFromPoint,e=a.getInnerHTML,f=a.mixin,g=a.rewrap,h=a.setInnerHTML,i=a.
unwrap,j=new WeakMap,k=new WeakMap,l=/[ \t\n\r\f]/;b.prototype=Object.create(c.p
rototype),f(b.prototype,{get innerHTML(){return e(this)},set innerHTML(a){h(this
,a),this.invalidateShadowRenderer()},get olderShadowRoot(){return k.get(this)||n
ull},get host(){return j.get(this)||null},invalidateShadowRenderer:function(){re
turn j.get(this).invalidateShadowRenderer()},elementFromPoint:function(a,b){retu
rn d(this,this.ownerDocument,a,b)},getElementById:function(a){return l.test(a)?n
ull:this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoot=b}(window.Shadow
DOMPolyfill),function(a){"use strict";function b(a){a.previousSibling_=a.previou
sSibling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNode}function c(a,c,
e){var f=F(a),g=F(c),h=e?F(e):null;if(d(c),b(c),e)a.firstChild===e&&(a.firstChil
d_=e),e.previousSibling_=e.previousSibling;else{a.lastChild_=a.lastChild,a.lastC
hild===a.firstChild&&(a.firstChild_=a.firstChild);var i=G(f.lastChild);i&&(i.nex
tSibling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var c=F(a),d=c.parent
Node;if(d){var e=G(d);b(a),a.previousSibling&&(a.previousSibling.nextSibling_=a)
,a.nextSibling&&(a.nextSibling.previousSibling_=a),e.lastChild===a&&(e.lastChild
_=a),e.firstChild===a&&(e.firstChild_=a),d.removeChild(c)}}function e(a,b){g(b).
push(a),x(a,b);var c=I.get(a);c||I.set(a,c=[]),c.push(b)}function f(a){H.set(a,[
])}function g(a){var b=H.get(a);return b||H.set(a,b=[]),b}function h(a){for(var
b=[],c=0,d=a.firstChild;d;d=d.nextSibling)b[c++]=d;return b}function i(a,b,c){fo
r(var d=a.firstChild;d;d=d.nextSibling)if(b(d)){if(c(d)===!1)return}else i(d,b,c
)}function j(a,b){var c=b.getAttribute("select");if(!c)return!0;if(c=c.trim(),!c
)return!0;if(!(a instanceof z))return!1;if("*"===c||c===a.localName)return!0;if(
!L.test(c))return!1;if(":"===c[0]&&!M.test(c))return!1;try{return a.matches(c)}c
atch(d){return!1}}function k(){for(var a=0;a<O.length;a++)O[a].render();O=[]}fun
ction l(){y=null,k()}function m(a){var b=K.get(a);return b||(b=new q(a),K.set(a,
b)),b}function n(a){for(;a;a=a.parentNode)if(a instanceof D)return a;return null
}function o(a){return m(a.host)}function p(a){this.skip=!1,this.node=a,this.chil
dNodes=[]}function q(a){this.host=a,this.dirty=!1,this.invalidateAttributes(),th
is.associateNode(a)}function r(a){return a instanceof A}function s(a){return a i
nstanceof A}function t(a){return a instanceof B}function u(a){return a instanceo
f B}function v(a){return a.shadowRoot}function w(a){for(var b=[],c=a.shadowRoot;
c;c=c.olderShadowRoot)b.push(c);return b}function x(a,b){J.set(a,b)}var y,z=a.wr
appers.Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=
a.wrappers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.mixin,a.oneOf),F=a.unwrap,
G=a.wrap,H=new WeakMap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=/^[*.:#[a-zA-
Z_|]/,M=new RegExp("^:("+["link","visited","target","enabled","disabled","checke
d","indeterminate","nth-child","nth-last-child","nth-of-type","nth-last-of-type"
,"first-child","last-child","first-of-type","last-of-type","only-of-type"].join(
"|")+")"),N=E(window,["requestAnimationFrame","mozRequestAnimationFrame","webkit
RequestAnimationFrame","setTimeout"]),O=[],P=new ArraySplice;P.equals=function(a
,b){return F(a.node)===b},p.prototype={append:function(a){var b=new p(a);return
this.childNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=this.node,e
=this.childNodes,f=h(F(b)),g=a||new WeakMap,i=P.calculateSplices(e,f),j=0,k=0,l=
0,m=0;m<i.length;m++){for(var n=i[m];l<n.index;l++)k++,e[j++].sync(g);for(var o=
n.removed.length,p=0;o>p;p++){var q=G(f[k++]);g.get(q)||d(q)}for(var r=n.addedCo
unt,s=f[k]&&G(f[k]),p=0;r>p;p++){var t=e[j++],u=t.node;c(b,u,s),g.set(u,!0),t.sy
nc(g)}l+=r}for(var m=l;m<e.length;m++)e[m].sync(g)}}},q.prototype={render:functi
on(a){if(this.dirty){this.invalidateAttributes(),this.treeComposition();var b=th
is.host,c=b.shadowRoot;this.associateNode(b);for(var d=!e,e=a||new p(b),f=c.firs
tChild;f;f=f.nextSibling)this.renderNode(c,e,f,!1);d&&e.sync(),this.dirty=!1}},i
nvalidate:function(){if(!this.dirty){if(this.dirty=!0,O.push(this),y)return;y=wi
ndow[N](l,0)}},renderNode:function(a,b,c,d){if(v(c)){b=b.append(c);var e=m(c);e.
dirty=!0,e.render(b)}else r(c)?this.renderInsertionPoint(a,b,c,d):t(c)?this.rend
erShadowInsertionPoint(a,b,c):this.renderAsAnyDomTree(a,b,c,d)},renderAsAnyDomTr
ee:function(a,b,c,d){if(b=b.append(c),v(c)){var e=m(c);b.skip=!e.dirty,e.render(
b)}else for(var f=c.firstChild;f;f=f.nextSibling)this.renderNode(a,b,f,d)},rende
rInsertionPoint:function(a,b,c,d){var e=g(c);if(e.length){this.associateNode(c);
for(var f=0;f<e.length;f++){var h=e[f];r(h)&&d?this.renderInsertionPoint(a,b,h,d
):this.renderAsAnyDomTree(a,b,h,d)}}else this.renderFallbackContent(a,b,c);this.
associateNode(c.parentNode)},renderShadowInsertionPoint:function(a,b,c){var d=a.
olderShadowRoot;if(d){x(d,c),this.associateNode(c.parentNode);for(var e=d.firstC
hild;e;e=e.nextSibling)this.renderNode(d,b,e,!0)}else this.renderFallbackContent
(a,b,c) |
| 34 },renderFallbackContent:function(a,b,c){this.associateNode(c),this.associateNode
(c.parentNode);for(var d=c.firstChild;d;d=d.nextSibling)this.renderAsAnyDomTree(
a,b,d,!1)},invalidateAttributes:function(){this.attributes=Object.create(null)},
updateDependentAttributes:function(a){if(a){var b=this.attributes;/\.\w+/.test(a
)&&(b["class"]=!0),/#\w+/.test(a)&&(b.id=!0),a.replace(/\[\s*([^\s=\|~\]]+)/g,fu
nction(a,c){b[c]=!0})}},dependsOnAttribute:function(a){return this.attributes[a]
},distribute:function(a,b){var c=this;i(a,s,function(a){f(a),c.updateDependentAt
tributes(a.getAttribute("select"));for(var d=0;d<b.length;d++){var g=b[d];void 0
!==g&&j(g,a)&&(e(g,a),b[d]=void 0)}})},treeComposition:function(){for(var a=this
.host,b=a.shadowRoot,c=[],d=a.firstChild;d;d=d.nextSibling)if(r(d)){var e=g(d);e
&&e.length||(e=h(d)),c.push.apply(c,e)}else c.push(d);for(var f,j;b;){if(f=void
0,i(b,u,function(a){return f=a,!1}),j=f,this.distribute(b,c),j){var k=b.olderSha
dowRoot;if(k){b=k,x(b,j);continue}break}break}},associateNode:function(a){a.impl
.polymerShadowRenderer_=this}},C.prototype.invalidateShadowRenderer=function(){v
ar a=this.impl.polymerShadowRenderer_;return a?(a.invalidate(),!0):!1},A.prototy
pe.getDistributedNodes=function(){return k(),g(this)},B.prototype.nodeIsInserted
_=A.prototype.nodeIsInserted_=function(){this.invalidateShadowRenderer();var a,b
=n(this);b&&(a=o(b)),this.impl.polymerShadowRenderer_=a,a&&a.invalidate()},a.eve
ntParentsTable=I,a.getRendererForHost=m,a.getShadowTrees=w,a.insertionParentTabl
e=J,a.renderAllPending=k,a.visual={insertBefore:c,remove:d}}(window.ShadowDOMPol
yfill),function(a){"use strict";function b(b){if(window[b]){d(!a.wrappers[b]);va
r i=function(a){c.call(this,a)};i.prototype=Object.create(c.prototype),e(i.proto
type,{get form(){return h(g(this).form)}}),f(window[b],i,document.createElement(
b.slice(4,-7))),a.wrappers[b]=i}}var c=a.wrappers.HTMLElement,d=a.assert,e=a.mix
in,f=a.registerWrapper,g=a.unwrap,h=a.wrap,i=["HTMLButtonElement","HTMLFieldSetE
lement","HTMLInputElement","HTMLKeygenElement","HTMLLabelElement","HTMLLegendEle
ment","HTMLObjectElement","HTMLOutputElement","HTMLTextAreaElement"];i.forEach(b
)}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}
{var c=a.registerWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;window.Selection
}b.prototype={get anchorNode(){return f(this.impl.anchorNode)},get focusNode(){r
eturn f(this.impl.focusNode)},addRange:function(a){this.impl.addRange(d(a))},col
lapse:function(a,b){this.impl.collapse(e(a),b)},containsNode:function(a,b){retur
n this.impl.containsNode(e(a),b)},extend:function(a,b){this.impl.extend(e(a),b)}
,getRangeAt:function(a){return f(this.impl.getRangeAt(a))},removeRange:function(
a){this.impl.removeRange(d(a))},selectAllChildren:function(a){this.impl.selectAl
lChildren(e(a))},toString:function(){return this.impl.toString()}},c(window.Sele
ction,b,window.getSelection()),a.wrappers.Selection=b}(window.ShadowDOMPolyfill)
,function(a){"use strict";function b(a){k.call(this,a)}function c(a){var c=docum
ent[a];b.prototype[a]=function(){return z(c.apply(this.impl,arguments))}}functio
n d(a,b){C.call(b.impl,y(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.
shadowRoot),a instanceof o&&f(a,b);for(var c=a.firstChild;c;c=c.nextSibling)e(c,
b)}function f(a,b){var c=a.olderShadowRoot;c&&b.adoptNode(c)}function g(a){this.
impl=a}function h(a,b){var c=document.implementation[b];a.prototype[b]=function(
){return z(c.apply(this.impl,arguments))}}function i(a,b){var c=document.impleme
ntation[b];a.prototype[b]=function(){return c.apply(this.impl,arguments)}}var j=
a.GetElementsByInterface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.wrappers.
Selection,n=a.SelectorsInterface,o=a.wrappers.ShadowRoot,p=a.cloneNode,q=a.defin
eWrapGetter,r=a.elementFromPoint,s=a.forwardMethodsToWrapper,t=a.matchesNames,u=
a.mixin,v=a.registerWrapper,w=a.renderAllPending,x=a.rewrap,y=a.unwrap,z=a.wrap,
A=a.wrapEventTargetMethods,B=(a.wrapNodeList,new WeakMap);b.prototype=Object.cre
ate(k.prototype),q(b,"documentElement"),q(b,"body"),q(b,"head"),["createComment"
,"createDocumentFragment","createElement","createElementNS","createEvent","creat
eEventNS","createRange","createTextNode","getElementById"].forEach(c);var C=docu
ment.adoptNode,D=document.getSelection;if(u(b.prototype,{adoptNode:function(a){r
eturn a.parentNode&&a.parentNode.removeChild(a),d(a,this),a},elementFromPoint:fu
nction(a,b){return r(this,this,a,b)},importNode:function(a,b){return p(a,b,this.
impl)},getSelection:function(){return w(),new m(D.call(y(this)))}}),document.reg
isterElement){var E=document.registerElement;b.prototype.registerElement=functio
n(b,c){function d(a){return a?void(this.impl=a):c.extends?document.createElement
(c.extends,b):document.createElement(b)}var e=c.prototype;if(a.nativePrototypeTa
ble.get(e))throw new Error("NotSupportedError");for(var f,g=Object.getPrototypeO
f(e),h=[];g&&!(f=a.nativePrototypeTable.get(g));)h.push(g),g=Object.getPrototype
Of(g);if(!f)throw new Error("NotSupportedError");for(var i=Object.create(f),j=h.
length-1;j>=0;j--)i=Object.create(i);["createdCallback","attachedCallback","deta
chedCallback","attributeChangedCallback"].forEach(function(a){var b=e[a];b&&(i[a
]=function(){z(this)instanceof d||x(this),b.apply(z(this),arguments)})});var k={
prototype:i};c.extends&&(k.extends=c.extends),d.prototype=e,d.prototype.construc
tor=d,a.constructorTable.set(i,d),a.nativePrototypeTable.set(e,i);E.call(y(this)
,b,k);return d},s([window.HTMLDocument||window.Document],["registerElement"])}s(
[window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElem
ent,window.HTMLHtmlElement],["appendChild","compareDocumentPosition","contains",
"getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","insert
Before","querySelector","querySelectorAll","removeChild","replaceChild"].concat(
t)),s([window.HTMLDocument||window.Document],["adoptNode","importNode","contains
","createComment","createDocumentFragment","createElement","createElementNS","cr
eateEvent","createEventNS","createRange","createTextNode","elementFromPoint","ge
tElementById","getSelection"]),u(b.prototype,j),u(b.prototype,l),u(b.prototype,n
),u(b.prototype,{get implementation(){var a=B.get(this);return a?a:(a=new g(y(th
is).implementation),B.set(this,a),a)}}),v(window.Document,b,document.implementat
ion.createHTMLDocument("")),window.HTMLDocument&&v(window.HTMLDocument,b),A([win
dow.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTMLHeadElement]
),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDocument"),i(g,
"hasFeature"),v(window.DOMImplementation,g),s([window.DOMImplementation],["creat
eDocumentType","createDocument","createHTMLDocument","hasFeature"]),a.adoptNodeN
oRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(window.ShadowDOM
Polyfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers
.EventTarget,d=a.wrappers.Selection,e=a.mixin,f=a.registerWrapper,g=a.renderAllP
ending,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=window.getComput
edStyle,m=window.getSelection;b.prototype=Object.create(c.prototype),k.prototype
.getComputedStyle=function(a,b){return j(this||window).getComputedStyle(i(a),b)}
,k.prototype.getSelection=function(){return j(this||window).getSelection()},dele
te window.getComputedStyle,delete window.getSelection,["addEventListener","remov
eEventListener","dispatchEvent"].forEach(function(a){k.prototype[a]=function(){v
ar b=j(this||window);return b[a].apply(b,arguments)},delete window[a]}),e(b.prot
otype,{getComputedStyle:function(a,b){return g(),l.call(h(this),i(a),b)},getSele
ction:function(){return g(),new d(m.call(h(this)))}}),f(k,b),a.wrappers.Window=b
}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){var b=c[a],d=
window[b];if(d){var e=document.createElement(a),f=e.constructor;window[b]=f}}var
c=(a.isWrapperFor,{a:"HTMLAnchorElement",area:"HTMLAreaElement",audio:"HTMLAudi
oElement",base:"HTMLBaseElement",body:"HTMLBodyElement",br:"HTMLBRElement",butto
n:"HTMLButtonElement",canvas:"HTMLCanvasElement",caption:"HTMLTableCaptionElemen
t",col:"HTMLTableColElement",content:"HTMLContentElement",data:"HTMLDataElement"
,datalist:"HTMLDataListElement",del:"HTMLModElement",dir:"HTMLDirectoryElement",
div:"HTMLDivElement",dl:"HTMLDListElement",embed:"HTMLEmbedElement",fieldset:"HT
MLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",frame:"HTMLFram
eElement",frameset:"HTMLFrameSetElement",h1:"HTMLHeadingElement",head:"HTMLHeadE
lement",hr:"HTMLHRElement",html:"HTMLHtmlElement",iframe:"HTMLIFrameElement",img
:"HTMLImageElement",input:"HTMLInputElement",keygen:"HTMLKeygenElement",label:"H
TMLLabelElement",legend:"HTMLLegendElement",li:"HTMLLIElement",link:"HTMLLinkEle
ment",map:"HTMLMapElement",marquee:"HTMLMarqueeElement",menu:"HTMLMenuElement",m
enuitem:"HTMLMenuItemElement",meta:"HTMLMetaElement",meter:"HTMLMeterElement",ob
ject:"HTMLObjectElement",ol:"HTMLOListElement",optgroup:"HTMLOptGroupElement",op
tion:"HTMLOptionElement",output:"HTMLOutputElement",p:"HTMLParagraphElement",par
am:"HTMLParamElement",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTM
LQuoteElement",script:"HTMLScriptElement",select:"HTMLSelectElement",shadow:"HTM
LShadowElement",source:"HTMLSourceElement",span:"HTMLSpanElement",style:"HTMLSty
leElement",table:"HTMLTableElement",tbody:"HTMLTableSectionElement",template:"HT
MLTemplateElement",textarea:"HTMLTextAreaElement",thead:"HTMLTableSectionElement
",time:"HTMLTimeElement",title:"HTMLTitleElement",tr:"HTMLTableRowElement",track
:"HTMLTrackElement",ul:"HTMLUListElement",video:"HTMLVideoElement"});Object.keys
(c).forEach(b),Object.getOwnPropertyNames(a.wrappers).forEach(function(b){window
[b]=a.wrappers[b]})}(window.ShadowDOMPolyfill),function(){window.wrap=ShadowDOMP
olyfill.wrapIfNeeded,window.unwrap=ShadowDOMPolyfill.unwrapIfNeeded,Object.defin
eProperty(Element.prototype,"webkitShadowRoot",Object.getOwnPropertyDescriptor(E
lement.prototype,"shadowRoot"));var a=Element.prototype.createShadowRoot;Element
.prototype.createShadowRoot=function(){var b=a.call(this);return CustomElements.
watchShadow(this),b},Element.prototype.webkitCreateShadowRoot=Element.prototype.
createShadowRoot}(),function(a){function b(a,b){var c="";return Array.prototype.
forEach.call(a,function(a){c+=a.textContent+"\n\n"}),b||(c=c.replace(l,"")),c}fu
nction c(a){var b=document.createElement("style");return b.textContent=a,b}funct
ion d(a){var b=c(a);document.head.appendChild(b);var d=[];if(b.sheet)try{d=b.she
et.cssRules}catch(e){}else console.warn("sheet not found",b);return b.parentNode
.removeChild(b),d}function e(){s.initialized=!0,document.body.appendChild(s);var
a=s.contentDocument,b=a.createElement("base");b.href=document.baseURI,a.head.ap
pendChild(b)}function f(a){s.initialized||e(),document.body.appendChild(s),a(s.c
ontentDocument),document.body.removeChild(s)}function g(a,b){if(b){var e;if(a.ma
tch("@import")&&u){var g=c(a);f(function(a){a.head.appendChild(g.impl),e=g.sheet
.cssRules,b(e)})}else e=d(a),b(e)}}function h(a){a&&j().appendChild(document.cre
ateTextNode(a))}function i(a,b){var d=c(a);d.setAttribute(b,""),d.setAttribute(w
,""),document.head.appendChild(d)}function j(){return t||(t=document.createEleme
nt("style"),t.setAttribute(w,""),t[w]=!0),t}var k={strictStyling:!1,registry:{},
shimStyling:function(a,b,d,e){var f=this.isTypeExtension(d),g=this.registerDefin
ition(a,b,d);this.strictStyling&&this.applyScopeToContent(a,b);var j=this.styles
ToShimmedCssText(g.rootStyles,g.scopeStyles,b,f);g.shimmedStyle=c(j),a&&(a.shimm
edStyle=g.shimmedStyle);for(var k,l=0,m=g.rootStyles.length;m>l&&(k=g.rootStyles
[l]);l++)k.parentNode.removeChild(k);e?i(j,b):h(j)},stylesToShimmedCssText:funct
ion(a,b,c,d){c=c||"",this.insertPolyfillDirectives(a),this.insertPolyfillRules(a
);var e=this.shimScoping(b,c,d);return e+=this.extractPolyfillUnscopedRules(a),e
.trim()},registerDefinition:function(a,b,c){var d=this.registry[b]={root:a,name:
b,extendsName:c},e=a?a.querySelectorAll("style"):[];e=e?Array.prototype.slice.ca
ll(e,0):[],d.rootStyles=e,d.scopeStyles=d.rootStyles;var f=this.registry[d.exten
dsName];return!f||a&&!a.querySelector("shadow")||(d.scopeStyles=f.scopeStyles.co
ncat(d.scopeStyles)),d},isTypeExtension:function(a){return a&&a.indexOf("-")<0},
applyScopeToContent:function(a,b){a&&(Array.prototype.forEach.call(a.querySelect
orAll("*"),function(a){a.setAttribute(b,"")}),Array.prototype.forEach.call(a.que
rySelectorAll("template"),function(a){this.applyScopeToContent(a.content,b)},thi
s))},insertPolyfillDirectives:function(a){a&&Array.prototype.forEach.call(a,func
tion(a){a.textContent=this.insertPolyfillDirectivesInCssText(a.textContent)},thi
s)},insertPolyfillDirectivesInCssText:function(a){return a.replace(m,function(a,
b){return b.slice(0,-2)+"{"})},insertPolyfillRules:function(a){a&&Array.prototyp
e.forEach.call(a,function(a){a.textContent=this.insertPolyfillRulesInCssText(a.t
extContent)},this)},insertPolyfillRulesInCssText:function(a){return a.replace(n,
function(a,b){return b.slice(0,-1)})},extractPolyfillUnscopedRules:function(a){v
ar b="";return a&&Array.prototype.forEach.call(a,function(a){b+=this.extractPoly
fillUnscopedRulesFromCssText(a.textContent)+"\n\n"},this),b},extractPolyfillUnsc
opedRulesFromCssText:function(a){for(var b,c="";b=o.exec(a);)c+=b[1].slice(0,-1)
+"\n\n";return c},shimScoping:function(a,b,c){return a?this.convertScopedStyles(
a,b,c):void 0},convertScopedStyles:function(a,c,d){var e=b(a);if(e=this.insertPo
lyfillHostInCssText(e),e=this.convertColonHost(e),e=this.convertColonAncestor(e)
,e=this.convertCombinators(e),c){var e,f=this;g(e,function(a){e=f.scopeRules(a,c
,d)})}return e},convertColonHost:function(a){return this.convertColonRule(a,cssC
olonHostRe,this.colonHostPartReplacer)},convertColonAncestor:function(a){return
this.convertColonRule(a,cssColonAncestorRe,this.colonAncestorPartReplacer)},conv
ertColonRule:function(a,b,c){return a.replace(b,function(a,b,d,e){if(b=polyfillH
ostNoCombinator,d){for(var f,g=d.split(","),h=[],i=0,j=g.length;j>i&&(f=g[i]);i+
+)f=f.trim(),h.push(c(b,f,e));return h.join(",")}return b+e})},colonAncestorPart
Replacer:function(a,b,c){return b.match(p)?this.colonHostPartReplacer(a,b,c):a+b
+c+", "+b+" "+a+c},colonHostPartReplacer:function(a,b,c){return a+b.replace(p,""
)+c},convertCombinators:function(a){return a.replace(/\^\^/g," ").replace(/\^/g,
" ")},scopeRules:function(a,b,c){var d="";return a&&Array.prototype.forEach.call
(a,function(a){a.selectorText&&a.style&&a.style.cssText?(d+=this.scopeSelector(a
.selectorText,b,c,this.strictStyling)+" {\n ",d+=this.propertiesFromRule(a)+
"\n}\n\n"):a.type===CSSRule.MEDIA_RULE?(d+="@media "+a.media.mediaText+" {\n",d+
=this.scopeRules(a.cssRules,b,c),d+="\n}\n\n"):a.cssText&&(d+=a.cssText+"\n\n")}
,this),d},scopeSelector:function(a,b,c,d){var e=[],f=a.split(",");return f.forEa
ch(function(a){a=a.trim(),this.selectorNeedsScoping(a,b,c)&&(a=d&&!a.match(polyf
illHostNoCombinator)?this.applyStrictSelectorScope(a,b):this.applySimpleSelector
Scope(a,b,c)),e.push(a)},this),e.join(", ")},selectorNeedsScoping:function(a,b,c
){var d=this.makeScopeMatcher(b,c);return!a.match(d)},makeScopeMatcher:function(
a,b){var c=b?"\\[is=['\"]?"+a+"['\"]?\\]":a;return new RegExp("^("+c+")"+selecto
rReSuffix,"m")},applySimpleSelectorScope:function(a,b,c){var d=c?"[is="+b+"]":b;
return a.match(polyfillHostRe)?(a=a.replace(polyfillHostNoCombinator,d),a.replac
e(polyfillHostRe,d+" ")):d+" "+a},applyStrictSelectorScope:function(a,b){var c=[
" ",">","+","~"],d=a,e="["+b+"]";return c.forEach(function(a){var b=d.split(a);d
=b.map(function(a){var b=a.trim().replace(polyfillHostRe,"");return b&&c.indexOf
(b)<0&&b.indexOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a
)}),d},insertPolyfillHostInCssText:function(a){return a.replace(hostRe,p).replac
e(colonHostRe,p).replace(colonAncestorRe,q)},propertiesFromRule:function(a){retu
rn a.style.content&&!a.style.content.match(/['"]+/)?a.style.cssText.replace(/con
tent:[^;]*;/g,"content: '"+a.style.content+"';"):a.style.cssText}},l=/\/\*[^*]*\
*+([^/*][^*]*\*+)*\//gim,m=/\/\*\s*@polyfill ([^*]*\*+([^/*][^*]*\*+)*\/)([^{]*?
){/gim,n=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,o=/\/\*\s@polyfil
l-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,p="-shadowcsshost",q="-shadowcss
ancestor",r=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";cssColonHostRe=new
RegExp("("+p+r,"gim"),cssColonAncestorRe=new RegExp("("+q+r,"gim"),selectorReSu
ffix="([>\\s~+[.,{:][\\s\\S]*)?$",hostRe=/@host/gim,colonHostRe=/\:host/gim,colo
nAncestorRe=/\:ancestor/gim,polyfillHostNoCombinator=p+"-no-combinator",polyfill
HostRe=new RegExp(p,"gim"),polyfillAncestorRe=new RegExp(q,"gim");var s=document
.createElement("iframe");s.style.display="none";var t,u=navigator.userAgent.matc
h("Chrome"),v="shim-shadowdom",w="shim-shadowdom-css";if(window.ShadowDOMPolyfil
l){h("style { display: none !important; }\n");var x=wrap(document),y=x.querySele
ctor("head");y.insertBefore(j(),y.childNodes[0]),document.addEventListener("DOMC
ontentLoaded",function(){var b=a.urlResolver;if(window.HTMLImports&&!HTMLImports
.useNative){var c="link[rel=stylesheet]["+v+"]",d="style["+v+"]";HTMLImports.imp
orter.documentPreloadSelectors+=","+c,HTMLImports.importer.importsPreloadSelecto
rs+=","+c,HTMLImports.parser.documentSelectors=[HTMLImports.parser.documentSelec
tors,c,d].join(",");var e=HTMLImports.parser.parseGeneric;HTMLImports.parser.par
seGeneric=function(a){if(!a[w]){var c=a.__importElement||a;if(!c.hasAttribute(v)
)return void e.call(this,a);a.__resource?(c=a.ownerDocument.createElement("style
"),c.textContent=b.resolveCssText(a.__resource,a.href)):b.resolveStyle(c);var d=
[c];c.textContent=k.stylesToShimmedCssText(d,d),c.removeAttribute(v,""),c.setAtt
ribute(w,""),c[w]=!0,c.parentNode!==y&&(a.parentNode===y?y.replaceChild(c,a):y.a
ppendChild(c)),c.__importParsed=!0,this.markParsingComplete(a)}};var f=HTMLImpor
ts.parser.hasResource;HTMLImports.parser.hasResource=function(a){return"link"===
a.localName&&"stylesheet"===a.rel&&a.hasAttribute(v)?a.__resource:f.call(this,a)
}}})}a.ShadowCSS=k}(window.Platform)):!function(){window.templateContent=window.
templateContent||function(a){return a.content},window.wrap=window.unwrap=functio
n(a){return a};var a=Element.prototype.webkitCreateShadowRoot;Element.prototype.
webkitCreateShadowRoot=function(){var b=this.webkitShadowRoot,c=a.call(this);ret
urn c.olderShadowRoot=b,c.host=this,CustomElements.watchShadow(this),c},Object.d
efineProperties(Element.prototype,{shadowRoot:{get:function(){return this.webkit
ShadowRoot}},createShadowRoot:{value:function(){return this.webkitCreateShadowRo
ot()}}}),window.templateContent=function(a){if(window.HTMLTemplateElement&&HTMLT
emplateElement.bootstrap&&HTMLTemplateElement.bootstrap(a),!a.content&&!a._conte
nt){for(var b=document.createDocumentFragment();a.firstChild;)b.appendChild(a.fi
rstChild);a._content=b}return a.content||a._content}}(),function(a){"use strict"
;function b(a){return void 0!==m[a]}function c(){h.call(this),this._isInvalid=!0
}function d(a){return""==a&&c.call(this),a.toLowerCase()}function e(a){var b=a.c
harCodeAt(0);return b>32&&127>b&&-1==[34,35,60,62,63,96].indexOf(b)?a:encodeURIC
omponent(a)}function f(a){var b=a.charCodeAt(0);return b>32&&127>b&&-1==[34,35,6
0,62,96].indexOf(b)?a:encodeURIComponent(a)}function g(a,g,h){function i(a){t.pu
sh(a)}var j=g||"scheme start",k=0,l="",r=!1,s=!1,t=[];a:for(;(a[k-1]!=o||0==k)&&
!this._isInvalid;){var u=a[k];switch(j){case"scheme start":if(!u||!p.test(u)){if
(g){i("Invalid scheme.");break a}l="",j="no scheme";continue}l+=u.toLowerCase(),
j="scheme";break;case"scheme":if(u&&q.test(u))l+=u.toLowerCase();else{if(":"!=u)
{if(g){if(o==u)break a;i("Code point not allowed in scheme: "+u);break a}l="",k=
0,j="no scheme";continue}if(this._scheme=l,l="",g)break a;b(this._scheme)&&(this
._isRelative=!0),j="file"==this._scheme?"relative":this._isRelative&&h&&h._schem
e==this._scheme?"relative or authority":this._isRelative?"authority first slash"
:"scheme data"}break;case"scheme data":"?"==u?(query="?",j="query"):"#"==u?(this
._fragment="#",j="fragment"):o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._schemeDat
a+=e(u));break;case"no scheme":if(h&&b(h._scheme)){j="relative";continue}i("Miss
ing scheme."),c.call(this);break;case"relative or authority":if("/"!=u||"/"!=a[k
+1]){i("Expected /, got: "+u),j="relative";continue}j="authority ignore slashes"
;break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme
=h._scheme),o==u){this._host=h._host,this._port=h._port,this._path=h._path.slice
(),this._query=h._query;break a}if("/"==u||"\\"==u)"\\"==u&&i("\\ is an invalid
code point."),j="relative slash";else if("?"==u)this._host=h._host,this._port=h.
_port,this._path=h._path.slice(),this._query="?",j="query";else{if("#"!=u){var v
=a[k+1],w=a[k+2];("file"!=this._scheme||!p.test(u)||":"!=v&&"|"!=v||o!=w&&"/"!=w
&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=h._host,this._port=h._port,this._path=h.
_path.slice(),this._path.pop()),j="relative path";continue}this._host=h._host,th
is._port=h._port,this._path=h._path.slice(),this._query=h._query,this._fragment=
"#",j="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){"file"!=this._sc
heme&&(this._host=h._host,this._port=h._port),j="relative path";continue}"\\"==u
&&i("\\ is an invalid code point."),j="file"==this._scheme?"file host":"authorit
y ignore slashes";break;case"authority first slash":if("/"!=u){i("Expected '/',
got: "+u),j="authority ignore slashes";continue}j="authority second slash";break
;case"authority second slash":if(j="authority ignore slashes","/"!=u){i("Expecte
d '/', got: "+u);continue}break;case"authority ignore slashes":if("/"!=u&&"\\"!=
u){j="authority";continue}i("Expected authority, got: "+u);break;case"authority"
:if("@"==u){r&&(i("@ already seen."),l+="%40"),r=!0;for(var x=0;x<l.length;x++){
var y=l[x];if(" "!=y&&"\n"!=y&&"\r"!=y)if(":"!=y||null!==this._password){var z=e
(y);null!==this._password?this._password+=z:this._username+=z}else this._passwor
d="";else i("Invalid whitespace in authority.")}l=""}else{if(o==u||"/"==u||"\\"=
=u||"?"==u||"#"==u){k-=l.length,l="",j="host";continue}l+=u}break;case"file host
":if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){2!=l.length||!p.test(l[0])||":"!=l[1
]&&"|"!=l[1]?0==l.length?j="relative path start":(this._host=d.call(this,l),l=""
,j="relative path start"):j="relative path";continue}" "==u||"\n"==u||"\r"==u?i
("Invalid whitespace in file host."):l+=u;break;case"host":case"hostname":if(":"
!=u||s){if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this._host=d.call(this,l),l
="",j="relative path start",g)break a;continue}" "!=u&&"\n"!=u&&"\r"!=u?(
"["==u?s=!0:"]"==u&&(s=!1),l+=u):i("Invalid code point in host/hostname: "+u)}el
se if(this._host=d.call(this,l),l="",j="port","hostname"==g)break a;break;case"p
ort":if(/[0-9]/.test(u))l+=u;else{if(o==u||"/"==u||"\\"==u||"?"==u||"#"==u||g){i
f(""!=l){var A=parseInt(l,10);A!=m[this._scheme]&&(this._port=A+""),l=""}if(g)br
eak a;j="relative path start";continue}" "==u||"\n"==u||"\r"==u?i("Invali
d code point in port: "+u):c.call(this)}break;case"relative path start":if("\\"=
=u&&i("'\\' not allowed in path."),j="relative path","/"!=u&&"\\"!=u)continue;br
eak;case"relative path":if(o!=u&&"/"!=u&&"\\"!=u&&(g||"?"!=u&&"#"!=u))" "!=u&&"\
n"!=u&&"\r"!=u&&(l+=e(u));else{"\\"==u&&i("\\ not allowed in relative path.");va
r B;(B=n[l.toLowerCase()])&&(l=B),".."==l?(this._path.pop(),"/"!=u&&"\\"!=u&&thi
s._path.push("")):"."==l&&"/"!=u&&"\\"!=u?this._path.push(""):"."!=l&&("file"==t
his._scheme&&0==this._path.length&&2==l.length&&p.test(l[0])&&"|"==l[1]&&(l=l[0]
+":"),this._path.push(l)),l="","?"==u?(this._query="?",j="query"):"#"==u&&(this.
_fragment="#",j="fragment")}break;case"query":g||"#"!=u?o!=u&&" "!=u&&"\n"!=u&&"
\r"!=u&&(this._query+=f(u)):(this._fragment="#",j="fragment");break;case"fragmen
t":o!=u&&" "!=u&&"\n"!=u&&"\r"!=u&&(this._fragment+=u)}k++}}function h(){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 i(a,b){void 0===b||b instanceof i||(b=new i(S
tring(b))),this._url=a,h.call(this);var c=a.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$
/g,"");g.call(this,c,null,b)}var j=!1;if(!a.forceJURL)try{var k=new URL("b","htt
p://a");j="http://a/b"===k.href}catch(l){}if(!j){var m=Object.create(null);m.ftp
=21,m.file=0,m.gopher=70,m.http=80,m.https=443,m.ws=80,m.wss=443;var n=Object.cr
eate(null);n["%2e"]=".",n[".%2e"]="..",n["%2e."]="..",n["%2e%2e"]="..";var o=voi
d 0,p=/[a-zA-Z]/,q=/[a-zA-Z0-9\+\-\.]/;i.prototype={get href(){if(this._isInvali
d)return this._url;var a="";return(""!=this._username||null!=this._password)&&(a
=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+
(this._isRelative?"//"+a+this.host:"")+this.pathname+this._query+this._fragment}
,set href(a){h.call(this),g.call(this,a)},get protocol(){return this._scheme+":"
},set protocol(a){this._isInvalid||g.call(this,a+":","scheme start")},get host()
{return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set
host(a){!this._isInvalid&&this._isRelative&&g.call(this,a,"host")},get hostname(
){return this._host},set hostname(a){!this._isInvalid&&this._isRelative&&g.call(
this,a,"hostname")},get port(){return this._port},set port(a){!this._isInvalid&&
this._isRelative&&g.call(this,a,"port")},get pathname(){return this._isInvalid?"
":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(a){!t
his._isInvalid&&this._isRelative&&(this._path=[],g.call(this,a,"relative path st
art"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":t
his._query},set search(a){!this._isInvalid&&this._isRelative&&(this._query="?","
?"==a[0]&&(a=a.slice(1)),g.call(this,a,"query"))},get hash(){return this._isInva
lid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(a){this._i
sInvalid||(this._fragment="#","#"==a[0]&&(a=a.slice(1)),g.call(this,a,"fragment"
))}},a.URL=i}}(window),function(a){function b(a){for(var b=a||{},d=1;d<arguments
.length;d++){var e=arguments[d];try{for(var f in e)c(f,e,b)}catch(g){}}return b}
function c(a,b,c){var e=d(b,a);Object.defineProperty(c,a,e)}function d(a,b){if(a
){var c=Object.getOwnPropertyDescriptor(a,b);return c||d(Object.getPrototypeOf(a
),b)}}Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c
=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();retur
n d.push.apply(d,arguments),b.apply(a,d)}}),a.mixin=b}(window.Platform),function
(a){"use strict";function b(a,b,c){var d="string"==typeof a?document.createEleme
nt(a):a.cloneNode(!0);if(d.innerHTML=b,c)for(var e in c)d.setAttribute(e,c[e]);r
eturn d}var c=DOMTokenList.prototype.add,d=DOMTokenList.prototype.remove;DOMToke
nList.prototype.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,ar
guments[a])},DOMTokenList.prototype.remove=function(){for(var a=0;a<arguments.le
ngth;a++)d.call(this,arguments[a])},DOMTokenList.prototype.toggle=function(a,b){
1==arguments.length&&(b=!this.contains(a)),b?this.add(a):this.remove(a)},DOMToke
nList.prototype.switch=function(a,b){a&&this.remove(a),b&&this.add(b)};var e=fun
ction(){return Array.prototype.slice.call(this)},f=window.NamedNodeMap||window.M
ozNamedAttrMap||{};if(NodeList.prototype.array=e,f.prototype.array=e,HTMLCollect
ion.prototype.array=e,!window.performance){var g=Date.now();window.performance={
now:function(){return Date.now()-g}}}window.requestAnimationFrame||(window.reque
stAnimationFrame=function(){var a=window.webkitRequestAnimationFrame||window.moz
RequestAnimationFrame;return a?function(b){return a(function(){b(performance.now
())})}:function(a){return window.setTimeout(a,1e3/60)}}()),window.cancelAnimatio
nFrame||(window.cancelAnimationFrame=function(){return window.webkitCancelAnimat
ionFrame||window.mozCancelAnimationFrame||function(a){clearTimeout(a)}}());var h
=[],i=function(){h.push(arguments)};window.Polymer=i,a.deliverDeclarations=funct
ion(){return a.deliverDeclarations=function(){throw"Possible attempt to load Pol
ymer twice"},h},window.addEventListener("DOMContentLoaded",function(){window.Pol
ymer===i&&(window.Polymer=function(){console.error('You tried to use polymer wit
hout loading it first. To load polymer, <link rel="import" href="components/poly
mer/polymer.html">')})}),a.createDOM=b}(window.Platform),window.templateContent=
window.templateContent||function(a){return a.content},function(a){a=a||(window.I
nspector={});var b;window.sinspect=function(a,d){b||(b=window.open("","ShadowDOM
Inspector",null,!0),b.document.write(c),b.api={shadowize:shadowize}),f(a||wrap(
document.body),d)};var c=["<!DOCTYPE html>","<html>"," <head>"," <title>Shad
owDOM Inspector</title>"," <style>"," body {"," }"," pre {",'
font: 9pt "Courier New", monospace;'," line-height: 1.5em;","
}"," tag {"," color: purple;"," }"," ul {"," marg
in: 0;"," padding: 0;"," list-style: none;"," }"," li
{"," display: inline-block;"," background-color: #f1f1f1;","
padding: 4px 6px;"," border-radius: 4px;"," margin-right: 4
px;"," }"," </style>"," </head>"," <body>",' <ul id="crumbs">',"
</ul>",' <div id="tree"></div>'," </body>","</html>"].join("\n"),d=[],e=fun
ction(){var a=b.document,c=a.querySelector("#crumbs");c.textContent="";for(var e
,g=0;e=d[g];g++){var h=a.createElement("a");h.href="#",h.textContent=e.localName
,h.idx=g,h.onclick=function(a){for(var b;d.length>this.idx;)b=d.pop();f(b.shadow
||b,b),a.preventDefault()},c.appendChild(a.createElement("li")).appendChild(h)}}
,f=function(a,c){var f=b.document;k=[];var g=c||a;d.push(g),e(),f.body.querySele
ctor("#tree").innerHTML="<pre>"+j(a,a.childNodes)+"</pre>"},g=Array.prototype.fo
rEach.call.bind(Array.prototype.forEach),h={STYLE:1,SCRIPT:1,"#comment":1,TEMPLA
TE:1},i=function(a){return h[a.nodeName]},j=function(a,b,c){if(i(a))return"";var
d=c||"";if(a.localName||11==a.nodeType){var e=a.localName||"shadow-root",f=d+l(
a);"content"==e&&(b=a.getDistributedNodes()),f+="<br/>";var h=d+" ";g
(b,function(a){f+=j(a,a.childNodes,h)}),f+=d,{br:1}[e]||(f+="<tag></"+e+">
</tag>",f+="<br/>")}else{var k=a.textContent.trim();f=k?d+'"'+k+'"<br/>':""}retu
rn f},k=[],l=function(a){var b="<tag><",c=a.localName||"shadow-root";return a
.webkitShadowRoot||a.shadowRoot?(b+=' <button idx="'+k.length+'" onclick="api.sh
adowize.call(this)">'+c+"</button>",k.push(a)):b+=c||"shadow-root",a.attributes&
&g(a.attributes,function(a){b+=" "+a.name+(a.value?'="'+a.value+'"':"")}),b+="&g
t;</tag>"};shadowize=function(){var a=Number(this.attributes.idx.value),b=k[a];b
?f(b.webkitShadowRoot||b.shadowRoot,b):(console.log("bad shadowize node"),consol
e.dir(this))},a.output=j}(window.Inspector),function(){var a=document.createElem
ent("style");a.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unr
esolved] {opacity: 0; display: block; overflow: hidden; } \n";var b=document.que
rySelector("head");b.insertBefore(a,b.firstChild)}(Platform),function(a){functio
n b(a,b){return b=b||[],b.map||(b=[b]),a.apply(this,b.map(d))}function c(a,c,d){
var e;switch(arguments.length){case 0:return;case 1:e=null;break;case 2:e=c.appl
y(this);break;default:e=b(d,c)}f[a]=e}function d(a){return f[a]}function e(a,c){
HTMLImports.whenImportsReady(function(){b(c,a)})}var f={};a.marshal=d,a.module=c
,a.using=e}(window),function(a){function b(a){f.textContent=d++,e.push(a)}functi
on c(){for(;e.length;)e.shift()()}var d=0,e=[],f=document.createTextNode("");new
(window.MutationObserver||JsMutationObserver)(c).observe(f,{characterData:!0}),a
.endOfMicrotask=b}(Platform),function(a){function b(a,b,d){return a.replace(d,fu
nction(a,d,e,f){var g=e.replace(/["']/g,"");return g=c(b,g),d+"'"+g+"'"+f})}func
tion c(a,b){var c=new URL(b,a);return d(c.href)}function d(a){var b=document.bas
eURI,c=new URL(a,b);return c.host===b.host&&c.port===b.port&&c.protocol===b.prot
ocol?e(b.pathname,c.pathname):a}function e(a,b){for(var c=a.split("/"),d=b.split
("/");c.length&&c[0]===d[0];)c.shift(),d.shift(); |
| 35 for(var e=0,f=c.length-1;f>e;e++)d.unshift("..");return d.join("/")}var f={resol
veDom:function(a,b){b=b||a.ownerDocument.baseURI,this.resolveAttributes(a,b),thi
s.resolveStyles(a,b);var c=a.querySelectorAll("template");if(c)for(var d,e=0,f=c
.length;f>e&&(d=c[e]);e++)d.content&&this.resolveDom(d.content,b)},resolveTempla
te:function(a){this.resolveDom(a.content,a.ownerDocument.baseURI)},resolveStyles
:function(a,b){var c=a.querySelectorAll("style");if(c)for(var d,e=0,f=c.length;f
>e&&(d=c[e]);e++)this.resolveStyle(d,b)},resolveStyle:function(a,b){b=b||a.owner
Document.baseURI,a.textContent=this.resolveCssText(a.textContent,b)},resolveCssT
ext:function(a,c){return a=b(a,c,g),b(a,c,h)},resolveAttributes:function(a,b){a.
hasAttributes&&a.hasAttributes()&&this.resolveElementAttributes(a,b);var c=a&&a.
querySelectorAll(j);if(c)for(var d,e=0,f=c.length;f>e&&(d=c[e]);e++)this.resolve
ElementAttributes(d,b)},resolveElementAttributes:function(a,b){b=b||a.ownerDocum
ent.baseURI,i.forEach(function(d){var e=a.attributes[d];if(e&&e.value&&e.value.s
earch(k)<0){var f=c(b,e.value);e.value=f}})}},g=/(url\()([^)]*)(\))/g,h=/(@impor
t[\s]+(?!url\())([^;]*)(;)/g,i=["href","src","action"],j="["+i.join("],[")+"]",k
="{{.*}}";a.urlResolver=f}(Platform),function(a){function b(a){u.push(a),t||(t=!
0,q(d))}function c(a){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.
wrapIfNeeded(a)||a}function d(){t=!1;var a=u;u=[],a.sort(function(a,b){return a.
uid_-b.uid_});var b=!1;a.forEach(function(a){var c=a.takeRecords();e(a),c.length
&&(a.callback_(c,a),b=!0)}),b&&d()}function e(a){a.nodes_.forEach(function(b){va
r c=p.get(b);c&&c.forEach(function(b){b.observer===a&&b.removeTransientObservers
()})})}function f(a,b){for(var c=a;c;c=c.parentNode){var d=p.get(c);if(d)for(var
e=0;e<d.length;e++){var f=d[e],g=f.options;if(c===a||g.subtree){var h=b(g);h&&f
.enqueue(h)}}}}function g(a){this.callback_=a,this.nodes_=[],this.records_=[],th
is.uid_=++v}function h(a,b){this.type=a,this.target=b,this.addedNodes=[],this.re
movedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName
=null,this.attributeNamespace=null,this.oldValue=null}function i(a){var b=new h(
a.type,a.target);return b.addedNodes=a.addedNodes.slice(),b.removedNodes=a.remov
edNodes.slice(),b.previousSibling=a.previousSibling,b.nextSibling=a.nextSibling,
b.attributeName=a.attributeName,b.attributeNamespace=a.attributeNamespace,b.oldV
alue=a.oldValue,b}function j(a,b){return w=new h(a,b)}function k(a){return x?x:(
x=i(w),x.oldValue=a,x)}function l(){w=x=void 0}function m(a){return a===x||a===w
}function n(a,b){return a===b?a:x&&m(a)?x:null}function o(a,b,c){this.observer=a
,this.target=b,this.options=c,this.transientObservedNodes=[]}var p=new WeakMap,q
=window.msSetImmediate;if(!q){var r=[],s=String(Math.random());window.addEventLi
stener("message",function(a){if(a.data===s){var b=r;r=[],b.forEach(function(a){a
()})}}),q=function(a){r.push(a),window.postMessage(s,"*")}}var t=!1,u=[],v=0;g.p
rototype={observe:function(a,b){if(a=c(a),!b.childList&&!b.attributes&&!b.charac
terData||b.attributeOldValue&&!b.attributes||b.attributeFilter&&b.attributeFilte
r.length&&!b.attributes||b.characterDataOldValue&&!b.characterData)throw new Syn
taxError;var d=p.get(a);d||p.set(a,d=[]);for(var e,f=0;f<d.length;f++)if(d[f].ob
server===this){e=d[f],e.removeListeners(),e.options=b;break}e||(e=new o(this,a,b
),d.push(e),this.nodes_.push(a)),e.addListeners()},disconnect:function(){this.no
des_.forEach(function(a){for(var b=p.get(a),c=0;c<b.length;c++){var d=b[c];if(d.
observer===this){d.removeListeners(),b.splice(c,1);break}}},this),this.records_=
[]},takeRecords:function(){var a=this.records_;return this.records_=[],a}};var w
,x;o.prototype={enqueue:function(a){var c=this.observer.records_,d=c.length;if(c
.length>0){var e=c[d-1],f=n(e,a);if(f)return void(c[d-1]=f)}else b(this.observer
);c[d]=a},addListeners:function(){this.addListeners_(this.target)},addListeners_
:function(a){var b=this.options;b.attributes&&a.addEventListener("DOMAttrModifie
d",this,!0),b.characterData&&a.addEventListener("DOMCharacterDataModified",this,
!0),b.childList&&a.addEventListener("DOMNodeInserted",this,!0),(b.childList||b.s
ubtree)&&a.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(
){this.removeListeners_(this.target)},removeListeners_:function(a){var b=this.op
tions;b.attributes&&a.removeEventListener("DOMAttrModified",this,!0),b.character
Data&&a.removeEventListener("DOMCharacterDataModified",this,!0),b.childList&&a.r
emoveEventListener("DOMNodeInserted",this,!0),(b.childList||b.subtree)&&a.remove
EventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(a){if(a!=
=this.target){this.addListeners_(a),this.transientObservedNodes.push(a);var b=p.
get(a);b||p.set(a,b=[]),b.push(this)}},removeTransientObservers:function(){var a
=this.transientObservedNodes;this.transientObservedNodes=[],a.forEach(function(a
){this.removeListeners_(a);for(var b=p.get(a),c=0;c<b.length;c++)if(b[c]===this)
{b.splice(c,1);break}},this)},handleEvent:function(a){switch(a.stopImmediateProp
agation(),a.type){case"DOMAttrModified":var b=a.attrName,c=a.relatedNode.namespa
ceURI,d=a.target,e=new j("attributes",d);e.attributeName=b,e.attributeNamespace=
c;var g=a.attrChange===MutationEvent.ADDITION?null:a.prevValue;f(d,function(a){r
eturn!a.attributes||a.attributeFilter&&a.attributeFilter.length&&-1===a.attribut
eFilter.indexOf(b)&&-1===a.attributeFilter.indexOf(c)?void 0:a.attributeOldValue
?k(g):e});break;case"DOMCharacterDataModified":var d=a.target,e=j("characterData
",d),g=a.prevValue;f(d,function(a){return a.characterData?a.characterDataOldValu
e?k(g):e:void 0});break;case"DOMNodeRemoved":this.addTransientObserver(a.target)
;case"DOMNodeInserted":var h,i,d=a.relatedNode,m=a.target;"DOMNodeInserted"===a.
type?(h=[m],i=[]):(h=[],i=[m]);var n=m.previousSibling,o=m.nextSibling,e=j("chil
dList",d);e.addedNodes=h,e.removedNodes=i,e.previousSibling=n,e.nextSibling=o,f(
d,function(a){return a.childList?e:void 0})}l()}},a.JsMutationObserver=g,a.Mutat
ionObserver||(a.MutationObserver=g)}(this),window.HTMLImports=window.HTMLImports
||{flags:{}},function(a){var b=(a.path,a.xhr),c=a.flags,d=function(a,b){this.cac
he={},this.onload=a,this.oncomplete=b,this.inflight=0,this.pending={}};d.prototy
pe={addNodes:function(a){this.inflight+=a.length;for(var b,c=0,d=a.length;d>c&&(
b=a[c]);c++)this.require(b);this.checkDone()},addNode:function(a){this.inflight+
+,this.require(a),this.checkDone()},require:function(a){var b=a.src||a.href;a.__
nodeUrl=b,this.dedupe(b,a)||this.fetch(b,a)},dedupe:function(a,b){if(this.pendin
g[a])return this.pending[a].push(b),!0;return this.cache[a]?(this.onload(a,b,thi
s.cache[a]),this.tail(),!0):(this.pending[a]=[b],!1)},fetch:function(a,d){c.load
&&console.log("fetch",a,d);var e=function(b,c){this.receive(a,d,b,c)}.bind(this)
;b.load(a,e)},receive:function(a,b,c,d){this.cache[a]=d;for(var e,f=this.pending
[a],g=0,h=f.length;h>g&&(e=f[g]);g++)this.onload(a,e,d),this.tail();this.pending
[a]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function()
{this.inflight||this.oncomplete()}},b=b||{async:!0,ok:function(a){return a.statu
s>=200&&a.status<300||304===a.status||0===a.status},load:function(c,d,e){var f=n
ew XMLHttpRequest;return(a.flags.debug||a.flags.bust)&&(c+="?"+Math.random()),f.
open("GET",c,b.async),f.addEventListener("readystatechange",function(){4===f.rea
dyState&&d.call(e,!b.ok(f)&&f,f.response||f.responseText,c)}),f.send(),f},loadDo
cument:function(a,b,c){this.load(a,b,c).responseType="document"}},a.xhr=b,a.Load
er=d}(window.HTMLImports),function(a){function b(a){return"link"===a.localName&&
a.rel===g}function c(a){var b=d(a);return"data:text/javascript;base64,"+btoa(b)}
function d(a){return a.textContent+e(a)}function e(a){var b=a.__nodeUrl;if(!b){b
=a.ownerDocument.baseURI;var c="["+Math.floor(1e3*(Math.random()+1))+"]",d=a.tex
tContent.match(/Polymer\(['"]([^'"]*)/);c=d&&d[1]||c,b+="/"+c+".js"}return"\n//#
sourceURL="+b+"\n"}function f(a){var b=a.ownerDocument.createElement("style");r
eturn b.textContent=a.textContent,n.resolveUrlsInStyle(b),b}var g="import",h=a.f
lags,i=/Trident/.test(navigator.userAgent),j=window.ShadowDOMPolyfill?window.Sha
dowDOMPolyfill.wrapIfNeeded(document):document,k={documentSelectors:"link[rel="+
g+"]",importsSelectors:["link[rel="+g+"]","link[rel=stylesheet]","style","script
:not([type])",'script[type="text/javascript"]'].join(","),map:{link:"parseLink",
script:"parseScript",style:"parseStyle"},parseNext:function(){var a=this.nextToP
arse();a&&this.parse(a)},parse:function(a){if(this.isParsed(a))return void(h.par
se&&console.log("[%s] is already parsed",a.localName));var b=this[this.map[a.loc
alName]];b&&(this.markParsing(a),b.call(this,a))},markParsing:function(a){h.pars
e&&console.log("parsing",a),this.parsingElement=a},markParsingComplete:function(
a){a.__importParsed=!0,a.__importElement&&(a.__importElement.__importParsed=!0),
this.parsingElement=null,h.parse&&console.log("completed",a),this.parseNext()},p
arseImport:function(a){if(a.import.__importParsed=!0,HTMLImports.__importsParsin
gHook&&HTMLImports.__importsParsingHook(a),a.dispatchEvent(a.__resource?new Cust
omEvent("load",{bubbles:!1}):new CustomEvent("error",{bubbles:!1})),a.__pending)
for(var b;a.__pending.length;)b=a.__pending.shift(),b&&b({target:a});this.markPa
rsingComplete(a)},parseLink:function(a){b(a)?this.parseImport(a):(a.href=a.href,
this.parseGeneric(a))},parseStyle:function(a){var b=a;a=f(a),a.__importElement=b
,this.parseGeneric(a)},parseGeneric:function(a){this.trackElement(a),document.he
ad.appendChild(a)},trackElement:function(a,b){var c=this,d=function(d){b&&b(d),c
.markParsingComplete(a)};if(a.addEventListener("load",d),a.addEventListener("err
or",d),i&&"style"===a.localName){var e=!1;if(-1==a.textContent.indexOf("@import"
))e=!0;else if(a.sheet){e=!0;for(var f,g=a.sheet.cssRules,h=g?g.length:0,j=0;h>j
&&(f=g[j]);j++)f.type===CSSRule.IMPORT_RULE&&(e=e&&Boolean(f.styleSheet))}e&&a.d
ispatchEvent(new CustomEvent("load",{bubbles:!1}))}},parseScript:function(b){var
d=document.createElement("script");d.__importElement=b,d.src=b.src?b.src:c(b),a
.currentScript=b,this.trackElement(d,function(){d.parentNode.removeChild(d),a.cu
rrentScript=null}),document.head.appendChild(d)},nextToParse:function(){return!t
his.parsingElement&&this.nextToParseInDoc(j)},nextToParseInDoc:function(a,c){for
(var d,e=a.querySelectorAll(this.parseSelectorsForNode(a)),f=0,g=e.length;g>f&&(
d=e[f]);f++)if(!this.isParsed(d))return this.hasResource(d)?b(d)?this.nextToPars
eInDoc(d.import,d):d:void 0;return c},parseSelectorsForNode:function(a){var b=a.
ownerDocument||a;return b===j?this.documentSelectors:this.importsSelectors},isPa
rsed:function(a){return a.__importParsed},hasResource:function(a){return b(a)&&!
a.import?!1:!0}},l=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,
n={resolveUrlsInStyle:function(a){var b=a.ownerDocument,c=b.createElement("a");r
eturn a.textContent=this.resolveUrlsInCssText(a.textContent,c),a},resolveUrlsInC
ssText:function(a,b){var c=this.replaceUrls(a,b,l);return c=this.replaceUrls(c,b
,m)},replaceUrls:function(a,b,c){return a.replace(c,function(a,c,d,e){var f=d.re
place(/["']/g,"");return b.href=f,f=b.href,c+"'"+f+"'"+e})}};a.parser=k,a.path=n
,a.isIE=i}(HTMLImports),function(a){function b(a){return c(a,m)}function c(a,b){
return"link"===a.localName&&a.getAttribute("rel")===b}function d(a,b){var c=a;c
instanceof Document||(c=document.implementation.createHTMLDocument(m)),c._URL=b;
var d=c.createElement("base");d.setAttribute("href",b),c.baseURI||(c.baseURI=b);
var e=c.createElement("meta");return e.setAttribute("charset","utf-8"),c.head.ap
pendChild(e),c.head.appendChild(d),a instanceof Document||(c.body.innerHTML=a),w
indow.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bo
otstrap(c),c}function e(a,b){b=b||n,g(function(){h(a,b)},b)}function f(a){return
"complete"===a.readyState||a.readyState===u}function g(a,b){if(f(b))a&&a();else{
var c=function(){("complete"===b.readyState||b.readyState===u)&&(b.removeEventLi
stener(v,c),g(a,b))};b.addEventListener(v,c)}}function h(a,b){function c(){f==g&
&requestAnimationFrame(a)}function d(){f++,c()}var e=b.querySelectorAll("link[re
l=import]"),f=0,g=e.length;if(g)for(var h,j=0;g>j&&(h=e[j]);j++)i(h)?d.call(h):(
h.addEventListener("load",d),h.addEventListener("error",d));else c()}function i(
a){return k?a.import&&"loading"!==a.import.readyState:a.__importParsed}var j="im
port"in document.createElement("link"),k=j,l=a.flags,m="import",n=window.ShadowD
OMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(document):document;if(k)var o={};else
var p=(a.xhr,a.Loader),q=a.parser,o={documents:{},documentPreloadSelectors:"link
[rel="+m+"]",importsPreloadSelectors:["link[rel="+m+"]"].join(","),loadNode:func
tion(a){r.addNode(a)},loadSubtree:function(a){var b=this.marshalNodes(a);r.addNo
des(b)},marshalNodes:function(a){return a.querySelectorAll(this.loadSelectorsFor
Node(a))},loadSelectorsForNode:function(a){var b=a.ownerDocument||a;return b===n
?this.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(a,c
,e){if(l.load&&console.log("loaded",a,c),c.__resource=e,b(c)){var f=this.documen
ts[a];f||(f=d(e,a),f.__importLink=c,this.bootDocument(f),this.documents[a]=f),c.
import=f}q.parseNext()},bootDocument:function(a){this.loadSubtree(a),this.observ
e(a),q.parseNext()},loadedAll:function(){q.parseNext()}},r=new p(o.loaded.bind(o
),o.loadedAll.bind(o));var s={get:function(){return HTMLImports.currentScript||d
ocument.currentScript},configurable:!0};if(Object.defineProperty(document,"_curr
entScript",s),Object.defineProperty(n,"_currentScript",s),!document.baseURI){var
t={get:function(){return window.location.href},configurable:!0};Object.definePr
operty(document,"baseURI",t),Object.defineProperty(n,"baseURI",t)}var u=HTMLImpo
rts.isIE?"complete":"interactive",v="readystatechange";a.hasNative=j,a.useNative
=k,a.importer=o,a.whenImportsReady=e,a.IMPORT_LINK_TYPE=m,a.isImportLoaded=i,a.i
mportLoader=r}(window.HTMLImports),function(a){function b(a){for(var b,d=0,e=a.l
ength;e>d&&(b=a[d]);d++)"childList"===b.type&&b.addedNodes.length&&c(b.addedNode
s)}function c(a){for(var b,e=0,g=a.length;g>e&&(b=a[e]);e++)d(b)&&f.loadNode(b),
b.children&&b.children.length&&c(b.children)}function d(a){return 1===a.nodeType
&&g.call(a,f.loadSelectorsForNode(a))}function e(a){h.observe(a,{childList:!0,su
btree:!0})}var f=(a.IMPORT_LINK_TYPE,a.importer),g=HTMLElement.prototype.matches
||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSele
ctor||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesS
elector,h=new MutationObserver(b);a.observe=e,f.observe=e}(HTMLImports),function
(){function a(){HTMLImports.importer.bootDocument(b)}"function"!=typeof window.C
ustomEvent&&(window.CustomEvent=function(a,b){var c=document.createEvent("HTMLEv
ents");return c.initEvent(a,b.bubbles===!1?!1:!0,b.cancelable===!1?!1:!0,b.detai
l),c});var b=window.ShadowDOMPolyfill?window.ShadowDOMPolyfill.wrapIfNeeded(docu
ment):document;HTMLImports.whenImportsReady(function(){HTMLImports.ready=!0,HTML
Imports.readyTime=(new Date).getTime(),b.dispatchEvent(new CustomEvent("HTMLImpo
rtsLoaded",{bubbles:!0}))}),HTMLImports.useNative||("complete"===document.readyS
tate||"interactive"===document.readyState&&!window.attachEvent?a():document.addE
ventListener("DOMContentLoaded",a))}(),window.CustomElements=window.CustomElemen
ts||{flags:{}},function(a){function b(a,c,d){var e=a.firstElementChild;if(!e)for
(e=a.firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;for(;e;)c(e,d
)!==!0&&b(e,c,d),e=e.nextElementSibling;return null}function c(a,b){for(var c=a.
shadowRoot;c;)d(c,b),c=c.olderShadowRoot}function d(a,d){b(a,function(a){return
d(a)?!0:void c(a,d)}),c(a,d)}function e(a){return h(a)?(i(a),!0):void l(a)}funct
ion f(a){d(a,function(a){return e(a)?!0:void 0})}function g(a){return e(a)||f(a)
}function h(b){if(!b.__upgraded__&&b.nodeType===Node.ELEMENT_NODE){var c=b.getAt
tribute("is")||b.localName,d=a.registry[c];if(d)return A.dom&&console.group("upg
rade:",b.localName),a.upgrade(b),A.dom&&console.groupEnd(),!0}}function i(a){l(a
),r(a)&&d(a,function(a){l(a)})}function j(a){if(E.push(a),!D){D=!0;var b=window.
Platform&&window.Platform.endOfMicrotask||setTimeout;b(k)}}function k(){D=!1;for
(var a,b=E,c=0,d=b.length;d>c&&(a=b[c]);c++)a();E=[]}function l(a){C?j(function(
){m(a)}):m(a)}function m(a){(a.attachedCallback||a.detachedCallback||a.__upgrade
d__&&A.dom)&&(A.dom&&console.group("inserted:",a.localName),r(a)&&(a.__inserted=
(a.__inserted||0)+1,a.__inserted<1&&(a.__inserted=1),a.__inserted>1?A.dom&&conso
le.warn("inserted:",a.localName,"insert/remove count:",a.__inserted):a.attachedC
allback&&(A.dom&&console.log("inserted:",a.localName),a.attachedCallback())),A.d
om&&console.groupEnd())}function n(a){o(a),d(a,function(a){o(a)})}function o(a){
C?j(function(){p(a)}):p(a)}function p(a){(a.attachedCallback||a.detachedCallback
||a.__upgraded__&&A.dom)&&(A.dom&&console.group("removed:",a.localName),r(a)||(a
.__inserted=(a.__inserted||0)-1,a.__inserted>0&&(a.__inserted=0),a.__inserted<0?
A.dom&&console.warn("removed:",a.localName,"insert/remove count:",a.__inserted):
a.detachedCallback&&a.detachedCallback()),A.dom&&console.groupEnd())}function q(
a){return window.ShadowDOMPolyfill?ShadowDOMPolyfill.wrapIfNeeded(a):a}function
r(a){for(var b=a,c=q(document);b;){if(b==c)return!0;b=b.parentNode||b.host}}func
tion s(a){if(a.shadowRoot&&!a.shadowRoot.__watched){A.dom&&console.log("watching
shadow-root for: ",a.localName);for(var b=a.shadowRoot;b;)t(b),b=b.olderShadowR
oot}}function t(a){a.__watched||(w(a),a.__watched=!0)}function u(a){if(A.dom){va
r b=a[0];if(b&&"childList"===b.type&&b.addedNodes&&b.addedNodes){for(var c=b.add
edNodes[0];c&&c!==document&&!c.host;)c=c.parentNode;var d=c&&(c.URL||c._URL||c.h
ost&&c.host.localName)||"";d=d.split("/?").shift().split("/").pop()}console.grou
p("mutations (%d) [%s]",a.length,d||"")}a.forEach(function(a){"childList"===a.ty
pe&&(G(a.addedNodes,function(a){a.localName&&g(a)}),G(a.removedNodes,function(a)
{a.localName&&n(a)}))}),A.dom&&console.groupEnd()}function v(){u(F.takeRecords()
),k()}function w(a){F.observe(a,{childList:!0,subtree:!0})}function x(a){w(a)}fu
nction y(a){A.dom&&console.group("upgradeDocument: ",a.baseURI.split("/").pop())
,g(a),A.dom&&console.groupEnd()}function z(a){a=q(a);for(var b,c=a.querySelector
All("link[rel="+B+"]"),d=0,e=c.length;e>d&&(b=c[d]);d++)b.import&&b.import.__par
sed&&z(b.import);y(a)}var A=window.logFlags||{},B=window.HTMLImports?HTMLImports
.IMPORT_LINK_TYPE:"none",C=!window.MutationObserver||window.MutationObserver===w
indow.JsMutationObserver;a.hasPolyfillMutations=C;var D=!1,E=[],F=new MutationOb
server(u),G=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.IMPORT_
LINK_TYPE=B,a.watchShadow=s,a.upgradeDocumentTree=z,a.upgradeAll=g,a.upgradeSubt
ree=f,a.insertedNode=i,a.observeDocument=x,a.upgradeDocument=y,a.takeRecords=v}(
window.CustomElements),function(a){function b(b,f){var g=f||{};if(!b)throw new E
rror("document.registerElement: first argument `name` must not be empty");if(b.i
ndexOf("-")<0)throw new Error("document.registerElement: first argument ('name')
must contain a dash ('-'). Argument provided was '"+String(b)+"'.");if(m(b))thr
ow new Error("DuplicateDefinitionError: a type with name '"+String(b)+"' is alre
ady registered");if(!g.prototype)throw new Error("Options missing required proto
type property");return g.__name=b.toLowerCase(),g.lifecycle=g.lifecycle||{},g.an
cestry=c(g.extends),d(g),e(g),k(g.prototype),n(g.__name,g),g.ctor=o(g),g.ctor.pr
ototype=g.prototype,g.prototype.constructor=g.ctor,a.ready&&a.upgradeDocumentTre
e(document),g.ctor}function c(a){var b=m(a);return b?c(b.extends).concat([b]):[]
}function d(a){for(var b,c=a.extends,d=0;b=a.ancestry[d];d++)c=b.is&&b.tag;a.tag
=c||a.__name,c&&(a.is=a.__name)}function e(a){if(!Object.__proto__){var b=HTMLEl
ement.prototype;if(a.is){var c=document.createElement(a.tag);b=Object.getPrototy
peOf(c)}for(var d,e=a.prototype;e&&e!==b;){var d=Object.getPrototypeOf(e);e.__pr
oto__=d,e=d}}a.native=b}function f(a){return g(z(a.tag),a)}function g(b,c){retur
n c.is&&b.setAttribute("is",c.is),b.removeAttribute("unresolved"),h(b,c),b.__upg
raded__=!0,j(b),a.insertedNode(b),a.upgradeSubtree(b),b}function h(a,b){Object._
_proto__?a.__proto__=b.prototype:(i(a,b.prototype,b.native),a.__proto__=b.protot
ype)}function i(a,b,c){for(var d={},e=b;e!==c&&e!==HTMLElement.prototype;){for(v
ar f,g=Object.getOwnPropertyNames(e),h=0;f=g[h];h++)d[f]||(Object.defineProperty
(a,f,Object.getOwnPropertyDescriptor(e,f)),d[f]=1);e=Object.getPrototypeOf(e)}}f
unction j(a){a.createdCallback&&a.createdCallback()}function k(a){if(!a.setAttri
bute._polyfilled){var b=a.setAttribute;a.setAttribute=function(a,c){l.call(this,
a,c,b)};var c=a.removeAttribute;a.removeAttribute=function(a){l.call(this,a,null
,c)},a.setAttribute._polyfilled=!0}}function l(a,b,c){var d=this.getAttribute(a)
;c.apply(this,arguments);var e=this.getAttribute(a);this.attributeChangedCallbac
k&&e!==d&&this.attributeChangedCallback(a,d,e)}function m(a){return a?x[a.toLowe
rCase()]:void 0}function n(a,b){x[a]=b}function o(a){return function(){return f(
a)}}function p(a,b,c){return a===y?q(b,c):A(a,b)}function q(a,b){var c=m(b||a);i
f(c){if(a==c.tag&&b==c.is)return new c.ctor;if(!b&&!c.is)return new c.ctor}if(b)
{var d=q(a);return d.setAttribute("is",b),d}var d=z(a);return a.indexOf("-")>=0&
&h(d,HTMLElement),d}function r(a){if(!a.__upgraded__&&a.nodeType===Node.ELEMENT_
NODE){var b=a.getAttribute("is"),c=m(b||a.localName);if(c){if(b&&c.tag==a.localN
ame)return g(a,c);if(!b&&!c.extends)return g(a,c)}}}function s(b){var c=B.call(t
his,b);return a.upgradeAll(c),c}a||(a=window.CustomElements={flags:{}});var t=a.
flags,u=Boolean(document.registerElement),v=!t.register&&u&&!window.ShadowDOMPol
yfill;if(v){var w=function(){};a.registry={},a.upgradeElement=w,a.watchShadow=w,
a.upgrade=w,a.upgradeAll=w,a.upgradeSubtree=w,a.observeDocument=w,a.upgradeDocum
ent=w,a.upgradeDocumentTree=w,a.takeRecords=w}else{var x={},y="http://www.w3.org
/1999/xhtml",z=document.createElement.bind(document),A=document.createElementNS.
bind(document),B=Node.prototype.cloneNode;document.registerElement=b,document.cr
eateElement=q,document.createElementNS=p,Node.prototype.cloneNode=s,a.registry=x
,a.upgrade=r}var C;C=Object.__proto__||v?function(a,b){return a instanceof b}:fu
nction(a,b){for(var c=a;c;){if(c===b.prototype)return!0;c=c.__proto__}return!1},
a.instanceof=C,document.register=document.registerElement,a.hasNative=u,a.useNat
ive=v}(window.CustomElements),function(a){function b(a){return"link"===a.localNa
me&&a.getAttribute("rel")===c}var c=a.IMPORT_LINK_TYPE,d={selectors:["link[rel="
+c+"]"],map:{link:"parseLink"},parse:function(a){if(!a.__parsed){a.__parsed=!0;v
ar b=a.querySelectorAll(d.selectors);e(b,function(a){d[d.map[a.localName]](a)}),
CustomElements.upgradeDocument(a),CustomElements.observeDocument(a)}},parseLink:
function(a){b(a)&&this.parseImport(a)},parseImport:function(a){a.import&&d.parse
(a.import)}},e=Array.prototype.forEach.call.bind(Array.prototype.forEach);a.pars
er=d,a.IMPORT_LINK_TYPE=c}(window.CustomElements),function(a){function b(){Custo
mElements.parser.parse(document),CustomElements.upgradeDocument(document);var a=
window.Platform&&Platform.endOfMicrotask?Platform.endOfMicrotask:setTimeout;a(fu
nction(){CustomElements.ready=!0,CustomElements.readyTime=Date.now(),window.HTML
Imports&&(CustomElements.elapsed=CustomElements.readyTime-HTMLImports.readyTime)
,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0})),wind
ow.HTMLImports&&(HTMLImports.__importsParsingHook=function(a){CustomElements.par
ser.parse(a.import)})})}if("function"!=typeof window.CustomEvent&&(window.Custom
Event=function(a){var b=document.createEvent("HTMLEvents");return b.initEvent(a,
!0,!0),b}),"complete"===document.readyState||a.flags.eager)b();else if("interact
ive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTML
Imports.ready){var c=window.HTMLImports&&!HTMLImports.ready?"HTMLImportsLoaded":
"DOMContentLoaded";window.addEventListener(c,b)}else b()}(window.CustomElements)
,function(){var a=document.createElement("style");a.textContent="element {displa
y: none !important;} /* injected by platform.js */";var b=document.querySelector
("head");if(b.insertBefore(a,b.firstChild),window.ShadowDOMPolyfill){var c=["upg
radeAll","upgradeSubtree","observeDocument","upgradeDocument"],d={};c.forEach(fu
nction(a){d[a]=CustomElements[a]}),c.forEach(function(a){CustomElements[a]=funct
ion(b){return d[a](wrap(b))}})}}(),function(a){function b(a){this.regex=a}var c=
a.endOfMicrotask;b.prototype={extractUrls:function(a,b){for(var c,d,e=[];c=this.
regex.exec(a);)d=new URL(c[1],b),e.push({matched:c[0],url:d.href});return e},pro
cess:function(a,b,c){var d=this.extractUrls(a,b);this.fetch(d,{},c)},fetch:funct
ion(a,b,d){var e=a.length;if(!e)return d(b);for(var f,g,h,i=function(){0===--e&&
d(b)},j=function(a,c){var d=c.match,e=d.url;if(a)return b[e]="",i();var f=c.resp
onse||c.responseText;b[e]=f,this.fetch(this.extractUrls(f,e),b,i)},k=0;e>k;k++)f
=a[k],h=f.url,b[h]?c(i):(g=this.xhr(h,j,this),g.match=f,b[h]=g)},xhr:function(a,
b,c){var d=new XMLHttpRequest;return d.open("GET",a,!0),d.send(),d.onload=functi
on(){b.call(c,null,d)},d.onerror=function(){b.call(c,null,d)},d}},a.Loader=b}(wi
ndow.Platform),function(a){function b(){this.loader=new d(this.regex)}var c=a.ur
lResolver,d=a.Loader;b.prototype={regex:/@import\s+(?:url)?["'\(]*([^'"\)]*)['"\
)]*;/g,resolve:function(a,b,c){var d=function(d){c(this.flatten(a,b,d))}.bind(th
is);this.loader.process(a,b,d)},resolveNode:function(a,b){var c=a.textContent,d=
a.ownerDocument.baseURI,e=function(c){a.textContent=c,b(a)};this.resolve(c,d,e)}
,flatten:function(a,b,d){for(var e,f,g,h=this.loader.extractUrls(a,b),i=0;i<h.le
ngth;i++)e=h[i],f=e.url,g=c.resolveCssText(d[f],f),g=this.flatten(g,f,d),a=a.rep
lace(e.matched,g);return a},loadStyles:function(a,b){function c(){e++,e===f&&b&&
b()}for(var d,e=0,f=a.length,g=0;f>g&&(d=a[g]);g++)this.resolveNode(d,c)}};var e
=new b;a.styleResolver=e}(window.Platform),function(a){a=a||{},a.external=a.exte
rnal||{};var b={shadow:function(a){return a?a.shadowRoot||a.webkitShadowRoot:voi
d 0},canTarget:function(a){return a&&Boolean(a.elementFromPoint)},targetingShado
w:function(a){var b=this.shadow(a);return this.canTarget(b)?b:void 0},olderShado
w:function(a){var b=a.olderShadowRoot;if(!b){var c=a.querySelector("shadow");c&&
(b=c.olderShadowRoot)}return b},allShadows:function(a){for(var b=[],c=this.shado
w(a);c;)b.push(c),c=this.olderShadow(c);return b},searchRoot:function(a,b,c){if(
a){var d,e,f=a.elementFromPoint(b,c);for(e=this.targetingShadow(f);e;){if(d=e.el
ementFromPoint(b,c)){var g=this.targetingShadow(d);return this.searchRoot(g,b,c)
||d}e=this.olderShadow(e)}return f}},owner:function(a){for(var b=a;b.parentNode;
)b=b.parentNode;return b.nodeType!=Node.DOCUMENT_NODE&&b.nodeType!=Node.DOCUMENT
_FRAGMENT_NODE&&(b=document),b},findTarget:function(a){var b=a.clientX,c=a.clien
tY,d=this.owner(a.target);return d.elementFromPoint(b,c)||(d=document),this.sear
chRoot(d,b,c)}};a.targetFinding=b,a.findTarget=b.findTarget.bind(b),window.Point
erEventsPolyfill=a}(window.PointerEventsPolyfill),function(){function a(a){retur
n"body ^^ "+b(a)}function b(a){return'[touch-action="'+a+'"]'}function c(a){retu
rn"{ -ms-touch-action: "+a+"; touch-action: "+a+"; touch-action-delay: none; }"}
var d=["none","auto","pan-x","pan-y",{rule:"pan-x pan-y",selectors:["pan-x pan-y
","pan-y pan-x"]}],e="";d.forEach(function(d){String(d)===d?(e+=b(d)+c(d)+"\n",e
+=a(d)+c(d)+"\n"):(e+=d.selectors.map(b)+c(d.rule)+"\n",e+=d.selectors.map(a)+c(
d.rule)+"\n")});var f=document.createElement("style");f.textContent=e,document.h
ead.appendChild(f)}(),function(a){function b(a,e){e=e||{};var f;if(e.buttons||d)
f=e.buttons;else switch(e.which){case 1:f=1;break;case 2:f=4;break;case 3:f=2;br
eak;default:f=0}var i;if(c)i=new MouseEvent(a,e);else{i=document.createEvent("Mo
useEvent");for(var j,k={},l=0;l<g.length;l++)j=g[l],k[j]=e[j]||h[l];i.initMouseE
vent(a,k.bubbles,k.cancelable,k.view,k.detail,k.screenX,k.screenY,k.clientX,k.cl
ientY,k.ctrlKey,k.altKey,k.shiftKey,k.metaKey,k.button,k.relatedTarget)}i.__prot
o__=b.prototype,d||Object.defineProperty(i,"buttons",{get:function(){return f},e
numerable:!0});var m=0;return m=e.pressure?e.pressure:f?.5:0,Object.defineProper
ties(i,{pointerId:{value:e.pointerId||0,enumerable:!0},width:{value:e.width||0,e
numerable:!0},height:{value:e.height||0,enumerable:!0},pressure:{value:m,enumera
ble:!0},tiltX:{value:e.tiltX||0,enumerable:!0},tiltY:{value:e.tiltY||0,enumerabl
e:!0},pointerType:{value:e.pointerType||"",enumerable:!0},hwTimestamp:{value:e.h
wTimestamp||0,enumerable:!0},isPrimary:{value:e.isPrimary||!1,enumerable:!0}}),i
}var c=!1,d=!1;try{var e=new MouseEvent("click",{buttons:1});c=!0,d=1===e.button
s}catch(f){}var g=["bubbles","cancelable","view","detail","screenX","screenY","c
lientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarge
t"],h=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null];b.prototype=Object.create(Mou
seEvent.prototype),a.PointerEvent||(a.PointerEvent=b)}(window),function(a){funct
ion b(){if(c){var a=new Map;return a.pointers=d,a}this.keys=[],this.values=[]}va
r c=window.Map&&window.Map.prototype.forEach,d=function(){return this.size};b.pr
ototype={set:function(a,b){var c=this.keys.indexOf(a);c>-1?this.values[c]=b:(thi
s.keys.push(a),this.values.push(b))},has:function(a){return this.keys.indexOf(a)
>-1},"delete":function(a){var b=this.keys.indexOf(a);b>-1&&(this.keys.splice(b,1
),this.values.splice(b,1))},get:function(a){var b=this.keys.indexOf(a);return th
is.values[b]},clear:function(){this.keys.length=0,this.values.length=0},forEach:
function(a,b){this.values.forEach(function(c,d){a.call(b,c,this.keys[d],this)},t
his)},pointers:function(){return this.keys.length}},a.PointerMap=b}(window.Point
erEventsPolyfill),function(a){var b=["bubbles","cancelable","view","detail","scr
eenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","but
ton","relatedTarget","buttons","pointerId","width","height","pressure","tiltX","
tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTarget","
which"],c=[!1,!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",n
ull,null,0],d="undefined"!=typeof SVGElementInstance,e={targets:new WeakMap,hand
ledEvents:new WeakMap,pointermap:new a.PointerMap,eventMap:{},eventSources:{},ev
entSourceList:[],registerSource:function(a,b){var c=b,d=c.events;d&&(d.forEach(f
unction(a){c[a]&&(this.eventMap[a]=c[a].bind(c))},this),this.eventSources[a]=c,t
his.eventSourceList.push(c))},register:function(a){for(var b,c=this.eventSourceL
ist.length,d=0;c>d&&(b=this.eventSourceList[d]);d++)b.register.call(b,a)},unregi
ster:function(a){for(var b,c=this.eventSourceList.length,d=0;c>d&&(b=this.eventS
ourceList[d]);d++)b.unregister.call(b,a)},contains:a.external.contains||function
(a,b){return a.contains(b)},down:function(a){a.bubbles=!0,this.fireEvent("pointe
rdown",a)},move:function(a){a.bubbles=!0,this.fireEvent("pointermove",a)},up:fun
ction(a){a.bubbles=!0,this.fireEvent("pointerup",a)},enter:function(a){a.bubbles
=!1,this.fireEvent("pointerenter",a)},leave:function(a){a.bubbles=!1,this.fireEv
ent("pointerleave",a)},over:function(a){a.bubbles=!0,this.fireEvent("pointerover
",a)},out:function(a){a.bubbles=!0,this.fireEvent("pointerout",a)},cancel:functi
on(a){a.bubbles=!0,this.fireEvent("pointercancel",a)},leaveOut:function(a){this.
out(a),this.contains(a.target,a.relatedTarget)||this.leave(a)},enterOver:functio
n(a){this.over(a),this.contains(a.target,a.relatedTarget)||this.enter(a)},eventH
andler:function(a){if(!this.handledEvents.get(a)){var b=a.type,c=this.eventMap&&
this.eventMap[b];c&&c(a),this.handledEvents.set(a,!0)}},listen:function(a,b){b.f
orEach(function(b){this.addEvent(a,b)},this)},unlisten:function(a,b){b.forEach(f
unction(b){this.removeEvent(a,b)},this)},addEvent:a.external.addEvent||function(
a,b){a.addEventListener(b,this.boundHandler)},removeEvent:a.external.removeEvent
||function(a,b){a.removeEventListener(b,this.boundHandler) |
| 36 },makeEvent:function(a,b){this.captureInfo&&(b.relatedTarget=null);var c=new Poi
nterEvent(a,b);return b.preventDefault&&(c.preventDefault=b.preventDefault),this
.targets.set(c,this.targets.get(b)||b.target),c},fireEvent:function(a,b){var c=t
his.makeEvent(a,b);return this.dispatchEvent(c)},cloneEvent:function(a){for(var
e,f={},g=0;g<b.length;g++)e=b[g],f[e]=a[e]||c[g],!d||"target"!==e&&"relatedTarge
t"!==e||f[e]instanceof SVGElementInstance&&(f[e]=f[e].correspondingUseElement);r
eturn a.preventDefault&&(f.preventDefault=function(){a.preventDefault()}),f},get
Target:function(a){return this.captureInfo&&this.captureInfo.id===a.pointerId?th
is.captureInfo.target:this.targets.get(a)},setCapture:function(a,b){this.capture
Info&&this.releaseCapture(this.captureInfo.id),this.captureInfo={id:a,target:b};
var c=new PointerEvent("gotpointercapture",{bubbles:!0});this.implicitRelease=th
is.releaseCapture.bind(this,a),document.addEventListener("pointerup",this.implic
itRelease),document.addEventListener("pointercancel",this.implicitRelease),this.
targets.set(c,b),this.asyncDispatchEvent(c)},releaseCapture:function(a){if(this.
captureInfo&&this.captureInfo.id===a){var b=new PointerEvent("lostpointercapture
",{bubbles:!0}),c=this.captureInfo.target;this.captureInfo=null,document.removeE
ventListener("pointerup",this.implicitRelease),document.removeEventListener("poi
ntercancel",this.implicitRelease),this.targets.set(b,c),this.asyncDispatchEvent(
b)}},dispatchEvent:a.external.dispatchEvent||function(a){var b=this.getTarget(a)
;return b?b.dispatchEvent(a):void 0},asyncDispatchEvent:function(a){setTimeout(t
his.dispatchEvent.bind(this,a),0)}};e.boundHandler=e.eventHandler.bind(e),a.disp
atcher=e,a.register=e.register.bind(e),a.unregister=e.unregister.bind(e)}(window
.PointerEventsPolyfill),function(a){function b(a,b,c,d){this.addCallback=a.bind(
d),this.removeCallback=b.bind(d),this.changedCallback=c.bind(d),g&&(this.observe
r=new g(this.mutationWatcher.bind(this)))}var c=Array.prototype.forEach.call.bin
d(Array.prototype.forEach),d=Array.prototype.map.call.bind(Array.prototype.map),
e=Array.prototype.slice.call.bind(Array.prototype.slice),f=Array.prototype.filte
r.call.bind(Array.prototype.filter),g=window.MutationObserver||window.WebKitMuta
tionObserver,h="[touch-action]",i={subtree:!0,childList:!0,attributes:!0,attribu
teOldValue:!0,attributeFilter:["touch-action"]};b.prototype={watchSubtree:functi
on(b){a.targetFinding.canTarget(b)&&this.observer.observe(b,i)},enableOnSubtree:
function(a){this.watchSubtree(a),a===document&&"complete"!==document.readyState?
this.installOnLoad():this.installNewSubtree(a)},installNewSubtree:function(a){c(
this.findElements(a),this.addElement,this)},findElements:function(a){return a.qu
erySelectorAll?a.querySelectorAll(h):[]},removeElement:function(a){this.removeCa
llback(a)},addElement:function(a){this.addCallback(a)},elementChanged:function(a
,b){this.changedCallback(a,b)},concatLists:function(a,b){return a.concat(e(b))},
installOnLoad:function(){document.addEventListener("DOMContentLoaded",this.insta
llNewSubtree.bind(this,document))},isElement:function(a){return a.nodeType===Nod
e.ELEMENT_NODE},flattenMutationTree:function(a){var b=d(a,this.findElements,this
);return b.push(f(a,this.isElement)),b.reduce(this.concatLists,[])},mutationWatc
her:function(a){a.forEach(this.mutationHandler,this)},mutationHandler:function(a
){if("childList"===a.type){var b=this.flattenMutationTree(a.addedNodes);b.forEac
h(this.addElement,this);var c=this.flattenMutationTree(a.removedNodes);c.forEach
(this.removeElement,this)}else"attributes"===a.type&&this.elementChanged(a.targe
t,a.oldValue)}},g||(b.prototype.watchSubtree=function(){console.warn("PointerEve
ntsPolyfill: MutationObservers not found, touch-action will not be dynamically d
etected")}),a.Installer=b}(window.PointerEventsPolyfill),function(a){var b=a.dis
patcher,c=b.pointermap,d=25,e={POINTER_ID:1,POINTER_TYPE:"mouse",events:["moused
own","mousemove","mouseup","mouseover","mouseout"],register:function(a){b.listen
(a,this.events)},unregister:function(a){b.unlisten(a,this.events)},lastTouches:[
],isEventSimulatedFromTouch:function(a){for(var b,c=this.lastTouches,e=a.clientX
,f=a.clientY,g=0,h=c.length;h>g&&(b=c[g]);g++){var i=Math.abs(e-b.x),j=Math.abs(
f-b.y);if(d>=i&&d>=j)return!0}},prepareEvent:function(a){var c=b.cloneEvent(a),d
=c.preventDefault;return c.preventDefault=function(){a.preventDefault(),d()},c.p
ointerId=this.POINTER_ID,c.isPrimary=!0,c.pointerType=this.POINTER_TYPE,c},mouse
down:function(a){if(!this.isEventSimulatedFromTouch(a)){var d=c.has(this.POINTER
_ID);d&&this.cancel(a);var e=this.prepareEvent(a);c.set(this.POINTER_ID,a),b.dow
n(e)}},mousemove:function(a){if(!this.isEventSimulatedFromTouch(a)){var c=this.p
repareEvent(a);b.move(c)}},mouseup:function(a){if(!this.isEventSimulatedFromTouc
h(a)){var d=c.get(this.POINTER_ID);if(d&&d.button===a.button){var e=this.prepare
Event(a);b.up(e),this.cleanupMouse()}}},mouseover:function(a){if(!this.isEventSi
mulatedFromTouch(a)){var c=this.prepareEvent(a);b.enterOver(c)}},mouseout:functi
on(a){if(!this.isEventSimulatedFromTouch(a)){var c=this.prepareEvent(a);b.leaveO
ut(c)}},cancel:function(a){var c=this.prepareEvent(a);b.cancel(c),this.cleanupMo
use()},cleanupMouse:function(){c["delete"](this.POINTER_ID)}};a.mouseEvents=e}(w
indow.PointerEventsPolyfill),function(a){var b,c=a.dispatcher,d=a.findTarget,e=a
.targetFinding.allShadows.bind(a.targetFinding),f=c.pointermap,g=Array.prototype
.map.call.bind(Array.prototype.map),h=2500,i=200,j="touch-action",k=!1,l={scroll
Type:new WeakMap,events:["touchstart","touchmove","touchend","touchcancel"],regi
ster:function(a){k?c.listen(a,this.events):b.enableOnSubtree(a)},unregister:func
tion(a){k&&c.unlisten(a,this.events)},elementAdded:function(a){var b=a.getAttrib
ute(j),d=this.touchActionToScrollType(b);d&&(this.scrollType.set(a,d),c.listen(a
,this.events),e(a).forEach(function(a){this.scrollType.set(a,d),c.listen(a,this.
events)},this))},elementRemoved:function(a){this.scrollType["delete"](a),c.unlis
ten(a,this.events),e(a).forEach(function(a){this.scrollType["delete"](a),c.unlis
ten(a,this.events)},this)},elementChanged:function(a,b){var c=a.getAttribute(j),
d=this.touchActionToScrollType(c),f=this.touchActionToScrollType(b);d&&f?(this.s
crollType.set(a,d),e(a).forEach(function(a){this.scrollType.set(a,d)},this)):f?t
his.elementRemoved(a):d&&this.elementAdded(a)},scrollTypes:{EMITTER:"none",XSCRO
LLER:"pan-x",YSCROLLER:"pan-y",SCROLLER:/^(?:pan-x pan-y)|(?:pan-y pan-x)|auto$/
},touchActionToScrollType:function(a){var b=a,c=this.scrollTypes;return"none"===
b?"none":b===c.XSCROLLER?"X":b===c.YSCROLLER?"Y":c.SCROLLER.exec(b)?"XY":void 0}
,POINTER_TYPE:"touch",firstTouch:null,isPrimaryTouch:function(a){return this.fir
stTouch===a.identifier},setPrimaryTouch:function(a){(0===f.pointers()||1===f.poi
nters()&&f.has(1))&&(this.firstTouch=a.identifier,this.firstXY={X:a.clientX,Y:a.
clientY},this.scrolling=!1,this.cancelResetClickCount())},removePrimaryPointer:f
unction(a){a.isPrimary&&(this.firstTouch=null,this.firstXY=null,this.resetClickC
ount())},clickCount:0,resetId:null,resetClickCount:function(){var a=function(){t
his.clickCount=0,this.resetId=null}.bind(this);this.resetId=setTimeout(a,i)},can
celResetClickCount:function(){this.resetId&&clearTimeout(this.resetId)},touchToP
ointer:function(a){var b=c.cloneEvent(a);return b.pointerId=a.identifier+2,b.tar
get=d(b),b.bubbles=!0,b.cancelable=!0,b.detail=this.clickCount,b.button=0,b.butt
ons=1,b.width=a.webkitRadiusX||a.radiusX||0,b.height=a.webkitRadiusY||a.radiusY|
|0,b.pressure=a.webkitForce||a.force||.5,b.isPrimary=this.isPrimaryTouch(a),b.po
interType=this.POINTER_TYPE,b},processTouches:function(a,b){var c=a.changedTouch
es,d=g(c,this.touchToPointer,this);d.forEach(function(b){b.preventDefault=functi
on(){this.scrolling=!1,this.firstXY=null,a.preventDefault()}},this),d.forEach(b,
this)},shouldScroll:function(a){if(this.firstXY){var b,c=this.scrollType.get(a.c
urrentTarget);if("none"===c)b=!1;else if("XY"===c)b=!0;else{var d=a.changedTouch
es[0],e=c,f="Y"===c?"X":"Y",g=Math.abs(d["client"+e]-this.firstXY[e]),h=Math.abs
(d["client"+f]-this.firstXY[f]);b=g>=h}return this.firstXY=null,b}},findTouch:fu
nction(a,b){for(var c,d=0,e=a.length;e>d&&(c=a[d]);d++)if(c.identifier===b)retur
n!0},vacuumTouches:function(a){var b=a.touches;if(f.pointers()>=b.length){var c=
[];f.forEach(function(a,d){if(1!==d&&!this.findTouch(b,d-2)){var e=a.out;c.push(
this.touchToPointer(e))}},this),c.forEach(this.cancelOut,this)}},touchstart:func
tion(a){this.vacuumTouches(a),this.setPrimaryTouch(a.changedTouches[0]),this.ded
upSynthMouse(a),this.scrolling||(this.clickCount++,this.processTouches(a,this.ov
erDown))},overDown:function(a){f.set(a.pointerId,{target:a.target,out:a,outTarge
t:a.target});c.over(a),c.enter(a),c.down(a)},touchmove:function(a){this.scrollin
g||(this.shouldScroll(a)?(this.scrolling=!0,this.touchcancel(a)):(a.preventDefau
lt(),this.processTouches(a,this.moveOverOut)))},moveOverOut:function(a){var b=a,
d=f.get(b.pointerId);if(d){var e=d.out,g=d.outTarget;c.move(b),e&&g!==b.target&&
(e.relatedTarget=b.target,b.relatedTarget=g,e.target=g,b.target?(c.leaveOut(e),c
.enterOver(b)):(b.target=g,b.relatedTarget=null,this.cancelOut(b))),d.out=b,d.ou
tTarget=b.target}},touchend:function(a){this.dedupSynthMouse(a),this.processTouc
hes(a,this.upOut)},upOut:function(a){this.scrolling||(c.up(a),c.out(a),c.leave(a
)),this.cleanUpPointer(a)},touchcancel:function(a){this.processTouches(a,this.ca
ncelOut)},cancelOut:function(a){c.cancel(a),c.out(a),c.leave(a),this.cleanUpPoin
ter(a)},cleanUpPointer:function(a){f["delete"](a.pointerId),this.removePrimaryPo
inter(a)},dedupSynthMouse:function(b){var c=a.mouseEvents.lastTouches,d=b.change
dTouches[0];if(this.isPrimaryTouch(d)){var e={x:d.clientX,y:d.clientY};c.push(e)
;var f=function(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}.bind(null,c,e);setT
imeout(f,h)}}};k||(b=new a.Installer(l.elementAdded,l.elementRemoved,l.elementCh
anged,l)),a.touchEvents=l}(window.PointerEventsPolyfill),function(a){var b=a.dis
patcher,c=b.pointermap,d=window.MSPointerEvent&&"number"==typeof window.MSPointe
rEvent.MSPOINTER_TYPE_MOUSE,e={events:["MSPointerDown","MSPointerMove","MSPointe
rUp","MSPointerOut","MSPointerOver","MSPointerCancel","MSGotPointerCapture","MSL
ostPointerCapture"],register:function(a){b.listen(a,this.events)},unregister:fun
ction(a){b.unlisten(a,this.events)},POINTER_TYPES:["","unavailable","touch","pen
","mouse"],prepareEvent:function(a){var c=a;return d&&(c=b.cloneEvent(a),c.point
erType=this.POINTER_TYPES[a.pointerType]),c},cleanup:function(a){c["delete"](a)}
,MSPointerDown:function(a){c.set(a.pointerId,a);var d=this.prepareEvent(a);b.dow
n(d)},MSPointerMove:function(a){var c=this.prepareEvent(a);b.move(c)},MSPointerU
p:function(a){var c=this.prepareEvent(a);b.up(c),this.cleanup(a.pointerId)},MSPo
interOut:function(a){var c=this.prepareEvent(a);b.leaveOut(c)},MSPointerOver:fun
ction(a){var c=this.prepareEvent(a);b.enterOver(c)},MSPointerCancel:function(a){
var c=this.prepareEvent(a);b.cancel(c),this.cleanup(a.pointerId)},MSLostPointerC
apture:function(a){var c=b.makeEvent("lostpointercapture",a);b.dispatchEvent(c)}
,MSGotPointerCapture:function(a){var c=b.makeEvent("gotpointercapture",a);b.disp
atchEvent(c)}};a.msEvents=e}(window.PointerEventsPolyfill),function(a){var b=a.d
ispatcher;if(void 0===window.navigator.pointerEnabled){if(Object.defineProperty(
window.navigator,"pointerEnabled",{value:!0,enumerable:!0}),window.navigator.msP
ointerEnabled){var c=window.navigator.msMaxTouchPoints;Object.defineProperty(win
dow.navigator,"maxTouchPoints",{value:c,enumerable:!0}),b.registerSource("ms",a.
msEvents)}else b.registerSource("mouse",a.mouseEvents),void 0!==window.ontouchst
art&&b.registerSource("touch",a.touchEvents);b.register(document)}}(window.Point
erEventsPolyfill),function(a){function b(a){if(!e.pointermap.has(a))throw new Er
ror("InvalidPointerId")}var c,d,e=a.dispatcher,f=window.navigator;f.msPointerEna
bled?(c=function(a){b(a),this.msSetPointerCapture(a)},d=function(a){b(a),this.ms
ReleasePointerCapture(a)}):(c=function(a){b(a),e.setCapture(a,this)},d=function(
a){b(a),e.releaseCapture(a,this)}),window.Element&&!Element.prototype.setPointer
Capture&&Object.defineProperties(Element.prototype,{setPointerCapture:{value:c},
releasePointerCapture:{value:d}})}(window.PointerEventsPolyfill),PointerGestureE
vent.prototype.preventTap=function(){this.tapPrevented=!0},function(a){a=a||{},a
.utils={LCA:{find:function(a,b){if(a===b)return a;if(a.contains){if(a.contains(b
))return a;if(b.contains(a))return b}var c=this.depth(a),d=this.depth(b),e=c-d;f
or(e>0?a=this.walk(a,e):b=this.walk(b,-e);a&&b&&a!==b;)a=this.walk(a,1),b=this.w
alk(b,1);return a},walk:function(a,b){for(var c=0;b>c;c++)a=a.parentNode;return
a},depth:function(a){for(var b=0;a;)b++,a=a.parentNode;return b}}},a.findLCA=fun
ction(b,c){return a.utils.LCA.find(b,c)},window.PointerGestures=a}(window.Pointe
rGestures),function(a){function b(){if(c){var a=new Map;return a.pointers=d,a}th
is.keys=[],this.values=[]}var c=window.Map&&window.Map.prototype.forEach,d=funct
ion(){return this.size};b.prototype={set:function(a,b){var c=this.keys.indexOf(a
);c>-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))},has:function(a)
{return this.keys.indexOf(a)>-1},"delete":function(a){var b=this.keys.indexOf(a)
;b>-1&&(this.keys.splice(b,1),this.values.splice(b,1))},get:function(a){var b=th
is.keys.indexOf(a);return this.values[b]},clear:function(){this.keys.length=0,th
is.values.length=0},forEach:function(a,b){this.values.forEach(function(c,d){a.ca
ll(b,c,this.keys[d],this)},this)},pointers:function(){return this.keys.length}},
a.PointerMap=b}(window.PointerGestures),function(a){var b=["bubbles","cancelable
","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","sh
iftKey","metaKey","button","relatedTarget","buttons","pointerId","width","height
","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","tar
get","currentTarget","screenX","screenY","pageX","pageY","tapPrevented"],c=[!1,!
1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,
0],d={handledEvents:new WeakMap,targets:new WeakMap,handlers:{},recognizers:{},e
vents:{},registerRecognizer:function(a,b){var c=b;this.recognizers[a]=c,c.events
.forEach(function(a){if(c[a]){this.events[a]=!0;var b=c[a].bind(c);this.addHandl
er(a,b)}},this)},addHandler:function(a,b){var c=a;this.handlers[c]||(this.handle
rs[c]=[]),this.handlers[c].push(b)},registerTarget:function(a){this.listen(Objec
t.keys(this.events),a)},unregisterTarget:function(a){this.unlisten(Object.keys(t
his.events),a)},eventHandler:function(a){if(!this.handledEvents.get(a)){var b=a.
type,c=this.handlers[b];c&&this.makeQueue(c,a),this.handledEvents.set(a,!0)}},ma
keQueue:function(a,b){var c=this.cloneEvent(b);setTimeout(this.runQueue.bind(thi
s,a,c),0)},runQueue:function(a,b){this.currentPointerId=b.pointerId;for(var c,d=
0,e=a.length;e>d&&(c=a[d]);d++)c(b);this.currentPointerId=0},listen:function(a,b
){a.forEach(function(a){this.addEvent(a,this.boundHandler,!1,b)},this)},unlisten
:function(a){a.forEach(function(a){this.removeEvent(a,this.boundHandler,!1,inTar
get)},this)},addEvent:function(a,b,c,d){d.addEventListener(a,b,c)},removeEvent:f
unction(a,b,c,d){d.removeEventListener(a,b,c)},makeEvent:function(a,b){return ne
w PointerGestureEvent(a,b)},cloneEvent:function(a){for(var d,e={},f=0;f<b.length
;f++)d=b[f],e[d]=a[d]||c[f];return e},dispatchEvent:function(a,b){var c=b||this.
targets.get(a);c&&(c.dispatchEvent(a),a.tapPrevented&&this.preventTap(this.curre
ntPointerId))},asyncDispatchEvent:function(a,b){var c=function(){this.dispatchEv
ent(a,b)}.bind(this);setTimeout(c,0)},preventTap:function(a){var b=this.recogniz
ers.tap;b&&b.preventTap(a)}};d.boundHandler=d.eventHandler.bind(d),a.dispatcher=
d;var e=[],f=!1;a.register=function(b){if(f){var c=window.PointerEventsPolyfill;
c&&c.register(b),a.dispatcher.registerTarget(b)}else e.push(b)},document.addEven
tListener("DOMContentLoaded",function(){f=!0,e.push(document),e.forEach(a.regist
er)})}(window.PointerGestures),function(a){var b=a.dispatcher,c={HOLD_DELAY:200,
WIGGLE_THRESHOLD:16,events:["pointerdown","pointermove","pointerup","pointercanc
el"],heldPointer:null,holdJob:null,pulse:function(){var a=Date.now()-this.heldPo
inter.timeStamp,b=this.held?"holdpulse":"hold";this.fireHold(b,a),this.held=!0},
cancel:function(){clearInterval(this.holdJob),this.held&&this.fireHold("release"
),this.held=!1,this.heldPointer=null,this.target=null,this.holdJob=null},pointer
down:function(a){a.isPrimary&&!this.heldPointer&&(this.heldPointer=a,this.target
=a.target,this.holdJob=setInterval(this.pulse.bind(this),this.HOLD_DELAY))},poin
terup:function(a){this.heldPointer&&this.heldPointer.pointerId===a.pointerId&&th
is.cancel()},pointercancel:function(){this.cancel()},pointermove:function(a){if(
this.heldPointer&&this.heldPointer.pointerId===a.pointerId){var b=a.clientX-this
.heldPointer.clientX,c=a.clientY-this.heldPointer.clientY;b*b+c*c>this.WIGGLE_TH
RESHOLD&&this.cancel()}},fireHold:function(a,c){var d={pointerType:this.heldPoin
ter.pointerType};c&&(d.holdTime=c);var e=b.makeEvent(a,d);b.dispatchEvent(e,this
.target),e.tapPrevented&&b.preventTap(this.heldPointer.pointerId)}};b.registerRe
cognizer("hold",c)}(window.PointerGestures),function(a){var b=a.dispatcher,c=new
a.PointerMap,d={events:["pointerdown","pointermove","pointerup","pointercancel"
],WIGGLE_THRESHOLD:4,clampDir:function(a){return a>0?1:-1},calcPositionDelta:fun
ction(a,b){var c=0,d=0;return a&&b&&(c=b.pageX-a.pageX,d=b.pageY-a.pageY),{x:c,y
:d}},fireTrack:function(a,c,d){var e=d,f=this.calcPositionDelta(e.downEvent,c),g
=this.calcPositionDelta(e.lastMoveEvent,c);g.x&&(e.xDirection=this.clampDir(g.x)
),g.y&&(e.yDirection=this.clampDir(g.y));var h={dx:f.x,dy:f.y,ddx:g.x,ddy:g.y,cl
ientX:c.clientX,clientY:c.clientY,pageX:c.pageX,pageY:c.pageY,screenX:c.screenX,
screenY:c.screenY,xDirection:e.xDirection,yDirection:e.yDirection,trackInfo:e.tr
ackInfo,relatedTarget:c.target,pointerType:c.pointerType},i=b.makeEvent(a,h);e.l
astMoveEvent=c,b.dispatchEvent(i,e.downTarget)},pointerdown:function(a){if(a.isP
rimary&&("mouse"===a.pointerType?1===a.buttons:!0)){var b={downEvent:a,downTarge
t:a.target,trackInfo:{},lastMoveEvent:null,xDirection:0,yDirection:0,tracking:!1
};c.set(a.pointerId,b)}},pointermove:function(a){var b=c.get(a.pointerId);if(b)i
f(b.tracking)this.fireTrack("track",a,b);else{var d=this.calcPositionDelta(b.dow
nEvent,a),e=d.x*d.x+d.y*d.y;e>this.WIGGLE_THRESHOLD&&(b.tracking=!0,this.fireTra
ck("trackstart",b.downEvent,b),this.fireTrack("track",a,b))}},pointerup:function
(a){var b=c.get(a.pointerId);b&&(b.tracking&&this.fireTrack("trackend",a,b),c.de
lete(a.pointerId))},pointercancel:function(a){this.pointerup(a)}};b.registerReco
gnizer("track",d)}(window.PointerGestures),function(a){var b=a.dispatcher,c={MIN
_VELOCITY:.5,MAX_QUEUE:4,moveQueue:[],target:null,pointerId:null,events:["pointe
rdown","pointermove","pointerup","pointercancel"],pointerdown:function(a){a.isPr
imary&&!this.pointerId&&(this.pointerId=a.pointerId,this.target=a.target,this.ad
dMove(a))},pointermove:function(a){a.pointerId===this.pointerId&&this.addMove(a)
},pointerup:function(a){a.pointerId===this.pointerId&&this.fireFlick(a),this.cle
anup()},pointercancel:function(){this.cleanup()},cleanup:function(){this.moveQue
ue=[],this.target=null,this.pointerId=null},addMove:function(a){this.moveQueue.l
ength>=this.MAX_QUEUE&&this.moveQueue.shift(),this.moveQueue.push(a)},fireFlick:
function(a){for(var c,d,e,f,g,h,i,j=a,k=this.moveQueue.length,l=0,m=0,n=0,o=0;k>
o&&(i=this.moveQueue[o]);o++)c=j.timeStamp-i.timeStamp,d=j.clientX-i.clientX,e=j
.clientY-i.clientY,f=d/c,g=e/c,h=Math.sqrt(f*f+g*g),h>n&&(l=f,m=g,n=h);var p=Mat
h.abs(l)>Math.abs(m)?"x":"y",q=this.calcAngle(l,m);if(Math.abs(n)>=this.MIN_VELO
CITY){var r=b.makeEvent("flick",{xVelocity:l,yVelocity:m,velocity:n,angle:q,majo
rAxis:p,pointerType:a.pointerType});b.dispatchEvent(r,this.target)}},calcAngle:f
unction(a,b){return 180*Math.atan2(b,a)/Math.PI}};b.registerRecognizer("flick",c
)}(window.PointerGestures),function(a){var b=a.dispatcher,c=new a.PointerMap,d=1
80/Math.PI,e={events:["pointerdown","pointermove","pointerup","pointercancel"],r
eference:{},pointerdown:function(b){if(c.set(b.pointerId,b),2==c.pointers()){var
d=this.calcChord(),e=this.calcAngle(d);this.reference={angle:e,diameter:d.diame
ter,target:a.findLCA(d.a.target,d.b.target)}}},pointerup:function(a){c.delete(a.
pointerId)},pointermove:function(a){c.has(a.pointerId)&&(c.set(a.pointerId,a),c.
pointers()>1&&this.calcPinchRotate())},pointercancel:function(a){this.pointerup(
a)},dispatchPinch:function(a,c){var d=a/this.reference.diameter,e=b.makeEvent("p
inch",{scale:d,centerX:c.center.x,centerY:c.center.y});b.dispatchEvent(e,this.re
ference.target)},dispatchRotate:function(a,c){var d=Math.round((a-this.reference
.angle)%360),e=b.makeEvent("rotate",{angle:d,centerX:c.center.x,centerY:c.center
.y});b.dispatchEvent(e,this.reference.target)},calcPinchRotate:function(){var a=
this.calcChord(),b=a.diameter,c=this.calcAngle(a);b!=this.reference.diameter&&th
is.dispatchPinch(b,a),c!=this.reference.angle&&this.dispatchRotate(c,a)},calcCho
rd:function(){var a=[];c.forEach(function(b){a.push(b)});for(var b,d,e,f=0,g={},
h=0;h<a.length;h++)for(var i=a[h],j=h+1;j<a.length;j++){var k=a[j];b=Math.abs(i.
clientX-k.clientX),d=Math.abs(i.clientY-k.clientY),e=b+d,e>f&&(f=e,g={a:i,b:k})}
return b=Math.abs(g.a.clientX+g.b.clientX)/2,d=Math.abs(g.a.clientY+g.b.clientY)
/2,g.center={x:b,y:d},g.diameter=f,g},calcAngle:function(a){var b=a.a.clientX-a.
b.clientX,c=a.a.clientY-a.b.clientY;return(360+Math.atan2(c,b)*d)%360}};b.regist
erRecognizer("pinch",e)}(window.PointerGestures),function(a){var b=a.dispatcher,
c=new a.PointerMap,d={events:["pointerdown","pointermove","pointerup","pointerca
ncel","keyup"],pointerdown:function(a){a.isPrimary&&!a.tapPrevented&&c.set(a.poi
nterId,{target:a.target,x:a.clientX,y:a.clientY})},pointermove:function(a){if(a.
isPrimary){var b=c.get(a.pointerId);b&&a.tapPrevented&&c.delete(a.pointerId)}},s
houldTap:function(a){return a.tapPrevented?void 0:"mouse"===a.pointerType?1===a.
buttons:!0},pointerup:function(d){var e=c.get(d.pointerId);if(e&&this.shouldTap(
d)){var f=a.findLCA(e.target,d.target);if(f){var g=b.makeEvent("tap",{x:d.client
X,y:d.clientY,detail:d.detail,pointerType:d.pointerType});b.dispatchEvent(g,f)}}
c.delete(d.pointerId)},pointercancel:function(a){c.delete(a.pointerId)},keyup:fu
nction(a){var c=a.keyCode;if(32===c){var d=a.target;d instanceof HTMLInputElemen
t||d instanceof HTMLTextAreaElement||b.dispatchEvent(b.makeEvent("tap",{x:0,y:0,
detail:0,pointerType:"unavailable"}),d)}},preventTap:function(a){c.delete(a)}};b
.registerRecognizer("tap",d)}(window.PointerGestures),function(){"use strict";fu
nction a(a){for(;a.parentNode;)a=a.parentNode;return"function"==typeof a.getElem
entById?a:null}function b(a,b){var c=a.bindings;if(!c)return void(a.bindings={})
;var d=c[b];d&&(d.close(),c[b]=void 0)}function c(a){return null==a?"":a}functio
n d(a,b){a.data=c(b)}function e(a){return function(b){return d(a,b)}}function f(
a,b,d,e){return d?void(e?a.setAttribute(b,""):a.removeAttribute(b)):void a.setAt
tribute(b,c(e))}function g(a,b,c){return function(d){f(a,b,c,d)}}function h(a){s
witch(a.type){case"checkbox":return s;case"radio":case"select-multiple":case"sel
ect-one":return"change";case"range":if(/Trident|MSIE/.test(navigator.userAgent))
return"change";default:return"input"}}function i(a,b,d,e){a[b]=(e||c)(d)}functio
n j(a,b,c){return function(d){return i(a,b,d,c)}}function k(){}function l(a,b,c,
d){function e(){c.setValue(a[b]),c.discardChanges(),(d||k)(a),Platform.performMi
crotaskCheckpoint()}var f=h(a);a.addEventListener(f,e);var g=c.close;c.close=fun
ction(){g&&(a.removeEventListener(f,e),c.close=g,c.close(),g=void 0)}}function m
(a){return Boolean(a)}function n(b){if(b.form)return r(b.form.elements,function(
a){return a!=b&&"INPUT"==a.tagName&&"radio"==a.type&&a.name==b.name});var c=a(b)
;if(!c)return[];var d=c.querySelectorAll('input[type="radio"][name="'+b.name+'"]
');return r(d,function(a){return a!=b&&!a.form})}function o(a){"INPUT"===a.tagNa
me&&"radio"===a.type&&n(a).forEach(function(a){var b=a.bindings.checked;b&&b.set
Value(!1)})}function p(a,b){var d,e,f,g=a.parentNode;g instanceof HTMLSelectElem
ent&&g.bindings&&g.bindings.value&&(d=g,e=d.bindings.value,f=d.value),a.value=c(
b),d&&d.value!=f&&(e.setValue(d.value),e.discardChanges(),Platform.performMicrot
askCheckpoint())}function q(a){return function(b){p(a,b)}}var r=Array.prototype.
filter.call.bind(Array.prototype.filter);"function"!=typeof document.contains&&(
Document.prototype.contains=function(a){return a===this||a.parentNode===this?!0:
this.documentElement.contains(a)}),Node.prototype.bind=function(a,b){console.err
or("Unhandled binding to Node: ",this,a,b)},Node.prototype.unbind=function(a){b(
this,a)},Node.prototype.unbindAll=function(){if(this.bindings){for(var a=Object.
keys(this.bindings),b=0;b<a.length;b++){var c=this.bindings[a[b]];c&&c.close()}t
his.bindings={}}},Text.prototype.bind=function(a,c,f){return"textContent"!==a?No
de.prototype.bind.call(this,a,c,f):f?d(this,c):(b(this,"textContent"),d(this,c.o
pen(e(this))),this.bindings.textContent=c)},Element.prototype.bind=function(a,c,
d){var e="?"==a[a.length-1];return e&&(this.removeAttribute(a),a=a.slice(0,-1)),
d?f(this,a,e,c):(b(this,a),f(this,a,e,c.open(g(this,a,e))),this.bindings[a]=c)};
var s;!function(){var a=document.createElement("div"),b=a.appendChild(document.c
reateElement("input"));b.setAttribute("type","checkbox");var c,d=0;b.addEventLis
tener("click",function(){d++,c=c||"click"}),b.addEventListener("change",function
(){d++,c=c||"change"});var e=document.createEvent("MouseEvent");e.initMouseEvent
("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),b.dispatchEvent(e),s=1==d?"c
hange":c}(),HTMLInputElement.prototype.bind=function(a,d,e){if("value"!==a&&"che
cked"!==a)return HTMLElement.prototype.bind.call(this,a,d,e);this.removeAttribut
e(a);var f="checked"==a?m:c,g="checked"==a?o:k;return e?i(this,a,d,f):(b(this,a)
,l(this,a,d,g),i(this,a,d.open(j(this,a,f)),f),this.bindings[a]=d)},HTMLTextArea
Element.prototype.bind=function(a,d,e){return"value"!==a?HTMLElement.prototype.b
ind.call(this,a,d,e):(this.removeAttribute("value"),e?i(this,"value",d):(b(this,
"value"),l(this,"value",d),i(this,"value",d.open(j(this,"value",c))),this.bindin
gs.value=d))},HTMLOptionElement.prototype.bind=function(a,c,d){return"value"!==a
?HTMLElement.prototype.bind.call(this,a,c,d):(this.removeAttribute("value"),d?p(
this,c):(b(this,"value"),l(this,"value",c),p(this,c.open(q(this))),this.bindings
.value=c))},HTMLSelectElement.prototype.bind=function(a,c,d){return"selectedinde
x"===a&&(a="selectedIndex"),"selectedIndex"!==a&&"value"!==a?HTMLElement.prototy
pe.bind.call(this,a,c,d):(this.removeAttribute(a),d?i(this,a,c):(b(this,a),l(thi
s,a,c),i(this,a,c.open(j(this,a))),this.bindings[a]=c))}}(this),function(a){"use
strict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a){f
or(var b;b=a.parentNode;)a=b;return a}function d(a,b){if(b){for(var d,e="#"+b;!d
&&(a=c(a),a.protoContent_?d=a.protoContent_.querySelector(e):a.getElementById&&(
d=a.getElementById(b)),!d&&a.templateCreator_);)a=a.templateCreator_;return d}}f
unction e(a){return"template"==a.tagName&&"http://www.w3.org/2000/svg"==a.namesp
aceURI}function f(a){return"TEMPLATE"==a.tagName&&"http://www.w3.org/1999/xhtml"
==a.namespaceURI}function g(a){return Boolean(J[a.tagName]&&a.hasAttribute("temp
late"))}function h(a){return void 0===a.isTemplate_&&(a.isTemplate_="TEMPLATE"==
a.tagName||g(a)),a.isTemplate_}function i(a,b){var c=a.querySelectorAll(L);h(a)&
&b(a),E(c,b)}function j(a){function b(a){HTMLTemplateElement.decorate(a)||j(a.co
ntent)}i(a,b)}function k(a,b){Object.getOwnPropertyNames(b).forEach(function(c){
Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))})}function l(a){
var b=a.ownerDocument;if(!b.defaultView)return b;var c=b.templateContentsOwner_;
if(!c){for(c=b.implementation.createHTMLDocument("");c.lastChild;)c.removeChild(
c.lastChild);b.templateContentsOwner_=c}return c}function m(a){if(!a.stagingDocu
ment_){var b=a.ownerDocument;if(!b.stagingDocument_){b.stagingDocument_=b.implem
entation.createHTMLDocument("");var c=b.stagingDocument_.createElement("base");c
.href=document.baseURI,b.stagingDocument_.head.appendChild(c),b.stagingDocument_
.stagingDocument_=b.stagingDocument_}a.stagingDocument_=b.stagingDocument_}retur
n a.stagingDocument_}function n(a){var b=a.ownerDocument.createElement("template
");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;){var
e=c[d];I[e.name]&&("template"!==e.name&&b.setAttribute(e.name,e.value),a.removeA
ttribute(e.name))}return b}function o(a){var b=a.ownerDocument.createElement("te
mplate");a.parentNode.insertBefore(b,a);for(var c=a.attributes,d=c.length;d-->0;
){var e=c[d];b.setAttribute(e.name,e.value),a.removeAttribute(e.name)}return a.p
arentNode.removeChild(a),b}function p(a,b,c){var d=a.content;if(c)return void d.
appendChild(b);for(var e;e=b.firstChild;)d.appendChild(e)}function q(a){N?a.__pr
oto__=HTMLTemplateElement.prototype:k(a,HTMLTemplateElement.prototype)}function
r(a){a.setModelFn_||(a.setModelFn_=function(){a.setModelFnScheduled_=!1;var b=z(
a,a.delegate_&&a.delegate_.prepareBinding);w(a,b,a.model_)}),a.setModelFnSchedul
ed_||(a.setModelFnScheduled_=!0,Observer.runEOM_(a.setModelFn_))}function s(a,b,
c,d){if(a&&a.length){for(var e,f=a.length,g=0,h=0,i=0,j=!0;f>h;){var g=a.indexOf
("{{",h),k=a.indexOf("[[",h),l=!1,m="}}";if(k>=0&&(0>g||g>k)&&(g=k,l=!0,m="]]"),
i=0>g?-1:a.indexOf(m,g+2),0>i){if(!e)return;e.push(a.slice(h));break}e=e||[],e.p
ush(a.slice(h,g));var n=a.slice(g+2,i).trim();e.push(l),j=j&&l,e.push(Path.get(n
));var o=d&&d(n,b,c);e.push(o),h=i+2}return h===f&&e.push(""),e.hasOnePath=5===e
.length,e.isSimplePath=e.hasOnePath&&""==e[0]&&""==e[4],e.onlyOneTime=j,e.combin
ator=function(a){for(var b=e[0],c=1;c<e.length;c+=4){var d=e.hasOnePath?a:a[(c-1
)/4];void 0!==d&&(b+=d),b+=e[c+3]}return b},e}}function t(a,b,c,d){if(b.hasOnePa
th){var e=b[3],f=e?e(d,c,!0):b[2].getValueFrom(d);return b.isSimplePath?f:b.comb
inator(f)}for(var g=[],h=1;h<b.length;h+=4){var e=b[h+2];g[(h-1)/4]=e?e(d,c):b[h
+1].getValueFrom(d)}return b.combinator(g)}function u(a,b,c,d){var e=b[3],f=e?e(
d,c,!1):new PathObserver(d,b[2]);return b.isSimplePath?f:new ObserverTransform(f
,b.combinator)}function v(a,b,c,d){if(b.onlyOneTime)return t(a,b,c,d);if(b.hasOn
ePath)return u(a,b,c,d);for(var e=new CompoundObserver,f=1;f<b.length;f+=4){var
g=b[f],h=b[f+2];if(h){var i=h(d,c,g);g?e.addPath(i):e.addObserver(i)}else{var j=
b[f+1];g?e.addPath(j.getValueFrom(d)):e.addPath(d,j)}}return new ObserverTransfo
rm(e,b.combinator)}function w(a,b,c,d){for(var e=0;e<b.length;e+=2){var f=b[e],g
=b[e+1],h=v(f,g,a,c),i=a.bind(f,h,g.onlyOneTime);i&&d&&d.push(i)}if(b.isTemplate
){a.model_=c;var j=a.processBindingDirectives_(b);d&&j&&d.push(j)}}function x(a,
b,c){var d=a.getAttribute(b);return s(""==d?"{{}}":d,b,a,c)}function y(a,c){b(a)
;for(var d=[],e=0;e<a.attributes.length;e++){for(var f=a.attributes[e],g=f.name,
i=f.value;"_"===g[0];)g=g.substring(1);if(!h(a)||g!==H&&g!==F&&g!==G){var j=s(i,
g,a,c);j&&d.push(g,j)}}return h(a)&&(d.isTemplate=!0,d.if=x(a,H,c),d.bind=x(a,F,
c),d.repeat=x(a,G,c),!d.if||d.bind||d.repeat||(d.bind=s("{{}}",F,a,c))),d}functi
on z(a,b){if(a.nodeType===Node.ELEMENT_NODE)return y(a,b);if(a.nodeType===Node.T
EXT_NODE){var c=s(a.data,"textContent",a,b);if(c)return["textContent",c]}return[
]}function A(a,b,c,d,e,f,g){for(var h=b.appendChild(c.importNode(a,!1)),i=0,j=a.
firstChild;j;j=j.nextSibling)A(j,h,c,d.children[i++],e,f,g);return d.isTemplate&
&(HTMLTemplateElement.decorate(h,a),f&&h.setDelegate_(f)),w(h,d,e,g),h}function
B(a,b){var c=z(a,b);c.children={};for(var d=0,e=a.firstChild;e;e=e.nextSibling)c
.children[d++]=B(e,b);return c}function C(a){this.closed=!1,this.templateElement
_=a,this.terminators=[],this.deps=void 0,this.iteratedValue=[],this.presentValue
=void 0,this.arrayObserver=void 0}var D,E=Array.prototype.forEach.call.bind(Arra
y.prototype.forEach); |
| 37 a.Map&&"function"==typeof a.Map.prototype.forEach?D=a.Map:(D=function(){this.key
s=[],this.values=[]},D.prototype={set:function(a,b){var c=this.keys.indexOf(a);0
>c?(this.keys.push(a),this.values.push(b)):this.values[c]=b},get:function(a){var
b=this.keys.indexOf(a);if(!(0>b))return this.values[b]},"delete":function(a){va
r b=this.keys.indexOf(a);return 0>b?!1:(this.keys.splice(b,1),this.values.splice
(b,1),!0)},forEach:function(a,b){for(var c=0;c<this.keys.length;c++)a.call(b||th
is,this.values[c],this.keys[c],this)}});"function"!=typeof document.contains&&(D
ocument.prototype.contains=function(a){return a===this||a.parentNode===this?!0:t
his.documentElement.contains(a)});var F="bind",G="repeat",H="if",I={template:!0,
repeat:!0,bind:!0,ref:!0},J={THEAD:!0,TBODY:!0,TFOOT:!0,TH:!0,TR:!0,TD:!0,COLGRO
UP:!0,COL:!0,CAPTION:!0,OPTION:!0,OPTGROUP:!0},K="undefined"!=typeof HTMLTemplat
eElement;K&&!function(){var a=document.createElement("template"),b=a.content.own
erDocument,c=b.appendChild(b.createElement("html")),d=c.appendChild(b.createElem
ent("head")),e=b.createElement("base");e.href=document.baseURI,d.appendChild(e)}
();var L="template, "+Object.keys(J).map(function(a){return a.toLowerCase()+"[te
mplate]"}).join(", ");document.addEventListener("DOMContentLoaded",function(){j(
document),Platform.performMicrotaskCheckpoint()},!1),K||(a.HTMLTemplateElement=f
unction(){throw TypeError("Illegal constructor")});var M,N="__proto__"in{};"func
tion"==typeof MutationObserver&&(M=new MutationObserver(function(a){for(var b=0;
b<a.length;b++)a[b].target.refChanged_()})),HTMLTemplateElement.decorate=functio
n(a,c){if(a.templateIsDecorated_)return!1;var d=a;d.templateIsDecorated_=!0;var
h=f(d)&&K,i=h,k=!h,m=!1;if(h||(g(d)?(b(!c),d=n(a),d.templateIsDecorated_=!0,h=K,
m=!0):e(d)&&(d=o(a),d.templateIsDecorated_=!0,h=K)),!h){q(d);var r=l(d);d.conten
t_=r.createDocumentFragment()}return c?d.instanceRef_=c:k?p(d,a,m):i&&j(d.conten
t),!0},HTMLTemplateElement.bootstrap=j;var O=a.HTMLUnknownElement||HTMLElement,P
={get:function(){return this.content_},enumerable:!0,configurable:!0};K||(HTMLTe
mplateElement.prototype=Object.create(O.prototype),Object.defineProperty(HTMLTem
plateElement.prototype,"content",P)),k(HTMLTemplateElement.prototype,{bind:funct
ion(a,b,c){if("ref"!=a)return Element.prototype.bind.call(this,a,b,c);var d=this
,e=c?b:b.open(function(a){d.setAttribute("ref",a),d.refChanged_()});return this.
setAttribute("ref",e),this.refChanged_(),c?void 0:(this.unbind("ref"),this.bindi
ngs.ref=b)},processBindingDirectives_:function(a){return this.iterator_&&this.it
erator_.closeDeps(),a.if||a.bind||a.repeat?(this.iterator_||(this.iterator_=new
C(this),this.bindings=this.bindings||{},this.bindings.iterator=this.iterator_),t
his.iterator_.updateDependencies(a,this.model_),M&&M.observe(this,{attributes:!0
,attributeFilter:["ref"]}),this.iterator_):void(this.iterator_&&(this.iterator_.
close(),this.iterator_=void 0,this.bindings.iterator=void 0))},createInstance:fu
nction(a,b,c,d){b&&(c=this.newDelegate_(b)),this.refContent_||(this.refContent_=
this.ref_.content);var e=this.refContent_,f=this.bindingMap_;f&&f.content===e||(
f=B(e,c&&c.prepareBinding)||[],f.content=e,this.bindingMap_=f);var g=m(this),h=g
.createDocumentFragment();h.templateCreator_=this,h.protoContent_=e;for(var i={f
irstNode:null,lastNode:null,model:a},j=0,k=e.firstChild;k;k=k.nextSibling){var l
=A(k,h,g,f.children[j++],a,c,d);l.templateInstance_=i}return i.firstNode=h.first
Child,i.lastNode=h.lastChild,h.templateCreator_=void 0,h.protoContent_=void 0,h}
,get model(){return this.model_},set model(a){this.model_=a,r(this)},get binding
Delegate(){return this.delegate_&&this.delegate_.raw},refChanged_:function(){thi
s.iterator_&&this.refContent_!==this.ref_.content&&(this.refContent_=void 0,this
.iterator_.valueChanged(),this.iterator_.updateIteratedValue())},clear:function(
){this.model_=void 0,this.delegate_=void 0,this.bindings_=void 0,this.refContent
_=void 0,this.iterator_&&(this.iterator_.valueChanged(),this.iterator_.close(),t
his.iterator_=void 0)},setDelegate_:function(a){this.delegate_=a,this.bindingMap
_=void 0,this.iterator_&&(this.iterator_.instancePositionChangedFn_=void 0,this.
iterator_.instanceModelFn_=void 0)},newDelegate_:function(a){function b(b){var c
=a&&a[b];if("function"==typeof c)return function(){return c.apply(a,arguments)}}
return a?{raw:a,prepareBinding:b("prepareBinding"),prepareInstanceModel:b("prepa
reInstanceModel"),prepareInstancePositionChanged:b("prepareInstancePositionChang
ed")}:{}},set bindingDelegate(a){if(this.delegate_)throw Error("Template must be
cleared before a new bindingDelegate can be assigned");this.setDelegate_(this.n
ewDelegate_(a))},get ref_(){var a=d(this,this.getAttribute("ref"));if(a||(a=this
.instanceRef_),!a)return this;var b=a.ref_;return b?b:a}}),Object.defineProperty
(Node.prototype,"templateInstance",{get:function(){var a=this.templateInstance_;
return a?a:this.parentNode?this.parentNode.templateInstance:void 0}}),C.prototyp
e={closeDeps:function(){var a=this.deps;a&&(a.ifOneTime===!1&&a.ifValue.close(),
a.oneTime===!1&&a.value.close())},updateDependencies:function(a,b){this.closeDep
s();var c=this.deps={},d=this.templateElement_;if(a.if){if(c.hasIf=!0,c.ifOneTim
e=a.if.onlyOneTime,c.ifValue=v(H,a.if,d,b),c.ifOneTime&&!c.ifValue)return void t
his.updateIteratedValue();c.ifOneTime||c.ifValue.open(this.updateIteratedValue,t
his)}a.repeat?(c.repeat=!0,c.oneTime=a.repeat.onlyOneTime,c.value=v(G,a.repeat,d
,b)):(c.repeat=!1,c.oneTime=a.bind.onlyOneTime,c.value=v(F,a.bind,d,b)),c.oneTim
e||c.value.open(this.updateIteratedValue,this),this.updateIteratedValue()},updat
eIteratedValue:function(){if(this.deps.hasIf){var a=this.deps.ifValue;if(this.de
ps.ifOneTime||(a=a.discardChanges()),!a)return void this.valueChanged()}var b=th
is.deps.value;this.deps.oneTime||(b=b.discardChanges()),this.deps.repeat||(b=[b]
);var c=this.deps.repeat&&!this.deps.oneTime&&Array.isArray(b);this.valueChanged
(b,c)},valueChanged:function(a,b){Array.isArray(a)||(a=[]),a!==this.iteratedValu
e&&(this.unobserve(),this.presentValue=a,b&&(this.arrayObserver=new ArrayObserve
r(this.presentValue),this.arrayObserver.open(this.handleSplices,this)),this.hand
leSplices(ArrayObserver.calculateSplices(this.presentValue,this.iteratedValue)))
},getTerminatorAt:function(a){if(-1==a)return this.templateElement_;var b=this.t
erminators[2*a];if(b.nodeType!==Node.ELEMENT_NODE||this.templateElement_===b)ret
urn b;var c=b.iterator_;return c?c.getTerminatorAt(c.terminators.length/2-1):b},
insertInstanceAt:function(a,b,c,d){var e=this.getTerminatorAt(a-1),f=e;b?f=b.las
tChild||f:c&&(f=c[c.length-1]||f),this.terminators.splice(2*a,0,f,d);var g=this.
templateElement_.parentNode,h=e.nextSibling;if(b)g.insertBefore(b,h);else if(c)f
or(var i=0;i<c.length;i++)g.insertBefore(c[i],h)},extractInstanceAt:function(a){
var b=[],c=this.getTerminatorAt(a-1),d=this.getTerminatorAt(a);b.instanceBinding
s=this.terminators[2*a+1],this.terminators.splice(2*a,2);for(var e=this.template
Element_.parentNode;d!==c;){var f=c.nextSibling;f==d&&(d=c),e.removeChild(f),b.p
ush(f)}return b},getDelegateFn:function(a){return a=a&&a(this.templateElement_),
"function"==typeof a?a:null},handleSplices:function(a){if(!this.closed&&a.length
){var b=this.templateElement_;if(!b.parentNode)return void this.close();ArrayObs
erver.applySplices(this.iteratedValue,this.presentValue,a);var c=b.delegate_;voi
d 0===this.instanceModelFn_&&(this.instanceModelFn_=this.getDelegateFn(c&&c.prep
areInstanceModel)),void 0===this.instancePositionChangedFn_&&(this.instancePosit
ionChangedFn_=this.getDelegateFn(c&&c.prepareInstancePositionChanged));var d=new
D,e=0;a.forEach(function(a){a.removed.forEach(function(b){var c=this.extractIns
tanceAt(a.index+e);d.set(b,c)},this),e-=a.addedCount},this),a.forEach(function(a
){for(var e=a.index;e<a.index+a.addedCount;e++){var f,g=this.iteratedValue[e],h=
void 0,i=d.get(g);i?(d.delete(g),f=i.instanceBindings):(f=[],this.instanceModelF
n_&&(g=this.instanceModelFn_(g)),void 0!==g&&(h=b.createInstance(g,void 0,c,f)))
,this.insertInstanceAt(e,h,i,f)}},this),d.forEach(function(a){this.closeInstance
Bindings(a.instanceBindings)},this),this.instancePositionChangedFn_&&this.report
InstancesMoved(a)}},reportInstanceMoved:function(a){var b=this.getTerminatorAt(a
-1),c=this.getTerminatorAt(a);if(b!==c){var d=b.nextSibling.templateInstance;thi
s.instancePositionChangedFn_(d,a)}},reportInstancesMoved:function(a){for(var b=0
,c=0,d=0;d<a.length;d++){var e=a[d];if(0!=c)for(;b<e.index;)this.reportInstanceM
oved(b),b++;else b=e.index;for(;b<e.index+e.addedCount;)this.reportInstanceMoved
(b),b++;c+=e.addedCount-e.removed.length}if(0!=c)for(var f=this.terminators.leng
th/2;f>b;)this.reportInstanceMoved(b),b++},closeInstanceBindings:function(a){for
(var b=0;b<a.length;b++)a[b].close()},unobserve:function(){this.arrayObserver&&(
this.arrayObserver.close(),this.arrayObserver=void 0)},close:function(){if(!this
.closed){this.unobserve();for(var a=1;a<this.terminators.length;a+=2)this.closeI
nstanceBindings(this.terminators[a]);this.terminators.length=0,this.closeDeps(),
this.templateElement_.iterator_=void 0,this.closed=!0}}},HTMLTemplateElement.for
AllTemplatesFrom_=i}(this),function(a){"use strict";function b(a,b){if(!a)throw
new Error("ASSERT: "+b)}function c(a){return a>=48&&57>=a}function d(a){return 3
2===a||9===a||11===a||12===a||160===a||a>=5760&&" ".indexOf(Stri
ng.fromCharCode(a))>0}function e(a){return 10===a||13===a||8232===a||8233===a}fu
nction f(a){return 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a}function g(a){ret
urn 36===a||95===a||a>=65&&90>=a||a>=97&&122>=a||a>=48&&57>=a}function h(a){retu
rn"this"===a}function i(){for(;Y>X&&d(W.charCodeAt(X));)++X}function j(){var a,b
;for(a=X++;Y>X&&(b=W.charCodeAt(X),g(b));)++X;return W.slice(a,X)}function k(){v
ar a,b,c;return a=X,b=j(),c=1===b.length?S.Identifier:h(b)?S.Keyword:"null"===b?
S.NullLiteral:"true"===b||"false"===b?S.BooleanLiteral:S.Identifier,{type:c,valu
e:b,range:[a,X]}}function l(){var a,b,c=X,d=W.charCodeAt(X),e=W[X];switch(d){cas
e 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:c
ase 63:return++X,{type:S.Punctuator,value:String.fromCharCode(d),range:[c,X]};de
fault:if(a=W.charCodeAt(X+1),61===a)switch(d){case 37:case 38:case 42:case 43:ca
se 45:case 47:case 60:case 62:case 124:return X+=2,{type:S.Punctuator,value:Stri
ng.fromCharCode(d)+String.fromCharCode(a),range:[c,X]};case 33:case 61:return X+
=2,61===W.charCodeAt(X)&&++X,{type:S.Punctuator,value:W.slice(c,X),range:[c,X]}}
}return b=W[X+1],e===b&&"&|".indexOf(e)>=0?(X+=2,{type:S.Punctuator,value:e+b,ra
nge:[c,X]}):"<>=!+-*%&|^/".indexOf(e)>=0?(++X,{type:S.Punctuator,value:e,range:[
c,X]}):void s({},V.UnexpectedToken,"ILLEGAL")}function m(){var a,d,e;if(e=W[X],b
(c(e.charCodeAt(0))||"."===e,"Numeric literal must start with a decimal digit or
a decimal point"),d=X,a="","."!==e){for(a=W[X++],e=W[X],"0"===a&&e&&c(e.charCod
eAt(0))&&s({},V.UnexpectedToken,"ILLEGAL");c(W.charCodeAt(X));)a+=W[X++];e=W[X]}
if("."===e){for(a+=W[X++];c(W.charCodeAt(X));)a+=W[X++];e=W[X]}if("e"===e||"E"==
=e)if(a+=W[X++],e=W[X],("+"===e||"-"===e)&&(a+=W[X++]),c(W.charCodeAt(X)))for(;c
(W.charCodeAt(X));)a+=W[X++];else s({},V.UnexpectedToken,"ILLEGAL");return f(W.c
harCodeAt(X))&&s({},V.UnexpectedToken,"ILLEGAL"),{type:S.NumericLiteral,value:pa
rseFloat(a),range:[d,X]}}function n(){var a,c,d,f="",g=!1;for(a=W[X],b("'"===a||
'"'===a,"String literal must starts with a quote"),c=X,++X;Y>X;){if(d=W[X++],d==
=a){a="";break}if("\\"===d)if(d=W[X++],d&&e(d.charCodeAt(0)))"\r"===d&&"\n"===W[
X]&&++X;else switch(d){case"n":f+="\n";break;case"r":f+="\r";break;case"t":f+="
";break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="";break;default
:f+=d}else{if(e(d.charCodeAt(0)))break;f+=d}}return""!==a&&s({},V.UnexpectedToke
n,"ILLEGAL"),{type:S.StringLiteral,value:f,octal:g,range:[c,X]}}function o(a){re
turn a.type===S.Identifier||a.type===S.Keyword||a.type===S.BooleanLiteral||a.typ
e===S.NullLiteral}function p(){var a;return i(),X>=Y?{type:S.EOF,range:[X,X]}:(a
=W.charCodeAt(X),40===a||41===a||58===a?l():39===a||34===a?n():f(a)?k():46===a?c
(W.charCodeAt(X+1))?m():l():c(a)?m():l())}function q(){var a;return a=$,X=a.rang
e[1],$=p(),X=a.range[1],a}function r(){var a;a=X,$=p(),X=a}function s(a,c){var d
,e=Array.prototype.slice.call(arguments,2),f=c.replace(/%(\d)/g,function(a,c){re
turn b(c<e.length,"Message reference must be in range"),e[c]});throw d=new Error
(f),d.index=X,d.description=f,d}function t(a){s(a,V.UnexpectedToken,a.value)}fun
ction u(a){var b=q();(b.type!==S.Punctuator||b.value!==a)&&t(b)}function v(a){re
turn $.type===S.Punctuator&&$.value===a}function w(a){return $.type===S.Keyword&
&$.value===a}function x(){var a=[];for(u("[");!v("]");)v(",")?(q(),a.push(null))
:(a.push(bb()),v("]")||u(","));return u("]"),Z.createArrayExpression(a)}function
y(){var a;return i(),a=q(),a.type===S.StringLiteral||a.type===S.NumericLiteral?
Z.createLiteral(a):Z.createIdentifier(a.value)}function z(){var a,b;return a=$,i
(),(a.type===S.EOF||a.type===S.Punctuator)&&t(a),b=y(),u(":"),Z.createProperty("
init",b,bb())}function A(){var a=[];for(u("{");!v("}");)a.push(z()),v("}")||u(",
");return u("}"),Z.createObjectExpression(a)}function B(){var a;return u("("),a=
bb(),u(")"),a}function C(){var a,b,c;return v("(")?B():(a=$.type,a===S.Identifie
r?c=Z.createIdentifier(q().value):a===S.StringLiteral||a===S.NumericLiteral?c=Z.
createLiteral(q()):a===S.Keyword?w("this")&&(q(),c=Z.createThisExpression()):a==
=S.BooleanLiteral?(b=q(),b.value="true"===b.value,c=Z.createLiteral(b)):a===S.Nu
llLiteral?(b=q(),b.value=null,c=Z.createLiteral(b)):v("[")?c=x():v("{")&&(c=A())
,c?c:void t(q()))}function D(){var a=[];if(u("("),!v(")"))for(;Y>X&&(a.push(bb()
),!v(")"));)u(",");return u(")"),a}function E(){var a;return a=q(),o(a)||t(a),Z.
createIdentifier(a.value)}function F(){return u("."),E()}function G(){var a;retu
rn u("["),a=bb(),u("]"),a}function H(){var a,b;for(a=C();v(".")||v("[");)v("[")?
(b=G(),a=Z.createMemberExpression("[",a,b)):(b=F(),a=Z.createMemberExpression(".
",a,b));return a}function I(){var a,b;return $.type!==S.Punctuator&&$.type!==S.K
eyword?b=ab():v("+")||v("-")||v("!")?(a=q(),b=I(),b=Z.createUnaryExpression(a.va
lue,b)):w("delete")||w("void")||w("typeof")?s({},V.UnexpectedToken):b=ab(),b}fun
ction J(a){var b=0;if(a.type!==S.Punctuator&&a.type!==S.Keyword)return 0;switch(
a.value){case"||":b=1;break;case"&&":b=2;break;case"==":case"!=":case"===":case"
!==":b=6;break;case"<":case">":case"<=":case">=":case"instanceof":b=7;break;case
"in":b=7;break;case"+":case"-":b=9;break;case"*":case"/":case"%":b=11}return b}f
unction K(){var a,b,c,d,e,f,g,h;if(g=I(),b=$,c=J(b),0===c)return g;for(b.prec=c,
q(),e=I(),d=[g,b,e];(c=J($))>0;){for(;d.length>2&&c<=d[d.length-2].prec;)e=d.pop
(),f=d.pop().value,g=d.pop(),a=Z.createBinaryExpression(f,g,e),d.push(a);b=q(),b
.prec=c,d.push(b),a=I(),d.push(a)}for(h=d.length-1,a=d[h];h>1;)a=Z.createBinaryE
xpression(d[h-1].value,d[h-2],a),h-=2;return a}function L(){var a,b,c;return a=K
(),v("?")&&(q(),b=L(),u(":"),c=L(),a=Z.createConditionalExpression(a,b,c)),a}fun
ction M(){var a,b;return a=q(),a.type!==S.Identifier&&t(a),b=v("(")?D():[],Z.cre
ateFilter(a.value,b)}function N(){for(;v("|");)q(),M()}function O(){i(),r();var
a=bb();a&&(","===$.value||"in"==$.value&&a.type===U.Identifier?Q(a):(N(),"as"===
$.value?P(a):Z.createTopLevel(a))),$.type!==S.EOF&&t($)}function P(a){q();var b=
q().value;Z.createAsExpression(a,b)}function Q(a){var b;","===$.value&&(q(),$.ty
pe!==S.Identifier&&t($),b=q().value),q();var c=bb();N(),Z.createInExpression(a.n
ame,b,c)}function R(a,b){return Z=b,W=a,X=0,Y=W.length,$=null,_={labelSet:{}},O(
)}var S,T,U,V,W,X,Y,Z,$,_;S={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullL
iteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8},T={},T[S.BooleanLiteral]
="Boolean",T[S.EOF]="<end>",T[S.Identifier]="Identifier",T[S.Keyword]="Keyword",
T[S.NullLiteral]="Null",T[S.NumericLiteral]="Numeric",T[S.Punctuator]="Punctuato
r",T[S.StringLiteral]="String",U={ArrayExpression:"ArrayExpression",BinaryExpres
sion:"BinaryExpression",CallExpression:"CallExpression",ConditionalExpression:"C
onditionalExpression",EmptyStatement:"EmptyStatement",ExpressionStatement:"Expre
ssionStatement",Identifier:"Identifier",Literal:"Literal",LabeledStatement:"Labe
ledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpr
ession",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property
",ThisExpression:"ThisExpression",UnaryExpression:"UnaryExpression"},V={Unexpect
edToken:"Unexpected token %0",UnknownLabel:"Undefined label '%0'",Redeclaration:
"%0 '%1' has already been declared"};var ab=H,bb=L;a.esprima={parse:R}}(this),fu
nction(a){"use strict";function b(a,b,d,e){var f;try{if(f=c(a),f.scopeIdent&&(d.
nodeType!==Node.ELEMENT_NODE||"TEMPLATE"!==d.tagName||"bind"!==b&&"repeat"!==b))
throw Error("as and in can only be used within <template bind/repeat>")}catch(g)
{return void console.error("Invalid expression syntax: "+a,g)}return function(a,
b,c){var d=f.getBinding(a,e,c);return f.scopeIdent&&d&&(b.polymerExpressionScope
Ident_=f.scopeIdent,f.indexIdent&&(b.polymerExpressionIndexIdent_=f.indexIdent))
,d}}function c(a){var b=s[a];if(!b){var c=new j;esprima.parse(a,c),b=new l(c),s[
a]=b}return b}function d(a){this.value=a,this.valueFn_=void 0}function e(a){this
.name=a,this.path=Path.get(a)}function f(a,b,c){"["==c&&b instanceof d&&Path.get
(b.value).valid&&(c=".",b=new e(b.value)),this.dynamicDeps="function"==typeof a|
|a.dynamic,this.dynamic="function"==typeof b||b.dynamic||"["==c,this.simplePath=
!this.dynamic&&!this.dynamicDeps&&b instanceof e&&(a instanceof f||a instanceof
e),this.object=this.simplePath?a:i(a),this.property="."==c?b:i(b)}function g(a,b
){this.name=a,this.args=[];for(var c=0;c<b.length;c++)this.args[c]=i(b[c])}funct
ion h(){throw Error("Not Implemented")}function i(a){return"function"==typeof a?
a:a.valueFn()}function j(){this.expression=null,this.filters=[],this.deps={},thi
s.currentPath=void 0,this.scopeIdent=void 0,this.indexIdent=void 0,this.dynamicD
eps=!1}function k(a){this.value_=a}function l(a){if(this.scopeIdent=a.scopeIdent
,this.indexIdent=a.indexIdent,!a.expression)throw Error("No expression found.");
this.expression=a.expression,i(this.expression),this.filters=a.filters,this.dyna
micDeps=a.dynamicDeps}function m(a){return String(a).replace(/[A-Z]/g,function(a
){return"-"+a.toLowerCase()})}function n(a){return"o"===a[0]&&"n"===a[1]&&"-"===
a[2]}function o(a,b){for(;a[w]&&!Object.prototype.hasOwnProperty.call(a,b);)a=a[
w];return a}function p(a,b){if(0==b.length)return void 0;if(1==b.length)return o
(a,b[0]);for(var c=0;null!=a&&c<b.length-1;c++)a=a[b[c]];return a}function q(a,b
,c){var d=b.substring(3);return d=v[d]||d,function(b,e,f){function g(){return"{{
"+a+" }}"}var h,i,j;return j="function"==typeof c.resolveEventHandler?function(
d){h=h||c.resolveEventHandler(b,a,e),h(d,d.detail,d.currentTarget),Platform&&"fu
nction"==typeof Platform.flush&&Platform.flush()}:function(c){h=h||a.getValueFro
m(b),i=i||p(b,a,e),h.apply(i,[c,c.detail,c.currentTarget]),Platform&&"function"=
=typeof Platform.flush&&Platform.flush()},e.addEventListener(d,j),f?void 0:{open
:g,discardChanges:g,close:function(){e.removeEventListener(d,j)}}}}function r(){
}var s=Object.create(null);d.prototype={valueFn:function(){if(!this.valueFn_){va
r a=this.value;this.valueFn_=function(){return a}}return this.valueFn_}},e.proto
type={valueFn:function(){if(!this.valueFn_){var a=(this.name,this.path);this.val
ueFn_=function(b,c){return c&&c.addPath(b,a),a.getValueFrom(b)}}return this.valu
eFn_},setValue:function(a,b){return 1==this.path.length,a=o(a,this.path[0]),this
.path.setValueFrom(a,b)}},f.prototype={get fullPath(){if(!this.fullPath_){var a=
this.object instanceof e?this.object.name:this.object.fullPath;this.fullPath_=Pa
th.get(a+"."+this.property.name)}return this.fullPath_},valueFn:function(){if(!t
his.valueFn_){var a=this.object;if(this.simplePath){var b=this.fullPath;this.val
ueFn_=function(a,c){return c&&c.addPath(a,b),b.getValueFrom(a)}}else if(this.pro
perty instanceof e){var b=Path.get(this.property.name);this.valueFn_=function(c,
d){var e=a(c,d);return d&&d.addPath(e,b),b.getValueFrom(e)}}else{var c=this.prop
erty;this.valueFn_=function(b,d){var e=a(b,d),f=c(b,d);return d&&d.addPath(e,f),
e?e[f]:void 0}}}return this.valueFn_},setValue:function(a,b){if(this.simplePath)
return this.fullPath.setValueFrom(a,b),b;var c=this.object(a),d=this.property in
stanceof e?this.property.name:this.property(a);return c[d]=b}},g.prototype={tran
sform:function(a,b,c,d,e){var f=c[this.name],g=d;if(f)g=void 0;else if(f=g[this.
name],!f)return void console.error("Cannot find filter: "+this.name);if(b?f=f.to
Model:"function"==typeof f.toDOM&&(f=f.toDOM),"function"!=typeof f)return void c
onsole.error("No "+(b?"toModel":"toDOM")+" found on"+this.name);for(var h=[a],j=
0;j<this.args.length;j++)h[j+1]=i(this.args[j])(d,e);return f.apply(g,h)}};var t
={"+":function(a){return+a},"-":function(a){return-a},"!":function(a){return!a}}
,u={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"*":function(a,b
){return a*b},"/":function(a,b){return a/b},"%":function(a,b){return a%b},"<":fu
nction(a,b){return b>a},">":function(a,b){return a>b},"<=":function(a,b){return
b>=a},">=":function(a,b){return a>=b},"==":function(a,b){return a==b},"!=":funct
ion(a,b){return a!=b},"===":function(a,b){return a===b},"!==":function(a,b){retu
rn a!==b},"&&":function(a,b){return a&&b},"||":function(a,b){return a||b}};j.pro
totype={createUnaryExpression:function(a,b){if(!t[a])throw Error("Disallowed ope
rator: "+a);return b=i(b),function(c,d){return t[a](b(c,d))}},createBinaryExpres
sion:function(a,b,c){if(!u[a])throw Error("Disallowed operator: "+a);return b=i(
b),c=i(c),function(d,e){return u[a](b(d,e),c(d,e))}},createConditionalExpression
:function(a,b,c){return a=i(a),b=i(b),c=i(c),function(d,e){return a(d,e)?b(d,e):
c(d,e)}},createIdentifier:function(a){var b=new e(a);return b.type="Identifier",
b},createMemberExpression:function(a,b,c){var d=new f(b,c,a);return d.dynamicDep
s&&(this.dynamicDeps=!0),d},createLiteral:function(a){return new d(a.value)},cre
ateArrayExpression:function(a){for(var b=0;b<a.length;b++)a[b]=i(a[b]);return fu
nction(b,c){for(var d=[],e=0;e<a.length;e++)d.push(a[e](b,c));return d}},createP
roperty:function(a,b,c){return{key:b instanceof e?b.name:b.value,value:c}},creat
eObjectExpression:function(a){for(var b=0;b<a.length;b++)a[b].value=i(a[b].value
);return function(b,c){for(var d={},e=0;e<a.length;e++)d[a[e].key]=a[e].value(b,
c);return d}},createFilter:function(a,b){this.filters.push(new g(a,b))},createAs
Expression:function(a,b){this.expression=a,this.scopeIdent=b},createInExpression
:function(a,b,c){this.expression=c,this.scopeIdent=a,this.indexIdent=b},createTo
pLevel:function(a){this.expression=a},createThisExpression:h},k.prototype={open:
function(){return this.value_},discardChanges:function(){return this.value_},del
iver:function(){},close:function(){}},l.prototype={getBinding:function(a,b,c){fu
nction d(){g.dynamicDeps&&f.startReset();var c=g.getValue(a,g.dynamicDeps?f:void
0,b);return g.dynamicDeps&&f.finishReset(),c}function e(c){return g.setValue(a,
c,b),c}if(c)return this.getValue(a,void 0,b);var f=new CompoundObserver;this.get
Value(a,f,b);var g=this;return new ObserverTransform(f,d,e,!0)},getValue:functio
n(a,b,c){for(var d=i(this.expression)(a,b),e=0;e<this.filters.length;e++)d=this.
filters[e].transform(d,!1,c,a,b);return d},setValue:function(a,b,c){for(var d=th
is.filters?this.filters.length:0;d-->0;)b=this.filters[d].transform(b,!0,c,a);re
turn this.expression.setValue?this.expression.setValue(a,b):void 0}};var v={};["
webkitAnimationStart","webkitAnimationEnd","webkitTransitionEnd","DOMFocusOut","
DOMFocusIn","DOMMouseScroll"].forEach(function(a){v[a.toLowerCase()]=a});var w="
@"+Math.random().toString(36).slice(2);r.prototype={styleObject:function(a){var
b=[];for(var c in a)b.push(m(c)+": "+a[c]);return b.join("; ")},tokenList:functi
on(a){var b=[];for(var c in a)a[c]&&b.push(c);return b.join(" ")},prepareInstanc
ePositionChanged:function(a){var b=a.polymerExpressionIndexIdent_;if(b)return fu
nction(a,c){a.model[b]=c}},prepareBinding:function(a,c,d){var e=Path.get(a);if(n
(c))return e.valid?q(e,c,this):void console.error("on-* bindings must be simple
path expressions");{if(!e.valid)return b(a,c,d,this);if(1==e.length)return funct
ion(a,b,c){if(c)return e.getValueFrom(a);var d=o(a,e[0]);return new PathObserver
(d,e)}}},prepareInstanceModel:function(a){var b=a.polymerExpressionScopeIdent_;i
f(b){var c=a.templateInstance?a.templateInstance.model:a.model,d=a.polymerExpres
sionIndexIdent_;return function(a){var e=Object.create(c);return e[b]=a,e[d]=voi
d 0,e[w]=c,e}}}},a.PolymerExpressions=r,a.exposeGetExpression&&(a.getExpression_
=c),a.PolymerExpressions.prepareEventBinding=q}(this),function(a){function b(){e
||(e=!0,a.endOfMicrotask(function(){e=!1,logFlags.data&&console.group("Platform.
flush()"),a.performMicrotaskCheckpoint(),logFlags.data&&console.groupEnd()}))}va
r c=document.createElement("style");c.textContent="template {display: none !impo
rtant;} /* injected by platform.js */";var d=document.querySelector("head");d.in
sertBefore(c,d.firstChild);var e,f=125;if(window.addEventListener("WebComponents
Ready",function(){b(),Observer.hasObjectObserve||(a.flushPoll=setInterval(b,f))}
),window.CustomElements&&!CustomElements.useNative){var g=Document.prototype.imp
ortNode;Document.prototype.importNode=function(a,b){var c=g.call(this,a,b);retur
n CustomElements.upgradeAll(c),c}}a.flush=b}(window.Platform); |
| 38 //# sourceMappingURL=platform.js.map |
OLD | NEW |