| OLD | NEW |
| (Empty) | |
| 1 (function(){/* |
| 2 |
| 3 Copyright (c) 2017 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
| 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
| 9 */ |
| 10 'use strict';var l,aa="undefined"!=typeof window&&window===this?this:"undefined"
!=typeof global&&null!=global?global:this,m={};function n(){this.end=this.start=
0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";t
his.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName="
"} |
| 11 function p(a){a=a.replace(ba,"").replace(ca,"");var b=da,c=a,e=new n;e.start=0;e
.end=c.length;for(var d=e,f=0,g=c.length;f<g;f++)if("{"===c[f]){d.rules||(d.rule
s=[]);var h=d,k=h.rules[h.rules.length-1]||null,d=new n;d.start=f+1;d.parent=h;d
.previous=k;h.rules.push(d)}else"}"===c[f]&&(d.end=f+1,d=d.parent||e);return b(e
,a)} |
| 12 function da(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.
trim();a.parent&&((c=b.substring(a.previous?a.previous.end:a.parent.start,a.star
t-1),c=ea(c),c=c.replace(fa," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedS
elector=a.selector=c.trim(),a.atRule=!c.indexOf("@"),a.atRule)?c.indexOf("@media
")?c.match(ha)&&(a.type=r,a.keyframesName=a.selector.split(fa).pop()):a.type=ga:
a.type=c.indexOf("--")?ia:ja);if(c=a.rules)for(var e=0,d=c.length,f;e<d&&(f=c[e]
);e++)da(f,b);return a} |
| 13 function ea(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(a,c){a=c;for(c=
6-a.length;c--;)a="0"+a;return"\\"+a})} |
| 14 function ka(a,b,c){c=void 0===c?"":c;var e="";if(a.cssText||a.rules){var d=a.rul
es,f;if(f=d)f=d[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;fo
r(var g=d.length,h;f<g&&(h=d[f]);f++)e=ka(h,b,e)}else b?b=a.cssText:(b=a.cssText
,b=b.replace(la,"").replace(ma,""),b=b.replace(na,"").replace(oa,"")),(e=b.trim(
))&&(e=" "+e+"\n")}e&&(a.selector&&(c+=a.selector+" {\n"),c+=e,a.selector&&(c+=
"}\n\n"));return c} |
| 15 var ia=1,r=7,ga=4,ja=1E3,ba=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ca=/@import[^;]*
;/gim,la=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,ma=/(?:^[^;\-\s}]+)
?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,na=/@apply\s*\(?[^);]*\)?\s*(?:[;\n
]|$)?/gim,oa=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ha=/^@[^\s]*keyframes/,
fa=/\s+/g;var pa=Promise.resolve();function qa(a){if(a=m[a])a._applyShimCurrentV
ersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimV
alidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}funct
ion ra(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function s
a(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a.b||(a.b=!0,pa.then(
function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a.b=!1}))};var t=/
(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|
[^};{])+)|\{([^\}]*)\}(?:(?=[;\s}])|$))/gi,u=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?
/gi,ta=/(--[\w-]+)\s*([:,;)]|$)/gi,ua=/(animation\s*:)|(animation-name\s*:)/,va=
/@media[^(]*(\([^)]*\))/,wa=/\{[^}]*\}/g;var v=!(window.ShadyDOM&&window.ShadyDO
M.inUse),w;function xa(a){w=a&&a.shimcssproperties?!1:v||!(navigator.userAgent.m
atch("AppleWebKit/601")||!window.CSS||!CSS.supports||!CSS.supports("box-shadow",
"0 0 0 var(--foo)"))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?w=windo
w.ShadyCSS.nativeCss:window.ShadyCSS?(xa(window.ShadyCSS),window.ShadyCSS=void 0
):xa(window.WebComponents&&window.WebComponents.flags);var y=w;function z(a,b){i
f(!a)return"";"string"===typeof a&&(a=p(a));b&&A(a,b);return ka(a,y)}function B(
a){!a.__cssRules&&a.textContent&&(a.__cssRules=p(a.textContent));return a.__cssR
ules||null}function ya(a){return!!a.parent&&a.parent.type===r}function A(a,b,c,e
){if(a){var d=!1,f=a.type;if(e&&f===ga){var g=a.selector.match(va);g&&(window.ma
tchMedia(g[1]).matches||(d=!0))}f===ia?b(a):c&&f===r?c(a):f===ja&&(d=!0);if((a=a
.rules)&&!d)for(var d=0,f=a.length,h;d<f&&(h=a[d]);d++)A(h,b,c,e)}} |
| 16 function C(a,b,c,e){var d=document.createElement("style");b&&d.setAttribute("sco
pe",b);d.textContent=a;za(d,c,e);return d}var D=null;function za(a,b,c){b=b||doc
ument.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);D?a.compareDocumentP
osition(D)===Node.DOCUMENT_POSITION_PRECEDING&&(D=a):D=a} |
| 17 function Aa(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");a:{var e
=0;var d=c+3;for(var f=a.length;d<f;d++)if("("===a[d])e++;else if(")"===a[d]&&!-
-e)break a;d=-1}e=a.substring(c+4,d);c=a.substring(0,c);a=Aa(a.substring(d+1),b)
;d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.
substring(d+1).trim(),a)}function E(a,b){v?a.setAttribute("class",b):window.Shad
yDOM.nativeMethods.setAttribute.call(a,"class",b)} |
| 18 function F(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&
&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,u:c}};var G=null,Ba=
window.HTMLImports&&window.HTMLImports.whenReady||null,H;function Ca(a){requestA
nimationFrame(function(){Ba?Ba(a):(G||(G=new Promise(function(a){H=a}),"complete
"===document.readyState?H():document.addEventListener("readystatechange",functio
n(){"complete"===document.readyState&&H()})),G.then(function(){a&&a()}))})};func
tion I(){}function J(a,b,c){var e=K;a.__styleScoped?a.__styleScoped=null:Da(e,a,
b||"",c)} |
| 19 function Da(a,b,c,e){if(b.nodeType===Node.ELEMENT_NODE&&c)if(b.classList)e?(b.cl
assList.remove("style-scope"),b.classList.remove(c)):(b.classList.add("style-sco
pe"),b.classList.add(c));else if(b.getAttribute){var d=b.getAttribute(Ea);e?d&&(
d=d.replace("style-scope","").replace(c,""),E(b,d)):E(b,(d?d+" ":"")+"style-scop
e "+c)}if(b="template"===b.localName?(b.content||b.R).childNodes:b.children||b.c
hildNodes)for(d=0;d<b.length;d++)Da(a,b[d],c,e)} |
| 20 function L(a,b,c){var e=K,d=a.__cssBuild;v||"shady"===d?b=z(b,c):(a=F(a),b=Fa(e,
b,a.is,a.u,c)+"\n\n");return b.trim()}function Fa(a,b,c,e,d){var f=M(c,e);c=c?Ga
+c:"";return z(b,function(b){b.c||(b.selector=b.g=Ha(a,b,a.b,c,f),b.c=!0);d&&d(b
,c,f)})}function M(a,b){return b?"[is="+a+"]":a}function Ha(a,b,c,e,d){var f=b.s
elector.split(Ia);if(!ya(b)){b=0;for(var g=f.length,h;b<g&&(h=f[b]);b++)f[b]=c.c
all(a,h,e,d)}return f.join(Ia)} |
| 21 I.prototype.b=function(a,b,c){var e=!1;a=a.trim();a=a.replace(Ja,function(a,b,c)
{return":"+b+"("+c.replace(/\s/g,"")+")"});a=a.replace(Ka,La+" $1");return a=a.r
eplace(Ma,function(a,f,g){e||(a=Na(g,f,b,c),e=e||a.stop,f=a.H,g=a.value);return
f+g})}; |
| 22 function Na(a,b,c,e){var d=a.indexOf(Oa);0<=a.indexOf(La)?a=Pa(a,e):0!==d&&(a=c?
Qa(a,c):a);c=!1;0<=d&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Ra,function(a,b
){return" > "+b}))}a=a.replace(Sa,function(a,b,c){return'[dir="'+c+'"] '+b+", "+
b+'[dir="'+c+'"]'});return{value:a,H:b,stop:f}}function Qa(a,b){a=a.split(Ta);a[
0]+=b;return a.join(Ta)} |
| 23 function Pa(a,b){var c=a.match(Ua);return(c=c&&c[2].trim()||"")?c[0].match(Va)?a
.replace(Ua,function(a,c,f){return b+f}):c.split(Va)[0]===b?c:Wa:a.replace(La,b)
}function Xa(a){a.selector===Ya&&(a.selector="html")}I.prototype.c=function(a){r
eturn a.match(Oa)?this.b(a,Za):Qa(a.trim(),Za)};aa.Object.defineProperties(I.pro
totype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); |
| 24 var Ja=/:(nth[-\w]+)\(([^)]+)\)/,Za=":not(.style-scope)",Ia=",",Ma=/(^|[\s>+~]+)
((?:\[.+?\]|[^\s>+~=\[])+)/g,Va=/[[.:#*]/,La=":host",Ya=":root",Oa="::slotted",K
a=new RegExp("^("+Oa+")"),Ua=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ra=/(?::
:slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Sa=/(.*):dir\((?:(ltr|rtl))\)/,Ga=".
",Ta=":",Ea="class",Wa="should_not_match",K=new I;function $a(){} |
| 25 function ab(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.doc
umentElement&&c.target!==document.head)for(var e=0;e<c.addedNodes.length;e++){va
r d=c.addedNodes[e];if(d.nodeType===Node.ELEMENT_NODE){var f=d.getRootNode();var
g=d;var h=[];g.classList?h=Array.from(g.classList):g instanceof window.SVGEleme
nt&&g.hasAttribute("class")&&(h=g.getAttribute("class").split(/\s+/));g=h;h=g.in
dexOf(K.a);(g=-1<h?g[h+1]:"")&&f===d.ownerDocument?J(d,g,!0):f.nodeType===Node.D
OCUMENT_FRAGMENT_NODE&&(f= |
| 26 f.host)&&(f=F(f).is,g!==f&&(g&&J(d,g,!0),J(d,f)))}}}} |
| 27 if(!v){var bb=new MutationObserver(ab),cb=function(a){bb.observe(a,{childList:!0
,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlus
hCallback)cb(document);else{var db=function(){cb(document.body)};window.HTMLImpo
rts?window.HTMLImports.whenReady(db):requestAnimationFrame(function(){if("loadin
g"===document.readyState){var a=function(){db();document.removeEventListener("re
adystatechange",a)};document.addEventListener("readystatechange",a)}else db()})}
$a=function(){ab(bb.takeRecords())}} |
| 28 var eb=$a;function N(a,b,c,e,d){this.j=a||null;this.b=b||null;this.B=c||[];this.
s=null;this.u=d||"";this.a=this.h=this.m=null}function O(a){return a?a.__styleIn
fo:null}function fb(a,b){return a.__styleInfo=b}N.prototype.c=function(){return
this.j};N.prototype._getStyleRules=N.prototype.c;var Q=window.Element.prototype,
gb=Q.matches||Q.matchesSelector||Q.mozMatchesSelector||Q.msMatchesSelector||Q.oM
atchesSelector||Q.webkitMatchesSelector,hb=navigator.userAgent.match("Trident");
function ib(){}function jb(a){var b={},c=[],e=0;A(a,function(a){R(a);a.index=e++
;a=a.f.cssText;for(var c;c=ta.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}},funct
ion(a){c.push(a)});a.b=c;a=[];for(var d in b)a.push(d);return a} |
| 29 function R(a){if(!a.f){var b={},c={};S(a,c)&&(b.i=c,a.rules=null);b.cssText=a.pa
rsedCssText.replace(wa,"").replace(t,"");a.f=b}}function S(a,b){var c=a.f;if(c){
if(c.i)return Object.assign(b,c.i),!0}else{for(var c=a.parsedCssText,e;a=t.exec(
c);){e=(a[2]||a[3]).trim();if("inherit"!==e||"unset"!==e)b[a[1].trim()]=e;e=!0}r
eturn e}} |
| 30 function T(a,b,c){b&&(b=0<=b.indexOf(";")?kb(a,b,c):Aa(b,function(b,d,f,g){if(!d
)return b+g;(d=T(a,c[d],c))&&"initial"!==d?"apply-shim-inherit"===d&&(d="inherit
"):d=T(a,c[f]||f,c)||f;return b+(d||"")+g}));return b&&b.trim()||""} |
| 31 function kb(a,b,c){b=b.split(";");for(var e=0,d,f;e<b.length;e++)if(d=b[e]){u.la
stIndex=0;if(f=u.exec(d))d=T(a,c[f[1]],c);else if(f=d.indexOf(":"),-1!==f){var g
=d.substring(f),g=g.trim(),g=T(a,g,c)||g;d=d.substring(0,f)+g}b[e]=d&&d.lastInde
xOf(";")===d.length-1?d.slice(0,-1):d||""}return b.join(";")} |
| 32 function lb(a,b){var c={},e=[];A(a,function(a){a.f||R(a);var d=a.g||a.parsedSele
ctor;b&&a.f.i&&d&&gb.call(b,d)&&(S(a,c),a=a.index,d=parseInt(a/32,10),e[d]=(e[d]
||0)|1<<a%32)},null,!0);return{i:c,key:e}} |
| 33 function mb(a,b,c,e,d){c.f||R(c);if(c.f.i){b=F(b);a=b.is;b=b.u;b=a?M(a,b):"html"
;var f=c.parsedSelector,g=":host > *"===f||"html"===f,h=0===f.indexOf(":host")&&
!g;"shady"===e&&(g=f===b+" > *."+b||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(b
));"shadow"===e&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)e=b,h&&(v&&!c.g
&&(c.g=Ha(K,c,K.b,a?Ga+a:"",b)),e=c.g||b),d({M:e,K:h,S:g})}} |
| 34 function nb(a,b){var c={},e={},d=U,f=b&&b.__cssBuild;A(b,function(b){mb(d,a,b,f,
function(d){gb.call(a.A||a,d.M)&&(d.K?S(b,c):S(b,e))})},null,!0);return{L:e,J:c}
} |
| 35 function ob(a,b,c,e){var d=F(b),f=M(d.is,d.u),g=new RegExp("(?:^|[^.#[:])"+(b.ex
tends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),d=O(b).j,h=pb(d,e);return L
(b,d,function(b){var d="";b.f||R(b);b.f.cssText&&(d=kb(a,b.f.cssText,c));b.cssTe
xt=d;if(!v&&!ya(b)&&b.cssText){var k=d=b.cssText;null==b.C&&(b.C=ua.test(d));if(
b.C)if(null==b.w){b.w=[];for(var q in h)k=h[q],k=k(d),d!==k&&(d=k,b.w.push(q))}e
lse{for(q=0;q<b.w.length;++q)k=h[b.w[q]],d=k(d);k=d}b.cssText=k;b.g=b.g||b.selec
tor;d="."+e;q=b.g.split(","); |
| 36 for(var k=0,vb=q.length,P;k<vb&&(P=q[k]);k++)q[k]=P.match(g)?P.replace(f,d):d+"
"+P;b.selector=q.join(",")}})}function pb(a,b){a=a.b;var c={};if(!v&&a)for(var e
=0,d=a[e];e<a.length;d=a[++e]){var f=d,g=b;f.l=new RegExp(f.keyframesName,"g");f
.a=f.keyframesName+"-"+g;f.g=f.g||f.selector;f.selector=f.g.replace(f.keyframesN
ame,f.a);c[d.keyframesName]=qb(d)}return c}function qb(a){return function(b){ret
urn b.replace(a.l,a.a)}} |
| 37 function rb(a,b){var c=U,e=B(a);a.textContent=z(e,function(a){var d=a.cssText=a.
parsedCssText;a.f&&a.f.cssText&&(d=d.replace(la,"").replace(ma,""),a.cssText=kb(
c,d,b))})}aa.Object.defineProperties(ib.prototype,{a:{configurable:!0,enumerable
:!0,get:function(){return"x-scope"}}});var U=new ib;var sb={},V=window.customEle
ments;if(V&&!v){var tb=V.define;V.define=function(a,b,c){var e=document.createCo
mment(" Shady DOM styles for "+a+" "),d=document.head;d.insertBefore(e,(D?D.next
Sibling:null)||d.firstChild);D=e;sb[a]=e;return tb.call(V,a,b,c)}};var W=new fun
ction(){this.cache={};this.a=100};function X(){var a=this;this.A={};this.c=docum
ent.documentElement;var b=new n;b.rules=[];this.l=fb(this.c,new N(b));this.v=!1;
this.b=this.a=null;Ca(function(){Y(a)})}l=X.prototype;l.F=function(){eb()};l.I=f
unction(a){return B(a)};l.O=function(a){return z(a)}; |
| 38 l.prepareTemplate=function(a,b,c){if(!a.l){a.l=!0;a.name=b;a.extends=c;m[b]=a;va
r e=(e=a.content.querySelector("style"))?e.getAttribute("css-build")||"":"";var
d=a.content.querySelectorAll("style");for(var f=[],g=0;g<d.length;g++){var h=d[g
];f.push(h.textContent);h.parentNode.removeChild(h)}d=f.join("").trim();c={is:b,
extends:c,P:e};v||J(a.content,b);Y(this);f=u.test(d)||t.test(d);u.lastIndex=0;t.
lastIndex=0;d=p(d);f&&y&&this.a&&this.a.transformRules(d,b);a._styleAst=d;a.v=e;
e=[];y||(e=jb(a._styleAst)); |
| 39 if(!e.length||y)d=v?a.content:null,b=sb[b],f=L(c,a._styleAst),b=f.length?C(f,c.i
s,d,b):void 0,a.a=b;a.c=e}};function ub(a){!a.b&&window.ShadyCSS&&window.ShadyCS
S.CustomStyleInterface&&(a.b=window.ShadyCSS.CustomStyleInterface,a.b.transformC
allback=function(b){a.D(b)},a.b.validateCallback=function(){requestAnimationFram
e(function(){(a.b.enqueued||a.v)&&a.o()})})}function Y(a){!a.a&&window.ShadyCSS&
&window.ShadyCSS.ApplyShim&&(a.a=window.ShadyCSS.ApplyShim,a.a.invalidCallback=q
a);ub(a)} |
| 40 l.o=function(){Y(this);if(this.b){var a=this.b.processStyles();if(this.b.enqueue
d){if(y)for(var b=0;b<a.length;b++){var c=this.b.getStyleForCustomStyle(a[b]);if
(c&&y&&this.a){var e=B(c);Y(this);this.a.transformRules(e);c.textContent=z(e)}}e
lse for(wb(this,this.c,this.l),b=0;b<a.length;b++)(c=this.b.getStyleForCustomSty
le(a[b]))&&rb(c,this.l.m);this.b.enqueued=!1;this.v&&!y&&this.styleDocument()}}}
; |
| 41 l.styleElement=function(a,b){var c=F(a).is,e=O(a);if(!e){var d=F(a),e=d.is,d=d.u
,f=sb[e],e=m[e];if(e){var g=e._styleAst;var h=e.c}e=fb(a,new N(g,f,h,0,d))}a!==t
his.c&&(this.v=!0);b&&(e.s=e.s||{},Object.assign(e.s,b));if(y){if(e.s){b=e.s;for
(var k in b)null===k?a.style.removeProperty(k):a.style.setProperty(k,b[k])}if(((
k=m[c])||a===this.c)&&k&&k.a&&!ra(k)){if(ra(k)||k._applyShimValidatingVersion!==
k._applyShimNextVersion)Y(this),this.a&&this.a.transformRules(k._styleAst,c),k.a
.textContent=L(a,e.j), |
| 42 sa(k);v&&(c=a.shadowRoot)&&(c.querySelector("style").textContent=L(a,e.j));e.j=k
._styleAst}}else if(wb(this,a,e),e.B&&e.B.length){c=e;k=F(a).is;a:{if(b=W.cache[
k])for(g=b.length-1;0<=g;g--){h=b[g];b:{e=c.B;for(d=0;d<e.length;d++)if(f=e[d],h
.i[f]!==c.m[f]){e=!1;break b}e=!0}if(e){b=h;break a}}b=void 0}e=b?b.styleElement
:null;g=c.h;(h=b&&b.h)||(h=this.A[k]=(this.A[k]||0)+1,h=k+"-"+h);c.h=h;h=c.h;var
d=U,d=e?e.textContent||"":ob(d,a,c.m,h),f=O(a),x=f.a;x&&!v&&x!==e&&(x._useCount
--,0>=x._useCount&&x.parentNode&& |
| 43 x.parentNode.removeChild(x));v?f.a?(f.a.textContent=d,e=f.a):d&&(e=C(d,h,a.shado
wRoot,f.b)):e?e.parentNode||(hb&&-1<d.indexOf("@media")&&(e.textContent=d),za(e,
null,f.b)):d&&(e=C(d,h,null,f.b));e&&(e._useCount=e._useCount||0,f.a!=e&&e._useC
ount++,f.a=e);h=e;v||(e=c.h,f=d=a.getAttribute("class")||"",g&&(f=d.replace(new
RegExp("\\s*x-scope\\s*"+g+"\\s*","g")," ")),f+=(f?" ":"")+"x-scope "+e,d!==f&&E
(a,f));b||(a=W.cache[k]||[],a.push({i:c.m,styleElement:h,h:c.h}),a.length>W.a&&a
.shift(),W.cache[k]=a)}}; |
| 44 function xb(a,b){return(b=b.getRootNode().host)?O(b)?b:xb(a,b):a.c}function wb(a
,b,c){a=xb(a,b);var e=O(a);a=Object.create(e.m||null);var d=nb(b,c.j);b=lb(e.j,b
).i;Object.assign(a,d.J,b,d.L);b=c.s;for(var f in b)if((d=b[f])||0===d)a[f]=d;f=
U;b=Object.getOwnPropertyNames(a);for(d=0;d<b.length;d++)e=b[d],a[e]=T(f,a[e],a)
;c.m=a}l.styleDocument=function(a){this.styleSubtree(this.c,a)}; |
| 45 l.styleSubtree=function(a,b){var c=a.shadowRoot;(c||a===this.c)&&this.styleEleme
nt(a,b);if(b=c&&(c.children||c.childNodes))for(a=0;a<b.length;a++)this.styleSubt
ree(b[a]);else if(a=a.children||a.childNodes)for(b=0;b<a.length;b++)this.styleSu
btree(a[b])};l.D=function(a){var b=this,c=B(a);A(c,function(a){if(v)Xa(a);else{v
ar c=K;a.selector=a.parsedSelector;Xa(a);a.selector=a.g=Ha(c,a,c.c,void 0,void 0
)}y&&(Y(b),b.a&&b.a.transformRule(a))});y?a.textContent=z(c):this.l.j.rules.push
(c)}; |
| 46 l.getComputedStyleValue=function(a,b){var c;y||(c=(O(a)||O(xb(this,a))).m[b]);re
turn(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};l.N=funct
ion(a,b){var c=a.getRootNode();b=b?b.split(/\s/):[];c=c.host&&c.host.localName;i
f(!c){var e=a.getAttribute("class");if(e)for(var e=e.split(/\s/),d=0;d<e.length;
d++)if(e[d]===K.a){c=e[d+1];break}}c&&b.push(K.a,c);y||(c=O(a))&&c.h&&b.push(U.a
,c.h);E(a,b.join(" "))};l.G=function(a){return O(a)};X.prototype.flush=X.prototy
pe.F; |
| 47 X.prototype.prepareTemplate=X.prototype.prepareTemplate;X.prototype.styleElement
=X.prototype.styleElement;X.prototype.styleDocument=X.prototype.styleDocument;X.
prototype.styleSubtree=X.prototype.styleSubtree;X.prototype.getComputedStyleValu
e=X.prototype.getComputedStyleValue;X.prototype.setElementClass=X.prototype.N;X.
prototype._styleInfoForNode=X.prototype.G;X.prototype.transformCustomStyleForDoc
ument=X.prototype.D;X.prototype.getStyleAst=X.prototype.I;X.prototype.styleAstTo
String=X.prototype.O; |
| 48 X.prototype.flushCustomStyles=X.prototype.o;Object.defineProperties(X.prototype,
{nativeShadow:{get:function(){return v}},nativeCss:{get:function(){return y}}});
var Z=new X,yb,zb;window.ShadyCSS&&(yb=window.ShadyCSS.ApplyShim,zb=window.Shady
CSS.CustomStyleInterface);window.ShadyCSS={ScopingShim:Z,prepareTemplate:functio
n(a,b,c){Z.o();Z.prepareTemplate(a,b,c)},styleSubtree:function(a,b){Z.o();Z.styl
eSubtree(a,b)},styleElement:function(a){Z.o();Z.styleElement(a)},styleDocument:f
unction(a){Z.o();Z.styleDocument(a)},getComputedStyleValue:function(a,b){return
Z.getComputedStyleValue(a,b)},nativeCss:y,nativeShadow:v};yb&&(window.ShadyCSS.A
pplyShim=yb); |
| 49 zb&&(window.ShadyCSS.CustomStyleInterface=zb);}).call(this); |
| 50 |
| 51 //# sourceMappingURL=scoping-shim.min.js.map |
| OLD | NEW |