@teipublisher/pb-components 2.11.1 → 2.12.1

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.
@@ -0,0 +1,1463 @@
1
+ import{h as e,l as t,a as i,I as n,b as o,u as a,d as s,P as r,B as l,i as p,m as h,j as d,n as c,g as u,k as f,L as m,w as g,o as y}from"./paper-checkbox-c9177e35.js";
2
+ /**
3
+ @license
4
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
5
+ This code may only be used under the BSD style license found at
6
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
7
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
8
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
9
+ part of the polymer project is also subject to an additional IP rights grant
10
+ found at http://polymer.github.io/PATENTS.txt
11
+ */const b=e`
12
+ <custom-style>
13
+ <style is="custom-style">
14
+ html {
15
+
16
+ --shadow-transition: {
17
+ transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
18
+ };
19
+
20
+ --shadow-none: {
21
+ box-shadow: none;
22
+ };
23
+
24
+ /* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */
25
+
26
+ --shadow-elevation-2dp: {
27
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
28
+ 0 1px 5px 0 rgba(0, 0, 0, 0.12),
29
+ 0 3px 1px -2px rgba(0, 0, 0, 0.2);
30
+ };
31
+
32
+ --shadow-elevation-3dp: {
33
+ box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
34
+ 0 1px 8px 0 rgba(0, 0, 0, 0.12),
35
+ 0 3px 3px -2px rgba(0, 0, 0, 0.4);
36
+ };
37
+
38
+ --shadow-elevation-4dp: {
39
+ box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
40
+ 0 1px 10px 0 rgba(0, 0, 0, 0.12),
41
+ 0 2px 4px -1px rgba(0, 0, 0, 0.4);
42
+ };
43
+
44
+ --shadow-elevation-6dp: {
45
+ box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
46
+ 0 1px 18px 0 rgba(0, 0, 0, 0.12),
47
+ 0 3px 5px -1px rgba(0, 0, 0, 0.4);
48
+ };
49
+
50
+ --shadow-elevation-8dp: {
51
+ box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14),
52
+ 0 3px 14px 2px rgba(0, 0, 0, 0.12),
53
+ 0 5px 5px -3px rgba(0, 0, 0, 0.4);
54
+ };
55
+
56
+ --shadow-elevation-12dp: {
57
+ box-shadow: 0 12px 16px 1px rgba(0, 0, 0, 0.14),
58
+ 0 4px 22px 3px rgba(0, 0, 0, 0.12),
59
+ 0 6px 7px -4px rgba(0, 0, 0, 0.4);
60
+ };
61
+
62
+ --shadow-elevation-16dp: {
63
+ box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14),
64
+ 0 6px 30px 5px rgba(0, 0, 0, 0.12),
65
+ 0 8px 10px -5px rgba(0, 0, 0, 0.4);
66
+ };
67
+
68
+ --shadow-elevation-24dp: {
69
+ box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14),
70
+ 0 9px 46px 8px rgba(0, 0, 0, 0.12),
71
+ 0 11px 15px -7px rgba(0, 0, 0, 0.4);
72
+ };
73
+ }
74
+ </style>
75
+ </custom-style>`;b.setAttribute("style","display: none;"),document.head.appendChild(b.content);
76
+ /**
77
+ @license
78
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
79
+ This code may only be used under the BSD style license found at
80
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
81
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
82
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
83
+ part of the polymer project is also subject to an additional IP rights grant
84
+ found at http://polymer.github.io/PATENTS.txt
85
+ */
86
+ const _=e`
87
+ <dom-module id="paper-material-styles">
88
+ <template>
89
+ <style>
90
+ html {
91
+ --paper-material: {
92
+ display: block;
93
+ position: relative;
94
+ };
95
+ --paper-material-elevation-1: {
96
+ @apply --shadow-elevation-2dp;
97
+ };
98
+ --paper-material-elevation-2: {
99
+ @apply --shadow-elevation-4dp;
100
+ };
101
+ --paper-material-elevation-3: {
102
+ @apply --shadow-elevation-6dp;
103
+ };
104
+ --paper-material-elevation-4: {
105
+ @apply --shadow-elevation-8dp;
106
+ };
107
+ --paper-material-elevation-5: {
108
+ @apply --shadow-elevation-16dp;
109
+ };
110
+ }
111
+ .paper-material {
112
+ @apply --paper-material;
113
+ }
114
+ .paper-material[elevation="1"] {
115
+ @apply --paper-material-elevation-1;
116
+ }
117
+ .paper-material[elevation="2"] {
118
+ @apply --paper-material-elevation-2;
119
+ }
120
+ .paper-material[elevation="3"] {
121
+ @apply --paper-material-elevation-3;
122
+ }
123
+ .paper-material[elevation="4"] {
124
+ @apply --paper-material-elevation-4;
125
+ }
126
+ .paper-material[elevation="5"] {
127
+ @apply --paper-material-elevation-5;
128
+ }
129
+
130
+ /* Duplicate the styles because of https://github.com/webcomponents/shadycss/issues/193 */
131
+ :host {
132
+ --paper-material: {
133
+ display: block;
134
+ position: relative;
135
+ };
136
+ --paper-material-elevation-1: {
137
+ @apply --shadow-elevation-2dp;
138
+ };
139
+ --paper-material-elevation-2: {
140
+ @apply --shadow-elevation-4dp;
141
+ };
142
+ --paper-material-elevation-3: {
143
+ @apply --shadow-elevation-6dp;
144
+ };
145
+ --paper-material-elevation-4: {
146
+ @apply --shadow-elevation-8dp;
147
+ };
148
+ --paper-material-elevation-5: {
149
+ @apply --shadow-elevation-16dp;
150
+ };
151
+ }
152
+ :host(.paper-material) {
153
+ @apply --paper-material;
154
+ }
155
+ :host(.paper-material[elevation="1"]) {
156
+ @apply --paper-material-elevation-1;
157
+ }
158
+ :host(.paper-material[elevation="2"]) {
159
+ @apply --paper-material-elevation-2;
160
+ }
161
+ :host(.paper-material[elevation="3"]) {
162
+ @apply --paper-material-elevation-3;
163
+ }
164
+ :host(.paper-material[elevation="4"]) {
165
+ @apply --paper-material-elevation-4;
166
+ }
167
+ :host(.paper-material[elevation="5"]) {
168
+ @apply --paper-material-elevation-5;
169
+ }
170
+ </style>
171
+ </template>
172
+ </dom-module>`;_.setAttribute("style","display: none;"),document.head.appendChild(_.content);
173
+ /**
174
+ @license
175
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
176
+ This code may only be used under the BSD style license found at
177
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
178
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
179
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
180
+ part of the polymer project is also subject to an additional IP rights grant
181
+ found at http://polymer.github.io/PATENTS.txt
182
+ */
183
+ const v={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){t._spaceKeyDownHandler.call(this,e),this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},_spaceKeyUpHandler:function(e){t._spaceKeyUpHandler.call(this,e),this.hasRipple()&&this._ripple.uiUpAction()}},x=[i,n,o,v];
184
+ /**
185
+ @license
186
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
187
+ This code may only be used under the BSD style license found at
188
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
189
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
190
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
191
+ part of the polymer project is also subject to an additional IP rights grant
192
+ found at http://polymer.github.io/PATENTS.txt
193
+ */
194
+ var w=new Set;const C={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):(w.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():a||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=s(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):(w.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?w.delete(this):w.add(this)}};
195
+ /**
196
+ @license
197
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
198
+ This code may only be used under the BSD style license found at
199
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
200
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
201
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
202
+ part of the polymer project is also subject to an additional IP rights grant
203
+ found at http://polymer.github.io/PATENTS.txt
204
+ */
205
+ /**
206
+ @license
207
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
208
+ This code may only be used under the BSD style license found at
209
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
210
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
211
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
212
+ part of the polymer project is also subject to an additional IP rights grant
213
+ found at http://polymer.github.io/PATENTS.txt
214
+ */
215
+ if(r({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),a=Object.create(null);for(var s in o)a[s.toLowerCase()]=o[s];if(o=a,n&&!o.accept&&(o.accept=n),Object.keys(o).forEach((function(e){/[A-Z]/.test(e)&&l._error("Headers must be lower case, got",e),t.setRequestHeader(e,o[e])}),this),i){t.timeout=e.timeout;var r=e.handleAs;!e.jsonPrefix&&r||(r="text"),t.responseType=t._responseType=r,e.jsonPrefix&&(t._jsonPrefix=e.jsonPrefix)}t.withCredentials=!!e.withCredentials;var p=this._encodeBodyObject(e.body,o["content-type"]);return t.send(p),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)}}),
216
+ /**
217
+ @license
218
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
219
+ This code may only be used under the BSD style license found at
220
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
221
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
222
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
223
+ part of the polymer project is also subject to an additional IP rights grant
224
+ found at http://polymer.github.io/PATENTS.txt
225
+ */
226
+ r({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&&l._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)}
227
+ /**
228
+ @license
229
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
230
+ This code may only be used under the BSD style license found at
231
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
232
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
233
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
234
+ part of the polymer project is also subject to an additional IP rights grant
235
+ found at http://polymer.github.io/PATENTS.txt
236
+ */const A=e`<custom-style>
237
+ <style is="custom-style">
238
+ html {
239
+
240
+ /* Shared Styles */
241
+ --paper-font-common-base: {
242
+ font-family: 'Roboto', 'Noto', sans-serif;
243
+ -webkit-font-smoothing: antialiased;
244
+ };
245
+
246
+ --paper-font-common-code: {
247
+ font-family: 'Roboto Mono', 'Consolas', 'Menlo', monospace;
248
+ -webkit-font-smoothing: antialiased;
249
+ };
250
+
251
+ --paper-font-common-expensive-kerning: {
252
+ text-rendering: optimizeLegibility;
253
+ };
254
+
255
+ --paper-font-common-nowrap: {
256
+ white-space: nowrap;
257
+ overflow: hidden;
258
+ text-overflow: ellipsis;
259
+ };
260
+
261
+ /* Material Font Styles */
262
+
263
+ --paper-font-display4: {
264
+ @apply --paper-font-common-base;
265
+ @apply --paper-font-common-nowrap;
266
+
267
+ font-size: 112px;
268
+ font-weight: 300;
269
+ letter-spacing: -.044em;
270
+ line-height: 120px;
271
+ };
272
+
273
+ --paper-font-display3: {
274
+ @apply --paper-font-common-base;
275
+ @apply --paper-font-common-nowrap;
276
+
277
+ font-size: 56px;
278
+ font-weight: 400;
279
+ letter-spacing: -.026em;
280
+ line-height: 60px;
281
+ };
282
+
283
+ --paper-font-display2: {
284
+ @apply --paper-font-common-base;
285
+
286
+ font-size: 45px;
287
+ font-weight: 400;
288
+ letter-spacing: -.018em;
289
+ line-height: 48px;
290
+ };
291
+
292
+ --paper-font-display1: {
293
+ @apply --paper-font-common-base;
294
+
295
+ font-size: 34px;
296
+ font-weight: 400;
297
+ letter-spacing: -.01em;
298
+ line-height: 40px;
299
+ };
300
+
301
+ --paper-font-headline: {
302
+ @apply --paper-font-common-base;
303
+
304
+ font-size: 24px;
305
+ font-weight: 400;
306
+ letter-spacing: -.012em;
307
+ line-height: 32px;
308
+ };
309
+
310
+ --paper-font-title: {
311
+ @apply --paper-font-common-base;
312
+ @apply --paper-font-common-nowrap;
313
+
314
+ font-size: 20px;
315
+ font-weight: 500;
316
+ line-height: 28px;
317
+ };
318
+
319
+ --paper-font-subhead: {
320
+ @apply --paper-font-common-base;
321
+
322
+ font-size: 16px;
323
+ font-weight: 400;
324
+ line-height: 24px;
325
+ };
326
+
327
+ --paper-font-body2: {
328
+ @apply --paper-font-common-base;
329
+
330
+ font-size: 14px;
331
+ font-weight: 500;
332
+ line-height: 24px;
333
+ };
334
+
335
+ --paper-font-body1: {
336
+ @apply --paper-font-common-base;
337
+
338
+ font-size: 14px;
339
+ font-weight: 400;
340
+ line-height: 20px;
341
+ };
342
+
343
+ --paper-font-caption: {
344
+ @apply --paper-font-common-base;
345
+ @apply --paper-font-common-nowrap;
346
+
347
+ font-size: 12px;
348
+ font-weight: 400;
349
+ letter-spacing: 0.011em;
350
+ line-height: 20px;
351
+ };
352
+
353
+ --paper-font-menu: {
354
+ @apply --paper-font-common-base;
355
+ @apply --paper-font-common-nowrap;
356
+
357
+ font-size: 13px;
358
+ font-weight: 500;
359
+ line-height: 24px;
360
+ };
361
+
362
+ --paper-font-button: {
363
+ @apply --paper-font-common-base;
364
+ @apply --paper-font-common-nowrap;
365
+
366
+ font-size: 14px;
367
+ font-weight: 500;
368
+ letter-spacing: 0.018em;
369
+ line-height: 24px;
370
+ text-transform: uppercase;
371
+ };
372
+
373
+ --paper-font-code2: {
374
+ @apply --paper-font-common-code;
375
+
376
+ font-size: 14px;
377
+ font-weight: 700;
378
+ line-height: 20px;
379
+ };
380
+
381
+ --paper-font-code1: {
382
+ @apply --paper-font-common-code;
383
+
384
+ font-size: 14px;
385
+ font-weight: 500;
386
+ line-height: 20px;
387
+ };
388
+
389
+ }
390
+
391
+ </style>
392
+ </custom-style>`;A.setAttribute("style","display: none;"),document.head.appendChild(A.content);
393
+ /**
394
+ @license
395
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
396
+ This code may only be used under the BSD style license found at
397
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
398
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
399
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
400
+ part of the polymer project is also subject to an additional IP rights grant
401
+ found at http://polymer.github.io/PATENTS.txt
402
+ */
403
+ const O=document.createElement("template");O.setAttribute("style","display: none;"),O.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(O.content);
404
+ /**
405
+ @license
406
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
407
+ This code may only be used under the BSD style license found at
408
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
409
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
410
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
411
+ part of the polymer project is also subject to an additional IP rights grant
412
+ found at http://polymer.github.io/PATENTS.txt
413
+ */
414
+ const S={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,a=0;o=n[a];a++)if(o.animatable)o.animatable._getAnimationConfigRecursive(o.type||e,t,i);else if(o.id){var s=t[o.id];s?(s.isClone||(t[o.id]=this._cloneConfig(s),s=t[o.id]),this._copyProperties(s,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}},E=[S,{_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,a=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:a,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={}}}];
415
+ /**
416
+ @license
417
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
418
+ This code may only be used under the BSD style license found at
419
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
420
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
421
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
422
+ part of the polymer project is also subject to an additional IP rights grant
423
+ found at http://polymer.github.io/PATENTS.txt
424
+ */
425
+ /**
426
+ @license
427
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
428
+ This code may only be used under the BSD style license found at
429
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
430
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
431
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
432
+ part of the polymer project is also subject to an additional IP rights grant
433
+ found at http://polymer.github.io/PATENTS.txt
434
+ */
435
+ let I=void 0;const T=()=>{if(void 0!==I)return I;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),I=Math.abs(e.offsetWidth-100)>1?e.offsetWidth-e.clientWidth:0,document.body.removeChild(e),I},k={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=s(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,a,s;this.expandSizingTargetForScrollbars&&(n=this.sizingTarget.offsetWidth,o=this.sizingTarget.offsetHeight,a=this.sizingTarget.clientWidth,s=this.sizingTarget.clientHeight);var r=this._fitInfo.margin,l={width:e.width+r.left+r.right,height:e.height+r.top+r.bottom},p=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,l,e,t,i),h=p.left+r.left,d=p.top+r.top,c=Math.min(i.right-r.right,h+e.width),u=Math.min(i.bottom-r.bottom,d+e.height);h=Math.max(i.left+r.left,Math.min(h,c-this._fitInfo.sizedBy.minWidth)),d=Math.max(i.top+r.top,Math.min(d,u-this._fitInfo.sizedBy.minHeight));const f=Math.max(c-h,this._fitInfo.sizedBy.minWidth),m=Math.max(u-d,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=f+"px",this.sizingTarget.style.maxHeight=m+"px";const g=h-e.left,y=d-e.top;if(this.style.left=g+"px",this.style.top=y+"px",this.expandSizingTargetForScrollbars){const e=this.sizingTarget.offsetHeight,t=e-this.sizingTarget.clientHeight-(o-s);if(t>0){const n=i.height-r.top-r.bottom,o=Math.min(n,m+t);this.sizingTarget.style.maxHeight=o+"px";const a=this.sizingTarget.offsetHeight,s=a-e;let l;"top"===p.verticalAlign?l=y:"middle"===p.verticalAlign?l=y-s/2:"bottom"===p.verticalAlign&&(l=y-s),l=Math.max(i.top+r.top,Math.min(l,i.bottom-r.bottom-a)),this.style.top=l+"px"}const l=this.sizingTarget.offsetWidth,h=l-this.sizingTarget.clientWidth-(n-a);if(h>0){const e=T(),t=i.width-r.left-r.right,n=Math.min(t,f+h-e);this.sizingTarget.style.maxWidth=n+"px";const o=this.sizingTarget.offsetWidth+e,a=o-l;let s;"left"===p.horizontalAlign?s=g:"center"===p.horizontalAlign?s=g-a/2:"right"===p.horizontalAlign&&(s=g-a),s=Math.max(i.left+r.left,Math.min(s,i.right-r.right-o)),this.style.left=s+"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 a=this._fitInfo,s=this.__getNormalizedRect(this.fitInto),r="Width"===o?s.width:s.height,l=t===n,p=l?r-e[n]:e[i],h=a.margin[l?i:n],d="offset"+o,c=this[d]-this.sizingTarget[d];this.sizingTarget.style["max"+o]=r-h-p-c+"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,a){var s,r=[{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,p=r.length;l<p;l++){var h={};for(var d in r[l])h[d]=r[l][d];r.push(h)}r[0].top=r[1].top+=o.height,r[2].top=r[3].top-=o.height,r[4].left=r[6].left+=o.width,r[5].left=r[7].left-=o.width}t="auto"===t?null:t,(e="auto"===e?null:e)&&"center"!==e||(r.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}),r.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||(r.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)}),r.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&&r.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<r.length;l++){var c=r[l],u=c.verticalAlign===t,f=c.horizontalAlign===e;if(!this.dynamicAlign&&!this.noOverlap&&u&&f){s=c;break}var m=(!t||u)&&(!e||f);if(this.dynamicAlign||m){if(c.offscreenArea=this.__getOffscreenArea(c,i,a),0===c.offscreenArea&&m){s=c;break}s=s||c;var g=c.offscreenArea-s.offscreenArea;(g<0||0===g&&(u||f))&&(s=c)}}return s}};
436
+ /**
437
+ @license
438
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
439
+ This code may only be used under the BSD style license found at
440
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
441
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
442
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
443
+ part of the polymer project is also subject to an additional IP rights grant
444
+ found at http://polymer.github.io/PATENTS.txt
445
+ */
446
+ var z=Element.prototype,R=z.matches||z.matchesSelector||z.mozMatchesSelector||z.msMatchesSelector||z.oMatchesSelector||z.webkitMatchesSelector;class F{getTabbableNodes(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t}isFocusable(e){return R.call(e,"input, select, textarea, button, object")?R.call(e,":not([disabled])"):R.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")}isTabbable(e){return this.isFocusable(e)&&R.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),a=o>0;o>=0&&t.push(i),n="content"===i.localName||"slot"===i.localName?s(i).getDistributedNodes():s(i.root||i).children;for(var r=0;r<n.length;r++)a=this._collectTabbableNodes(n[r],t)||a;return a}_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 N=new F;
447
+ /**
448
+ @license
449
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
450
+ This code may only be used under the BSD style license found at
451
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
452
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
453
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
454
+ part of the polymer project is also subject to an additional IP rights grant
455
+ found at http://polymer.github.io/PATENTS.txt
456
+ */r({_template:e`
457
+ <style>
458
+ :host {
459
+ position: fixed;
460
+ top: 0;
461
+ left: 0;
462
+ width: 100%;
463
+ height: 100%;
464
+ background-color: var(--iron-overlay-backdrop-background-color, #000);
465
+ opacity: 0;
466
+ transition: opacity 0.2s;
467
+ pointer-events: none;
468
+ @apply --iron-overlay-backdrop;
469
+ }
470
+
471
+ :host(.opened) {
472
+ opacity: var(--iron-overlay-backdrop-opacity, 0.6);
473
+ pointer-events: auto;
474
+ @apply --iron-overlay-backdrop-opened;
475
+ }
476
+ </style>
477
+
478
+ <slot></slot>
479
+ `,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&&s(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||s(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)))}});
480
+ /**
481
+ @license
482
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
483
+ This code may only be used under the BSD style license found at
484
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
485
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
486
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
487
+ part of the polymer project is also subject to an additional IP rights grant
488
+ found at http://polymer.github.io/PATENTS.txt
489
+ */
490
+ class B{constructor(){this._overlays=[],this._minimumZ=101,this._backdropElement=null,p(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&&s(e.root).activeElement;)e=s(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),a=this._getZ(e);if(n&&this._shouldBeBehindOverlay(e,n)){this._applyOverlayZ(n,o),i--;var s=this._overlays[i-1];o=Math.max(this._getZ(s),this._minimumZ)}a<=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=s(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&&(h.keyboardEventMatchesKeys(e,"esc")?t._onCaptureEsc(e):h.keyboardEventMatchesKeys(e,"tab")&&t._onCaptureTab(e))}_shouldBeBehindOverlay(e,t){return!e.alwaysOnTop&&t.alwaysOnTop}}const L=new B;
491
+ /**
492
+ @license
493
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
494
+ This code may only be used under the BSD style license found at
495
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
496
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
497
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
498
+ part of the polymer project is also subject to an additional IP rights grant
499
+ found at http://polymer.github.io/PATENTS.txt
500
+ */var M,P,V={pageX:0,pageY:0},D=null,j=[],q=["wheel","mousewheel","DOMMouseScroll","touchstart","touchmove"];function $(e){W.indexOf(e)>=0||(0===W.length&&U(),W.push(e),P=W[W.length-1])}function H(e){var t=W.indexOf(e);-1!==t&&(W.splice(t,1),P=W[W.length-1],0===W.length&&Z())}const W=[];function K(e){if(e.cancelable&&Y(e)&&e.preventDefault(),e.targetTouches){var t=e.targetTouches[0];V.pageX=t.pageX,V.pageY=t.pageY}}function U(){M=M||K.bind(void 0);for(var e=0,t=q.length;e<t;e++)document.addEventListener(q[e],M,{capture:!0,passive:!1})}function Z(){for(var e=0,t=q.length;e<t;e++)document.removeEventListener(q[e],M,{capture:!0,passive:!1})}function Y(e){var t=s(e).rootTarget;if("touchmove"!==e.type&&D!==t&&(D=t,j=X(s(e).path)),!j.length)return!0;if("touchstart"===e.type)return!1;var i=J(e);return!G(j,i.deltaX,i.deltaY)}function X(e){for(var t=[],i=e.indexOf(P),n=0;n<=i;n++)if(e[n].nodeType===Node.ELEMENT_NODE){var o=e[n],a=o.style;"scroll"!==a.overflow&&"auto"!==a.overflow&&(a=window.getComputedStyle(o)),"scroll"!==a.overflow&&"auto"!==a.overflow||t.push(o)}return t}function G(e,t,i){if(t||i)for(var n=Math.abs(i)>=Math.abs(t),o=0;o<e.length;o++){var a=e[o];if(n?i<0?a.scrollTop>0:a.scrollTop<a.scrollHeight-a.clientHeight:t<0?a.scrollLeft>0:a.scrollLeft<a.scrollWidth-a.clientWidth)return a}}function J(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=V.pageX-i.pageX,t.deltaY=V.pageY-i.pageY}return t}
501
+ /**
502
+ @license
503
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
504
+ This code may only be used under the BSD style license found at
505
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
506
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
507
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
508
+ part of the polymer project is also subject to an additional IP rights grant
509
+ found at http://polymer.github.io/PATENTS.txt
510
+ */const Q={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:L},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){return this._focusedChild||s(this).querySelector("[autofocus]")||this},get _focusableNodes(){return N.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=s(this).observeNodes(this._onNodesChange)},detached:function(){for(var e in this._observer&&s(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||te(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=s(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 a=this._manager.deepActiveElement;o=a===i||a===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(),$(this)),this.__addScrollListeners()):(H(this),this.__removeScrollListeners())},__addScrollListeners:function(){if(!this.__rootNodes){if(this.__rootNodes=[],a)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||s(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)}},ee=e=>e.assignedSlot||e.parentNode||e.host,te=(e,t)=>{for(let i=t;i;i=ee(i))if(i===e)return!0;return!1},ie=[k,C,Q],ne={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=s(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}}}};
511
+ /**
512
+ @license
513
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
514
+ This code may only be used under the BSD style license found at
515
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
516
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
517
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
518
+ part of the polymer project is also subject to an additional IP rights grant
519
+ found at http://polymer.github.io/PATENTS.txt
520
+ */
521
+ r({_template:e`
522
+ <style include="paper-dialog-shared-styles"></style>
523
+ <slot></slot>
524
+ `,is:"paper-dialog",behaviors:[[ie,ne],E],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()}}),
525
+ /**
526
+ @license
527
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
528
+ This code may only be used under the BSD style license found at
529
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
530
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
531
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
532
+ part of the polymer project is also subject to an additional IP rights grant
533
+ found at http://polymer.github.io/PATENTS.txt
534
+ */
535
+ r({_template:e`
536
+ <style>
537
+
538
+ :host {
539
+ display: block;
540
+ @apply --layout-relative;
541
+ }
542
+
543
+ :host(.is-scrolled:not(:first-child))::before {
544
+ content: '';
545
+ position: absolute;
546
+ top: 0;
547
+ left: 0;
548
+ right: 0;
549
+ height: 1px;
550
+ background: var(--divider-color);
551
+ }
552
+
553
+ :host(.can-scroll:not(.scrolled-to-bottom):not(:last-child))::after {
554
+ content: '';
555
+ position: absolute;
556
+ bottom: 0;
557
+ left: 0;
558
+ right: 0;
559
+ height: 1px;
560
+ background: var(--divider-color);
561
+ }
562
+
563
+ .scrollable {
564
+ padding: 0 24px;
565
+
566
+ @apply --layout-scroll;
567
+ @apply --paper-dialog-scrollable;
568
+ }
569
+
570
+ .fit {
571
+ @apply --layout-fit;
572
+ }
573
+ </style>
574
+
575
+ <div id="scrollable" class="scrollable" on-scroll="updateScrollState">
576
+ <slot></slot>
577
+ </div>
578
+ `,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(ne)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});
579
+ /**
580
+ @license
581
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
582
+ This code may only be used under the BSD style license found at
583
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
584
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
585
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
586
+ part of the polymer project is also subject to an additional IP rights grant
587
+ found at http://polymer.github.io/PATENTS.txt
588
+ */
589
+ const oe=r({_template:e`
590
+ <style>
591
+ :host {
592
+ display: inline-block;
593
+ position: fixed;
594
+ clip: rect(0px,0px,0px,0px);
595
+ }
596
+ </style>
597
+ <div aria-live$="[[mode]]">[[_text]]</div>
598
+ `,is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){oe.instance||(oe.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)}});oe.instance=null,oe.requestAvailability=function(){oe.instance||(oe.instance=document.createElement("iron-a11y-announcer")),document.body?document.body.appendChild(oe.instance):document.addEventListener("load",(function(){document.body.appendChild(oe.instance)}))},
599
+ /**
600
+ @license
601
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
602
+ This code may only be used under the BSD style license found at
603
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
604
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
605
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
606
+ part of the polymer project is also subject to an additional IP rights grant
607
+ found at http://polymer.github.io/PATENTS.txt
608
+ */
609
+ r({_template:e`
610
+ <style>
611
+ :host {
612
+ display: inline-block;
613
+ }
614
+ </style>
615
+ <slot id="content"></slot>
616
+ `,is:"iron-input",behaviors:[d],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(){oe.requestAvailability(),this._previousValidInput="",this._patternAlreadyChecked=!1},attached:function(){this._observer=s(this).observeNodes(function(e){this._initSlottedInput()}.bind(this))},detached:function(){this._observer&&(s(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=d.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}});
617
+ /**
618
+ @license
619
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
620
+ This code may only be used under the BSD style license found at
621
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
622
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
623
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
624
+ part of the polymer project is also subject to an additional IP rights grant
625
+ found at http://polymer.github.io/PATENTS.txt
626
+ */
627
+ const ae={attached:function(){this.fire("addon-attached")},update:function(e){}};
628
+ /**
629
+ @license
630
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
631
+ This code may only be used under the BSD style license found at
632
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
633
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
634
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
635
+ part of the polymer project is also subject to an additional IP rights grant
636
+ found at http://polymer.github.io/PATENTS.txt
637
+ */r({_template:e`
638
+ <style>
639
+ :host {
640
+ display: inline-block;
641
+ float: right;
642
+
643
+ @apply --paper-font-caption;
644
+ @apply --paper-input-char-counter;
645
+ }
646
+
647
+ :host([hidden]) {
648
+ display: none !important;
649
+ }
650
+
651
+ :host(:dir(rtl)) {
652
+ float: left;
653
+ }
654
+ </style>
655
+
656
+ <span>[[_charCounterStr]]</span>
657
+ `,is:"paper-input-char-counter",behaviors:[ae],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}}});
658
+ /**
659
+ @license
660
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
661
+ This code may only be used under the BSD style license found at
662
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
663
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
664
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
665
+ part of the polymer project is also subject to an additional IP rights grant
666
+ found at http://polymer.github.io/PATENTS.txt
667
+ */
668
+ const se=e`
669
+ <custom-style>
670
+ <style is="custom-style">
671
+ html {
672
+ --paper-input-container-shared-input-style: {
673
+ position: relative; /* to make a stacking context */
674
+ outline: none;
675
+ box-shadow: none;
676
+ padding: 0;
677
+ margin: 0;
678
+ width: 100%;
679
+ max-width: 100%;
680
+ background: transparent;
681
+ border: none;
682
+ color: var(--paper-input-container-input-color, var(--primary-text-color));
683
+ -webkit-appearance: none;
684
+ text-align: inherit;
685
+ vertical-align: var(--paper-input-container-input-align, bottom);
686
+
687
+ @apply --paper-font-subhead;
688
+ };
689
+ }
690
+ </style>
691
+ </custom-style>
692
+ `;se.setAttribute("style","display: none;"),document.head.appendChild(se.content),r({_template:e`
693
+ <style>
694
+ :host {
695
+ display: block;
696
+ padding: 8px 0;
697
+ @apply --paper-input-container;
698
+ }
699
+
700
+ :host([inline]) {
701
+ display: inline-block;
702
+ }
703
+
704
+ :host([disabled]) {
705
+ pointer-events: none;
706
+ opacity: 0.33;
707
+
708
+ @apply --paper-input-container-disabled;
709
+ }
710
+
711
+ :host([hidden]) {
712
+ display: none !important;
713
+ }
714
+
715
+ [hidden] {
716
+ display: none !important;
717
+ }
718
+
719
+ .floated-label-placeholder {
720
+ @apply --paper-font-caption;
721
+ }
722
+
723
+ .underline {
724
+ height: 2px;
725
+ position: relative;
726
+ }
727
+
728
+ .focused-line {
729
+ @apply --layout-fit;
730
+ border-bottom: 2px solid var(--paper-input-container-focus-color, var(--primary-color));
731
+
732
+ -webkit-transform-origin: center center;
733
+ transform-origin: center center;
734
+ -webkit-transform: scale3d(0,1,1);
735
+ transform: scale3d(0,1,1);
736
+
737
+ @apply --paper-input-container-underline-focus;
738
+ }
739
+
740
+ .underline.is-highlighted .focused-line {
741
+ -webkit-transform: none;
742
+ transform: none;
743
+ -webkit-transition: -webkit-transform 0.25s;
744
+ transition: transform 0.25s;
745
+
746
+ @apply --paper-transition-easing;
747
+ }
748
+
749
+ .underline.is-invalid .focused-line {
750
+ border-color: var(--paper-input-container-invalid-color, var(--error-color));
751
+ -webkit-transform: none;
752
+ transform: none;
753
+ -webkit-transition: -webkit-transform 0.25s;
754
+ transition: transform 0.25s;
755
+
756
+ @apply --paper-transition-easing;
757
+ }
758
+
759
+ .unfocused-line {
760
+ @apply --layout-fit;
761
+ border-bottom: 1px solid var(--paper-input-container-color, var(--secondary-text-color));
762
+ @apply --paper-input-container-underline;
763
+ }
764
+
765
+ :host([disabled]) .unfocused-line {
766
+ border-bottom: 1px dashed;
767
+ border-color: var(--paper-input-container-color, var(--secondary-text-color));
768
+ @apply --paper-input-container-underline-disabled;
769
+ }
770
+
771
+ .input-wrapper {
772
+ @apply --layout-horizontal;
773
+ @apply --layout-center;
774
+ position: relative;
775
+ }
776
+
777
+ .input-content {
778
+ @apply --layout-flex-auto;
779
+ @apply --layout-relative;
780
+ max-width: 100%;
781
+ }
782
+
783
+ .input-content ::slotted(label),
784
+ .input-content ::slotted(.paper-input-label) {
785
+ position: absolute;
786
+ top: 0;
787
+ left: 0;
788
+ width: 100%;
789
+ font: inherit;
790
+ color: var(--paper-input-container-color, var(--secondary-text-color));
791
+ -webkit-transition: -webkit-transform 0.25s, width 0.25s;
792
+ transition: transform 0.25s, width 0.25s;
793
+ -webkit-transform-origin: left top;
794
+ transform-origin: left top;
795
+ /* Fix for safari not focusing 0-height date/time inputs with -webkit-apperance: none; */
796
+ min-height: 1px;
797
+
798
+ @apply --paper-font-common-nowrap;
799
+ @apply --paper-font-subhead;
800
+ @apply --paper-input-container-label;
801
+ @apply --paper-transition-easing;
802
+ }
803
+
804
+
805
+ .input-content ::slotted(label):before,
806
+ .input-content ::slotted(.paper-input-label):before {
807
+ @apply --paper-input-container-label-before;
808
+ }
809
+
810
+ .input-content ::slotted(label):after,
811
+ .input-content ::slotted(.paper-input-label):after {
812
+ @apply --paper-input-container-label-after;
813
+ }
814
+
815
+ .input-content.label-is-floating ::slotted(label),
816
+ .input-content.label-is-floating ::slotted(.paper-input-label) {
817
+ -webkit-transform: translateY(-75%) scale(0.75);
818
+ transform: translateY(-75%) scale(0.75);
819
+
820
+ /* Since we scale to 75/100 of the size, we actually have 100/75 of the
821
+ original space now available */
822
+ width: 133%;
823
+
824
+ @apply --paper-input-container-label-floating;
825
+ }
826
+
827
+ :host(:dir(rtl)) .input-content.label-is-floating ::slotted(label),
828
+ :host(:dir(rtl)) .input-content.label-is-floating ::slotted(.paper-input-label) {
829
+ right: 0;
830
+ left: auto;
831
+ -webkit-transform-origin: right top;
832
+ transform-origin: right top;
833
+ }
834
+
835
+ .input-content.label-is-highlighted ::slotted(label),
836
+ .input-content.label-is-highlighted ::slotted(.paper-input-label) {
837
+ color: var(--paper-input-container-focus-color, var(--primary-color));
838
+
839
+ @apply --paper-input-container-label-focus;
840
+ }
841
+
842
+ .input-content.is-invalid ::slotted(label),
843
+ .input-content.is-invalid ::slotted(.paper-input-label) {
844
+ color: var(--paper-input-container-invalid-color, var(--error-color));
845
+ }
846
+
847
+ .input-content.label-is-hidden ::slotted(label),
848
+ .input-content.label-is-hidden ::slotted(.paper-input-label) {
849
+ visibility: hidden;
850
+ }
851
+
852
+ .input-content ::slotted(input),
853
+ .input-content ::slotted(iron-input),
854
+ .input-content ::slotted(textarea),
855
+ .input-content ::slotted(iron-autogrow-textarea),
856
+ .input-content ::slotted(.paper-input-input) {
857
+ @apply --paper-input-container-shared-input-style;
858
+ /* The apply shim doesn't apply the nested color custom property,
859
+ so we have to re-apply it here. */
860
+ color: var(--paper-input-container-input-color, var(--primary-text-color));
861
+ @apply --paper-input-container-input;
862
+ }
863
+
864
+ .input-content ::slotted(input)::-webkit-outer-spin-button,
865
+ .input-content ::slotted(input)::-webkit-inner-spin-button {
866
+ @apply --paper-input-container-input-webkit-spinner;
867
+ }
868
+
869
+ .input-content.focused ::slotted(input),
870
+ .input-content.focused ::slotted(iron-input),
871
+ .input-content.focused ::slotted(textarea),
872
+ .input-content.focused ::slotted(iron-autogrow-textarea),
873
+ .input-content.focused ::slotted(.paper-input-input) {
874
+ @apply --paper-input-container-input-focus;
875
+ }
876
+
877
+ .input-content.is-invalid ::slotted(input),
878
+ .input-content.is-invalid ::slotted(iron-input),
879
+ .input-content.is-invalid ::slotted(textarea),
880
+ .input-content.is-invalid ::slotted(iron-autogrow-textarea),
881
+ .input-content.is-invalid ::slotted(.paper-input-input) {
882
+ @apply --paper-input-container-input-invalid;
883
+ }
884
+
885
+ .prefix ::slotted(*) {
886
+ display: inline-block;
887
+ @apply --paper-font-subhead;
888
+ @apply --layout-flex-none;
889
+ @apply --paper-input-prefix;
890
+ }
891
+
892
+ .suffix ::slotted(*) {
893
+ display: inline-block;
894
+ @apply --paper-font-subhead;
895
+ @apply --layout-flex-none;
896
+
897
+ @apply --paper-input-suffix;
898
+ }
899
+
900
+ /* Firefox sets a min-width on the input, which can cause layout issues */
901
+ .input-content ::slotted(input) {
902
+ min-width: 0;
903
+ }
904
+
905
+ .input-content ::slotted(textarea) {
906
+ resize: none;
907
+ }
908
+
909
+ .add-on-content {
910
+ position: relative;
911
+ }
912
+
913
+ .add-on-content.is-invalid ::slotted(*) {
914
+ color: var(--paper-input-container-invalid-color, var(--error-color));
915
+ }
916
+
917
+ .add-on-content.is-highlighted ::slotted(*) {
918
+ color: var(--paper-input-container-focus-color, var(--primary-color));
919
+ }
920
+ </style>
921
+
922
+ <div class="floated-label-placeholder" aria-hidden="true" hidden="[[noLabelFloat]]">&nbsp;</div>
923
+
924
+ <div class="input-wrapper">
925
+ <span class="prefix"><slot name="prefix"></slot></span>
926
+
927
+ <div class$="[[_computeInputContentClass(noLabelFloat,alwaysFloatLabel,focused,invalid,_inputHasContent)]]" id="labelAndInputContainer">
928
+ <slot name="label"></slot>
929
+ <slot name="input"></slot>
930
+ </div>
931
+
932
+ <span class="suffix"><slot name="suffix"></slot></span>
933
+ </div>
934
+
935
+ <div class$="[[_computeUnderlineClass(focused,invalid)]]">
936
+ <div class="unfocused-line"></div>
937
+ <div class="focused-line"></div>
938
+ </div>
939
+
940
+ <div class$="[[_computeAddOnContentClass(focused,invalid)]]">
941
+ <slot name="add-on"></slot>
942
+ </div>
943
+ `,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 c(this.attrForValue)},get _inputElement(){return s(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 a="input-content";if(e)o&&(a+=" label-is-hidden"),n&&(a+=" is-invalid");else{var s=this.querySelector("label");t||o?(a+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",n?a+=" is-invalid":i&&(a+=" label-is-highlighted")):(s&&(this.$.labelAndInputContainer.style.position="relative"),n&&(a+=" is-invalid"))}return i&&(a+=" focused"),a},_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}}),
944
+ /**
945
+ @license
946
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
947
+ This code may only be used under the BSD style license found at
948
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
949
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
950
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
951
+ part of the polymer project is also subject to an additional IP rights grant
952
+ found at http://polymer.github.io/PATENTS.txt
953
+ */
954
+ r({_template:e`
955
+ <style>
956
+ :host {
957
+ display: inline-block;
958
+ visibility: hidden;
959
+
960
+ color: var(--paper-input-container-invalid-color, var(--error-color));
961
+
962
+ @apply --paper-font-caption;
963
+ @apply --paper-input-error;
964
+ position: absolute;
965
+ left:0;
966
+ right:0;
967
+ }
968
+
969
+ :host([invalid]) {
970
+ visibility: visible;
971
+ }
972
+
973
+ #a11yWrapper {
974
+ visibility: hidden;
975
+ }
976
+
977
+ :host([invalid]) #a11yWrapper {
978
+ visibility: visible;
979
+ }
980
+ </style>
981
+
982
+ <!--
983
+ If the paper-input-error element is directly referenced by an
984
+ \`aria-describedby\` attribute, such as when used as a paper-input add-on,
985
+ then applying \`visibility: hidden;\` to the paper-input-error element itself
986
+ does not hide the error.
987
+
988
+ For more information, see:
989
+ https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description
990
+ -->
991
+ <div id="a11yWrapper">
992
+ <slot></slot>
993
+ </div>
994
+ `,is:"paper-input-error",behaviors:[ae],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(e){this._setInvalid(e.invalid)}});
995
+ /**
996
+ @license
997
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
998
+ This code may only be used under the BSD style license found at
999
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1000
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1001
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1002
+ part of the polymer project is also subject to an additional IP rights grant
1003
+ found at http://polymer.github.io/PATENTS.txt
1004
+ */
1005
+ const re={NextLabelID:1,NextAddonID:1,NextInputID:1},le={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(),!u&&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=s(e).rootTarget;if(t.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t.id);else{var i="paper-input-add-on-"+re.NextAddonID++;t.id=i,this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,i)}},validate:function(){return this.inputElement.validate()},_focusBlurHandler:function(e){n._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=s(this.root).querySelector("label");t?(t.id?e=t.id:(e="paper-input-label-"+re.NextLabelID++,t.id=e),this._ariaLabelledBy=e):this._ariaLabelledBy=""},_generateInputId:function(){this._inputId&&""!==this._inputId||(this._inputId="input-"+re.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()}}},pe=[n,h,le];
1006
+ /**
1007
+ @license
1008
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1009
+ This code may only be used under the BSD style license found at
1010
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1011
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1012
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1013
+ part of the polymer project is also subject to an additional IP rights grant
1014
+ found at http://polymer.github.io/PATENTS.txt
1015
+ */
1016
+ r({is:"paper-input",_template:e`
1017
+ <style>
1018
+ :host {
1019
+ display: block;
1020
+ }
1021
+
1022
+ :host([focused]) {
1023
+ outline: none;
1024
+ }
1025
+
1026
+ :host([hidden]) {
1027
+ display: none !important;
1028
+ }
1029
+
1030
+ input {
1031
+ /* Firefox sets a min-width on the input, which can cause layout issues */
1032
+ min-width: 0;
1033
+ }
1034
+
1035
+ /* In 1.x, the <input> is distributed to paper-input-container, which styles it.
1036
+ In 2.x the <iron-input> is distributed to paper-input-container, which styles
1037
+ it, but in order for this to work correctly, we need to reset some
1038
+ of the native input's properties to inherit (from the iron-input) */
1039
+ iron-input > input {
1040
+ @apply --paper-input-container-shared-input-style;
1041
+ font-family: inherit;
1042
+ font-weight: inherit;
1043
+ font-size: inherit;
1044
+ letter-spacing: inherit;
1045
+ word-spacing: inherit;
1046
+ line-height: inherit;
1047
+ text-shadow: inherit;
1048
+ color: inherit;
1049
+ cursor: inherit;
1050
+ }
1051
+
1052
+ input:disabled {
1053
+ @apply --paper-input-container-input-disabled;
1054
+ }
1055
+
1056
+ input::-webkit-outer-spin-button,
1057
+ input::-webkit-inner-spin-button {
1058
+ @apply --paper-input-container-input-webkit-spinner;
1059
+ }
1060
+
1061
+ input::-webkit-clear-button {
1062
+ @apply --paper-input-container-input-webkit-clear;
1063
+ }
1064
+
1065
+ input::-webkit-calendar-picker-indicator {
1066
+ @apply --paper-input-container-input-webkit-calendar-picker-indicator;
1067
+ }
1068
+
1069
+ input::-webkit-input-placeholder {
1070
+ color: var(--paper-input-container-color, var(--secondary-text-color));
1071
+ }
1072
+
1073
+ input:-moz-placeholder {
1074
+ color: var(--paper-input-container-color, var(--secondary-text-color));
1075
+ }
1076
+
1077
+ input::-moz-placeholder {
1078
+ color: var(--paper-input-container-color, var(--secondary-text-color));
1079
+ }
1080
+
1081
+ input::-ms-clear {
1082
+ @apply --paper-input-container-ms-clear;
1083
+ }
1084
+
1085
+ input::-ms-reveal {
1086
+ @apply --paper-input-container-ms-reveal;
1087
+ }
1088
+
1089
+ input:-ms-input-placeholder {
1090
+ color: var(--paper-input-container-color, var(--secondary-text-color));
1091
+ }
1092
+
1093
+ label {
1094
+ pointer-events: none;
1095
+ }
1096
+ </style>
1097
+
1098
+ <paper-input-container id="container" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" auto-validate$="[[autoValidate]]" disabled$="[[disabled]]" invalid="[[invalid]]">
1099
+
1100
+ <slot name="prefix" slot="prefix"></slot>
1101
+
1102
+ <label hidden$="[[!label]]" aria-hidden="true" for$="[[_inputId]]" slot="label">[[label]]</label>
1103
+
1104
+ <!-- Need to bind maxlength so that the paper-input-char-counter works correctly -->
1105
+ <iron-input bind-value="{{value}}" slot="input" class="input-element" id$="[[_inputId]]" maxlength$="[[maxlength]]" allowed-pattern="[[allowedPattern]]" invalid="{{invalid}}" validator="[[validator]]">
1106
+ <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]]">
1107
+ </iron-input>
1108
+
1109
+ <slot name="suffix" slot="suffix"></slot>
1110
+
1111
+ <template is="dom-if" if="[[errorMessage]]">
1112
+ <paper-input-error aria-live="assertive" slot="add-on">[[errorMessage]]</paper-input-error>
1113
+ </template>
1114
+
1115
+ <template is="dom-if" if="[[charCounter]]">
1116
+ <paper-input-char-counter slot="add-on"></paper-input-char-counter>
1117
+ </template>
1118
+
1119
+ </paper-input-container>
1120
+ `,behaviors:[pe,f],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)}});
1121
+ /**
1122
+ @license
1123
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1124
+ This code may only be used under the BSD style license found at
1125
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1126
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1127
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1128
+ part of the polymer project is also subject to an additional IP rights grant
1129
+ found at http://polymer.github.io/PATENTS.txt
1130
+ */
1131
+ const he=e`
1132
+ <style include="paper-material-styles">
1133
+ /* Need to specify the same specificity as the styles imported from paper-material. */
1134
+ :host {
1135
+ @apply --layout-inline;
1136
+ @apply --layout-center-center;
1137
+ position: relative;
1138
+ box-sizing: border-box;
1139
+ min-width: 5.14em;
1140
+ margin: 0 0.29em;
1141
+ background: transparent;
1142
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1143
+ -webkit-tap-highlight-color: transparent;
1144
+ font: inherit;
1145
+ text-transform: uppercase;
1146
+ outline-width: 0;
1147
+ border-radius: 3px;
1148
+ -moz-user-select: none;
1149
+ -ms-user-select: none;
1150
+ -webkit-user-select: none;
1151
+ user-select: none;
1152
+ cursor: pointer;
1153
+ z-index: 0;
1154
+ padding: 0.7em 0.57em;
1155
+
1156
+ @apply --paper-font-common-base;
1157
+ @apply --paper-button;
1158
+ }
1159
+
1160
+ :host([elevation="1"]) {
1161
+ @apply --paper-material-elevation-1;
1162
+ }
1163
+
1164
+ :host([elevation="2"]) {
1165
+ @apply --paper-material-elevation-2;
1166
+ }
1167
+
1168
+ :host([elevation="3"]) {
1169
+ @apply --paper-material-elevation-3;
1170
+ }
1171
+
1172
+ :host([elevation="4"]) {
1173
+ @apply --paper-material-elevation-4;
1174
+ }
1175
+
1176
+ :host([elevation="5"]) {
1177
+ @apply --paper-material-elevation-5;
1178
+ }
1179
+
1180
+ :host([hidden]) {
1181
+ display: none !important;
1182
+ }
1183
+
1184
+ :host([raised].keyboard-focus) {
1185
+ font-weight: bold;
1186
+ @apply --paper-button-raised-keyboard-focus;
1187
+ }
1188
+
1189
+ :host(:not([raised]).keyboard-focus) {
1190
+ font-weight: bold;
1191
+ @apply --paper-button-flat-keyboard-focus;
1192
+ }
1193
+
1194
+ :host([disabled]) {
1195
+ background: none;
1196
+ color: #a8a8a8;
1197
+ cursor: auto;
1198
+ pointer-events: none;
1199
+
1200
+ @apply --paper-button-disabled;
1201
+ }
1202
+
1203
+ :host([disabled][raised]) {
1204
+ background: #eaeaea;
1205
+ }
1206
+
1207
+
1208
+ :host([animated]) {
1209
+ @apply --shadow-transition;
1210
+ }
1211
+
1212
+ paper-ripple {
1213
+ color: var(--paper-button-ink-color);
1214
+ }
1215
+ </style>
1216
+
1217
+ <slot></slot>`;he.setAttribute("strip-whitespace",""),r({_template:he,is:"paper-button",behaviors:[x],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?v._calculateElevation.apply(this):this._setElevation(0)}}),
1218
+ /**
1219
+ @license
1220
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1221
+ This code may only be used under the BSD style license found at
1222
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1223
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1224
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1225
+ part of the polymer project is also subject to an additional IP rights grant
1226
+ found at http://polymer.github.io/PATENTS.txt
1227
+ */
1228
+ r({_template:e`
1229
+ <style>
1230
+ :host {
1231
+ position: fixed;
1232
+ }
1233
+
1234
+ #contentWrapper ::slotted(*) {
1235
+ overflow: auto;
1236
+ }
1237
+
1238
+ #contentWrapper.animating ::slotted(*) {
1239
+ overflow: hidden;
1240
+ pointer-events: none;
1241
+ }
1242
+ </style>
1243
+
1244
+ <div id="contentWrapper">
1245
+ <slot id="content" name="dropdown-content"></slot>
1246
+ </div>
1247
+ `,is:"iron-dropdown",behaviors:[n,h,ie,E],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=s(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(),Q._openedChanged.apply(this,arguments))},_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):Q._renderOpened.apply(this,arguments)},_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):Q._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():Q._applyFocus.apply(this,arguments)}});
1248
+ /**
1249
+ @license
1250
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1251
+ This code may only be used under the BSD style license found at
1252
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1253
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1254
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1255
+ part of the polymer project is also subject to an additional IP rights grant
1256
+ found at http://polymer.github.io/PATENTS.txt
1257
+ */
1258
+ const de={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],a=0;n=o[a];a++)e.style[n]=i;e.style[t]=i},complete:function(e){}};
1259
+ /**
1260
+ @license
1261
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1262
+ This code may only be used under the BSD style license found at
1263
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1264
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1265
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1266
+ part of the polymer project is also subject to an additional IP rights grant
1267
+ found at http://polymer.github.io/PATENTS.txt
1268
+ */r({is:"fade-in-animation",behaviors:[de],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(e)),this._effect}}),
1269
+ /**
1270
+ @license
1271
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1272
+ This code may only be used under the BSD style license found at
1273
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1274
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1275
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1276
+ part of the polymer project is also subject to an additional IP rights grant
1277
+ found at http://polymer.github.io/PATENTS.txt
1278
+ */
1279
+ r({is:"fade-out-animation",behaviors:[de],configure:function(e){var t=e.node;return this._effect=new KeyframeEffect(t,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(e)),this._effect}}),
1280
+ /**
1281
+ @license
1282
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1283
+ This code may only be used under the BSD style license found at
1284
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1285
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1286
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1287
+ part of the polymer project is also subject to an additional IP rights grant
1288
+ found at http://polymer.github.io/PATENTS.txt
1289
+ */
1290
+ r({is:"paper-menu-grow-height-animation",_template:null,behaviors:[de],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}}),r({is:"paper-menu-grow-width-animation",_template:null,behaviors:[de],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}}),r({is:"paper-menu-shrink-width-animation",_template:null,behaviors:[de],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}}),r({is:"paper-menu-shrink-height-animation",_template:null,behaviors:[de],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}});
1291
+ /**
1292
+ @license
1293
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1294
+ This code may only be used under the BSD style license found at
1295
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1296
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1297
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1298
+ part of the polymer project is also subject to an additional IP rights grant
1299
+ found at http://polymer.github.io/PATENTS.txt
1300
+ */
1301
+ var ce={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400};const ue=r({_template:e`
1302
+ <style>
1303
+ :host {
1304
+ display: inline-block;
1305
+ position: relative;
1306
+ padding: 8px;
1307
+ outline: none;
1308
+
1309
+ @apply --paper-menu-button;
1310
+ }
1311
+
1312
+ :host([disabled]) {
1313
+ cursor: auto;
1314
+ color: var(--disabled-text-color);
1315
+
1316
+ @apply --paper-menu-button-disabled;
1317
+ }
1318
+
1319
+ iron-dropdown {
1320
+ @apply --paper-menu-button-dropdown;
1321
+ }
1322
+
1323
+ .dropdown-content {
1324
+ @apply --shadow-elevation-2dp;
1325
+
1326
+ position: relative;
1327
+ border-radius: 2px;
1328
+ background-color: var(--paper-menu-button-dropdown-background, var(--primary-background-color));
1329
+
1330
+ @apply --paper-menu-button-content;
1331
+ }
1332
+
1333
+ :host([vertical-align="top"]) .dropdown-content {
1334
+ margin-bottom: 20px;
1335
+ margin-top: -10px;
1336
+ top: 10px;
1337
+ }
1338
+
1339
+ :host([vertical-align="bottom"]) .dropdown-content {
1340
+ bottom: 10px;
1341
+ margin-bottom: -10px;
1342
+ margin-top: 20px;
1343
+ }
1344
+
1345
+ #trigger {
1346
+ cursor: pointer;
1347
+ }
1348
+ </style>
1349
+
1350
+ <div id="trigger" on-tap="toggle">
1351
+ <slot name="dropdown-trigger"></slot>
1352
+ </div>
1353
+
1354
+ <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]]">
1355
+ <div slot="dropdown-content" class="dropdown-content">
1356
+ <slot id="content" name="dropdown-content"></slot>
1357
+ </div>
1358
+ </iron-dropdown>
1359
+ `,is:"paper-menu-button",behaviors:[h,n],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:ce.ANIMATION_CUBIC_BEZIER}},{name:"paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:ce.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:ce.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=s(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){n._disabledChanged.apply(this,arguments),e&&this.opened&&this.close()},__onIronOverlayCanceled:function(e){var t=e.detail,i=this.$.trigger;s(t).path.indexOf(i)>-1&&e.preventDefault()}});Object.keys(ce).forEach((function(e){ue[e]=ce[e]}));
1360
+ /**
1361
+ @license
1362
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
1363
+ This code may only be used under the BSD style license found at
1364
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1365
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1366
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1367
+ part of the polymer project is also subject to an additional IP rights grant
1368
+ found at http://polymer.github.io/PATENTS.txt
1369
+ */
1370
+ const fe=document.createElement("template");fe.setAttribute("style","display: none;"),fe.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(fe.content);
1371
+ /**
1372
+ @license
1373
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
1374
+ This code may only be used under the BSD style license found at
1375
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1376
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1377
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1378
+ part of the polymer project is also subject to an additional IP rights grant
1379
+ found at http://polymer.github.io/PATENTS.txt
1380
+ */
1381
+ const me=document.createElement("template");me.setAttribute("style","display: none;"),me.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(me.content);
1382
+ /**
1383
+ @license
1384
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1385
+ This code may only be used under the BSD style license found at
1386
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1387
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1388
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1389
+ part of the polymer project is also subject to an additional IP rights grant
1390
+ found at http://polymer.github.io/PATENTS.txt
1391
+ */
1392
+ const ge=m(HTMLElement);r({_template:e`
1393
+ <style include="paper-dropdown-menu-shared-styles"></style>
1394
+
1395
+ <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]]">
1396
+ <!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via <content> -->
1397
+ <div class="dropdown-trigger" slot="dropdown-trigger">
1398
+ <paper-ripple></paper-ripple>
1399
+ <!-- paper-input has type="text" for a11y, do not remove -->
1400
+ <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">
1401
+ <!-- support hybrid mode: user might be using paper-input 1.x which distributes via <content> -->
1402
+ <iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix slot="suffix"></iron-icon>
1403
+ </paper-input>
1404
+ </div>
1405
+ <slot id="content" name="dropdown-content" slot="dropdown-content"></slot>
1406
+ </paper-menu-button>
1407
+ `,is:"paper-dropdown-menu",behaviors:[i,n,f,d],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=g(this);return t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:e}),t.shadowRoot.appendChild(e),ge.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=s(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){y(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)}});
1408
+ /**
1409
+ @license
1410
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1411
+ This code may only be used under the BSD style license found at
1412
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1413
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1414
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1415
+ part of the polymer project is also subject to an additional IP rights grant
1416
+ found at http://polymer.github.io/PATENTS.txt
1417
+ */
1418
+ class ye{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))}}
1419
+ /**
1420
+ @license
1421
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1422
+ This code may only be used under the BSD style license found at
1423
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1424
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1425
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1426
+ part of the polymer project is also subject to an additional IP rights grant
1427
+ found at http://polymer.github.io/PATENTS.txt
1428
+ */const be={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 ye(this._applySelection.bind(this))},attached:function(){this._observer=this._observeItems(this),this._addListener(this.activateEvent)},detached:function(){this._observer&&s(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=s(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[c(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 s(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)}},_e={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)):be._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)}},ve={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),_e.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 a=this.attrForItemTitle||"textContent",s=(t[a]||t.getAttribute(a)||"").trim();if(!(s.length<n)&&s.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=s(n).getOwnerRoot()||document;if(this._setFocusedItem(n),s(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=s(n).getOwnerRoot()||document;if(this._setFocusedItem(n),s(o).activeElement==n)return}}},_applySelection:function(e,t){t?e.setAttribute("aria-selected","true"):e.setAttribute("aria-selected","false"),be._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");ve._shiftTabPressed=!0,this._setFocusedItem(null),this.setAttribute("tabindex","-1"),this.async((function(){this.setAttribute("tabindex",t),ve._shiftTabPressed=!1}),1)},_onFocus:function(e){if(!ve._shiftTabPressed){var t=s(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){be._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},xe=[[be,_e],h,ve];
1429
+ /**
1430
+ @license
1431
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1432
+ This code may only be used under the BSD style license found at
1433
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1434
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1435
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1436
+ part of the polymer project is also subject to an additional IP rights grant
1437
+ found at http://polymer.github.io/PATENTS.txt
1438
+ */
1439
+ /**
1440
+ @license
1441
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
1442
+ This code may only be used under the BSD style license found at
1443
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
1444
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
1445
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
1446
+ part of the polymer project is also subject to an additional IP rights grant
1447
+ found at http://polymer.github.io/PATENTS.txt
1448
+ */
1449
+ r({_template:e`
1450
+ <style>
1451
+ :host {
1452
+ display: block;
1453
+ padding: 8px 0;
1454
+
1455
+ background: var(--paper-listbox-background-color, var(--primary-background-color));
1456
+ color: var(--paper-listbox-color, var(--primary-text-color));
1457
+
1458
+ @apply --paper-listbox;
1459
+ }
1460
+ </style>
1461
+
1462
+ <slot></slot>
1463
+ `,is:"paper-listbox",behaviors:[xe],hostAttributes:{role:"listbox"}});export{xe as I,E as N,x as P,C as a,ve as b,be as c,S as d,de as e,pe as f};