@teipublisher/pb-components 2.11.0 → 2.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3069 +0,0 @@
1
- /**
2
- @license
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.github.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/CONTRIBUTORS.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/PATENTS.txt
9
- */
10
- const e=!(window.ShadyDOM&&window.ShadyDOM.inUse);let t,i;function n(i){t=(!i||!i.shimcssproperties)&&(e||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(i=window.ShadyCSS.cssBuild);const o=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?t=window.ShadyCSS.nativeCss:window.ShadyCSS?(n(window.ShadyCSS),window.ShadyCSS=void 0):n(window.WebComponents&&window.WebComponents.flags);const s=t;
11
- /**
12
- @license
13
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
14
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
15
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
16
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
17
- Code distributed by Google as part of the polymer project is also
18
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
19
- */class r{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function a(e){return p(c(e=l(e)),e)}function l(e){return e.replace(v.comments,"").replace(v.port,"")}function c(e){let t=new r;t.start=0,t.end=e.length;let i=t;for(let n=0,o=e.length;n<o;n++)if(e[n]===g){i.rules||(i.rules=[]);let e=i,t=e.rules[e.rules.length-1]||null;i=new r,i.start=n+1,i.parent=e,i.previous=t,e.rules.push(i)}else e[n]===b&&(i.end=n+1,i=i.parent||t);return t}function p(e,t){let i=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=i.trim(),e.parent){let n=e.previous?e.previous.end:e.parent.start;i=t.substring(n,e.start-1),i=h(i),i=i.replace(v.multipleSpaces," "),i=i.substring(i.lastIndexOf(";")+1);let o=e.parsedSelector=e.selector=i.trim();e.atRule=0===o.indexOf(C),e.atRule?0===o.indexOf(x)?e.type=y.MEDIA_RULE:o.match(v.keyframesRule)&&(e.type=y.KEYFRAMES_RULE,e.keyframesName=e.selector.split(v.multipleSpaces).pop()):0===o.indexOf(w)?e.type=y.MIXIN_RULE:e.type=y.STYLE_RULE}let n=e.rules;if(n)for(let e,i=0,o=n.length;i<o&&(e=n[i]);i++)p(e,t);return e}function h(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e}))}function d(e,t,i=""){let n="";if(e.cssText||e.rules){let i=e.rules;if(i&&!u(i))for(let e,o=0,s=i.length;o<s&&(e=i[o]);o++)n=d(e,t,n);else n=t?e.cssText:f(e.cssText),n=n.trim(),n&&(n=" "+n+"\n")}return n&&(e.selector&&(i+=e.selector+" "+g+"\n"),i+=n,e.selector&&(i+=b+"\n\n")),i}function u(e){let t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(w)}function f(e){return m(e=_(e))}function _(e){return e.replace(v.customProp,"").replace(v.mixinProp,"")}function m(e){return e.replace(v.mixinApply,"").replace(v.varApply,"")}const y={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},g="{",b="}",v={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},w="--",x="@media",C="@",S=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,A=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,k=/@media\s(.*)/,E=new Set,P="shady-unscoped";function O(e){const t=e.textContent;if(!E.has(t)){E.add(t);const e=document.createElement("style");e.setAttribute("shady-unscoped",""),e.textContent=t,document.head.appendChild(e)}}function T(e){return e.hasAttribute(P)}
20
- /**
21
- @license
22
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
23
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
24
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
25
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
26
- Code distributed by Google as part of the polymer project is also
27
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
28
- */function I(e,t){return e?("string"==typeof e&&(e=a(e)),t&&R(e,t),d(e,s)):""}function N(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=a(e.textContent)),e.__cssRules||null}function R(e,t,i,n){if(!e)return;let o=!1,s=e.type;if(n&&s===y.MEDIA_RULE){let t=e.selector.match(k);t&&(window.matchMedia(t[1]).matches||(o=!0))}s===y.STYLE_RULE?t(e):i&&s===y.KEYFRAMES_RULE?i(e):s===y.MIXIN_RULE&&(o=!0);let r=e.rules;if(r&&!o)for(let e,o=0,s=r.length;o<s&&(e=r[o]);o++)R(e,t,i,n)}function M(e,t){let i=0;for(let n=t,o=e.length;n<o;n++)if("("===e[n])i++;else if(")"===e[n]&&0==--i)return n;return-1}function z(e,t){let i=e.indexOf("var(");if(-1===i)return t(e,"","","");let n=M(e,i+3),o=e.substring(i+4,n),s=e.substring(0,i),r=z(e.substring(n+1),t),a=o.indexOf(",");return-1===a?t(s,o.trim(),"",r):t(s,o.substring(0,a).trim(),o.substring(a+1).trim(),r)}window.ShadyDOM&&window.ShadyDOM.wrap;function F(e){let t=e.localName,i="",n="";return t?t.indexOf("-")>-1?i=t:(n=t,i=e.getAttribute&&e.getAttribute("is")||""):(i=e.is,n=e.extends),{is:i,typeExtension:n}}function D(t){const i=[],n=t.querySelectorAll("style");for(let t=0;t<n.length;t++){const o=n[t];T(o)?e||(O(o),o.parentNode.removeChild(o)):(i.push(o.textContent),o.parentNode.removeChild(o))}return i.join("").trim()}const L="css-build";function B(e){if(void 0!==i)return i;if(void 0===e.__cssBuild){const t=e.getAttribute(L);if(t)e.__cssBuild=t;else{const t=j(e);""!==t&&q(e),e.__cssBuild=t}}return e.__cssBuild||""}function H(e){return""!==B(e)}function j(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===L)return e[1]}return""}function q(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
29
- /**
30
- @license
31
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
32
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
33
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
34
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
35
- Code distributed by Google as part of the polymer project is also
36
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
37
- */function V(e,t){for(let i in t)null===i?e.style.removeProperty(i):e.style.setProperty(i,t[i])}function $(e,t){const i=window.getComputedStyle(e).getPropertyValue(t);return i?i.trim():""}function U(e){const t=A.test(e)||S.test(e);return A.lastIndex=0,S.lastIndex=0,t}
38
- /**
39
- @license
40
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
41
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
42
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
43
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
44
- Code distributed by Google as part of the polymer project is also
45
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
46
- */const K=/;\s*/m,Y=/^\s*(initial)|(inherit)\s*$/,W=/\s*!important/,J="_-_";class X{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let Z=null;class G{constructor(){this._currentElement=null,this._measureElement=null,this._map=new X}detectMixin(e){return U(e)}gatherStyles(e){const t=D(e.content);if(t){const i=document.createElement("style");return i.textContent=t,e.content.insertBefore(i,e.content.firstChild),i}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));const i=e._gatheredStyle;return i?this.transformStyle(i,t):null}transformStyle(e,t=""){let i=N(e);return this.transformRules(i,t),e.textContent=I(i),i}transformCustomStyle(e){let t=N(e);return R(t,e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)}),e.textContent=I(t),t}transformRules(e,t){this._currentElement=t,R(e,e=>{this.transformRule(e)}),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,t){return e=e.replace(S,(e,i,n,o)=>this._produceCssProperties(e,i,n,o,t)),this._consumeCssProperties(e,t)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(e){let t=e;for(;t.parent;)t=t.parent;const i={};let n=!1;return R(t,t=>{n=n||t===e,n||t.selector===e.selector&&Object.assign(i,this._cssTextToMap(t.parsedCssText))}),i}_consumeCssProperties(e,t){let i=null;for(;i=A.exec(e);){let n=i[0],o=i[1],s=i.index,r=s+n.indexOf("@apply"),a=s+n.length,l=e.slice(0,r),c=e.slice(a),p=t?this._fallbacksFromPreviousRules(t):{};Object.assign(p,this._cssTextToMap(l));let h=this._atApplyToCssProperties(o,p);e=`${l}${h}${c}`,A.lastIndex=s+h.length}return e}_atApplyToCssProperties(e,t){e=e.replace(K,"");let i=[],n=this._map.get(e);if(n||(this._map.set(e,{}),n=this._map.get(e)),n){let o,s,r;this._currentElement&&(n.dependants[this._currentElement]=!0);const a=n.properties;for(o in a)r=t&&t[o],s=[o,": var(",e,J,o],r&&s.push(",",r.replace(W,"")),s.push(")"),W.test(a[o])&&s.push(" !important"),i.push(s.join(""))}return i.join("; ")}_replaceInitialOrInherit(e,t){let i=Y.exec(t);return i&&(t=i[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let i,n,o=e.split(";"),s={};for(let e,r,a=0;a<o.length;a++)e=o[a],e&&(r=e.split(":"),r.length>1&&(i=r[0].trim(),n=r.slice(1).join(":"),t&&(n=this._replaceInitialOrInherit(i,n)),s[i]=n));return s}_invalidateMixinEntry(e){if(Z)for(let t in e.dependants)t!==this._currentElement&&Z(t)}_produceCssProperties(e,t,i,n,o){if(i&&z(i,(e,t)=>{t&&this._map.get(t)&&(n=`@apply ${t};`)}),!n)return e;let s=this._consumeCssProperties(""+n,o),r=e.slice(0,e.indexOf("--")),a=this._cssTextToMap(s,!0),l=a,c=this._map.get(t),p=c&&c.properties;p?l=Object.assign(Object.create(p),a):this._map.set(t,l);let h,d,u=[],f=!1;for(h in l)d=a[h],void 0===d&&(d="initial"),p&&!(h in p)&&(f=!0),u.push(`${t}${J}${h}: ${d}`);return f&&this._invalidateMixinEntry(c),c&&(c.properties=l),i&&(r=`${e};${r}`),`${r}${u.join("; ")};`}}G.prototype.detectMixin=G.prototype.detectMixin,G.prototype.transformStyle=G.prototype.transformStyle,G.prototype.transformCustomStyle=G.prototype.transformCustomStyle,G.prototype.transformRules=G.prototype.transformRules,G.prototype.transformRule=G.prototype.transformRule,G.prototype.transformTemplate=G.prototype.transformTemplate,G.prototype._separator=J,Object.defineProperty(G.prototype,"invalidCallback",{get:()=>Z,set(e){Z=e}});
47
- /**
48
- @license
49
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
50
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
51
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
52
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
53
- Code distributed by Google as part of the polymer project is also
54
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
55
- */
56
- const Q={},ee="_applyShimCurrentVersion",te="_applyShimNextVersion",ie="_applyShimValidatingVersion",ne=Promise.resolve();
57
- /**
58
- @license
59
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
60
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
61
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
62
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
63
- Code distributed by Google as part of the polymer project is also
64
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
65
- */function oe(e){let t=Q[e];t&&se(t)}function se(e){e[ee]=e[ee]||0,e[ie]=e[ie]||0,e[te]=(e[te]||0)+1}function re(e){return e[ee]===e[te]}function ae(e){return!re(e)&&e[ie]===e[te]}function le(e){e[ie]=e[te],e._validating||(e._validating=!0,ne.then((function(){e[ee]=e[te],e._validating=!1})))}
66
- /**
67
- @license
68
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
69
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
70
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
71
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
72
- Code distributed by Google as part of the polymer project is also
73
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
74
- */let ce,pe=null,he=window.HTMLImports&&window.HTMLImports.whenReady||null;function de(e){requestAnimationFrame((function(){he?he(e):(pe||(pe=new Promise(e=>{ce=e}),"complete"===document.readyState?ce():document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&ce()})),pe.then((function(){e&&e()})))}))}
75
- /**
76
- @license
77
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
78
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
79
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
80
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
81
- Code distributed by Google as part of the polymer project is also
82
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
83
- */const ue="__seenByShadyCSS",fe="__shadyCSSCachedStyle";let _e=null,me=null;class ye{constructor(){this.customStyles=[],this.enqueued=!1,de(()=>{window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}enqueueDocumentValidation(){!this.enqueued&&me&&(this.enqueued=!0,de(me))}addCustomStyle(e){e[ue]||(e[ue]=!0,this.customStyles.push(e),this.enqueueDocumentValidation())}getStyleForCustomStyle(e){if(e[fe])return e[fe];let t;return t=e.getStyle?e.getStyle():e,t}processStyles(){const e=this.customStyles;for(let t=0;t<e.length;t++){const i=e[t];if(i[fe])continue;const n=this.getStyleForCustomStyle(i);if(n){const e=n.__appliedElement||n;_e&&_e(e),i[fe]=e}}return e}}ye.prototype.addCustomStyle=ye.prototype.addCustomStyle,ye.prototype.getStyleForCustomStyle=ye.prototype.getStyleForCustomStyle,ye.prototype.processStyles=ye.prototype.processStyles,Object.defineProperties(ye.prototype,{transformCallback:{get:()=>_e,set(e){_e=e}},validateCallback:{get:()=>me,set(e){let t=!1;me||(t=!0),me=e,t&&this.enqueueDocumentValidation()}}});
84
- /**
85
- @license
86
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
87
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
88
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
89
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
90
- Code distributed by Google as part of the polymer project is also
91
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
92
- */
93
- const ge=new G;class be{constructor(){this.customStyleInterface=null,ge.invalidCallback=oe}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{ge.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame(()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()})})}prepareTemplate(e,t){if(this.ensure(),H(e))return;Q[t]=e;let i=ge.transformTemplate(e,t);e._styleAst=i}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let t=0;t<e.length;t++){let i=e[t],n=this.customStyleInterface.getStyleForCustomStyle(i);n&&ge.transformCustomStyle(n)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&V(e,t),e.shadowRoot){this.styleElement(e);let t=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}else{let t=e.children||e.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}}styleElement(e){this.ensure();let{is:t}=F(e),i=Q[t];if((!i||!H(i))&&i&&!re(i)){ae(i)||(this.prepareTemplate(i,t),le(i));let n=e.shadowRoot;if(n){let e=n.querySelector("style");e&&(e.__cssRules=i._styleAst,e.textContent=I(i._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const t=new be;let n=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(e,i,n){t.flushCustomStyles(),t.prepareTemplate(e,i)},prepareTemplateStyles(e,t,i){window.ShadyCSS.prepareTemplate(e,t,i)},prepareTemplateDom(e,t){},styleSubtree(e,i){t.flushCustomStyles(),t.styleSubtree(e,i)},styleElement(e){t.flushCustomStyles(),t.styleElement(e)},styleDocument(e){t.flushCustomStyles(),t.styleDocument(e)},getComputedStyleValue:(e,t)=>$(e,t),flushCustomStyles(){t.flushCustomStyles()},nativeCss:s,nativeShadow:e,cssBuild:i,disableRuntime:o},n&&(window.ShadyCSS.CustomStyleInterface=n)}window.ShadyCSS.ApplyShim=ge,
94
- /**
95
- @license
96
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
97
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
98
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
99
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
100
- Code distributed by Google as part of the polymer project is also
101
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
102
- */
103
- window.JSCompiler_renameProperty=function(e,t){return e};
104
- /**
105
- @license
106
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
107
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
108
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
109
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
110
- Code distributed by Google as part of the polymer project is also
111
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
112
- */
113
- let ve,we,xe=/(url\()([^)]*)(\))/g,Ce=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Se(e,t){if(e&&Ce.test(e))return e;if("//"===e)return e;if(void 0===ve){ve=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ve="http://a/c%20d"===e.href}catch(e){}}if(t||(t=document.baseURI||window.location.href),ve)try{return new URL(e,t).href}catch(t){return e}return we||(we=document.implementation.createHTMLDocument("temp"),we.base=we.createElement("base"),we.head.appendChild(we.base),we.anchor=we.createElement("a"),we.body.appendChild(we.anchor)),we.base.href=t,we.anchor.href=e,we.anchor.href||e}function Ae(e,t){return e.replace(xe,(function(e,i,n,o){return i+"'"+Se(n.replace(/["']/g,""),t)+"'"+o}))}function ke(e){return e.substring(0,e.lastIndexOf("/")+1)}
114
- /**
115
- @license
116
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
117
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
118
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
119
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
120
- Code distributed by Google as part of the polymer project is also
121
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
122
- */const Ee=!window.ShadyDOM||!window.ShadyDOM.inUse,Pe=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Ee&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})());let Oe=window.Polymer&&window.Polymer.rootPath||ke(document.baseURI||window.location.href),Te=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Ie=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Ne=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Re=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Me=window.Polymer&&window.Polymer.legacyOptimizations||!1,ze=window.Polymer&&window.Polymer.legacyWarnings||!1,Fe=window.Polymer&&window.Polymer.syncInitialRender||!1,De=window.Polymer&&window.Polymer.legacyUndefined||!1,Le=window.Polymer&&window.Polymer.orderedComputed||!1,Be=window.Polymer&&window.Polymer.removeNestedTemplates||!1,He=window.Polymer&&window.Polymer.fastDomIf||!1,je=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,qe=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Ve=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,$e=0;const Ue=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=$e++;function n(n){let o=n.__mixinSet;if(o&&o[i])return n;let s=t,r=s.get(n);if(!r){r=e(n),s.set(n,r);let t=Object.create(r.__mixinSet||o||null);t[i]=!0,r.__mixinSet=t}return r}return n};
123
- /**
124
- @license
125
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
126
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
127
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
128
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
129
- Code distributed by Google as part of the polymer project is also
130
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
131
- */let Ke={},Ye={};function We(e,t){Ke[e]=Ye[e.toLowerCase()]=t}function Je(e){return Ke[e]||Ye[e.toLowerCase()]}function Xe(e){e.querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}class Ze extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=Je(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,n){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Se(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=ke(t)}return this.__assetpath}register(e){if(e=e||this.id){if(Ne&&void 0!==Je(e))throw We(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,We(e,this),Xe(this)}}}Ze.prototype.modules=Ke,customElements.define("dom-module",Ze);
132
- /**
133
- @license
134
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
135
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
136
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
137
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
138
- Code distributed by Google as part of the polymer project is also
139
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
140
- */
141
- const Ge="link[rel=import][type~=css]",Qe="include",et="shady-unscoped";function tt(e){return Ze.import(e)}function it(e){const t=Ae((e.body?e.body:e).textContent,e.baseURI),i=document.createElement("style");return i.textContent=t,i}function nt(e){const t=e.trim().split(/\s+/),i=[];for(let e=0;e<t.length;e++)i.push(...ot(t[e]));return i}function ot(e){const t=tt(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){const e=[];e.push(...at(t));const i=t.querySelector("template");i&&e.push(...st(i,t.assetpath)),t._styles=e}return t._styles}function st(e,t){if(!e._styles){const i=[],n=e.content.querySelectorAll("style");for(let e=0;e<n.length;e++){let o=n[e],s=o.getAttribute(Qe);s&&i.push(...nt(s).filter((function(e,t,i){return i.indexOf(e)===t}))),t&&(o.textContent=Ae(o.textContent,t)),i.push(o)}e._styles=i}return e._styles}function rt(e){let t=tt(e);return t?at(t):[]}function at(e){const t=[],i=e.querySelectorAll(Ge);for(let e=0;e<i.length;e++){let n=i[e];if(n.import){const e=n.import,i=n.hasAttribute(et);if(i&&!e._unscopedStyle){const t=it(e);t.setAttribute(et,""),e._unscopedStyle=t}else e._style||(e._style=it(e));t.push(i?e._unscopedStyle:e._style)}}return t}function lt(e){let t=e.trim().split(/\s+/),i="";for(let e=0;e<t.length;e++)i+=ct(t[e]);return i}function ct(e){let t=tt(e);if(t&&void 0===t._cssText){let e=ht(t),i=t.querySelector("template");i&&(e+=pt(i,t.assetpath)),t._cssText=e||null}return t||console.warn("Could not find style data in module named",e),t&&t._cssText||""}function pt(e,t){let i="";const n=st(e,t);for(let e=0;e<n.length;e++){let t=n[e];t.parentNode&&t.parentNode.removeChild(t),i+=t.textContent}return i}function ht(e){let t="",i=at(e);for(let e=0;e<i.length;e++)t+=i[e].textContent;return t}
142
- /**
143
- @license
144
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
145
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
146
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
147
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
148
- Code distributed by Google as part of the polymer project is also
149
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
150
- */const dt=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?e=>ShadyDOM.patch(e):e=>e
151
- /**
152
- @license
153
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
154
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
155
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
156
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
157
- Code distributed by Google as part of the polymer project is also
158
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
159
- */;function ut(e){return e.indexOf(".")>=0}function ft(e){let t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function _t(e,t){return 0===e.indexOf(t+".")}function mt(e,t){return 0===t.indexOf(e+".")}function yt(e,t,i){return t+i.slice(e.length)}function gt(e,t){return e===t||_t(e,t)||mt(e,t)}function bt(e){if(Array.isArray(e)){let t=[];for(let i=0;i<e.length;i++){let n=e[i].toString().split(".");for(let e=0;e<n.length;e++)t.push(n[e])}return t.join(".")}return e}function vt(e){return Array.isArray(e)?bt(e).split("."):e.toString().split(".")}function wt(e,t,i){let n=e,o=vt(t);for(let e=0;e<o.length;e++){if(!n)return;n=n[o[e]]}return i&&(i.path=o.join(".")),n}function xt(e,t,i){let n=e,o=vt(t),s=o[o.length-1];if(o.length>1){for(let e=0;e<o.length-1;e++){if(n=n[o[e]],!n)return}n[s]=i}else n[t]=i;return o.join(".")}
160
- /**
161
- @license
162
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
163
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
164
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
165
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
166
- Code distributed by Google as part of the polymer project is also
167
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
168
- */const Ct={},St=/-[a-z]/g,At=/([A-Z])/g;function kt(e){return Ct[e]||(Ct[e]=e.indexOf("-")<0?e:e.replace(St,e=>e[1].toUpperCase()))}function Et(e){return Ct[e]||(Ct[e]=e.replace(At,"-$1").toLowerCase())}
169
- /**
170
- @license
171
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
172
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
173
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
174
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
175
- Code distributed by Google as part of the polymer project is also
176
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
177
- */let Pt=0,Ot=0,Tt=[],It=0,Nt=!1,Rt=document.createTextNode("");function Mt(){Nt=!1;const e=Tt.length;for(let t=0;t<e;t++){let e=Tt[t];if(e)try{e()}catch(e){setTimeout(()=>{throw e})}}Tt.splice(0,e),Ot+=e}new window.MutationObserver(Mt).observe(Rt,{characterData:!0});const zt={after:e=>({run:t=>window.setTimeout(t,e),cancel(e){window.clearTimeout(e)}}),run:(e,t)=>window.setTimeout(e,t),cancel(e){window.clearTimeout(e)}},Ft={run:e=>window.requestAnimationFrame(e),cancel(e){window.cancelAnimationFrame(e)}},Dt={run:e=>window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16),cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},Lt={run:e=>(Nt||(Nt=!0,Rt.textContent=It++),Tt.push(e),Pt++),cancel(e){const t=e-Ot;if(t>=0){if(!Tt[t])throw new Error("invalid async handle: "+e);Tt[t]=null}}},Bt=Lt,Ht=Ue(e=>{class t extends e{static createProperties(e){const t=this.prototype;for(let i in e)i in t||t._createPropertyAccessor(i)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(e,t){Object.defineProperty(this,e,{get(){return this.__data[e]},set:t?function(){}:function(t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){let n=this.__data[e],o=this._shouldPropertyChange(e,t,n);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=n),this.__data[e]=t,this.__dataPending[e]=t),o}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Bt.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,n){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,n)}_attributeToProperty(e,t,i){if(!this.__serializing){const n=this.__dataAttributes,o=n&&n[e]||e;this[o]=this._deserializeValue(t,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){const n=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=dt(e)),void 0===n?e.removeAttribute(i):e.setAttribute(i,""===n&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(e){switch(typeof e){case"boolean":return e?"":void 0;default:return null!=e?e.toString():void 0}}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}return t}),jt={};let qt=HTMLElement.prototype;for(;qt;){let e=Object.getOwnPropertyNames(qt);for(let t=0;t<e.length;t++)jt[e[t]]=!0;qt=Object.getPrototypeOf(qt)}const Vt=window.trustedTypes?e=>trustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;function $t(e,t){if(!jt[t]){let i=e[t];void 0!==i&&(e.__data?e._setPendingProperty(t,i):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=i))}}const Ut=Ue(e=>{const t=Ht(e);class i extends t{static createPropertiesForAttributes(){let e=this.observedAttributes;for(let t=0;t<e.length;t++)this.prototype._createPropertyAccessor(kt(e[t]))}static attributeNameForProperty(e){return Et(e)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(e){for(let t in e)this._setProperty(t,e[t])}_ensureAttribute(e,t){const i=this;i.hasAttribute(e)||this._valueToNodeAttribute(i,t,e)}_serializeValue(e){switch(typeof e){case"object":if(e instanceof Date)return e.toString();if(e){if(Vt(e))return e;try{return JSON.stringify(e)}catch(e){return""}}default:return super._serializeValue(e)}}_deserializeValue(e,t){let i;switch(t){case Object:try{i=JSON.parse(e)}catch(t){i=e}break;case Array:try{i=JSON.parse(e)}catch(t){i=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+e)}break;case Date:i=isNaN(e)?String(e):Number(e),i=new Date(i);break;default:i=super._deserializeValue(e,t)}return i}_definePropertyAccessor(e,t){$t(this,e),super._definePropertyAccessor(e,t)}_hasAccessor(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}_isPropertyPending(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}return i}),Kt={"dom-if":!0,"dom-repeat":!0};
178
- /**
179
- @license
180
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
181
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
182
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
183
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
184
- Code distributed by Google as part of the polymer project is also
185
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
186
- */let Yt=!1,Wt=!1;function Jt(){if(!Yt){Yt=!0;const e=document.createElement("textarea");e.placeholder="a",Wt=e.placeholder===e.textContent}return Wt}function Xt(e){Jt()&&"textarea"===e.localName&&e.placeholder&&e.placeholder===e.textContent&&(e.textContent=null)}const Zt=(()=>{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(t,i,n)=>{const o=i.getAttribute(n);e&&n.startsWith("on-")?t.setAttribute(n,e.createScript(o,n)):t.setAttribute(n,o)}})();function Gt(e){let t=e.getAttribute("is");if(t&&Kt[t]){let i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const{name:t}=i.attributes[0];Zt(e,i,t),i.removeAttribute(t)}}return e}function Qt(e,t){let i=t.parentInfo&&Qt(e,t.parentInfo);if(!i)return e;for(let e=i.firstChild,n=0;e;e=e.nextSibling)if(t.parentIndex===n++)return e}function ei(e,t,i,n){n.id&&(t[n.id]=i)}function ti(e,t,i){if(i.events&&i.events.length)for(let n,o=0,s=i.events;o<s.length&&(n=s[o]);o++)e._addMethodEventListenerToNode(t,n.name,n.value,e)}function ii(e,t,i,n){i.templateInfo&&(t._templateInfo=i.templateInfo,t._parentTemplateInfo=n)}function ni(e,t,i){return e=e._methodHost||e,function(t){e[i]?e[i](t,t.detail):console.warn("listener method `"+i+"` not defined")}}const oi=Ue(e=>{class t extends e{static _parseTemplate(e,t){if(!e._templateInfo){let i=e._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})}return e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let n=!1,o=e;return"template"!=o.localName||o.hasAttribute("preserve-content")?"slot"===o.localName&&(t.hasInsertionPoint=!0):n=this._parseTemplateNestedTemplate(o,t,i)||n,Xt(o),o.firstChild&&this._parseTemplateChildNodes(o,t,i),o.hasAttributes&&o.hasAttributes()&&(n=this._parseTemplateNodeAttributes(o,t,i)||n),n||i.noted}static _parseTemplateChildNodes(e,t,i){if("script"!==e.localName&&"style"!==e.localName)for(let n,o=e.firstChild,s=0;o;o=n){if("template"==o.localName&&(o=Gt(o)),n=o.nextSibling,o.nodeType===Node.TEXT_NODE){let i=n;for(;i&&i.nodeType===Node.TEXT_NODE;)o.textContent+=i.textContent,n=i.nextSibling,e.removeChild(i),i=n;if(t.stripWhiteSpace&&!o.textContent.trim()){e.removeChild(o);continue}}let r={parentIndex:s,parentInfo:i};this._parseTemplateNode(o,t,r)&&(r.infoIndex=t.nodeInfoList.push(r)-1),o.parentNode&&s++}}static _parseTemplateNestedTemplate(e,t,i){let n=e,o=this._parseTemplate(n,t);return(o.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),i.templateInfo=o,!0}static _parseTemplateNodeAttributes(e,t,i){let n=!1,o=Array.from(e.attributes);for(let s,r=o.length-1;s=o[r];r--)n=this._parseTemplateNodeAttribute(e,t,i,s.name,s.value)||n;return n}static _parseTemplateNodeAttribute(e,t,i,n,o){return"on-"===n.slice(0,3)?(e.removeAttribute(n),i.events=i.events||[],i.events.push({name:n.slice(3),value:o}),!0):"id"===n&&(i.id=o,!0)}static _contentForTemplate(e){let t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,t){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);let i=(t=t||this.constructor._parseTemplate(e)).nodeInfoList,n=t.content||e.content,o=document.importNode(n,!0);o.__noInsertionPoint=!t.hasInsertionPoint;let s=o.nodeList=new Array(i.length);o.$={};for(let e,n=0,r=i.length;n<r&&(e=i[n]);n++){let i=s[n]=Qt(o,e);ei(this,o.$,i,e),ii(this,i,e,t),ti(this,i,e)}return o=o,o}_addMethodEventListenerToNode(e,t,i,n){let o=ni(n=n||e,t,i);return this._addEventListenerToNode(e,t,o),o}_addEventListenerToNode(e,t,i){e.addEventListener(t,i)}_removeEventListenerFromNode(e,t,i){e.removeEventListener(t,i)}}return t});
187
- /**
188
- * @fileoverview
189
- * @suppress {checkPrototypalTypes}
190
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
191
- * This code may only be used under the BSD style license found at
192
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
193
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
194
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
195
- * Google as part of the polymer project is also subject to an additional IP
196
- * rights grant found at http://polymer.github.io/PATENTS.txt
197
- */let si=0;const ri=[],ai={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},li="__computeInfo",ci=/[A-Z]/;function pi(e,t,i){let n=e[t];if(n){if(!e.hasOwnProperty(t)&&(n=e[t]=Object.create(e[t]),i))for(let e in n){let t=n[e],i=n[e]=Array(t.length);for(let e=0;e<t.length;e++)i[e]=t[e]}}else n=e[t]={};return n}function hi(e,t,i,n,o,s){if(t){let r=!1;const a=si++;for(let l in i){let c=t[o?ft(l):l];if(c)for(let t,p=0,h=c.length;p<h&&(t=c[p]);p++)t.info&&t.info.lastRun===a||o&&!ui(l,t.trigger)||(t.info&&(t.info.lastRun=a),t.fn(e,l,i,n,t.info,o,s),r=!0)}return r}return!1}function di(e,t,i,n,o,s,r,a){let l=!1,c=t[r?ft(n):n];if(c)for(let t,p=0,h=c.length;p<h&&(t=c[p]);p++)t.info&&t.info.lastRun===i||r&&!ui(n,t.trigger)||(t.info&&(t.info.lastRun=i),t.fn(e,n,o,s,t.info,r,a),l=!0);return l}function ui(e,t){if(t){let i=t.name;return i==e||!(!t.structured||!_t(i,e))||!(!t.wildcard||!mt(i,e))}return!0}function fi(e,t,i,n,o){let s="string"==typeof o.method?e[o.method]:o.method,r=o.property;s?s.call(e,e.__data[r],n[r]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function _i(e,t,i,n,o){let s,r,a=e[ai.NOTIFY],l=si++;for(let r in t)t[r]&&(a&&di(e,a,l,r,i,n,o)||o&&mi(e,r,i))&&(s=!0);s&&(r=e.__dataHost)&&r._invalidateProperties&&r._invalidateProperties()}function mi(e,t,i){let n=ft(t);if(n!==t){return yi(e,Et(n)+"-changed",i[t],t),!0}return!1}function yi(e,t,i,n){let o={value:i,queueProperty:!0};n&&(o.path=n),dt(e).dispatchEvent(new CustomEvent(t,{detail:o}))}function gi(e,t,i,n,o,s){let r=(s?ft(t):t)!=t?t:null,a=r?wt(e,r):e.__data[t];r&&void 0===a&&(a=i[t]),yi(e,o.eventName,a,r)}function bi(e,t,i,n,o){let s,r=e.detail,a=r&&r.path;a?(n=yt(i,n,a),s=r&&r.value):s=e.currentTarget[i],s=o?!s:s,t[ai.READ_ONLY]&&t[ai.READ_ONLY][n]||!t._setPendingPropertyOrPath(n,s,!0,Boolean(a))||r&&r.queueProperty||t._invalidateProperties()}function vi(e,t,i,n,o){let s=e.__data[t];Te&&(s=Te(s,o.attrName,"attribute",e)),e._propertyToAttribute(t,o.attrName,s)}function wi(e,t,i,n){let o=e[ai.COMPUTE];if(o)if(Le){si++;const s=Si(e),r=[];for(let e in t)Ci(e,o,r,s,n);let a;for(;a=r.shift();)ki(e,"",t,i,a)&&Ci(a.methodInfo,o,r,s,n);Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;hi(e,o,s,i,n);)Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const xi=(e,t,i)=>{let n=0,o=t.length-1,s=-1;for(;n<=o;){const r=n+o>>1,a=i.get(t[r].methodInfo)-i.get(e.methodInfo);if(a<0)n=r+1;else{if(!(a>0)){s=r;break}o=r-1}}s<0&&(s=o+1),t.splice(s,0,e)},Ci=(e,t,i,n,o)=>{const s=t[o?ft(e):e];if(s)for(let t=0;t<s.length;t++){const r=s[t];r.info.lastRun===si||o&&!ui(e,r.trigger)||(r.info.lastRun=si,xi(r.info,i,n))}};function Si(e){let t=e.constructor.__orderedComputedDeps;if(!t){t=new Map;const i=e[ai.COMPUTE];let n,{counts:o,ready:s,total:r}=Ai(e);for(;n=s.shift();){t.set(n,t.size);const e=i[n];e&&e.forEach(e=>{const t=e.info.methodInfo;--r,0==--o[t]&&s.push(t)})}if(0!==r){const t=e;console.warn(`Computed graph for ${t.localName} incomplete; circular?`)}e.constructor.__orderedComputedDeps=t}return t}function Ai(e){const t=e[li],i={},n=e[ai.COMPUTE],o=[];let s=0;for(let e in t){const n=t[e];s+=i[e]=n.args.filter(e=>!e.literal).length+(n.dynamicFn?1:0)}for(let e in n)t[e]||o.push(e);return{counts:i,ready:o,total:s}}function ki(e,t,i,n,o){let s=Li(e,t,i,n,o);if(s===ri)return!1;let r=o.methodInfo;return e.__dataHasAccessor&&e.__dataHasAccessor[r]?e._setPendingProperty(r,s,!0):(e[r]=s,!1)}function Ei(e,t,i){let n=e.__dataLinkedPaths;if(n){let o;for(let s in n){let r=n[s];mt(s,t)?(o=yt(s,r,t),e._setPendingPropertyOrPath(o,i,!0,!0)):mt(r,t)&&(o=yt(r,s,t),e._setPendingPropertyOrPath(o,i,!0,!0))}}}function Pi(e,t,i,n,o,s,r){i.bindings=i.bindings||[];let a={kind:n,target:o,parts:s,literal:r,isCompound:1!==s.length};if(i.bindings.push(a),Ri(a)){let{event:e,negate:t}=a.parts[0];a.listenerEvent=e||Et(o)+"-changed",a.listenerNegate=t}let l=t.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let n=a.parts[i];n.compoundIndex=i,Oi(e,t,a,n,l)}}function Oi(e,t,i,n,o){if(!n.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let s=n.dependencies,r={index:o,binding:i,part:n,evaluator:e};for(let i=0;i<s.length;i++){let n=s[i];"string"==typeof n&&(n=Ki(n),n.wildcard=!0),e._addTemplatePropertyEffect(t,n.rootProperty,{fn:Ti,info:r,trigger:n})}}}function Ti(e,t,i,n,o,s,r){let a=r[o.index],l=o.binding,c=o.part;if(s&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let n=i[t];t=yt(c.source,l.target,t),a._setPendingPropertyOrPath(t,n,!1,!0)&&e._enqueueClient(a)}else{let r=o.evaluator._evaluateBinding(e,c,t,i,n,s);r!==ri&&Ii(e,a,l,c,r)}}function Ii(e,t,i,n,o){if(o=Ni(t,o,i,n),Te&&(o=Te(o,i.target,i.kind,t)),"attribute"==i.kind)e._valueToNodeAttribute(t,o,i.target);else{let n=i.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[n]?t[ai.READ_ONLY]&&t[ai.READ_ONLY][n]||t._setPendingProperty(n,o)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,n,o)}}function Ni(e,t,i,n){if(i.isCompound){let o=e.__dataCompoundStorage[i.target];o[n.compoundIndex]=t,t=o.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t)),t}function Ri(e){return Boolean(e.target)&&"attribute"!=e.kind&&"text"!=e.kind&&!e.isCompound&&"{"===e.parts[0].mode}function Mi(e,t){let{nodeList:i,nodeInfoList:n}=t;if(n.length)for(let t=0;t<n.length;t++){let o=n[t],s=i[t],r=o.bindings;if(r)for(let t=0;t<r.length;t++){let i=r[t];zi(s,i),Fi(s,e,i)}s.__dataHost=e}}function zi(e,t){if(t.isCompound){let i=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),n=t.parts,o=new Array(n.length);for(let e=0;e<n.length;e++)o[e]=n[e].literal;let s=t.target;i[s]=o,t.literal&&"property"==t.kind&&("className"===s&&(e=dt(e)),e[s]=t.literal)}}function Fi(e,t,i){if(i.listenerEvent){let n=i.parts[0];e.addEventListener(i.listenerEvent,(function(e){bi(e,t,i.target,n.source,n.negate)}))}}function Di(e,t,i,n,o,s){s=t.static||s&&("object"!=typeof s||s[t.methodName]);let r={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:s};for(let o,s=0;s<t.args.length&&(o=t.args[s]);s++)o.literal||e._addPropertyEffect(o.rootProperty,i,{fn:n,info:r,trigger:o});return s&&e._addPropertyEffect(t.methodName,i,{fn:n,info:r}),r}function Li(e,t,i,n,o){let s=e._methodHost||e,r=s[o.methodName];if(r){let n=e._marshalArgs(o.args,t,i);return n===ri?ri:r.apply(s,n)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Bi=[],Hi="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ji="(?:("+Hi+"|"+"(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)"+"|"+("(?:"+"(?:'(?:[^'\\\\]|\\\\.)*')"+"|"+'(?:"(?:[^"\\\\]|\\\\.)*")'+")")+")\\s*)",qi=new RegExp("(\\[\\[|{{)\\s*"+"(?:(!)\\s*)?"+("("+Hi+"\\s*"+("(?:\\(\\s*(?:"+("(?:"+ji+"(?:,\\s*"+ji+")*)")+"?)\\)\\s*)")+"?)")+"(?:]]|}})","g");function Vi(e){let t="";for(let i=0;i<e.length;i++){t+=e[i].literal||""}return t}function $i(e){let t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let e={methodName:t[1],static:!0,args:Bi};if(t[2].trim()){return Ui(t[2].replace(/\\,/g,"&comma;").split(","),e)}return e}return null}function Ui(e,t){return t.args=e.map((function(e){let i=Ki(e);return i.literal||(t.static=!1),i}),this),t}function Ki(e){let t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:t,value:"",literal:!1},n=t[0];switch("-"===n&&(n=t[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=ft(t),i.structured=ut(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i}function Yi(e,t,i){let n=wt(e,i);return void 0===n&&(n=t[i]),n}function Wi(e,t,i,n){const o={indexSplices:n};De&&!e._overrideLegacyUndefined&&(t.splices=o),e.notifyPath(i+".splices",o),e.notifyPath(i+".length",t.length),De&&!e._overrideLegacyUndefined&&(o.indexSplices=[])}function Ji(e,t,i,n,o,s){Wi(e,t,i,[{index:n,addedCount:o,removed:s,object:t,type:"splice"}])}function Xi(e){return e[0].toUpperCase()+e.substring(1)}const Zi=Ue(e=>{const t=oi(Ut(e));class i extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return ai}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Gi.length){let e=Gi[Gi.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){let t=this[ai.READ_ONLY];for(let i in e)t&&t[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=e[i])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==ai.READ_ONLY);let n=pi(this,t,!0)[e];n||(n=this[t][e]=[]),n.push(i)}_removePropertyEffect(e,t,i){let n=pi(this,t,!0)[e],o=n.indexOf(i);o>=0&&n.splice(o,1)}_hasPropertyEffect(e,t){let i=this[t];return Boolean(i&&i[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,ai.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,ai.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,ai.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,ai.COMPUTE)}_setPendingPropertyOrPath(e,t,i,n){if(n||ft(Array.isArray(e)?e[0]:e)!==e){if(!n){let i=wt(this,e);if(!(e=xt(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i))return Ei(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||("className"===t&&(e=dt(e)),e[t]=i)}_setPendingProperty(e,t,i){let n=this.__dataHasPaths&&ut(e),o=n?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,o[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),n?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(n||this[ai.NOTIFY]&&this[ai.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(let t=0;t<e.length;t++){let i=e[t];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(e,t){for(let i in e)!t&&this[ai.READ_ONLY]&&this[ai.READ_ONLY][i]||this._setPendingPropertyOrPath(i,e[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(e,t,i){let n,o=this.__dataHasPaths;this.__dataHasPaths=!1,wi(this,t,i,o),n=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(t,i,o),this._flushClients(),hi(this,this[ai.REFLECT],t,i,o),hi(this,this[ai.OBSERVE],t,i,o),n&&_i(this,n,t,i,o),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(e,t,i){this[ai.PROPAGATE]&&hi(this,this[ai.PROPAGATE],e,t,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,e,t,i)}_runEffectsForTemplate(e,t,i,n){const o=(t,n)=>{hi(this,e.propertyEffects,t,i,n,e.nodeList);for(let o=e.firstChild;o;o=o.nextSibling)this._runEffectsForTemplate(o,t,i,n)};e.runEffects?e.runEffects(o,t,n):o(t,n)}linkPaths(e,t){e=bt(e),t=bt(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=bt(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let i={path:""};Wi(this,wt(this,e,i),i.path,t)}get(e,t){return wt(t||this,e)}set(e,t,i){i?xt(i,e,t):this[ai.READ_ONLY]&&this[ai.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let i={path:""},n=wt(this,e,i),o=n.length,s=n.push(...t);return t.length&&Ji(this,n,i.path,o,t.length,[]),s}pop(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),o=i.pop();return n&&Ji(this,i,t.path,i.length,0,[o]),o}splice(e,t,i,...n){let o,s={path:""},r=wt(this,e,s);return t<0?t=r.length-Math.floor(-t):t&&(t=Math.floor(t)),o=2===arguments.length?r.splice(t):r.splice(t,i,...n),(n.length||o.length)&&Ji(this,r,s.path,t,n.length,o),o}shift(e){let t={path:""},i=wt(this,e,t),n=Boolean(i.length),o=i.shift();return n&&Ji(this,i,t.path,0,0,[o]),o}unshift(e,...t){let i={path:""},n=wt(this,e,i),o=n.unshift(...t);return t.length&&Ji(this,n,i.path,0,t.length,[]),o}notifyPath(e,t){let i;if(1==arguments.length){let n={path:""};t=wt(this,e,n),i=n.path}else i=Array.isArray(e)?bt(e):e;this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){this._addPropertyEffect(e,ai.READ_ONLY),t&&(this["_set"+Xi(e)]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,i){let n={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,ai.OBSERVE,{fn:fi,info:n,trigger:{name:e}}),i&&this._addPropertyEffect(t,ai.OBSERVE,{fn:fi,info:n,trigger:{name:t}})}_createMethodObserver(e,t){let i=$i(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Di(this,i,ai.OBSERVE,Li,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,ai.NOTIFY,{fn:gi,info:{eventName:Et(e)+"-changed",property:e}})}_createReflectedProperty(e){let t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,ai.REFLECT,{fn:vi,info:{attrName:t}})}_createComputedProperty(e,t,i){let n=$i(t);if(!n)throw new Error("Malformed computed expression '"+t+"'");const o=Di(this,n,ai.COMPUTE,ki,e,i);pi(this,li)[e]=o}_marshalArgs(e,t,i){const n=this.__data,o=[];for(let s=0,r=e.length;s<r;s++){let{name:r,structured:a,wildcard:l,value:c,literal:p}=e[s];if(!p)if(l){const e=mt(r,t),o=Yi(n,i,e?t:r);c={path:e?t:r,value:o,base:e?wt(n,r):o}}else c=a?Yi(n,i,r):n[r];if(De&&!this._overrideLegacyUndefined&&void 0===c&&e.length>1)return ri;o[s]=c}return o}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),n=this.__preBoundTemplateInfo==i;if(!n)for(let e in i.propertyEffects)this._createPropertyAccessor(e);if(t)if(i=Object.create(i),i.wasPreBound=n,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,n=t.lastChild;i.parent=t,t.lastChild=i,i.previousSibling=n,n?n.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;let n=e.propertyEffects=e.propertyEffects||{};(n[t]=n[t]||[]).push(i)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),Gi.push(this);let i=super._stampTemplate(e,t);if(Gi.pop(),t.nodeList=i.nodeList,!t.wasPreBound){let e=t.childNodes=[];for(let t=i.firstChild;t;t=t.nextSibling)e.push(t)}return i.templateInfo=t,Mi(this,t),this.__dataClientsReady&&(this._runEffectsForTemplate(t,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(e){const t=e.templateInfo,{previousSibling:i,nextSibling:n,parent:o}=t;i?i.nextSibling=n:o&&(o.firstChild=n),n?n.previousSibling=i:o&&(o.lastChild=i),t.nextSibling=t.previousSibling=null;let s=t.childNodes;for(let e=0;e<s.length;e++){let t=s[e];dt(dt(t).parentNode).removeChild(t)}}static _parseTemplateNode(e,i,n){let o=t._parseTemplateNode.call(this,e,i,n);if(e.nodeType===Node.TEXT_NODE){let t=this._parseBindings(e.textContent,i);t&&(e.textContent=Vi(t)||" ",Pi(this,i,n,"text","textContent",t),o=!0)}return o}static _parseTemplateNodeAttribute(e,i,n,o,s){let r=this._parseBindings(s,i);if(r){let t=o,s="property";ci.test(o)?s="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),s="attribute");let a=Vi(r);return a&&"attribute"==s&&("class"==o&&e.hasAttribute("class")&&(a+=" "+e.getAttribute(o)),e.setAttribute(o,a)),"attribute"==s&&"disable-upgrade$"==t&&e.setAttribute(o,""),"input"===e.localName&&"value"===t&&e.setAttribute(t,""),e.removeAttribute(t),"property"===s&&(o=kt(o)),Pi(this,i,n,s,o,r,a),!0}return t._parseTemplateNodeAttribute.call(this,e,i,n,o,s)}static _parseTemplateNestedTemplate(e,i,n){let o=t._parseTemplateNestedTemplate.call(this,e,i,n);const s=e.parentNode,r=n.templateInfo,a="dom-if"===s.localName,l="dom-repeat"===s.localName;Be&&(a||l)&&(s.removeChild(e),(n=n.parentInfo).templateInfo=r,n.noted=!0,o=!1);let c=r.hostProps;if(He&&a)c&&(i.hostProps=Object.assign(i.hostProps||{},c),Be||(n.parentInfo.noted=!0));else{let e="{";for(let t in c){Pi(this,i,n,"property","_host_"+t,[{mode:e,source:t,dependencies:[t],hostProp:!0}])}}return o}static _parseBindings(e,t){let i,n=[],o=0;for(;null!==(i=qi.exec(e));){i.index>o&&n.push({literal:e.slice(o,i.index)});let s=i[1][0],r=Boolean(i[2]),a=i[3].trim(),l=!1,c="",p=-1;"{"==s&&(p=a.indexOf("::"))>0&&(c=a.substring(p+2),a=a.substring(0,p),l=!0);let h=$i(a),d=[];if(h){let{args:e,methodName:i}=h;for(let t=0;t<e.length;t++){let i=e[t];i.literal||d.push(i)}let n=t.dynamicFns;(n&&n[i]||h.static)&&(d.push(i),h.dynamicFn=!0)}else d.push(a);n.push({source:a,mode:s,negate:r,customEvent:l,signature:h,dependencies:d,event:c}),o=qi.lastIndex}if(o&&o<e.length){let t=e.substring(o);t&&n.push({literal:t})}return n.length?n:null}static _evaluateBinding(e,t,i,n,o,s){let r;return r=t.signature?Li(e,i,n,o,t.signature):i!=t.source?wt(e,t.source):s&&ut(i)?wt(e,i):e.__data[i],t.negate&&(r=!r),r}}return i}),Gi=[];
198
- /**
199
- @license
200
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
201
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
202
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
203
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
204
- Code distributed by Google as part of the polymer project is also
205
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
206
- */
207
- function Qi(e){}
208
- /**
209
- @license
210
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
211
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
212
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
213
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
214
- Code distributed by Google as part of the polymer project is also
215
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
216
- */function en(e){const t={};for(let i in e){const n=e[i];t[i]="function"==typeof n?{type:n}:n}return t}const tn=Ue(e=>{const t=Ht(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof o?t:null}function n(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=en(i))}e.__ownProperties=t}return e.__ownProperties}class o extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){Qi(this.prototype);const e=this._properties;this.__observedAttributes=e?Object.keys(e).map(e=>this.prototype._addPropertyToAttributeMap(e)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=i(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=n(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=i(this);this.__properties=Object.assign({},e&&e._properties,n(this))}return this.__properties}static typeForProperty(e){const t=this._properties[e];return t&&t.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o}),nn="3.5.1",on=window.ShadyCSS&&window.ShadyCSS.cssBuild,sn=Ue(e=>{const t=tn(Zi(e));function i(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;let t=e._properties;for(let i in t){let n=t[i];"value"in n&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[i]=n)}}return e.__propertyDefaults}function n(e){return e.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",e))||(e.__ownObservers=e.hasOwnProperty(JSCompiler_renameProperty("observers",e))?e.observers:null),e.__ownObservers}function o(e,t,i,n){i.computed&&(i.readOnly=!0),i.computed&&(e._hasReadOnlyEffect(t)?console.warn(`Cannot redefine computed property '${t}'.`):e._createComputedProperty(t,i.computed,n)),i.readOnly&&!e._hasReadOnlyEffect(t)?e._createReadOnlyProperty(t,!i.computed):!1===i.readOnly&&e._hasReadOnlyEffect(t)&&console.warn(`Cannot make readOnly property '${t}' non-readOnly.`),i.reflectToAttribute&&!e._hasReflectEffect(t)?e._createReflectedProperty(t):!1===i.reflectToAttribute&&e._hasReflectEffect(t)&&console.warn(`Cannot make reflected property '${t}' non-reflected.`),i.notify&&!e._hasNotifyEffect(t)?e._createNotifyingProperty(t):!1===i.notify&&e._hasNotifyEffect(t)&&console.warn(`Cannot make notify property '${t}' non-notify.`),i.observer&&e._createPropertyObserver(t,i.observer,n[i.observer]),e._addPropertyToAttributeMap(t)}function s(e,t,i,n){if(!on){const o=t.content.querySelectorAll("style"),s=st(t),r=rt(i),a=t.content.firstElementChild;for(let i=0;i<r.length;i++){let o=r[i];o.textContent=e._processStyleText(o.textContent,n),t.content.insertBefore(o,a)}let l=0;for(let t=0;t<s.length;t++){let i=s[t],r=o[l];r!==i?(i=i.cloneNode(!0),r.parentNode.insertBefore(i,r)):l++,i.textContent=e._processStyleText(i.textContent,n)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,i),Ve&&on&&Pe){const i=t.content.querySelectorAll("style");if(i){let t="";Array.from(i).forEach(e=>{t+=e.textContent,e.parentNode.removeChild(e)}),e._styleSheet=new CSSStyleSheet,e._styleSheet.replaceSync(t)}}}function r(e){let t=null;if(e&&(!Ne||Re)&&(t=Ze.import(e,"template"),Ne&&!t))throw new Error("strictTemplatePolicy: expecting dom-module or null template for "+e);return t}class a extends t{static get polymerElementVersion(){return nn}static _finalizeClass(){t._finalizeClass.call(this);const e=n(this);e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):Me||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(let t in e)o(this.prototype,t,e[t],e)}static createObservers(e,t){const i=this.prototype;for(let n=0;n<e.length;n++)i._createMethodObserver(e[n],t)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let e=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof e&&(e=e()),this._template=void 0!==e?e:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&r(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(e){this._template=e}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const e=this.importMeta;if(e)this._importPath=ke(e.url);else{const e=Ze.import(this.is);this._importPath=e&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Oe,this.importPath=this.constructor.importPath;let e=i(this.constructor);if(e)for(let t in e){let i=e[t];if(this._canApplyPropertyDefault(t)){let e="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(t)?this._setPendingProperty(t,e,!0):this[t]=e}}}_canApplyPropertyDefault(e){return!this.hasOwnProperty(e)}static _processStyleText(e,t){return Ae(e,t)}static _finalizeTemplate(e){const t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;const i=this.importPath;s(this,t,e,i?Se(i):""),this.prototype._bindTemplate(t)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(e){const t=dt(this);if(t.attachShadow)return e?(t.shadowRoot||(t.attachShadow({mode:"open",shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),this.constructor._styleSheet&&(t.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Fe&&window.ShadyDOM&&window.ShadyDOM.flushInitial(t.shadowRoot),t.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}resolveUrl(e,t){return!t&&this.importPath&&(t=Se(this.importPath)),Se(e,t)}static _parseTemplateContent(e,i,n){return i.dynamicFns=i.dynamicFns||this._properties,t._parseTemplateContent.call(this,e,i,n)}static _addTemplatePropertyEffect(e,i,n){return!ze||i in this._properties||n.info.part.signature&&n.info.part.signature.static||n.info.part.hostProp||e.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,e,i,n)}}return a});
217
- /**
218
- * @fileoverview
219
- * @suppress {checkPrototypalTypes}
220
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
221
- * This code may only be used under the BSD style license found at
222
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
223
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
224
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
225
- * Google as part of the polymer project is also subject to an additional IP
226
- * rights grant found at http://polymer.github.io/PATENTS.txt
227
- */
228
- /**
229
- @license
230
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
231
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
232
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
233
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
234
- Code distributed by Google as part of the polymer project is also
235
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
236
- */
237
- class rn{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,an.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),an.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(e,t,i){return e instanceof rn?e._cancelAsync():e=new rn,e.setConfig(t,i),e}}let an=new Set;const ln=function(e){an.add(e)},cn=function(){const e=Boolean(an.size);return an.forEach(e=>{try{e.flush()}catch(e){setTimeout(()=>{throw e})}}),e};
238
- /**
239
- @license
240
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
241
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
242
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
243
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
244
- Code distributed by Google as part of the polymer project is also
245
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
246
- */
247
- let pn="string"==typeof document.head.style.touchAction,hn="__polymerGestures",dn="__polymerGesturesHandled",un="__polymerGesturesTouchAction",fn=25,_n=5,mn=2,yn=2500,gn=["mousedown","mousemove","mouseup","click"],bn=[0,1,4,2],vn=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function wn(e){return gn.indexOf(e)>-1}let xn=!1;function Cn(e){if(!wn(e)&&"touchend"!==e)return pn&&xn&&Ie?{passive:!0}:void 0}!function(){try{let e=Object.defineProperty({},"passive",{get(){xn=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();let Sn=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const An=[],kn={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},En={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Pn(e){return kn[e.localName]||!1}function On(e){let t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];try{let i=e.getRootNode();if(e.id){let n=i.querySelectorAll(`label[for = '${e.id}']`);for(let e=0;e<n.length;e++)t.push(n[e])}}catch(e){}}return t}let Tn=function(e){let t=e.sourceCapabilities;if((!t||t.firesTouchEvents)&&(e[dn]={skip:!0},"click"===e.type)){let t=!1,i=Bn(e);for(let e=0;e<i.length;e++){if(i[e].nodeType===Node.ELEMENT_NODE)if("label"===i[e].localName)An.push(i[e]);else if(Pn(i[e])){let n=On(i[e]);for(let e=0;e<n.length;e++)t=t||An.indexOf(n[e])>-1}if(i[e]===zn.mouse.target)return}if(t)return;e.preventDefault(),e.stopPropagation()}};function In(e){let t=Sn?["click"]:gn;for(let i,n=0;n<t.length;n++)i=t[n],e?(An.length=0,document.addEventListener(i,Tn,!0)):document.removeEventListener(i,Tn,!0)}function Nn(e){zn.mouse.mouseIgnoreJob||In(!0);let t=function(){In(),zn.mouse.target=null,zn.mouse.mouseIgnoreJob=null};zn.mouse.target=Bn(e)[0],zn.mouse.mouseIgnoreJob=rn.debounce(zn.mouse.mouseIgnoreJob,zt.after(yn),t)}function Rn(e){let t=e.type;if(!wn(t))return!1;if("mousemove"===t){let t=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!vn&&(t=bn[e.which]||0),Boolean(1&t)}return 0===(void 0===e.button?0:e.button)}function Mn(e){if("click"===e.type){if(0===e.detail)return!0;let t=Vn(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;let i=t.getBoundingClientRect(),n=e.pageX,o=e.pageY;return!(n>=i.left&&n<=i.right&&o>=i.top&&o<=i.bottom)}return!1}let zn={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Fn(e){let t="auto",i=Bn(e);for(let e,n=0;n<i.length;n++)if(e=i[n],e[un]){t=e[un];break}return t}function Dn(e,t,i){e.movefn=t,e.upfn=i,document.addEventListener("mousemove",t),document.addEventListener("mouseup",i)}function Ln(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",Nn,!!xn&&{passive:!0});const Bn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:e=>e.composedPath&&e.composedPath()||[],Hn={},jn=[];function qn(e,t){let i=document.elementFromPoint(e,t),n=i;for(;n&&n.shadowRoot&&!window.ShadyDOM;){let o=n;if(n=n.shadowRoot.elementFromPoint(e,t),o===n)break;n&&(i=n)}return i}function Vn(e){const t=Bn(e);return t.length>0?t[0]:e.target}function $n(e){let t,i=e.type,n=e.currentTarget[hn];if(!n)return;let o=n[i];if(o){if(!e[dn]&&(e[dn]={},"touch"===i.slice(0,5))){let t=(e=e).changedTouches[0];if("touchstart"===i&&1===e.touches.length&&(zn.touch.id=t.identifier),zn.touch.id!==t.identifier)return;pn||"touchstart"!==i&&"touchmove"!==i||Un(e)}if(t=e[dn],!t.skip){for(let i,n=0;n<jn.length;n++)i=jn[n],o[i.name]&&!t[i.name]&&i.flow&&i.flow.start.indexOf(e.type)>-1&&i.reset&&i.reset();for(let n,s=0;s<jn.length;s++)n=jn[s],o[n.name]&&!t[n.name]&&(t[n.name]=!0,n[i](e))}}}function Un(e){let t=e.changedTouches[0],i=e.type;if("touchstart"===i)zn.touch.x=t.clientX,zn.touch.y=t.clientY,zn.touch.scrollDecided=!1;else if("touchmove"===i){if(zn.touch.scrollDecided)return;zn.touch.scrollDecided=!0;let i=Fn(e),n=!1,o=Math.abs(zn.touch.x-t.clientX),s=Math.abs(zn.touch.y-t.clientY);e.cancelable&&("none"===i?n=!0:"pan-x"===i?n=s>o:"pan-y"===i&&(n=o>s)),n?e.preventDefault():eo("track")}}function Kn(e,t,i){return!!Hn[t]&&(Wn(e,t,i),!0)}function Yn(e,t,i){return!!Hn[t]&&(Jn(e,t,i),!0)}function Wn(e,t,i){let n=Hn[t],o=n.deps,s=n.name,r=e[hn];r||(e[hn]=r={});for(let t,i,n=0;n<o.length;n++)t=o[n],Sn&&wn(t)&&"click"!==t||(i=r[t],i||(r[t]=i={_count:0}),0===i._count&&e.addEventListener(t,$n,Cn(t)),i[s]=(i[s]||0)+1,i._count=(i._count||0)+1);e.addEventListener(t,i),n.touchAction&&Gn(e,n.touchAction)}function Jn(e,t,i){let n=Hn[t],o=n.deps,s=n.name,r=e[hn];if(r)for(let t,i,n=0;n<o.length;n++)t=o[n],i=r[t],i&&i[s]&&(i[s]=(i[s]||1)-1,i._count=(i._count||1)-1,0===i._count&&e.removeEventListener(t,$n,Cn(t)));e.removeEventListener(t,i)}function Xn(e){jn.push(e);for(let t=0;t<e.emits.length;t++)Hn[e.emits[t]]=e}function Zn(e){for(let t,i=0;i<jn.length;i++){t=jn[i];for(let i,n=0;n<t.emits.length;n++)if(i=t.emits[n],i===e)return t}return null}function Gn(e,t){pn&&e instanceof HTMLElement&&Lt.run(()=>{e.style.touchAction=t}),e[un]=t}function Qn(e,t,i){let n=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=i,dt(e).dispatchEvent(n),n.defaultPrevented){let e=i.preventer||i.sourceEvent;e&&e.preventDefault&&e.preventDefault()}}function eo(e){let t=Zn(e);t.info&&(t.info.prevent=!0)}function to(){zn.mouse.mouseIgnoreJob&&zn.mouse.mouseIgnoreJob.flush()}function io(e,t,i,n){t&&Qn(t,e,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:function(e){return eo(e)}})}function no(e,t,i){if(e.prevent)return!1;if(e.started)return!0;let n=Math.abs(e.x-t),o=Math.abs(e.y-i);return n>=_n||o>=_n}function oo(e,t,i){if(!t)return;let n,o=e.moves[e.moves.length-2],s=e.moves[e.moves.length-1],r=s.x-e.x,a=s.y-e.y,l=0;o&&(n=s.x-o.x,l=s.y-o.y),Qn(t,"track",{state:e.state,x:i.clientX,y:i.clientY,dx:r,dy:a,ddx:n,ddy:l,sourceEvent:i,hover:function(){return qn(i.clientX,i.clientY)}})}function so(e,t,i){let n=Math.abs(t.clientX-e.x),o=Math.abs(t.clientY-e.y),s=Vn(i||t);!s||En[s.localName]&&s.hasAttribute("disabled")||(isNaN(n)||isNaN(o)||n<=fn&&o<=fn||Mn(t))&&(e.prevent||Qn(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i}))}Xn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Ln(this.info)},mousedown:function(e){if(!Rn(e))return;let t=Vn(e),i=this,n=function(e){Rn(e)||(io("up",t,e),Ln(i.info))},o=function(e){Rn(e)&&io("up",t,e),Ln(i.info)};Dn(this.info,n,o),io("down",t,e)},touchstart:function(e){io("down",Vn(e),e.changedTouches[0],e)},touchend:function(e){io("up",Vn(e),e.changedTouches[0],e)}}),Xn({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>mn&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Ln(this.info)},mousedown:function(e){if(!Rn(e))return;let t=Vn(e),i=this,n=function(e){let n=e.clientX,o=e.clientY;no(i.info,n,o)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&eo("tap"),i.info.addMove({x:n,y:o}),Rn(e)||(i.info.state="end",Ln(i.info)),t&&oo(i.info,t,e),i.info.started=!0)},o=function(e){i.info.started&&n(e),Ln(i.info)};Dn(this.info,n,o),this.info.x=e.clientX,this.info.y=e.clientY},touchstart:function(e){let t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){let t=Vn(e),i=e.changedTouches[0],n=i.clientX,o=i.clientY;no(this.info,n,o)&&("start"===this.info.state&&eo("tap"),this.info.addMove({x:n,y:o}),oo(this.info,t,i),this.info.state="track",this.info.started=!0)},touchend:function(e){let t=Vn(e),i=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),oo(this.info,t,i))}}),Xn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){Rn(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Rn(e)&&so(this.info,e)},touchstart:function(e){const t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend:function(e){so(this.info,e.changedTouches[0],e)}});const ro=Vn,ao=Ue(e=>{class t extends e{_addEventListenerToNode(e,t,i){Kn(e,t,i)||super._addEventListenerToNode(e,t,i)}_removeEventListenerFromNode(e,t,i){Yn(e,t,i)||super._removeEventListenerFromNode(e,t,i)}}return t}),lo=/:host\(:dir\((ltr|rtl)\)\)/g,co=':host([dir="$1"])',po=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,ho=':host([dir="$2"]) $1',uo=/:dir\((?:ltr|rtl)\)/,fo=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),_o=[];
248
- /**
249
- @license
250
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
251
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
252
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
253
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
254
- Code distributed by Google as part of the polymer project is also
255
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
256
- */let mo=null,yo="";function go(){yo=document.documentElement.getAttribute("dir")}function bo(e){if(!e.__autoDirOptOut){e.setAttribute("dir",yo)}}function vo(){go(),yo=document.documentElement.getAttribute("dir");for(let e=0;e<_o.length;e++)bo(_o[e])}function wo(){mo&&mo.takeRecords().length&&vo()}const xo=Ue(e=>{fo||mo||(go(),mo=new MutationObserver(vo),mo.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const t=Ut(e);class i extends t{static _processStyleText(e,i){return e=t._processStyleText.call(this,e,i),!fo&&uo.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(lo,co),t=t.replace(po,ho),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){t.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(wo(),_o.push(this),bo(this))}disconnectedCallback(){if(t.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const e=_o.indexOf(this);e>-1&&_o.splice(e,1)}}}return i.__activateDir=!1,i});
257
- /**
258
- @license
259
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
260
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
261
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
262
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
263
- Code distributed by Google as part of the polymer project is also
264
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
265
- */let Co=!1,So=[],Ao=[];function ko(){Co=!0,requestAnimationFrame((function(){Co=!1,Eo(So),setTimeout((function(){Po(Ao)}))}))}function Eo(e){for(;e.length;)Oo(e.shift())}function Po(e){for(let t=0,i=e.length;t<i;t++)Oo(e.shift())}function Oo(e){const t=e[0],i=e[1],n=e[2];try{i.apply(t,n)}catch(e){setTimeout(()=>{throw e})}}function To(e,t,i){Co||ko(),Ao.push([e,t,i])}
266
- /**
267
- @license
268
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
269
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
270
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
271
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
272
- Code distributed by Google as part of the polymer project is also
273
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
274
- */function Io(){document.body.removeAttribute("unresolved")}
275
- /**
276
- @license
277
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
278
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
279
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
280
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
281
- Code distributed by Google as part of the polymer project is also
282
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
283
- */
284
- function No(e,t,i){return{index:e,removed:t,addedCount:i}}"interactive"===document.readyState||"complete"===document.readyState?Io():window.addEventListener("DOMContentLoaded",Io);const Ro=0,Mo=1,zo=2,Fo=3;function Do(e,t,i,n,o,s){let r=s-o+1,a=i-t+1,l=new Array(r);for(let e=0;e<r;e++)l[e]=new Array(a),l[e][0]=e;for(let e=0;e<a;e++)l[0][e]=e;for(let i=1;i<r;i++)for(let s=1;s<a;s++)if(Vo(e[t+s-1],n[o+i-1]))l[i][s]=l[i-1][s-1];else{let e=l[i-1][s]+1,t=l[i][s-1]+1;l[i][s]=e<t?e:t}return l}function Lo(e){let t=e.length-1,i=e[0].length-1,n=e[t][i],o=[];for(;t>0||i>0;){if(0==t){o.push(zo),i--;continue}if(0==i){o.push(Fo),t--;continue}let s,r=e[t-1][i-1],a=e[t-1][i],l=e[t][i-1];s=a<l?a<r?a:r:l<r?l:r,s==r?(r==n?o.push(Ro):(o.push(Mo),n=r),t--,i--):s==a?(o.push(Fo),t--,n=a):(o.push(zo),i--,n=l)}return o.reverse(),o}function Bo(e,t,i,n,o,s){let r,a=0,l=0,c=Math.min(i-t,s-o);if(0==t&&0==o&&(a=Ho(e,n,c)),i==e.length&&s==n.length&&(l=jo(e,n,c-a)),o+=a,s-=l,(i-=l)-(t+=a)==0&&s-o==0)return[];if(t==i){for(r=No(t,[],0);o<s;)r.removed.push(n[o++]);return[r]}if(o==s)return[No(t,[],i-t)];let p=Lo(Do(e,t,i,n,o,s));r=void 0;let h=[],d=t,u=o;for(let e=0;e<p.length;e++)switch(p[e]){case Ro:r&&(h.push(r),r=void 0),d++,u++;break;case Mo:r||(r=No(d,[],0)),r.addedCount++,d++,r.removed.push(n[u]),u++;break;case zo:r||(r=No(d,[],0)),r.addedCount++,d++;break;case Fo:r||(r=No(d,[],0)),r.removed.push(n[u]),u++}return r&&h.push(r),h}function Ho(e,t,i){for(let n=0;n<i;n++)if(!Vo(e[n],t[n]))return n;return i}function jo(e,t,i){let n=e.length,o=t.length,s=0;for(;s<i&&Vo(e[--n],t[--o]);)s++;return s}function qo(e,t){return Bo(e,0,e.length,t,0,t.length)}function Vo(e,t){return e===t}
285
- /**
286
- @license
287
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
288
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
289
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
290
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
291
- Code distributed by Google as part of the polymer project is also
292
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
293
- */function $o(e){return"slot"===e.localName}let Uo=class{static getFlattenedNodes(e){const t=dt(e);return $o(e)?(e=e,t.assignedNodes({flatten:!0})):Array.from(t.childNodes).map(e=>$o(e)?dt(e=e).assignedNodes({flatten:!0}):[e]).reduce((e,t)=>e.concat(t),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){$o(this._target)?this._listenSlots([this._target]):dt(this._target).children&&(this._listenSlots(dt(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,e=>{this._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(e=>{this._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){$o(this._target)?this._unlistenSlots([this._target]):dt(this._target).children&&(this._unlistenSlots(dt(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,Lt.run(()=>this.flush()))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let i=e[t];i.addedNodes&&this._listenSlots(i.addedNodes),i.removedNodes&&this._unlistenSlots(i.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let e={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),i=qo(t,this._effectiveNodes);for(let t,n=0;n<i.length&&(t=i[n]);n++)for(let i,n=0;n<t.removed.length&&(i=t.removed[n]);n++)e.removedNodes.push(i);for(let n,o=0;o<i.length&&(n=i[o]);o++)for(let i=n.index;i<n.index+n.addedCount;i++)e.addedNodes.push(t[i]);this._effectiveNodes=t;let n=!1;return(e.addedNodes.length||e.removedNodes.length)&&(n=!0,this.callback.call(this._target,e)),n}_listenSlots(e){for(let t=0;t<e.length;t++){let i=e[t];$o(i)&&i.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let i=e[t];$o(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}};
294
- /**
295
- @license
296
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
297
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
298
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
299
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
300
- Code distributed by Google as part of the polymer project is also
301
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
302
- */const Ko=function(){let e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=cn()}while(e||t)},Yo=Element.prototype,Wo=Yo.matches||Yo.matchesSelector||Yo.mozMatchesSelector||Yo.msMatchesSelector||Yo.oMatchesSelector||Yo.webkitMatchesSelector,Jo=function(e,t){return Wo.call(e,t)};
303
- /**
304
- @license
305
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
306
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
307
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
308
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
309
- Code distributed by Google as part of the polymer project is also
310
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
311
- */class Xo{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new Uo(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(dt(this.node).contains(e))return!0;let t=e,i=e.ownerDocument;for(;t&&t!==i&&t!==this.node;)t=dt(t).parentNode||dt(t).host;return t===this.node}getOwnerRoot(){return dt(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?dt(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=dt(this.node).assignedSlot;for(;t;)e.push(t),t=dt(t).assignedSlot;return e}importNode(e,t){let i=this.node instanceof Document?this.node:this.node.ownerDocument;return dt(i).importNode(e,t)}getEffectiveChildNodes(){return Uo.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),i=[];for(let n,o=0,s=t.length;o<s&&(n=t[o]);o++)n.nodeType===Node.ELEMENT_NODE&&Jo(n,e)&&i.push(n);return i}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function Zo(e,t){for(let i=0;i<t.length;i++){let n=t[i];e[n]=function(){return this.node[n].apply(this.node,arguments)}}}function Go(e,t){for(let i=0;i<t.length;i++){let n=t[i];Object.defineProperty(e,n,{get:function(){return this.node[n]},configurable:!0})}}function Qo(e,t){for(let i=0;i<t.length;i++){let n=t[i];Object.defineProperty(e,n,{get:function(){return this.node[n]},set:function(e){this.node[n]=e},configurable:!0})}}class es{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}Xo.prototype.cloneNode,Xo.prototype.appendChild,Xo.prototype.insertBefore,Xo.prototype.removeChild,Xo.prototype.replaceChild,Xo.prototype.setAttribute,Xo.prototype.removeAttribute,Xo.prototype.querySelector,Xo.prototype.querySelectorAll,Xo.prototype.parentNode,Xo.prototype.firstChild,Xo.prototype.lastChild,Xo.prototype.nextSibling,Xo.prototype.previousSibling,Xo.prototype.firstElementChild,Xo.prototype.lastElementChild,Xo.prototype.nextElementSibling,Xo.prototype.previousElementSibling,Xo.prototype.childNodes,Xo.prototype.children,Xo.prototype.classList,Xo.prototype.textContent,Xo.prototype.innerHTML;let ts=Xo;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(Xo.prototype).forEach(t=>{"activeElement"!=t&&(e.prototype[t]=Xo.prototype[t])}),Go(e.prototype,["classList"]),ts=e,Object.defineProperties(es.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&is(e).getOwnerRoot(),i=this.path;for(let e=0;e<i.length;e++){const n=i[e];if(is(n).getOwnerRoot()===t)return n}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else Zo(Xo.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),Go(Xo.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),Qo(Xo.prototype,["textContent","innerHTML","className"]);const is=function(e){if((e=e||document)instanceof ts)return e;if(e instanceof es)return e;let t=e.__domApi;return t||(t=e instanceof Event?new es(e):new ts(e),e.__domApi=t),t},ns=window.ShadyDOM,os=window.ShadyCSS;
312
- /**
313
- @license
314
- Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
315
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
316
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
317
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
318
- Code distributed by Google as part of the polymer project is also
319
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
320
- */function ss(e,t){return dt(e).getRootNode()===t}function rs(e,t=!1){if(!ns||!os)return null;if(!ns.handlesDynamicScoping)return null;const i=os.ScopingShim;if(!i)return null;const n=i.scopeForNode(e),o=dt(e).getRootNode(),s=e=>{if(!ss(e,o))return;const t=Array.from(ns.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const s=t[e];if(!ss(s,o))continue;const r=i.currentScopeForNode(s);r!==n&&(""!==r&&i.unscopeNode(s,r),i.scopeNode(s,n))}};if(s(e),t){const t=new MutationObserver(e=>{for(let t=0;t<e.length;t++){const i=e[t];for(let e=0;e<i.addedNodes.length;e++){const t=i.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&s(t)}}});return t.observe(e,{childList:!0,subtree:!0}),t}return null}
321
- /**
322
- * @fileoverview
323
- * @suppress {checkPrototypalTypes}
324
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
325
- * This code may only be used under the BSD style license found at
326
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
327
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
328
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
329
- * Google as part of the polymer project is also subject to an additional IP
330
- * rights grant found at http://polymer.github.io/PATENTS.txt
331
- */const as="disable-upgrade",ls=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},cs=(Ue(e=>{const t=sn(e);let i=ls(t);class n extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return i.call(this).concat(as)}_initializeProperties(){this.hasAttribute(as)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,i,n){e==as?this.__isUpgradeDisabled&&null==i&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,dt(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,i,n)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}return n}),"disable-upgrade");let ps=window.ShadyCSS;const hs=Ue(e=>{const t=ao(sn(e)),i=on?t:xo(t),n=ls(i),o={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class s extends i{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,i){(this.__dataAttributes&&this.__dataAttributes[e]||e===cs)&&this.attributeChangedCallback(e,t,i,null)}setAttribute(e,t){if(qe&&!this._legacyForceObservedAttributes){const i=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,i,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(qe&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return qe&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],Qi(this.prototype)),this.__observedAttributes):n.call(this).concat(cs)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,i,n){t!==i&&(e==cs?this.__isUpgradeDisabled&&null==i&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,dt(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,i,n),this.attributeChanged(e,t,i)))}attributeChanged(e,t,i){}_initializeProperties(){if(Me&&this.hasAttribute(cs))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),qe&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,i=e.length;t<i;t++){const i=e[t];this.__attributeReaction(i.name,null,i.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,i){this._propertyToAttribute(e,t,i)}serializeValueToAttribute(e,t,i){this._valueToNodeAttribute(i||this,e,t)}extend(e,t){if(!e||!t)return e||t;let i=Object.getOwnPropertyNames(t);for(let n,o=0;o<i.length&&(n=i[o]);o++){let i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}return e}mixin(e,t){for(let i in t)e[i]=t[i];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){let t=this.constructor._contentForTemplate(e);return document.importNode(t,!0)}fire(e,t,i){i=i||{},t=null==t?{}:t;let n=new Event(e,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed});n.detail=t;let o=i.node||this;return dt(o).dispatchEvent(n),n}listen(e,t,i){e=e||this;let n=this.__boundListeners||(this.__boundListeners=new WeakMap),o=n.get(e);o||(o={},n.set(e,o));let s=t+i;o[s]||(o[s]=this._addMethodEventListenerToNode(e,t,i,this))}unlisten(e,t,i){e=e||this;let n=this.__boundListeners&&this.__boundListeners.get(e),o=t+i,s=n&&n[o];s&&(this._removeEventListenerFromNode(e,t,s),n[o]=null)}setScrollDirection(e,t){Gn(t||this,o[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=dt(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=is(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return is(this).getEffectiveChildNodes()}queryDistributedElements(e){return is(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let i,n=0;i=e[n];n++)i.nodeType!==Node.COMMENT_NODE&&t.push(i.textContent);return t.join("")}queryEffectiveChildren(e){let t=this.queryDistributedElements(e);return t&&t[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){let t=this.root.querySelector(e||"slot");return t?is(t).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(e){const t=this;return t!==e&&dt(t).contains(e)&&dt(t).getRootNode()===dt(e).getRootNode()}isLocalDescendant(e){return this.root===dt(e).getRootNode()}scopeSubtree(e,t=!1){return rs(e,t)}getComputedStyleValue(e){return ps.getComputedStyleValue(this,e)}debounce(e,t,i){return this._debouncers=this._debouncers||{},this._debouncers[e]=rn.debounce(this._debouncers[e],i>0?zt.after(i):Lt,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return t>0?zt.run(e.bind(this),t):~Lt.run(e.bind(this))}cancelAsync(e){e<0?Lt.cancel(~e):zt.cancel(e)}create(e,t){let i=document.createElement(e);if(t)if(i.setProperties)i.setProperties(t);else for(let e in t)i[e]=t[e];return i}elementMatches(e,t){return Jo(t||this,e)}toggleAttribute(e,t){let i=this;return 3===arguments.length&&(i=arguments[2]),1==arguments.length&&(t=!i.hasAttribute(e)),t?(dt(i).setAttribute(e,""),!0):(dt(i).removeAttribute(e),!1)}toggleClass(e,t,i){i=i||this,1==arguments.length&&(t=!i.classList.contains(e)),t?i.classList.add(e):i.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,i,n){n=n||this,this.transform("translate3d("+e+","+t+","+i+")",n)}arrayDelete(e,t){let i;if(Array.isArray(e)){if(i=e.indexOf(t),i>=0)return e.splice(i,1)}else{if(i=wt(this,e).indexOf(t),i>=0)return this.splice(e,i,1)}return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return s.prototype.is="",s}),ds={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},us={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},fs=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},us);
332
- /**
333
- @license
334
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
335
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
336
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
337
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
338
- Code distributed by Google as part of the polymer project is also
339
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
340
- */function _s(e,t,i){const n=e._noAccessors,o=Object.getOwnPropertyNames(e);for(let s=0;s<o.length;s++){let r=o[s];if(!(r in i))if(n)t[r]=e[r];else{let i=Object.getOwnPropertyDescriptor(e,r);i&&(i.configurable=!0,Object.defineProperty(t,r,i))}}}function ms(e,t){return xs({},hs(t),e)}function ys(e,t,i){for(let n=0;n<t.length;n++)gs(e,t[n],i,fs)}function gs(e,t,i,n){_s(t,e,n);for(let e in ds)t[e]&&(i[e]=i[e]||[],i[e].push(t[e]))}function bs(e,t,i){t=t||[];for(let n=e.length-1;n>=0;n--){let o=e[n];o?Array.isArray(o)?bs(o,t):t.indexOf(o)<0&&(!i||i.indexOf(o)<0)&&t.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return t}function vs(e,t){for(const i in t){const n=e[i],o=t[i];e[i]=!("value"in o)&&n&&"value"in n?Object.assign({value:n.value},o):o}}const ws=hs(HTMLElement);function xs(e,t,i){let n;const o={};class s extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(n)for(let e,t=0;t<n.length;t++)e=n[t],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){const t={};if(n)for(let e=0;e<n.length;e++)vs(t,n[e].properties);return vs(t,e.properties),t}static get observers(){let t=[];if(n)for(let e,i=0;i<n.length;i++)e=n[i],e.observers&&(t=t.concat(e.observers));return e.observers&&(t=t.concat(e.observers)),t}created(){super.created();const e=o.created;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}_registered(){const e=s.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),Me&&r(e);const t=Object.getPrototypeOf(this);let i=o.beforeRegister;if(i)for(let e=0;e<i.length;e++)i[e].call(t);if(i=o.registered,i)for(let e=0;e<i.length;e++)i[e].call(t)}}_applyListeners(){super._applyListeners();const e=o.listeners;if(e)for(let t=0;t<e.length;t++){const i=e[t];if(i)for(let e in i)this._addMethodEventListenerToNode(this,e,i[e])}}_ensureAttributes(){const e=o.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const i=e[t];for(let e in i)this._ensureAttribute(e,i[e])}super._ensureAttributes()}ready(){super.ready();let e=o.ready;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attached(){super.attached();let e=o.attached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}detached(){super.detached();let e=o.detached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attributeChanged(e,t,i){super.attributeChanged();let n=o.attributeChanged;if(n)for(let o=0;o<n.length;o++)n[o].call(this,e,t,i)}}if(i){Array.isArray(i)||(i=[i]);let e=t.prototype.behaviors;n=bs(i,null,e),s.prototype.behaviors=e?e.concat(i):n}const r=t=>{n&&ys(t,n,o),gs(t,e,o,us)};return Me||r(s.prototype),s.generatedFrom=e,s}const Cs=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let i=t?t(ws):ws;return i=xs(e,i,e.behaviors),i.is=i.prototype.is=e.is,i},Ss=function(e){let t;return t="function"==typeof e?e:Ss.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
341
- /**
342
- @license
343
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
344
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
345
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
346
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
347
- Code distributed by Google as part of the polymer project is also
348
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
349
- */
350
- /**
351
- @license
352
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
353
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
354
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
355
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
356
- Code distributed by Google as part of the polymer project is also
357
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
358
- */
359
- function As(e,t,i,n,o){let s;o&&(s="object"==typeof i&&null!==i,s&&(n=e.__dataTemp[t]));let r=n!==i&&(n==n||i==i);return s&&r&&(e.__dataTemp[t]=i),r}Ss.Class=Cs;const ks=Ue(e=>{class t extends e{_shouldPropertyChange(e,t,i){return As(this,e,t,i,!0)}}return t}),Es=Ue(e=>{class t extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,i){return As(this,e,t,i,this.mutableData)}}return t});ks._mutablePropertyChange=As;
360
- /**
361
- @license
362
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
363
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
364
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
365
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
366
- Code distributed by Google as part of the polymer project is also
367
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
368
- */
369
- let Ps=null;function Os(){return Ps}Os.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Os,writable:!0}});const Ts=Zi(Os),Is=ks(Ts);function Ns(e,t){Ps=e,Object.setPrototypeOf(e,t.prototype),new t,Ps=null}const Rs=Zi(class{});function Ms(e,t){for(let i=0;i<t.length;i++){let n=t[i];if(Boolean(e)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)e?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if("slot"===n.localName)if(e)n.__polymerReplaced__=document.createComment("hidden-slot"),dt(dt(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{const e=n.__polymerReplaced__;e&&dt(dt(e).parentNode).replaceChild(n,e)}else n.style&&(e?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=e,n._showHideChildren&&n._showHideChildren(e)}}class zs extends Rs{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,e=>{e.model=this,i(e)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(e,t,i)}}_showHideChildren(e){Ms(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}zs.prototype.__dataHost,zs.prototype.__templatizeOptions,zs.prototype._methodHost,zs.prototype.__templatizeOwner,zs.prototype.__hostProps;const Fs=ks(zs);function Ds(e){let t=e.__dataHost;return t&&t._methodHost||t}function Ls(e,t,i){let n=i.mutableData?Fs:zs;$s.mixin&&(n=$s.mixin(n));let o=class extends n{};return o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(e),js(o,e,t,i),o}function Bs(e,t,i,n){let o=i.forwardHostProp;if(o&&t.hasHostProps){const s="template"==e.localName;let r=t.templatizeTemplateClass;if(!r){if(s){let e=i.mutableData?Is:Ts;class n extends e{}r=t.templatizeTemplateClass=n}else{const i=e.constructor;class n extends i{}r=t.templatizeTemplateClass=n}let a=t.hostProps;for(let e in a)r.prototype._addPropertyEffect("_host_"+e,r.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Hs(e,o)}),r.prototype._createNotifyingProperty("_host_"+e);ze&&n&&Us(t,i,n)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),s)Ns(e,r),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,r.prototype);const i=t.hostProps;for(let t in i)if(t="_host_"+t,t in e){const i=e[t];delete e[t],e.__data[t]=i}}}}function Hs(e,t){return function(e,i,n){t.call(e.__templatizeOwner,i.substring("_host_".length),n[i])}}function js(e,t,i,n){let o=i.hostProps||{};for(let t in n.instanceProps){delete o[t];let i=n.notifyInstanceProp;i&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:qs(t,i)})}if(n.forwardHostProp&&t.__dataHost)for(let t in o)i.hasHostProps||(i.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Vs()})}function qs(e,t){return function(e,i,n){t.call(e.__templatizeOwner,e,i,n[i])}}function Vs(){return function(e,t,i){e.__dataHost._setPendingPropertyOrPath("_host_"+t,i[t],!0,!0)}}function $s(e,t,i){if(Ne&&!Ds(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let n=(t?t.constructor:zs)._parseTemplate(e),o=n.templatizeInstanceClass;o||(o=Ls(e,n,i),n.templatizeInstanceClass=o);const s=Ds(e);Bs(e,n,i,s);let r=class extends o{};return r.prototype._methodHost=s,r.prototype.__dataHost=e,r.prototype.__templatizeOwner=t,r.prototype.__hostProps=n.hostProps,r=r,r}function Us(e,t,i){const n=i.constructor._properties,{propertyEffects:o}=e,{instanceProps:s}=t;for(let e in o)if(!(n[e]||s&&s[e])){const t=o[e];for(let i=0;i<t.length;i++){const{part:n}=t[i].info;if(!n.signature||!n.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Ks(e,t){let i;for(;t;)if(i=t.__dataHost?t:t.__templatizeInstance){if(i.__dataHost==e)return i;t=i.__dataHost}else t=dt(t).parentNode;return null}
370
- /**
371
- @license
372
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
373
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
374
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
375
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
376
- Code distributed by Google as part of the polymer project is also
377
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
378
- */const Ys={templatize(e,t){this._templatizerTemplate=e,this.ctor=$s(e,this,{mutableData:Boolean(t),parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},stamp(e){return new this.ctor(e)},modelForElement(e){return Ks(this._templatizerTemplate,e)}};
379
- /**
380
- @license
381
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
382
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
383
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
384
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
385
- Code distributed by Google as part of the polymer project is also
386
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
387
- */let Ws=!1;function Js(){if(Me&&!Ee){if(!Ws){Ws=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}
388
- /**
389
- @license
390
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
391
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
392
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
393
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
394
- Code distributed by Google as part of the polymer project is also
395
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
396
- */const Xs=ao(Es(Zi(HTMLElement)));class Zs extends Xs{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),Ne)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,i,n){this.mutableData=!0}connectedCallback(){Js()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){dt(dt(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver(()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()});return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}customElements.define("dom-bind",Zs);
397
- /**
398
- @license
399
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
400
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
401
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
402
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
403
- Code distributed by Google as part of the polymer project is also
404
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
405
- */
406
- const Gs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:e=>e});class Qs{constructor(e,t){nr(e,t);const i=t.reduce((t,i,n)=>t+er(i)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function er(e){if(e instanceof Qs)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}function tr(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Qs)return er(e);throw new Error("non-template value passed to Polymer's html function: "+e)}const ir=function(e,...t){nr(e,t);const i=document.createElement("template");let n=t.reduce((t,i,n)=>t+tr(i)+e[n+1],e[0]);return Gs&&(n=Gs.createHTML(n)),i.innerHTML=n,i},nr=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},or=sn(HTMLElement),sr=Es(or);class rr extends sr{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!je,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Js()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=dt(dt(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver(()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=$s(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(e,t){let i=this.__instances;for(let n,o=0;o<i.length&&(n=i[o]);o++)n.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,i){if(gt(this.as,t)){let n=e[this.itemsIndexAs];t==this.as&&(this.items[n]=i);let o=yt(this.as,`${JSCompiler_renameProperty("items",this)}.${n}`,t);this.notifyPath(o,i)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)0===e.indexOf(t[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=rn.debounce(this.__renderDebouncer,t>0?zt.after(t):Lt,e.bind(this)),ln(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ko()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),je&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((t,i,n)=>this.__filterFn(e[t],i,n))),this.__sortFn&&t.sort((t,i)=>this.__sortFn(e[t],e[i])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),n=Math.max(t-i,0),this.__chunkCount=n||1):(n=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+n,e)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const n=this.__itemsIdxToInstIdx={};let o;for(o=0;o<t;o++){let t=this.__instances[o],s=i[o],r=e[s];n[s]=o,t?(t._setPendingProperty(this.as,r),t._setPendingProperty(this.indexAs,o),t._setPendingProperty(this.itemsIndexAs,s),t._flushProperties()):this.__insertInstance(r,o,s)}for(let e=this.__instances.length-1;e>=o;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const i=dt(t.root);for(let e=0;e<t.children.length;e++){let n=t.children[e];i.appendChild(n)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=i,new this.__ctor(n)}__insertInstance(e,t,i){const n=this.__stampInstance(e,t,i);let o=this.__instances[t+1],s=o?o.children[0]:this;return dt(dt(this).parentNode).insertBefore(n.root,s),this.__instances[t]=n,n}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),n=i.indexOf("."),o=n<0?i:i.substring(0,n);if(o==parseInt(o,10)){let e=n<0?"":i.substring(n+1);this.__handleObservedPaths(e);let s=this.__itemsIdxToInstIdx[o],r=this.__instances[s];if(r){let i=this.as+(e?"."+e:"");r._setPendingPropertyOrPath(i,t,!1,!0),r._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Ks(this.template,e)}}customElements.define(rr.is,rr);
407
- /**
408
- @license
409
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
410
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
411
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
412
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
413
- Code distributed by Google as part of the polymer project is also
414
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
415
- */
416
- class ar extends or{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=rn.debounce(this.__renderDebouncer,Lt,()=>this.__render()),ln(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=dt(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||dt(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Js()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:dt(e).querySelector("template");if(!t){let e=new MutationObserver(()=>{if(!dt(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()});return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=dt(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(dt(this).previousSibling!==t[t.length-1])for(let i,n=0;n<t.length&&(i=t[n]);n++)dt(e).insertBefore(i,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){Ko()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),je&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}class lr extends ar{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(Ne&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const i=t._bindTemplate(this.__template,!0);i.runEffects=(e,t,i)=>{let n=this.__syncInfo;if(this.if)n&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(n.changedProps,t)),e(t,i);else if(this.__instance)if(n||(n=this.__syncInfo={runEffects:e,changedProps:{}}),i)for(const e in t){const t=ft(e);n.changedProps[t]=this.__dataHost[t]}else Object.assign(n.changedProps,t)},this.__instance=t._stampTemplate(this.__template,i),dt(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,Ms(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}class cr extends ar{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=$s(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[ft(e)]=!0))}})),this.__instance=new this.__ctor,dt(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=dt(e[0]).parentNode;if(t){t=dt(t);for(let i,n=0;n<e.length&&(i=e[n]);n++)t.removeChild(i)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let e=this.__invalidProps;if(e){this.__invalidProps=null;for(let t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}}const pr=He?lr:cr;customElements.define(pr.is,pr);
417
- /**
418
- @license
419
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
420
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
421
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
422
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
423
- Code distributed by Google as part of the polymer project is also
424
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
425
- */
426
- let hr=Ue(e=>{let t=sn(e);class i extends t{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let i=t.path;if(i==JSCompiler_renameProperty("items",this)){let i=t.base||[],n=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),n){let e=qo(i,n);this.__applySplices(e)}this.__lastItems=i,this.__lastMulti=e}else if(t.path==JSCompiler_renameProperty("items",this)+".splices")this.__applySplices(t.value.indexSplices);else{let e=i.slice((JSCompiler_renameProperty("items",this)+".").length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(e){let t=this.__selectedMap;for(let i=0;i<e.length;i++){let n=e[i];t.forEach((e,i)=>{e<n.index||(e>=n.index+n.removed.length?t.set(i,e+n.addedCount-n.removed.length):t.set(i,-1))});for(let e=0;e<n.addedCount;e++){let i=n.index+e;t.has(this.items[i])&&t.set(this.items[i],i)}}this.__updateLinks();let i=0;t.forEach((e,n)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null,t.delete(n)):i++})}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let e=0;this.__selectedMap.forEach(t=>{t>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${t}`,`${JSCompiler_renameProperty("selected",this)}.${e++}`)})}else this.__selectedMap.forEach(e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${e}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${e}`)})}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let t=this.__selectedIndexForItemIndex(e);if(t>=0){let e=0;this.__selectedMap.forEach((i,n)=>{t==e++&&this.deselect(n)})}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.slice((JSCompiler_renameProperty("selected",this)+".").length),10)}deselect(e){let t=this.__selectedMap.get(e);if(t>=0){let i;this.__selectedMap.delete(e),this.multi&&(i=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),i,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){let t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}return i})(or);class dr extends hr{static get is(){return"array-selector"}static get template(){return null}}customElements.define(dr.is,dr);
427
- /**
428
- @license
429
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
430
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
431
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
432
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
433
- Code distributed by Google as part of the polymer project is also
434
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
435
- */
436
- const ur=new ye;window.ShadyCSS||(window.ShadyCSS={prepareTemplate(e,t,i){},prepareTemplateDom(e,t){},prepareTemplateStyles(e,t,i){},styleSubtree(e,t){ur.processStyles(),V(e,t)},styleElement(e){ur.processStyles()},styleDocument(e){ur.processStyles(),V(document.body,e)},getComputedStyleValue:(e,t)=>$(e,t),flushCustomStyles(){},nativeCss:s,nativeShadow:e,cssBuild:i,disableRuntime:o}),window.ShadyCSS.CustomStyleInterface=ur;
437
- /**
438
- @license
439
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
440
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
441
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
442
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
443
- Code distributed by Google as part of the polymer project is also
444
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
445
- */
446
- const fr="include",_r=window.ShadyCSS.CustomStyleInterface;class mr extends HTMLElement{constructor(){super(),this._style=null,_r.addCustomStyle(this)}getStyle(){if(this._style)return this._style;const e=this.querySelector("style");if(!e)return null;this._style=e;const t=e.getAttribute(fr);return t&&(e.removeAttribute(fr),e.textContent=lt(t)+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}window.customElements.define("custom-style",mr);
447
- /**
448
- @license
449
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
450
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
451
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
452
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
453
- Code distributed by Google as part of the polymer project is also
454
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
455
- */
456
- const yr=hs(HTMLElement).prototype,gr=ir`
457
- <custom-style>
458
- <style is="custom-style">
459
- [hidden] {
460
- display: none !important;
461
- }
462
- </style>
463
- </custom-style>
464
- <custom-style>
465
- <style is="custom-style">
466
- html {
467
-
468
- --layout: {
469
- display: -ms-flexbox;
470
- display: -webkit-flex;
471
- display: flex;
472
- };
473
-
474
- --layout-inline: {
475
- display: -ms-inline-flexbox;
476
- display: -webkit-inline-flex;
477
- display: inline-flex;
478
- };
479
-
480
- --layout-horizontal: {
481
- @apply --layout;
482
-
483
- -ms-flex-direction: row;
484
- -webkit-flex-direction: row;
485
- flex-direction: row;
486
- };
487
-
488
- --layout-horizontal-reverse: {
489
- @apply --layout;
490
-
491
- -ms-flex-direction: row-reverse;
492
- -webkit-flex-direction: row-reverse;
493
- flex-direction: row-reverse;
494
- };
495
-
496
- --layout-vertical: {
497
- @apply --layout;
498
-
499
- -ms-flex-direction: column;
500
- -webkit-flex-direction: column;
501
- flex-direction: column;
502
- };
503
-
504
- --layout-vertical-reverse: {
505
- @apply --layout;
506
-
507
- -ms-flex-direction: column-reverse;
508
- -webkit-flex-direction: column-reverse;
509
- flex-direction: column-reverse;
510
- };
511
-
512
- --layout-wrap: {
513
- -ms-flex-wrap: wrap;
514
- -webkit-flex-wrap: wrap;
515
- flex-wrap: wrap;
516
- };
517
-
518
- --layout-wrap-reverse: {
519
- -ms-flex-wrap: wrap-reverse;
520
- -webkit-flex-wrap: wrap-reverse;
521
- flex-wrap: wrap-reverse;
522
- };
523
-
524
- --layout-flex-auto: {
525
- -ms-flex: 1 1 auto;
526
- -webkit-flex: 1 1 auto;
527
- flex: 1 1 auto;
528
- };
529
-
530
- --layout-flex-none: {
531
- -ms-flex: none;
532
- -webkit-flex: none;
533
- flex: none;
534
- };
535
-
536
- --layout-flex: {
537
- -ms-flex: 1 1 0.000000001px;
538
- -webkit-flex: 1;
539
- flex: 1;
540
- -webkit-flex-basis: 0.000000001px;
541
- flex-basis: 0.000000001px;
542
- };
543
-
544
- --layout-flex-2: {
545
- -ms-flex: 2;
546
- -webkit-flex: 2;
547
- flex: 2;
548
- };
549
-
550
- --layout-flex-3: {
551
- -ms-flex: 3;
552
- -webkit-flex: 3;
553
- flex: 3;
554
- };
555
-
556
- --layout-flex-4: {
557
- -ms-flex: 4;
558
- -webkit-flex: 4;
559
- flex: 4;
560
- };
561
-
562
- --layout-flex-5: {
563
- -ms-flex: 5;
564
- -webkit-flex: 5;
565
- flex: 5;
566
- };
567
-
568
- --layout-flex-6: {
569
- -ms-flex: 6;
570
- -webkit-flex: 6;
571
- flex: 6;
572
- };
573
-
574
- --layout-flex-7: {
575
- -ms-flex: 7;
576
- -webkit-flex: 7;
577
- flex: 7;
578
- };
579
-
580
- --layout-flex-8: {
581
- -ms-flex: 8;
582
- -webkit-flex: 8;
583
- flex: 8;
584
- };
585
-
586
- --layout-flex-9: {
587
- -ms-flex: 9;
588
- -webkit-flex: 9;
589
- flex: 9;
590
- };
591
-
592
- --layout-flex-10: {
593
- -ms-flex: 10;
594
- -webkit-flex: 10;
595
- flex: 10;
596
- };
597
-
598
- --layout-flex-11: {
599
- -ms-flex: 11;
600
- -webkit-flex: 11;
601
- flex: 11;
602
- };
603
-
604
- --layout-flex-12: {
605
- -ms-flex: 12;
606
- -webkit-flex: 12;
607
- flex: 12;
608
- };
609
-
610
- /* alignment in cross axis */
611
-
612
- --layout-start: {
613
- -ms-flex-align: start;
614
- -webkit-align-items: flex-start;
615
- align-items: flex-start;
616
- };
617
-
618
- --layout-center: {
619
- -ms-flex-align: center;
620
- -webkit-align-items: center;
621
- align-items: center;
622
- };
623
-
624
- --layout-end: {
625
- -ms-flex-align: end;
626
- -webkit-align-items: flex-end;
627
- align-items: flex-end;
628
- };
629
-
630
- --layout-baseline: {
631
- -ms-flex-align: baseline;
632
- -webkit-align-items: baseline;
633
- align-items: baseline;
634
- };
635
-
636
- /* alignment in main axis */
637
-
638
- --layout-start-justified: {
639
- -ms-flex-pack: start;
640
- -webkit-justify-content: flex-start;
641
- justify-content: flex-start;
642
- };
643
-
644
- --layout-center-justified: {
645
- -ms-flex-pack: center;
646
- -webkit-justify-content: center;
647
- justify-content: center;
648
- };
649
-
650
- --layout-end-justified: {
651
- -ms-flex-pack: end;
652
- -webkit-justify-content: flex-end;
653
- justify-content: flex-end;
654
- };
655
-
656
- --layout-around-justified: {
657
- -ms-flex-pack: distribute;
658
- -webkit-justify-content: space-around;
659
- justify-content: space-around;
660
- };
661
-
662
- --layout-justified: {
663
- -ms-flex-pack: justify;
664
- -webkit-justify-content: space-between;
665
- justify-content: space-between;
666
- };
667
-
668
- --layout-center-center: {
669
- @apply --layout-center;
670
- @apply --layout-center-justified;
671
- };
672
-
673
- /* self alignment */
674
-
675
- --layout-self-start: {
676
- -ms-align-self: flex-start;
677
- -webkit-align-self: flex-start;
678
- align-self: flex-start;
679
- };
680
-
681
- --layout-self-center: {
682
- -ms-align-self: center;
683
- -webkit-align-self: center;
684
- align-self: center;
685
- };
686
-
687
- --layout-self-end: {
688
- -ms-align-self: flex-end;
689
- -webkit-align-self: flex-end;
690
- align-self: flex-end;
691
- };
692
-
693
- --layout-self-stretch: {
694
- -ms-align-self: stretch;
695
- -webkit-align-self: stretch;
696
- align-self: stretch;
697
- };
698
-
699
- --layout-self-baseline: {
700
- -ms-align-self: baseline;
701
- -webkit-align-self: baseline;
702
- align-self: baseline;
703
- };
704
-
705
- /* multi-line alignment in main axis */
706
-
707
- --layout-start-aligned: {
708
- -ms-flex-line-pack: start; /* IE10 */
709
- -ms-align-content: flex-start;
710
- -webkit-align-content: flex-start;
711
- align-content: flex-start;
712
- };
713
-
714
- --layout-end-aligned: {
715
- -ms-flex-line-pack: end; /* IE10 */
716
- -ms-align-content: flex-end;
717
- -webkit-align-content: flex-end;
718
- align-content: flex-end;
719
- };
720
-
721
- --layout-center-aligned: {
722
- -ms-flex-line-pack: center; /* IE10 */
723
- -ms-align-content: center;
724
- -webkit-align-content: center;
725
- align-content: center;
726
- };
727
-
728
- --layout-between-aligned: {
729
- -ms-flex-line-pack: justify; /* IE10 */
730
- -ms-align-content: space-between;
731
- -webkit-align-content: space-between;
732
- align-content: space-between;
733
- };
734
-
735
- --layout-around-aligned: {
736
- -ms-flex-line-pack: distribute; /* IE10 */
737
- -ms-align-content: space-around;
738
- -webkit-align-content: space-around;
739
- align-content: space-around;
740
- };
741
-
742
- /*******************************
743
- Other Layout
744
- *******************************/
745
-
746
- --layout-block: {
747
- display: block;
748
- };
749
-
750
- --layout-invisible: {
751
- visibility: hidden !important;
752
- };
753
-
754
- --layout-relative: {
755
- position: relative;
756
- };
757
-
758
- --layout-fit: {
759
- position: absolute;
760
- top: 0;
761
- right: 0;
762
- bottom: 0;
763
- left: 0;
764
- };
765
-
766
- --layout-scroll: {
767
- -webkit-overflow-scrolling: touch;
768
- overflow: auto;
769
- };
770
-
771
- --layout-fullbleed: {
772
- margin: 0;
773
- height: 100vh;
774
- };
775
-
776
- /* fixed position */
777
-
778
- --layout-fixed-top: {
779
- position: fixed;
780
- top: 0;
781
- left: 0;
782
- right: 0;
783
- };
784
-
785
- --layout-fixed-right: {
786
- position: fixed;
787
- top: 0;
788
- right: 0;
789
- bottom: 0;
790
- };
791
-
792
- --layout-fixed-bottom: {
793
- position: fixed;
794
- right: 0;
795
- bottom: 0;
796
- left: 0;
797
- };
798
-
799
- --layout-fixed-left: {
800
- position: fixed;
801
- top: 0;
802
- bottom: 0;
803
- left: 0;
804
- };
805
-
806
- }
807
- </style>
808
- </custom-style>`;
809
- /**
810
- @license
811
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
812
- This code may only be used under the BSD style license found at
813
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
814
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
815
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
816
- part of the polymer project is also subject to an additional IP rights grant
817
- found at http://polymer.github.io/PATENTS.txt
818
- */gr.setAttribute("style","display: none;"),document.head.appendChild(gr.content);var br=document.createElement("style");br.textContent="[hidden] { display: none !important; }",document.head.appendChild(br);
819
- /**
820
- @license
821
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
822
- This code may only be used under the BSD style license found at
823
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
824
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
825
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
826
- part of the polymer project is also subject to an additional IP rights grant
827
- found at http://polymer.github.io/PATENTS.txt
828
- */
829
- class vr{constructor(e){vr[" "](e),this.type=e&&e.type||"default",this.key=e&&e.key,e&&"value"in e&&(this.value=e.value)}get value(){var e=this.type,t=this.key;if(e&&t)return vr.types[e]&&vr.types[e][t]}set value(e){var t=this.type,i=this.key;t&&i&&(t=vr.types[t]=vr.types[t]||{},null==e?delete t[i]:t[i]=e)}get list(){if(this.type){var e=vr.types[this.type];return e?Object.keys(e).map((function(e){return wr[this.type][e]}),this):[]}}byKey(e){return this.key=e,this.value}}vr[" "]=function(){},vr.types={};var wr=vr.types;Ss({is:"iron-meta",properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(e,t,i){var n=new vr({type:e,key:t});return void 0!==i&&i!==n.value?n.value=i:this.value!==n.value&&(this.value=n.value),n},get list(){return this.__meta&&this.__meta.list},_selfChanged:function(e){e&&(this.value=this)},byKey:function(e){return new vr({type:this.type,key:e}).value}}),
830
- /**
831
- @license
832
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
833
- This code may only be used under the BSD style license found at
834
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
835
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
836
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
837
- part of the polymer project is also subject to an additional IP rights grant
838
- found at http://polymer.github.io/PATENTS.txt
839
- */
840
- Ss({_template:ir`
841
- <style>
842
- :host {
843
- @apply --layout-inline;
844
- @apply --layout-center-center;
845
- position: relative;
846
-
847
- vertical-align: middle;
848
-
849
- fill: var(--iron-icon-fill-color, currentcolor);
850
- stroke: var(--iron-icon-stroke-color, none);
851
-
852
- width: var(--iron-icon-width, 24px);
853
- height: var(--iron-icon-height, 24px);
854
- @apply --iron-icon;
855
- }
856
-
857
- :host([hidden]) {
858
- display: none;
859
- }
860
- </style>
861
- `,is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:yr.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&is(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,is(this.root).appendChild(this._img))}});
862
- /**
863
- @license
864
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
865
- This code may only be used under the BSD style license found at
866
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
867
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
868
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
869
- part of the polymer project is also subject to an additional IP rights grant
870
- found at http://polymer.github.io/PATENTS.txt
871
- */
872
- const xr=ir`
873
- <custom-style>
874
- <style is="custom-style">
875
- html {
876
-
877
- --shadow-transition: {
878
- transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
879
- };
880
-
881
- --shadow-none: {
882
- box-shadow: none;
883
- };
884
-
885
- /* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */
886
-
887
- --shadow-elevation-2dp: {
888
- box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
889
- 0 1px 5px 0 rgba(0, 0, 0, 0.12),
890
- 0 3px 1px -2px rgba(0, 0, 0, 0.2);
891
- };
892
-
893
- --shadow-elevation-3dp: {
894
- box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
895
- 0 1px 8px 0 rgba(0, 0, 0, 0.12),
896
- 0 3px 3px -2px rgba(0, 0, 0, 0.4);
897
- };
898
-
899
- --shadow-elevation-4dp: {
900
- box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
901
- 0 1px 10px 0 rgba(0, 0, 0, 0.12),
902
- 0 2px 4px -1px rgba(0, 0, 0, 0.4);
903
- };
904
-
905
- --shadow-elevation-6dp: {
906
- box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
907
- 0 1px 18px 0 rgba(0, 0, 0, 0.12),
908
- 0 3px 5px -1px rgba(0, 0, 0, 0.4);
909
- };
910
-
911
- --shadow-elevation-8dp: {
912
- box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14),
913
- 0 3px 14px 2px rgba(0, 0, 0, 0.12),
914
- 0 5px 5px -3px rgba(0, 0, 0, 0.4);
915
- };
916
-
917
- --shadow-elevation-12dp: {
918
- box-shadow: 0 12px 16px 1px rgba(0, 0, 0, 0.14),
919
- 0 4px 22px 3px rgba(0, 0, 0, 0.12),
920
- 0 6px 7px -4px rgba(0, 0, 0, 0.4);
921
- };
922
-
923
- --shadow-elevation-16dp: {
924
- box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
925
- 0 6px 30px 5px rgba(0, 0, 0, 0.12),
926
- 0 8px 10px -5px rgba(0, 0, 0, 0.4);
927
- };
928
-
929
- --shadow-elevation-24dp: {
930
- box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14),
931
- 0 9px 46px 8px rgba(0, 0, 0, 0.12),
932
- 0 11px 15px -7px rgba(0, 0, 0, 0.4);
933
- };
934
- }
935
- </style>
936
- </custom-style>`;xr.setAttribute("style","display: none;"),document.head.appendChild(xr.content);
937
- /**
938
- @license
939
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
940
- This code may only be used under the BSD style license found at
941
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
942
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
943
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
944
- part of the polymer project is also subject to an additional IP rights grant
945
- found at http://polymer.github.io/PATENTS.txt
946
- */
947
- const Cr=ir`
948
- <dom-module id="paper-material-styles">
949
- <template>
950
- <style>
951
- html {
952
- --paper-material: {
953
- display: block;
954
- position: relative;
955
- };
956
- --paper-material-elevation-1: {
957
- @apply --shadow-elevation-2dp;
958
- };
959
- --paper-material-elevation-2: {
960
- @apply --shadow-elevation-4dp;
961
- };
962
- --paper-material-elevation-3: {
963
- @apply --shadow-elevation-6dp;
964
- };
965
- --paper-material-elevation-4: {
966
- @apply --shadow-elevation-8dp;
967
- };
968
- --paper-material-elevation-5: {
969
- @apply --shadow-elevation-16dp;
970
- };
971
- }
972
- .paper-material {
973
- @apply --paper-material;
974
- }
975
- .paper-material[elevation="1"] {
976
- @apply --paper-material-elevation-1;
977
- }
978
- .paper-material[elevation="2"] {
979
- @apply --paper-material-elevation-2;
980
- }
981
- .paper-material[elevation="3"] {
982
- @apply --paper-material-elevation-3;
983
- }
984
- .paper-material[elevation="4"] {
985
- @apply --paper-material-elevation-4;
986
- }
987
- .paper-material[elevation="5"] {
988
- @apply --paper-material-elevation-5;
989
- }
990
-
991
- /* Duplicate the styles because of https://github.com/webcomponents/shadycss/issues/193 */
992
- :host {
993
- --paper-material: {
994
- display: block;
995
- position: relative;
996
- };
997
- --paper-material-elevation-1: {
998
- @apply --shadow-elevation-2dp;
999
- };
1000
- --paper-material-elevation-2: {
1001
- @apply --shadow-elevation-4dp;
1002
- };
1003
- --paper-material-elevation-3: {
1004
- @apply --shadow-elevation-6dp;
1005
- };
1006
- --paper-material-elevation-4: {
1007
- @apply --shadow-elevation-8dp;
1008
- };
1009
- --paper-material-elevation-5: {
1010
- @apply --shadow-elevation-16dp;
1011
- };
1012
- }
1013
- :host(.paper-material) {
1014
- @apply --paper-material;
1015
- }
1016
- :host(.paper-material[elevation="1"]) {
1017
- @apply --paper-material-elevation-1;
1018
- }
1019
- :host(.paper-material[elevation="2"]) {
1020
- @apply --paper-material-elevation-2;
1021
- }
1022
- :host(.paper-material[elevation="3"]) {
1023
- @apply --paper-material-elevation-3;
1024
- }
1025
- :host(.paper-material[elevation="4"]) {
1026
- @apply --paper-material-elevation-4;
1027
- }
1028
- :host(.paper-material[elevation="5"]) {
1029
- @apply --paper-material-elevation-5;
1030
- }
1031
- </style>
1032
- </template>
1033
- </dom-module>`;Cr.setAttribute("style","display: none;"),document.head.appendChild(Cr.content);
1034
- /**
1035
- @license
1036
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1037
- This code may only be used under the BSD style license found at
1038
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1039
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1040
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1041
- part of the polymer project is also subject to an additional IP rights grant
1042
- found at http://polymer.github.io/PATENTS.txt
1043
- */
1044
- const Sr=ir`
1045
- <custom-style>
1046
- <style is="custom-style">
1047
- html {
1048
-
1049
- /* Material Design color palette for Google products */
1050
-
1051
- --google-red-100: #f4c7c3;
1052
- --google-red-300: #e67c73;
1053
- --google-red-500: #db4437;
1054
- --google-red-700: #c53929;
1055
-
1056
- --google-blue-100: #c6dafc;
1057
- --google-blue-300: #7baaf7;
1058
- --google-blue-500: #4285f4;
1059
- --google-blue-700: #3367d6;
1060
-
1061
- --google-green-100: #b7e1cd;
1062
- --google-green-300: #57bb8a;
1063
- --google-green-500: #0f9d58;
1064
- --google-green-700: #0b8043;
1065
-
1066
- --google-yellow-100: #fce8b2;
1067
- --google-yellow-300: #f7cb4d;
1068
- --google-yellow-500: #f4b400;
1069
- --google-yellow-700: #f09300;
1070
-
1071
- --google-grey-100: #f5f5f5;
1072
- --google-grey-300: #e0e0e0;
1073
- --google-grey-500: #9e9e9e;
1074
- --google-grey-700: #616161;
1075
-
1076
- /* Material Design color palette from online spec document */
1077
-
1078
- --paper-red-50: #ffebee;
1079
- --paper-red-100: #ffcdd2;
1080
- --paper-red-200: #ef9a9a;
1081
- --paper-red-300: #e57373;
1082
- --paper-red-400: #ef5350;
1083
- --paper-red-500: #f44336;
1084
- --paper-red-600: #e53935;
1085
- --paper-red-700: #d32f2f;
1086
- --paper-red-800: #c62828;
1087
- --paper-red-900: #b71c1c;
1088
- --paper-red-a100: #ff8a80;
1089
- --paper-red-a200: #ff5252;
1090
- --paper-red-a400: #ff1744;
1091
- --paper-red-a700: #d50000;
1092
-
1093
- --paper-pink-50: #fce4ec;
1094
- --paper-pink-100: #f8bbd0;
1095
- --paper-pink-200: #f48fb1;
1096
- --paper-pink-300: #f06292;
1097
- --paper-pink-400: #ec407a;
1098
- --paper-pink-500: #e91e63;
1099
- --paper-pink-600: #d81b60;
1100
- --paper-pink-700: #c2185b;
1101
- --paper-pink-800: #ad1457;
1102
- --paper-pink-900: #880e4f;
1103
- --paper-pink-a100: #ff80ab;
1104
- --paper-pink-a200: #ff4081;
1105
- --paper-pink-a400: #f50057;
1106
- --paper-pink-a700: #c51162;
1107
-
1108
- --paper-purple-50: #f3e5f5;
1109
- --paper-purple-100: #e1bee7;
1110
- --paper-purple-200: #ce93d8;
1111
- --paper-purple-300: #ba68c8;
1112
- --paper-purple-400: #ab47bc;
1113
- --paper-purple-500: #9c27b0;
1114
- --paper-purple-600: #8e24aa;
1115
- --paper-purple-700: #7b1fa2;
1116
- --paper-purple-800: #6a1b9a;
1117
- --paper-purple-900: #4a148c;
1118
- --paper-purple-a100: #ea80fc;
1119
- --paper-purple-a200: #e040fb;
1120
- --paper-purple-a400: #d500f9;
1121
- --paper-purple-a700: #aa00ff;
1122
-
1123
- --paper-deep-purple-50: #ede7f6;
1124
- --paper-deep-purple-100: #d1c4e9;
1125
- --paper-deep-purple-200: #b39ddb;
1126
- --paper-deep-purple-300: #9575cd;
1127
- --paper-deep-purple-400: #7e57c2;
1128
- --paper-deep-purple-500: #673ab7;
1129
- --paper-deep-purple-600: #5e35b1;
1130
- --paper-deep-purple-700: #512da8;
1131
- --paper-deep-purple-800: #4527a0;
1132
- --paper-deep-purple-900: #311b92;
1133
- --paper-deep-purple-a100: #b388ff;
1134
- --paper-deep-purple-a200: #7c4dff;
1135
- --paper-deep-purple-a400: #651fff;
1136
- --paper-deep-purple-a700: #6200ea;
1137
-
1138
- --paper-indigo-50: #e8eaf6;
1139
- --paper-indigo-100: #c5cae9;
1140
- --paper-indigo-200: #9fa8da;
1141
- --paper-indigo-300: #7986cb;
1142
- --paper-indigo-400: #5c6bc0;
1143
- --paper-indigo-500: #3f51b5;
1144
- --paper-indigo-600: #3949ab;
1145
- --paper-indigo-700: #303f9f;
1146
- --paper-indigo-800: #283593;
1147
- --paper-indigo-900: #1a237e;
1148
- --paper-indigo-a100: #8c9eff;
1149
- --paper-indigo-a200: #536dfe;
1150
- --paper-indigo-a400: #3d5afe;
1151
- --paper-indigo-a700: #304ffe;
1152
-
1153
- --paper-blue-50: #e3f2fd;
1154
- --paper-blue-100: #bbdefb;
1155
- --paper-blue-200: #90caf9;
1156
- --paper-blue-300: #64b5f6;
1157
- --paper-blue-400: #42a5f5;
1158
- --paper-blue-500: #2196f3;
1159
- --paper-blue-600: #1e88e5;
1160
- --paper-blue-700: #1976d2;
1161
- --paper-blue-800: #1565c0;
1162
- --paper-blue-900: #0d47a1;
1163
- --paper-blue-a100: #82b1ff;
1164
- --paper-blue-a200: #448aff;
1165
- --paper-blue-a400: #2979ff;
1166
- --paper-blue-a700: #2962ff;
1167
-
1168
- --paper-light-blue-50: #e1f5fe;
1169
- --paper-light-blue-100: #b3e5fc;
1170
- --paper-light-blue-200: #81d4fa;
1171
- --paper-light-blue-300: #4fc3f7;
1172
- --paper-light-blue-400: #29b6f6;
1173
- --paper-light-blue-500: #03a9f4;
1174
- --paper-light-blue-600: #039be5;
1175
- --paper-light-blue-700: #0288d1;
1176
- --paper-light-blue-800: #0277bd;
1177
- --paper-light-blue-900: #01579b;
1178
- --paper-light-blue-a100: #80d8ff;
1179
- --paper-light-blue-a200: #40c4ff;
1180
- --paper-light-blue-a400: #00b0ff;
1181
- --paper-light-blue-a700: #0091ea;
1182
-
1183
- --paper-cyan-50: #e0f7fa;
1184
- --paper-cyan-100: #b2ebf2;
1185
- --paper-cyan-200: #80deea;
1186
- --paper-cyan-300: #4dd0e1;
1187
- --paper-cyan-400: #26c6da;
1188
- --paper-cyan-500: #00bcd4;
1189
- --paper-cyan-600: #00acc1;
1190
- --paper-cyan-700: #0097a7;
1191
- --paper-cyan-800: #00838f;
1192
- --paper-cyan-900: #006064;
1193
- --paper-cyan-a100: #84ffff;
1194
- --paper-cyan-a200: #18ffff;
1195
- --paper-cyan-a400: #00e5ff;
1196
- --paper-cyan-a700: #00b8d4;
1197
-
1198
- --paper-teal-50: #e0f2f1;
1199
- --paper-teal-100: #b2dfdb;
1200
- --paper-teal-200: #80cbc4;
1201
- --paper-teal-300: #4db6ac;
1202
- --paper-teal-400: #26a69a;
1203
- --paper-teal-500: #009688;
1204
- --paper-teal-600: #00897b;
1205
- --paper-teal-700: #00796b;
1206
- --paper-teal-800: #00695c;
1207
- --paper-teal-900: #004d40;
1208
- --paper-teal-a100: #a7ffeb;
1209
- --paper-teal-a200: #64ffda;
1210
- --paper-teal-a400: #1de9b6;
1211
- --paper-teal-a700: #00bfa5;
1212
-
1213
- --paper-green-50: #e8f5e9;
1214
- --paper-green-100: #c8e6c9;
1215
- --paper-green-200: #a5d6a7;
1216
- --paper-green-300: #81c784;
1217
- --paper-green-400: #66bb6a;
1218
- --paper-green-500: #4caf50;
1219
- --paper-green-600: #43a047;
1220
- --paper-green-700: #388e3c;
1221
- --paper-green-800: #2e7d32;
1222
- --paper-green-900: #1b5e20;
1223
- --paper-green-a100: #b9f6ca;
1224
- --paper-green-a200: #69f0ae;
1225
- --paper-green-a400: #00e676;
1226
- --paper-green-a700: #00c853;
1227
-
1228
- --paper-light-green-50: #f1f8e9;
1229
- --paper-light-green-100: #dcedc8;
1230
- --paper-light-green-200: #c5e1a5;
1231
- --paper-light-green-300: #aed581;
1232
- --paper-light-green-400: #9ccc65;
1233
- --paper-light-green-500: #8bc34a;
1234
- --paper-light-green-600: #7cb342;
1235
- --paper-light-green-700: #689f38;
1236
- --paper-light-green-800: #558b2f;
1237
- --paper-light-green-900: #33691e;
1238
- --paper-light-green-a100: #ccff90;
1239
- --paper-light-green-a200: #b2ff59;
1240
- --paper-light-green-a400: #76ff03;
1241
- --paper-light-green-a700: #64dd17;
1242
-
1243
- --paper-lime-50: #f9fbe7;
1244
- --paper-lime-100: #f0f4c3;
1245
- --paper-lime-200: #e6ee9c;
1246
- --paper-lime-300: #dce775;
1247
- --paper-lime-400: #d4e157;
1248
- --paper-lime-500: #cddc39;
1249
- --paper-lime-600: #c0ca33;
1250
- --paper-lime-700: #afb42b;
1251
- --paper-lime-800: #9e9d24;
1252
- --paper-lime-900: #827717;
1253
- --paper-lime-a100: #f4ff81;
1254
- --paper-lime-a200: #eeff41;
1255
- --paper-lime-a400: #c6ff00;
1256
- --paper-lime-a700: #aeea00;
1257
-
1258
- --paper-yellow-50: #fffde7;
1259
- --paper-yellow-100: #fff9c4;
1260
- --paper-yellow-200: #fff59d;
1261
- --paper-yellow-300: #fff176;
1262
- --paper-yellow-400: #ffee58;
1263
- --paper-yellow-500: #ffeb3b;
1264
- --paper-yellow-600: #fdd835;
1265
- --paper-yellow-700: #fbc02d;
1266
- --paper-yellow-800: #f9a825;
1267
- --paper-yellow-900: #f57f17;
1268
- --paper-yellow-a100: #ffff8d;
1269
- --paper-yellow-a200: #ffff00;
1270
- --paper-yellow-a400: #ffea00;
1271
- --paper-yellow-a700: #ffd600;
1272
-
1273
- --paper-amber-50: #fff8e1;
1274
- --paper-amber-100: #ffecb3;
1275
- --paper-amber-200: #ffe082;
1276
- --paper-amber-300: #ffd54f;
1277
- --paper-amber-400: #ffca28;
1278
- --paper-amber-500: #ffc107;
1279
- --paper-amber-600: #ffb300;
1280
- --paper-amber-700: #ffa000;
1281
- --paper-amber-800: #ff8f00;
1282
- --paper-amber-900: #ff6f00;
1283
- --paper-amber-a100: #ffe57f;
1284
- --paper-amber-a200: #ffd740;
1285
- --paper-amber-a400: #ffc400;
1286
- --paper-amber-a700: #ffab00;
1287
-
1288
- --paper-orange-50: #fff3e0;
1289
- --paper-orange-100: #ffe0b2;
1290
- --paper-orange-200: #ffcc80;
1291
- --paper-orange-300: #ffb74d;
1292
- --paper-orange-400: #ffa726;
1293
- --paper-orange-500: #ff9800;
1294
- --paper-orange-600: #fb8c00;
1295
- --paper-orange-700: #f57c00;
1296
- --paper-orange-800: #ef6c00;
1297
- --paper-orange-900: #e65100;
1298
- --paper-orange-a100: #ffd180;
1299
- --paper-orange-a200: #ffab40;
1300
- --paper-orange-a400: #ff9100;
1301
- --paper-orange-a700: #ff6500;
1302
-
1303
- --paper-deep-orange-50: #fbe9e7;
1304
- --paper-deep-orange-100: #ffccbc;
1305
- --paper-deep-orange-200: #ffab91;
1306
- --paper-deep-orange-300: #ff8a65;
1307
- --paper-deep-orange-400: #ff7043;
1308
- --paper-deep-orange-500: #ff5722;
1309
- --paper-deep-orange-600: #f4511e;
1310
- --paper-deep-orange-700: #e64a19;
1311
- --paper-deep-orange-800: #d84315;
1312
- --paper-deep-orange-900: #bf360c;
1313
- --paper-deep-orange-a100: #ff9e80;
1314
- --paper-deep-orange-a200: #ff6e40;
1315
- --paper-deep-orange-a400: #ff3d00;
1316
- --paper-deep-orange-a700: #dd2c00;
1317
-
1318
- --paper-brown-50: #efebe9;
1319
- --paper-brown-100: #d7ccc8;
1320
- --paper-brown-200: #bcaaa4;
1321
- --paper-brown-300: #a1887f;
1322
- --paper-brown-400: #8d6e63;
1323
- --paper-brown-500: #795548;
1324
- --paper-brown-600: #6d4c41;
1325
- --paper-brown-700: #5d4037;
1326
- --paper-brown-800: #4e342e;
1327
- --paper-brown-900: #3e2723;
1328
-
1329
- --paper-grey-50: #fafafa;
1330
- --paper-grey-100: #f5f5f5;
1331
- --paper-grey-200: #eeeeee;
1332
- --paper-grey-300: #e0e0e0;
1333
- --paper-grey-400: #bdbdbd;
1334
- --paper-grey-500: #9e9e9e;
1335
- --paper-grey-600: #757575;
1336
- --paper-grey-700: #616161;
1337
- --paper-grey-800: #424242;
1338
- --paper-grey-900: #212121;
1339
-
1340
- --paper-blue-grey-50: #eceff1;
1341
- --paper-blue-grey-100: #cfd8dc;
1342
- --paper-blue-grey-200: #b0bec5;
1343
- --paper-blue-grey-300: #90a4ae;
1344
- --paper-blue-grey-400: #78909c;
1345
- --paper-blue-grey-500: #607d8b;
1346
- --paper-blue-grey-600: #546e7a;
1347
- --paper-blue-grey-700: #455a64;
1348
- --paper-blue-grey-800: #37474f;
1349
- --paper-blue-grey-900: #263238;
1350
-
1351
- /* opacity for dark text on a light background */
1352
- --dark-divider-opacity: 0.12;
1353
- --dark-disabled-opacity: 0.38; /* or hint text or icon */
1354
- --dark-secondary-opacity: 0.54;
1355
- --dark-primary-opacity: 0.87;
1356
-
1357
- /* opacity for light text on a dark background */
1358
- --light-divider-opacity: 0.12;
1359
- --light-disabled-opacity: 0.3; /* or hint text or icon */
1360
- --light-secondary-opacity: 0.7;
1361
- --light-primary-opacity: 1.0;
1362
-
1363
- }
1364
-
1365
- </style>
1366
- </custom-style>
1367
- `;Sr.setAttribute("style","display: none;"),document.head.appendChild(Sr.content);
1368
- /**
1369
- @license
1370
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1371
- This code may only be used under the BSD style license found at
1372
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1373
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1374
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1375
- part of the polymer project is also subject to an additional IP rights grant
1376
- found at http://polymer.github.io/PATENTS.txt
1377
- */
1378
- const Ar=ir`
1379
- <custom-style>
1380
- <style is="custom-style">
1381
- html {
1382
- /*
1383
- * You can use these generic variables in your elements for easy theming.
1384
- * For example, if all your elements use \`--primary-text-color\` as its main
1385
- * color, then switching from a light to a dark theme is just a matter of
1386
- * changing the value of \`--primary-text-color\` in your application.
1387
- */
1388
- --primary-text-color: var(--light-theme-text-color);
1389
- --primary-background-color: var(--light-theme-background-color);
1390
- --secondary-text-color: var(--light-theme-secondary-color);
1391
- --disabled-text-color: var(--light-theme-disabled-color);
1392
- --divider-color: var(--light-theme-divider-color);
1393
- --error-color: var(--paper-deep-orange-a700);
1394
-
1395
- /*
1396
- * Primary and accent colors. Also see color.js for more colors.
1397
- */
1398
- --primary-color: var(--paper-indigo-500);
1399
- --light-primary-color: var(--paper-indigo-100);
1400
- --dark-primary-color: var(--paper-indigo-700);
1401
-
1402
- --accent-color: var(--paper-pink-a200);
1403
- --light-accent-color: var(--paper-pink-a100);
1404
- --dark-accent-color: var(--paper-pink-a400);
1405
-
1406
-
1407
- /*
1408
- * Material Design Light background theme
1409
- */
1410
- --light-theme-background-color: #ffffff;
1411
- --light-theme-base-color: #000000;
1412
- --light-theme-text-color: var(--paper-grey-900);
1413
- --light-theme-secondary-color: #737373; /* for secondary text and icons */
1414
- --light-theme-disabled-color: #9b9b9b; /* disabled/hint text */
1415
- --light-theme-divider-color: #dbdbdb;
1416
-
1417
- /*
1418
- * Material Design Dark background theme
1419
- */
1420
- --dark-theme-background-color: var(--paper-grey-900);
1421
- --dark-theme-base-color: #ffffff;
1422
- --dark-theme-text-color: #ffffff;
1423
- --dark-theme-secondary-color: #bcbcbc; /* for secondary text and icons */
1424
- --dark-theme-disabled-color: #646464; /* disabled/hint text */
1425
- --dark-theme-divider-color: #3c3c3c;
1426
-
1427
- /*
1428
- * Deprecated values because of their confusing names.
1429
- */
1430
- --text-primary-color: var(--dark-theme-text-color);
1431
- --default-primary-color: var(--primary-color);
1432
- }
1433
- </style>
1434
- </custom-style>`;Ar.setAttribute("style","display: none;"),document.head.appendChild(Ar.content);
1435
- /**
1436
- @license
1437
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1438
- This code may only be used under the BSD style license found at
1439
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1440
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1441
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1442
- part of the polymer project is also subject to an additional IP rights grant
1443
- found at http://polymer.github.io/PATENTS.txt
1444
- */
1445
- const kr={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:function(e){this._setFocused("focus"===e.type)},_disabledChanged:function(e,t){this.setAttribute("aria-disabled",e?"true":"false"),this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(null===this._oldTabIndex?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}};
1446
- /**
1447
- @license
1448
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1449
- This code may only be used under the BSD style license found at
1450
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1451
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1452
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1453
- part of the polymer project is also subject to an additional IP rights grant
1454
- found at http://polymer.github.io/PATENTS.txt
1455
- */var Er={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},Pr={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},Or={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},Tr=/[a-z0-9*]/,Ir=/U\+/,Nr=/^arrow/,Rr=/^space(bar)?/,Mr=/^escape$/;function zr(e,t){var i="";if(e){var n=e.toLowerCase();" "===n||Rr.test(n)?i="space":Mr.test(n)?i="esc":1==n.length?t&&!Tr.test(n)||(i=n):i=Nr.test(n)?n.replace("arrow",""):"multiply"==n?"*":n}return i}function Fr(e){var t="";return e&&(e in Er?t=Er[e]:Ir.test(e)?(e=parseInt(e.replace("U+","0x"),16),t=String.fromCharCode(e).toLowerCase()):t=e.toLowerCase()),t}function Dr(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):Pr[e]),t}function Lr(e,t){return e.key?zr(e.key,t):e.detail&&e.detail.key?zr(e.detail.key,t):Fr(e.keyIdentifier)||Dr(e.keyCode)||""}function Br(e,t){return Lr(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function Hr(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce((function(e,t){var i=t.split(":"),n=i[0],o=i[1];return n in Or?(e[Or[n]]=!0,e.hasModifiers=!0):(e.key=n,e.event=o||"keydown"),e}),{combo:e.split(":").shift()})}function jr(e){return e.trim().split(" ").map((function(e){return Hr(e)}))}const qr={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var i=jr(t),n=0;n<i.length;++n)if(Br(i[n],e))return!0;return!1},_collectKeyBindings:function(){var e=this.behaviors.map((function(e){return e.keyBindings}));return-1===e.indexOf(this.keyBindings)&&e.push(this.keyBindings),e},_prepKeyBindings:function(){for(var e in this._keyBindings={},this._collectKeyBindings().forEach((function(e){for(var t in e)this._addKeyBinding(t,e[t])}),this),this._imperativeKeyBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var t in this._keyBindings)this._keyBindings[t].sort((function(e,t){var i=e[0].hasModifiers;return i===t[0].hasModifiers?0:i?-1:1}))},_addKeyBinding:function(e,t){jr(e).forEach((function(e){this._keyBindings[e.event]=this._keyBindings[e.event]||[],this._keyBindings[e.event].push([e,t])}),this)},_resetKeyEventListeners:function(){this._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_listenKeyEventListeners:function(){this.keyEventTarget&&Object.keys(this._keyBindings).forEach((function(e){var t=this._keyBindings[e],i=this._onKeyBindingEvent.bind(this,t);this._boundKeyHandlers.push([this.keyEventTarget,e,i]),this.keyEventTarget.addEventListener(e,i)}),this)},_unlistenKeyEventListeners:function(){for(var e,t,i,n;this._boundKeyHandlers.length;)t=(e=this._boundKeyHandlers.pop())[0],i=e[1],n=e[2],t.removeEventListener(i,n)},_onKeyBindingEvent:function(e,t){if(this.stopKeyboardEventPropagation&&t.stopPropagation(),!t.defaultPrevented)for(var i=0;i<e.length;i++){var n=e[i][0],o=e[i][1];if(Br(n,t)&&(this._triggerKeyHandler(n,o,t),t.defaultPrevented))return}},_triggerKeyHandler:function(e,t,i){var n=Object.create(e);n.keyboardEvent=i;var o=new CustomEvent(e.event,{detail:n,cancelable:!0});this[t].call(this,o),o.defaultPrevented&&i.preventDefault()}},Vr={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)","_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},_focusChanged:function(e){this._detectKeyboardFocus(e),e||this._setPressed(!1)},_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this.pointerDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this.fire("change"))},_downHandler:function(e){this._setPointerDown(!0),this._setPressed(!0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._setPointerDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.detail.keyboardEvent,i=is(t).localTarget;this.isLightDescendant(i)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandler:function(e){var t=e.detail.keyboardEvent,i=is(t).localTarget;this.isLightDescendant(i)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},_asyncClick:function(){this.async((function(){this.click()}),1)},_pressedChanged:function(e){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t){t&&t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:function(e,t){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false"):this.removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},$r=[qr,Vr];
1456
- /**
1457
- @license
1458
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1459
- This code may only be used under the BSD style license found at
1460
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1461
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1462
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1463
- part of the polymer project is also subject to an additional IP rights grant
1464
- found at http://polymer.github.io/PATENTS.txt
1465
- */
1466
- /**
1467
- @license
1468
- Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
1469
- This code may only be used under the BSD style license found at
1470
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1471
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1472
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1473
- part of the polymer project is also subject to an additional IP rights grant
1474
- found at http://polymer.github.io/PATENTS.txt
1475
- */
1476
- var Ur={distance:function(e,t,i,n){var o=e-i,s=t-n;return Math.sqrt(o*o+s*s)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function Kr(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function Yr(e){this.element=e,this.color=window.getComputedStyle(e).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),is(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}Kr.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var i=Ur.distance(e,t,0,0),n=Ur.distance(e,t,this.width,0),o=Ur.distance(e,t,0,this.height),s=Ur.distance(e,t,this.width,this.height);return Math.max(i,n,o,s)}},Yr.MAX_RADIUS=300,Yr.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=Ur.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?Ur.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var e=this.containerMetrics.width*this.containerMetrics.width,t=this.containerMetrics.height*this.containerMetrics.height,i=1.1*Math.min(Math.sqrt(e+t),Yr.MAX_RADIUS)+5,n=1.1-i/Yr.MAX_RADIUS*.2,o=this.mouseInteractionSeconds/n,s=i*(1-Math.pow(80,-o));return Math.abs(s)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,Yr.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,Yr.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new Kr(this.element)},draw:function(){var e,t,i;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,i=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+i+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+i+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,i=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=Ur.now(),this.center?(this.xStart=t,this.yStart=i,this.slideDistance=Ur.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=i,this.slideDistance=Ur.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(e){this.isMouseDown&&(this.mouseUpStart=Ur.now())},remove:function(){is(is(this.waveContainer).parentNode).removeChild(this.waveContainer)}},Ss({_template:ir`
1477
- <style>
1478
- :host {
1479
- display: block;
1480
- position: absolute;
1481
- border-radius: inherit;
1482
- overflow: hidden;
1483
- top: 0;
1484
- left: 0;
1485
- right: 0;
1486
- bottom: 0;
1487
-
1488
- /* See PolymerElements/paper-behaviors/issues/34. On non-Chrome browsers,
1489
- * creating a node (with a position:absolute) in the middle of an event
1490
- * handler "interrupts" that event handler (which happens when the
1491
- * ripple is created on demand) */
1492
- pointer-events: none;
1493
- }
1494
-
1495
- :host([animating]) {
1496
- /* This resolves a rendering issue in Chrome (as of 40) where the
1497
- ripple is not properly clipped by its parent (which may have
1498
- rounded corners). See: http://jsbin.com/temexa/4
1499
-
1500
- Note: We only apply this style conditionally. Otherwise, the browser
1501
- will create a new compositing layer for every ripple element on the
1502
- page, and that would be bad. */
1503
- -webkit-transform: translate(0, 0);
1504
- transform: translate3d(0, 0, 0);
1505
- }
1506
-
1507
- #background,
1508
- #waves,
1509
- .wave-container,
1510
- .wave {
1511
- pointer-events: none;
1512
- position: absolute;
1513
- top: 0;
1514
- left: 0;
1515
- width: 100%;
1516
- height: 100%;
1517
- }
1518
-
1519
- #background,
1520
- .wave {
1521
- opacity: 0;
1522
- }
1523
-
1524
- #waves,
1525
- .wave {
1526
- overflow: hidden;
1527
- }
1528
-
1529
- .wave-container,
1530
- .wave {
1531
- border-radius: 50%;
1532
- }
1533
-
1534
- :host(.circle) #background,
1535
- :host(.circle) #waves {
1536
- border-radius: 50%;
1537
- }
1538
-
1539
- :host(.circle) .wave-container {
1540
- overflow: hidden;
1541
- }
1542
- </style>
1543
-
1544
- <div id="background"></div>
1545
- <div id="waves"></div>
1546
- `,is:"paper-ripple",behaviors:[qr],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==is(this).parentNode.nodeType?this.keyEventTarget=is(this).getOwnerRoot().host:this.keyEventTarget=is(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e<this.ripples.length;++e)if(!this.ripples[e].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null),this.async((function(){this.upAction()}),1)},uiDownAction:function(e){this.noink||this.downAction(e)},downAction:function(e){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach((function(t){t.upAction(e)})),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor="",this.fire("transitionend")},addRipple:function(){var e=new Yr(this);return is(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);t<0||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e<this.ripples.length;++e)(t=this.ripples[e]).draw(),this.$.background.style.opacity=t.outerOpacity,t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t);this.shouldKeepAnimating||0!==this.ripples.length?window.requestAnimationFrame(this._boundAnimate):this.onAnimationComplete()}},animateRipple:function(){return this.animate()},_onEnterKeydown:function(){this.uiDownAction(),this.async(this.uiUpAction,1)},_onSpaceKeydown:function(){this.uiDownAction()},_onSpaceKeyup:function(){this.uiUpAction()},_holdDownChanged:function(e,t){void 0!==t&&(e?this.downAction():this.upAction())}});
1547
- /**
1548
- @license
1549
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1550
- This code may only be used under the BSD style license found at
1551
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1552
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1553
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1554
- part of the polymer project is also subject to an additional IP rights grant
1555
- found at http://polymer.github.io/PATENTS.txt
1556
- */
1557
- const Wr={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},_downHandler:function(e){Vr._downHandler.call(this,e),this.pressed&&this.ensureRipple(e)},ensureRipple:function(e){if(!this.hasRipple()){this._ripple=this._createRipple(),this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;if(t&&is(t).appendChild(this._ripple),e){var i=is(this._rippleContainer||this),n=is(e).rootTarget;i.deepContains(n)&&this._ripple.uiDownAction(e)}}},getRipple:function(){return this.ensureRipple(),this._ripple},hasRipple:function(){return Boolean(this._ripple)},_createRipple:function(){return document.createElement("paper-ripple")},_noinkChanged:function(e){this.hasRipple()&&(this._ripple.noink=e)}},Jr={properties:{elevation:{type:Number,reflectToAttribute:!0,readOnly:!0}},observers:["_calculateElevation(focused, disabled, active, pressed, receivedFocusFromKeyboard)","_computeKeyboardClass(receivedFocusFromKeyboard)"],hostAttributes:{role:"button",tabindex:"0",animated:!0},_calculateElevation:function(){var e=1;this.disabled?e=0:this.active||this.pressed?e=4:this.receivedFocusFromKeyboard&&(e=3),this._setElevation(e)},_computeKeyboardClass:function(e){this.toggleClass("keyboard-focus",e)},_spaceKeyDownHandler:function(e){Vr._spaceKeyDownHandler.call(this,e),this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},_spaceKeyUpHandler:function(e){Vr._spaceKeyUpHandler.call(this,e),this.hasRipple()&&this._ripple.uiUpAction()}},Xr=[$r,kr,Wr,Jr];
1558
- /**
1559
- @license
1560
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1561
- This code may only be used under the BSD style license found at
1562
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1563
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1564
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1565
- part of the polymer project is also subject to an additional IP rights grant
1566
- found at http://polymer.github.io/PATENTS.txt
1567
- */
1568
- /**
1569
- @license
1570
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1571
- This code may only be used under the BSD style license found at
1572
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1573
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1574
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1575
- part of the polymer project is also subject to an additional IP rights grant
1576
- found at http://polymer.github.io/PATENTS.txt
1577
- */
1578
- Ss({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new vr({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map((function(e){return this.name+":"+e}),this)},applyIcon:function(e,t){this.removeIcon(e);var i=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(e));if(i){var n=is(e.root||e);return n.insertBefore(i,n.childNodes[0]),e._svgIcon=i}return null},removeIcon:function(e){e._svgIcon&&(is(e.root||e).removeChild(e._svgIcon),e._svgIcon=null)},_targetIsRTL:function(e){if(null==this.__targetIsRTL)if(this.useGlobalRtlAttribute){var t=document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement;this.__targetIsRTL="rtl"===t.getAttribute("dir")}else e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.host),this.__targetIsRTL=e&&"rtl"===window.getComputedStyle(e).direction;return this.__targetIsRTL},_nameChanged:function(){this._meta.value=null,this._meta.key=this.name,this._meta.value=this,this.async((function(){this.fire("iron-iconset-added",this,{node:window})}))},_createIconMap:function(){var e=Object.create(null);return is(this).querySelectorAll("[id]").forEach((function(t){e[t.id]=t})),e},_cloneIcon:function(e,t){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[e],this.size,t)},_prepareSvgClone:function(e,t,i){if(e){var n=e.cloneNode(!0),o=document.createElementNS("http://www.w3.org/2000/svg","svg"),s=n.getAttribute("viewBox")||"0 0 "+t+" "+t,r="pointer-events: none; display: block; width: 100%; height: 100%;";return i&&n.hasAttribute("mirror-in-rtl")&&(r+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;"),o.setAttribute("viewBox",s),o.setAttribute("preserveAspectRatio","xMidYMid meet"),o.setAttribute("focusable","false"),o.style.cssText=r,o.appendChild(n).removeAttribute("id"),o}return null}});
1579
- /**
1580
- @license
1581
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1582
- This code may only be used under the BSD style license found at
1583
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1584
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1585
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1586
- part of the polymer project is also subject to an additional IP rights grant
1587
- found at http://polymer.github.io/PATENTS.txt
1588
- */
1589
- var Zr=new Set;const Gr={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(Zr.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach((function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)}),this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),this._parentResizable=e,e&&-1===e._interestedResizables.indexOf(this)&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var t=this._interestedResizables.indexOf(e);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():Ee||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=is(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",(function t(){document.removeEventListener("readystatechange",t),e()}))}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach((function(e){e!==this&&e._findParent()}),this):(Zr.forEach((function(e){e!==this&&e._findParent()}),this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?Zr.delete(this):Zr.add(this)}};
1590
- /**
1591
- @license
1592
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1593
- This code may only be used under the BSD style license found at
1594
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1595
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1596
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1597
- part of the polymer project is also subject to an additional IP rights grant
1598
- found at http://polymer.github.io/PATENTS.txt
1599
- */
1600
- /**
1601
- @license
1602
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1603
- This code may only be used under the BSD style license found at
1604
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1605
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1606
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1607
- part of the polymer project is also subject to an additional IP rights grant
1608
- found at http://polymer.github.io/PATENTS.txt
1609
- */
1610
- if(Ss({is:"iron-request",hostAttributes:{hidden:!0},properties:{xhr:{type:Object,notify:!0,readOnly:!0,value:function(){return new XMLHttpRequest}},response:{type:Object,notify:!0,readOnly:!0,value:function(){return null}},status:{type:Number,notify:!0,readOnly:!0,value:0},statusText:{type:String,notify:!0,readOnly:!0,value:""},completes:{type:Object,readOnly:!0,notify:!0,value:function(){return new Promise(function(e,t){this.resolveCompletes=e,this.rejectCompletes=t}.bind(this))}},progress:{type:Object,notify:!0,readOnly:!0,value:function(){return{}}},aborted:{type:Boolean,notify:!0,readOnly:!0,value:!1},errored:{type:Boolean,notify:!0,readOnly:!0,value:!1},timedOut:{type:Boolean,notify:!0,readOnly:!0,value:!1}},get succeeded(){if(this.errored||this.aborted||this.timedOut)return!1;var e=this.xhr.status||0;return 0===e||e>=200&&e<300},send:function(e){var t=this.xhr;if(t.readyState>0)return null;t.addEventListener("progress",function(e){this._setProgress({lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total}),this.fire("iron-request-progress-changed",{value:this.progress})}.bind(this)),t.addEventListener("error",function(t){this._setErrored(!0),this._updateStatus();var i=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(i)}.bind(this)),t.addEventListener("timeout",function(t){this._setTimedOut(!0),this._updateStatus();var i=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(i)}.bind(this)),t.addEventListener("abort",function(){this._setAborted(!0),this._updateStatus();var t=new Error("Request aborted."),i=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(i)}.bind(this)),t.addEventListener("loadend",function(){if(this._updateStatus(),this._setResponse(this.parseResponse()),this.succeeded)this.resolveCompletes(this);else{var t=new Error("The request failed with status code: "+this.xhr.status),i=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(i)}}.bind(this)),this.url=e.url;var i=!1!==e.async;t.open(e.method||"GET",e.url,i);var n={json:"application/json",text:"text/plain",html:"text/html",xml:"application/xml",arraybuffer:"application/octet-stream"}[e.handleAs],o=e.headers||Object.create(null),s=Object.create(null);for(var r in o)s[r.toLowerCase()]=o[r];if(o=s,n&&!o.accept&&(o.accept=n),Object.keys(o).forEach((function(e){/[A-Z]/.test(e)&&yr._error("Headers must be lower case, got",e),t.setRequestHeader(e,o[e])}),this),i){t.timeout=e.timeout;var a=e.handleAs;!e.jsonPrefix&&a||(a="text"),t.responseType=t._responseType=a,e.jsonPrefix&&(t._jsonPrefix=e.jsonPrefix)}t.withCredentials=!!e.withCredentials;var l=this._encodeBodyObject(e.body,o["content-type"]);return t.send(l),this.completes},parseResponse:function(){var e=this.xhr,t=e.responseType||e._responseType,i=!this.xhr.responseType,n=e._jsonPrefix&&e._jsonPrefix.length||0;try{switch(t){case"json":if(i||void 0===e.response)try{return JSON.parse(e.responseText)}catch(t){return console.warn("Failed to parse JSON sent from "+e.responseURL),null}return e.response;case"xml":return e.responseXML;case"blob":case"document":case"arraybuffer":return e.response;case"text":default:if(n)try{return JSON.parse(e.responseText.substring(n))}catch(t){return console.warn("Failed to parse JSON sent from "+e.responseURL),null}return e.responseText}}catch(e){this.rejectCompletes(new Error("Could not parse response. "+e.message))}},abort:function(){this._setAborted(!0),this.xhr.abort()},_encodeBodyObject:function(e,t){if("string"==typeof e)return e;var i=e;switch(t){case"application/json":return JSON.stringify(i);case"application/x-www-form-urlencoded":return this._wwwFormUrlEncode(i)}return e},_wwwFormUrlEncode:function(e){if(!e)return"";var t=[];return Object.keys(e).forEach((function(i){t.push(this._wwwFormUrlEncodePiece(i)+"="+this._wwwFormUrlEncodePiece(e[i]))}),this),t.join("&")},_wwwFormUrlEncodePiece:function(e){return null!=e&&e.toString?encodeURIComponent(e.toString().replace(/\r?\n/g,"\r\n")).replace(/%20/g,"+"):""},_updateStatus:function(){this._setStatus(this.xhr.status),this._setStatusText(void 0===this.xhr.statusText?"":this.xhr.statusText)}}),
1611
- /**
1612
- @license
1613
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1614
- This code may only be used under the BSD style license found at
1615
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1616
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1617
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1618
- part of the polymer project is also subject to an additional IP rights grant
1619
- found at http://polymer.github.io/PATENTS.txt
1620
- */
1621
- Ss({is:"iron-ajax",hostAttributes:{hidden:!0},properties:{url:{type:String},params:{type:Object,value:function(){return{}}},method:{type:String,value:"GET"},headers:{type:Object,value:function(){return{}}},contentType:{type:String,value:null},body:{type:Object,value:null},sync:{type:Boolean,value:!1},handleAs:{type:String,value:"json"},withCredentials:{type:Boolean,value:!1},timeout:{type:Number,value:0},auto:{type:Boolean,value:!1},verbose:{type:Boolean,value:!1},lastRequest:{type:Object,notify:!0,readOnly:!0},lastProgress:{type:Object,notify:!0,readOnly:!0},loading:{type:Boolean,notify:!0,readOnly:!0},lastResponse:{type:Object,notify:!0,readOnly:!0},lastError:{type:Object,notify:!0,readOnly:!0},activeRequests:{type:Array,notify:!0,readOnly:!0,value:function(){return[]}},debounceDuration:{type:Number,value:0,notify:!0},jsonPrefix:{type:String,value:""},bubbles:{type:Boolean,value:!1},rejectWithRequest:{type:Boolean,value:!1},_boundHandleResponse:{type:Function,value:function(){return this._handleResponse.bind(this)}}},observers:["_requestOptionsChanged(url, method, params.*, headers, contentType, body, sync, handleAs, jsonPrefix, withCredentials, timeout, auto)"],created:function(){this._boundOnProgressChanged=this._onProgressChanged.bind(this)},get queryString(){var e,t,i=[];for(e in this.params)if(t=this.params[e],e=window.encodeURIComponent(e),Array.isArray(t))for(var n=0;n<t.length;n++)i.push(e+"="+window.encodeURIComponent(t[n]));else null!==t?i.push(e+"="+window.encodeURIComponent(t)):i.push(e);return i.join("&")},get requestUrl(){var e=this.queryString,t=this.url||"";if(e){var i=t.indexOf("?")>=0?"&":"?";return t+i+e}return t},get requestHeaders(){var e,t={},i=this.contentType;if(null==i&&"string"==typeof this.body&&(i="application/x-www-form-urlencoded"),i&&(t["content-type"]=i),"object"==typeof this.headers)for(e in this.headers)t[e]=this.headers[e].toString();return t},_onProgressChanged:function(e){this._setLastProgress(e.detail.value)},toRequestOptions:function(){return{url:this.requestUrl||"",method:this.method,headers:this.requestHeaders,body:this.body,async:!this.sync,handleAs:this.handleAs,jsonPrefix:this.jsonPrefix,withCredentials:this.withCredentials,timeout:this.timeout,rejectWithRequest:this.rejectWithRequest}},generateRequest:function(){var e=document.createElement("iron-request"),t=this.toRequestOptions();return this.push("activeRequests",e),e.completes.then(this._boundHandleResponse).catch(this._handleError.bind(this,e)).then(this._discardRequest.bind(this,e)),this.fire("iron-ajax-presend",{request:e,options:t},{bubbles:this.bubbles,cancelable:!0}).defaultPrevented?(e.abort(),e.rejectCompletes(e),e):(this.lastRequest&&this.lastRequest.removeEventListener("iron-request-progress-changed",this._boundOnProgressChanged),e.addEventListener("iron-request-progress-changed",this._boundOnProgressChanged),e.send(t),this._setLastProgress(null),this._setLastRequest(e),this._setLoading(!0),this.fire("request",{request:e,options:t},{bubbles:this.bubbles,composed:!0}),this.fire("iron-ajax-request",{request:e,options:t},{bubbles:this.bubbles,composed:!0}),e)},_handleResponse:function(e){e===this.lastRequest&&(this._setLastResponse(e.response),this._setLastError(null),this._setLoading(!1)),this.fire("response",e,{bubbles:this.bubbles,composed:!0}),this.fire("iron-ajax-response",e,{bubbles:this.bubbles,composed:!0})},_handleError:function(e,t){this.verbose&&yr._error(t),e===this.lastRequest&&(this._setLastError({request:e,error:t,status:e.xhr.status,statusText:e.xhr.statusText,response:e.xhr.response}),this._setLastResponse(null),this._setLoading(!1)),this.fire("iron-ajax-error",{request:e,error:t},{bubbles:this.bubbles,composed:!0}),this.fire("error",{request:e,error:t},{bubbles:this.bubbles,composed:!0})},_discardRequest:function(e){var t=this.activeRequests.indexOf(e);t>-1&&this.splice("activeRequests",t,1)},_requestOptionsChanged:function(){this.debounce("generate-request",(function(){null!=this.url&&this.auto&&this.generateRequest()}),this.debounceDuration)}}),!window.polymerSkipLoadingFontRoboto){const e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.crossOrigin="anonymous",e.href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic",document.head.appendChild(e)}
1622
- /**
1623
- @license
1624
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1625
- This code may only be used under the BSD style license found at
1626
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1627
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1628
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1629
- part of the polymer project is also subject to an additional IP rights grant
1630
- found at http://polymer.github.io/PATENTS.txt
1631
- */const Qr=ir`<custom-style>
1632
- <style is="custom-style">
1633
- html {
1634
-
1635
- /* Shared Styles */
1636
- --paper-font-common-base: {
1637
- font-family: 'Roboto', 'Noto', sans-serif;
1638
- -webkit-font-smoothing: antialiased;
1639
- };
1640
-
1641
- --paper-font-common-code: {
1642
- font-family: 'Roboto Mono', 'Consolas', 'Menlo', monospace;
1643
- -webkit-font-smoothing: antialiased;
1644
- };
1645
-
1646
- --paper-font-common-expensive-kerning: {
1647
- text-rendering: optimizeLegibility;
1648
- };
1649
-
1650
- --paper-font-common-nowrap: {
1651
- white-space: nowrap;
1652
- overflow: hidden;
1653
- text-overflow: ellipsis;
1654
- };
1655
-
1656
- /* Material Font Styles */
1657
-
1658
- --paper-font-display4: {
1659
- @apply --paper-font-common-base;
1660
- @apply --paper-font-common-nowrap;
1661
-
1662
- font-size: 112px;
1663
- font-weight: 300;
1664
- letter-spacing: -.044em;
1665
- line-height: 120px;
1666
- };
1667
-
1668
- --paper-font-display3: {
1669
- @apply --paper-font-common-base;
1670
- @apply --paper-font-common-nowrap;
1671
-
1672
- font-size: 56px;
1673
- font-weight: 400;
1674
- letter-spacing: -.026em;
1675
- line-height: 60px;
1676
- };
1677
-
1678
- --paper-font-display2: {
1679
- @apply --paper-font-common-base;
1680
-
1681
- font-size: 45px;
1682
- font-weight: 400;
1683
- letter-spacing: -.018em;
1684
- line-height: 48px;
1685
- };
1686
-
1687
- --paper-font-display1: {
1688
- @apply --paper-font-common-base;
1689
-
1690
- font-size: 34px;
1691
- font-weight: 400;
1692
- letter-spacing: -.01em;
1693
- line-height: 40px;
1694
- };
1695
-
1696
- --paper-font-headline: {
1697
- @apply --paper-font-common-base;
1698
-
1699
- font-size: 24px;
1700
- font-weight: 400;
1701
- letter-spacing: -.012em;
1702
- line-height: 32px;
1703
- };
1704
-
1705
- --paper-font-title: {
1706
- @apply --paper-font-common-base;
1707
- @apply --paper-font-common-nowrap;
1708
-
1709
- font-size: 20px;
1710
- font-weight: 500;
1711
- line-height: 28px;
1712
- };
1713
-
1714
- --paper-font-subhead: {
1715
- @apply --paper-font-common-base;
1716
-
1717
- font-size: 16px;
1718
- font-weight: 400;
1719
- line-height: 24px;
1720
- };
1721
-
1722
- --paper-font-body2: {
1723
- @apply --paper-font-common-base;
1724
-
1725
- font-size: 14px;
1726
- font-weight: 500;
1727
- line-height: 24px;
1728
- };
1729
-
1730
- --paper-font-body1: {
1731
- @apply --paper-font-common-base;
1732
-
1733
- font-size: 14px;
1734
- font-weight: 400;
1735
- line-height: 20px;
1736
- };
1737
-
1738
- --paper-font-caption: {
1739
- @apply --paper-font-common-base;
1740
- @apply --paper-font-common-nowrap;
1741
-
1742
- font-size: 12px;
1743
- font-weight: 400;
1744
- letter-spacing: 0.011em;
1745
- line-height: 20px;
1746
- };
1747
-
1748
- --paper-font-menu: {
1749
- @apply --paper-font-common-base;
1750
- @apply --paper-font-common-nowrap;
1751
-
1752
- font-size: 13px;
1753
- font-weight: 500;
1754
- line-height: 24px;
1755
- };
1756
-
1757
- --paper-font-button: {
1758
- @apply --paper-font-common-base;
1759
- @apply --paper-font-common-nowrap;
1760
-
1761
- font-size: 14px;
1762
- font-weight: 500;
1763
- letter-spacing: 0.018em;
1764
- line-height: 24px;
1765
- text-transform: uppercase;
1766
- };
1767
-
1768
- --paper-font-code2: {
1769
- @apply --paper-font-common-code;
1770
-
1771
- font-size: 14px;
1772
- font-weight: 700;
1773
- line-height: 20px;
1774
- };
1775
-
1776
- --paper-font-code1: {
1777
- @apply --paper-font-common-code;
1778
-
1779
- font-size: 14px;
1780
- font-weight: 500;
1781
- line-height: 20px;
1782
- };
1783
-
1784
- }
1785
-
1786
- </style>
1787
- </custom-style>`;Qr.setAttribute("style","display: none;"),document.head.appendChild(Qr.content);
1788
- /**
1789
- @license
1790
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1791
- This code may only be used under the BSD style license found at
1792
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1793
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1794
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1795
- part of the polymer project is also subject to an additional IP rights grant
1796
- found at http://polymer.github.io/PATENTS.txt
1797
- */
1798
- const ea=document.createElement("template");ea.setAttribute("style","display: none;"),ea.innerHTML='<dom-module id="paper-dialog-shared-styles">\n <template>\n <style>\n :host {\n display: block;\n margin: 24px 40px;\n\n background: var(--paper-dialog-background-color, var(--primary-background-color));\n color: var(--paper-dialog-color, var(--primary-text-color));\n\n @apply --paper-font-body1;\n @apply --shadow-elevation-16dp;\n @apply --paper-dialog;\n }\n\n :host > ::slotted(*) {\n margin-top: 20px;\n padding: 0 24px;\n }\n\n :host > ::slotted(.no-padding) {\n padding: 0;\n }\n\n \n :host > ::slotted(*:first-child) {\n margin-top: 24px;\n }\n\n :host > ::slotted(*:last-child) {\n margin-bottom: 24px;\n }\n\n /* In 1.x, this selector was `:host > ::content h2`. In 2.x <slot> allows\n to select direct children only, which increases the weight of this\n selector, so we have to re-define first-child/last-child margins below. */\n :host > ::slotted(h2) {\n position: relative;\n margin: 0;\n\n @apply --paper-font-title;\n @apply --paper-dialog-title;\n }\n\n /* Apply mixin again, in case it sets margin-top. */\n :host > ::slotted(h2:first-child) {\n margin-top: 24px;\n @apply --paper-dialog-title;\n }\n\n /* Apply mixin again, in case it sets margin-bottom. */\n :host > ::slotted(h2:last-child) {\n margin-bottom: 24px;\n @apply --paper-dialog-title;\n }\n\n :host > ::slotted(.paper-dialog-buttons),\n :host > ::slotted(.buttons) {\n position: relative;\n padding: 8px 8px 8px 24px;\n margin: 0;\n\n color: var(--paper-dialog-button-color, var(--primary-color));\n\n @apply --layout-horizontal;\n @apply --layout-end-justified;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(ea.content);
1799
- /**
1800
- @license
1801
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1802
- This code may only be used under the BSD style license found at
1803
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1804
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1805
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1806
- part of the polymer project is also subject to an additional IP rights grant
1807
- found at http://polymer.github.io/PATENTS.txt
1808
- */
1809
- const ta={properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyProperties:function(e,t){for(var i in t)e[i]=t[i]},_cloneConfig:function(e){var t={isClone:!0};return this._copyProperties(t,e),t},_getAnimationConfigRecursive:function(e,t,i){var n;if(this.animationConfig)if(this.animationConfig.value&&"function"==typeof this.animationConfig.value)this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else if(n=e?this.animationConfig[e]:this.animationConfig,Array.isArray(n)||(n=[n]),n)for(var o,s=0;o=n[s];s++)if(o.animatable)o.animatable._getAnimationConfigRecursive(o.type||e,t,i);else if(o.id){var r=t[o.id];r?(r.isClone||(t[o.id]=this._cloneConfig(r),r=t[o.id]),this._copyProperties(r,o)):t[o.id]=o}else i.push(o)},getAnimationConfig:function(e){var t={},i=[];for(var n in this._getAnimationConfigRecursive(e,t,i),t)i.push(t[n]);return i}},ia=[ta,{_configureAnimations:function(e){var t=[],i=[];if(e.length>0)for(let t,n=0;t=e[n];n++){let e=document.createElement(t.name);if(e.isNeonAnimation){let n=null;e.configure||(e.configure=function(e){return null}),n=e.configure(t),i.push({result:n,config:t,neonAnimation:e})}else console.warn(this.is+":",t.name,"not found!")}for(var n=0;n<i.length;n++){let e=i[n].result,o=i[n].config,s=i[n].neonAnimation;try{"function"!=typeof e.cancel&&(e=document.timeline.play(e))}catch(t){e=null,console.warn("Couldnt play","(",o.name,").",t)}e&&t.push({neonAnimation:s,config:o,animation:e})}return t},_shouldComplete:function(e){for(var t=!0,i=0;i<e.length;i++)if("finished"!=e[i].animation.playState){t=!1;break}return t},_complete:function(e){for(var t=0;t<e.length;t++)e[t].neonAnimation.complete(e[t].config);for(t=0;t<e.length;t++)e[t].animation.cancel()},playAnimation:function(e,t){var i=this.getAnimationConfig(e);if(i){this._active=this._active||{},this._active[e]&&(this._complete(this._active[e]),delete this._active[e]);var n=this._configureAnimations(i);if(0!=n.length){this._active[e]=n;for(var o=0;o<n.length;o++)n[o].animation.onfinish=function(){this._shouldComplete(n)&&(this._complete(n),delete this._active[e],this.fire("neon-animation-finish",t,{bubbles:!1}))}.bind(this)}else this.fire("neon-animation-finish",t,{bubbles:!1})}},cancelAnimation:function(){for(var e in this._active){var t=this._active[e];for(var i in t)t[i].animation.cancel()}this._active={}}}];
1810
- /**
1811
- @license
1812
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1813
- This code may only be used under the BSD style license found at
1814
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1815
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1816
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1817
- part of the polymer project is also subject to an additional IP rights grant
1818
- found at http://polymer.github.io/PATENTS.txt
1819
- */
1820
- /**
1821
- @license
1822
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1823
- This code may only be used under the BSD style license found at
1824
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1825
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1826
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1827
- part of the polymer project is also subject to an additional IP rights grant
1828
- found at http://polymer.github.io/PATENTS.txt
1829
- */
1830
- let na=void 0;const oa=()=>{if(void 0!==na)return na;const e=document.createElement("div");Object.assign(e.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"});const t=document.createElement("div");return t.style.width="200px",t.style.height="200px",e.appendChild(t),document.body.appendChild(e),na=Math.abs(e.offsetWidth-100)>1?e.offsetWidth-e.clientWidth:0,document.body.removeChild(e),na},sa={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth(){return this.fitInto===window?this.fitInto.innerWidth:this.fitInto.getBoundingClientRect().width},get _fitHeight(){return this.fitInto===window?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fitLeft(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().left},get _fitTop(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().top},get _defaultPositionTarget(){var e=is(this).parentNode;return e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e=e.host),e},get _localeHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){return void 0===this._memoizedIsRTL&&(this._memoizedIsRTL="rtl"==window.getComputedStyle(this).direction),this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit()))},detached:function(){this.__deferredFit&&(clearTimeout(this.__deferredFit),this.__deferredFit=null)},fit:function(){this.position(),this.constrain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var e=window.getComputedStyle(this),t=window.getComputedStyle(this.sizingTarget);this._fitInfo={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},positionedBy:{vertically:"auto"!==e.top?"top":"auto"!==e.bottom?"bottom":null,horizontally:"auto"!==e.left?"left":"auto"!==e.right?"right":null},sizedBy:{height:"none"!==t.maxHeight,width:"none"!==t.maxWidth,minWidth:parseInt(t.minWidth,10)||0,minHeight:parseInt(t.minHeight,10)||0},margin:{top:parseInt(e.marginTop,10)||0,right:parseInt(e.marginRight,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0}}}},resetFit:function(){var e=this._fitInfo||{};for(var t in e.sizerInlineStyle)this.sizingTarget.style[t]=e.sizerInlineStyle[t];for(var t in e.inlineStyle)this.style[t]=e.inlineStyle[t];this._fitInfo=null},refit:function(){var e=this.sizingTarget.scrollLeft,t=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),this.sizingTarget.scrollLeft=e,this.sizingTarget.scrollTop=t},position:function(){if(!this.__shouldPosition)return;this._discoverInfo(),window.ShadyDOM&&window.ShadyDOM.flush(),this.style.position="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0px",this.style.top="0px";var e=this.getBoundingClientRect(),t=this.__getNormalizedRect(this.positionTarget),i=this.__getNormalizedRect(this.fitInto);let n,o,s,r;this.expandSizingTargetForScrollbars&&(n=this.sizingTarget.offsetWidth,o=this.sizingTarget.offsetHeight,s=this.sizingTarget.clientWidth,r=this.sizingTarget.clientHeight);var a=this._fitInfo.margin,l={width:e.width+a.left+a.right,height:e.height+a.top+a.bottom},c=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,l,e,t,i),p=c.left+a.left,h=c.top+a.top,d=Math.min(i.right-a.right,p+e.width),u=Math.min(i.bottom-a.bottom,h+e.height);p=Math.max(i.left+a.left,Math.min(p,d-this._fitInfo.sizedBy.minWidth)),h=Math.max(i.top+a.top,Math.min(h,u-this._fitInfo.sizedBy.minHeight));const f=Math.max(d-p,this._fitInfo.sizedBy.minWidth),_=Math.max(u-h,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=f+"px",this.sizingTarget.style.maxHeight=_+"px";const m=p-e.left,y=h-e.top;if(this.style.left=m+"px",this.style.top=y+"px",this.expandSizingTargetForScrollbars){const e=this.sizingTarget.offsetHeight,t=e-this.sizingTarget.clientHeight-(o-r);if(t>0){const n=i.height-a.top-a.bottom,o=Math.min(n,_+t);this.sizingTarget.style.maxHeight=o+"px";const s=this.sizingTarget.offsetHeight,r=s-e;let l;"top"===c.verticalAlign?l=y:"middle"===c.verticalAlign?l=y-r/2:"bottom"===c.verticalAlign&&(l=y-r),l=Math.max(i.top+a.top,Math.min(l,i.bottom-a.bottom-s)),this.style.top=l+"px"}const l=this.sizingTarget.offsetWidth,p=l-this.sizingTarget.clientWidth-(n-s);if(p>0){const e=oa(),t=i.width-a.left-a.right,n=Math.min(t,f+p-e);this.sizingTarget.style.maxWidth=n+"px";const o=this.sizingTarget.offsetWidth+e,s=o-l;let r;"left"===c.horizontalAlign?r=m:"center"===c.horizontalAlign?r=m-s/2:"right"===c.horizontalAlign&&(r=m-s),r=Math.max(i.left+a.left,Math.min(r,i.right-a.right-o)),this.style.left=r+"px"}}},constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo;e.positionedBy.vertically||(this.style.position="fixed",this.style.top="0px"),e.positionedBy.horizontally||(this.style.position="fixed",this.style.left="0px"),this.sizingTarget.style.boxSizing="border-box";var t=this.getBoundingClientRect();e.sizedBy.height||this.__sizeDimension(t,e.positionedBy.vertically,"top","bottom","Height"),e.sizedBy.width||this.__sizeDimension(t,e.positionedBy.horizontally,"left","right","Width")}},_sizeDimension:function(e,t,i,n,o){this.__sizeDimension(e,t,i,n,o)},__sizeDimension:function(e,t,i,n,o){var s=this._fitInfo,r=this.__getNormalizedRect(this.fitInto),a="Width"===o?r.width:r.height,l=t===n,c=l?a-e[n]:e[i],p=s.margin[l?i:n],h="offset"+o,d=this[h]-this.sizingTarget[h];this.sizingTarget.style["max"+o]=a-p-c-d+"px"},center:function(){if(!this.__shouldPosition){this._discoverInfo();var e=this._fitInfo.positionedBy;if(!e.vertically||!e.horizontally){this.style.position="fixed",e.vertically||(this.style.top="0px"),e.horizontally||(this.style.left="0px");var t=this.getBoundingClientRect(),i=this.__getNormalizedRect(this.fitInto);if(!e.vertically){var n=i.top-t.top+(i.height-t.height)/2;this.style.top=n+"px"}if(!e.horizontally){var o=i.left-t.left+(i.width-t.width)/2;this.style.left=o+"px"}}}},__getNormalizedRect:function(e){return e===document.documentElement||e===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:e.getBoundingClientRect()},__getOffscreenArea:function(e,t,i){var n=Math.min(0,e.top)+Math.min(0,i.bottom-(e.top+t.height)),o=Math.min(0,e.left)+Math.min(0,i.right-(e.left+t.width));return Math.abs(n)*t.width+Math.abs(o)*t.height},__getPosition:function(e,t,i,n,o,s){var r,a=[{verticalAlign:"top",horizontalAlign:"left",top:o.top+this.verticalOffset,left:o.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:o.top+this.verticalOffset,left:o.right-i.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:o.bottom-i.height-this.verticalOffset,left:o.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:o.bottom-i.height-this.verticalOffset,left:o.right-i.width-this.horizontalOffset}];if(this.noOverlap){for(var l=0,c=a.length;l<c;l++){var p={};for(var h in a[l])p[h]=a[l][h];a.push(p)}a[0].top=a[1].top+=o.height,a[2].top=a[3].top-=o.height,a[4].left=a[6].left+=o.width,a[5].left=a[7].left-=o.width}t="auto"===t?null:t,(e="auto"===e?null:e)&&"center"!==e||(a.push({verticalAlign:"top",horizontalAlign:"center",top:o.top+this.verticalOffset+(this.noOverlap?o.height:0),left:o.left-n.width/2+o.width/2+this.horizontalOffset}),a.push({verticalAlign:"bottom",horizontalAlign:"center",top:o.bottom-i.height-this.verticalOffset-(this.noOverlap?o.height:0),left:o.left-n.width/2+o.width/2+this.horizontalOffset})),t&&"middle"!==t||(a.push({verticalAlign:"middle",horizontalAlign:"left",top:o.top-n.height/2+o.height/2+this.verticalOffset,left:o.left+this.horizontalOffset+(this.noOverlap?o.width:0)}),a.push({verticalAlign:"middle",horizontalAlign:"right",top:o.top-n.height/2+o.height/2+this.verticalOffset,left:o.right-i.width-this.horizontalOffset-(this.noOverlap?o.width:0)})),"middle"===t&&"center"===e&&a.push({verticalAlign:"middle",horizontalAlign:"center",top:o.top-n.height/2+o.height/2+this.verticalOffset,left:o.left-n.width/2+o.width/2+this.horizontalOffset});for(l=0;l<a.length;l++){var d=a[l],u=d.verticalAlign===t,f=d.horizontalAlign===e;if(!this.dynamicAlign&&!this.noOverlap&&u&&f){r=d;break}var _=(!t||u)&&(!e||f);if(this.dynamicAlign||_){if(d.offscreenArea=this.__getOffscreenArea(d,i,s),0===d.offscreenArea&&_){r=d;break}r=r||d;var m=d.offscreenArea-r.offscreenArea;(m<0||0===m&&(u||f))&&(r=d)}}return r}};
1831
- /**
1832
- @license
1833
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
1834
- This code may only be used under the BSD style license found at
1835
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1836
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1837
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1838
- part of the polymer project is also subject to an additional IP rights grant
1839
- found at http://polymer.github.io/PATENTS.txt
1840
- */
1841
- var ra=Element.prototype,aa=ra.matches||ra.matchesSelector||ra.mozMatchesSelector||ra.msMatchesSelector||ra.oMatchesSelector||ra.webkitMatchesSelector;class la{getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}isFocusable(e){return aa.call(e,"input, select, textarea, button, object")?aa.call(e,":not([disabled])"):aa.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}isTabbable(e){return this.isFocusable(e)&&aa.call(e,':not([tabindex="-1"])')&&this._isVisible(e)}_normalizedTabIndex(e){if(this.isFocusable(e)){var t=e.getAttribute("tabindex")||0;return Number(t)}return-1}_collectTabbableNodes(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var i=e;if(!this._isVisible(i))return!1;var n,o=this._normalizedTabIndex(i),s=o>0;o>=0&&t.push(i),n="content"===i.localName||"slot"===i.localName?is(i).getDistributedNodes():is(i.root||i).children;for(var r=0;r<n.length;r++)s=this._collectTabbableNodes(n[r],t)||s;return s}_isVisible(e){var t=e.style;return"hidden"!==t.visibility&&"none"!==t.display&&("hidden"!==(t=window.getComputedStyle(e)).visibility&&"none"!==t.display)}_sortByTabIndex(e){var t=e.length;if(t<2)return e;var i=Math.ceil(t/2),n=this._sortByTabIndex(e.slice(0,i)),o=this._sortByTabIndex(e.slice(i));return this._mergeSortByTabIndex(n,o)}_mergeSortByTabIndex(e,t){for(var i=[];e.length>0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}_hasLowerTabOrder(e,t){var i=Math.max(e.tabIndex,0),n=Math.max(t.tabIndex,0);return 0===i||0===n?n>i:i>n}}const ca=new la;
1842
- /**
1843
- @license
1844
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1845
- This code may only be used under the BSD style license found at
1846
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1847
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1848
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1849
- part of the polymer project is also subject to an additional IP rights grant
1850
- found at http://polymer.github.io/PATENTS.txt
1851
- */Ss({_template:ir`
1852
- <style>
1853
- :host {
1854
- position: fixed;
1855
- top: 0;
1856
- left: 0;
1857
- width: 100%;
1858
- height: 100%;
1859
- background-color: var(--iron-overlay-backdrop-background-color, #000);
1860
- opacity: 0;
1861
- transition: opacity 0.2s;
1862
- pointer-events: none;
1863
- @apply --iron-overlay-backdrop;
1864
- }
1865
-
1866
- :host(.opened) {
1867
- opacity: var(--iron-overlay-backdrop-opacity, 0.6);
1868
- pointer-events: auto;
1869
- @apply --iron-overlay-backdrop-opened;
1870
- }
1871
- </style>
1872
-
1873
- <slot></slot>
1874
- `,is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&is(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||is(this.parentNode).removeChild(this)},_onTransitionend:function(e){e&&e.target===this&&this.complete()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComputedStyle(this);"0s"!==t.transitionDuration&&0!=t.opacity||this.complete()}this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.opened)}.bind(this)))}});
1875
- /**
1876
- @license
1877
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1878
- This code may only be used under the BSD style license found at
1879
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1880
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1881
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1882
- part of the polymer project is also subject to an additional IP rights grant
1883
- found at http://polymer.github.io/PATENTS.txt
1884
- */
1885
- class pa{constructor(){this._overlays=[],this._minimumZ=101,this._backdropElement=null,Kn(document.documentElement,"tap",(function(){})),document.addEventListener("tap",this._onCaptureClick.bind(this),!0),document.addEventListener("focus",this._onCaptureFocus.bind(this),!0),document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)}get backdropElement(){return this._backdropElement||(this._backdropElement=document.createElement("iron-overlay-backdrop")),this._backdropElement}get deepActiveElement(){var e=document.activeElement;for(e&&e instanceof Element!=!1||(e=document.body);e.root&&is(e.root).activeElement;)e=is(e.root).activeElement;return e}_bringOverlayAtIndexToFront(e){var t=this._overlays[e];if(t){var i=this._overlays.length-1,n=this._overlays[i];if(n&&this._shouldBeBehindOverlay(t,n)&&i--,!(e>=i)){var o=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(t)<=o&&this._applyOverlayZ(t,o);e<i;)this._overlays[e]=this._overlays[e+1],e++;this._overlays[i]=t}}}addOrRemoveOverlay(e){e.opened?this.addOverlay(e):this.removeOverlay(e)}addOverlay(e){var t=this._overlays.indexOf(e);if(t>=0)return this._bringOverlayAtIndexToFront(t),void this.trackBackdrop();var i=this._overlays.length,n=this._overlays[i-1],o=Math.max(this._getZ(n),this._minimumZ),s=this._getZ(e);if(n&&this._shouldBeBehindOverlay(e,n)){this._applyOverlayZ(n,o),i--;var r=this._overlays[i-1];o=Math.max(this._getZ(r),this._minimumZ)}s<=o&&this._applyOverlayZ(e,o),this._overlays.splice(i,0,e),this.trackBackdrop()}removeOverlay(e){var t=this._overlays.indexOf(e);-1!==t&&(this._overlays.splice(t,1),this.trackBackdrop())}currentOverlay(){var e=this._overlays.length-1;return this._overlays[e]}currentOverlayZ(){return this._getZ(this.currentOverlay())}ensureMinimumZ(e){this._minimumZ=Math.max(this._minimumZ,e)}focusOverlay(){var e=this.currentOverlay();e&&e._applyFocus()}trackBackdrop(){var e=this._overlayWithBackdrop();(e||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e,this.backdropElement.prepare())}getBackdrops(){for(var e=[],t=0;t<this._overlays.length;t++)this._overlays[t].withBackdrop&&e.push(this._overlays[t]);return e}backdropZ(){return this._getZ(this._overlayWithBackdrop())-1}_overlayWithBackdrop(){for(var e=this._overlays.length-1;e>=0;e--)if(this._overlays[e].withBackdrop)return this._overlays[e]}_getZ(e){var t=this._minimumZ;if(e){var i=Number(e.style.zIndex||window.getComputedStyle(e).zIndex);i==i&&(t=i)}return t}_setZ(e,t){e.style.zIndex=t}_applyOverlayZ(e,t){this._setZ(e,t+2)}_overlayInPath(e){e=e||[];for(var t=0;t<e.length;t++)if(e[t]._manager===this)return e[t]}_onCaptureClick(e){var t=this._overlays.length-1;if(-1!==t)for(var i,n=is(e).path;(i=this._overlays[t])&&this._overlayInPath(n)!==i&&(i._onCaptureClick(e),i.allowClickThrough);)t--}_onCaptureFocus(e){var t=this.currentOverlay();t&&t._onCaptureFocus(e)}_onCaptureKeyDown(e){var t=this.currentOverlay();t&&(qr.keyboardEventMatchesKeys(e,"esc")?t._onCaptureEsc(e):qr.keyboardEventMatchesKeys(e,"tab")&&t._onCaptureTab(e))}_shouldBeBehindOverlay(e,t){return!e.alwaysOnTop&&t.alwaysOnTop}}const ha=new pa;
1886
- /**
1887
- @license
1888
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1889
- This code may only be used under the BSD style license found at
1890
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1891
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1892
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1893
- part of the polymer project is also subject to an additional IP rights grant
1894
- found at http://polymer.github.io/PATENTS.txt
1895
- */var da,ua,fa={pageX:0,pageY:0},_a=null,ma=[],ya=["wheel","mousewheel","DOMMouseScroll","touchstart","touchmove"];function ga(e){va.indexOf(e)>=0||(0===va.length&&xa(),va.push(e),ua=va[va.length-1])}function ba(e){var t=va.indexOf(e);-1!==t&&(va.splice(t,1),ua=va[va.length-1],0===va.length&&Ca())}const va=[];function wa(e){if(e.cancelable&&Sa(e)&&e.preventDefault(),e.targetTouches){var t=e.targetTouches[0];fa.pageX=t.pageX,fa.pageY=t.pageY}}function xa(){da=da||wa.bind(void 0);for(var e=0,t=ya.length;e<t;e++)document.addEventListener(ya[e],da,{capture:!0,passive:!1})}function Ca(){for(var e=0,t=ya.length;e<t;e++)document.removeEventListener(ya[e],da,{capture:!0,passive:!1})}function Sa(e){var t=is(e).rootTarget;if("touchmove"!==e.type&&_a!==t&&(_a=t,ma=Aa(is(e).path)),!ma.length)return!0;if("touchstart"===e.type)return!1;var i=Ea(e);return!ka(ma,i.deltaX,i.deltaY)}function Aa(e){for(var t=[],i=e.indexOf(ua),n=0;n<=i;n++)if(e[n].nodeType===Node.ELEMENT_NODE){var o=e[n],s=o.style;"scroll"!==s.overflow&&"auto"!==s.overflow&&(s=window.getComputedStyle(o)),"scroll"!==s.overflow&&"auto"!==s.overflow||t.push(o)}return t}function ka(e,t,i){if(t||i)for(var n=Math.abs(i)>=Math.abs(t),o=0;o<e.length;o++){var s=e[o];if(n?i<0?s.scrollTop>0:s.scrollTop<s.scrollHeight-s.clientHeight:t<0?s.scrollLeft>0:s.scrollLeft<s.scrollWidth-s.clientWidth)return s}}function Ea(e){var t={deltaX:e.deltaX,deltaY:e.deltaY};if("deltaX"in e);else if("wheelDeltaX"in e&&"wheelDeltaY"in e)t.deltaX=-e.wheelDeltaX,t.deltaY=-e.wheelDeltaY;else if("wheelDelta"in e)t.deltaX=0,t.deltaY=-e.wheelDelta;else if("axis"in e)t.deltaX=1===e.axis?e.detail:0,t.deltaY=2===e.axis?e.detail:0;else if(e.targetTouches){var i=e.targetTouches[0];t.deltaX=fa.pageX-i.pageX,t.deltaY=fa.pageY-i.pageY}return t}
1896
- /**
1897
- @license
1898
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1899
- This code may only be used under the BSD style license found at
1900
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1901
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1902
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1903
- part of the polymer project is also subject to an additional IP rights grant
1904
- found at http://polymer.github.io/PATENTS.txt
1905
- */const Pa={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},allowClickThrough:{type:Boolean},alwaysOnTop:{type:Boolean},scrollAction:{type:String},_manager:{type:Object,value:ha},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){return this._focusedChild||is(this).querySelector("[autofocus]")||this},get _focusableNodes(){return ca.getTabbableNodes(this)},ready:function(){this.__isAnimating=!1,this.__shouldRemoveTabIndex=!1,this.__firstFocusableNode=this.__lastFocusableNode=null,this.__rafs={},this.__restoreFocusNode=null,this.__scrollTop=this.__scrollLeft=null,this.__onCaptureScroll=this.__onCaptureScroll.bind(this),this.__rootNodes=null,this._ensureSetup()},attached:function(){this.opened&&this._openedChanged(this.opened),this._observer=is(this).observeNodes(this._onNodesChange)},detached:function(){for(var e in this._observer&&is(this).unobserveNodes(this._observer),this._observer=null,this.__rafs)null!==this.__rafs[e]&&cancelAnimationFrame(this.__rafs[e]);this.__rafs={},this._manager.removeOverlay(this),this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},toggle:function(){this._setCanceled(!1),this.opened=!this.opened},open:function(){this._setCanceled(!1),this.opened=!0},close:function(){this._setCanceled(!1),this.opened=!1},cancel:function(e){this.fire("iron-overlay-canceled",e,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},_ensureSetup:function(){this._overlaySetup||(this._overlaySetup=!0,this.style.outline="none",this.style.display="none")},_openedChanged:function(e){e?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true"),this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},_canceledChanged:function(){this.closingReason=this.closingReason||{},this.closingReason.canceled=this.canceled},_withBackdropChanged:function(){this.withBackdrop&&!this.hasAttribute("tabindex")?(this.setAttribute("tabindex","-1"),this.__shouldRemoveTabIndex=!0):this.__shouldRemoveTabIndex&&(this.removeAttribute("tabindex"),this.__shouldRemoveTabIndex=!1),this.opened&&this.isAttached&&this._manager.trackBackdrop()},_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement,this._preparePositioning(),this.refit(),this._finishPositioning(),this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},_renderOpened:function(){this._finishRenderOpened()},_renderClosed:function(){this._finishRenderClosed()},_finishRenderOpened:function(){this.notifyResize(),this.__isAnimating=!1,this.fire("iron-overlay-opened")},_finishRenderClosed:function(){this.style.display="none",this.style.zIndex="",this.notifyResize(),this.__isAnimating=!1,this.fire("iron-overlay-closed",this.closingReason)},_preparePositioning:function(){this.style.transition=this.style.webkitTransition="none",this.style.transform=this.style.webkitTransform="none",this.style.display=""},_finishPositioning:function(){this.style.display="none",this.scrollTop=this.scrollTop,this.style.transition=this.style.webkitTransition="",this.style.transform=this.style.webkitTransform="",this.style.display="",this.scrollTop=this.scrollTop},_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var e=this._manager.deepActiveElement;(e===document.body||Ta(this,e))&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null,this._focusNode.blur(),this._focusedChild=null}},_onCaptureClick:function(e){this.noCancelOnOutsideClick||this.cancel(e)},_onCaptureFocus:function(e){if(this.withBackdrop){var t=is(e).path;-1===t.indexOf(this)?(e.stopPropagation(),this._applyFocus()):this._focusedChild=t[0]}},_onCaptureEsc:function(e){this.noCancelOnEscKey||this.cancel(e)},_onCaptureTab:function(e){if(this.withBackdrop){this.__ensureFirstLastFocusables();var t=e.shiftKey,i=t?this.__firstFocusableNode:this.__lastFocusableNode,n=t?this.__lastFocusableNode:this.__firstFocusableNode,o=!1;if(i===n)o=!0;else{var s=this._manager.deepActiveElement;o=s===i||s===this}o&&(e.preventDefault(),this._focusedChild=n,this._applyFocus())}},_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},__ensureFirstLastFocusables:function(){var e=this._focusableNodes;this.__firstFocusableNode=e[0],this.__lastFocusableNode=e[e.length-1]},__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},__deraf:function(e,t){var i=this.__rafs;null!==i[e]&&cancelAnimationFrame(i[e]),i[e]=requestAnimationFrame(function(){i[e]=null,t.call(this)}.bind(this))},__updateScrollObservers:function(e,t,i){e&&t&&this.__isValidScrollAction(i)?("lock"===i&&(this.__saveScrollPosition(),ga(this)),this.__addScrollListeners()):(ba(this),this.__removeScrollListeners())},__addScrollListeners:function(){if(!this.__rootNodes){if(this.__rootNodes=[],Ee)for(var e=this;e;)e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host&&this.__rootNodes.push(e),e=e.host||e.assignedSlot||e.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach((function(e){e.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})}),this)},__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach((function(e){e.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})}),this),this.isAttached||(this.__rootNodes=null)},__isValidScrollAction:function(e){return"lock"===e||"refit"===e||"cancel"===e},__onCaptureScroll:function(e){if(!(this.__isAnimating||is(e).path.indexOf(this)>=0))switch(this.scrollAction){case"lock":this.__restoreScrollPosition();break;case"refit":this.__deraf("refit",this.refit);break;case"cancel":this.cancel(e)}},__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}},Oa=e=>e.assignedSlot||e.parentNode||e.host,Ta=(e,t)=>{for(let i=t;i;i=Oa(i))if(i===e)return!0;return!1},Ia=[sa,Gr,Pa],Na={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.__readied=!0},_modalChanged:function(e,t){t&&(e?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.noCancelOnOutsideClick=!0,this.noCancelOnEscKey=!0,this.withBackdrop=!0):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&this.__prevWithBackdrop))},_updateClosingReasonConfirmed:function(e){this.closingReason=this.closingReason||{},this.closingReason.confirmed=e},_onDialogClick:function(e){for(var t=is(e).path,i=0,n=t.indexOf(this);i<n;i++){var o=t[i];if(o.hasAttribute&&(o.hasAttribute("dialog-dismiss")||o.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(o.hasAttribute("dialog-confirm")),this.close(),e.stopPropagation();break}}}};
1906
- /**
1907
- @license
1908
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1909
- This code may only be used under the BSD style license found at
1910
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1911
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1912
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1913
- part of the polymer project is also subject to an additional IP rights grant
1914
- found at http://polymer.github.io/PATENTS.txt
1915
- */
1916
- Ss({_template:ir`
1917
- <style include="paper-dialog-shared-styles"></style>
1918
- <slot></slot>
1919
- `,is:"paper-dialog",behaviors:[[Ia,Na],ia],listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},_renderOpened:function(){this.cancelAnimation(),this.playAnimation("entry")},_renderClosed:function(){this.cancelAnimation(),this.playAnimation("exit")},_onNeonAnimationFinish:function(){this.opened?this._finishRenderOpened():this._finishRenderClosed()}}),
1920
- /**
1921
- @license
1922
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1923
- This code may only be used under the BSD style license found at
1924
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1925
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1926
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1927
- part of the polymer project is also subject to an additional IP rights grant
1928
- found at http://polymer.github.io/PATENTS.txt
1929
- */
1930
- Ss({_template:ir`
1931
- <style>
1932
-
1933
- :host {
1934
- display: block;
1935
- @apply --layout-relative;
1936
- }
1937
-
1938
- :host(.is-scrolled:not(:first-child))::before {
1939
- content: '';
1940
- position: absolute;
1941
- top: 0;
1942
- left: 0;
1943
- right: 0;
1944
- height: 1px;
1945
- background: var(--divider-color);
1946
- }
1947
-
1948
- :host(.can-scroll:not(.scrolled-to-bottom):not(:last-child))::after {
1949
- content: '';
1950
- position: absolute;
1951
- bottom: 0;
1952
- left: 0;
1953
- right: 0;
1954
- height: 1px;
1955
- background: var(--divider-color);
1956
- }
1957
-
1958
- .scrollable {
1959
- padding: 0 24px;
1960
-
1961
- @apply --layout-scroll;
1962
- @apply --paper-dialog-scrollable;
1963
- }
1964
-
1965
- .fit {
1966
- @apply --layout-fit;
1967
- }
1968
- </style>
1969
-
1970
- <div id="scrollable" class="scrollable" on-scroll="updateScrollState">
1971
- <slot></slot>
1972
- </div>
1973
- `,is:"paper-dialog-scrollable",properties:{dialogElement:{type:Object}},get scrollTarget(){return this.$.scrollable},ready:function(){this._ensureTarget(),this.classList.add("no-padding")},attached:function(){this._ensureTarget(),requestAnimationFrame(this.updateScrollState.bind(this))},updateScrollState:function(){this.toggleClass("is-scrolled",this.scrollTarget.scrollTop>0),this.toggleClass("can-scroll",this.scrollTarget.offsetHeight<this.scrollTarget.scrollHeight),this.toggleClass("scrolled-to-bottom",this.scrollTarget.scrollTop+this.scrollTarget.offsetHeight>=this.scrollTarget.scrollHeight)},_ensureTarget:function(){this.dialogElement=this.dialogElement||this.parentElement,this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Na)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});
1974
- /**
1975
- @license
1976
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1977
- This code may only be used under the BSD style license found at
1978
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1979
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1980
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1981
- part of the polymer project is also subject to an additional IP rights grant
1982
- found at http://polymer.github.io/PATENTS.txt
1983
- */
1984
- const Ra=Ss({_template:ir`
1985
- <style>
1986
- :host {
1987
- display: inline-block;
1988
- position: fixed;
1989
- clip: rect(0px,0px,0px,0px);
1990
- }
1991
- </style>
1992
- <div aria-live$="[[mode]]">[[_text]]</div>
1993
- `,is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){Ra.instance||(Ra.instance=this),document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async((function(){this._text=e}),this.timeout)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}});Ra.instance=null,Ra.requestAvailability=function(){Ra.instance||(Ra.instance=document.createElement("iron-a11y-announcer")),document.body?document.body.appendChild(Ra.instance):document.addEventListener("load",(function(){document.body.appendChild(Ra.instance)}))};
1994
- /**
1995
- @license
1996
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1997
- This code may only be used under the BSD style license found at
1998
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1999
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2000
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2001
- part of the polymer project is also subject to an additional IP rights grant
2002
- found at http://polymer.github.io/PATENTS.txt
2003
- */
2004
- let Ma=null;const za={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Ma=new vr({type:"validator"})},_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},get _validator(){return Ma&&Ma.byKey(this.validator)},hasValidator:function(){return null!=this._validator},validate:function(e){return void 0===e&&void 0!==this.value?this.invalid=!this._getValidity(this.value):this.invalid=!this._getValidity(e),!this.invalid},_getValidity:function(e){return!this.hasValidator()||this._validator.validate(e)}};
2005
- /**
2006
- @license
2007
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2008
- This code may only be used under the BSD style license found at
2009
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2010
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2011
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2012
- part of the polymer project is also subject to an additional IP rights grant
2013
- found at http://polymer.github.io/PATENTS.txt
2014
- */Ss({_template:ir`
2015
- <style>
2016
- :host {
2017
- display: inline-block;
2018
- }
2019
- </style>
2020
- <slot id="content"></slot>
2021
- `,is:"iron-input",behaviors:[za],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){Ra.requestAvailability(),this._previousValidInput="",this._patternAlreadyChecked=!1},attached:function(){this._observer=is(this).observeNodes(function(e){this._initSlottedInput()}.bind(this))},detached:function(){this._observer&&(is(this).unobserveNodes(this._observer),this._observer=null)},get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0],this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value),this.fire("iron-input-ready")},get _patternRegExp(){var e;if(this.allowedPattern)e=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case"number":e=/[0-9.,e-]/}return e},_bindValueChanged:function(e,t){t&&(void 0===e?t.value=null:e!==t.value&&(this.inputElement.value=e),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:e}))},_onInput:function(){this.allowedPattern&&!this._patternAlreadyChecked&&(this._checkPatternValidity()||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput));this.bindValue=this._previousValidInput=this.inputElement.value,this._patternAlreadyChecked=!1},_isPrintable:function(e){var t=8==e.keyCode||9==e.keyCode||13==e.keyCode||27==e.keyCode,i=19==e.keyCode||20==e.keyCode||45==e.keyCode||46==e.keyCode||144==e.keyCode||145==e.keyCode||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!(t||0==e.charCode&&i)},_onKeypress:function(e){if(this.allowedPattern||"number"===this.inputElement.type){var t=this._patternRegExp;if(t&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var i=String.fromCharCode(e.charCode);this._isPrintable(e)&&!t.test(i)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+i+" not entered."))}}},_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var t=0;t<this.inputElement.value.length;t++)if(!e.test(this.inputElement.value[t]))return!1;return!0},validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var e=this.inputElement.checkValidity();return e&&(this.required&&""===this.bindValue?e=!1:this.hasValidator()&&(e=za.validate.call(this,this.bindValue))),this.invalid=!e,this.fire("iron-input-validate"),e},_announceInvalidCharacter:function(e){this.fire("iron-announce",{text:e})},_computeValue:function(e){return e}});
2022
- /**
2023
- @license
2024
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2025
- This code may only be used under the BSD style license found at
2026
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2027
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2028
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2029
- part of the polymer project is also subject to an additional IP rights grant
2030
- found at http://polymer.github.io/PATENTS.txt
2031
- */
2032
- const Fa={attached:function(){this.fire("addon-attached")},update:function(e){}};
2033
- /**
2034
- @license
2035
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2036
- This code may only be used under the BSD style license found at
2037
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2038
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2039
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2040
- part of the polymer project is also subject to an additional IP rights grant
2041
- found at http://polymer.github.io/PATENTS.txt
2042
- */Ss({_template:ir`
2043
- <style>
2044
- :host {
2045
- display: inline-block;
2046
- float: right;
2047
-
2048
- @apply --paper-font-caption;
2049
- @apply --paper-input-char-counter;
2050
- }
2051
-
2052
- :host([hidden]) {
2053
- display: none !important;
2054
- }
2055
-
2056
- :host(:dir(rtl)) {
2057
- float: left;
2058
- }
2059
- </style>
2060
-
2061
- <span>[[_charCounterStr]]</span>
2062
- `,is:"paper-input-char-counter",behaviors:[Fa],properties:{_charCounterStr:{type:String,value:"0"}},update:function(e){if(e.inputElement){e.value=e.value||"";var t=e.value.toString().length.toString();e.inputElement.hasAttribute("maxlength")&&(t+="/"+e.inputElement.getAttribute("maxlength")),this._charCounterStr=t}}});
2063
- /**
2064
- @license
2065
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2066
- This code may only be used under the BSD style license found at
2067
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2068
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2069
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2070
- part of the polymer project is also subject to an additional IP rights grant
2071
- found at http://polymer.github.io/PATENTS.txt
2072
- */
2073
- const Da=ir`
2074
- <custom-style>
2075
- <style is="custom-style">
2076
- html {
2077
- --paper-input-container-shared-input-style: {
2078
- position: relative; /* to make a stacking context */
2079
- outline: none;
2080
- box-shadow: none;
2081
- padding: 0;
2082
- margin: 0;
2083
- width: 100%;
2084
- max-width: 100%;
2085
- background: transparent;
2086
- border: none;
2087
- color: var(--paper-input-container-input-color, var(--primary-text-color));
2088
- -webkit-appearance: none;
2089
- text-align: inherit;
2090
- vertical-align: var(--paper-input-container-input-align, bottom);
2091
-
2092
- @apply --paper-font-subhead;
2093
- };
2094
- }
2095
- </style>
2096
- </custom-style>
2097
- `;Da.setAttribute("style","display: none;"),document.head.appendChild(Da.content),Ss({_template:ir`
2098
- <style>
2099
- :host {
2100
- display: block;
2101
- padding: 8px 0;
2102
- @apply --paper-input-container;
2103
- }
2104
-
2105
- :host([inline]) {
2106
- display: inline-block;
2107
- }
2108
-
2109
- :host([disabled]) {
2110
- pointer-events: none;
2111
- opacity: 0.33;
2112
-
2113
- @apply --paper-input-container-disabled;
2114
- }
2115
-
2116
- :host([hidden]) {
2117
- display: none !important;
2118
- }
2119
-
2120
- [hidden] {
2121
- display: none !important;
2122
- }
2123
-
2124
- .floated-label-placeholder {
2125
- @apply --paper-font-caption;
2126
- }
2127
-
2128
- .underline {
2129
- height: 2px;
2130
- position: relative;
2131
- }
2132
-
2133
- .focused-line {
2134
- @apply --layout-fit;
2135
- border-bottom: 2px solid var(--paper-input-container-focus-color, var(--primary-color));
2136
-
2137
- -webkit-transform-origin: center center;
2138
- transform-origin: center center;
2139
- -webkit-transform: scale3d(0,1,1);
2140
- transform: scale3d(0,1,1);
2141
-
2142
- @apply --paper-input-container-underline-focus;
2143
- }
2144
-
2145
- .underline.is-highlighted .focused-line {
2146
- -webkit-transform: none;
2147
- transform: none;
2148
- -webkit-transition: -webkit-transform 0.25s;
2149
- transition: transform 0.25s;
2150
-
2151
- @apply --paper-transition-easing;
2152
- }
2153
-
2154
- .underline.is-invalid .focused-line {
2155
- border-color: var(--paper-input-container-invalid-color, var(--error-color));
2156
- -webkit-transform: none;
2157
- transform: none;
2158
- -webkit-transition: -webkit-transform 0.25s;
2159
- transition: transform 0.25s;
2160
-
2161
- @apply --paper-transition-easing;
2162
- }
2163
-
2164
- .unfocused-line {
2165
- @apply --layout-fit;
2166
- border-bottom: 1px solid var(--paper-input-container-color, var(--secondary-text-color));
2167
- @apply --paper-input-container-underline;
2168
- }
2169
-
2170
- :host([disabled]) .unfocused-line {
2171
- border-bottom: 1px dashed;
2172
- border-color: var(--paper-input-container-color, var(--secondary-text-color));
2173
- @apply --paper-input-container-underline-disabled;
2174
- }
2175
-
2176
- .input-wrapper {
2177
- @apply --layout-horizontal;
2178
- @apply --layout-center;
2179
- position: relative;
2180
- }
2181
-
2182
- .input-content {
2183
- @apply --layout-flex-auto;
2184
- @apply --layout-relative;
2185
- max-width: 100%;
2186
- }
2187
-
2188
- .input-content ::slotted(label),
2189
- .input-content ::slotted(.paper-input-label) {
2190
- position: absolute;
2191
- top: 0;
2192
- left: 0;
2193
- width: 100%;
2194
- font: inherit;
2195
- color: var(--paper-input-container-color, var(--secondary-text-color));
2196
- -webkit-transition: -webkit-transform 0.25s, width 0.25s;
2197
- transition: transform 0.25s, width 0.25s;
2198
- -webkit-transform-origin: left top;
2199
- transform-origin: left top;
2200
- /* Fix for safari not focusing 0-height date/time inputs with -webkit-apperance: none; */
2201
- min-height: 1px;
2202
-
2203
- @apply --paper-font-common-nowrap;
2204
- @apply --paper-font-subhead;
2205
- @apply --paper-input-container-label;
2206
- @apply --paper-transition-easing;
2207
- }
2208
-
2209
-
2210
- .input-content ::slotted(label):before,
2211
- .input-content ::slotted(.paper-input-label):before {
2212
- @apply --paper-input-container-label-before;
2213
- }
2214
-
2215
- .input-content ::slotted(label):after,
2216
- .input-content ::slotted(.paper-input-label):after {
2217
- @apply --paper-input-container-label-after;
2218
- }
2219
-
2220
- .input-content.label-is-floating ::slotted(label),
2221
- .input-content.label-is-floating ::slotted(.paper-input-label) {
2222
- -webkit-transform: translateY(-75%) scale(0.75);
2223
- transform: translateY(-75%) scale(0.75);
2224
-
2225
- /* Since we scale to 75/100 of the size, we actually have 100/75 of the
2226
- original space now available */
2227
- width: 133%;
2228
-
2229
- @apply --paper-input-container-label-floating;
2230
- }
2231
-
2232
- :host(:dir(rtl)) .input-content.label-is-floating ::slotted(label),
2233
- :host(:dir(rtl)) .input-content.label-is-floating ::slotted(.paper-input-label) {
2234
- right: 0;
2235
- left: auto;
2236
- -webkit-transform-origin: right top;
2237
- transform-origin: right top;
2238
- }
2239
-
2240
- .input-content.label-is-highlighted ::slotted(label),
2241
- .input-content.label-is-highlighted ::slotted(.paper-input-label) {
2242
- color: var(--paper-input-container-focus-color, var(--primary-color));
2243
-
2244
- @apply --paper-input-container-label-focus;
2245
- }
2246
-
2247
- .input-content.is-invalid ::slotted(label),
2248
- .input-content.is-invalid ::slotted(.paper-input-label) {
2249
- color: var(--paper-input-container-invalid-color, var(--error-color));
2250
- }
2251
-
2252
- .input-content.label-is-hidden ::slotted(label),
2253
- .input-content.label-is-hidden ::slotted(.paper-input-label) {
2254
- visibility: hidden;
2255
- }
2256
-
2257
- .input-content ::slotted(input),
2258
- .input-content ::slotted(iron-input),
2259
- .input-content ::slotted(textarea),
2260
- .input-content ::slotted(iron-autogrow-textarea),
2261
- .input-content ::slotted(.paper-input-input) {
2262
- @apply --paper-input-container-shared-input-style;
2263
- /* The apply shim doesn't apply the nested color custom property,
2264
- so we have to re-apply it here. */
2265
- color: var(--paper-input-container-input-color, var(--primary-text-color));
2266
- @apply --paper-input-container-input;
2267
- }
2268
-
2269
- .input-content ::slotted(input)::-webkit-outer-spin-button,
2270
- .input-content ::slotted(input)::-webkit-inner-spin-button {
2271
- @apply --paper-input-container-input-webkit-spinner;
2272
- }
2273
-
2274
- .input-content.focused ::slotted(input),
2275
- .input-content.focused ::slotted(iron-input),
2276
- .input-content.focused ::slotted(textarea),
2277
- .input-content.focused ::slotted(iron-autogrow-textarea),
2278
- .input-content.focused ::slotted(.paper-input-input) {
2279
- @apply --paper-input-container-input-focus;
2280
- }
2281
-
2282
- .input-content.is-invalid ::slotted(input),
2283
- .input-content.is-invalid ::slotted(iron-input),
2284
- .input-content.is-invalid ::slotted(textarea),
2285
- .input-content.is-invalid ::slotted(iron-autogrow-textarea),
2286
- .input-content.is-invalid ::slotted(.paper-input-input) {
2287
- @apply --paper-input-container-input-invalid;
2288
- }
2289
-
2290
- .prefix ::slotted(*) {
2291
- display: inline-block;
2292
- @apply --paper-font-subhead;
2293
- @apply --layout-flex-none;
2294
- @apply --paper-input-prefix;
2295
- }
2296
-
2297
- .suffix ::slotted(*) {
2298
- display: inline-block;
2299
- @apply --paper-font-subhead;
2300
- @apply --layout-flex-none;
2301
-
2302
- @apply --paper-input-suffix;
2303
- }
2304
-
2305
- /* Firefox sets a min-width on the input, which can cause layout issues */
2306
- .input-content ::slotted(input) {
2307
- min-width: 0;
2308
- }
2309
-
2310
- .input-content ::slotted(textarea) {
2311
- resize: none;
2312
- }
2313
-
2314
- .add-on-content {
2315
- position: relative;
2316
- }
2317
-
2318
- .add-on-content.is-invalid ::slotted(*) {
2319
- color: var(--paper-input-container-invalid-color, var(--error-color));
2320
- }
2321
-
2322
- .add-on-content.is-highlighted ::slotted(*) {
2323
- color: var(--paper-input-container-focus-color, var(--primary-color));
2324
- }
2325
- </style>
2326
-
2327
- <div class="floated-label-placeholder" aria-hidden="true" hidden="[[noLabelFloat]]">&nbsp;</div>
2328
-
2329
- <div class="input-wrapper">
2330
- <span class="prefix"><slot name="prefix"></slot></span>
2331
-
2332
- <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]]" id="labelAndInputContainer">
2333
- <slot name="label"></slot>
2334
- <slot name="input"></slot>
2335
- </div>
2336
-
2337
- <span class="suffix"><slot name="suffix"></slot></span>
2338
- </div>
2339
-
2340
- <div class$="[[_computeUnderlineClass(focused,invalid)]]">
2341
- <div class="unfocused-line"></div>
2342
- <div class="focused-line"></div>
2343
- </div>
2344
-
2345
- <div class$="[[_computeAddOnContentClass(focused,invalid)]]">
2346
- <slot name="add-on"></slot>
2347
- </div>
2348
- `,is:"paper-input-container",properties:{noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},attrForValue:{type:String,value:"bind-value"},autoValidate:{type:Boolean,value:!1},invalid:{observer:"_invalidChanged",type:Boolean,value:!1},focused:{readOnly:!0,type:Boolean,value:!1,notify:!0},_addons:{type:Array},_inputHasContent:{type:Boolean,value:!1},_inputSelector:{type:String,value:"input,iron-input,textarea,.paper-input-input"},_boundOnFocus:{type:Function,value:function(){return this._onFocus.bind(this)}},_boundOnBlur:{type:Function,value:function(){return this._onBlur.bind(this)}},_boundOnInput:{type:Function,value:function(){return this._onInput.bind(this)}},_boundValueChanged:{type:Function,value:function(){return this._onValueChanged.bind(this)}}},listeners:{"addon-attached":"_onAddonAttached","iron-input-validate":"_onIronInputValidate"},get _valueChangedEvent(){return this.attrForValue+"-changed"},get _propertyForValue(){return kt(this.attrForValue)},get _inputElement(){return is(this).querySelector(this._inputSelector)},get _inputElementValue(){return this._inputElement[this._propertyForValue]||this._inputElement.value},ready:function(){this.__isFirstValueUpdate=!0,this._addons||(this._addons=[]),this.addEventListener("focus",this._boundOnFocus,!0),this.addEventListener("blur",this._boundOnBlur,!0)},attached:function(){this.attrForValue?this._inputElement.addEventListener(this._valueChangedEvent,this._boundValueChanged):this.addEventListener("input",this._onInput),this._inputElementValue&&""!=this._inputElementValue?this._handleValueAndAutoValidate(this._inputElement):this._handleValue(this._inputElement)},_onAddonAttached:function(e){this._addons||(this._addons=[]);var t=e.target;-1===this._addons.indexOf(t)&&(this._addons.push(t),this.isAttached&&this._handleValue(this._inputElement))},_onFocus:function(){this._setFocused(!0)},_onBlur:function(){this._setFocused(!1),this._handleValueAndAutoValidate(this._inputElement)},_onInput:function(e){this._handleValueAndAutoValidate(e.target)},_onValueChanged:function(e){var t=e.target;this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,void 0===t.value||""===t.value)||this._handleValueAndAutoValidate(e.target)},_handleValue:function(e){var t=this._inputElementValue;t||0===t||"number"===e.type&&!e.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1,this.updateAddons({inputElement:e,value:t,invalid:this.invalid})},_handleValueAndAutoValidate:function(e){var t;this.autoValidate&&e&&(t=e.validate?e.validate(this._inputElementValue):e.checkValidity(),this.invalid=!t);this._handleValue(e)},_onIronInputValidate:function(e){this.invalid=this._inputElement.invalid},_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},updateAddons:function(e){for(var t,i=0;t=this._addons[i];i++)t.update(e)},_computeInputContentClass:function(e,t,i,n,o){var s="input-content";if(e)o&&(s+=" label-is-hidden"),n&&(s+=" is-invalid");else{var r=this.querySelector("label");t||o?(s+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?s+=" is-invalid":i&&(s+=" label-is-highlighted")):(r&&(this.$.labelAndInputContainer.style.position="relative"),n&&(s+=" is-invalid"))}return i&&(s+=" focused"),s},_computeUnderlineClass:function(e,t){var i="underline";return t?i+=" is-invalid":e&&(i+=" is-highlighted"),i},_computeAddOnContentClass:function(e,t){var i="add-on-content";return t?i+=" is-invalid":e&&(i+=" is-highlighted"),i}}),
2349
- /**
2350
- @license
2351
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2352
- This code may only be used under the BSD style license found at
2353
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2354
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2355
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2356
- part of the polymer project is also subject to an additional IP rights grant
2357
- found at http://polymer.github.io/PATENTS.txt
2358
- */
2359
- Ss({_template:ir`
2360
- <style>
2361
- :host {
2362
- display: inline-block;
2363
- visibility: hidden;
2364
-
2365
- color: var(--paper-input-container-invalid-color, var(--error-color));
2366
-
2367
- @apply --paper-font-caption;
2368
- @apply --paper-input-error;
2369
- position: absolute;
2370
- left:0;
2371
- right:0;
2372
- }
2373
-
2374
- :host([invalid]) {
2375
- visibility: visible;
2376
- }
2377
-
2378
- #a11yWrapper {
2379
- visibility: hidden;
2380
- }
2381
-
2382
- :host([invalid]) #a11yWrapper {
2383
- visibility: visible;
2384
- }
2385
- </style>
2386
-
2387
- <!--
2388
- If the paper-input-error element is directly referenced by an
2389
- \`aria-describedby\` attribute, such as when used as a paper-input add-on,
2390
- then applying \`visibility: hidden;\` to the paper-input-error element itself
2391
- does not hide the error.
2392
-
2393
- For more information, see:
2394
- https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description
2395
- -->
2396
- <div id="a11yWrapper">
2397
- <slot></slot>
2398
- </div>
2399
- `,is:"paper-input-error",behaviors:[Fa],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}});
2400
- /**
2401
- @license
2402
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2403
- This code may only be used under the BSD style license found at
2404
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2405
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2406
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2407
- part of the polymer project is also subject to an additional IP rights grant
2408
- found at http://polymer.github.io/PATENTS.txt
2409
- */
2410
- const La={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},detached:function(){}},Ba={NextLabelID:1,NextAddonID:1,NextInputID:1},Ha={properties:{label:{type:String},value:{notify:!0,type:String},disabled:{type:Boolean,value:!1},invalid:{type:Boolean,value:!1,notify:!0},allowedPattern:{type:String},type:{type:String},list:{type:String},pattern:{type:String},required:{type:Boolean,value:!1},errorMessage:{type:String},charCounter:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},autoValidate:{type:Boolean,value:!1},validator:{type:String},autocomplete:{type:String,value:"off"},autofocus:{type:Boolean,observer:"_autofocusChanged"},inputmode:{type:String},minlength:{type:Number},maxlength:{type:Number},min:{type:String},max:{type:String},step:{type:String},name:{type:String},placeholder:{type:String,value:""},readonly:{type:Boolean,value:!1},size:{type:Number},autocapitalize:{type:String,value:"none"},autocorrect:{type:String,value:"off"},autosave:{type:String},results:{type:Number},accept:{type:String},multiple:{type:Boolean},_ariaDescribedBy:{type:String,value:""},_ariaLabelledBy:{type:String,value:""},_inputId:{type:String,value:""}},listeners:{"addon-attached":"_onAddonAttached"},keyBindings:{"shift+tab:keydown":"_onShiftTabDown"},hostAttributes:{tabindex:0},get inputElement(){return this.$||(this.$={}),this.$.input||(this._generateInputId(),this.$.input=this.$$("#"+this._inputId)),this.$.input},get _focusableElement(){return this.inputElement},created:function(){this._typesThatHaveText=["date","datetime","datetime-local","month","time","week","file"]},attached:function(){this._updateAriaLabelledBy(),!or&&this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.inputElement.type)&&(this.alwaysFloatLabel=!0)},_appendStringWithSpace:function(e,t){return e=e?e+" "+t:t},_onAddonAttached:function(e){var t=is(e).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var i="paper-input-add-on-"+Ba.NextAddonID++;t.id=i,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,i)}},validate:function(){return this.inputElement.validate()},_focusBlurHandler:function(e){kr._focusBlurHandler.call(this,e),this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},_onShiftTabDown:function(e){var t=this.getAttribute("tabindex");this._shiftTabPressed=!0,this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",t),this._shiftTabPressed=!1}),1)},_handleAutoValidate:function(){this.autoValidate&&this.validate()},updateValueAndPreserveCaret:function(e){try{var t=this.inputElement.selectionStart;this.value=e,this.inputElement.selectionStart=t,this.inputElement.selectionEnd=t}catch(t){this.value=e}},_computeAlwaysFloatLabel:function(e,t){return t||e},_updateAriaLabelledBy:function(){var e,t=is(this.root).querySelector("label");t?(t.id?e=t.id:(e="paper-input-label-"+Ba.NextLabelID++,t.id=e),this._ariaLabelledBy=e):this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+Ba.NextInputID++)},_onChange:function(e){this.shadowRoot&&this.fire(e.type,{sourceEvent:e},{node:this,bubbles:e.bubbles,cancelable:e.cancelable})},_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var e=document.activeElement;e instanceof HTMLElement&&e!==document.body&&e!==document.documentElement||this._focusableElement.focus()}}},ja=[kr,qr,Ha];
2411
- /**
2412
- @license
2413
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2414
- This code may only be used under the BSD style license found at
2415
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2416
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2417
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2418
- part of the polymer project is also subject to an additional IP rights grant
2419
- found at http://polymer.github.io/PATENTS.txt
2420
- */
2421
- /**
2422
- @license
2423
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2424
- This code may only be used under the BSD style license found at
2425
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2426
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2427
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2428
- part of the polymer project is also subject to an additional IP rights grant
2429
- found at http://polymer.github.io/PATENTS.txt
2430
- */
2431
- Ss({is:"paper-input",_template:ir`
2432
- <style>
2433
- :host {
2434
- display: block;
2435
- }
2436
-
2437
- :host([focused]) {
2438
- outline: none;
2439
- }
2440
-
2441
- :host([hidden]) {
2442
- display: none !important;
2443
- }
2444
-
2445
- input {
2446
- /* Firefox sets a min-width on the input, which can cause layout issues */
2447
- min-width: 0;
2448
- }
2449
-
2450
- /* In 1.x, the <input> is distributed to paper-input-container, which styles it.
2451
- In 2.x the <iron-input> is distributed to paper-input-container, which styles
2452
- it, but in order for this to work correctly, we need to reset some
2453
- of the native input's properties to inherit (from the iron-input) */
2454
- iron-input > input {
2455
- @apply --paper-input-container-shared-input-style;
2456
- font-family: inherit;
2457
- font-weight: inherit;
2458
- font-size: inherit;
2459
- letter-spacing: inherit;
2460
- word-spacing: inherit;
2461
- line-height: inherit;
2462
- text-shadow: inherit;
2463
- color: inherit;
2464
- cursor: inherit;
2465
- }
2466
-
2467
- input:disabled {
2468
- @apply --paper-input-container-input-disabled;
2469
- }
2470
-
2471
- input::-webkit-outer-spin-button,
2472
- input::-webkit-inner-spin-button {
2473
- @apply --paper-input-container-input-webkit-spinner;
2474
- }
2475
-
2476
- input::-webkit-clear-button {
2477
- @apply --paper-input-container-input-webkit-clear;
2478
- }
2479
-
2480
- input::-webkit-calendar-picker-indicator {
2481
- @apply --paper-input-container-input-webkit-calendar-picker-indicator;
2482
- }
2483
-
2484
- input::-webkit-input-placeholder {
2485
- color: var(--paper-input-container-color, var(--secondary-text-color));
2486
- }
2487
-
2488
- input:-moz-placeholder {
2489
- color: var(--paper-input-container-color, var(--secondary-text-color));
2490
- }
2491
-
2492
- input::-moz-placeholder {
2493
- color: var(--paper-input-container-color, var(--secondary-text-color));
2494
- }
2495
-
2496
- input::-ms-clear {
2497
- @apply --paper-input-container-ms-clear;
2498
- }
2499
-
2500
- input::-ms-reveal {
2501
- @apply --paper-input-container-ms-reveal;
2502
- }
2503
-
2504
- input:-ms-input-placeholder {
2505
- color: var(--paper-input-container-color, var(--secondary-text-color));
2506
- }
2507
-
2508
- label {
2509
- pointer-events: none;
2510
- }
2511
- </style>
2512
-
2513
- <paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]">
2514
-
2515
- <slot name="prefix" slot="prefix"></slot>
2516
-
2517
- <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label">[[label]]</label>
2518
-
2519
- <!-- Need to bind maxlength so that the paper-input-char-counter works correctly -->
2520
- <iron-input bind-value="{{value}}" slot="input" class="input-element" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">
2521
- <input aria-labelledby$="[[_ariaLabelledBy]]" aria-describedby$="[[_ariaDescribedBy]]" disabled$="[[disabled]]" title$="[[title]]" type$="[[type]]" pattern$="[[pattern]]" required$="[[required]]" autocomplete$="[[autocomplete]]" autofocus$="[[autofocus]]" inputmode$="[[inputmode]]" minlength$="[[minlength]]" maxlength$="[[maxlength]]" min$="[[min]]" max$="[[max]]" step$="[[step]]" name$="[[name]]" placeholder$="[[placeholder]]" readonly$="[[readonly]]" list$="[[list]]" size$="[[size]]" autocapitalize$="[[autocapitalize]]" autocorrect$="[[autocorrect]]" on-change="_onChange" tabindex$="[[tabIndex]]" autosave$="[[autosave]]" results$="[[results]]" accept$="[[accept]]" multiple$="[[multiple]]" role$="[[inputRole]]" aria-haspopup$="[[inputAriaHaspopup]]">
2522
- </iron-input>
2523
-
2524
- <slot name="suffix" slot="suffix"></slot>
2525
-
2526
- <template is="dom-if" if="[[errorMessage]]">
2527
- <paper-input-error aria-live="assertive" slot="add-on">[[errorMessage]]</paper-input-error>
2528
- </template>
2529
-
2530
- <template is="dom-if" if="[[charCounter]]">
2531
- <paper-input-char-counter slot="add-on"></paper-input-char-counter>
2532
- </template>
2533
-
2534
- </paper-input-container>
2535
- `,behaviors:[ja,La],properties:{value:{type:String},inputRole:{type:String,value:void 0},inputAriaHaspopup:{type:String,value:void 0}},get _focusableElement(){return this.inputElement._inputElement},listeners:{"iron-input-ready":"_onIronInputReady"},_onIronInputReady:function(){this.$.nativeInput||(this.$.nativeInput=this.$$("input")),this.inputElement&&-1!==this._typesThatHaveText.indexOf(this.$.nativeInput.type)&&(this.alwaysFloatLabel=!0),this.inputElement.bindValue&&this.$.container._handleValueAndAutoValidate(this.inputElement)}});
2536
- /**
2537
- @license
2538
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2539
- This code may only be used under the BSD style license found at
2540
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2541
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2542
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2543
- part of the polymer project is also subject to an additional IP rights grant
2544
- found at http://polymer.github.io/PATENTS.txt
2545
- */
2546
- const qa=ir`
2547
- <style include="paper-material-styles">
2548
- /* Need to specify the same specificity as the styles imported from paper-material. */
2549
- :host {
2550
- @apply --layout-inline;
2551
- @apply --layout-center-center;
2552
- position: relative;
2553
- box-sizing: border-box;
2554
- min-width: 5.14em;
2555
- margin: 0 0.29em;
2556
- background: transparent;
2557
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
2558
- -webkit-tap-highlight-color: transparent;
2559
- font: inherit;
2560
- text-transform: uppercase;
2561
- outline-width: 0;
2562
- border-radius: 3px;
2563
- -moz-user-select: none;
2564
- -ms-user-select: none;
2565
- -webkit-user-select: none;
2566
- user-select: none;
2567
- cursor: pointer;
2568
- z-index: 0;
2569
- padding: 0.7em 0.57em;
2570
-
2571
- @apply --paper-font-common-base;
2572
- @apply --paper-button;
2573
- }
2574
-
2575
- :host([elevation="1"]) {
2576
- @apply --paper-material-elevation-1;
2577
- }
2578
-
2579
- :host([elevation="2"]) {
2580
- @apply --paper-material-elevation-2;
2581
- }
2582
-
2583
- :host([elevation="3"]) {
2584
- @apply --paper-material-elevation-3;
2585
- }
2586
-
2587
- :host([elevation="4"]) {
2588
- @apply --paper-material-elevation-4;
2589
- }
2590
-
2591
- :host([elevation="5"]) {
2592
- @apply --paper-material-elevation-5;
2593
- }
2594
-
2595
- :host([hidden]) {
2596
- display: none !important;
2597
- }
2598
-
2599
- :host([raised].keyboard-focus) {
2600
- font-weight: bold;
2601
- @apply --paper-button-raised-keyboard-focus;
2602
- }
2603
-
2604
- :host(:not([raised]).keyboard-focus) {
2605
- font-weight: bold;
2606
- @apply --paper-button-flat-keyboard-focus;
2607
- }
2608
-
2609
- :host([disabled]) {
2610
- background: none;
2611
- color: #a8a8a8;
2612
- cursor: auto;
2613
- pointer-events: none;
2614
-
2615
- @apply --paper-button-disabled;
2616
- }
2617
-
2618
- :host([disabled][raised]) {
2619
- background: #eaeaea;
2620
- }
2621
-
2622
-
2623
- :host([animated]) {
2624
- @apply --shadow-transition;
2625
- }
2626
-
2627
- paper-ripple {
2628
- color: var(--paper-button-ink-color);
2629
- }
2630
- </style>
2631
-
2632
- <slot></slot>`;qa.setAttribute("strip-whitespace",""),Ss({_template:qa,is:"paper-button",behaviors:[Xr],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?Jr._calculateElevation.apply(this):this._setElevation(0)}}),
2633
- /**
2634
- @license
2635
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2636
- This code may only be used under the BSD style license found at
2637
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2638
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2639
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2640
- part of the polymer project is also subject to an additional IP rights grant
2641
- found at http://polymer.github.io/PATENTS.txt
2642
- */
2643
- Ss({_template:ir`
2644
- <style>
2645
- :host {
2646
- position: fixed;
2647
- }
2648
-
2649
- #contentWrapper ::slotted(*) {
2650
- overflow: auto;
2651
- }
2652
-
2653
- #contentWrapper.animating ::slotted(*) {
2654
- overflow: hidden;
2655
- pointer-events: none;
2656
- }
2657
- </style>
2658
-
2659
- <div id="contentWrapper">
2660
- <slot id="content" name="dropdown-content"></slot>
2661
- </div>
2662
- `,is:"iron-dropdown",behaviors:[kr,qr,Ia,ia],properties:{horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},openAnimationConfig:{type:Object},closeAnimationConfig:{type:Object},focusTarget:{type:Object},noAnimations:{type:Boolean,value:!1},allowOutsideScroll:{type:Boolean,value:!1,observer:"_allowOutsideScrollChanged"}},listeners:{"neon-animation-finish":"_onNeonAnimationFinish"},observers:["_updateOverlayPosition(positionTarget, verticalAlign, horizontalAlign, verticalOffset, horizontalOffset)"],get containedElement(){for(var e=is(this.$.content).getDistributedNodes(),t=0,i=e.length;t<i;t++)if(e[t].nodeType===Node.ELEMENT_NODE)return e[t]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock"),this._readied=!0},attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},detached:function(){this.cancelAnimation()},_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),Pa._openedChanged.apply(this,arguments))},_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):Pa._renderOpened.apply(this,arguments)},_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):Pa._renderClosed.apply(this,arguments)},_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating"),this.opened?this._finishRenderOpened():this._finishRenderClosed()},_updateAnimationConfig:function(){for(var e=this.containedElement,t=[].concat(this.openAnimationConfig||[]).concat(this.closeAnimationConfig||[]),i=0;i<t.length;i++)t[i].node=e;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},_allowOutsideScrollChanged:function(e){this._readied&&(e?this.scrollAction&&"lock"!==this.scrollAction||(this.scrollAction="refit"):this.scrollAction="lock")},_applyFocus:function(){var e=this.focusTarget||this.containedElement;e&&this.opened&&!this.noAutoFocus?e.focus():Pa._applyFocus.apply(this,arguments)}});
2663
- /**
2664
- @license
2665
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2666
- This code may only be used under the BSD style license found at
2667
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2668
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2669
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2670
- part of the polymer project is also subject to an additional IP rights grant
2671
- found at http://polymer.github.io/PATENTS.txt
2672
- */
2673
- const Va={properties:{animationTiming:{type:Object,value:function(){return{duration:500,easing:"cubic-bezier(0.4, 0, 0.2, 1)",fill:"both"}}}},isNeonAnimation:!0,created:function(){document.body.animate||console.warn("No web animations detected. This element will not function without a web animations polyfill.")},timingFromConfig:function(e){if(e.timing)for(var t in e.timing)this.animationTiming[t]=e.timing[t];return this.animationTiming},setPrefixedProperty:function(e,t,i){for(var n,o={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[t],s=0;n=o[s];s++)e.style[n]=i;e.style[t]=i},complete:function(e){}};
2674
- /**
2675
- @license
2676
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2677
- This code may only be used under the BSD style license found at
2678
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2679
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2680
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2681
- part of the polymer project is also subject to an additional IP rights grant
2682
- found at http://polymer.github.io/PATENTS.txt
2683
- */Ss({is:"fade-in-animation",behaviors:[Va],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(e)),this._effect}}),
2684
- /**
2685
- @license
2686
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2687
- This code may only be used under the BSD style license found at
2688
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2689
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2690
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2691
- part of the polymer project is also subject to an additional IP rights grant
2692
- found at http://polymer.github.io/PATENTS.txt
2693
- */
2694
- Ss({is:"fade-out-animation",behaviors:[Va],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(e)),this._effect}}),
2695
- /**
2696
- @license
2697
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2698
- This code may only be used under the BSD style license found at
2699
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2700
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2701
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2702
- part of the polymer project is also subject to an additional IP rights grant
2703
- found at http://polymer.github.io/PATENTS.txt
2704
- */
2705
- Ss({is:"paper-menu-grow-height-animation",_template:null,behaviors:[Va],configure:function(e){var t=e.node,i=t.getBoundingClientRect().height;return this._effect=new KeyframeEffect(t,[{height:i/2+"px"},{height:i+"px"}],this.timingFromConfig(e)),this._effect}}),Ss({is:"paper-menu-grow-width-animation",_template:null,behaviors:[Va],configure:function(e){var t=e.node,i=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:i/2+"px"},{width:i+"px"}],this.timingFromConfig(e)),this._effect}}),Ss({is:"paper-menu-shrink-width-animation",_template:null,behaviors:[Va],configure:function(e){var t=e.node,i=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:i+"px"},{width:i-i/20+"px"}],this.timingFromConfig(e)),this._effect}}),Ss({is:"paper-menu-shrink-height-animation",_template:null,behaviors:[Va],configure:function(e){var t=e.node,i=t.getBoundingClientRect().height;return this.setPrefixedProperty(t,"transformOrigin","0 0"),this._effect=new KeyframeEffect(t,[{height:i+"px",transform:"translateY(0)"},{height:i/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(e)),this._effect}});
2706
- /**
2707
- @license
2708
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2709
- This code may only be used under the BSD style license found at
2710
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2711
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2712
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2713
- part of the polymer project is also subject to an additional IP rights grant
2714
- found at http://polymer.github.io/PATENTS.txt
2715
- */
2716
- var $a={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400};const Ua=Ss({_template:ir`
2717
- <style>
2718
- :host {
2719
- display: inline-block;
2720
- position: relative;
2721
- padding: 8px;
2722
- outline: none;
2723
-
2724
- @apply --paper-menu-button;
2725
- }
2726
-
2727
- :host([disabled]) {
2728
- cursor: auto;
2729
- color: var(--disabled-text-color);
2730
-
2731
- @apply --paper-menu-button-disabled;
2732
- }
2733
-
2734
- iron-dropdown {
2735
- @apply --paper-menu-button-dropdown;
2736
- }
2737
-
2738
- .dropdown-content {
2739
- @apply --shadow-elevation-2dp;
2740
-
2741
- position: relative;
2742
- border-radius: 2px;
2743
- background-color: var(--paper-menu-button-dropdown-background, var(--primary-background-color));
2744
-
2745
- @apply --paper-menu-button-content;
2746
- }
2747
-
2748
- :host([vertical-align="top"]) .dropdown-content {
2749
- margin-bottom: 20px;
2750
- margin-top: -10px;
2751
- top: 10px;
2752
- }
2753
-
2754
- :host([vertical-align="bottom"]) .dropdown-content {
2755
- bottom: 10px;
2756
- margin-bottom: -10px;
2757
- margin-top: 20px;
2758
- }
2759
-
2760
- #trigger {
2761
- cursor: pointer;
2762
- }
2763
- </style>
2764
-
2765
- <div id="trigger" on-tap="toggle">
2766
- <slot name="dropdown-trigger"></slot>
2767
- </div>
2768
-
2769
- <iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]">
2770
- <div slot="dropdown-content" class="dropdown-content">
2771
- <slot id="content" name="dropdown-content"></slot>
2772
- </div>
2773
- </iron-dropdown>
2774
- `,is:"paper-menu-button",behaviors:[qr,kr],properties:{opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},horizontalAlign:{type:String,value:"left",reflectToAttribute:!0},verticalAlign:{type:String,value:"top",reflectToAttribute:!0},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},noOverlap:{type:Boolean},noAnimations:{type:Boolean,value:!1},ignoreSelect:{type:Boolean,value:!1},closeOnActivate:{type:Boolean,value:!1},openAnimationConfig:{type:Object,value:function(){return[{name:"fade-in-animation",timing:{delay:100,duration:200}},{name:"paper-menu-grow-width-animation",timing:{delay:100,duration:150,easing:$a.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:$a.ANIMATION_CUBIC_BEZIER}}]}},closeAnimationConfig:{type:Object,value:function(){return[{name:"fade-out-animation",timing:{duration:150}},{name:"paper-menu-shrink-width-animation",timing:{delay:100,duration:50,easing:$a.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var e=is(this.$.content).getDistributedNodes(),t=0,i=e.length;t<i;t++)if(e[t].nodeType===Node.ELEMENT_NODE)return e[t]},toggle:function(){this.opened?this.close():this.open()},open:function(){this.disabled||this.$.dropdown.open()},close:function(){this.$.dropdown.close()},_onIronSelect:function(e){this.ignoreSelect||this.close()},_onIronActivate:function(e){this.closeOnActivate&&this.close()},_openedChanged:function(e,t){e?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):null!=t&&this.fire("paper-dropdown-close")},_disabledChanged:function(e){kr._disabledChanged.apply(this,arguments),e&&this.opened&&this.close()},__onIronOverlayCanceled:function(e){var t=e.detail,i=this.$.trigger;is(t).path.indexOf(i)>-1&&e.preventDefault()}});Object.keys($a).forEach((function(e){Ua[e]=$a[e]}));
2775
- /**
2776
- @license
2777
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
2778
- This code may only be used under the BSD style license found at
2779
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2780
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2781
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2782
- part of the polymer project is also subject to an additional IP rights grant
2783
- found at http://polymer.github.io/PATENTS.txt
2784
- */
2785
- const Ka=document.createElement("template");Ka.setAttribute("style","display: none;"),Ka.innerHTML='<iron-iconset-svg name="paper-dropdown-menu" size="24">\n<svg><defs>\n<g id="arrow-drop-down"><path d="M7 10l5 5 5-5z"></path></g>\n</defs></svg>\n</iron-iconset-svg>',document.head.appendChild(Ka.content);
2786
- /**
2787
- @license
2788
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
2789
- This code may only be used under the BSD style license found at
2790
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2791
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2792
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2793
- part of the polymer project is also subject to an additional IP rights grant
2794
- found at http://polymer.github.io/PATENTS.txt
2795
- */
2796
- const Ya=document.createElement("template");Ya.setAttribute("style","display: none;"),Ya.innerHTML='<dom-module id="paper-dropdown-menu-shared-styles">\n <template>\n <style>\n :host {\n display: inline-block;\n position: relative;\n text-align: left;\n\n /* NOTE(cdata): Both values are needed, since some phones require the\n * value to be `transparent`.\n */\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n -webkit-tap-highlight-color: transparent;\n\n --paper-input-container-input: {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: 100%;\n box-sizing: border-box;\n cursor: pointer;\n };\n\n @apply --paper-dropdown-menu;\n }\n\n /* paper-dropdown-menu and paper-dropdown-menu-light both delegate focus\n * to other internal elements which manage focus styling. */\n :host(:focus) {\n outline: none;\n }\n\n :host(:dir(rtl)) {\n text-align: right;\n\n @apply(--paper-dropdown-menu);\n }\n\n :host([disabled]) {\n @apply --paper-dropdown-menu-disabled;\n }\n\n :host([noink]) paper-ripple {\n display: none;\n }\n\n :host([no-label-float]) paper-ripple {\n top: 8px;\n }\n\n paper-ripple {\n top: 12px;\n left: 0px;\n bottom: 8px;\n right: 0px;\n\n @apply --paper-dropdown-menu-ripple;\n }\n\n paper-menu-button {\n display: block;\n padding: 0;\n\n @apply --paper-dropdown-menu-button;\n }\n\n paper-input {\n @apply --paper-dropdown-menu-input;\n }\n\n iron-icon {\n color: var(--disabled-text-color);\n\n @apply --paper-dropdown-menu-icon;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Ya.content);
2797
- /**
2798
- @license
2799
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2800
- This code may only be used under the BSD style license found at
2801
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2802
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2803
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2804
- part of the polymer project is also subject to an additional IP rights grant
2805
- found at http://polymer.github.io/PATENTS.txt
2806
- */
2807
- const Wa=hs(HTMLElement);Ss({_template:ir`
2808
- <style include="paper-dropdown-menu-shared-styles"></style>
2809
-
2810
- <paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]">
2811
- <!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via <content> -->
2812
- <div class="dropdown-trigger" slot="dropdown-trigger">
2813
- <paper-ripple></paper-ripple>
2814
- <!-- paper-input has type="text" for a11y, do not remove -->
2815
- <paper-input id="input" type="text" invalid="[[invalid]]" readonly disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off">
2816
- <!-- support hybrid mode: user might be using paper-input 1.x which distributes via <content> -->
2817
- <iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix slot="suffix"></iron-icon>
2818
- </paper-input>
2819
- </div>
2820
- <slot id="content" name="dropdown-content" slot="dropdown-content"></slot>
2821
- </paper-menu-button>
2822
- `,is:"paper-dropdown-menu",behaviors:[$r,kr,La,za],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom(e){const t=dt(this);return t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),Wa.prototype._attachDom.call(this,e)},focus(){this.$.input._focusableElement.focus()},attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},get contentElement(){for(var e=is(this.$.content).getDistributedNodes(),t=0,i=e.length;t<i;t++)if(e[t].nodeType===Node.ELEMENT_NODE)return e[t]},open:function(){this.$.menuButton.open()},close:function(){this.$.menuButton.close()},_onIronSelect:function(e){this._setSelectedItem(e.detail.item)},_onIronDeselect:function(e){this._setSelectedItem(null)},_onTap:function(e){ro(e)===this&&this.open()},_selectedItemChanged:function(e){var t="";t=e?e.label||e.getAttribute("label")||e.textContent.trim():"",this.value=t,this._setSelectedItemLabel(t)},_computeMenuVerticalOffset:function(e,t){return t||(e?-4:8)},_getValidity:function(e){return this.disabled||!this.required||this.required&&!!this.value},_openedChanged:function(){var e=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",e)}});
2823
- /**
2824
- @license
2825
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2826
- This code may only be used under the BSD style license found at
2827
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2828
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2829
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2830
- part of the polymer project is also subject to an additional IP rights grant
2831
- found at http://polymer.github.io/PATENTS.txt
2832
- */
2833
- class Ja{constructor(e){this.selection=[],this.selectCallback=e}get(){return this.multi?this.selection.slice():this.selection[0]}clear(e){this.selection.slice().forEach((function(t){(!e||e.indexOf(t)<0)&&this.setItemSelected(t,!1)}),this)}isSelected(e){return this.selection.indexOf(e)>=0}setItemSelected(e,t){if(null!=e&&t!==this.isSelected(e)){if(t)this.selection.push(e);else{var i=this.selection.indexOf(e);i>=0&&this.selection.splice(i,1)}this.selectCallback&&this.selectCallback(e,t)}}select(e){this.multi?this.toggle(e):this.get()!==e&&(this.setItemSelected(this.get(),!1),this.setItemSelected(e,!0))}toggle(e){this.setItemSelected(e,!this.isSelected(e))}}
2834
- /**
2835
- @license
2836
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2837
- This code may only be used under the BSD style license found at
2838
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2839
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2840
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2841
- part of the polymer project is also subject to an additional IP rights grant
2842
- found at http://polymer.github.io/PATENTS.txt
2843
- */const Xa={properties:{attrForSelected:{type:String,value:null},selected:{type:String,notify:!0},selectedItem:{type:Object,readOnly:!0,notify:!0},activateEvent:{type:String,value:"tap",observer:"_activateEventChanged"},selectable:String,selectedClass:{type:String,value:"iron-selected"},selectedAttribute:{type:String,value:null},fallbackSelection:{type:String,value:null},items:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}},_excludedLocalNames:{type:Object,value:function(){return{template:1,"dom-bind":1,"dom-if":1,"dom-repeat":1}}}},observers:["_updateAttrForSelected(attrForSelected)","_updateSelected(selected)","_checkFallback(fallbackSelection)"],created:function(){this._bindFilterItem=this._filterItem.bind(this),this._selection=new Ja(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._addListener(this.activateEvent)},detached:function(){this._observer&&is(this).unobserveNodes(this._observer),this._removeListener(this.activateEvent)},indexOf:function(e){return this.items?this.items.indexOf(e):-1},select:function(e){this.selected=e},selectPrevious:function(){var e=this.items.length,t=e-1;void 0!==this.selected&&(t=(Number(this._valueToIndex(this.selected))-1+e)%e),this.selected=this._indexToValue(t)},selectNext:function(){var e=0;void 0!==this.selected&&(e=(Number(this._valueToIndex(this.selected))+1)%this.items.length),this.selected=this._indexToValue(e)},selectIndex:function(e){this.select(this._indexToValue(e))},forceSynchronousItemUpdate:function(){this._observer&&"function"==typeof this._observer.flush?this._observer.flush():this._updateItems()},get _shouldUpdateSelection(){return null!=this.selected},_checkFallback:function(){this._updateSelected()},_addListener:function(e){this.listen(this,e,"_activateHandler")},_removeListener:function(e){this.unlisten(this,e,"_activateHandler")},_activateEventChanged:function(e,t){this._removeListener(t),this._addListener(e)},_updateItems:function(){var e=is(this).queryDistributedElements(this.selectable||"*");e=Array.prototype.filter.call(e,this._bindFilterItem),this._setItems(e)},_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},_updateSelected:function(){this._selectSelected(this.selected)},_selectSelected:function(e){if(this.items){var t=this._valueToItem(this.selected);t?this._selection.select(t):this._selection.clear(),this.fallbackSelection&&this.items.length&&void 0===this._selection.get()&&(this.selected=this.fallbackSelection)}},_filterItem:function(e){return!this._excludedLocalNames[e.localName]},_valueToItem:function(e){return null==e?null:this.items[this._valueToIndex(e)]},_valueToIndex:function(e){if(!this.attrForSelected)return Number(e);for(var t,i=0;t=this.items[i];i++)if(this._valueForItem(t)==e)return i},_indexToValue:function(e){if(!this.attrForSelected)return e;var t=this.items[e];return t?this._valueForItem(t):void 0},_valueForItem:function(e){if(!e)return null;if(!this.attrForSelected){var t=this.indexOf(e);return-1===t?null:t}var i=e[kt(this.attrForSelected)];return null!=i?i:e.getAttribute(this.attrForSelected)},_applySelection:function(e,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,e),this.selectedAttribute&&this.toggleAttribute(this.selectedAttribute,t,e),this._selectionChange(),this.fire("iron-"+(t?"select":"deselect"),{item:e})},_selectionChange:function(){this._setSelectedItem(this._selection.get())},_observeItems:function(e){return is(e).observeNodes((function(e){this._updateItems(),this._updateSelected(),this.fire("iron-items-changed",e,{bubbles:!1,cancelable:!1})}))},_activateHandler:function(e){for(var t=e.target,i=this.items;t&&t!=this;){var n=i.indexOf(t);if(n>=0){var o=this._indexToValue(n);return void this._itemActivate(o,t)}t=t.parentNode}},_itemActivate:function(e,t){this.fire("iron-activate",{selected:e,item:t},{cancelable:!0}).defaultPrevented||this.select(e)}},Za={properties:{multi:{type:Boolean,value:!1,observer:"multiChanged"},selectedValues:{type:Array,notify:!0,value:function(){return[]}},selectedItems:{type:Array,readOnly:!0,notify:!0,value:function(){return[]}}},observers:["_updateSelected(selectedValues.splices)"],select:function(e){this.multi?this._toggleSelected(e):this.selected=e},multiChanged:function(e){this._selection.multi=e,this._updateSelected()},get _shouldUpdateSelection(){return null!=this.selected||null!=this.selectedValues&&this.selectedValues.length},_updateAttrForSelected:function(){this.multi?this.selectedItems&&this.selectedItems.length>0&&(this.selectedValues=this.selectedItems.map((function(e){return this._indexToValue(this.indexOf(e))}),this).filter((function(e){return null!=e}),this)):Xa._updateAttrForSelected.apply(this)},_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},_selectMulti:function(e){e=e||[];var t=(this._valuesToItems(e)||[]).filter((function(e){return null!=e}));this._selection.clear(t);for(var i=0;i<t.length;i++)this._selection.setItemSelected(t[i],!0);this.fallbackSelection&&!this._selection.get().length&&(this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection))},_selectionChange:function(){var e=this._selection.get();this.multi?(this._setSelectedItems(e),this._setSelectedItem(e.length?e[0]:null)):null!=e?(this._setSelectedItems([e]),this._setSelectedItem(e)):(this._setSelectedItems([]),this._setSelectedItem(null))},_toggleSelected:function(e){var t=this.selectedValues.indexOf(e);t<0?this.push("selectedValues",e):this.splice("selectedValues",t,1)},_valuesToItems:function(e){return null==e?null:e.map((function(e){return this._valueToItem(e)}),this)}},Ga={properties:{focusedItem:{observer:"_focusedItemChanged",readOnly:!0,type:Object},attrForItemTitle:{type:String},disabled:{type:Boolean,value:!1,observer:"_disabledChanged"}},_MODIFIER_KEYS:["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"],_SEARCH_RESET_TIMEOUT_MS:1e3,_previousTabIndex:0,hostAttributes:{role:"menu"},observers:["_updateMultiselectable(multi)"],listeners:{focus:"_onFocus",keydown:"_onKeydown","iron-items-changed":"_onIronItemsChanged"},keyBindings:{up:"_onUpKey",down:"_onDownKey",esc:"_onEscKey","shift+tab:keydown":"_onShiftTabDown"},attached:function(){this._resetTabindices()},select:function(e){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var t=this._valueToItem(e);t&&t.hasAttribute("disabled")||(this._setFocusedItem(t),Za.select.apply(this,arguments))},_resetTabindices:function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach((function(t){t.setAttribute("tabindex",t===e?"0":"-1"),t.setAttribute("aria-selected",this._selection.isSelected(t))}),this)},_updateMultiselectable:function(e){e?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},_focusWithKeyboardEvent:function(e){if(-1===this._MODIFIER_KEYS.indexOf(e.key)){this.cancelDebouncer("_clearSearchText");for(var t,i=this._searchText||"",n=(i+=(e.key&&1==e.key.length?e.key:String.fromCharCode(e.keyCode)).toLocaleLowerCase()).length,o=0;t=this.items[o];o++)if(!t.hasAttribute("disabled")){var s=this.attrForItemTitle||"textContent",r=(t[s]||t.getAttribute(s)||"").trim();if(!(r.length<n)&&r.slice(0,n).toLocaleLowerCase()==i){this._setFocusedItem(t);break}}this._searchText=i,this.debounce("_clearSearchText",this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},_clearSearchText:function(){this._searchText=""},_focusPrevious:function(){for(var e=this.items.length,t=Number(this.indexOf(this.focusedItem)),i=1;i<e+1;i++){var n=this.items[(t-i+e)%e];if(!n.hasAttribute("disabled")){var o=is(n).getOwnerRoot()||document;if(this._setFocusedItem(n),is(o).activeElement==n)return}}},_focusNext:function(){for(var e=this.items.length,t=Number(this.indexOf(this.focusedItem)),i=1;i<e+1;i++){var n=this.items[(t+i)%e];if(!n.hasAttribute("disabled")){var o=is(n).getOwnerRoot()||document;if(this._setFocusedItem(n),is(o).activeElement==n)return}}},_applySelection:function(e,t){t?e.setAttribute("aria-selected","true"):e.setAttribute("aria-selected","false"),Xa._applySelection.apply(this,arguments)},_focusedItemChanged:function(e,t){t&&t.setAttribute("tabindex","-1"),!e||e.hasAttribute("disabled")||this.disabled||(e.setAttribute("tabindex","0"),e.focus())},_onIronItemsChanged:function(e){e.detail.addedNodes.length&&this._resetTabindices()},_onShiftTabDown:function(e){var t=this.getAttribute("tabindex");Ga._shiftTabPressed=!0,this._setFocusedItem(null),this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",t),Ga._shiftTabPressed=!1}),1)},_onFocus:function(e){if(!Ga._shiftTabPressed){var t=is(e).rootTarget;(t===this||void 0===t.tabIndex||this.isLightDescendant(t))&&(this._defaultFocusAsync=this.async((function(){var e=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null),e?this._setFocusedItem(e):this.items[0]&&this._focusNext()})))}},_onUpKey:function(e){this._focusPrevious(),e.detail.keyboardEvent.preventDefault()},_onDownKey:function(e){this._focusNext(),e.detail.keyboardEvent.preventDefault()},_onEscKey:function(e){var t=this.focusedItem;t&&t.blur()},_onKeydown:function(e){this.keyboardEventMatchesKeys(e,"up down esc")||this._focusWithKeyboardEvent(e),e.stopPropagation()},_activateHandler:function(e){Xa._activateHandler.call(this,e),e.stopPropagation()},_disabledChanged:function(e){e?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},_shiftTabPressed:!1},Qa=[[Xa,Za],qr,Ga];
2844
- /**
2845
- @license
2846
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2847
- This code may only be used under the BSD style license found at
2848
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2849
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2850
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2851
- part of the polymer project is also subject to an additional IP rights grant
2852
- found at http://polymer.github.io/PATENTS.txt
2853
- */
2854
- /**
2855
- @license
2856
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2857
- This code may only be used under the BSD style license found at
2858
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2859
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2860
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2861
- part of the polymer project is also subject to an additional IP rights grant
2862
- found at http://polymer.github.io/PATENTS.txt
2863
- */
2864
- Ss({_template:ir`
2865
- <style>
2866
- :host {
2867
- display: block;
2868
- padding: 8px 0;
2869
-
2870
- background: var(--paper-listbox-background-color, var(--primary-background-color));
2871
- color: var(--paper-listbox-color, var(--primary-text-color));
2872
-
2873
- @apply --paper-listbox;
2874
- }
2875
- </style>
2876
-
2877
- <slot></slot>
2878
- `,is:"paper-listbox",behaviors:[Qa],hostAttributes:{role:"listbox"}});
2879
- /**
2880
- @license
2881
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
2882
- This code may only be used under the BSD style license found at
2883
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
2884
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
2885
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
2886
- part of the polymer project is also subject to an additional IP rights grant
2887
- found at http://polymer.github.io/PATENTS.txt
2888
- */
2889
- const el={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},_getValidity:function(e){return this.disabled||!this.required||this.checked},_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},_checkedChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},tl={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(e){e&&this.ensureRipple(),this.hasRipple()&&(this._ripple.holdDown=e)},_createRipple:function(){var e=Wr._createRipple();return e.id="ink",e.setAttribute("center",""),e.classList.add("circle"),e}},il=[$r,kr,Wr,tl],nl=[il,[La,za,el],{_checkedChanged:function(){el._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){Wr._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}}],ol=ir`<style>
2890
- :host {
2891
- display: inline-block;
2892
- white-space: nowrap;
2893
- cursor: pointer;
2894
- --calculated-paper-checkbox-size: var(--paper-checkbox-size, 18px);
2895
- /* -1px is a sentinel for the default and is replaced in \`attached\`. */
2896
- --calculated-paper-checkbox-ink-size: var(--paper-checkbox-ink-size, -1px);
2897
- @apply --paper-font-common-base;
2898
- line-height: 0;
2899
- -webkit-tap-highlight-color: transparent;
2900
- }
2901
-
2902
- :host([hidden]) {
2903
- display: none !important;
2904
- }
2905
-
2906
- :host(:focus) {
2907
- outline: none;
2908
- }
2909
-
2910
- .hidden {
2911
- display: none;
2912
- }
2913
-
2914
- #checkboxContainer {
2915
- display: inline-block;
2916
- position: relative;
2917
- width: var(--calculated-paper-checkbox-size);
2918
- height: var(--calculated-paper-checkbox-size);
2919
- min-width: var(--calculated-paper-checkbox-size);
2920
- margin: var(--paper-checkbox-margin, initial);
2921
- vertical-align: var(--paper-checkbox-vertical-align, middle);
2922
- background-color: var(--paper-checkbox-unchecked-background-color, transparent);
2923
- }
2924
-
2925
- #ink {
2926
- position: absolute;
2927
-
2928
- /* Center the ripple in the checkbox by negative offsetting it by
2929
- * (inkWidth - rippleWidth) / 2 */
2930
- top: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
2931
- left: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
2932
- width: var(--calculated-paper-checkbox-ink-size);
2933
- height: var(--calculated-paper-checkbox-ink-size);
2934
- color: var(--paper-checkbox-unchecked-ink-color, var(--primary-text-color));
2935
- opacity: 0.6;
2936
- pointer-events: none;
2937
- }
2938
-
2939
- #ink:dir(rtl) {
2940
- right: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
2941
- left: auto;
2942
- }
2943
-
2944
- #ink[checked] {
2945
- color: var(--paper-checkbox-checked-ink-color, var(--primary-color));
2946
- }
2947
-
2948
- #checkbox {
2949
- position: relative;
2950
- box-sizing: border-box;
2951
- height: 100%;
2952
- border: solid 2px;
2953
- border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
2954
- border-radius: 2px;
2955
- pointer-events: none;
2956
- -webkit-transition: background-color 140ms, border-color 140ms;
2957
- transition: background-color 140ms, border-color 140ms;
2958
-
2959
- -webkit-transition-duration: var(--paper-checkbox-animation-duration, 140ms);
2960
- transition-duration: var(--paper-checkbox-animation-duration, 140ms);
2961
- }
2962
-
2963
- /* checkbox checked animations */
2964
- #checkbox.checked #checkmark {
2965
- -webkit-animation: checkmark-expand 140ms ease-out forwards;
2966
- animation: checkmark-expand 140ms ease-out forwards;
2967
-
2968
- -webkit-animation-duration: var(--paper-checkbox-animation-duration, 140ms);
2969
- animation-duration: var(--paper-checkbox-animation-duration, 140ms);
2970
- }
2971
-
2972
- @-webkit-keyframes checkmark-expand {
2973
- 0% {
2974
- -webkit-transform: scale(0, 0) rotate(45deg);
2975
- }
2976
- 100% {
2977
- -webkit-transform: scale(1, 1) rotate(45deg);
2978
- }
2979
- }
2980
-
2981
- @keyframes checkmark-expand {
2982
- 0% {
2983
- transform: scale(0, 0) rotate(45deg);
2984
- }
2985
- 100% {
2986
- transform: scale(1, 1) rotate(45deg);
2987
- }
2988
- }
2989
-
2990
- #checkbox.checked {
2991
- background-color: var(--paper-checkbox-checked-color, var(--primary-color));
2992
- border-color: var(--paper-checkbox-checked-color, var(--primary-color));
2993
- }
2994
-
2995
- #checkmark {
2996
- position: absolute;
2997
- width: 36%;
2998
- height: 70%;
2999
- border-style: solid;
3000
- border-top: none;
3001
- border-left: none;
3002
- border-right-width: calc(2/15 * var(--calculated-paper-checkbox-size));
3003
- border-bottom-width: calc(2/15 * var(--calculated-paper-checkbox-size));
3004
- border-color: var(--paper-checkbox-checkmark-color, white);
3005
- -webkit-transform-origin: 97% 86%;
3006
- transform-origin: 97% 86%;
3007
- box-sizing: content-box; /* protect against page-level box-sizing */
3008
- }
3009
-
3010
- #checkmark:dir(rtl) {
3011
- -webkit-transform-origin: 50% 14%;
3012
- transform-origin: 50% 14%;
3013
- }
3014
-
3015
- /* label */
3016
- #checkboxLabel {
3017
- position: relative;
3018
- display: inline-block;
3019
- vertical-align: middle;
3020
- padding-left: var(--paper-checkbox-label-spacing, 8px);
3021
- white-space: normal;
3022
- line-height: normal;
3023
- color: var(--paper-checkbox-label-color, var(--primary-text-color));
3024
- @apply --paper-checkbox-label;
3025
- }
3026
-
3027
- :host([checked]) #checkboxLabel {
3028
- color: var(--paper-checkbox-label-checked-color, var(--paper-checkbox-label-color, var(--primary-text-color)));
3029
- @apply --paper-checkbox-label-checked;
3030
- }
3031
-
3032
- #checkboxLabel:dir(rtl) {
3033
- padding-right: var(--paper-checkbox-label-spacing, 8px);
3034
- padding-left: 0;
3035
- }
3036
-
3037
- #checkboxLabel[hidden] {
3038
- display: none;
3039
- }
3040
-
3041
- /* disabled state */
3042
-
3043
- :host([disabled]) #checkbox {
3044
- opacity: 0.5;
3045
- border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
3046
- }
3047
-
3048
- :host([disabled][checked]) #checkbox {
3049
- background-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
3050
- opacity: 0.5;
3051
- }
3052
-
3053
- :host([disabled]) #checkboxLabel {
3054
- opacity: 0.65;
3055
- }
3056
-
3057
- /* invalid state */
3058
- #checkbox.invalid:not(.checked) {
3059
- border-color: var(--paper-checkbox-error-color, var(--error-color));
3060
- }
3061
- </style>
3062
-
3063
- <div id="checkboxContainer">
3064
- <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]]">
3065
- <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div>
3066
- </div>
3067
- </div>
3068
-
3069
- <div id="checkboxLabel"><slot></slot></div>`;ol.setAttribute("strip-whitespace",""),Ss({_template:ol,is:"paper-checkbox",behaviors:[nl],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){To(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",i=e.match(/[A-Za-z]+$/);null!==i&&(t=i[0]);var n=parseFloat(e),o=8/3*n;"px"===t&&(o=Math.floor(o))%2!=n%2&&o++,this.updateStyles({"--paper-checkbox-ink-size":o+t})}}))},_computeCheckboxClass:function(e,t){var i="";return e&&(i+="checked "),t&&(i+="invalid"),i},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,tl._createRipple.call(this)}});export{ms as A,yr as B,rn as D,Uo as F,ao as G,kr as I,ia as N,Ss as P,Ys as T,Xr as a,$r as b,Wr as c,is as d,Qa as e,Gr as f,Ga as g,ir as h,Xa as i,To as j,Ft as k,ln as l,or as m,Kn as n,ta as o,Va as p,za as q,to as r,ja as s,La as t,Se as u,Ko as v,il as w,Ze as x,Dt as y,zt as z};