OLD | NEW |
| (Empty) |
1 if(!HTMLElement.prototype.createShadowRoot||window.__forceShadowDomPolyfill){!fu
nction(){Element.prototype.webkitCreateShadowRoot&&(Element.prototype.webkitCrea
teShadowRoot=function(){return window.ShadowDOMPolyfill.wrapIfNeeded(this).creat
eShadowRoot()})}(),function(a){"use strict";function b(){function a(a){b=a}if("f
unction"!=typeof Object.observe||"function"!=typeof Array.observe)return!1;var b
=[],c={};if(Object.observe(c,a),c.id=1,c.id=2,delete c.id,Object.deliverChangeRe
cords(a),3!==b.length)return!1;if("new"==b[0].type&&"updated"==b[1].type&&"delet
ed"==b[2].type)L="new",M="updated",N="reconfigured",O="deleted";else if("add"!=b
[0].type||"update"!=b[1].type||"delete"!=b[2].type)return console.error("Unexpec
ted change record names for Object.observe. Using dirty-checking instead"),!1;re
turn Object.unobserve(c,a),c=[0],Array.observe(c,a),c[1]=1,c.length=0,Object.del
iverChangeRecords(a),2!=b.length?!1:b[0].type!=P||b[1].type!=P?!1:(Array.unobser
ve(c,a),!0)}function c(){if(a.document&&"securityPolicy"in a.document&&!a.docume
nt.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){retur
n+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.t
rim(),""==a?!0:"."==a[0]?!1:$.test(a))}function i(a,b){if(b!==_)throw Error("Use
Path.get to retrieve path objects");return""==a.trim()?this:d(a)?(this.push(a),
this):(a.split(/\s*\.\s*/).filter(function(a){return a}).forEach(function(a){thi
s.push(a)},this),void(R&&this.length&&(this.getValueFrom=this.compiledGetValueFr
omFn())))}function j(a){if(a instanceof i)return a;null==a&&(a=""),"string"!=typ
eof 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.tes
tingExposeCycleCount&&(a.dirtyCheckCycleCount=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.length!==b.length&&(e.length=a.length),{added:c,remo
ved: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("Observed
Object in use");e||Object.deliverChangeRecords(a),b=c,e=!1},observe:function(b,d
){c=b,d?Array.observe(c,a):Object.observe(c,a)},deliver:function(b){d=b,Object.d
eliverChangeRecords(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.push(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.iterateObjects_(a);for(var g=0;g<i.length;g++){var l=i[g]
;l&&Object.unobserve(l,d)}i.length=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:void 0,objects:h,open:function(b){e[b.id_]=b,g++,b.i
terateObjects_(a)},close:function(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.len
gth=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,this.target_=void 0,this.directObserver_=void 0,this.
value_=void 0,this.id_=nb++}function u(a){t._allObserversCount++,pb&&ob.push(a)}
function v(){t._allObserversCount--}function w(a){t.call(this),this.value_=a,thi
s.oldObject_=void 0}function x(a){if(!Array.isArray(a))throw Error("Provided obj
ect 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.cal
l(this),this.value_=[],this.directObserver_=void 0,this.observed_=[]}function A(
a){return a}function B(a,b,c,d){this.callback_=void 0,this.target_=void 0,this.v
alue_=void 0,this.observable_=a,this.getValueFn_=b||A,this.setValueFn_=c||A,this
.dontPassThroughSet_=d}function C(a,b){if("function"==typeof Object.observe){var
c=Object.getNotifier(a);return function(d,e){var f={object:a,type:d,name:b};2==
=arguments.length&&(f.oldValue=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.oldValu
e),g.type!=M&&(g.type!=L?g.name in d?(delete d[g.name],delete c[g.name]):e[g.nam
e]=!0:g.name in e?delete e[g.name]:d[g.name]=!0)):(console.error("Unknown change
Record type: "+g.type),console.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,removed:e,changed:i}}function E(a,b,c){return{index:a,re
moved:b,addedCount:c}}function F(){}function G(a,b,c,d,e,f){return yb.calcSplice
s(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.leng
th,e.addedCount+=i.addedCount-j;var k=e.removed.length+i.removed.length-j;if(e.a
ddedCount||k){var c=i.removed;if(e.index<i.index){var l=e.removed.slice(0,i.inde
x-e.index);Array.prototype.push.apply(l,c),c=l}if(e.index+e.removed.length>i.ind
ex+i.addedCount){var m=e.removed.slice(i.index+i.addedCount-e.index);Array.proto
type.push.apply(c,m)}e.removed=c,i.index<e.index&&(e.index=i.index)}else f=!0}el
se if(e.index<i.index){f=!0,a.splice(h,0,e),h++;var n=e.addedCount-e.removed.len
gth;i.index+=n,g+=n}}}f||a.push(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:if(!d(g.name))continue;var h=e(g.name);if(0>h)contin
ue;I(c,h,[g.oldValue],1);break;default:console.error("Unexpected record type: "+
JSON.stringify(g))}}return c}function K(a,b){var c=[];return J(a,b).forEach(func
tion(b){return 1==b.addedCount&&1==b.removed.length?void(b.removed[0]!==a[b.inde
x]&&c.push(b)):void(c=c.concat(G(a,b.index,b.index+b.addedCount,b.removed,0,b.re
moved.length)))}),c}var L="add",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)ret
urn a;var c=Object.create(b);return Object.getOwnPropertyNames(a).forEach(functi
on(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},iterateObjects:function(a,b){for(var c=0;c<this.length;c
++){if(c&&(a=a[this[c-1]]),!a)return;b(a)}},compiledGetValueFromFn:function(){va
r a=this.map(function(a){return d(a)?'["'+a+'"]':"."+a}),b="",c="obj";b+="if (ob
j != 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)},setValueFrom: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.pingPo
ng=!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)t
hrow Error("Observer has already 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.state_=lb,this.disconnect_(),this.value_=void 0,this.
callback_=void 0,this.target_=void 0)},deliver:function(){this.state_==kb&&k(thi
s)},report_:function(a){try{this.callback_.apply(this.target_,a)}catch(b){t._err
orThrownDuringCallback=!0,console.error("Exception caught during observer callba
ck: "+(b.stack||b))}},discardChanges:function(){return this.check_(void 0,!0),th
is.value_}};var ob,pb=!Q;t._allObserversCount=0,pb&&(ob=[]);var qb=!1,rb="functi
on"==typeof Object.deliverAllChangeRecords;a.Platform=a.Platform||{},a.Platform.
performMicrotaskCheckpoint=function(){if(!qb){if(rb)return void Object.deliverAl
lChangeRecords();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.state_==kb&&(f.check_()&&(b=!0),ob.push(f))}o()&&(b=!0
)}while(db>d&&b);a.testingExposeCycleCount&&(a.dirtyCheckCycleCount=d),qb=!1}}},
pb&&(a.Platform.clearObservers=function(){ob=[]}),w.prototype=T({__proto__:t.pro
totype,arrayObserve:!1,connect_:function(){Q?this.directObserver_=q(this,this.va
lue_,this.arrayObserve):this.oldObject_=this.copyObject(this.value_)},copyObject
:function(a){var b=Array.isArray(a)?[]:{};for(var c in a)b[c]=a[c];return Array.
isArray(a)&&(b.length=a.length),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.oldObje
ct_);return m(b)?!1:(Q||(this.oldObject_=this.copyObject(this.value_)),this.repo
rt_([b.added||{},b.removed||{},b.changed||{},function(a){return c[a]}]),!0)},dis
connect_:function(){Q?(this.directObserver_.close(),this.directObserver_=void 0)
:this.oldObject_=void 0},deliver:function(){this.state_==kb&&(Q?this.directObser
ver_.deliver(!1):k(this))},discardChanges:function(){return this.directObserver_
?this.directObserver_.deliver(!0):this.oldObject_=this.copyObject(this.value_),t
his.value_}}),x.prototype=T({__proto__:w.prototype,arrayObserve:!0,copyObject:fu
nction(a){return a.slice()},check_:function(a){var b;if(Q){if(!a)return!1;b=K(th
is.value_,a)}else b=G(this.value_,0,this.value_.length,this.oldObject_,0,this.ol
dObject_.length);return b&&b.length?(Q||(this.oldObject_=this.copyObject(this.va
lue_)),this.report_([b]),!0):!1}}),x.applySplices=function(a,b,c){c.forEach(func
tion(c){for(var d=[c.index,c.removed.length],e=c.index;e<c.index+c.addedCount;)d
.push(b[e]),e++;Array.prototype.splice.apply(a,d)})},y.prototype=T({__proto__:t.
prototype,connect_:function(){Q&&(this.directObserver_=s(this,this.object_)),thi
s.check_(void 0,!0)},disconnect_:function(){this.value_=void 0,this.directObserv
er_&&(this.directObserver_.close(this),this.directObserver_=void 0)},iterateObje
cts_:function(a){this.path_.iterateObjects(this.object_,a)},check_:function(a,b)
{var c=this.value_;return this.value_=this.path_.getValueFrom(this.object_),b||g
(this.value_,c)?!1:(this.report_([this.value_,c]),!0)},setValue:function(a){this
.path_&&this.path_.setValueFrom(this.object_,a)}});var sb={};z.prototype=T({__pr
oto__:t.prototype,connect_:function(){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}ret
urn this.directObserver_?b?void this.directObserver_.reset():(this.directObserve
r_.close(),void(this.directObserver_=void 0)):void(b&&(this.directObserver_=s(th
is,a)))}},closeObservers_:function(){for(var a=0;a<this.observed_.length;a+=2)th
is.observed_[a]===sb&&this.observed_[a+1].close();this.observed_.length=0},disco
nnect_:function(){this.value_=void 0,this.directObserver_&&(this.directObserver_
.close(this),this.directObserver_=void 0),this.closeObservers_()},addPath:functi
on(a,b){if(this.state_!=jb&&this.state_!=mb)throw Error("Cannot add paths once s
tarted.");this.observed_.push(a,b instanceof i?b:j(b))},addObserver:function(a){
if(this.state_!=jb&&this.state_!=mb)throw Error("Cannot add observers once start
ed.");a.open(this.deliver,this),this.observed_.push(sb,a)},startReset:function()
{if(this.state_!=kb)throw Error("Can only reset while open");this.state_=mb,this
.closeObservers_()},finishReset:function(){if(this.state_!=mb)throw Error("Can o
nly finishReset after startReset");return this.state_=kb,this.connect_(),this.va
lue_},iterateObjects_:function(a){for(var b,c=0;c<this.observed_.length;c+=2)b=t
his.observed_[c],b!==sb&&this.observed_[c+1].iterateObjects(b,a)},check_:functio
n(a,b){for(var c,d=0;d<this.observed_.length;d+=2){var e=this.observed_[d+1],f=t
his.observed_[d],h=f===sb?e.discardChanges():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={op
en:function(a,b){return this.callback_=a,this.target_=b,this.value_=this.getValu
eFn_(this.observable_.open(this.observedCallback_,this)),this.value_},observedCa
llback_: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:function(){return this.observable_.deliver()},setValue:f
unction(a){return a=this.setValueFn_(a),!this.dontPassThroughSet_&&this.observab
le_.setValue?this.observable_.setValue(a):void 0},close:function(){this.observab
le_&&this.observable_.close(),this.callback_=void 0,this.target_=void 0,this.obs
ervable_=void 0,this.value_=void 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(function(a,b){e=a,d&&d(M,b)});return Object.definePrope
rty(a,b,{get:function(){return c.deliver(),e},set:function(a){return c.setValue(
a),a},configurable:!0}),{close:function(){c.close(),Object.defineProperty(a,b,{v
alue:e,writable:!0,configurable:!0})}}};var ub=0,vb=1,wb=2,xb=3;F.prototype={cal
cEditDistances: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},spliceOperationsF
romEditDistances: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){var 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.push(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.re
verse(),e},calcSplices:function(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.sharedPrefix(a,d,i)),c==a.length&&f==d.length&&(h=this.share
dSuffix(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.push(d[e++]);return[j]}if(e==f)return[E(b,[],c-b)];for
(var k=this.spliceOperationsFromEditDistances(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 vb:j||(j=E(m,[],0)),j.addedCount++,m++,j.removed.pus
h(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:functi
on(a,b,c){for(var d=0;c>d;d++)if(!this.equals(a[d],b[d]))return d;return c},shar
edSuffix: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},calculateSplices: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.calculateSplices=function(a,b){return yb.calculateSplices(a,b)}
,a.ArraySplice=F,a.ObjectObserver=w,a.PathObserver=y,a.CompoundObserver=z,a.Path
=i,a.ObserverTransform=B,a.Observer.changeRecordTypes={add:L,update:M,reconfigur
e:N,"delete":O,splice:P}}("undefined"!=typeof global&&global&&"undefined"!=typeo
f module&&module?global:this||window),"undefined"==typeof WeakMap&&!function(){v
ar a=Object.defineProperty,b=Date.now()%1e9,c=function(){this.name="__st"+(1e9*M
ath.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){va
r b;return(b=a[this.name])&&b[0]===a?b[1]:void 0},"delete":function(a){this.set(
a,void 0)}},window.WeakMap=c}(),window.ShadowDOMPolyfill={},function(a){"use str
ict";function b(a){if(!a)throw new Error("Assertion failed")}function c(a,b){ret
urn L(b).forEach(function(c){K(a,c,M(b,c))}),a}function d(a,b){return L(b).forEa
ch(function(c){switch(c){case"arguments":case"caller":case"length":case"name":ca
se"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);return 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)}function k(a){retur
n H&&j(a)?new Function("return this.impl."+a):function(){return this.impl[a]}}fu
nction l(a){return H&&j(a)?new Function("v","this.impl."+a+" = v"):function(b){t
his.impl[a]=b}}function m(a){return H&&j(a)?new Function("return this.impl."+a+"
.apply(this.impl, arguments)"):function(){return this.impl[a].apply(this.impl,ar
guments)}}function n(a,b){try{return Object.getOwnPropertyDescriptor(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.polymerBlackList_[g]))
{N&&b.__lookupGetter__(g);var h,j,o=n(b,g);if(d&&"function"==typeof o.value)c[g]
=m(g);else{var p=i(g);h=p?a.getEventHandlerGetter(g):k(g),(o.writable||o.set)&&(
j=p?a.getEventHandlerSetter(g):l(g)),K(c,g,{get:h,set:j,configurable:o.configura
ble,enumerable:o.enumerable})}}}}function p(a,b,c){var e=a.prototype;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,wr
itable:!0})}function r(a,b){return E.get(b.prototype)===a}function s(a){var b=Ob
ject.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.cons
tructor=b,b}function u(a){return a instanceof G.EventTarget||a instanceof G.Even
t||a instanceof G.Range||a instanceof G.DOMImplementation||a instanceof G.Canvas
RenderingContext2D||G.WebGLRenderingContext&&a instanceof G.WebGLRenderingContex
t}function v(a){return Q&&a instanceof Q||a instanceof S||a instanceof R||a inst
anceof 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.polymerWrapper_||(a
.polymerWrapper_=new(f(a))(a)))}function x(a){return null===a?null:(b(u(a)),a.im
pl)}function y(a){return a&&u(a)?x(a):a}function z(a){return a&&!u(a)?w(a):a}fun
ction A(a,c){null!==c&&(b(v(a)),b(void 0===c||u(c)),a.polymerWrapper_=c)}functio
n 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.forEach(function(a
){b.forEach(function(b){a.prototype[b]=function(){var a=z(this);return a[b].appl
y(a,arguments)}})})}var E=new WeakMap,F=new WeakMap,G=Object.create(null),H=!("s
ecurityPolicy"in document)||document.securityPolicy.allowsEval;if(H)try{var I=ne
w Function("","return true;");H=I()}catch(J){H=!1}var K=Object.defineProperty,L=
Object.getOwnPropertyNames,M=Object.getOwnPropertyDescriptor;L(window);var N=/Fi
refox/.test(navigator.userAgent),O={get:function(){},set:function(){},configurab
le:!0,enumerable:!0},P=window.DOMImplementation,Q=window.EventTarget,R=window.Ev
ent,S=window.Node,T=window.Window,U=window.Range,V=window.CanvasRenderingContext
2D,W=window.WebGLRenderingContext,X=window.SVGElementInstance;a.assert=b,a.const
ructorTable=E,a.defineGetter=B,a.defineWrapGetter=C,a.forwardMethodsToWrapper=D,
a.isWrapper=u,a.isWrapperFor=r,a.mixin=c,a.nativePrototypeTable=F,a.oneOf=e,a.re
gisterObject=s,a.registerWrapper=p,a.rewrap=A,a.unwrap=x,a.unwrapIfNeeded=y,a.wr
ap=w,a.wrapIfNeeded=z,a.wrappers=G}(window.ShadowDOMPolyfill),function(a){"use s
trict";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.MutationObserver,f=[],g
=!1;if(e){var h=1,i=new e(b),j=document.createTextNode(h);i.observe(j,{character
Data:!0}),d=function(){h=(h+1)%2,j.data=h}}else d=window.setImmediate||window.se
tTimeout;a.setEndOfMicrotask=c}(window.ShadowDOMPolyfill),function(a){"use stric
t";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.addedNodes=new m.No
deList,this.removedNodes=new m.NodeList,this.previousSibling=null,this.nextSibli
ng=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}
function e(a,b){for(;a;a=a.parentNode){var c=n.get(a);if(c)for(var d=0;d<c.lengt
h;d++){var e=c[d];e.options.subtree&&e.addTransientObserver(b)}}}function f(a){f
or(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.removeTransientObservers()}
}}function g(a,c,e){for(var f=Object.create(null),g=Object.create(null),h=a;h;h=
h.parentNode){var i=n.get(h);if(i)for(var j=0;j<i.length;j++){var k=i[j],l=k.opt
ions;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.childList)){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){v
ar m=f[p],q=new d(c,a);"name"in e&&"namespace"in e&&(q.attributeName=e.name,q.at
tributeNamespace=e.namespace),e.addedNodes&&(q.addedNodes=e.addedNodes),e.remove
dNodes&&(q.removedNodes=e.removedNodes),e.previousSibling&&(q.previousSibling=e.
previousSibling),e.nextSibling&&(q.nextSibling=e.nextSibling),void 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="attributes"in a||!("attrib
uteOldValue"in a||"attributeFilter"in a)?!!a.attributes:!0,this.characterData="c
haracterDataOldValue"in a&&!("characterData"in a)?!0:!!a.characterData,!this.att
ributes&&(a.attributeOldValue||"attributeFilter"in a)||!this.characterData&&a.ch
aracterDataOldValue)throw new TypeError;if(this.characterData=!!a.characterData,
this.attributeOldValue=!!a.attributeOldValue,this.characterDataOldValue=!!a.char
acterDataOldValue,"attributeFilter"in a){if(null==a.attributeFilter||"object"!=t
ypeof a.attributeFilter)throw new TypeError;this.attributeFilter=q.call(a.attrib
uteFilter)}else this.attributeFilter=null}function i(a){this.callback_=a,this.no
des_=[],this.records_=[],this.uid_=++r,o.push(this)}function j(a,b,c){this.obser
ver=a,this.target=b,this.options=c,this.transientObservedNodes=[]}var k=a.setEnd
OfMicrotask,l=a.wrapIfNeeded,m=a.wrappers,n=new WeakMap,o=[],p=!1,q=Array.protot
ype.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.nod
es_.push(a))},disconnect:function(){this.nodes_.forEach(function(a){for(var b=n.
get(a),c=0;c<b.length;c++){var d=b[c];if(d.observer===this){b.splice(c,1);break}
}},this),this.records_=[]},takeRecords:function(){var a=this.records_;return thi
s.records_=[],a}},j.prototype={addTransientObserver:function(a){if(a!==this.targ
et){this.transientObservedNodes.push(a);var b=n.get(a);b||n.set(a,b=[]),b.push(t
his)}},removeTransientObservers:function(){var a=this.transientObservedNodes;thi
s.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.enqueueMutation=g,a
.registerTransientObservers=e,a.wrappers.MutationObserver=i,a.wrappers.MutationR
ecord=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){return
a instanceof Q.ShadowRoot}function c(a){var b=a.localName;return"content"===b||
"shadow"===b}function d(a){return!!a.shadowRoot}function e(a){var b;return a.par
entNode||(b=a.defaultView)&&P(b)||null}function f(f,g,h){if(h.length)return h.sh
ift();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++)if(m[k].contains(n
))return n}return e(f)}function g(a){for(var d=[],e=a,g=[],i=[];e;){var j=null;i
f(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]))return a[b];return nul
l}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);i
f(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.paren
tNode}}function j(b){return a.insertionParentTable.get(b)}function k(a){return j
(a)}function l(a){for(var b;b=a.parentNode;)a=b;return a}function m(a,b){return
l(a)===l(b)}function n(a,b){return a===b?!0:a instanceof Q.ShadowRoot?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)))}f
unction p(b,c){if(T.get(b))throw new Error("InvalidStateError");T.set(b,!0),a.re
nderAllPending();var d=g(c);return"load"===b.type&&2===d.length&&d[0].target ins
tanceof 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.le
ngth-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.AT_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){var 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)return!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++){v
ar n=f[m];if(n.removed)l=!0;else if(!(n.type!==k||!n.capture&&c===v.CAPTURING_PH
ASE||n.capture&&c===v.BUBBLING_PHASE))try{if("function"==typeof n.handler?n.hand
ler.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.len
gth=0;for(var m=0;m<p.length;m++)p[m].removed||f.push(p[m])}return!Y.get(b)}func
tion 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){ret
urn 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?voi
d(this.impl=b):P(z(d,a,b,c))};if(e.prototype=Object.create(b.prototype),c&&M(e.p
rototype,c),d)try{N(d,e,new d("temp"))}catch(f){N(d,e,document.createEvent(a))}r
eturn e}function y(a,b){return function(){arguments[b]=O(arguments[b]);var c=O(t
his);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(functi
on(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"DOMAttrModified":ca
se"DOMAttributeNameChanged":case"DOMCharacterDataModified":case"DOMElementNameCh
anged":case"DOMNodeInserted":case"DOMNodeInsertedIntoDocument":case"DOMNodeRemov
ed":case"DOMNodeRemovedFromDocument":case"DOMSubtreeModified":return!0}return!1}
function D(a){this.impl=a}function E(a){return a instanceof Q.ShadowRoot&&(a=a.h
ost),O(a)}function F(a,b){var c=R.get(a);if(c)for(var d=0;d<c.length;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.le
ngth;i++){var j=h[i];if(j.currentTarget===b)return j.target}return null}function
J(a){return function(){var b=$.get(this);return b&&b[a]&&b[a].value||null}}func
tion K(a){var b=a.slice(2);return function(c){var d=$.get(this);d||(d=Object.cre
ate(null),$.set(this,d));var e=d[a];if(e&&this.removeEventListener(b,e.wrapped,!
1),"function"==typeof c){var f=function(b){var d=c.call(this,b);d===!1?b.prevent
Default():"onbeforeunload"===a&&"string"==typeof d&&(b.returnValue=d)};this.addE
ventListener(b,f,!1),d[a]={value:c,wrapped:f}}}}var L=a.forwardMethodsToWrapper,
M=a.mixin,N=a.registerWrapper,O=a.unwrap,P=a.wrap,Q=a.wrappers,R=(new WeakMap,ne
w WeakMap),S=new WeakMap,T=new WeakMap,U=new WeakMap,V=new WeakMap,W=new WeakMap
,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,$=new WeakMap,_=new WeakMap;u.prototy
pe={equals:function(a){return this.handler===a.handler&&this.type===a.type&&this
.capture===a.capture},get removed(){return null===this.handler},remove:function(
){this.handler=null}};var ab=window.Event;ab.prototype.polymerBlackList_={return
Value:!0,keyLocation:!0},v.prototype={get target(){return U.get(this)},get curre
ntTarget(){return V.get(this)},get eventPhase(){return X.get(this)},get path(){v
ar 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.N
ode)&&(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,docu
ment.createEvent("Event"));var bb=x("UIEvent",v),cb=x("CustomEvent",v),db={get r
elatedTarget(){return W.get(this)||P(O(this).relatedTarget)}},eb=M({initMouseEve
nt:y("initMouseEvent",14)},db),fb=M({initFocusEvent:y("initFocusEvent",5)},db),g
b=x("MouseEvent",bb,eb),hb=x("FocusEvent",bb,fb),ib=Object.create(null),jb=funct
ion(){try{new window.FocusEvent("focus")}catch(a){return!1}return!0}();if(!jb){v
ar kb=function(a,b,c){if(c){var d=ib[c];b=M(M({},d),b)}ib[a]=b};kb("Event",{bubb
les:!1,cancelable:!1}),kb("CustomEvent",{detail:null},"Event"),kb("UIEvent",{vie
w:null,detail:0},"Event"),kb("MouseEvent",{screenX:0,screenY:0,clientX:0,clientY
:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null},"UIE
vent"),kb("FocusEvent",{relatedTarget:null},"UIEvent")}A.prototype=Object.create
(v.prototype),M(A.prototype,{get returnValue(){return this.impl.returnValue},set
returnValue(a){this.impl.returnValue=a}});var lb=window.EventTarget,mb=["addEve
ntListener","removeEventListener","dispatchEvent"];[Node,Window].forEach(functio
n(a){var b=a.prototype;mb.forEach(function(a){Object.defineProperty(b,a+"_",{val
ue: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.addEventListener_(a,o,!
0) | |
2 }},removeEventListener:function(a,b,c){c=Boolean(c);var d=R.get(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].handl
er===b&&(f=!0,d[g].remove()));if(f&&1===e){var h=E(this);h.removeEventListener_(
a,o,!0)}}},dispatchEvent:function(b){var c=O(b),d=c.type;S.set(c,!1),a.renderAll
Pending();var e;G(this,d)||(e=function(){},this.addEventListener(d,e,!0));try{re
turn O(this).dispatchEvent_(c)}finally{e&&this.removeEventListener(d,e,!0)}}},lb
&&N(lb,D);var nb=document.elementFromPoint;a.adjustRelatedTarget=i,a.elementFrom
Point=I,a.getEventHandlerGetter=J,a.getEventHandlerSetter=K,a.wrapEventTargetMet
hods=H,a.wrappers.BeforeUnloadEvent=A,a.wrappers.CustomEvent=cb,a.wrappers.Event
=v,a.wrappers.EventTarget=D,a.wrappers.FocusEvent=hb,a.wrappers.MouseEvent=gb,a.
wrappers.UIEvent=bb}(window.ShadowDOMPolyfill),function(a){"use 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.prototype[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.wrappers.NodeList=c,a.
addWrapNodeListMethod=e,a.wrapNodeList=d}(window.ShadowDOMPolyfill),function(a){
"use strict";function b(a){x(a instanceof u)}function c(a){var b=new w;return b[
0]=a,b.length=1,b}function d(a,b,c){z(b,"childList",{removedNodes:c,previousSibl
ing:a.previousSibling,nextSibling:a.nextSibling})}function e(a,b){z(a,"childList
",{removedNodes:b})}function f(a,b,d,e){if(a instanceof DocumentFragment){var f=
h(a);H=!0;for(var g=f.length-1;g>=0;g--)a.removeChild(f[g]),f[g].parentNode_=b;H
=!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.previousSibling_=f[f.length-1])
,f}var f=c(a),i=a.parentNode;return i&&i.removeChild(a),a.parentNode_=b,a.previo
usSibling_=d,a.nextSibling_=e,d&&(d.nextSibling_=a),e&&(e.previousSibling_=a),f}
function g(a){if(a instanceof DocumentFragment)return h(a);var b=c(a),e=a.parent
Node;return e&&d(a,e,b),b}function h(a){for(var b=new w,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])}funct
ion l(){}function m(){}function n(a,b){var c=a.nodeType===u.DOCUMENT_NODE?a:a.ow
nerDocument;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.length;e++)a.adoptN
odeNoRemove(c[e],d)}}function p(a,b){o(a,b);var c=b.length;if(1===c)return E(b[0
]);for(var d=E(a.ownerDocument.createDocumentFragment()),e=0;c>e;e++)d.appendChi
ld(E(b[e]));return d}function q(a){if(void 0!==a.firstChild_)for(var b=a.firstCh
ild_;b;){var c=b;b=b.nextSibling_,c.parentNode_=c.previousSibling_=c.nextSibling
_=void 0}a.firstChild_=a.lastChild_=void 0}function r(a){if(a.invalidateShadowRe
nderer()){for(var b=a.firstChild;b;){x(b.parentNode===a);var c=b.nextSibling,d=E
(b),e=d.parentNode;e&&M.call(e,d),b.previousSibling_=b.nextSibling_=b.parentNode
_=null,b=c}a.firstChild_=a.lastChild_=null}else for(var c,f=E(a),g=f.firstChild;
g;)c=g.nextSibling,M.call(f,g),g=c}function s(a){var b=a.parentNode;return b&&b.
invalidateShadowRenderer()}function t(a){for(var b,c=0;c<a.length;c++)b=a[c],b.p
arentNode.removeChild(b)}function u(a){x(a instanceof I),v.call(this,a),this.par
entNode_=void 0,this.firstChild_=void 0,this.lastChild_=void 0,this.nextSibling_
=void 0,this.previousSibling_=void 0}var v=a.wrappers.EventTarget,w=a.wrappers.N
odeList,x=a.assert,y=a.defineWrapGetter,z=a.enqueueMutation,A=a.isWrapper,B=a.mi
xin,C=a.registerTransientObservers,D=a.registerWrapper,E=a.unwrap,F=a.wrap,G=a.w
rapIfNeeded,H=!1,I=window.Node,J=window.DocumentFragment,K=(I.prototype.appendCh
ild,I.prototype.compareDocumentPosition),L=I.prototype.insertBefore,M=I.prototyp
e.removeChild,N=I.prototype.replaceChild,O=/Trident/.test(navigator.userAgent),P
=O?function(a,b){try{M.call(a,b)}catch(c){if(!(a instanceof J))throw c}}:functio
n(a,b){M.call(a,b)};u.prototype=Object.create(v.prototype),B(u.prototype,{append
Child:function(a){return this.insertBefore(a,null)},insertBefore:function(a,c){b
(a);var d;c?A(c)?d=E(c):(d=c,c=F(d)):(c=null,d=null),c&&x(c.parentNode===this);v
ar e,h=c?c.previousSibling:this.lastChild,i=!this.invalidateShadowRenderer()&&!s
(a);if(e=i?g(a):f(a,this,h,c),i)n(this,a),q(this),L.call(this.impl,E(a),d);else{
h||(this.firstChild_=e[0]),c||(this.lastChild_=e[e.length-1]);var j=d?d.parentNo
de:this.impl;j?L.call(j,p(this,e),d):o(this,e)}return z(this,"childList",{addedN
odes:e,nextSibling:c,previousSibling:h}),k(e),a},removeChild:function(a){if(b(a)
,a.parentNode!==this){for(var d=!1,e=(this.childNodes,this.firstChild);e;e=e.nex
tSibling)if(e===a){d=!0;break}if(!d)throw new Error("NotFoundError")}var f=E(a),
g=a.nextSibling,h=a.previousSibling;if(this.invalidateShadowRenderer()){var i=th
is.firstChild,j=this.lastChild,k=f.parentNode;k&&P(k,f),i===a&&(this.firstChild_
=g),j===a&&(this.lastChild_=h),h&&(h.nextSibling_=g),g&&(g.previousSibling_=h),a
.previousSibling_=a.nextSibling_=a.parentNode_=void 0}else q(this),P(this.impl,f
);return H||z(this,"childList",{removedNodes:c(a),nextSibling:g,previousSibling:
h}),C(this,a),a},replaceChild:function(a,d){b(a);var e;if(A(d)?e=E(d):(e=d,d=F(e
)),d.parentNode!==this)throw new Error("NotFoundError");var h,i=d.nextSibling,j=
d.previousSibling,m=!this.invalidateShadowRenderer()&&!s(a);return m?h=g(a):(i==
=a&&(i=a.nextSibling),h=f(a,this,j,i)),m?(n(this,a),q(this),N.call(this.impl,E(a
),e)):(this.firstChild===d&&(this.firstChild_=h[0]),this.lastChild===d&&(this.la
stChild_=h[h.length-1]),d.previousSibling_=d.nextSibling_=d.parentNode_=void 0,e
.parentNode&&N.call(e.parentNode,p(this,h),e)),z(this,"childList",{addedNodes:h,
removedNodes:c(d),nextSibling:i,previousSibling:j}),l(d),k(h),d},nodeIsInserted_
:function(){for(var a=this.firstChild;a;a=a.nextSibling)a.nodeIsInserted_()},has
ChildNodes:function(){return null!==this.firstChild},get parentNode(){return voi
d 0!==this.parentNode_?this.parentNode_:F(this.impl.parentNode)},get firstChild(
){return void 0!==this.firstChild_?this.firstChild_:F(this.impl.firstChild)},get
lastChild(){return void 0!==this.lastChild_?this.lastChild_:F(this.impl.lastChi
ld)},get nextSibling(){return void 0!==this.nextSibling_?this.nextSibling_:F(thi
s.impl.nextSibling)},get previousSibling(){return void 0!==this.previousSibling_
?this.previousSibling_:F(this.impl.previousSibling)},get parentElement(){for(var
a=this.parentNode;a&&a.nodeType!==u.ELEMENT_NODE;)a=a.parentNode;return a},get
textContent(){for(var a="",b=this.firstChild;b;b=b.nextSibling)b.nodeType!=u.COM
MENT_NODE&&(a+=b.textContent);return a},set textContent(a){var b=i(this.childNod
es);if(this.invalidateShadowRenderer()){if(r(this),""!==a){var c=this.impl.owner
Document.createTextNode(a);this.appendChild(c)}}else q(this),this.impl.textConte
nt=a;var d=i(this.childNodes);z(this,"childList",{addedNodes:d,removedNodes:b}),
m(b),k(d)},get childNodes(){for(var a=new w,b=0,c=this.firstChild;c;c=c.nextSibl
ing)a[b++]=c;return a.length=b,a},cloneNode:function(a){var b=F(this.impl.cloneN
ode(!1));if(a)for(var c=this.firstChild;c;c=c.nextSibling)b.appendChild(c.cloneN
ode(!0));return b},contains:function(a){if(!a)return!1;if(a=G(a),a===this)return
!0;var b=a.parentNode;return b?this.contains(b):!1},compareDocumentPosition:func
tion(a){return K.call(this.impl,E(a))},normalize:function(){for(var a,b,c=i(this
.childNodes),d=[],e="",f=0;f<c.length;f++)b=c[f],b.nodeType===u.TEXT_NODE?a||b.d
ata.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.normalize());a&&d.le
ngth&&(a.data+=e,t(d))}}),y(u,"ownerDocument"),D(I,u,document.createDocumentFrag
ment()),delete u.prototype.querySelector,delete u.prototype.querySelectorAll,u.p
rototype=B(Object.create(v.prototype),u.prototype),a.nodeWasAdded=j,a.nodeWasRem
oved=l,a.nodesWereAdded=k,a.nodesWereRemoved=m,a.snapshotNodeList=i,a.wrappers.N
ode=u}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a,c){for(va
r d,e=a.firstElementChild;e;){if(e.matches(c))return e;if(d=b(e,c))return d;e=e.
nextElementSibling}return null}function c(a,b,d){for(var e=a.firstElementChild;e
;)e.matches(b)&&(d[d.length++]=e),c(e,b,d),e=e.nextElementSibling;return d}var d
={querySelector:function(a){return b(this,a)},querySelectorAll:function(a){retur
n c(this,a,new NodeList)}},e={getElementsByTagName:function(a){return this.query
SelectorAll(a)},getElementsByClassName:function(a){return this.querySelectorAll(
"."+a)},getElementsByTagNameNS:function(a,b){if("*"===a)return this.getElementsB
yTagName(b);for(var c=new NodeList,d=this.getElementsByTagName(b),e=0,f=0;e<d.le
ngth;e++)d[e].namespaceURI===a&&(c[f++]=d[e]);return c.length=f,c}};a.GetElement
sByInterface=e,a.SelectorsInterface=d}(window.ShadowDOMPolyfill),function(a){"us
e strict";function b(a){for(;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;
return a}function c(a){for(;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibli
ng;return a}var d=a.wrappers.NodeList,e={get firstElementChild(){return b(this.f
irstChild)},get lastElementChild(){return c(this.lastChild)},get childElementCou
nt(){for(var a=0,b=this.firstElementChild;b;b=b.nextElementSibling)a++;return a}
,get children(){for(var a=new d,b=0,c=this.firstElementChild;c;c=c.nextElementSi
bling)a[b++]=c;return a.length=b,a}},f={get nextElementSibling(){return b(this.n
extSibling)},get previousElementSibling(){return c(this.previousSibling)}};a.Chi
ldNodeInterface=f,a.ParentNodeInterface=e}(window.ShadowDOMPolyfill),function(a)
{"use strict";function b(a){d.call(this,a)}var c=a.ChildNodeInterface,d=a.wrappe
rs.Node,e=a.enqueueMutation,f=a.mixin,g=a.registerWrapper,h=window.CharacterData
;b.prototype=Object.create(d.prototype),f(b.prototype,{get textContent(){return
this.data},set textContent(a){this.data=a},get data(){return this.impl.data},set
data(a){var b=this.impl.data;e(this,"characterData",{oldValue:b}),this.impl.dat
a=a}}),f(b.prototype,c),g(h,b,document.createTextNode("")),a.wrappers.CharacterD
ata=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.enqueueMut
ation,a.mixin),f=a.registerWrapper,g=window.Text;c.prototype=Object.create(d.pro
totype),e(c.prototype,{splitText:function(a){a=b(a);var c=this.data;if(a>c.lengt
h)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.parentNo
de.insertBefore(f,this.nextSibling),f}}),f(g,c,document.createTextNode("")),a.wr
appers.Text=c}(window.ShadowDOMPolyfill),function(a){"use strict";function b(b,c
){var d=b.parentNode;if(d&&d.shadowRoot){var e=a.getRendererForHost(d);e.depends
OnAttribute(c)&&e.invalidate()}}function c(a,b,c){k(a,"attributes",{name:b,names
pace: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,enumerable:!0})}var f=a.ChildNodeInter
face,g=a.GetElementsByInterface,h=a.wrappers.Node,i=a.ParentNodeInterface,j=a.Se
lectorsInterface,k=(a.addWrapNodeListMethod,a.enqueueMutation),l=a.mixin,m=(a.on
eOf,a.registerWrapper),n=a.wrappers,o=window.Element,p=["matches","mozMatchesSel
ector","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(this);return c.invalidate(),b},g
et shadowRoot(){return this.impl.polymerShadowRoot_||null},setAttribute:function
(a,d){var e=this.impl.getAttribute(a);this.impl.setAttribute(a,d),c(this,a,e),b(
this,a)},removeAttribute:function(a){var d=this.impl.getAttribute(a);this.impl.r
emoveAttribute(a),c(this,a,d),b(this,a)},matches:function(a){return r.call(this.
impl,a)}}),p.forEach(function(a){"matches"!==a&&(d.prototype[a]=function(a){retu
rn this.matches(a)})}),o.prototype.webkitCreateShadowRoot&&(d.prototype.webkitCr
eateShadowRoot=d.prototype.createShadowRoot),e(d.prototype,"id"),e(d.prototype,"
className","class"),l(d.prototype,f),l(d.prototype,g),l(d.prototype,i),l(d.proto
type,j),m(o,d,document.createElementNS(null,"x")),a.matchesNames=p,a.wrappers.El
ement=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){switch
(a){case"&":return"&";case"<":return"<";case">":return">";case'"':retu
rn""";case" ":return" "}}function c(a){return a.replace(y,b)}function
d(a){return a.replace(z,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){case 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+=">",A[f]?h:h+g(a)+"</"+f+">";case Node.TEXT_NODE:va
r k=a.data;return b&&B[b.localName]?k:d(k);case Node.COMMENT_NODE:return"<!--"+a
.data+"-->";default:throw console.error(a),new Error("not implemented")}}functio
n g(a){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=/[& "]/g,z=/[& <>]/g,A=e(["area","base","br","col
","command","embed","hr","img","input","keygen","link","meta","param","source","
track","wbr"]),B=e(["style","script","xmp","iframe","noembed","noframes","plaint
ext","noscript"]),C=/MSIE/.test(navigator.userAgent),D=window.HTMLElement;i.prot
otype=Object.create(o.prototype),r(i.prototype,{get innerHTML(){return g(this)},
set innerHTML(a){if(C&&B[this.localName])return void(this.textContent=a);var b=v
(this.childNodes);this.invalidateShadowRenderer()?h(this,a,this.tagName):this.im
pl.innerHTML=a;var c=v(this.childNodes);q(this,"childList",{addedNodes:c,removed
Nodes:b}),t(b),s(c)},get outerHTML(){return f(this,this.parentNode)},set outerHT
ML(a){var b=this.parentNode;if(b){b.invalidateShadowRenderer();var c=j(b,a);b.re
placeChild(c,this)}},insertAdjacentHTML:function(a,b){var c,d;switch(String(a).t
oLowerCase()){case"beforebegin":c=this.parentNode,d=this;break;case"afterend":c=
this.parentNode,d=this.nextSibling;break;case"afterbegin":c=this,d=this.firstChi
ld;break;case"beforeend":c=this,d=null;break;default:return}var e=j(c,b);c.inser
tBefore(e,d)}}),["clientHeight","clientLeft","clientTop","clientWidth","offsetHe
ight","offsetLeft","offsetTop","offsetWidth","scrollHeight","scrollWidth"].forEa
ch(l),["scrollLeft","scrollTop"].forEach(m),["getBoundingClientRect","getClientR
ects","scrollIntoView"].forEach(n),u(D,i,document.createElement("b")),a.wrappers
.HTMLElement=i,a.getInnerHTML=g,a.setInnerHTML=h}(window.ShadowDOMPolyfill),func
tion(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d
=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.HTMLCanvasElement;b.prototype=Obj
ect.create(c.prototype),d(b.prototype,{getContext:function(){var a=this.impl.get
Context.apply(this.impl,arguments);return a&&f(a)}}),e(g,b,document.createElemen
t("canvas")),a.wrappers.HTMLCanvasElement=b}(window.ShadowDOMPolyfill),function(
a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HTMLElement,d=a.mi
xin,e=a.registerWrapper,f=window.HTMLContentElement;b.prototype=Object.create(c.
prototype),d(b.prototype,{get select(){return this.getAttribute("select")},set s
elect(a){this.setAttribute("select",a)},setAttribute:function(a,b){c.prototype.s
etAttribute.call(this,a,b),"select"===String(a).toLowerCase()&&this.invalidateSh
adowRenderer(!0)}}),f&&e(f,b),a.wrappers.HTMLContentElement=b}(window.ShadowDOMP
olyfill),function(a){"use strict";function b(a){d.call(this,a)}function c(a,b){i
f(!(this instanceof c))throw new TypeError("DOM object constructor cannot be cal
led as a function.");var e=f(document.createElement("img"));d.call(this,e),g(e,t
his),void 0!==a&&(e.width=a),void 0!==b&&(e.height=b)}var d=a.wrappers.HTMLEleme
nt,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLImageElement;b.prototy
pe=Object.create(d.prototype),e(h,b,document.createElement("img")),c.prototype=b
.prototype,a.wrappers.HTMLImageElement=b,a.wrappers.Image=c}(window.ShadowDOMPol
yfill),function(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.HT
MLElement,d=a.mixin,e=a.registerWrapper,f=window.HTMLShadowElement;b.prototype=O
bject.create(c.prototype),d(b.prototype,{}),f&&e(f,b),a.wrappers.HTMLShadowEleme
nt=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){if(!a.def
aultView)return a;var b=m.get(a);if(!b){for(b=a.implementation.createHTMLDocumen
t("");b.lastChild;)b.removeChild(b.lastChild);m.set(a,b)}return b}function c(a){
for(var c,d=b(a.ownerDocument),e=j(d.createDocumentFragment());c=a.firstChild;)e
.appendChild(c);return e}function d(a){if(e.call(this,a),!n){var b=c(a);l.set(th
is,k(b))}}var e=a.wrappers.HTMLElement,f=a.getInnerHTML,g=a.mixin,h=a.registerWr
apper,i=a.setInnerHTML,j=a.unwrap,k=a.wrap,l=new WeakMap,m=new WeakMap,n=window.
HTMLTemplateElement;d.prototype=Object.create(e.prototype),g(d.prototype,{get co
ntent(){return n?k(this.impl.content):l.get(this)},get innerHTML(){return f(this
.content)},set innerHTML(a){i(this.content,a)}}),n&&h(n,d),a.wrappers.HTMLTempla
teElement=d}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){c.
call(this,a)}var c=a.wrappers.HTMLElement,d=a.registerWrapper,e=window.HTMLMedia
Element;b.prototype=Object.create(c.prototype),d(e,b,document.createElement("aud
io")),a.wrappers.HTMLMediaElement=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 object constructor cannot be called as a function.");var b=f
(document.createElement("audio"));d.call(this,b),g(b,this),b.setAttribute("prelo
ad","auto"),void 0!==a&&b.setAttribute("src",a)}var d=a.wrappers.HTMLMediaElemen
t,e=a.registerWrapper,f=a.unwrap,g=a.rewrap,h=window.HTMLAudioElement;b.prototyp
e=Object.create(d.prototype),e(h,b,document.createElement("audio")),c.prototype=
b.prototype,a.wrappers.HTMLAudioElement=b,a.wrappers.Audio=c}(window.ShadowDOMPo
lyfill),function(a){"use strict";function b(a){return a.replace(/\s+/g," ").trim
()}function c(a){e.call(this,a)}function d(a,b,c,f){if(!(this instanceof d))thro
w new TypeError("DOM object constructor cannot be called as a function.");var g=
i(document.createElement("option"));e.call(this,g),h(g,this),void 0!==a&&(g.text
=a),void 0!==b&&g.setAttribute("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.prototype,{get text(){return b(this.textContent)},set text(a){
this.textContent=b(String(a))},get form(){return j(i(this).form)}}),g(k,c,docume
nt.createElement("option")),d.prototype=c.prototype,a.wrappers.HTMLOptionElement
=c,a.wrappers.Option=d}(window.ShadowDOMPolyfill),function(a){"use strict";funct
ion b(a){switch(a.localName){case"content":return new c(a);case"shadow":return n
ew e(a);case"template":return new f(a)}d.call(this,a)}var c=a.wrappers.HTMLConte
ntElement,d=a.wrappers.HTMLElement,e=a.wrappers.HTMLShadowElement,f=a.wrappers.H
TMLTemplateElement,g=(a.mixin,a.registerWrapper),h=window.HTMLUnknownElement;b.p
rototype=Object.create(d.prototype),g(h,b),a.wrappers.HTMLUnknownElement=b}(wind
ow.ShadowDOMPolyfill),function(a){"use strict";var b=a.registerObject,c="http://
www.w3.org/2000/svg",d=document.createElementNS(c,"title"),e=b(d),f=Object.getPr
ototypeOf(e.prototype).constructor;a.wrappers.SVGElement=f}(window.ShadowDOMPoly
fill),function(a){"use strict";function b(a){m.call(this,a)}var c=a.mixin,d=a.re
gisterWrapper,e=a.unwrap,f=a.wrap,g=window.SVGUseElement,h="http://www.w3.org/20
00/svg",i=f(document.createElementNS(h,"g")),j=document.createElementNS(h,"use")
,k=i.constructor,l=Object.getPrototypeOf(k.prototype),m=l.constructor;b.prototyp
e=Object.create(l),"instanceRoot"in j&&c(b.prototype,{get instanceRoot(){return
f(e(this).instanceRoot)},get animatedInstanceRoot(){return f(e(this).animatedIns
tanceRoot)}}),d(g,b,j),a.wrappers.SVGUseElement=b}(window.ShadowDOMPolyfill),fun
ction(a){"use strict";function b(a){c.call(this,a)}var c=a.wrappers.EventTarget,
d=a.mixin,e=a.registerWrapper,f=a.wrap,g=window.SVGElementInstance;g&&(b.prototy
pe=Object.create(c.prototype),d(b.prototype,{get correspondingElement(){return f
(this.impl.correspondingElement)},get correspondingUseElement(){return f(this.im
pl.correspondingUseElement)},get parentNode(){return f(this.impl.parentNode)},ge
t childNodes(){throw new Error("Not implemented")},get firstChild(){return f(thi
s.impl.firstChild)},get lastChild(){return f(this.impl.lastChild)},get previousS
ibling(){return f(this.impl.previousSibling)},get nextSibling(){return f(this.im
pl.nextSibling)}}),e(g,b),a.wrappers.SVGElementInstance=b)}(window.ShadowDOMPoly
fill),function(a){"use strict";function b(a){this.impl=a}var c=a.mixin,d=a.regis
terWrapper,e=a.unwrap,f=a.unwrapIfNeeded,g=a.wrap,h=window.CanvasRenderingContex
t2D;c(b.prototype,{get canvas(){return g(this.impl.canvas)},drawImage:function()
{arguments[0]=f(arguments[0]),this.impl.drawImage.apply(this.impl,arguments)},cr
eatePattern:function(){return arguments[0]=e(arguments[0]),this.impl.createPatte
rn.apply(this.impl,arguments)}}),d(h,b,document.createElement("canvas").getConte
xt("2d")),a.wrappers.CanvasRenderingContext2D=b}(window.ShadowDOMPolyfill),funct
ion(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(){return f(this.impl.canvas)},texImage2D:function(){arguments[5]=e(ar
guments[5]),this.impl.texImage2D.apply(this.impl,arguments)},texSubImage2D:funct
ion(){arguments[6]=e(arguments[6]),this.impl.texSubImage2D.apply(this.impl,argum
ents)}});var h=/WebKit/.test(navigator.userAgent)?{drawingBufferHeight:null,draw
ingBufferWidth:null}:{};d(g,b,h),a.wrappers.WebGLRenderingContext=b}}(window.Sha
dowDOMPolyfill),function(a){"use strict";function b(a){this.impl=a}var c=a.regis
terWrapper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap,g=window.Range;b.prototype={ge
t startContainer(){return f(this.impl.startContainer)},get endContainer(){return
f(this.impl.endContainer)},get commonAncestorContainer(){return f(this.impl.com
monAncestorContainer)},setStart:function(a,b){this.impl.setStart(e(a),b)},setEnd
:function(a,b){this.impl.setEnd(e(a),b)},setStartBefore:function(a){this.impl.se
tStartBefore(e(a))},setStartAfter:function(a){this.impl.setStartAfter(e(a))},set
EndBefore:function(a){this.impl.setEndBefore(e(a))},setEndAfter:function(a){this
.impl.setEndAfter(e(a))},selectNode:function(a){this.impl.selectNode(e(a))},sele
ctNodeContents:function(a){this.impl.selectNodeContents(e(a))},compareBoundaryPo
ints:function(a,b){return this.impl.compareBoundaryPoints(a,d(b))},extractConten
ts:function(){return f(this.impl.extractContents())},cloneContents:function(){re
turn f(this.impl.cloneContents())},insertNode:function(a){this.impl.insertNode(e
(a))},surroundContents:function(a){this.impl.surroundContents(e(a))},cloneRange:
function(){return f(this.impl.cloneRange())},isPointInRange:function(a,b){return
this.impl.isPointInRange(e(a),b)},comparePoint:function(a,b){return this.impl.c
omparePoint(e(a),b)},intersectsNode:function(a){return this.impl.intersectsNode(
e(a))},toString:function(){return this.impl.toString()}},g.prototype.createConte
xtualFragment&&(b.prototype.createContextualFragment=function(a){return f(this.i
mpl.createContextualFragment(a))}),c(window.Range,b,document.createRange()),a.wr
appers.Range=b}(window.ShadowDOMPolyfill),function(a){"use strict";var b=a.GetEl
ementsByInterface,c=a.ParentNodeInterface,d=a.SelectorsInterface,e=a.mixin,f=a.r
egisterObject,g=f(document.createDocumentFragment());e(g.prototype,c),e(g.protot
ype,d),e(g.prototype,b);var h=f(document.createComment(""));a.wrappers.Comment=h
,a.wrappers.DocumentFragment=g}(window.ShadowDOMPolyfill),function(a){"use stric
t";function b(a){var b=i(a.impl.ownerDocument.createDocumentFragment());c.call(t
his,b),g(b,this);var 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.prototype),f(b.prototype,{get innerHTML(){return e(this)},set i
nnerHTML(a){h(this,a),this.invalidateShadowRenderer()},get olderShadowRoot(){ret
urn k.get(this)||null},get host(){return j.get(this)||null},invalidateShadowRend
erer:function(){return j.get(this).invalidateShadowRenderer()},elementFromPoint:
function(a,b){return d(this,this.ownerDocument,a,b)},getElementById:function(a){
return l.test(a)?null:this.querySelector('[id="'+a+'"]')}}),a.wrappers.ShadowRoo
t=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){a.previous
Sibling_=a.previousSibling,a.nextSibling_=a.nextSibling,a.parentNode_=a.parentNo
de}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.firstChild_=e),e.previousSibling_=e.previousSibling;else{a.lastChild_=a
.lastChild,a.lastChild===a.firstChild&&(a.firstChild_=a.firstChild);var i=G(f.la
stChild);i&&(i.nextSibling_=i.nextSibling)}f.insertBefore(g,h)}function d(a){var
c=F(a),d=c.parentNode;if(d){var e=G(d);b(a),a.previousSibling&&(a.previousSibli
ng.nextSibling_=a),a.nextSibling&&(a.nextSibling.previousSibling_=a),e.lastChild
===a&&(e.lastChild_=a),e.firstChild===a&&(e.firstChild_=a),d.removeChild(c)}}fun
ction e(a,b){g(b).push(a),x(a,b);var c=I.get(a);c||I.set(a,c=[]),c.push(b)}funct
ion f(a){H.set(a,[])}function g(a){return H.get(a)}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){for(var d
=a.firstChild;d;d=d.nextSibling)if(b(d)){if(c(d)===!1)return}else i(d,b,c)}funct
ion 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)}catch(d)
{return!1}}function k(){for(var a=0;a<O.length;a++)O[a].render();O=[]}function l
(){y=null,k()}function m(a){var b=K.get(a);return b||(b=new q(a),K.set(a,b)),b}f
unction n(a){for(;a;a=a.parentNode)if(a instanceof D)return a;return null}functi
on o(a){return m(a.host)}function p(a){this.skip=!1,this.node=a,this.childNodes=
[]}function q(a){this.host=a,this.dirty=!1,this.invalidateAttributes(),this.asso
ciateNode(a)}function r(a){return a instanceof A}function s(a){return a instance
of A}function t(a){return a instanceof B}function u(a){return a instanceof B}fun
ction v(a){return a.shadowRoot}function w(a){for(var b=[],c=a.shadowRoot;c;c=c.o
lderShadowRoot)b.push(c);return b}function x(a,b){J.set(a,b)}var y,z=a.wrappers.
Element,A=a.wrappers.HTMLContentElement,B=a.wrappers.HTMLShadowElement,C=a.wrapp
ers.Node,D=a.wrappers.ShadowRoot,E=(a.assert,a.mixin,a.oneOf),F=a.unwrap,G=a.wra
p,H=new WeakMap,I=new WeakMap,J=new WeakMap,K=new WeakMap,L=/^[*.:#[a-zA-Z_|]/,M
=new RegExp("^:("+["link","visited","target","enabled","disabled","checked","ind
eterminate","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","webkitRequest
AnimationFrame","setTimeout"]),O=[],P=new ArraySplice;P.equals=function(a,b){ret
urn F(a.node)===b},p.prototype={append:function(a){var b=new p(a);return this.ch
ildNodes.push(b),b},sync:function(a){if(!this.skip){for(var b=this.node,e=this.c
hildNodes,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.remov
ed.length,p=0;o>p;p++){var q=G(f[k++]);g.get(q)||d(q)}for(var r=n.addedCount,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.sync(g)}l
+=r}for(var m=l;m<e.length;m++)e[m].sync(g)}}},q.prototype={render:function(a){i
f(this.dirty){this.invalidateAttributes(),this.treeComposition();var b=this.host
,c=b.shadowRoot;this.associateNode(b);for(var d=!e,e=a||new p(b),f=c.firstChild;
f;f=f.nextSibling)this.renderNode(c,e,f,!1);d&&e.sync(),this.dirty=!1}},invalida
te:function(){if(!this.dirty){if(this.dirty=!0,O.push(this),y)return;y=window[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.renderShado
wInsertionPoint(a,b,c):this.renderAsAnyDomTree(a,b,c,d)},renderAsAnyDomTree:func
tion(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)},renderInsert
ionPoint: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.associa
teNode(c.parentNode)},renderShadowInsertionPoint:function(a,b,c){var d=a.olderSh
adowRoot;if(d){x(d,c),this.associateNode(c.parentNode);for(var e=d.firstChild;e;
e=e.nextSibling)this.renderNode(d,b,e,!0)}else this.renderFallbackContent(a,b,c)
},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) | |
3 }}),f(window[b],i,document.createElement(b.slice(4,-7))),a.wrappers[b]=i}}var c=
a.wrappers.HTMLElement,d=a.assert,e=a.mixin,f=a.registerWrapper,g=a.unwrap,h=a.w
rap,i=["HTMLButtonElement","HTMLFieldSetElement","HTMLInputElement","HTMLKeygenE
lement","HTMLLabelElement","HTMLLegendElement","HTMLObjectElement","HTMLOutputEl
ement","HTMLSelectElement","HTMLTextAreaElement"];i.forEach(b)}(window.ShadowDOM
Polyfill),function(a){"use strict";function b(a){this.impl=a}{var c=a.registerWr
apper,d=a.unwrap,e=a.unwrapIfNeeded,f=a.wrap;window.Selection}b.prototype={get a
nchorNode(){return f(this.impl.anchorNode)},get focusNode(){return f(this.impl.f
ocusNode)},addRange:function(a){this.impl.addRange(d(a))},collapse:function(a,b)
{this.impl.collapse(e(a),b)},containsNode:function(a,b){return this.impl.contain
sNode(e(a),b)},extend:function(a,b){this.impl.extend(e(a),b)},getRangeAt:functio
n(a){return f(this.impl.getRangeAt(a))},removeRange:function(a){this.impl.remove
Range(d(a))},selectAllChildren:function(a){this.impl.selectAllChildren(e(a))},to
String:function(){return this.impl.toString()}},c(window.Selection,b,window.getS
election()),a.wrappers.Selection=b}(window.ShadowDOMPolyfill),function(a){"use s
trict";function b(a){k.call(this,a)}function c(a){var c=document[a];b.prototype[
a]=function(){return y(c.apply(this.impl,arguments))}}function d(a,b){B.call(b.i
mpl,x(a)),e(a,b)}function e(a,b){a.shadowRoot&&b.adoptNode(a.shadowRoot),a insta
nceof 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 y(c.apply(
this.impl,arguments))}}function i(a,b){var c=document.implementation[b];a.protot
ype[b]=function(){return c.apply(this.impl,arguments)}}var j=a.GetElementsByInte
rface,k=a.wrappers.Node,l=a.ParentNodeInterface,m=a.wrappers.Selection,n=a.Selec
torsInterface,o=a.wrappers.ShadowRoot,p=a.defineWrapGetter,q=a.elementFromPoint,
r=a.forwardMethodsToWrapper,s=a.matchesNames,t=a.mixin,u=a.registerWrapper,v=a.r
enderAllPending,w=a.rewrap,x=a.unwrap,y=a.wrap,z=a.wrapEventTargetMethods,A=(a.w
rapNodeList,new WeakMap);b.prototype=Object.create(k.prototype),p(b,"documentEle
ment"),p(b,"body"),p(b,"head"),["createComment","createDocumentFragment","create
Element","createElementNS","createEvent","createEventNS","createRange","createTe
xtNode","getElementById"].forEach(c);var B=document.adoptNode,C=document.importN
ode,D=document.getSelection;if(t(b.prototype,{adoptNode:function(a){return a.par
entNode&&a.parentNode.removeChild(a),d(a,this),a},elementFromPoint:function(a,b)
{return q(this,this,a,b)},importNode:function(a,b){var c=y(C.call(this.impl,x(a)
,!1));if(b)for(var d=a.firstChild;d;d=d.nextSibling)c.appendChild(this.importNod
e(d,!0));return c},getSelection:function(){return v(),new m(D.call(x(this)))}}),
document.registerElement){var E=document.registerElement;b.prototype.registerEle
ment=function(b,c){function d(a){return a?void(this.impl=a):c.extends?document.c
reateElement(c.extends,b):document.createElement(b)}var e=c.prototype;if(a.nativ
ePrototypeTable.get(e))throw new Error("NotSupportedError");for(var f,g=Object.g
etPrototypeOf(e),h=[];g&&!(f=a.nativePrototypeTable.get(g));)h.push(g),g=Object.
getPrototypeOf(g);if(!f)throw new Error("NotSupportedError");for(var i=Object.cr
eate(f),j=h.length-1;j>=0;j--)i=Object.create(i);["createdCallback","attachedCal
lback","detachedCallback","attributeChangedCallback"].forEach(function(a){var b=
e[a];b&&(i[a]=function(){y(this)instanceof d||w(this),b.apply(y(this),arguments)
})});var k={prototype:i};c.extends&&(k.extends=c.extends),d.prototype=e,d.protot
ype.constructor=d,a.constructorTable.set(i,d),a.nativePrototypeTable.set(e,i);E.
call(x(this),b,k);return d},r([window.HTMLDocument||window.Document],["registerE
lement"])}r([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.
HTMLHeadElement,window.HTMLHtmlElement],["appendChild","compareDocumentPosition"
,"contains","getElementsByClassName","getElementsByTagName","getElementsByTagNam
eNS","insertBefore","querySelector","querySelectorAll","removeChild","replaceChi
ld"].concat(s)),r([window.HTMLDocument||window.Document],["adoptNode","importNod
e","contains","createComment","createDocumentFragment","createElement","createEl
ementNS","createEvent","createEventNS","createRange","createTextNode","elementFr
omPoint","getElementById","getSelection"]),t(b.prototype,j),t(b.prototype,l),t(b
.prototype,n),t(b.prototype,{get implementation(){var a=A.get(this);return a?a:(
a=new g(x(this).implementation),A.set(this,a),a)}}),u(window.Document,b,document
.implementation.createHTMLDocument("")),window.HTMLDocument&&u(window.HTMLDocume
nt,b),z([window.HTMLBodyElement,window.HTMLDocument||window.Document,window.HTML
HeadElement]),h(g,"createDocumentType"),h(g,"createDocument"),h(g,"createHTMLDoc
ument"),i(g,"hasFeature"),u(window.DOMImplementation,g),r([window.DOMImplementat
ion],["createDocumentType","createDocument","createHTMLDocument","hasFeature"]),
a.adoptNodeNoRemove=d,a.wrappers.DOMImplementation=g,a.wrappers.Document=b}(wind
ow.ShadowDOMPolyfill),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.renderAllPending,h=a.unwrap,i=a.unwrapIfNeeded,j=a.wrap,k=window.Window,l=wind
ow.getComputedStyle,m=window.getSelection;b.prototype=Object.create(c.prototype)
,k.prototype.getComputedStyle=function(a,b){return j(this||window).getComputedSt
yle(i(a),b)},k.prototype.getSelection=function(){return j(this||window).getSelec
tion()},delete window.getComputedStyle,delete window.getSelection,["addEventList
ener","removeEventListener","dispatchEvent"].forEach(function(a){k.prototype[a]=
function(){var b=j(this||window);return b[a].apply(b,arguments)},delete window[a
]}),e(b.prototype,{getComputedStyle:function(a,b){return g(),l.call(h(this),i(a)
,b)},getSelection:function(){return g(),new d(m.call(h(this)))}}),f(k,b),a.wrapp
ers.Window=b}(window.ShadowDOMPolyfill),function(a){"use strict";function b(a){v
ar b=c[a],d=window[b];if(d){var e=document.createElement(a),f=e.constructor;wind
ow[b]=f}}var c=(a.isWrapperFor,{a:"HTMLAnchorElement",area:"HTMLAreaElement",br:
"HTMLBRElement",base:"HTMLBaseElement",body:"HTMLBodyElement",button:"HTMLButton
Element",dl:"HTMLDListElement",datalist:"HTMLDataListElement",data:"HTMLDataElem
ent",dir:"HTMLDirectoryElement",div:"HTMLDivElement",embed:"HTMLEmbedElement",fi
eldset:"HTMLFieldSetElement",font:"HTMLFontElement",form:"HTMLFormElement",frame
:"HTMLFrameElement",frameset:"HTMLFrameSetElement",hr:"HTMLHRElement",head:"HTML
HeadElement",h1:"HTMLHeadingElement",html:"HTMLHtmlElement",iframe:"HTMLIFrameEl
ement",input:"HTMLInputElement",li:"HTMLLIElement",label:"HTMLLabelElement",lege
nd:"HTMLLegendElement",link:"HTMLLinkElement",map:"HTMLMapElement",marquee:"HTML
MarqueeElement",menu:"HTMLMenuElement",menuitem:"HTMLMenuItemElement",meta:"HTML
MetaElement",meter:"HTMLMeterElement",del:"HTMLModElement",ol:"HTMLOListElement"
,object:"HTMLObjectElement",optgroup:"HTMLOptGroupElement",option:"HTMLOptionEle
ment",output:"HTMLOutputElement",p:"HTMLParagraphElement",param:"HTMLParamElemen
t",pre:"HTMLPreElement",progress:"HTMLProgressElement",q:"HTMLQuoteElement",scri
pt:"HTMLScriptElement",select:"HTMLSelectElement",source:"HTMLSourceElement",spa
n:"HTMLSpanElement",style:"HTMLStyleElement",time:"HTMLTimeElement",caption:"HTM
LTableCaptionElement",col:"HTMLTableColElement",table:"HTMLTableElement",tr:"HTM
LTableRowElement",thead:"HTMLTableSectionElement",tbody:"HTMLTableSectionElement
",textarea:"HTMLTextAreaElement",track:"HTMLTrackElement",title:"HTMLTitleElemen
t",ul:"HTMLUListElement",video:"HTMLVideoElement"});Object.keys(c).forEach(b),Ob
ject.getOwnPropertyNames(a.wrappers).forEach(function(b){window[b]=a.wrappers[b]
}),a.knownElements=c}(window.ShadowDOMPolyfill),function(){{var a=window.ShadowD
OMPolyfill;a.wrap}Object.defineProperties(HTMLElement.prototype,{webkitShadowRoo
t:{get:function(){return this.shadowRoot}}}),window.wrap=window.ShadowDOMPolyfil
l.wrap,window.unwrap=window.ShadowDOMPolyfill.unwrap,HTMLElement.prototype.webki
tCreateShadowRoot=HTMLElement.prototype.createShadowRoot,window.dartExperimental
FixupGetTag=function(b){function c(a){if(a instanceof d)return"NodeList";if(a in
stanceof e)return"ShadowRoot";if(window.MutationRecord&&a instanceof MutationRec
ord)return"MutationRecord";if(window.MutationObserver&&a instanceof MutationObse
rver)return"MutationObserver";if(a instanceof HTMLTemplateElement)return"HTMLTem
plateElement";var c=f(a);if(a!==c){var g=a.constructor;if(g===c.constructor){var
h=g._ShadowDOMPolyfill$cacheTag_;return h||(h=Object.prototype.toString.call(c)
,h=h.substring(8,h.length-1),g._ShadowDOMPolyfill$cacheTag_=h),h}a=c}return b(a)
}var d=a.wrappers.NodeList,e=a.wrappers.ShadowRoot,f=a.unwrapIfNeeded;return c}}
();var Platform={};!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(m,"")),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=b.sheet.cssRules;return b
.parentNode.removeChild(b),d}function e(a){for(var b=0,c=[];b<a.length;b++)c.pus
h(a[b].cssText);return c.join("\n\n")}function f(a){a&&g().appendChild(document.
createTextNode(a))}function g(){return v||(v=document.createElement("style"),v.s
etAttribute("ShadowCSSShim",""),v.shadowCssShim=!0),v}var h=(a.loader,{strictSty
ling:!1,registry:{},shimStyling:function(a,b,d){var e=this.isTypeExtension(d),g=
this.registerDefinition(a,b,d);this.strictStyling&&this.applyScopeToContent(a,b)
;var h=this.stylesToShimmedCssText(g.rootStyles,g.scopeStyles,b,e);g.shimmedStyl
e=c(h),a&&(a.shimmedStyle=g.shimmedStyle);for(var i,j=0,k=g.rootStyles.length;k>
j&&(i=g.rootStyles[j]);j++)i.parentNode.removeChild(i);f(h)},stylesToShimmedCssT
ext:function(a,b,c,d){c=c||"",this.insertPolyfillDirectives(a),this.insertPolyfi
llRules(a);var e=this.shimAtHost(b,c,d)+this.shimScoping(b,c,d);return e+=this.e
xtractPolyfillUnscopedRules(a)},registerDefinition:function(a,b,c){var d=this.re
gistry[b]={root:a,name:b,extendsName:c},e=a?a.querySelectorAll("style"):[];e=e?A
rray.prototype.slice.call(e,0):[],d.rootStyles=e,d.scopeStyles=d.rootStyles;var
f=this.registry[d.extendsName];return!f||a&&!a.querySelector("shadow")||(d.scope
Styles=f.scopeStyles.concat(d.scopeStyles)),d},isTypeExtension:function(a){retur
n a&&a.indexOf("-")<0},applyScopeToContent:function(a,b){a&&(Array.prototype.for
Each.call(a.querySelectorAll("*"),function(a){a.setAttribute(b,"")}),Array.proto
type.forEach.call(a.querySelectorAll("template"),function(a){this.applyScopeToCo
ntent(a.content,b)},this))},insertPolyfillDirectives:function(a){a&&Array.protot
ype.forEach.call(a,function(a){a.textContent=this.insertPolyfillDirectivesInCssT
ext(a.textContent)},this)},insertPolyfillDirectivesInCssText:function(a){return
a.replace(n,function(a,b){return b.slice(0,-2)+"{"})},insertPolyfillRules:functi
on(a){a&&Array.prototype.forEach.call(a,function(a){a.textContent=this.insertPol
yfillRulesInCssText(a.textContent)},this)},insertPolyfillRulesInCssText:function
(a){return a.replace(o,function(a,b){return b.slice(0,-1)})},extractPolyfillUnsc
opedRules:function(a){var b="";return a&&Array.prototype.forEach.call(a,function
(a){b+=this.extractPolyfillUnscopedRulesFromCssText(a.textContent)+"\n\n"},this)
,b},extractPolyfillUnscopedRulesFromCssText:function(a){for(var b,c="";b=p.exec(
a);)c+=b[1].slice(0,-1)+"\n\n";return c},shimAtHost:function(a,b,c){return a?thi
s.convertAtHostStyles(a,b,c):void 0},convertAtHostStyles:function(a,c,f){var g=b
(a),h=this;return g=g.replace(i,function(a,b){return h.scopeHostCss(b,c,f)}),g=e
(this.findAtHostRules(d(g),this.makeScopeMatcher(c,f)))},scopeHostCss:function(a
,b,c){var d=this;return a.replace(j,function(a,e,f){return d.scopeHostSelector(e
,b,c)+" "+f+"\n "})},scopeHostSelector:function(a,b,c){var d=[],e=a.split(","),f
="[is="+b+"]";return e.forEach(function(a){a=a.trim(),a.match(k)?a=a.replace(k,c
?f+"$1$3":b+"$1$3"):a.match(l)&&(a=c?f+a:b+a),d.push(a)},this),d.join(", ")},fin
dAtHostRules:function(a,b){return Array.prototype.filter.call(a,this.isHostRule.
bind(this,b))},isHostRule:function(a,b){return b.selectorText&&b.selectorText.ma
tch(a)||b.cssRules&&this.findAtHostRules(b.cssRules,a).length||b.type==CSSRule.W
EBKIT_KEYFRAMES_RULE},shimScoping:function(a,b,c){return a?this.convertScopedSty
les(a,b,c):void 0},convertScopedStyles:function(a,c,e){var f=b(a).replace(i,"");
f=this.insertPolyfillHostInCssText(f),f=this.convertColonHost(f),f=this.convertC
olonAncestor(f),f=this.convertPseudos(f),f=this.convertParts(f),f=this.convertCo
mbinators(f);var g=d(f);return c&&(f=this.scopeRules(g,c,e)),f},convertPseudos:f
unction(a){return a.replace(q," [pseudo=$1]")},convertParts:function(a){return a
.replace(r," [part=$1]")},convertColonHost:function(a){return this.convertColonR
ule(a,cssColonHostRe,this.colonHostPartReplacer)},convertColonAncestor:function(
a){return this.convertColonRule(a,cssColonAncestorRe,this.colonAncestorPartRepla
cer)},convertColonRule:function(a,b,c){return a.replace(b,function(a,b,d,e){if(b
=polyfillHostNoCombinator,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})},colonAn
cestorPartReplacer:function(a,b,c){return b.match(s)?this.colonHostPartReplacer(
a,b,c):a+b+c+", "+b+" "+a+c},colonHostPartReplacer:function(a,b,c){return a+b.re
place(s,"")+c},convertCombinators:function(a){return a.replace(/\^\^/g," ").repl
ace(/\^/g," ")},scopeRules:function(a,b,c){var d="";return Array.prototype.forEa
ch.call(a,function(a){a.selectorText&&a.style&&a.style.cssText?(d+=this.scopeSel
ector(a.selectorText,b,c,this.strictStyling)+" {\n ",d+=this.propertiesFrom
Rule(a)+"\n}\n\n"):a.media?(d+="@media "+a.media.mediaText+" {\n",d+=this.scopeR
ules(a.cssRules,b,c),d+="\n}\n\n"):a.cssText&&(d+=a.cssText+"\n\n")},this),d},sc
opeSelector:function(a,b,c,d){var e=[],f=a.split(",");return f.forEach(function(
a){a=a.trim(),this.selectorNeedsScoping(a,b,c)&&(a=d&&!a.match(polyfillHostNoCom
binator)?this.applyStrictSelectorScope(a,b):this.applySimpleSelectorScope(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+")"+selectorReSuffix,"m
")},applySimpleSelectorScope:function(a,b,c){var d=c?"[is="+b+"]":b;return a.mat
ch(polyfillHostRe)?(a=a.replace(polyfillHostNoCombinator,d),a.replace(polyfillHo
stRe,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(funct
ion(a){var b=a.trim().replace(polyfillHostRe,"");return b&&c.indexOf(b)<0&&b.ind
exOf(e)<0&&(a=b.replace(/([^:]*)(:*)(.*)/,"$1"+e+"$2$3")),a}).join(a)}),d},inser
tPolyfillHostInCssText:function(a){return a.replace(hostRe,s).replace(colonHostR
e,s).replace(colonAncestorRe,t)},propertiesFromRule:function(a){return a.style.c
ontent&&!a.style.content.match(/['"]+/)?a.style.cssText.replace(/content:[^;]*;/
g,"content: '"+a.style.content+"';"):a.style.cssText}}),i=/@host[^{]*{(([^}]*?{[
^{]*?}[\s\S]*?)+)}/gim,j=/([^{]*)({[\s\S]*?})/gim,k=/(.*)((?:\*)|(?:\:scope))(.*
)/,l=/^[.\[:]/,m=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,n=/\/\*\s*@polyfill ([^*]*\
*+([^/*][^*]*\*+)*\/)([^{]*?){/gim,o=/\/\*\s@polyfill-rule([^*]*\*+([^/*][^*]*\*
+)*)\//gim,p=/\/\*\s@polyfill-unscoped-rule([^*]*\*+([^/*][^*]*\*+)*)\//gim,q=/:
:(x-[^\s{,(]*)/gim,r=/::part\(([^)]*)\)/gim,s="-shadowcsshost",t="-shadowcssance
stor",u=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";cssColonHostRe=new Reg
Exp("("+s+u,"gim"),cssColonAncestorRe=new RegExp("("+t+u,"gim"),selectorReSuffix
="([>\\s~+[.,{:][\\s\\S]*)?$",hostRe=/@host/gim,colonHostRe=/\:host/gim,colonAnc
estorRe=/\:ancestor/gim,polyfillHostNoCombinator=s+"-no-combinator",polyfillHost
Re=new RegExp(s,"gim"),polyfillAncestorRe=new RegExp(t,"gim");var v;if(window.Sh
adowDOMPolyfill){f("style { display: none !important; }\n");var w=wrap(document)
,x=w.querySelector("head");x.insertBefore(g(),x.childNodes[0]),document.addEvent
Listener("DOMContentLoaded",function(){window.HTMLImports&&!HTMLImports.useNativ
e&&(HTMLImports.importer.preloadSelectors+=", link[rel=stylesheet]:not([nopolyfi
ll])",HTMLImports.parser.parseGeneric=function(a){if(!a.shadowCssShim){var b=a;i
f(!a.hasAttribute("nopolyfill")){a.__resource?(b=a.ownerDocument.createElement("
style"),b.textContent=Platform.loader.resolveUrlsInCssText(a.__resource,a.href),
a.ownerDocument===w&&a.parentNode.removeChild(a)):Platform.loader.resolveUrlsInS
tyle(b);var c=[b];b.textContent=h.stylesToShimmedCssText(c,c),b.shadowCssShim=!0
}b.parentNode!==x&&x.appendChild(b)}})})}a.ShadowCSS=h}(window.Platform)} | |
OLD | NEW |