@foxy.io/elements 1.42.0-beta.5 → 1.42.0-beta.7

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.
Files changed (241) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +5 -5
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-admin-subscription-form.js +1 -1
  6. package/dist/cdn/foxy-api-browser.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  8. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  9. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-card.js +1 -1
  11. package/dist/cdn/foxy-attribute-form.js +1 -1
  12. package/dist/cdn/foxy-billing-address-card.js +1 -1
  13. package/dist/cdn/foxy-cancellation-form.js +1 -1
  14. package/dist/cdn/foxy-cart-card.js +1 -1
  15. package/dist/cdn/foxy-cart-form.js +2 -2
  16. package/dist/cdn/foxy-client-card.js +1 -1
  17. package/dist/cdn/foxy-client-form.js +1 -1
  18. package/dist/cdn/foxy-collection-page.js +1 -1
  19. package/dist/cdn/foxy-collection-pages.js +1 -1
  20. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  21. package/dist/cdn/foxy-coupon-card.js +1 -1
  22. package/dist/cdn/foxy-coupon-code-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  24. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  25. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  26. package/dist/cdn/foxy-coupon-form.js +1 -1
  27. package/dist/cdn/foxy-custom-field-card.js +1 -1
  28. package/dist/cdn/foxy-custom-field-form.js +1 -1
  29. package/dist/cdn/foxy-customer-card.js +1 -1
  30. package/dist/cdn/foxy-customer-form.js +1 -1
  31. package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
  32. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  33. package/dist/cdn/foxy-customer-portal.js +1 -1
  34. package/dist/cdn/foxy-customer.js +1 -1
  35. package/dist/cdn/foxy-customers-table.js +1 -1
  36. package/dist/cdn/foxy-discount-builder.js +1 -1
  37. package/dist/cdn/foxy-discount-card.js +1 -1
  38. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  39. package/dist/cdn/foxy-donation.js +1 -1
  40. package/dist/cdn/foxy-downloadable-card.js +1 -1
  41. package/dist/cdn/foxy-downloadable-form.js +1 -1
  42. package/dist/cdn/foxy-email-template-card.js +1 -1
  43. package/dist/cdn/foxy-email-template-form.js +1 -1
  44. package/dist/cdn/foxy-error-entry-card.js +1 -1
  45. package/dist/cdn/foxy-experimental-add-to-cart-builder.js +1 -1
  46. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  47. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  48. package/dist/cdn/foxy-form-dialog.js +1 -1
  49. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  50. package/dist/cdn/foxy-gift-card-card.js +1 -1
  51. package/dist/cdn/foxy-gift-card-code-card.js +1 -1
  52. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  53. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  54. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  55. package/dist/cdn/foxy-gift-card-form.js +1 -1
  56. package/dist/cdn/foxy-i18n-editor.js +4 -4
  57. package/dist/cdn/foxy-i18n.js +1 -1
  58. package/dist/cdn/foxy-integration-card.js +1 -1
  59. package/dist/cdn/foxy-integration-form.js +1 -1
  60. package/dist/cdn/foxy-item-card.js +1 -1
  61. package/dist/cdn/foxy-item-category-card.js +1 -1
  62. package/dist/cdn/foxy-item-category-form.js +1 -1
  63. package/dist/cdn/foxy-item-form.js +1 -1
  64. package/dist/cdn/foxy-item-option-card.js +1 -1
  65. package/dist/cdn/foxy-item-option-form.js +1 -1
  66. package/dist/cdn/foxy-items-form.js +1 -1
  67. package/dist/cdn/foxy-native-integration-card.js +1 -1
  68. package/dist/cdn/foxy-native-integration-form.js +1 -1
  69. package/dist/cdn/foxy-pagination.js +1 -1
  70. package/dist/cdn/foxy-passkey-card.js +1 -1
  71. package/dist/cdn/foxy-passkey-form.js +1 -1
  72. package/dist/cdn/foxy-payment-card-embed.js +1 -1
  73. package/dist/cdn/foxy-payment-card.js +1 -1
  74. package/dist/cdn/foxy-payment-method-card.js +1 -1
  75. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  76. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  77. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  78. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  79. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  80. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  81. package/dist/cdn/foxy-query-builder.js +1 -1
  82. package/dist/cdn/foxy-report-form.js +10 -10
  83. package/dist/cdn/foxy-reports-table.js +1 -1
  84. package/dist/cdn/foxy-shipment-card.js +1 -1
  85. package/dist/cdn/foxy-shipping-container-card.js +1 -1
  86. package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
  87. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  88. package/dist/cdn/foxy-shipping-service-card.js +1 -1
  89. package/dist/cdn/foxy-sign-in-form.js +1 -1
  90. package/dist/cdn/foxy-spinner.js +2 -2
  91. package/dist/cdn/foxy-store-card.js +1 -1
  92. package/dist/cdn/foxy-store-form.js +1 -1
  93. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  94. package/dist/cdn/foxy-subscription-card.js +1 -1
  95. package/dist/cdn/foxy-subscription-form.js +1 -1
  96. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  97. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  98. package/dist/cdn/foxy-swipe-actions.js +1 -1
  99. package/dist/cdn/foxy-table.js +1 -1
  100. package/dist/cdn/foxy-tax-card.js +1 -1
  101. package/dist/cdn/foxy-tax-form.js +1 -1
  102. package/dist/cdn/foxy-template-config-form.js +1 -1
  103. package/dist/cdn/foxy-template-form.js +1 -1
  104. package/dist/cdn/foxy-template-set-card.js +1 -1
  105. package/dist/cdn/foxy-template-set-form.js +1 -1
  106. package/dist/cdn/foxy-transaction-card.js +1 -1
  107. package/dist/cdn/foxy-transaction.js +1 -1
  108. package/dist/cdn/foxy-transactions-table.js +7 -7
  109. package/dist/cdn/foxy-update-payment-method-form.js +1 -1
  110. package/dist/cdn/foxy-user-card.js +1 -1
  111. package/dist/cdn/foxy-user-form.js +1 -1
  112. package/dist/cdn/foxy-user-invitation-card.js +1 -1
  113. package/dist/cdn/foxy-user-invitation-form.js +1 -1
  114. package/dist/cdn/foxy-users-table.js +1 -1
  115. package/dist/cdn/foxy-webhook-card.js +1 -1
  116. package/dist/cdn/foxy-webhook-form.js +1 -1
  117. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  118. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  119. package/dist/cdn/{shared-864ea319.js → shared-0553380e.js} +1 -1
  120. package/dist/cdn/{shared-fca3a317.js → shared-0c242246.js} +1 -1
  121. package/dist/cdn/{shared-25167d28.js → shared-0cc8df04.js} +1 -1
  122. package/dist/cdn/{shared-4e309d01.js → shared-0cfb1c08.js} +1 -1
  123. package/dist/cdn/{shared-77f39a8a.js → shared-0f4dfb14.js} +1 -1
  124. package/dist/cdn/{shared-16ae74b2.js → shared-1aff90a9.js} +1 -1
  125. package/dist/cdn/shared-1b46df2a.js +417 -0
  126. package/dist/cdn/{shared-70380f94.js → shared-1d03f911.js} +1 -1
  127. package/dist/cdn/shared-241b6cca.js +231 -0
  128. package/dist/cdn/{shared-56d91134.js → shared-2939f350.js} +1 -1
  129. package/dist/cdn/shared-2b126cea.js +25 -0
  130. package/dist/cdn/{shared-4ded48ee.js → shared-2fe8aabd.js} +1 -1
  131. package/dist/cdn/{shared-7a2aaafa.js → shared-330e57d9.js} +1 -1
  132. package/dist/cdn/shared-35c9fa1d.js +1 -0
  133. package/dist/cdn/{shared-49337d35.js → shared-393a7ab2.js} +1 -1
  134. package/dist/cdn/{shared-bc2eb9bb.js → shared-3a2134c8.js} +1 -1
  135. package/dist/cdn/{shared-7f5f6657.js → shared-3aca4932.js} +1 -1
  136. package/dist/cdn/{shared-e4768909.js → shared-3cdec25d.js} +9 -9
  137. package/dist/cdn/{shared-8b891950.js → shared-40028e80.js} +1 -1
  138. package/dist/cdn/{shared-127ec8a7.js → shared-434cdfec.js} +1 -1
  139. package/dist/cdn/{shared-df369311.js → shared-46f8e3d9.js} +1 -1
  140. package/dist/cdn/{shared-5960c279.js → shared-4bd1f3d8.js} +1 -1
  141. package/dist/cdn/shared-4cae017c.js +1 -0
  142. package/dist/cdn/{shared-42c91940.js → shared-4d919766.js} +1 -1
  143. package/dist/cdn/{shared-e55e32dd.js → shared-4f808d2e.js} +1 -1
  144. package/dist/cdn/{shared-a4ca1c5d.js → shared-53253d60.js} +1 -1
  145. package/dist/cdn/{shared-663794ff.js → shared-5520b96c.js} +1 -1
  146. package/dist/cdn/shared-578cde14.js +1 -0
  147. package/dist/cdn/{shared-7b3aac7e.js → shared-58b6710c.js} +1 -1
  148. package/dist/cdn/{shared-16d1018b.js → shared-5a04e75c.js} +1 -1
  149. package/dist/cdn/{shared-92153a7f.js → shared-5d7c4673.js} +1 -1
  150. package/dist/cdn/{shared-1b7e17c7.js → shared-692691ca.js} +1 -1
  151. package/dist/cdn/{shared-e653b80e.js → shared-6f08d218.js} +1 -1
  152. package/dist/cdn/{shared-2a5d1cdf.js → shared-753fdd34.js} +1 -1
  153. package/dist/cdn/{shared-500b7eb7.js → shared-7977d581.js} +2 -2
  154. package/dist/cdn/{shared-d5f6483f.js → shared-7eeb591f.js} +1 -1
  155. package/dist/cdn/{shared-9a4d52dd.js → shared-86337ba8.js} +1 -1
  156. package/dist/cdn/{shared-3ca95e21.js → shared-8c42634c.js} +1 -1
  157. package/dist/cdn/{shared-1f6366c0.js → shared-8e010314.js} +1 -1
  158. package/dist/cdn/{shared-7995cbcf.js → shared-8f81f4ed.js} +1 -1
  159. package/dist/cdn/{shared-6f1261fa.js → shared-92995c02.js} +1 -1
  160. package/dist/cdn/{shared-076f086a.js → shared-948919d2.js} +1 -1
  161. package/dist/cdn/{shared-a1f654fc.js → shared-98f382f3.js} +1 -1
  162. package/dist/cdn/{shared-76cbea00.js → shared-9d4813e6.js} +1 -1
  163. package/dist/cdn/{shared-eb086cef.js → shared-a60ca6fe.js} +1 -1
  164. package/dist/cdn/{shared-ee9ee09a.js → shared-ae2336ab.js} +1 -1
  165. package/dist/cdn/{shared-6b3b8c63.js → shared-b05ef317.js} +1 -1
  166. package/dist/cdn/shared-b1c9199f.js +531 -0
  167. package/dist/cdn/{shared-5714fc55.js → shared-b6c5ac14.js} +2 -2
  168. package/dist/cdn/{shared-253e51f7.js → shared-c009b9b6.js} +1 -1
  169. package/dist/cdn/{shared-75e7361d.js → shared-c231e3bf.js} +1 -1
  170. package/dist/cdn/{shared-a3a18e8d.js → shared-c584966f.js} +1 -1
  171. package/dist/cdn/{shared-90754404.js → shared-c5b019e5.js} +1 -1
  172. package/dist/cdn/{shared-eed9b226.js → shared-cae254ee.js} +9 -9
  173. package/dist/cdn/{shared-771431a9.js → shared-ceeb14e9.js} +1 -1
  174. package/dist/cdn/{shared-fc66cb5d.js → shared-cf008f13.js} +1 -1
  175. package/dist/cdn/{shared-f9f64dee.js → shared-d3d4badd.js} +1 -1
  176. package/dist/cdn/{shared-d2304d50.js → shared-d743d0fd.js} +1 -1
  177. package/dist/cdn/{shared-a3a4c368.js → shared-d8694661.js} +6 -6
  178. package/dist/cdn/{shared-1ce5b073.js → shared-e1400289.js} +1 -1
  179. package/dist/cdn/shared-e615d2d9.js +1 -0
  180. package/dist/cdn/{shared-677953e0.js → shared-ec9893c7.js} +1 -1
  181. package/dist/cdn/{shared-68a5368a.js → shared-f79f08cc.js} +1 -1
  182. package/dist/cdn/translations/admin-subscription-form/en.json +112 -48
  183. package/dist/cdn/translations/api-browser/en.json +7 -3
  184. package/dist/cdn/translations/cart-form/en.json +91 -39
  185. package/dist/cdn/translations/coupon-code-form/en.json +7 -3
  186. package/dist/cdn/translations/coupon-form/en.json +28 -12
  187. package/dist/cdn/translations/customer/en.json +28 -12
  188. package/dist/cdn/translations/customer-portal/de.json +14 -6
  189. package/dist/cdn/translations/customer-portal/en.json +14 -6
  190. package/dist/cdn/translations/customer-portal/es.json +14 -6
  191. package/dist/cdn/translations/customer-portal/fr.json +14 -6
  192. package/dist/cdn/translations/customer-portal/nl.json +14 -6
  193. package/dist/cdn/translations/customer-portal/pl.json +14 -6
  194. package/dist/cdn/translations/customer-portal/sv.json +14 -6
  195. package/dist/cdn/translations/customer-portal/zh-HK.json +14 -6
  196. package/dist/cdn/translations/customer-portal-settings-form/en.json +14 -6
  197. package/dist/cdn/translations/experimental-add-to-cart-builder/en.json +28 -12
  198. package/dist/cdn/translations/gift-card-code-form/en.json +14 -6
  199. package/dist/cdn/translations/gift-card-form/en.json +35 -15
  200. package/dist/cdn/translations/item-category-form/en.json +14 -6
  201. package/dist/cdn/translations/item-form/en.json +35 -15
  202. package/dist/cdn/translations/native-integration-form/en.json +14 -6
  203. package/dist/cdn/translations/pagination/en.json +7 -3
  204. package/dist/cdn/translations/payment-method-card/en.json +7 -3
  205. package/dist/cdn/translations/payments-api-payment-method-form/en.json +71 -52
  206. package/dist/cdn/translations/payments-api-payment-preset-form/en.json +71 -52
  207. package/dist/cdn/translations/store-shipping-method-form/en.json +28 -12
  208. package/dist/cdn/translations/subscription-form/en.json +21 -9
  209. package/dist/cdn/translations/tax-form/en.json +7 -3
  210. package/dist/cdn/translations/template-set-form/en.json +7 -3
  211. package/dist/cdn/translations/transaction/en.json +98 -42
  212. package/dist/cdn/translations/update-payment-method-form/en.json +7 -3
  213. package/dist/cdn/translations/webhook-form/en.json +14 -6
  214. package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js +13 -31
  215. package/dist/elements/internal/InternalNumberControl/InternalNumberControl.js.map +1 -1
  216. package/dist/elements/public/Pagination/Pagination.js +98 -91
  217. package/dist/elements/public/Pagination/Pagination.js.map +1 -1
  218. package/dist/elements/public/Pagination/index.d.ts +1 -0
  219. package/dist/elements/public/Pagination/index.js +1 -0
  220. package/dist/elements/public/Pagination/index.js.map +1 -1
  221. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.d.ts +0 -1
  222. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js +81 -68
  223. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js.map +1 -1
  224. package/dist/elements/public/SwipeActions/SwipeActions.d.ts +1 -0
  225. package/dist/elements/public/SwipeActions/SwipeActions.js +8 -5
  226. package/dist/elements/public/SwipeActions/SwipeActions.js.map +1 -1
  227. package/dist/mixins/themeable.js +0 -18
  228. package/dist/mixins/themeable.js.map +1 -1
  229. package/package.json +1 -1
  230. package/dist/cdn/shared-0662adb7.js +0 -1
  231. package/dist/cdn/shared-0995ae7c.js +0 -637
  232. package/dist/cdn/shared-0e1ad508.js +0 -1
  233. package/dist/cdn/shared-20fb2969.js +0 -88
  234. package/dist/cdn/shared-21fba20d.js +0 -1
  235. package/dist/cdn/shared-292dcee0.js +0 -10
  236. package/dist/cdn/shared-5c057c26.js +0 -419
  237. package/dist/cdn/shared-651c44fa.js +0 -6
  238. package/dist/cdn/shared-7a4ca3f1.js +0 -1
  239. package/dist/cdn/shared-986d0f7f.js +0 -1
  240. package/dist/cdn/shared-c365c1ae.js +0 -31
  241. package/dist/cdn/shared-f28e46bf.js +0 -12
@@ -1,637 +0,0 @@
1
- import{f as e,M as t,n as s,c as i,d as n,e as r,V as o,g as l,i as a,j as h,u as c,k as d,l as u,w as _,m as p,E as f,G as m,o as y,r as g,s as b,D as C,t as v,p as x,q as w,P as S,v as P,x as E,y as I,z as O,h as A}from"./shared-a3a4c368.js";import{l as k,b as N,s as T,c as M,u as D,d as R,f as F}from"./shared-1ce5b073.js";
2
- /**
3
- @license
4
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
- Code distributed by Google as part of the polymer project is also
9
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10
- */const L=function(){let t,s;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),s=e()}while(t||s)};
11
- /**
12
- @license
13
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
14
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
15
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
16
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
17
- Code distributed by Google as part of the polymer project is also
18
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
19
- */class H{constructor(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""}}function j(e){return z(function(e){let t=new H;t.start=0,t.end=e.length;let s=t;for(let i=0,n=e.length;i<n;i++)if(e[i]===U){s.rules||(s.rules=[]);let e=s,t=e.rules[e.rules.length-1]||null;s=new H,s.start=i+1,s.parent=e,s.previous=t,e.rules.push(s)}else e[i]===q&&(s.end=i+1,s=s.parent||t);return t}(e=e.replace(J.comments,"").replace(J.port,"")),e)}function z(e,t){let s=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=s.trim(),e.parent){let i=e.previous?e.previous.end:e.parent.start;s=t.substring(i,e.start-1),s=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){let e=arguments[1],t=6-e.length;for(;t--;)e="0"+e;return"\\"+e}))}(s),s=s.replace(J.multipleSpaces," "),s=s.substring(s.lastIndexOf(";")+1);let n=e.parsedSelector=e.selector=s.trim();e.atRule=0===n.indexOf(K),e.atRule?0===n.indexOf(Y)?e.type=$.MEDIA_RULE:n.match(J.keyframesRule)&&(e.type=$.KEYFRAMES_RULE,e.keyframesName=e.selector.split(J.multipleSpaces).pop()):0===n.indexOf(V)?e.type=$.MIXIN_RULE:e.type=$.STYLE_RULE}let i=e.rules;if(i)for(let e,s=0,n=i.length;s<n&&(e=i[s]);s++)z(e,t);return e}function B(e,t,s=""){let i="";if(e.cssText||e.rules){let s=e.rules;if(s&&!function(e){let t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(V)}(s))for(let e,n=0,r=s.length;n<r&&(e=s[n]);n++)i=B(e,t,i);else i=t?e.cssText:function(e){return e=function(e){return e.replace(J.customProp,"").replace(J.mixinProp,"")}(e),function(e){return e.replace(J.mixinApply,"").replace(J.varApply,"")}(e)}(e.cssText),i=i.trim(),i&&(i=" "+i+"\n")}return i&&(e.selector&&(s+=e.selector+" "+U+"\n"),s+=i,e.selector&&(s+=q+"\n\n")),s}const $={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},U="{",q="}",J={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},V="--",Y="@media",K="@",G=new Set,X="shady-unscoped";function W(e){const t=e.textContent;if(!G.has(t)){G.add(t);const e=document.createElement("style");e.setAttribute("shady-unscoped",""),e.textContent=t,document.head.appendChild(e)}}function Q(e){return e.hasAttribute(X)}
20
- /**
21
- @license
22
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
23
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
24
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
25
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
26
- Code distributed by Google as part of the polymer project is also
27
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
28
- */function Z(e,t){return e?("string"==typeof e&&(e=j(e)),t&&te(e,t),B(e,s)):""}function ee(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=j(e.textContent)),e.__cssRules||null}function te(e,s,i,n){if(!e)return;let r=!1,o=e.type;if(n&&o===$.MEDIA_RULE){let s=e.selector.match(t);s&&(window.matchMedia(s[1]).matches||(r=!0))}o===$.STYLE_RULE?s(e):i&&o===$.KEYFRAMES_RULE?i(e):o===$.MIXIN_RULE&&(r=!0);let l=e.rules;if(l&&!r)for(let e,t=0,r=l.length;t<r&&(e=l[t]);t++)te(e,s,i,n)}function se(e,t){let s=e.indexOf("var(");if(-1===s)return t(e,"","","");let i=function(e,t){let s=0;for(let i=t,n=e.length;i<n;i++)if("("===e[i])s++;else if(")"===e[i]&&0==--s)return i;return-1}(e,s+3),n=e.substring(s+4,i),r=e.substring(0,s),o=se(e.substring(i+1),t),l=n.indexOf(",");return-1===l?t(r,n.trim(),"",o):t(r,n.substring(0,l).trim(),n.substring(l+1).trim(),o)}window.ShadyDOM&&window.ShadyDOM.wrap;const ie="css-build";function ne(e){if(void 0!==n)return n;if(void 0===e.__cssBuild){const t=e.getAttribute(ie);if(t)e.__cssBuild=t;else{const t=function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;if(t instanceof Comment){const e=t.textContent.trim().split(":");if(e[0]===ie)return e[1]}return""}(e);""!==t&&function(e){const t="template"===e.localName?e.content.firstChild:e.firstChild;t.parentNode.removeChild(t)}
29
- /**
30
- @license
31
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
32
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
33
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
34
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
35
- Code distributed by Google as part of the polymer project is also
36
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
37
- */(e),e.__cssBuild=t}}return e.__cssBuild||""}function re(e){return""!==ne(e)}const oe=/;\s*/m,le=/^\s*(initial)|(inherit)\s*$/,ae=/\s*!important/,he="_-_";class ce{constructor(){this._map={}}set(e,t){e=e.trim(),this._map[e]={properties:t,dependants:{}}}get(e){return e=e.trim(),this._map[e]||null}}let de=null;class ue{constructor(){this._currentElement=null,this._measureElement=null,this._map=new ce}detectMixin(e){return r(e)}gatherStyles(e){const t=function(e){const t=[],s=e.querySelectorAll("style");for(let e=0;e<s.length;e++){const n=s[e];Q(n)?i||(W(n),n.parentNode.removeChild(n)):(t.push(n.textContent),n.parentNode.removeChild(n))}return t.join("").trim()}(e.content);if(t){const s=document.createElement("style");return s.textContent=t,e.content.insertBefore(s,e.content.firstChild),s}return null}transformTemplate(e,t){void 0===e._gatheredStyle&&(e._gatheredStyle=this.gatherStyles(e));const s=e._gatheredStyle;return s?this.transformStyle(s,t):null}transformStyle(e,t=""){let s=ee(e);return this.transformRules(s,t),e.textContent=Z(s),s}transformCustomStyle(e){let t=ee(e);return te(t,(e=>{":root"===e.selector&&(e.selector="html"),this.transformRule(e)})),e.textContent=Z(t),t}transformRules(e,t){this._currentElement=t,te(e,(e=>{this.transformRule(e)})),this._currentElement=null}transformRule(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}transformCssText(e,t){return e=e.replace(o,((e,s,i,n)=>this._produceCssProperties(e,s,i,n,t))),this._consumeCssProperties(e,t)}_getInitialValueForProperty(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}_fallbacksFromPreviousRules(e){let t=e;for(;t.parent;)t=t.parent;const s={};let i=!1;return te(t,(t=>{i=i||t===e,i||t.selector===e.selector&&Object.assign(s,this._cssTextToMap(t.parsedCssText))})),s}_consumeCssProperties(e,t){let s=null;for(;s=l.exec(e);){let i=s[0],n=s[1],r=s.index,o=r+i.indexOf("@apply"),a=r+i.length,h=e.slice(0,o),c=e.slice(a),d=t?this._fallbacksFromPreviousRules(t):{};Object.assign(d,this._cssTextToMap(h));let u=this._atApplyToCssProperties(n,d);e=`${h}${u}${c}`,l.lastIndex=r+u.length}return e}_atApplyToCssProperties(e,t){e=e.replace(oe,"");let s=[],i=this._map.get(e);if(i||(this._map.set(e,{}),i=this._map.get(e)),i){let n,r,o;this._currentElement&&(i.dependants[this._currentElement]=!0);const l=i.properties;for(n in l)o=t&&t[n],r=[n,": var(",e,he,n],o&&r.push(",",o.replace(ae,"")),r.push(")"),ae.test(l[n])&&r.push(" !important"),s.push(r.join(""))}return s.join("; ")}_replaceInitialOrInherit(e,t){let s=le.exec(t);return s&&(t=s[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}_cssTextToMap(e,t=!1){let s,i,n=e.split(";"),r={};for(let e,o,l=0;l<n.length;l++)e=n[l],e&&(o=e.split(":"),o.length>1&&(s=o[0].trim(),i=o.slice(1).join(":"),t&&(i=this._replaceInitialOrInherit(s,i)),r[s]=i));return r}_invalidateMixinEntry(e){if(de)for(let t in e.dependants)t!==this._currentElement&&de(t)}_produceCssProperties(e,t,s,i,n){if(s&&se(s,((e,t)=>{t&&this._map.get(t)&&(i=`@apply ${t};`)})),!i)return e;let r=this._consumeCssProperties(""+i,n),o=e.slice(0,e.indexOf("--")),l=this._cssTextToMap(r,!0),a=l,h=this._map.get(t),c=h&&h.properties;c?a=Object.assign(Object.create(c),l):this._map.set(t,a);let d,u,_=[],p=!1;for(d in a)u=l[d],void 0===u&&(u="initial"),c&&!(d in c)&&(p=!0),_.push(`${t}${he}${d}: ${u}`);return p&&this._invalidateMixinEntry(h),h&&(h.properties=a),s&&(o=`${e};${o}`),`${o}${_.join("; ")};`}}ue.prototype.detectMixin=ue.prototype.detectMixin,ue.prototype.transformStyle=ue.prototype.transformStyle,ue.prototype.transformCustomStyle=ue.prototype.transformCustomStyle,ue.prototype.transformRules=ue.prototype.transformRules,ue.prototype.transformRule=ue.prototype.transformRule,ue.prototype.transformTemplate=ue.prototype.transformTemplate,ue.prototype._separator=he,Object.defineProperty(ue.prototype,"invalidCallback",{get:()=>de,set(e){de=e}});
38
- /**
39
- @license
40
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
41
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
42
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
43
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
44
- Code distributed by Google as part of the polymer project is also
45
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
46
- */
47
- const _e={},pe="_applyShimCurrentVersion",fe="_applyShimNextVersion",me="_applyShimValidatingVersion",ye=Promise.resolve();
48
- /**
49
- @license
50
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
51
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
52
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
53
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
54
- Code distributed by Google as part of the polymer project is also
55
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
56
- */function ge(e){let t=_e[e];t&&function(e){e[pe]=e[pe]||0,e[me]=e[me]||0,e[fe]=(e[fe]||0)+1}(t)}function be(e){return e[pe]===e[fe]}
57
- /**
58
- @license
59
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
60
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
61
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
62
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
63
- Code distributed by Google as part of the polymer project is also
64
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
65
- */
66
- const Ce=new ue;class ve{constructor(){this.customStyleInterface=null,Ce.invalidCallback=ge}ensure(){this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=e=>{Ce.transformCustomStyle(e)},this.customStyleInterface.validateCallback=()=>{requestAnimationFrame((()=>{this.customStyleInterface.enqueued&&this.flushCustomStyles()}))})}prepareTemplate(e,t){if(this.ensure(),re(e))return;_e[t]=e;let s=Ce.transformTemplate(e,t);e._styleAst=s}flushCustomStyles(){if(this.ensure(),!this.customStyleInterface)return;let e=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(let t=0;t<e.length;t++){let s=e[t],i=this.customStyleInterface.getStyleForCustomStyle(s);i&&Ce.transformCustomStyle(i)}this.customStyleInterface.enqueued=!1}}styleSubtree(e,t){if(this.ensure(),t&&c(e,t),e.shadowRoot){this.styleElement(e);let t=e.shadowRoot.children||e.shadowRoot.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}else{let t=e.children||e.childNodes;for(let e=0;e<t.length;e++)this.styleSubtree(t[e])}}styleElement(e){this.ensure();let{is:t}=function(e){let t=e.localName,s="",i="";return t?t.indexOf("-")>-1?s=t:(i=t,s=e.getAttribute&&e.getAttribute("is")||""):(s=e.is,i=e.extends),{is:s,typeExtension:i}}(e),s=_e[t];if((!s||!re(s))&&s&&!be(s)){(function(e){return!be(e)&&e[me]===e[fe]})(s)||(this.prepareTemplate(s,t),function(e){e[me]=e[fe],e._validating||(e._validating=!0,ye.then((function(){e[pe]=e[fe],e._validating=!1})))}(s));let i=e.shadowRoot;if(i){let e=i.querySelector("style");e&&(e.__cssRules=s._styleAst,e.textContent=Z(s._styleAst))}}}styleDocument(e){this.ensure(),this.styleSubtree(document.body,e)}}if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){const e=new ve;let t=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate(t,s,i){e.flushCustomStyles(),e.prepareTemplate(t,s)},prepareTemplateStyles(e,t,s){window.ShadyCSS.prepareTemplate(e,t,s)},prepareTemplateDom(e,t){},styleSubtree(t,s){e.flushCustomStyles(),e.styleSubtree(t,s)},styleElement(t){e.flushCustomStyles(),e.styleElement(t)},styleDocument(t){e.flushCustomStyles(),e.styleDocument(t)},getComputedStyleValue:(e,t)=>a(e,t),flushCustomStyles(){e.flushCustomStyles()},nativeCss:s,nativeShadow:i,cssBuild:n,disableRuntime:h},t&&(window.ShadyCSS.CustomStyleInterface=t)}window.ShadyCSS.ApplyShim=Ce;
67
- /**
68
- * @fileoverview
69
- * @suppress {checkPrototypalTypes}
70
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
71
- * This code may only be used under the BSD style license found at
72
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
73
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
74
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
75
- * Google as part of the polymer project is also subject to an additional IP
76
- * rights grant found at http://polymer.github.io/PATENTS.txt
77
- */
78
- const xe=/:host\(:dir\((ltr|rtl)\)\)/g,we=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Se=/:dir\((?:ltr|rtl)\)/,Pe=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),Ee=[];let Ie=null,Oe="";function Ae(){Oe=document.documentElement.getAttribute("dir")}function ke(e){if(!e.__autoDirOptOut){e.setAttribute("dir",Oe)}}function Ne(){Ae(),Oe=document.documentElement.getAttribute("dir");for(let e=0;e<Ee.length;e++)ke(Ee[e])}const Te=d((e=>{Pe||Ie||(Ae(),Ie=new MutationObserver(Ne),Ie.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const t=u(e);class s extends t{static _processStyleText(e,s){return e=t._processStyleText.call(this,e,s),!Pe&&Se.test(e)&&(e=this._replaceDirInCssText(e),this.__activateDir=!0),e}static _replaceDirInCssText(e){let t=e;return t=t.replace(xe,':host([dir="$1"])'),t=t.replace(we,':host([dir="$2"]) $1'),t}constructor(){super(),this.__autoDirOptOut=!1}ready(){super.ready(),this.__autoDirOptOut=this.hasAttribute("dir")}connectedCallback(){t.prototype.connectedCallback&&super.connectedCallback(),this.constructor.__activateDir&&(Ie&&Ie.takeRecords().length&&Ne(),Ee.push(this),ke(this))}disconnectedCallback(){if(t.prototype.disconnectedCallback&&super.disconnectedCallback(),this.constructor.__activateDir){const e=Ee.indexOf(this);e>-1&&Ee.splice(e,1)}}}return s.__activateDir=!1,s}));
79
- /**
80
- @license
81
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
82
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
83
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
84
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
85
- Code distributed by Google as part of the polymer project is also
86
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
87
- */function Me(){document.body.removeAttribute("unresolved")}
88
- /**
89
- @license
90
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
91
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
92
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
93
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
94
- Code distributed by Google as part of the polymer project is also
95
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
96
- */
97
- function De(e,t,s){return{index:e,removed:t,addedCount:s}}"interactive"===document.readyState||"complete"===document.readyState?Me():window.addEventListener("DOMContentLoaded",Me);const Re=0,Fe=1,Le=2,He=3;function je(e,t,s,i,n,r){let o,l=0,a=0,h=Math.min(s-t,r-n);if(0==t&&0==n&&(l=function(e,t,s){for(let i=0;i<s;i++)if(!Be(e[i],t[i]))return i;return s}(e,i,h)),s==e.length&&r==i.length&&(a=function(e,t,s){let i=e.length,n=t.length,r=0;for(;r<s&&Be(e[--i],t[--n]);)r++;return r}(e,i,h-l)),n+=l,r-=a,(s-=a)-(t+=l)==0&&r-n==0)return[];if(t==s){for(o=De(t,[],0);n<r;)o.removed.push(i[n++]);return[o]}if(n==r)return[De(t,[],s-t)];let c=function(e){let t=e.length-1,s=e[0].length-1,i=e[t][s],n=[];for(;t>0||s>0;){if(0==t){n.push(Le),s--;continue}if(0==s){n.push(He),t--;continue}let r,o=e[t-1][s-1],l=e[t-1][s],a=e[t][s-1];r=l<a?l<o?l:o:a<o?a:o,r==o?(o==i?n.push(Re):(n.push(Fe),i=o),t--,s--):r==l?(n.push(He),t--,i=l):(n.push(Le),s--,i=a)}return n.reverse(),n}(function(e,t,s,i,n,r){let o=r-n+1,l=s-t+1,a=new Array(o);for(let e=0;e<o;e++)a[e]=new Array(l),a[e][0]=e;for(let e=0;e<l;e++)a[0][e]=e;for(let s=1;s<o;s++)for(let r=1;r<l;r++)if(Be(e[t+r-1],i[n+s-1]))a[s][r]=a[s-1][r-1];else{let e=a[s-1][r]+1,t=a[s][r-1]+1;a[s][r]=e<t?e:t}return a}(e,t,s,i,n,r));o=void 0;let d=[],u=t,_=n;for(let e=0;e<c.length;e++)switch(c[e]){case Re:o&&(d.push(o),o=void 0),u++,_++;break;case Fe:o||(o=De(u,[],0)),o.addedCount++,u++,o.removed.push(i[_]),_++;break;case Le:o||(o=De(u,[],0)),o.addedCount++,u++;break;case He:o||(o=De(u,[],0)),o.removed.push(i[_]),_++}return o&&d.push(o),d}function ze(e,t){return je(e,0,e.length,t,0,t.length)}function Be(e,t){return e===t}
98
- /**
99
- @license
100
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
101
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
102
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
103
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
104
- Code distributed by Google as part of the polymer project is also
105
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
106
- */function $e(e){return"slot"===e.localName}let Ue=class{static getFlattenedNodes(e){const t=_(e);return $e(e)?t.assignedNodes({flatten:!0}):Array.from(t.childNodes).map((e=>$e(e)?_(e).assignedNodes({flatten:!0}):[e])).reduce(((e,t)=>e.concat(t)),[])}constructor(e,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){$e(this._target)?this._listenSlots([this._target]):_(this._target).children&&(this._listenSlots(_(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(e=>{this._processMutations(e)})):(this._nativeChildrenObserver=new MutationObserver((e=>{this._processMutations(e)})),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){$e(this._target)?this._unlistenSlots([this._target]):_(this._target).children&&(this._unlistenSlots(_(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,p.run((()=>this.flush())))}_processMutations(e){this._processSlotMutations(e),this.flush()}_processSlotMutations(e){if(e)for(let t=0;t<e.length;t++){let s=e[t];s.addedNodes&&this._listenSlots(s.addedNodes),s.removedNodes&&this._unlistenSlots(s.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let e={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),s=ze(t,this._effectiveNodes);for(let t,i=0;i<s.length&&(t=s[i]);i++)for(let s,i=0;i<t.removed.length&&(s=t.removed[i]);i++)e.removedNodes.push(s);for(let i,n=0;n<s.length&&(i=s[n]);n++)for(let s=i.index;s<i.index+i.addedCount;s++)e.addedNodes.push(t[s]);this._effectiveNodes=t;let i=!1;return(e.addedNodes.length||e.removedNodes.length)&&(i=!0,this.callback.call(this._target,e)),i}_listenSlots(e){for(let t=0;t<e.length;t++){let s=e[t];$e(s)&&s.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(e){for(let t=0;t<e.length;t++){let s=e[t];$e(s)&&s.removeEventListener("slotchange",this._boundSchedule)}}};
107
- /**
108
- @license
109
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
110
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
111
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
112
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
113
- Code distributed by Google as part of the polymer project is also
114
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
115
- */const qe=Element.prototype,Je=qe.matches||qe.matchesSelector||qe.mozMatchesSelector||qe.msMatchesSelector||qe.oMatchesSelector||qe.webkitMatchesSelector,Ve=function(e,t){return Je.call(e,t)};class Ye{constructor(e){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}observeNodes(e){return new Ue(this.node,e)}unobserveNodes(e){e.disconnect()}notifyObserver(){}deepContains(e){if(_(this.node).contains(e))return!0;let t=e,s=e.ownerDocument;for(;t&&t!==s&&t!==this.node;)t=_(t).parentNode||_(t).host;return t===this.node}getOwnerRoot(){return _(this.node).getRootNode()}getDistributedNodes(){return"slot"===this.node.localName?_(this.node).assignedNodes({flatten:!0}):[]}getDestinationInsertionPoints(){let e=[],t=_(this.node).assignedSlot;for(;t;)e.push(t),t=_(t).assignedSlot;return e}importNode(e,t){let s=this.node instanceof Document?this.node:this.node.ownerDocument;return _(s).importNode(e,t)}getEffectiveChildNodes(){return Ue.getFlattenedNodes(this.node)}queryDistributedElements(e){let t=this.getEffectiveChildNodes(),s=[];for(let i,n=0,r=t.length;n<r&&(i=t[n]);n++)i.nodeType===Node.ELEMENT_NODE&&Ve(i,e)&&s.push(i);return s}get activeElement(){let e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}function Ke(e,t){for(let s=0;s<t.length;s++){let i=t[s];Object.defineProperty(e,i,{get:function(){return this.node[i]},configurable:!0})}}class Ge{constructor(e){this.event=e}get rootTarget(){return this.path[0]}get localTarget(){return this.event.target}get path(){return this.event.composedPath()}}Ye.prototype.cloneNode,Ye.prototype.appendChild,Ye.prototype.insertBefore,Ye.prototype.removeChild,Ye.prototype.replaceChild,Ye.prototype.setAttribute,Ye.prototype.removeAttribute,Ye.prototype.querySelector,Ye.prototype.querySelectorAll,Ye.prototype.parentNode,Ye.prototype.firstChild,Ye.prototype.lastChild,Ye.prototype.nextSibling,Ye.prototype.previousSibling,Ye.prototype.firstElementChild,Ye.prototype.lastElementChild,Ye.prototype.nextElementSibling,Ye.prototype.previousElementSibling,Ye.prototype.childNodes,Ye.prototype.children,Ye.prototype.classList,Ye.prototype.textContent,Ye.prototype.innerHTML;let Xe=Ye;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){class e extends window.ShadyDOM.Wrapper{}Object.getOwnPropertyNames(Ye.prototype).forEach((t=>{"activeElement"!=t&&(e.prototype[t]=Ye.prototype[t])})),Ke(e.prototype,["classList"]),Xe=e,Object.defineProperties(Ge.prototype,{localTarget:{get(){const e=this.event.currentTarget,t=e&&We(e).getOwnerRoot(),s=this.path;for(let e=0;e<s.length;e++){const i=s[e];if(We(i).getOwnerRoot()===t)return i}},configurable:!0},path:{get(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})}else!function(e,t){for(let s=0;s<t.length;s++){let i=t[s];e[i]=function(){return this.node[i].apply(this.node,arguments)}}}(Ye.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll","attachShadow"]),Ke(Ye.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList","shadowRoot"]),function(e,t){for(let s=0;s<t.length;s++){let i=t[s];Object.defineProperty(e,i,{get:function(){return this.node[i]},set:function(e){this.node[i]=e},configurable:!0})}}(Ye.prototype,["textContent","innerHTML","className"]);const We=function(e){if((e=e||document)instanceof Xe)return e;if(e instanceof Ge)return e;let t=e.__domApi;return t||(t=e instanceof Event?new Ge(e):new Xe(e),e.__domApi=t),t},Qe=window.ShadyDOM,Ze=window.ShadyCSS;
116
- /**
117
- @license
118
- Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
119
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
120
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
121
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
122
- Code distributed by Google as part of the polymer project is also
123
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
124
- */function et(e,t){return _(e).getRootNode()===t}
125
- /**
126
- * @fileoverview
127
- * @suppress {checkPrototypalTypes}
128
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
129
- * This code may only be used under the BSD style license found at
130
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
131
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
132
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
133
- * Google as part of the polymer project is also subject to an additional IP
134
- * rights grant found at http://polymer.github.io/PATENTS.txt
135
- */
136
- const tt="disable-upgrade",st=e=>{for(;e;){const t=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(t)return t.get;e=Object.getPrototypeOf(e.prototype).constructor}return()=>[]},it=d((e=>{const t=f(e);let s=st(t);return class extends t{constructor(){super(),this.__isUpgradeDisabled}static get observedAttributes(){return s.call(this).concat(tt)}_initializeProperties(){this.hasAttribute(tt)?this.__isUpgradeDisabled=!0:super._initializeProperties()}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}attributeChangedCallback(e,t,s,i){e==tt?this.__isUpgradeDisabled&&null==s&&(super._initializeProperties(),this.__isUpgradeDisabled=!1,_(this).isConnected&&super.connectedCallback()):super.attributeChangedCallback(e,t,s,i)}connectedCallback(){this.__isUpgradeDisabled||super.connectedCallback()}disconnectedCallback(){this.__isUpgradeDisabled||super.disconnectedCallback()}}})),nt="disable-upgrade";let rt=window.ShadyCSS;const ot=d((e=>{const t=m(f(e)),s=y?t:Te(t),i=st(s),n={x:"pan-x",y:"pan-y",none:"none",all:"auto"};class r extends s{constructor(){super(),this.isAttached,this.__boundListeners,this._debouncers,this.__isUpgradeDisabled,this.__needsAttributesAtConnected,this._legacyForceObservedAttributes}static get importMeta(){return this.prototype.importMeta}created(){}__attributeReaction(e,t,s){(this.__dataAttributes&&this.__dataAttributes[e]||e===nt)&&this.attributeChangedCallback(e,t,s,null)}setAttribute(e,t){if(k&&!this._legacyForceObservedAttributes){const s=this.getAttribute(e);super.setAttribute(e,t),this.__attributeReaction(e,s,String(t))}else super.setAttribute(e,t)}removeAttribute(e){if(k&&!this._legacyForceObservedAttributes){const t=this.getAttribute(e);super.removeAttribute(e),this.__attributeReaction(e,t,null)}else super.removeAttribute(e)}static get observedAttributes(){return k&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],g(this.prototype)),this.__observedAttributes):i.call(this).concat(nt)}_enableProperties(){this.__isUpgradeDisabled||super._enableProperties()}_canApplyPropertyDefault(e){return super._canApplyPropertyDefault(e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))}connectedCallback(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(super.connectedCallback(),this.isAttached=!0,this.attached())}attached(){}disconnectedCallback(){this.__isUpgradeDisabled||(super.disconnectedCallback(),this.isAttached=!1,this.detached())}detached(){}attributeChangedCallback(e,t,s,i){t!==s&&(e==nt?this.__isUpgradeDisabled&&null==s&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,_(this).isConnected&&this.connectedCallback()):(super.attributeChangedCallback(e,t,s,i),this.attributeChanged(e,t,s)))}attributeChanged(e,t,s){}_initializeProperties(){if(N&&this.hasAttribute(nt))this.__isUpgradeDisabled=!0;else{let e=Object.getPrototypeOf(this);e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))||(this._registered(),e.__hasRegisterFinished=!0),super._initializeProperties(),this.root=this,this.created(),k&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}_takeAttributes(){const e=this.attributes;for(let t=0,s=e.length;t<s;t++){const s=e[t];this.__attributeReaction(s.name,null,s.value)}}_registered(){}ready(){this._ensureAttributes(),super.ready()}_ensureAttributes(){}_applyListeners(){}serialize(e){return this._serializeValue(e)}deserialize(e,t){return this._deserializeValue(e,t)}reflectPropertyToAttribute(e,t,s){this._propertyToAttribute(e,t,s)}serializeValueToAttribute(e,t,s){this._valueToNodeAttribute(s||this,e,t)}extend(e,t){if(!e||!t)return e||t;let s=Object.getOwnPropertyNames(t);for(let i,n=0;n<s.length&&(i=s[n]);n++){let s=Object.getOwnPropertyDescriptor(t,i);s&&Object.defineProperty(e,i,s)}return e}mixin(e,t){for(let s in t)e[s]=t[s];return e}chainObject(e,t){return e&&t&&e!==t&&(e.__proto__=t),e}instanceTemplate(e){let t=this.constructor._contentForTemplate(e);return document.importNode(t,!0)}fire(e,t,s){s=s||{},t=null==t?{}:t;let i=new Event(e,{bubbles:void 0===s.bubbles||s.bubbles,cancelable:Boolean(s.cancelable),composed:void 0===s.composed||s.composed});i.detail=t;let n=s.node||this;return _(n).dispatchEvent(i),i}listen(e,t,s){e=e||this;let i=this.__boundListeners||(this.__boundListeners=new WeakMap),n=i.get(e);n||(n={},i.set(e,n));let r=t+s;n[r]||(n[r]=this._addMethodEventListenerToNode(e,t,s,this))}unlisten(e,t,s){e=e||this;let i=this.__boundListeners&&this.__boundListeners.get(e),n=t+s,r=i&&i[n];r&&(this._removeEventListenerFromNode(e,t,r),i[n]=null)}setScrollDirection(e,t){b(t||this,n[e]||"auto")}$$(e){return this.root.querySelector(e)}get domHost(){let e=_(this).getRootNode();return e instanceof DocumentFragment?e.host:e}distributeContent(){const e=We(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()}getEffectiveChildNodes(){return We(this).getEffectiveChildNodes()}queryDistributedElements(e){return We(this).queryDistributedElements(e)}getEffectiveChildren(){return this.getEffectiveChildNodes().filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}getEffectiveTextContent(){let e=this.getEffectiveChildNodes(),t=[];for(let s,i=0;s=e[i];i++)s.nodeType!==Node.COMMENT_NODE&&t.push(s.textContent);return t.join("")}queryEffectiveChildren(e){let t=this.queryDistributedElements(e);return t&&t[0]}queryAllEffectiveChildren(e){return this.queryDistributedElements(e)}getContentChildNodes(e){let t=this.root.querySelector(e||"slot");return t?We(t).getDistributedNodes():[]}getContentChildren(e){return this.getContentChildNodes(e).filter((function(e){return e.nodeType===Node.ELEMENT_NODE}))}isLightDescendant(e){const t=this;return t!==e&&_(t).contains(e)&&_(t).getRootNode()===_(e).getRootNode()}isLocalDescendant(e){return this.root===_(e).getRootNode()}scopeSubtree(e,t=!1){return function(e,t=!1){if(!Qe||!Ze)return null;if(!Qe.handlesDynamicScoping)return null;const s=Ze.ScopingShim;if(!s)return null;const i=s.scopeForNode(e),n=_(e).getRootNode(),r=e=>{if(!et(e,n))return;const t=Array.from(Qe.nativeMethods.querySelectorAll.call(e,"*"));t.push(e);for(let e=0;e<t.length;e++){const r=t[e];if(!et(r,n))continue;const o=s.currentScopeForNode(r);o!==i&&(""!==o&&s.unscopeNode(r,o),s.scopeNode(r,i))}};if(r(e),t){const t=new MutationObserver((e=>{for(let t=0;t<e.length;t++){const s=e[t];for(let e=0;e<s.addedNodes.length;e++){const t=s.addedNodes[e];t.nodeType===Node.ELEMENT_NODE&&r(t)}}}));return t.observe(e,{childList:!0,subtree:!0}),t}return null}(e,t)}getComputedStyleValue(e){return rt.getComputedStyleValue(this,e)}debounce(e,t,s){return this._debouncers=this._debouncers||{},this._debouncers[e]=C.debounce(this._debouncers[e],s>0?v.after(s):p,t.bind(this))}isDebouncerActive(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];return!(!t||!t.isActive())}flushDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.flush()}cancelDebouncer(e){this._debouncers=this._debouncers||{};let t=this._debouncers[e];t&&t.cancel()}async(e,t){return t>0?v.run(e.bind(this),t):~p.run(e.bind(this))}cancelAsync(e){e<0?p.cancel(~e):v.cancel(e)}create(e,t){let s=document.createElement(e);if(t)if(s.setProperties)s.setProperties(t);else for(let e in t)s[e]=t[e];return s}elementMatches(e,t){return Ve(t||this,e)}toggleAttribute(e,t){let s=this;return 3===arguments.length&&(s=arguments[2]),1==arguments.length&&(t=!s.hasAttribute(e)),t?(_(s).setAttribute(e,""),!0):(_(s).removeAttribute(e),!1)}toggleClass(e,t,s){s=s||this,1==arguments.length&&(t=!s.classList.contains(e)),t?s.classList.add(e):s.classList.remove(e)}transform(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}translate3d(e,t,s,i){i=i||this,this.transform("translate3d("+e+","+t+","+s+")",i)}arrayDelete(e,t){let s;if(Array.isArray(e)){if(s=e.indexOf(t),s>=0)return e.splice(s,1)}else{if(s=x(this,e).indexOf(t),s>=0)return this.splice(e,s,1)}return null}_logger(e,t){switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":console[e](...t)}}_log(...e){this._logger("log",e)}_warn(...e){this._logger("warn",e)}_error(...e){this._logger("error",e)}_logf(e,...t){return["[%s::%s]",this.is,e,...t]}}return r.prototype.is="",r})),lt={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},at={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},ht=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},at);
137
- /**
138
- @license
139
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
140
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
141
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
142
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
143
- Code distributed by Google as part of the polymer project is also
144
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
145
- */function ct(e,t){return ft({},ot(t),e)}function dt(e,t,s,i){!function(e,t,s){const i=e._noAccessors,n=Object.getOwnPropertyNames(e);for(let r=0;r<n.length;r++){let o=n[r];if(!(o in s))if(i)t[o]=e[o];else{let s=Object.getOwnPropertyDescriptor(e,o);s&&(s.configurable=!0,Object.defineProperty(t,o,s))}}}(t,e,i);for(let e in lt)t[e]&&(s[e]=s[e]||[],s[e].push(t[e]))}function ut(e,t,s){t=t||[];for(let i=e.length-1;i>=0;i--){let n=e[i];n?Array.isArray(n)?ut(n,t):t.indexOf(n)<0&&(!s||s.indexOf(n)<0)&&t.unshift(n):console.warn("behavior is null, check for missing or 404 import")}return t}function _t(e,t){for(const s in t){const i=e[s],n=t[s];e[s]=!("value"in n)&&i&&"value"in i?Object.assign({value:i.value},n):n}}const pt=ot(HTMLElement);function ft(e,t,s){let i;const n={};class r extends t{static _finalizeClass(){if(this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this))){if(i)for(let e,t=0;t<i.length;t++)e=i[t],e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties);e.properties&&this.createProperties(e.properties),e.observers&&this.createObservers(e.observers,e.properties),this._prepareTemplate()}else t._finalizeClass.call(this)}static get properties(){const t={};if(i)for(let e=0;e<i.length;e++)_t(t,i[e].properties);return _t(t,e.properties),t}static get observers(){let t=[];if(i)for(let e,s=0;s<i.length;s++)e=i[s],e.observers&&(t=t.concat(e.observers));return e.observers&&(t=t.concat(e.observers)),t}created(){super.created();const e=n.created;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}_registered(){const e=r.prototype;if(!e.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",e))){e.__hasRegisterFinished=!0,super._registered(),N&&o(e);const t=Object.getPrototypeOf(this);let s=n.beforeRegister;if(s)for(let e=0;e<s.length;e++)s[e].call(t);if(s=n.registered,s)for(let e=0;e<s.length;e++)s[e].call(t)}}_applyListeners(){super._applyListeners();const e=n.listeners;if(e)for(let t=0;t<e.length;t++){const s=e[t];if(s)for(let e in s)this._addMethodEventListenerToNode(this,e,s[e])}}_ensureAttributes(){const e=n.hostAttributes;if(e)for(let t=e.length-1;t>=0;t--){const s=e[t];for(let e in s)this._ensureAttribute(e,s[e])}super._ensureAttributes()}ready(){super.ready();let e=n.ready;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attached(){super.attached();let e=n.attached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}detached(){super.detached();let e=n.detached;if(e)for(let t=0;t<e.length;t++)e[t].call(this)}attributeChanged(e,t,s){super.attributeChanged();let i=n.attributeChanged;if(i)for(let n=0;n<i.length;n++)i[n].call(this,e,t,s)}}if(s){Array.isArray(s)||(s=[s]);let e=t.prototype.behaviors;i=ut(s,null,e),r.prototype.behaviors=e?e.concat(s):i}const o=t=>{i&&function(e,t,s){for(let i=0;i<t.length;i++)dt(e,t[i],s,ht)}(t,i,n),dt(t,e,n,at)};return N||o(r.prototype),r.generatedFrom=e,r}const mt=function(e){let t;return t="function"==typeof e?e:mt.Class(e),e._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(t.is,t),t};
146
- /**
147
- @license
148
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
149
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
150
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
151
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
152
- Code distributed by Google as part of the polymer project is also
153
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
154
- */
155
- /**
156
- @license
157
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
158
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
159
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
160
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
161
- Code distributed by Google as part of the polymer project is also
162
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
163
- */
164
- function yt(e,t,s,i,n){let r;n&&(r="object"==typeof s&&null!==s,r&&(i=e.__dataTemp[t]));let o=i!==s&&(i==i||s==s);return r&&o&&(e.__dataTemp[t]=s),o}mt.Class=function(e,t){e||console.warn("Polymer.Class requires `info` argument");let s=t?t(pt):pt;return s=ft(e,s,e.behaviors),s.is=s.prototype.is=e.is,s};const gt=d((e=>class extends e{_shouldPropertyChange(e,t,s){return yt(this,e,t,s,!0)}})),bt=d((e=>class extends e{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(e,t,s){return yt(this,e,t,s,this.mutableData)}}));gt._mutablePropertyChange=yt;
165
- /**
166
- @license
167
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
168
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
169
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
170
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
171
- Code distributed by Google as part of the polymer project is also
172
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
173
- */
174
- let Ct=null;function vt(){return Ct}vt.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:vt,writable:!0}});const xt=w(vt),wt=gt(xt);const St=w(class{});function Pt(e,t){for(let s=0;s<t.length;s++){let i=t[s];if(Boolean(e)!=Boolean(i.__hideTemplateChildren__))if(i.nodeType===Node.TEXT_NODE)e?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if("slot"===i.localName)if(e)i.__polymerReplaced__=document.createComment("hidden-slot"),_(_(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const e=i.__polymerReplaced__;e&&_(_(e).parentNode).replaceChild(i,e)}else i.style&&(e?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=e,i._showHideChildren&&i._showHideChildren(e)}}class Et extends St{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let e=this.root.firstChild;e;e=e.nextSibling)t.push(e),e.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let s=this.__templatizeOptions;(e&&s.instanceProps||!s.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,s){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,(e=>{e.model=this,s(e)}));else{let i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,s)}}_showHideChildren(e){Pt(e,this.children)}_setUnmanagedPropertyToNode(e,t,s){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=s:super._setUnmanagedPropertyToNode(e,t,s)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Et.prototype.__dataHost,Et.prototype.__templatizeOptions,Et.prototype._methodHost,Et.prototype.__templatizeOwner,Et.prototype.__hostProps;const It=gt(Et);function Ot(e){let t=e.__dataHost;return t&&t._methodHost||t}function At(e,t,s){let i=s.mutableData?It:Et;Mt.mixin&&(i=Mt.mixin(i));let n=class extends i{};return n.prototype.__templatizeOptions=s,n.prototype._bindTemplate(e),function(e,t,s,i){let n=s.hostProps||{};for(let t in i.instanceProps){delete n[t];let s=i.notifyInstanceProp;s&&e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Tt(t,s)})}if(i.forwardHostProp&&t.__dataHost)for(let t in n)s.hasHostProps||(s.hasHostProps=!0),e.prototype._addPropertyEffect(t,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,s){e.__dataHost._setPendingPropertyOrPath("_host_"+t,s[t],!0,!0)}})}(n,e,t,s),n}function kt(e,t,s,i){let n=s.forwardHostProp;if(n&&t.hasHostProps){const r="template"==e.localName;let o=t.templatizeTemplateClass;if(!o){if(r){let e=s.mutableData?wt:xt;class i extends e{}o=t.templatizeTemplateClass=i}else{const s=e.constructor;class i extends s{}o=t.templatizeTemplateClass=i}let l=t.hostProps;for(let e in l)o.prototype._addPropertyEffect("_host_"+e,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Nt(e,n)}),o.prototype._createNotifyingProperty("_host_"+e);M&&i&&function(e,t,s){const i=s.constructor._properties,{propertyEffects:n}=e,{instanceProps:r}=t;for(let e in n)if(!(i[e]||r&&r[e])){const t=n[e];for(let s=0;s<t.length;s++){const{part:i}=t[s].info;if(!i.signature||!i.signature.static){console.warn(`Property '${e}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(t,s,i)}if(e.__dataProto&&Object.assign(e.__data,e.__dataProto),r)!function(e,t){Ct=e,Object.setPrototypeOf(e,t.prototype),new t,Ct=null}(e,o),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties();else{Object.setPrototypeOf(e,o.prototype);const s=t.hostProps;for(let t in s)if(t="_host_"+t,t in e){const s=e[t];delete e[t],e.__data[t]=s}}}}function Nt(e,t){return function(e,s,i){t.call(e.__templatizeOwner,s.substring(6),i[s])}}function Tt(e,t){return function(e,s,i){t.call(e.__templatizeOwner,e,s,i[s])}}function Mt(e,t,s){if(T&&!Ot(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(s=s||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;let i=(t?t.constructor:Et)._parseTemplate(e),n=i.templatizeInstanceClass;n||(n=At(e,i,s),i.templatizeInstanceClass=n);const r=Ot(e);kt(e,i,s,r);let o=class extends n{};return o.prototype._methodHost=r,o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=i.hostProps,o}function Dt(e,t){let s;for(;t;)if(s=t.__dataHost?t:t.__templatizeInstance){if(s.__dataHost==e)return s;t=s.__dataHost}else t=_(t).parentNode;return null}
175
- /**
176
- @license
177
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
178
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
179
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
180
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
181
- Code distributed by Google as part of the polymer project is also
182
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
183
- */let Rt=!1;function Ft(){if(N&&!D){if(!Rt){Rt=!0;const e=document.createElement("style");e.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(e)}return!0}return!1}
184
- /**
185
- @license
186
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
187
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
188
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
189
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
190
- Code distributed by Google as part of the polymer project is also
191
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
192
- */const Lt=m(bt(w(HTMLElement)));customElements.define("dom-bind",class extends Lt{static get observedAttributes(){return["mutable-data"]}constructor(){if(super(),T)throw new Error("strictTemplatePolicy: dom-bind not allowed");this.root=null,this.$=null,this.__children=null}attributeChangedCallback(e,t,s,i){this.mutableData=!0}connectedCallback(){Ft()||(this.style.display="none"),this.render()}disconnectedCallback(){this.__removeChildren()}__insertChildren(){_(_(this).parentNode).insertBefore(this.root,this)}__removeChildren(){if(this.__children)for(let e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}render(){let e;if(!this.__children){if(e=e||this.querySelector("template"),!e){let t=new MutationObserver((()=>{if(e=this.querySelector("template"),!e)throw new Error("dom-bind requires a <template> child");t.disconnect(),this.render()}));return void t.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(let e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}});
193
- /**
194
- @license
195
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
196
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
197
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
198
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
199
- Code distributed by Google as part of the polymer project is also
200
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
201
- */
202
- const Ht=bt(S);class jt extends Ht{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!R,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Ft()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=_(_(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}let s={};s[this.as]=!0,s[this.indexAs]=!0,s[this.itemsIndexAs]=!0,this.__ctor=Mt(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:s,forwardHostProp:function(e,t){let s=this.__instances;for(let i,n=0;n<s.length&&(i=s[n]);n++)i.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,s){if(P(this.as,t)){let i=e[this.itemsIndexAs];t==this.as&&(this.items[i]=s);let n=E(this.as,`${JSCompiler_renameProperty("items",this)}.${i}`,t);this.notifyPath(n,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if("string"==typeof e){let t=e,s=this.__getMethodHost();return function(){return s[t].apply(s,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths){let t=this.__observePaths;for(let s=0;s<t.length;s++)0===e.indexOf(t[s])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||("items"===e.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=C.debounce(this.__renderDebouncer,t>0?v.after(t):p,e.bind(this)),I(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),L()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),s=this.__calculateLimit(t.length);this.__updateInstances(e,s,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),R&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let s=0;s<e.length;s++)t[s]=s;return this.__filterFn&&(t=t.filter(((t,s,i)=>this.__filterFn(e[t],s,i)))),this.__sortFn&&t.sort(((t,s)=>this.__sortFn(e[t],e[s]))),t}__calculateLimit(e){let t=e;const s=this.__instances.length;if(this.initialCount){let i;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),i=Math.max(t-s,0),this.__chunkCount=i||1):(i=Math.min(Math.max(e-s,0),this.__chunkCount),t=Math.min(s+i,e)),this.__shouldMeasureChunk=i===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,s){const i=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let t=this.__instances[n],r=s[n],o=e[r];i[r]=n,t?(t._setPendingProperty(this.as,o),t._setPendingProperty(this.indexAs,n),t._setPendingProperty(this.itemsIndexAs,r),t._flushProperties()):this.__insertInstance(o,n,r)}for(let e=this.__instances.length-1;e>=n;e--)this.__detachAndRemoveInstance(e)}__detachInstance(e){let t=this.__instances[e];const s=_(t.root);for(let e=0;e<t.children.length;e++){let i=t.children[e];s.appendChild(i)}return t}__attachInstance(e,t){let s=this.__instances[e];t.insertBefore(s.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,s){let i={};return i[this.as]=e,i[this.indexAs]=t,i[this.itemsIndexAs]=s,new this.__ctor(i)}__insertInstance(e,t,s){const i=this.__stampInstance(e,t,s);let n=this.__instances[t+1],r=n?n.children[0]:this;return _(_(this).parentNode).insertBefore(i.root,r),this.__instances[t]=i,i}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let s=e.slice(6),i=s.indexOf("."),n=i<0?s:s.substring(0,i);if(n==parseInt(n,10)){let e=i<0?"":s.substring(i+1);this.__handleObservedPaths(e);let r=this.__itemsIdxToInstIdx[n],o=this.__instances[r];if(o){let s=this.as+(e?"."+e:"");o._setPendingPropertyOrPath(s,t,!1,!0),o._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Dt(this.template,e)}}customElements.define(jt.is,jt);
203
- /**
204
- @license
205
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
206
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
207
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
208
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
209
- Code distributed by Google as part of the polymer project is also
210
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
211
- */
212
- class zt extends S{static get is(){return"dom-if"}static get template(){return null}static get properties(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}constructor(){super(),this.__renderDebouncer=null,this._lastIf=!1,this.__hideTemplateChildren__=!1,this.__template,this._templateInfo}__debounceRender(){this.__renderDebouncer=C.debounce(this.__renderDebouncer,p,(()=>this.__render())),I(this.__renderDebouncer)}disconnectedCallback(){super.disconnectedCallback();const e=_(this).parentNode;e&&(e.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||_(e).host)||this.__teardownInstance()}connectedCallback(){super.connectedCallback(),Ft()||(this.style.display="none"),this.if&&this.__debounceRender()}__ensureTemplate(){if(!this.__template){const e=this;let t=e._templateInfo?e:_(e).querySelector("template");if(!t){let e=new MutationObserver((()=>{if(!_(this).querySelector("template"))throw new Error("dom-if requires a <template> child");e.disconnect(),this.__render()}));return e.observe(this,{childList:!0}),!1}this.__template=t}return!0}__ensureInstance(){let e=_(this).parentNode;if(this.__hasInstance()){let t=this.__getInstanceNodes();if(t&&t.length){if(_(this).previousSibling!==t[t.length-1])for(let s,i=0;i<t.length&&(s=t[i]);i++)_(e).insertBefore(s,this)}}else{if(!e)return!1;if(!this.__ensureTemplate())return!1;this.__createAndInsertInstance(e)}return!0}render(){L()}__render(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),R&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}__hasInstance(){}__getInstanceNodes(){}__createAndInsertInstance(e){}__teardownInstance(){}_showHideChildren(){}}const Bt=F?class extends zt{constructor(){super(),this.__instance=null,this.__syncInfo=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.templateInfo.childNodes}__createAndInsertInstance(e){const t=this.__dataHost||this;if(T&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");const s=t._bindTemplate(this.__template,!0);s.runEffects=(e,t,s)=>{let i=this.__syncInfo;if(this.if)i&&(this.__syncInfo=null,this._showHideChildren(),t=Object.assign(i.changedProps,t)),e(t,s);else if(this.__instance)if(i||(i=this.__syncInfo={runEffects:e,changedProps:{}}),s)for(const e in t){const t=O(e);i.changedProps[t]=this.__dataHost[t]}else Object.assign(i.changedProps,t)},this.__instance=t._stampTemplate(this.__template,s),_(e).insertBefore(this.__instance,this)}__syncHostProperties(){const e=this.__syncInfo;e&&(this.__syncInfo=null,e.runEffects(e.changedProps,!1))}__teardownInstance(){const e=this.__dataHost||this;this.__instance&&(e._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,Pt(e,this.__instance.templateInfo.childNodes)),e||this.__syncHostProperties()}}:class extends zt{constructor(){super(),this.__ctor=null,this.__instance=null,this.__invalidProps=null}__hasInstance(){return Boolean(this.__instance)}__getInstanceNodes(){return this.__instance.children}__createAndInsertInstance(e){this.__ctor||(this.__ctor=Mt(this.__template,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[O(e)]=!0))}})),this.__instance=new this.__ctor,_(e).insertBefore(this.__instance.root,this)}__teardownInstance(){if(this.__instance){let e=this.__instance.children;if(e&&e.length){let t=_(e[0]).parentNode;if(t){t=_(t);for(let s,i=0;i<e.length&&(s=e[i]);i++)t.removeChild(s)}}this.__invalidProps=null,this.__instance=null}}__syncHostProperties(){let e=this.__invalidProps;if(e){this.__invalidProps=null;for(let t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}}_showHideChildren(){const e=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==e&&(this.__instance.__hidden=e,this.__instance._showHideChildren(e)),e||this.__syncHostProperties()}};customElements.define(Bt.is,Bt);
213
- /**
214
- @license
215
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
216
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
217
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
218
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
219
- Code distributed by Google as part of the polymer project is also
220
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
221
- */
222
- let $t,Ut=d((e=>{let t=f(e);return class extends t{static get properties(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}static get observers(){return["__updateSelection(multi, items.*)"]}constructor(){super(),this.__lastItems=null,this.__lastMulti=null,this.__selectedMap=null}__updateSelection(e,t){let s=t.path;if(s==JSCompiler_renameProperty("items",this)){let s=t.base||[],i=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),i){let e=ze(s,i);this.__applySplices(e)}this.__lastItems=s,this.__lastMulti=e}else if(t.path==`${JSCompiler_renameProperty("items",this)}.splices`)this.__applySplices(t.value.indexSplices);else{let e=s.slice(`${JSCompiler_renameProperty("items",this)}.`.length),t=parseInt(e,10);e.indexOf(".")<0&&e==t&&this.__deselectChangedIdx(t)}}__applySplices(e){let t=this.__selectedMap;for(let s=0;s<e.length;s++){let i=e[s];t.forEach(((e,s)=>{e<i.index||(e>=i.index+i.removed.length?t.set(s,e+i.addedCount-i.removed.length):t.set(s,-1))}));for(let e=0;e<i.addedCount;e++){let s=i.index+e;t.has(this.items[s])&&t.set(this.items[s],s)}}this.__updateLinks();let s=0;t.forEach(((e,i)=>{e<0?(this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null,t.delete(i)):s++}))}__updateLinks(){if(this.__dataLinkedPaths={},this.multi){let e=0;this.__selectedMap.forEach((t=>{t>=0&&this.linkPaths(`${JSCompiler_renameProperty("items",this)}.${t}`,`${JSCompiler_renameProperty("selected",this)}.${e++}`)}))}else this.__selectedMap.forEach((e=>{this.linkPaths(JSCompiler_renameProperty("selected",this),`${JSCompiler_renameProperty("items",this)}.${e}`),this.linkPaths(JSCompiler_renameProperty("selectedItem",this),`${JSCompiler_renameProperty("items",this)}.${e}`)}))}clearSelection(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}isSelected(e){return this.__selectedMap.has(e)}isIndexSelected(e){return this.isSelected(this.items[e])}__deselectChangedIdx(e){let t=this.__selectedIndexForItemIndex(e);if(t>=0){let e=0;this.__selectedMap.forEach(((s,i)=>{t==e++&&this.deselect(i)}))}}__selectedIndexForItemIndex(e){let t=this.__dataLinkedPaths[`${JSCompiler_renameProperty("items",this)}.${e}`];if(t)return parseInt(t.slice(`${JSCompiler_renameProperty("selected",this)}.`.length),10)}deselect(e){let t=this.__selectedMap.get(e);if(t>=0){let s;this.__selectedMap.delete(e),this.multi&&(s=this.__selectedIndexForItemIndex(t)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),s,1):this.selected=this.selectedItem=null}}deselectIndex(e){this.deselect(this.items[e])}select(e){this.selectIndex(this.items.indexOf(e))}selectIndex(e){let t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),t):this.selected=this.selectedItem=t)}}}))(S);class qt extends Ut{static get is(){return"array-selector"}static get template(){return null}}customElements.define(qt.is,qt),$t=gt._mutablePropertyChange;const Jt={properties:{mutableData:Boolean},_shouldPropertyChange(e,t,s){return $t(this,e,t,s,this.mutableData)}},Vt=ot(HTMLElement).prototype,Yt=A`
223
- <custom-style>
224
- <style is="custom-style">
225
- [hidden] {
226
- display: none !important;
227
- }
228
- </style>
229
- </custom-style>
230
- <custom-style>
231
- <style is="custom-style">
232
- html {
233
-
234
- --layout: {
235
- display: -ms-flexbox;
236
- display: -webkit-flex;
237
- display: flex;
238
- };
239
-
240
- --layout-inline: {
241
- display: -ms-inline-flexbox;
242
- display: -webkit-inline-flex;
243
- display: inline-flex;
244
- };
245
-
246
- --layout-horizontal: {
247
- @apply --layout;
248
-
249
- -ms-flex-direction: row;
250
- -webkit-flex-direction: row;
251
- flex-direction: row;
252
- };
253
-
254
- --layout-horizontal-reverse: {
255
- @apply --layout;
256
-
257
- -ms-flex-direction: row-reverse;
258
- -webkit-flex-direction: row-reverse;
259
- flex-direction: row-reverse;
260
- };
261
-
262
- --layout-vertical: {
263
- @apply --layout;
264
-
265
- -ms-flex-direction: column;
266
- -webkit-flex-direction: column;
267
- flex-direction: column;
268
- };
269
-
270
- --layout-vertical-reverse: {
271
- @apply --layout;
272
-
273
- -ms-flex-direction: column-reverse;
274
- -webkit-flex-direction: column-reverse;
275
- flex-direction: column-reverse;
276
- };
277
-
278
- --layout-wrap: {
279
- -ms-flex-wrap: wrap;
280
- -webkit-flex-wrap: wrap;
281
- flex-wrap: wrap;
282
- };
283
-
284
- --layout-wrap-reverse: {
285
- -ms-flex-wrap: wrap-reverse;
286
- -webkit-flex-wrap: wrap-reverse;
287
- flex-wrap: wrap-reverse;
288
- };
289
-
290
- --layout-flex-auto: {
291
- -ms-flex: 1 1 auto;
292
- -webkit-flex: 1 1 auto;
293
- flex: 1 1 auto;
294
- };
295
-
296
- --layout-flex-none: {
297
- -ms-flex: none;
298
- -webkit-flex: none;
299
- flex: none;
300
- };
301
-
302
- --layout-flex: {
303
- -ms-flex: 1 1 0.000000001px;
304
- -webkit-flex: 1;
305
- flex: 1;
306
- -webkit-flex-basis: 0.000000001px;
307
- flex-basis: 0.000000001px;
308
- };
309
-
310
- --layout-flex-2: {
311
- -ms-flex: 2;
312
- -webkit-flex: 2;
313
- flex: 2;
314
- };
315
-
316
- --layout-flex-3: {
317
- -ms-flex: 3;
318
- -webkit-flex: 3;
319
- flex: 3;
320
- };
321
-
322
- --layout-flex-4: {
323
- -ms-flex: 4;
324
- -webkit-flex: 4;
325
- flex: 4;
326
- };
327
-
328
- --layout-flex-5: {
329
- -ms-flex: 5;
330
- -webkit-flex: 5;
331
- flex: 5;
332
- };
333
-
334
- --layout-flex-6: {
335
- -ms-flex: 6;
336
- -webkit-flex: 6;
337
- flex: 6;
338
- };
339
-
340
- --layout-flex-7: {
341
- -ms-flex: 7;
342
- -webkit-flex: 7;
343
- flex: 7;
344
- };
345
-
346
- --layout-flex-8: {
347
- -ms-flex: 8;
348
- -webkit-flex: 8;
349
- flex: 8;
350
- };
351
-
352
- --layout-flex-9: {
353
- -ms-flex: 9;
354
- -webkit-flex: 9;
355
- flex: 9;
356
- };
357
-
358
- --layout-flex-10: {
359
- -ms-flex: 10;
360
- -webkit-flex: 10;
361
- flex: 10;
362
- };
363
-
364
- --layout-flex-11: {
365
- -ms-flex: 11;
366
- -webkit-flex: 11;
367
- flex: 11;
368
- };
369
-
370
- --layout-flex-12: {
371
- -ms-flex: 12;
372
- -webkit-flex: 12;
373
- flex: 12;
374
- };
375
-
376
- /* alignment in cross axis */
377
-
378
- --layout-start: {
379
- -ms-flex-align: start;
380
- -webkit-align-items: flex-start;
381
- align-items: flex-start;
382
- };
383
-
384
- --layout-center: {
385
- -ms-flex-align: center;
386
- -webkit-align-items: center;
387
- align-items: center;
388
- };
389
-
390
- --layout-end: {
391
- -ms-flex-align: end;
392
- -webkit-align-items: flex-end;
393
- align-items: flex-end;
394
- };
395
-
396
- --layout-baseline: {
397
- -ms-flex-align: baseline;
398
- -webkit-align-items: baseline;
399
- align-items: baseline;
400
- };
401
-
402
- /* alignment in main axis */
403
-
404
- --layout-start-justified: {
405
- -ms-flex-pack: start;
406
- -webkit-justify-content: flex-start;
407
- justify-content: flex-start;
408
- };
409
-
410
- --layout-center-justified: {
411
- -ms-flex-pack: center;
412
- -webkit-justify-content: center;
413
- justify-content: center;
414
- };
415
-
416
- --layout-end-justified: {
417
- -ms-flex-pack: end;
418
- -webkit-justify-content: flex-end;
419
- justify-content: flex-end;
420
- };
421
-
422
- --layout-around-justified: {
423
- -ms-flex-pack: distribute;
424
- -webkit-justify-content: space-around;
425
- justify-content: space-around;
426
- };
427
-
428
- --layout-justified: {
429
- -ms-flex-pack: justify;
430
- -webkit-justify-content: space-between;
431
- justify-content: space-between;
432
- };
433
-
434
- --layout-center-center: {
435
- @apply --layout-center;
436
- @apply --layout-center-justified;
437
- };
438
-
439
- /* self alignment */
440
-
441
- --layout-self-start: {
442
- -ms-align-self: flex-start;
443
- -webkit-align-self: flex-start;
444
- align-self: flex-start;
445
- };
446
-
447
- --layout-self-center: {
448
- -ms-align-self: center;
449
- -webkit-align-self: center;
450
- align-self: center;
451
- };
452
-
453
- --layout-self-end: {
454
- -ms-align-self: flex-end;
455
- -webkit-align-self: flex-end;
456
- align-self: flex-end;
457
- };
458
-
459
- --layout-self-stretch: {
460
- -ms-align-self: stretch;
461
- -webkit-align-self: stretch;
462
- align-self: stretch;
463
- };
464
-
465
- --layout-self-baseline: {
466
- -ms-align-self: baseline;
467
- -webkit-align-self: baseline;
468
- align-self: baseline;
469
- };
470
-
471
- /* multi-line alignment in main axis */
472
-
473
- --layout-start-aligned: {
474
- -ms-flex-line-pack: start; /* IE10 */
475
- -ms-align-content: flex-start;
476
- -webkit-align-content: flex-start;
477
- align-content: flex-start;
478
- };
479
-
480
- --layout-end-aligned: {
481
- -ms-flex-line-pack: end; /* IE10 */
482
- -ms-align-content: flex-end;
483
- -webkit-align-content: flex-end;
484
- align-content: flex-end;
485
- };
486
-
487
- --layout-center-aligned: {
488
- -ms-flex-line-pack: center; /* IE10 */
489
- -ms-align-content: center;
490
- -webkit-align-content: center;
491
- align-content: center;
492
- };
493
-
494
- --layout-between-aligned: {
495
- -ms-flex-line-pack: justify; /* IE10 */
496
- -ms-align-content: space-between;
497
- -webkit-align-content: space-between;
498
- align-content: space-between;
499
- };
500
-
501
- --layout-around-aligned: {
502
- -ms-flex-line-pack: distribute; /* IE10 */
503
- -ms-align-content: space-around;
504
- -webkit-align-content: space-around;
505
- align-content: space-around;
506
- };
507
-
508
- /*******************************
509
- Other Layout
510
- *******************************/
511
-
512
- --layout-block: {
513
- display: block;
514
- };
515
-
516
- --layout-invisible: {
517
- visibility: hidden !important;
518
- };
519
-
520
- --layout-relative: {
521
- position: relative;
522
- };
523
-
524
- --layout-fit: {
525
- position: absolute;
526
- top: 0;
527
- right: 0;
528
- bottom: 0;
529
- left: 0;
530
- };
531
-
532
- --layout-scroll: {
533
- -webkit-overflow-scrolling: touch;
534
- overflow: auto;
535
- };
536
-
537
- --layout-fullbleed: {
538
- margin: 0;
539
- height: 100vh;
540
- };
541
-
542
- /* fixed position */
543
-
544
- --layout-fixed-top: {
545
- position: fixed;
546
- top: 0;
547
- left: 0;
548
- right: 0;
549
- };
550
-
551
- --layout-fixed-right: {
552
- position: fixed;
553
- top: 0;
554
- right: 0;
555
- bottom: 0;
556
- };
557
-
558
- --layout-fixed-bottom: {
559
- position: fixed;
560
- right: 0;
561
- bottom: 0;
562
- left: 0;
563
- };
564
-
565
- --layout-fixed-left: {
566
- position: fixed;
567
- top: 0;
568
- bottom: 0;
569
- left: 0;
570
- };
571
-
572
- }
573
- </style>
574
- </custom-style>`;
575
- /**
576
- @license
577
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
578
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
579
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
580
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
581
- Code distributed by Google as part of the polymer project is also
582
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
583
- */Yt.setAttribute("style","display: none;"),document.head.appendChild(Yt.content);var Kt=document.createElement("style");Kt.textContent="[hidden] { display: none !important; }",document.head.appendChild(Kt);
584
- /**
585
- @license
586
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
587
- This code may only be used under the BSD style license found at
588
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
589
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
590
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
591
- part of the polymer project is also subject to an additional IP rights grant
592
- found at http://polymer.github.io/PATENTS.txt
593
- */
594
- class Gt{constructor(e){Gt[" "](e),this.type=e&&e.type||"default",this.key=e&&e.key,e&&"value"in e&&(this.value=e.value)}get value(){var e=this.type,t=this.key;if(e&&t)return Gt.types[e]&&Gt.types[e][t]}set value(e){var t=this.type,s=this.key;t&&s&&(t=Gt.types[t]=Gt.types[t]||{},null==e?delete t[s]:t[s]=e)}get list(){if(this.type){var e=Gt.types[this.type];return e?Object.keys(e).map((function(e){return Xt[this.type][e]}),this):[]}}byKey(e){return this.key=e,this.value}}Gt[" "]=function(){},Gt.types={};var Xt=Gt.types;mt({is:"iron-meta",properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(e,t,s){var i=new Gt({type:e,key:t});return void 0!==s&&s!==i.value?i.value=s:this.value!==i.value&&(this.value=i.value),i},get list(){return this.__meta&&this.__meta.list},_selfChanged:function(e){e&&(this.value=this)},byKey:function(e){return new Gt({type:this.type,key:e}).value}}),
595
- /**
596
- @license
597
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
598
- This code may only be used under the BSD style license found at
599
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
600
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
601
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
602
- part of the polymer project is also subject to an additional IP rights grant
603
- found at http://polymer.github.io/PATENTS.txt
604
- */
605
- mt({_template:A`
606
- <style>
607
- :host {
608
- @apply --layout-inline;
609
- @apply --layout-center-center;
610
- position: relative;
611
-
612
- vertical-align: middle;
613
-
614
- fill: var(--iron-icon-fill-color, currentcolor);
615
- stroke: var(--iron-icon-stroke-color, none);
616
-
617
- width: var(--iron-icon-width, 24px);
618
- height: var(--iron-icon-height, 24px);
619
- @apply --iron-icon;
620
- }
621
-
622
- :host([hidden]) {
623
- display: none;
624
- }
625
- </style>
626
- `,is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:Vt.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&We(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,We(this.root).appendChild(this._img))}}),
627
- /**
628
- @license
629
- Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
630
- This code may only be used under the BSD style license found at
631
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
632
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
633
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
634
- part of the polymer project is also subject to an additional IP rights grant
635
- found at http://polymer.github.io/PATENTS.txt
636
- */
637
- mt({is:"iron-iconset-svg",properties:{name:{type:String,observer:"_nameChanged"},size:{type:Number,value:24},rtlMirroring:{type:Boolean,value:!1},useGlobalRtlAttribute:{type:Boolean,value:!1}},created:function(){this._meta=new Gt({type:"iconset",key:null,value:null})},attached:function(){this.style.display="none"},getIconNames:function(){return this._icons=this._createIconMap(),Object.keys(this._icons).map((function(e){return this.name+":"+e}),this)},applyIcon:function(e,t){this.removeIcon(e);var s=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(e));if(s){var i=We(e.root||e);return i.insertBefore(s,i.childNodes[0]),e._svgIcon=s}return null},removeIcon:function(e){e._svgIcon&&(We(e.root||e).removeChild(e._svgIcon),e._svgIcon=null)},_targetIsRTL:function(e){if(null==this.__targetIsRTL)if(this.useGlobalRtlAttribute){var t=document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement;this.__targetIsRTL="rtl"===t.getAttribute("dir")}else e&&e.nodeType!==Node.ELEMENT_NODE&&(e=e.host),this.__targetIsRTL=e&&"rtl"===window.getComputedStyle(e).direction;return this.__targetIsRTL},_nameChanged:function(){this._meta.value=null,this._meta.key=this.name,this._meta.value=this,this.async((function(){this.fire("iron-iconset-added",this,{node:window})}))},_createIconMap:function(){var e=Object.create(null);return We(this).querySelectorAll("[id]").forEach((function(t){e[t.id]=t})),e},_cloneIcon:function(e,t){return this._icons=this._icons||this._createIconMap(),this._prepareSvgClone(this._icons[e],this.size,t)},_prepareSvgClone:function(e,t,s){if(e){var i=e.cloneNode(!0),n=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=i.getAttribute("viewBox")||"0 0 "+t+" "+t,o="pointer-events: none; display: block; width: 100%; height: 100%;";return s&&i.hasAttribute("mirror-in-rtl")&&(o+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;"),n.setAttribute("viewBox",r),n.setAttribute("preserveAspectRatio","xMidYMid meet"),n.setAttribute("focusable","false"),n.style.cssText=o,n.appendChild(i).removeAttribute("id"),n}return null}});export{it as D,Ue as F,Jt as O,mt as P,ct as a,We as d,L as f,Dt as m,Mt as t};