polymer-elements-rails 1.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (973) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +39 -0
  3. data/Rakefile +1 -0
  4. data/app/assets/components/gold-cc-cvc-input/README.md +24 -0
  5. data/app/assets/components/gold-cc-cvc-input/bower.json +39 -0
  6. data/app/assets/components/gold-cc-cvc-input/cvc_hint.png +0 -0
  7. data/app/assets/components/gold-cc-cvc-input/cvc_hint_amex.png +0 -0
  8. data/app/assets/components/gold-cc-cvc-input/demo/index.html +54 -0
  9. data/app/assets/components/gold-cc-cvc-input/gold-cc-cvc-input.html +195 -0
  10. data/app/assets/components/gold-cc-cvc-input/hero.svg +36 -0
  11. data/app/assets/components/gold-cc-cvc-input/index.html +26 -0
  12. data/app/assets/components/gold-cc-cvc-input/test/basic.html +125 -0
  13. data/app/assets/components/gold-cc-cvc-input/test/index.html +25 -0
  14. data/app/assets/components/gold-cc-expiration-input/README.md +10 -0
  15. data/app/assets/components/gold-cc-expiration-input/bower.json +40 -0
  16. data/app/assets/components/gold-cc-expiration-input/date-input.html +157 -0
  17. data/app/assets/components/gold-cc-expiration-input/date-validator.html +38 -0
  18. data/app/assets/components/gold-cc-expiration-input/demo/index.html +53 -0
  19. data/app/assets/components/gold-cc-expiration-input/gold-cc-expiration-input.html +131 -0
  20. data/app/assets/components/gold-cc-expiration-input/hero.svg +58 -0
  21. data/app/assets/components/gold-cc-expiration-input/index.html +28 -0
  22. data/app/assets/components/gold-cc-expiration-input/test/basic.html +126 -0
  23. data/app/assets/components/gold-cc-expiration-input/test/index.html +25 -0
  24. data/app/assets/components/gold-cc-input/README.md +9 -0
  25. data/app/assets/components/gold-cc-input/bower.json +39 -0
  26. data/app/assets/components/gold-cc-input/cc-validator.js +192 -0
  27. data/app/assets/components/gold-cc-input/demo/index.html +48 -0
  28. data/app/assets/components/gold-cc-input/gold-cc-input.html +215 -0
  29. data/app/assets/components/gold-cc-input/hero.svg +52 -0
  30. data/app/assets/components/gold-cc-input/images/amex.png +0 -0
  31. data/app/assets/components/gold-cc-input/images/diners_club.png +0 -0
  32. data/app/assets/components/gold-cc-input/images/discover.png +0 -0
  33. data/app/assets/components/gold-cc-input/images/jcb.png +0 -0
  34. data/app/assets/components/gold-cc-input/images/mastercard.png +0 -0
  35. data/app/assets/components/gold-cc-input/images/visa.png +0 -0
  36. data/app/assets/components/gold-cc-input/index.html +28 -0
  37. data/app/assets/components/gold-cc-input/test/basic.html +136 -0
  38. data/app/assets/components/gold-cc-input/test/index.html +25 -0
  39. data/app/assets/components/gold-elements/README.md +12 -0
  40. data/app/assets/components/gold-elements/bower.json +42 -0
  41. data/app/assets/components/gold-elements/demo/complex-form.html +127 -0
  42. data/app/assets/components/gold-elements/demo/index.html +94 -0
  43. data/app/assets/components/gold-elements/demo/item-card.html +59 -0
  44. data/app/assets/components/gold-elements/demo/simple-form.css +55 -0
  45. data/app/assets/components/gold-elements/demo/simple-form.html +93 -0
  46. data/app/assets/components/gold-elements/screenshot.png +0 -0
  47. data/app/assets/components/gold-email-input/README.md +8 -0
  48. data/app/assets/components/gold-email-input/bower.json +40 -0
  49. data/app/assets/components/gold-email-input/demo/index.html +46 -0
  50. data/app/assets/components/gold-email-input/email-validator.html +31 -0
  51. data/app/assets/components/gold-email-input/gold-email-input.html +108 -0
  52. data/app/assets/components/gold-email-input/hero.svg +59 -0
  53. data/app/assets/components/gold-email-input/index.html +28 -0
  54. data/app/assets/components/gold-email-input/test/basic.html +97 -0
  55. data/app/assets/components/gold-email-input/test/index.html +25 -0
  56. data/app/assets/components/gold-phone-input/README.md +13 -0
  57. data/app/assets/components/gold-phone-input/bower.json +39 -0
  58. data/app/assets/components/gold-phone-input/demo/index.html +53 -0
  59. data/app/assets/components/gold-phone-input/gold-phone-input.html +197 -0
  60. data/app/assets/components/gold-phone-input/hero.svg +63 -0
  61. data/app/assets/components/gold-phone-input/index.html +28 -0
  62. data/app/assets/components/gold-phone-input/test/basic.html +117 -0
  63. data/app/assets/components/gold-phone-input/test/index.html +25 -0
  64. data/app/assets/components/gold-zip-input/README.md +8 -0
  65. data/app/assets/components/gold-zip-input/bower.json +40 -0
  66. data/app/assets/components/gold-zip-input/demo/index.html +54 -0
  67. data/app/assets/components/gold-zip-input/gold-zip-input.html +113 -0
  68. data/app/assets/components/gold-zip-input/hero.svg +43 -0
  69. data/app/assets/components/gold-zip-input/index.html +28 -0
  70. data/app/assets/components/gold-zip-input/test/basic.html +116 -0
  71. data/app/assets/components/gold-zip-input/test/index.html +25 -0
  72. data/app/assets/components/gold-zip-input/zip-validator.html +32 -0
  73. data/app/assets/components/hydrolysis/API.md +360 -0
  74. data/app/assets/components/hydrolysis/LICENSE +5 -0
  75. data/app/assets/components/hydrolysis/README.md +36 -0
  76. data/app/assets/components/hydrolysis/bower.json +19 -0
  77. data/app/assets/components/hydrolysis/hydrolysis-analyzer.html +114 -0
  78. data/app/assets/components/hydrolysis/hydrolysis.html +10 -0
  79. data/app/assets/components/hydrolysis/hydrolysis.js +22258 -0
  80. data/app/assets/components/hydrolysis/index.js +27 -0
  81. data/app/assets/components/iron-a11y-announcer/README.md +29 -0
  82. data/app/assets/components/iron-a11y-announcer/bower.json +28 -0
  83. data/app/assets/components/iron-a11y-announcer/demo/index.html +40 -0
  84. data/app/assets/components/iron-a11y-announcer/demo/x-announces.html +50 -0
  85. data/app/assets/components/iron-a11y-announcer/index.html +28 -0
  86. data/app/assets/components/iron-a11y-announcer/iron-a11y-announcer.html +125 -0
  87. data/app/assets/components/iron-a11y-announcer/test/index.html +26 -0
  88. data/app/assets/components/iron-a11y-announcer/test/iron-a11y-announcer.html +59 -0
  89. data/app/assets/components/iron-a11y-keys-behavior/README.md +15 -0
  90. data/app/assets/components/iron-a11y-keys-behavior/bower.json +27 -0
  91. data/app/assets/components/iron-a11y-keys-behavior/demo/index.html +21 -0
  92. data/app/assets/components/iron-a11y-keys-behavior/demo/x-key-aware.html +69 -0
  93. data/app/assets/components/iron-a11y-keys-behavior/index.html +24 -0
  94. data/app/assets/components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html +418 -0
  95. data/app/assets/components/iron-a11y-keys-behavior/test/basic-test.html +248 -0
  96. data/app/assets/components/iron-a11y-keys-behavior/test/index.html +29 -0
  97. data/app/assets/components/iron-a11y-keys/README.md +3 -0
  98. data/app/assets/components/iron-a11y-keys/bower.json +28 -0
  99. data/app/assets/components/iron-a11y-keys/demo/index.html +21 -0
  100. data/app/assets/components/iron-a11y-keys/demo/x-key-aware.html +77 -0
  101. data/app/assets/components/iron-a11y-keys/index.html +24 -0
  102. data/app/assets/components/iron-a11y-keys/iron-a11y-keys.html +121 -0
  103. data/app/assets/components/iron-a11y-keys/test/basic-test.html +122 -0
  104. data/app/assets/components/iron-a11y-keys/test/index.html +29 -0
  105. data/app/assets/components/iron-ajax/README.md +23 -0
  106. data/app/assets/components/iron-ajax/bower.json +38 -0
  107. data/app/assets/components/iron-ajax/demo/index.html +45 -0
  108. data/app/assets/components/iron-ajax/index.html +26 -0
  109. data/app/assets/components/iron-ajax/iron-ajax.html +429 -0
  110. data/app/assets/components/iron-ajax/iron-request.html +272 -0
  111. data/app/assets/components/iron-ajax/test/index.html +25 -0
  112. data/app/assets/components/iron-ajax/test/iron-ajax.html +467 -0
  113. data/app/assets/components/iron-ajax/test/iron-request.html +175 -0
  114. data/app/assets/components/iron-autogrow-textarea/README.md +24 -0
  115. data/app/assets/components/iron-autogrow-textarea/bower.json +37 -0
  116. data/app/assets/components/iron-autogrow-textarea/demo/index.html +81 -0
  117. data/app/assets/components/iron-autogrow-textarea/hero.svg +33 -0
  118. data/app/assets/components/iron-autogrow-textarea/index.html +30 -0
  119. data/app/assets/components/iron-autogrow-textarea/iron-autogrow-textarea.html +263 -0
  120. data/app/assets/components/iron-autogrow-textarea/test/basic.html +94 -0
  121. data/app/assets/components/iron-autogrow-textarea/test/index.html +25 -0
  122. data/app/assets/components/iron-behaviors/README.md +4 -0
  123. data/app/assets/components/iron-behaviors/bower.json +26 -0
  124. data/app/assets/components/iron-behaviors/demo/index.html +47 -0
  125. data/app/assets/components/iron-behaviors/demo/simple-button.html +70 -0
  126. data/app/assets/components/iron-behaviors/index.html +27 -0
  127. data/app/assets/components/iron-behaviors/iron-button-state.html +186 -0
  128. data/app/assets/components/iron-behaviors/iron-control-state.html +107 -0
  129. data/app/assets/components/iron-behaviors/test/active-state.html +154 -0
  130. data/app/assets/components/iron-behaviors/test/disabled-state.html +85 -0
  131. data/app/assets/components/iron-behaviors/test/focused-state.html +120 -0
  132. data/app/assets/components/iron-behaviors/test/index.html +25 -0
  133. data/app/assets/components/iron-behaviors/test/test-elements.html +66 -0
  134. data/app/assets/components/iron-collapse/README.md +37 -0
  135. data/app/assets/components/iron-collapse/bower.json +31 -0
  136. data/app/assets/components/iron-collapse/demo/index.html +74 -0
  137. data/app/assets/components/iron-collapse/hero.svg +23 -0
  138. data/app/assets/components/iron-collapse/index.html +31 -0
  139. data/app/assets/components/iron-collapse/iron-collapse.html +196 -0
  140. data/app/assets/components/iron-collapse/test/basic.html +93 -0
  141. data/app/assets/components/iron-collapse/test/horizontal.html +91 -0
  142. data/app/assets/components/iron-collapse/test/index.html +31 -0
  143. data/app/assets/components/iron-component-page/README.md +6 -0
  144. data/app/assets/components/iron-component-page/bower.json +29 -0
  145. data/app/assets/components/iron-component-page/demo/index.html +27 -0
  146. data/app/assets/components/iron-component-page/demo/json-descriptor.json +1 -0
  147. data/app/assets/components/iron-component-page/index.html +25 -0
  148. data/app/assets/components/iron-component-page/iron-component-page.css +155 -0
  149. data/app/assets/components/iron-component-page/iron-component-page.html +440 -0
  150. data/app/assets/components/iron-component-page/test/index.html +28 -0
  151. data/app/assets/components/iron-component-page/test/iron-component-page.html +42 -0
  152. data/app/assets/components/iron-component-page/test/test-element.html +20 -0
  153. data/app/assets/components/iron-doc-viewer/README.md +3 -0
  154. data/app/assets/components/iron-doc-viewer/bower.json +34 -0
  155. data/app/assets/components/iron-doc-viewer/index.html +25 -0
  156. data/app/assets/components/iron-doc-viewer/iron-doc-property.css +158 -0
  157. data/app/assets/components/iron-doc-viewer/iron-doc-property.html +193 -0
  158. data/app/assets/components/iron-doc-viewer/iron-doc-viewer.css +151 -0
  159. data/app/assets/components/iron-doc-viewer/iron-doc-viewer.html +237 -0
  160. data/app/assets/components/iron-doc-viewer/test/index.html +28 -0
  161. data/app/assets/components/iron-doc-viewer/test/iron-doc-viewer.html +123 -0
  162. data/app/assets/components/iron-elements/README.md +34 -0
  163. data/app/assets/components/iron-elements/bower.json +59 -0
  164. data/app/assets/components/iron-fit-behavior/README.md +3 -0
  165. data/app/assets/components/iron-fit-behavior/bower.json +31 -0
  166. data/app/assets/components/iron-fit-behavior/demo/index.html +42 -0
  167. data/app/assets/components/iron-fit-behavior/demo/simple-fit.html +42 -0
  168. data/app/assets/components/iron-fit-behavior/index.html +30 -0
  169. data/app/assets/components/iron-fit-behavior/iron-fit-behavior.html +230 -0
  170. data/app/assets/components/iron-fit-behavior/test/index.html +34 -0
  171. data/app/assets/components/iron-fit-behavior/test/iron-fit-behavior.html +332 -0
  172. data/app/assets/components/iron-fit-behavior/test/test-fit.html +42 -0
  173. data/app/assets/components/iron-flex-layout/README.md +4 -0
  174. data/app/assets/components/iron-flex-layout/bower.json +21 -0
  175. data/app/assets/components/iron-flex-layout/classes/iron-flex-layout.html +307 -0
  176. data/app/assets/components/iron-flex-layout/classes/iron-shadow-flex-layout.html +302 -0
  177. data/app/assets/components/iron-flex-layout/demo/index.html +40 -0
  178. data/app/assets/components/iron-flex-layout/demo/x-app.html +106 -0
  179. data/app/assets/components/iron-flex-layout/iron-flex-layout.html +313 -0
  180. data/app/assets/components/iron-form-element-behavior/README.md +2 -0
  181. data/app/assets/components/iron-form-element-behavior/bower.json +27 -0
  182. data/app/assets/components/iron-form-element-behavior/demo/index.html +53 -0
  183. data/app/assets/components/iron-form-element-behavior/demo/simple-element.html +27 -0
  184. data/app/assets/components/iron-form-element-behavior/demo/simple-form.html +42 -0
  185. data/app/assets/components/iron-form-element-behavior/index.html +30 -0
  186. data/app/assets/components/iron-form-element-behavior/iron-form-element-behavior.html +50 -0
  187. data/app/assets/components/iron-form/README.md +2 -0
  188. data/app/assets/components/iron-form/bower.json +43 -0
  189. data/app/assets/components/iron-form/demo/index.html +121 -0
  190. data/app/assets/components/iron-form/index.html +30 -0
  191. data/app/assets/components/iron-form/iron-form.html +191 -0
  192. data/app/assets/components/iron-form/test/basic.html +228 -0
  193. data/app/assets/components/iron-form/test/index.html +24 -0
  194. data/app/assets/components/iron-form/test/simple-element.html +35 -0
  195. data/app/assets/components/iron-icon/README.md +56 -0
  196. data/app/assets/components/iron-icon/bower.json +29 -0
  197. data/app/assets/components/iron-icon/demo/index.html +28 -0
  198. data/app/assets/components/iron-icon/demo/location.png +0 -0
  199. data/app/assets/components/iron-icon/hero.svg +19 -0
  200. data/app/assets/components/iron-icon/index.html +26 -0
  201. data/app/assets/components/iron-icon/iron-icon.html +187 -0
  202. data/app/assets/components/iron-icon/test/index.html +31 -0
  203. data/app/assets/components/iron-icon/test/iron-icon.html +120 -0
  204. data/app/assets/components/iron-icons/README.md +8 -0
  205. data/app/assets/components/iron-icons/av-icons.html +73 -0
  206. data/app/assets/components/iron-icons/bower.json +37 -0
  207. data/app/assets/components/iron-icons/communication-icons.html +59 -0
  208. data/app/assets/components/iron-icons/demo/index.html +132 -0
  209. data/app/assets/components/iron-icons/device-icons.html +94 -0
  210. data/app/assets/components/iron-icons/editor-icons.html +70 -0
  211. data/app/assets/components/iron-icons/hardware-icons.html +61 -0
  212. data/app/assets/components/iron-icons/hero.svg +35 -0
  213. data/app/assets/components/iron-icons/image-icons.html +164 -0
  214. data/app/assets/components/iron-icons/index.html +25 -0
  215. data/app/assets/components/iron-icons/iron-icons.html +303 -0
  216. data/app/assets/components/iron-icons/maps-icons.html +71 -0
  217. data/app/assets/components/iron-icons/notification-icons.html +62 -0
  218. data/app/assets/components/iron-icons/social-icons.html +40 -0
  219. data/app/assets/components/iron-iconset-svg/README.md +4 -0
  220. data/app/assets/components/iron-iconset-svg/bower.json +27 -0
  221. data/app/assets/components/iron-iconset-svg/demo/index.html +65 -0
  222. data/app/assets/components/iron-iconset-svg/demo/svg-sample-icons.html +69 -0
  223. data/app/assets/components/iron-iconset-svg/index.html +26 -0
  224. data/app/assets/components/iron-iconset-svg/iron-iconset-svg.html +191 -0
  225. data/app/assets/components/iron-iconset-svg/test/index.html +30 -0
  226. data/app/assets/components/iron-iconset-svg/test/iron-iconset-svg.html +107 -0
  227. data/app/assets/components/iron-iconset/README.md +51 -0
  228. data/app/assets/components/iron-iconset/bower.json +21 -0
  229. data/app/assets/components/iron-iconset/demo/index.html +63 -0
  230. data/app/assets/components/iron-iconset/demo/my-icons-big.png +0 -0
  231. data/app/assets/components/iron-iconset/demo/my-icons.png +0 -0
  232. data/app/assets/components/iron-iconset/index.html +27 -0
  233. data/app/assets/components/iron-iconset/iron-iconset.html +336 -0
  234. data/app/assets/components/iron-iconset/test/index.html +30 -0
  235. data/app/assets/components/iron-iconset/test/iron-iconset.html +149 -0
  236. data/app/assets/components/iron-image/README.md +60 -0
  237. data/app/assets/components/iron-image/bower.json +25 -0
  238. data/app/assets/components/iron-image/demo/index.html +183 -0
  239. data/app/assets/components/iron-image/demo/polymer.svg +175 -0
  240. data/app/assets/components/iron-image/index.html +24 -0
  241. data/app/assets/components/iron-image/iron-image.html +394 -0
  242. data/app/assets/components/iron-image/test/index.html +25 -0
  243. data/app/assets/components/iron-image/test/iron-image.html +78 -0
  244. data/app/assets/components/iron-input/README.md +16 -0
  245. data/app/assets/components/iron-input/bower.json +36 -0
  246. data/app/assets/components/iron-input/demo/index.html +87 -0
  247. data/app/assets/components/iron-input/hero.svg +19 -0
  248. data/app/assets/components/iron-input/index.html +30 -0
  249. data/app/assets/components/iron-input/iron-input.html +235 -0
  250. data/app/assets/components/iron-input/test/index.html +24 -0
  251. data/app/assets/components/iron-input/test/iron-input.html +139 -0
  252. data/app/assets/components/iron-input/test/letters-only.html +30 -0
  253. data/app/assets/components/iron-jsonp-library/README.md +10 -0
  254. data/app/assets/components/iron-jsonp-library/bower.json +31 -0
  255. data/app/assets/components/iron-jsonp-library/hero.svg +31 -0
  256. data/app/assets/components/iron-jsonp-library/index.html +26 -0
  257. data/app/assets/components/iron-jsonp-library/iron-jsonp-library.html +257 -0
  258. data/app/assets/components/iron-localstorage/README.md +13 -0
  259. data/app/assets/components/iron-localstorage/bower.json +22 -0
  260. data/app/assets/components/iron-localstorage/demo/index.html +38 -0
  261. data/app/assets/components/iron-localstorage/hero.svg +37 -0
  262. data/app/assets/components/iron-localstorage/index.html +23 -0
  263. data/app/assets/components/iron-localstorage/iron-localstorage.html +196 -0
  264. data/app/assets/components/iron-localstorage/test/basic.html +88 -0
  265. data/app/assets/components/iron-localstorage/test/index.html +27 -0
  266. data/app/assets/components/iron-localstorage/test/raw.html +66 -0
  267. data/app/assets/components/iron-localstorage/test/value-binding.html +103 -0
  268. data/app/assets/components/iron-media-query/README.md +11 -0
  269. data/app/assets/components/iron-media-query/bower.json +30 -0
  270. data/app/assets/components/iron-media-query/demo/index.html +38 -0
  271. data/app/assets/components/iron-media-query/hero.svg +29 -0
  272. data/app/assets/components/iron-media-query/index.html +29 -0
  273. data/app/assets/components/iron-media-query/iron-media-query.html +84 -0
  274. data/app/assets/components/iron-media-query/test/basic.html +71 -0
  275. data/app/assets/components/iron-media-query/test/index.html +30 -0
  276. data/app/assets/components/iron-menu-behavior/README.md +3 -0
  277. data/app/assets/components/iron-menu-behavior/bower.json +32 -0
  278. data/app/assets/components/iron-menu-behavior/demo/index.html +100 -0
  279. data/app/assets/components/iron-menu-behavior/demo/simple-menu.html +50 -0
  280. data/app/assets/components/iron-menu-behavior/demo/simple-menubar.html +54 -0
  281. data/app/assets/components/iron-menu-behavior/index.html +30 -0
  282. data/app/assets/components/iron-menu-behavior/iron-menu-behavior.html +214 -0
  283. data/app/assets/components/iron-menu-behavior/iron-menubar-behavior.html +65 -0
  284. data/app/assets/components/iron-menu-behavior/test/index.html +35 -0
  285. data/app/assets/components/iron-menu-behavior/test/iron-menu-behavior.html +108 -0
  286. data/app/assets/components/iron-menu-behavior/test/iron-menubar-behavior.html +108 -0
  287. data/app/assets/components/iron-menu-behavior/test/test-menu.html +40 -0
  288. data/app/assets/components/iron-menu-behavior/test/test-menubar.html +40 -0
  289. data/app/assets/components/iron-meta/README.md +46 -0
  290. data/app/assets/components/iron-meta/bower.json +28 -0
  291. data/app/assets/components/iron-meta/demo/index.html +45 -0
  292. data/app/assets/components/iron-meta/hero.svg +33 -0
  293. data/app/assets/components/iron-meta/index.html +27 -0
  294. data/app/assets/components/iron-meta/iron-meta.html +352 -0
  295. data/app/assets/components/iron-meta/test/basic.html +48 -0
  296. data/app/assets/components/iron-meta/test/index.html +30 -0
  297. data/app/assets/components/iron-meta/test/iron-meta.html +186 -0
  298. data/app/assets/components/iron-overlay-behavior/README.md +11 -0
  299. data/app/assets/components/iron-overlay-behavior/bower.json +36 -0
  300. data/app/assets/components/iron-overlay-behavior/demo/index.html +149 -0
  301. data/app/assets/components/iron-overlay-behavior/demo/simple-overlay.html +50 -0
  302. data/app/assets/components/iron-overlay-behavior/index.html +30 -0
  303. data/app/assets/components/iron-overlay-behavior/iron-overlay-backdrop.html +132 -0
  304. data/app/assets/components/iron-overlay-behavior/iron-overlay-behavior.html +432 -0
  305. data/app/assets/components/iron-overlay-behavior/iron-overlay-manager.html +107 -0
  306. data/app/assets/components/iron-overlay-behavior/test/index.html +34 -0
  307. data/app/assets/components/iron-overlay-behavior/test/iron-overlay-behavior.html +314 -0
  308. data/app/assets/components/iron-overlay-behavior/test/test-overlay.html +49 -0
  309. data/app/assets/components/iron-pages/README.md +22 -0
  310. data/app/assets/components/iron-pages/bower.json +27 -0
  311. data/app/assets/components/iron-pages/demo/index.html +60 -0
  312. data/app/assets/components/iron-pages/hero.svg +22 -0
  313. data/app/assets/components/iron-pages/index.html +25 -0
  314. data/app/assets/components/iron-pages/iron-pages.html +83 -0
  315. data/app/assets/components/iron-pages/test/attr-for-selected.html +91 -0
  316. data/app/assets/components/iron-pages/test/basic.html +95 -0
  317. data/app/assets/components/iron-pages/test/index.html +32 -0
  318. data/app/assets/components/iron-range-behavior/README.md +4 -0
  319. data/app/assets/components/iron-range-behavior/bower.json +30 -0
  320. data/app/assets/components/iron-range-behavior/demo/index.html +76 -0
  321. data/app/assets/components/iron-range-behavior/index.html +24 -0
  322. data/app/assets/components/iron-range-behavior/iron-range-behavior.html +101 -0
  323. data/app/assets/components/iron-range-behavior/test/basic.html +119 -0
  324. data/app/assets/components/iron-range-behavior/test/index.html +25 -0
  325. data/app/assets/components/iron-resizable-behavior/README.md +16 -0
  326. data/app/assets/components/iron-resizable-behavior/bower.json +26 -0
  327. data/app/assets/components/iron-resizable-behavior/demo/index.html +29 -0
  328. data/app/assets/components/iron-resizable-behavior/demo/src/x-app.html +114 -0
  329. data/app/assets/components/iron-resizable-behavior/index.html +25 -0
  330. data/app/assets/components/iron-resizable-behavior/iron-resizable-behavior.html +139 -0
  331. data/app/assets/components/iron-resizable-behavior/test/basic.html +263 -0
  332. data/app/assets/components/iron-resizable-behavior/test/index.html +31 -0
  333. data/app/assets/components/iron-resizable-behavior/test/test-elements.html +143 -0
  334. data/app/assets/components/iron-selector/README.md +50 -0
  335. data/app/assets/components/iron-selector/bower.json +31 -0
  336. data/app/assets/components/iron-selector/demo/index.html +66 -0
  337. data/app/assets/components/iron-selector/index.html +28 -0
  338. data/app/assets/components/iron-selector/iron-multi-selectable.html +120 -0
  339. data/app/assets/components/iron-selector/iron-selectable.html +307 -0
  340. data/app/assets/components/iron-selector/iron-selection.html +115 -0
  341. data/app/assets/components/iron-selector/iron-selector.html +71 -0
  342. data/app/assets/components/iron-selector/test/activate-event.html +138 -0
  343. data/app/assets/components/iron-selector/test/basic.html +150 -0
  344. data/app/assets/components/iron-selector/test/content-element.html +43 -0
  345. data/app/assets/components/iron-selector/test/content.html +168 -0
  346. data/app/assets/components/iron-selector/test/index.html +36 -0
  347. data/app/assets/components/iron-selector/test/multi.html +135 -0
  348. data/app/assets/components/iron-selector/test/next-previous.html +134 -0
  349. data/app/assets/components/iron-selector/test/selected-attribute.html +72 -0
  350. data/app/assets/components/iron-selector/test/template-repeat.html +110 -0
  351. data/app/assets/components/iron-signals/README.md +26 -0
  352. data/app/assets/components/iron-signals/bower.json +20 -0
  353. data/app/assets/components/iron-signals/demo/index.html +40 -0
  354. data/app/assets/components/iron-signals/index.html +23 -0
  355. data/app/assets/components/iron-signals/iron-signals.html +81 -0
  356. data/app/assets/components/iron-test-helpers/README.md +23 -0
  357. data/app/assets/components/iron-test-helpers/bower.json +28 -0
  358. data/app/assets/components/iron-test-helpers/iron-test-helpers.html +22 -0
  359. data/app/assets/components/iron-test-helpers/mock-interactions.js +177 -0
  360. data/app/assets/components/iron-test-helpers/test-helpers.js +39 -0
  361. data/app/assets/components/iron-validatable-behavior/README.md +3 -0
  362. data/app/assets/components/iron-validatable-behavior/bower.json +35 -0
  363. data/app/assets/components/iron-validatable-behavior/demo/cats-only.html +46 -0
  364. data/app/assets/components/iron-validatable-behavior/demo/index.html +71 -0
  365. data/app/assets/components/iron-validatable-behavior/demo/validatable-input.html +46 -0
  366. data/app/assets/components/iron-validatable-behavior/index.html +30 -0
  367. data/app/assets/components/iron-validatable-behavior/iron-validatable-behavior.html +101 -0
  368. data/app/assets/components/iron-validatable-behavior/test/index.html +35 -0
  369. data/app/assets/components/iron-validatable-behavior/test/iron-validatable-behavior.html +52 -0
  370. data/app/assets/components/iron-validatable-behavior/test/test-validatable.html +28 -0
  371. data/app/assets/components/iron-validator-behavior/README.md +4 -0
  372. data/app/assets/components/iron-validator-behavior/bower.json +34 -0
  373. data/app/assets/components/iron-validator-behavior/demo/cats-only.html +46 -0
  374. data/app/assets/components/iron-validator-behavior/demo/index.html +144 -0
  375. data/app/assets/components/iron-validator-behavior/index.html +30 -0
  376. data/app/assets/components/iron-validator-behavior/iron-validator-behavior.html +61 -0
  377. data/app/assets/components/iron-validator-behavior/test/index.html +34 -0
  378. data/app/assets/components/iron-validator-behavior/test/iron-validator-behavior.html +47 -0
  379. data/app/assets/components/iron-validator-behavior/test/simple-validator.html +26 -0
  380. data/app/assets/components/marked-element/README.md +31 -0
  381. data/app/assets/components/marked-element/bower.json +33 -0
  382. data/app/assets/components/marked-element/demo/index.html +52 -0
  383. data/app/assets/components/marked-element/hero.svg +27 -0
  384. data/app/assets/components/marked-element/index.html +26 -0
  385. data/app/assets/components/marked-element/marked-element.html +145 -0
  386. data/app/assets/components/marked-element/marked-import.html +10 -0
  387. data/app/assets/components/marked-element/test/index.html +25 -0
  388. data/app/assets/components/marked-element/test/marked-element.html +112 -0
  389. data/app/assets/components/marked/LICENSE +19 -0
  390. data/app/assets/components/marked/Makefile +12 -0
  391. data/app/assets/components/marked/README.md +406 -0
  392. data/app/assets/components/marked/bin/marked +187 -0
  393. data/app/assets/components/marked/bower.json +24 -0
  394. data/app/assets/components/marked/component.json +10 -0
  395. data/app/assets/components/marked/doc/broken.md +426 -0
  396. data/app/assets/components/marked/doc/todo.md +2 -0
  397. data/app/assets/components/marked/index.js +1 -0
  398. data/app/assets/components/marked/lib/marked.js +1272 -0
  399. data/app/assets/components/marked/man/marked.1 +88 -0
  400. data/app/assets/components/marked/marked.min.js +6 -0
  401. data/app/assets/components/marked/package.json +22 -0
  402. data/app/assets/components/neon-animation/README.md +304 -0
  403. data/app/assets/components/neon-animation/animations/cascaded-animation.html +84 -0
  404. data/app/assets/components/neon-animation/animations/fade-in-animation.html +49 -0
  405. data/app/assets/components/neon-animation/animations/fade-out-animation.html +49 -0
  406. data/app/assets/components/neon-animation/animations/hero-animation.html +83 -0
  407. data/app/assets/components/neon-animation/animations/opaque-animation.html +46 -0
  408. data/app/assets/components/neon-animation/animations/ripple-animation.html +92 -0
  409. data/app/assets/components/neon-animation/animations/scale-down-animation.html +65 -0
  410. data/app/assets/components/neon-animation/animations/scale-up-animation.html +58 -0
  411. data/app/assets/components/neon-animation/animations/slide-down-animation.html +59 -0
  412. data/app/assets/components/neon-animation/animations/slide-from-left-animation.html +60 -0
  413. data/app/assets/components/neon-animation/animations/slide-from-right-animation.html +60 -0
  414. data/app/assets/components/neon-animation/animations/slide-left-animation.html +59 -0
  415. data/app/assets/components/neon-animation/animations/slide-right-animation.html +59 -0
  416. data/app/assets/components/neon-animation/animations/slide-up-animation.html +59 -0
  417. data/app/assets/components/neon-animation/animations/transform-animation.html +61 -0
  418. data/app/assets/components/neon-animation/bower.json +51 -0
  419. data/app/assets/components/neon-animation/demo/declarative/index.html +108 -0
  420. data/app/assets/components/neon-animation/demo/doc/basic.html +47 -0
  421. data/app/assets/components/neon-animation/demo/doc/my-animatable.html +73 -0
  422. data/app/assets/components/neon-animation/demo/doc/my-dialog.html +97 -0
  423. data/app/assets/components/neon-animation/demo/doc/types.html +53 -0
  424. data/app/assets/components/neon-animation/demo/dropdown/animated-dropdown.html +97 -0
  425. data/app/assets/components/neon-animation/demo/dropdown/index.html +54 -0
  426. data/app/assets/components/neon-animation/demo/grid/animated-grid.html +166 -0
  427. data/app/assets/components/neon-animation/demo/grid/fullsize-page-with-card.html +124 -0
  428. data/app/assets/components/neon-animation/demo/grid/index.html +70 -0
  429. data/app/assets/components/neon-animation/demo/index.html +6 -0
  430. data/app/assets/components/neon-animation/demo/list/full-view.html +122 -0
  431. data/app/assets/components/neon-animation/demo/list/index.html +29 -0
  432. data/app/assets/components/neon-animation/demo/list/list-demo.html +112 -0
  433. data/app/assets/components/neon-animation/demo/list/list-view.html +127 -0
  434. data/app/assets/components/neon-animation/demo/load/animated-grid.html +147 -0
  435. data/app/assets/components/neon-animation/demo/load/full-page.html +86 -0
  436. data/app/assets/components/neon-animation/demo/load/index.html +45 -0
  437. data/app/assets/components/neon-animation/demo/reprojection/animated-grid.html +166 -0
  438. data/app/assets/components/neon-animation/demo/reprojection/fullsize-page-with-card.html +124 -0
  439. data/app/assets/components/neon-animation/demo/reprojection/index.html +66 -0
  440. data/app/assets/components/neon-animation/demo/reprojection/reprojected-pages.html +42 -0
  441. data/app/assets/components/neon-animation/demo/shared.css +40 -0
  442. data/app/assets/components/neon-animation/demo/tiles/circles-page.html +110 -0
  443. data/app/assets/components/neon-animation/demo/tiles/index.html +77 -0
  444. data/app/assets/components/neon-animation/demo/tiles/squares-page.html +104 -0
  445. data/app/assets/components/neon-animation/guides/neon-animation.md +313 -0
  446. data/app/assets/components/neon-animation/index.html +30 -0
  447. data/app/assets/components/neon-animation/neon-animatable-behavior.html +156 -0
  448. data/app/assets/components/neon-animation/neon-animatable.html +54 -0
  449. data/app/assets/components/neon-animation/neon-animated-pages.html +208 -0
  450. data/app/assets/components/neon-animation/neon-animation-behavior.html +88 -0
  451. data/app/assets/components/neon-animation/neon-animation-runner-behavior.html +110 -0
  452. data/app/assets/components/neon-animation/neon-animation.html +17 -0
  453. data/app/assets/components/neon-animation/neon-animations.html +25 -0
  454. data/app/assets/components/neon-animation/neon-shared-element-animatable-behavior.html +37 -0
  455. data/app/assets/components/neon-animation/neon-shared-element-animation-behavior.html +66 -0
  456. data/app/assets/components/neon-animation/web-animations.html +11 -0
  457. data/app/assets/components/neon-elements/README.md +19 -0
  458. data/app/assets/components/neon-elements/bower.json +26 -0
  459. data/app/assets/components/paper-behaviors/README.md +4 -0
  460. data/app/assets/components/paper-behaviors/bower.json +39 -0
  461. data/app/assets/components/paper-behaviors/demo/index.html +57 -0
  462. data/app/assets/components/paper-behaviors/demo/paper-button.html +71 -0
  463. data/app/assets/components/paper-behaviors/demo/paper-radio-button.html +116 -0
  464. data/app/assets/components/paper-behaviors/index.html +26 -0
  465. data/app/assets/components/paper-behaviors/paper-button-behavior.html +55 -0
  466. data/app/assets/components/paper-behaviors/paper-inky-focus-behavior.html +44 -0
  467. data/app/assets/components/paper-behaviors/test/index.html +26 -0
  468. data/app/assets/components/paper-behaviors/test/paper-button-behavior.html +82 -0
  469. data/app/assets/components/paper-behaviors/test/paper-radio-button-behavior.html +62 -0
  470. data/app/assets/components/paper-behaviors/test/test-button.html +34 -0
  471. data/app/assets/components/paper-behaviors/test/test-radio-button.html +41 -0
  472. data/app/assets/components/paper-button/README.md +45 -0
  473. data/app/assets/components/paper-button/bower.json +39 -0
  474. data/app/assets/components/paper-button/demo/index.html +158 -0
  475. data/app/assets/components/paper-button/index.html +26 -0
  476. data/app/assets/components/paper-button/paper-button.html +177 -0
  477. data/app/assets/components/paper-button/test/index.html +25 -0
  478. data/app/assets/components/paper-button/test/paper-button.html +83 -0
  479. data/app/assets/components/paper-checkbox/README.md +31 -0
  480. data/app/assets/components/paper-checkbox/bower.json +37 -0
  481. data/app/assets/components/paper-checkbox/demo/index.html +94 -0
  482. data/app/assets/components/paper-checkbox/index.html +30 -0
  483. data/app/assets/components/paper-checkbox/metadata.html +17 -0
  484. data/app/assets/components/paper-checkbox/paper-checkbox.css +149 -0
  485. data/app/assets/components/paper-checkbox/paper-checkbox.html +163 -0
  486. data/app/assets/components/paper-checkbox/test/basic.html +101 -0
  487. data/app/assets/components/paper-checkbox/test/index.html +24 -0
  488. data/app/assets/components/paper-dialog-behavior/README.md +24 -0
  489. data/app/assets/components/paper-dialog-behavior/bower.json +37 -0
  490. data/app/assets/components/paper-dialog-behavior/demo/index.html +96 -0
  491. data/app/assets/components/paper-dialog-behavior/demo/simple-dialog.html +42 -0
  492. data/app/assets/components/paper-dialog-behavior/hero.svg +51 -0
  493. data/app/assets/components/paper-dialog-behavior/index.html +30 -0
  494. data/app/assets/components/paper-dialog-behavior/paper-dialog-behavior.html +236 -0
  495. data/app/assets/components/paper-dialog-behavior/paper-dialog-common.css +58 -0
  496. data/app/assets/components/paper-dialog-behavior/test/index.html +34 -0
  497. data/app/assets/components/paper-dialog-behavior/test/paper-dialog-behavior.html +217 -0
  498. data/app/assets/components/paper-dialog-behavior/test/test-dialog.html +42 -0
  499. data/app/assets/components/paper-dialog-scrollable/README.md +8 -0
  500. data/app/assets/components/paper-dialog-scrollable/bower.json +36 -0
  501. data/app/assets/components/paper-dialog-scrollable/demo/index.html +290 -0
  502. data/app/assets/components/paper-dialog-scrollable/hero.svg +69 -0
  503. data/app/assets/components/paper-dialog-scrollable/index.html +30 -0
  504. data/app/assets/components/paper-dialog-scrollable/paper-dialog-scrollable.html +150 -0
  505. data/app/assets/components/paper-dialog-scrollable/test/index.html +34 -0
  506. data/app/assets/components/paper-dialog-scrollable/test/paper-dialog-scrollable.html +171 -0
  507. data/app/assets/components/paper-dialog/README.md +3 -0
  508. data/app/assets/components/paper-dialog/bower.json +35 -0
  509. data/app/assets/components/paper-dialog/demo/index.html +158 -0
  510. data/app/assets/components/paper-dialog/hero.svg +58 -0
  511. data/app/assets/components/paper-dialog/index.html +30 -0
  512. data/app/assets/components/paper-dialog/paper-dialog.html +122 -0
  513. data/app/assets/components/paper-dialog/test/index.html +34 -0
  514. data/app/assets/components/paper-dialog/test/paper-dialog.html +53 -0
  515. data/app/assets/components/paper-drawer-panel/README.md +71 -0
  516. data/app/assets/components/paper-drawer-panel/bower.json +33 -0
  517. data/app/assets/components/paper-drawer-panel/demo/index.html +85 -0
  518. data/app/assets/components/paper-drawer-panel/hero.svg +21 -0
  519. data/app/assets/components/paper-drawer-panel/index.html +29 -0
  520. data/app/assets/components/paper-drawer-panel/paper-drawer-panel.css +142 -0
  521. data/app/assets/components/paper-drawer-panel/paper-drawer-panel.html +585 -0
  522. data/app/assets/components/paper-elements/README.md +21 -0
  523. data/app/assets/components/paper-elements/bower.json +51 -0
  524. data/app/assets/components/paper-fab/README.md +44 -0
  525. data/app/assets/components/paper-fab/bower.json +39 -0
  526. data/app/assets/components/paper-fab/demo/index.html +97 -0
  527. data/app/assets/components/paper-fab/index.html +24 -0
  528. data/app/assets/components/paper-fab/paper-fab.html +175 -0
  529. data/app/assets/components/paper-fab/test/a11y.html +71 -0
  530. data/app/assets/components/paper-fab/test/basic.html +76 -0
  531. data/app/assets/components/paper-fab/test/index.html +26 -0
  532. data/app/assets/components/paper-header-panel/README.md +105 -0
  533. data/app/assets/components/paper-header-panel/bower.json +28 -0
  534. data/app/assets/components/paper-header-panel/demo/index.html +148 -0
  535. data/app/assets/components/paper-header-panel/hero.svg +38 -0
  536. data/app/assets/components/paper-header-panel/index.html +36 -0
  537. data/app/assets/components/paper-header-panel/paper-header-panel.html +496 -0
  538. data/app/assets/components/paper-header-panel/test/basic.html +156 -0
  539. data/app/assets/components/paper-header-panel/test/index.html +34 -0
  540. data/app/assets/components/paper-icon-button/README.md +49 -0
  541. data/app/assets/components/paper-icon-button/bower.json +33 -0
  542. data/app/assets/components/paper-icon-button/demo/index.html +154 -0
  543. data/app/assets/components/paper-icon-button/index.html +23 -0
  544. data/app/assets/components/paper-icon-button/paper-icon-button.html +141 -0
  545. data/app/assets/components/paper-icon-button/test/a11y.html +69 -0
  546. data/app/assets/components/paper-icon-button/test/basic.html +77 -0
  547. data/app/assets/components/paper-icon-button/test/index.html +26 -0
  548. data/app/assets/components/paper-input/README.md +5 -0
  549. data/app/assets/components/paper-input/all-imports.html +12 -0
  550. data/app/assets/components/paper-input/bower.json +44 -0
  551. data/app/assets/components/paper-input/demo/index.html +96 -0
  552. data/app/assets/components/paper-input/demo/ssn-input.html +94 -0
  553. data/app/assets/components/paper-input/demo/ssn-validator.html +31 -0
  554. data/app/assets/components/paper-input/hero.svg +19 -0
  555. data/app/assets/components/paper-input/index.html +28 -0
  556. data/app/assets/components/paper-input/paper-input-addon-behavior.html +47 -0
  557. data/app/assets/components/paper-input/paper-input-behavior.html +317 -0
  558. data/app/assets/components/paper-input/paper-input-char-counter.html +95 -0
  559. data/app/assets/components/paper-input/paper-input-container.html +495 -0
  560. data/app/assets/components/paper-input/paper-input-error.html +99 -0
  561. data/app/assets/components/paper-input/paper-input.html +126 -0
  562. data/app/assets/components/paper-input/paper-textarea.html +106 -0
  563. data/app/assets/components/paper-input/test/index.html +28 -0
  564. data/app/assets/components/paper-input/test/letters-only.html +30 -0
  565. data/app/assets/components/paper-input/test/paper-input-char-counter.html +112 -0
  566. data/app/assets/components/paper-input/test/paper-input-container.html +237 -0
  567. data/app/assets/components/paper-input/test/paper-input-error.html +60 -0
  568. data/app/assets/components/paper-input/test/paper-input.html +213 -0
  569. data/app/assets/components/paper-input/test/paper-textarea.html +169 -0
  570. data/app/assets/components/paper-item/README.md +4 -0
  571. data/app/assets/components/paper-item/all-imports.html +13 -0
  572. data/app/assets/components/paper-item/bower.json +40 -0
  573. data/app/assets/components/paper-item/demo/index.html +285 -0
  574. data/app/assets/components/paper-item/index.html +30 -0
  575. data/app/assets/components/paper-item/paper-icon-item.html +86 -0
  576. data/app/assets/components/paper-item/paper-item-body.html +93 -0
  577. data/app/assets/components/paper-item/paper-item-shared.css +19 -0
  578. data/app/assets/components/paper-item/paper-item.html +95 -0
  579. data/app/assets/components/paper-item/test/index.html +34 -0
  580. data/app/assets/components/paper-item/test/paper-item.html +66 -0
  581. data/app/assets/components/paper-material/README.md +13 -0
  582. data/app/assets/components/paper-material/bower.json +36 -0
  583. data/app/assets/components/paper-material/demo/index.html +113 -0
  584. data/app/assets/components/paper-material/index.html +30 -0
  585. data/app/assets/components/paper-material/paper-material.html +98 -0
  586. data/app/assets/components/paper-material/test/index.html +25 -0
  587. data/app/assets/components/paper-material/test/paper-material.html +92 -0
  588. data/app/assets/components/paper-menu/README.md +3 -0
  589. data/app/assets/components/paper-menu/bower.json +32 -0
  590. data/app/assets/components/paper-menu/demo/index.html +81 -0
  591. data/app/assets/components/paper-menu/hero.svg +35 -0
  592. data/app/assets/components/paper-menu/index.html +30 -0
  593. data/app/assets/components/paper-menu/paper-menu.html +133 -0
  594. data/app/assets/components/paper-menu/test/index.html +34 -0
  595. data/app/assets/components/paper-menu/test/paper-menu.html +67 -0
  596. data/app/assets/components/paper-progress/README.md +47 -0
  597. data/app/assets/components/paper-progress/bower.json +31 -0
  598. data/app/assets/components/paper-progress/demo/index.html +122 -0
  599. data/app/assets/components/paper-progress/hero.svg +21 -0
  600. data/app/assets/components/paper-progress/index.html +28 -0
  601. data/app/assets/components/paper-progress/paper-progress.html +199 -0
  602. data/app/assets/components/paper-progress/test/basic.html +121 -0
  603. data/app/assets/components/paper-progress/test/index.html +25 -0
  604. data/app/assets/components/paper-radio-button/README.md +29 -0
  605. data/app/assets/components/paper-radio-button/bower.json +35 -0
  606. data/app/assets/components/paper-radio-button/demo/index.html +94 -0
  607. data/app/assets/components/paper-radio-button/hero.svg +22 -0
  608. data/app/assets/components/paper-radio-button/index.html +29 -0
  609. data/app/assets/components/paper-radio-button/paper-radio-button.css +109 -0
  610. data/app/assets/components/paper-radio-button/paper-radio-button.html +148 -0
  611. data/app/assets/components/paper-radio-button/test/basic.html +101 -0
  612. data/app/assets/components/paper-radio-button/test/index.html +24 -0
  613. data/app/assets/components/paper-radio-group/README.md +20 -0
  614. data/app/assets/components/paper-radio-group/bower.json +36 -0
  615. data/app/assets/components/paper-radio-group/demo/index.html +108 -0
  616. data/app/assets/components/paper-radio-group/hero.svg +25 -0
  617. data/app/assets/components/paper-radio-group/index.html +30 -0
  618. data/app/assets/components/paper-radio-group/paper-radio-group.html +186 -0
  619. data/app/assets/components/paper-radio-group/test/basic.html +167 -0
  620. data/app/assets/components/paper-radio-group/test/index.html +25 -0
  621. data/app/assets/components/paper-ripple/README.md +65 -0
  622. data/app/assets/components/paper-ripple/bower.json +29 -0
  623. data/app/assets/components/paper-ripple/demo/index.html +413 -0
  624. data/app/assets/components/paper-ripple/hero.svg +30 -0
  625. data/app/assets/components/paper-ripple/index.html +27 -0
  626. data/app/assets/components/paper-ripple/paper-ripple.html +716 -0
  627. data/app/assets/components/paper-ripple/test/index.html +25 -0
  628. data/app/assets/components/paper-ripple/test/paper-ripple.html +166 -0
  629. data/app/assets/components/paper-scroll-header-panel/README.md +56 -0
  630. data/app/assets/components/paper-scroll-header-panel/bower.json +38 -0
  631. data/app/assets/components/paper-scroll-header-panel/demo/demo1.html +81 -0
  632. data/app/assets/components/paper-scroll-header-panel/demo/demo2.html +78 -0
  633. data/app/assets/components/paper-scroll-header-panel/demo/demo3.html +79 -0
  634. data/app/assets/components/paper-scroll-header-panel/demo/demo4.html +108 -0
  635. data/app/assets/components/paper-scroll-header-panel/demo/demo5.html +107 -0
  636. data/app/assets/components/paper-scroll-header-panel/demo/demo6.html +112 -0
  637. data/app/assets/components/paper-scroll-header-panel/demo/demo7.html +114 -0
  638. data/app/assets/components/paper-scroll-header-panel/demo/demo8.html +125 -0
  639. data/app/assets/components/paper-scroll-header-panel/demo/demo9.html +105 -0
  640. data/app/assets/components/paper-scroll-header-panel/demo/images/bg2.jpg +0 -0
  641. data/app/assets/components/paper-scroll-header-panel/demo/images/bg3.jpg +0 -0
  642. data/app/assets/components/paper-scroll-header-panel/demo/images/bg5.jpg +0 -0
  643. data/app/assets/components/paper-scroll-header-panel/demo/images/bg6.jpg +0 -0
  644. data/app/assets/components/paper-scroll-header-panel/demo/images/bg9.jpg +0 -0
  645. data/app/assets/components/paper-scroll-header-panel/demo/index.html +107 -0
  646. data/app/assets/components/paper-scroll-header-panel/demo/lorem-ipsum.html +42 -0
  647. data/app/assets/components/paper-scroll-header-panel/demo/sample-content.html +72 -0
  648. data/app/assets/components/paper-scroll-header-panel/hero.svg +41 -0
  649. data/app/assets/components/paper-scroll-header-panel/index.html +28 -0
  650. data/app/assets/components/paper-scroll-header-panel/paper-scroll-header-panel.html +455 -0
  651. data/app/assets/components/paper-scroll-header-panel/test/basic.html +112 -0
  652. data/app/assets/components/paper-scroll-header-panel/test/index.html +25 -0
  653. data/app/assets/components/paper-slider/README.md +69 -0
  654. data/app/assets/components/paper-slider/bower.json +39 -0
  655. data/app/assets/components/paper-slider/demo/index.html +117 -0
  656. data/app/assets/components/paper-slider/hero.svg +20 -0
  657. data/app/assets/components/paper-slider/index.html +29 -0
  658. data/app/assets/components/paper-slider/paper-slider.css +256 -0
  659. data/app/assets/components/paper-slider/paper-slider.html +516 -0
  660. data/app/assets/components/paper-slider/test/basic.html +186 -0
  661. data/app/assets/components/paper-slider/test/index.html +25 -0
  662. data/app/assets/components/paper-spinner/README.md +45 -0
  663. data/app/assets/components/paper-spinner/bower.json +33 -0
  664. data/app/assets/components/paper-spinner/demo/index.html +98 -0
  665. data/app/assets/components/paper-spinner/hero.svg +27 -0
  666. data/app/assets/components/paper-spinner/index.html +30 -0
  667. data/app/assets/components/paper-spinner/paper-spinner.css +325 -0
  668. data/app/assets/components/paper-spinner/paper-spinner.html +222 -0
  669. data/app/assets/components/paper-spinner/test/index.html +34 -0
  670. data/app/assets/components/paper-spinner/test/paper-spinner.html +63 -0
  671. data/app/assets/components/paper-styles/README.md +3 -0
  672. data/app/assets/components/paper-styles/bower.json +27 -0
  673. data/app/assets/components/paper-styles/classes/global.html +96 -0
  674. data/app/assets/components/paper-styles/classes/shadow-layout.html +302 -0
  675. data/app/assets/components/paper-styles/classes/shadow.html +39 -0
  676. data/app/assets/components/paper-styles/classes/typography.html +171 -0
  677. data/app/assets/components/paper-styles/color.html +333 -0
  678. data/app/assets/components/paper-styles/default-theme.html +39 -0
  679. data/app/assets/components/paper-styles/demo-pages.html +72 -0
  680. data/app/assets/components/paper-styles/demo.css +25 -0
  681. data/app/assets/components/paper-styles/paper-styles-classes.html +14 -0
  682. data/app/assets/components/paper-styles/paper-styles.html +17 -0
  683. data/app/assets/components/paper-styles/shadow.html +61 -0
  684. data/app/assets/components/paper-styles/typography.html +240 -0
  685. data/app/assets/components/paper-tabs/README.md +56 -0
  686. data/app/assets/components/paper-tabs/bower.json +37 -0
  687. data/app/assets/components/paper-tabs/demo/index.html +177 -0
  688. data/app/assets/components/paper-tabs/hero.svg +23 -0
  689. data/app/assets/components/paper-tabs/index.html +25 -0
  690. data/app/assets/components/paper-tabs/paper-tab.html +158 -0
  691. data/app/assets/components/paper-tabs/paper-tabs-icons.html +18 -0
  692. data/app/assets/components/paper-tabs/paper-tabs.html +483 -0
  693. data/app/assets/components/paper-tabs/test/attr-for-selected.html +82 -0
  694. data/app/assets/components/paper-tabs/test/basic.html +157 -0
  695. data/app/assets/components/paper-tabs/test/index.html +32 -0
  696. data/app/assets/components/paper-toast/README.md +4 -0
  697. data/app/assets/components/paper-toast/bower.json +28 -0
  698. data/app/assets/components/paper-toast/demo/index.html +56 -0
  699. data/app/assets/components/paper-toast/hero.svg +20 -0
  700. data/app/assets/components/paper-toast/index.html +26 -0
  701. data/app/assets/components/paper-toast/paper-toast.html +164 -0
  702. data/app/assets/components/paper-toggle-button/README.md +26 -0
  703. data/app/assets/components/paper-toggle-button/bower.json +36 -0
  704. data/app/assets/components/paper-toggle-button/demo/index.html +106 -0
  705. data/app/assets/components/paper-toggle-button/hero.svg +22 -0
  706. data/app/assets/components/paper-toggle-button/index.html +26 -0
  707. data/app/assets/components/paper-toggle-button/paper-toggle-button.css +108 -0
  708. data/app/assets/components/paper-toggle-button/paper-toggle-button.html +183 -0
  709. data/app/assets/components/paper-toggle-button/test/basic.html +86 -0
  710. data/app/assets/components/paper-toggle-button/test/index.html +25 -0
  711. data/app/assets/components/paper-toolbar/README.md +51 -0
  712. data/app/assets/components/paper-toolbar/bower.json +35 -0
  713. data/app/assets/components/paper-toolbar/demo/index.html +81 -0
  714. data/app/assets/components/paper-toolbar/index.html +38 -0
  715. data/app/assets/components/paper-toolbar/paper-toolbar.html +375 -0
  716. data/app/assets/components/paper-toolbar/test/index.html +24 -0
  717. data/app/assets/components/paper-toolbar/test/paper-toolbar.html +147 -0
  718. data/app/assets/components/platinum-elements/LICENSE +202 -0
  719. data/app/assets/components/platinum-elements/README.md +2 -0
  720. data/app/assets/components/platinum-elements/bower.json +19 -0
  721. data/app/assets/components/platinum-push-messaging/README.md +4 -0
  722. data/app/assets/components/platinum-push-messaging/bower.json +37 -0
  723. data/app/assets/components/platinum-push-messaging/demo/index.html +130 -0
  724. data/app/assets/components/platinum-push-messaging/demo/manifest.json +4 -0
  725. data/app/assets/components/platinum-push-messaging/index.html +22 -0
  726. data/app/assets/components/platinum-push-messaging/platinum-push-messaging.html +427 -0
  727. data/app/assets/components/platinum-push-messaging/service-worker.js +151 -0
  728. data/app/assets/components/platinum-sw/README.md +43 -0
  729. data/app/assets/components/platinum-sw/bootstrap/sw-toolbox-setup.js +38 -0
  730. data/app/assets/components/platinum-sw/bower.json +37 -0
  731. data/app/assets/components/platinum-sw/demo/index.html +91 -0
  732. data/app/assets/components/platinum-sw/demo/sw-import.js +1 -0
  733. data/app/assets/components/platinum-sw/index.html +22 -0
  734. data/app/assets/components/platinum-sw/platinum-sw-cache.html +116 -0
  735. data/app/assets/components/platinum-sw/platinum-sw-elements.html +14 -0
  736. data/app/assets/components/platinum-sw/platinum-sw-fetch.html +130 -0
  737. data/app/assets/components/platinum-sw/platinum-sw-import-script.html +57 -0
  738. data/app/assets/components/platinum-sw/platinum-sw-register.html +342 -0
  739. data/app/assets/components/platinum-sw/service-worker.js +52 -0
  740. data/app/assets/components/polymer/LICENSE.txt +27 -0
  741. data/app/assets/components/polymer/bower.json +26 -0
  742. data/app/assets/components/polymer/build.log +27 -0
  743. data/app/assets/components/polymer/polymer-micro.html +523 -0
  744. data/app/assets/components/polymer/polymer-mini.html +1368 -0
  745. data/app/assets/components/polymer/polymer.html +3768 -0
  746. data/app/assets/components/prism-element/README.md +13 -0
  747. data/app/assets/components/prism-element/bower.json +29 -0
  748. data/app/assets/components/prism-element/prism-highlighter.html +95 -0
  749. data/app/assets/components/prism-element/prism-import.html +11 -0
  750. data/app/assets/components/prism/LICENSE +21 -0
  751. data/app/assets/components/prism/README.md +22 -0
  752. data/app/assets/components/prism/bower.json +26 -0
  753. data/app/assets/components/prism/components.js +362 -0
  754. data/app/assets/components/prism/components/prism-actionscript.js +20 -0
  755. data/app/assets/components/prism/components/prism-actionscript.min.js +1 -0
  756. data/app/assets/components/prism/components/prism-apacheconf.js +46 -0
  757. data/app/assets/components/prism/components/prism-apacheconf.min.js +1 -0
  758. data/app/assets/components/prism/components/prism-applescript.js +23 -0
  759. data/app/assets/components/prism/components/prism-applescript.min.js +1 -0
  760. data/app/assets/components/prism/components/prism-aspnet.js +49 -0
  761. data/app/assets/components/prism/components/prism-aspnet.min.js +1 -0
  762. data/app/assets/components/prism/components/prism-autohotkey.js +27 -0
  763. data/app/assets/components/prism/components/prism-autohotkey.min.js +1 -0
  764. data/app/assets/components/prism/components/prism-bash.js +31 -0
  765. data/app/assets/components/prism/components/prism-bash.min.js +1 -0
  766. data/app/assets/components/prism/components/prism-c.js +26 -0
  767. data/app/assets/components/prism/components/prism-c.min.js +1 -0
  768. data/app/assets/components/prism/components/prism-clike.js +32 -0
  769. data/app/assets/components/prism/components/prism-clike.min.js +1 -0
  770. data/app/assets/components/prism/components/prism-coffeescript.js +83 -0
  771. data/app/assets/components/prism/components/prism-coffeescript.min.js +1 -0
  772. data/app/assets/components/prism/components/prism-core.js +426 -0
  773. data/app/assets/components/prism/components/prism-core.min.js +1 -0
  774. data/app/assets/components/prism/components/prism-cpp.js +12 -0
  775. data/app/assets/components/prism/components/prism-cpp.min.js +1 -0
  776. data/app/assets/components/prism/components/prism-csharp.js +9 -0
  777. data/app/assets/components/prism/components/prism-csharp.min.js +1 -0
  778. data/app/assets/components/prism/components/prism-css-extras.js +15 -0
  779. data/app/assets/components/prism/components/prism-css-extras.min.js +1 -0
  780. data/app/assets/components/prism/components/prism-css.js +50 -0
  781. data/app/assets/components/prism/components/prism-css.min.js +1 -0
  782. data/app/assets/components/prism/components/prism-dart.js +18 -0
  783. data/app/assets/components/prism/components/prism-dart.min.js +1 -0
  784. data/app/assets/components/prism/components/prism-eiffel.js +24 -0
  785. data/app/assets/components/prism/components/prism-eiffel.min.js +1 -0
  786. data/app/assets/components/prism/components/prism-erlang.js +35 -0
  787. data/app/assets/components/prism/components/prism-erlang.min.js +1 -0
  788. data/app/assets/components/prism/components/prism-fortran.js +34 -0
  789. data/app/assets/components/prism/components/prism-fortran.min.js +1 -0
  790. data/app/assets/components/prism/components/prism-fsharp.js +21 -0
  791. data/app/assets/components/prism/components/prism-fsharp.min.js +1 -0
  792. data/app/assets/components/prism/components/prism-gherkin.js +78 -0
  793. data/app/assets/components/prism/components/prism-gherkin.min.js +1 -0
  794. data/app/assets/components/prism/components/prism-git.js +68 -0
  795. data/app/assets/components/prism/components/prism-git.min.js +1 -0
  796. data/app/assets/components/prism/components/prism-go.js +9 -0
  797. data/app/assets/components/prism/components/prism-go.min.js +1 -0
  798. data/app/assets/components/prism/components/prism-groovy.js +50 -0
  799. data/app/assets/components/prism/components/prism-groovy.min.js +1 -0
  800. data/app/assets/components/prism/components/prism-haml.js +161 -0
  801. data/app/assets/components/prism/components/prism-haml.min.js +1 -0
  802. data/app/assets/components/prism/components/prism-handlebars.js +82 -0
  803. data/app/assets/components/prism/components/prism-handlebars.min.js +1 -0
  804. data/app/assets/components/prism/components/prism-haskell.js +32 -0
  805. data/app/assets/components/prism/components/prism-haskell.min.js +1 -0
  806. data/app/assets/components/prism/components/prism-http.js +44 -0
  807. data/app/assets/components/prism/components/prism-http.min.js +1 -0
  808. data/app/assets/components/prism/components/prism-ini.js +11 -0
  809. data/app/assets/components/prism/components/prism-ini.min.js +1 -0
  810. data/app/assets/components/prism/components/prism-jade.js +196 -0
  811. data/app/assets/components/prism/components/prism-jade.min.js +1 -0
  812. data/app/assets/components/prism/components/prism-java.js +8 -0
  813. data/app/assets/components/prism/components/prism-java.min.js +1 -0
  814. data/app/assets/components/prism/components/prism-javascript.js +28 -0
  815. data/app/assets/components/prism/components/prism-javascript.min.js +1 -0
  816. data/app/assets/components/prism/components/prism-jsx.js +22 -0
  817. data/app/assets/components/prism/components/prism-jsx.min.js +1 -0
  818. data/app/assets/components/prism/components/prism-julia.js +12 -0
  819. data/app/assets/components/prism/components/prism-julia.min.js +1 -0
  820. data/app/assets/components/prism/components/prism-latex.js +6 -0
  821. data/app/assets/components/prism/components/prism-latex.min.js +1 -0
  822. data/app/assets/components/prism/components/prism-less.js +60 -0
  823. data/app/assets/components/prism/components/prism-less.min.js +1 -0
  824. data/app/assets/components/prism/components/prism-lolcode.js +54 -0
  825. data/app/assets/components/prism/components/prism-lolcode.min.js +1 -0
  826. data/app/assets/components/prism/components/prism-markdown.js +122 -0
  827. data/app/assets/components/prism/components/prism-markdown.min.js +1 -0
  828. data/app/assets/components/prism/components/prism-markup.js +41 -0
  829. data/app/assets/components/prism/components/prism-markup.min.js +1 -0
  830. data/app/assets/components/prism/components/prism-matlab.js +17 -0
  831. data/app/assets/components/prism/components/prism-matlab.min.js +1 -0
  832. data/app/assets/components/prism/components/prism-nasm.js +20 -0
  833. data/app/assets/components/prism/components/prism-nasm.min.js +1 -0
  834. data/app/assets/components/prism/components/prism-nsis.js +19 -0
  835. data/app/assets/components/prism/components/prism-nsis.min.js +1 -0
  836. data/app/assets/components/prism/components/prism-objectivec.js +5 -0
  837. data/app/assets/components/prism/components/prism-objectivec.min.js +1 -0
  838. data/app/assets/components/prism/components/prism-pascal.js +54 -0
  839. data/app/assets/components/prism/components/prism-pascal.min.js +1 -0
  840. data/app/assets/components/prism/components/prism-perl.js +112 -0
  841. data/app/assets/components/prism/components/prism-perl.min.js +1 -0
  842. data/app/assets/components/prism/components/prism-php-extras.js +11 -0
  843. data/app/assets/components/prism/components/prism-php-extras.min.js +1 -0
  844. data/app/assets/components/prism/components/prism-php.js +109 -0
  845. data/app/assets/components/prism/components/prism-php.min.js +1 -0
  846. data/app/assets/components/prism/components/prism-powershell.js +34 -0
  847. data/app/assets/components/prism/components/prism-powershell.min.js +1 -0
  848. data/app/assets/components/prism/components/prism-python.js +13 -0
  849. data/app/assets/components/prism/components/prism-python.min.js +1 -0
  850. data/app/assets/components/prism/components/prism-r.js +19 -0
  851. data/app/assets/components/prism/components/prism-r.min.js +1 -0
  852. data/app/assets/components/prism/components/prism-rest.js +204 -0
  853. data/app/assets/components/prism/components/prism-rest.min.js +1 -0
  854. data/app/assets/components/prism/components/prism-rip.js +29 -0
  855. data/app/assets/components/prism/components/prism-rip.min.js +1 -0
  856. data/app/assets/components/prism/components/prism-ruby.js +21 -0
  857. data/app/assets/components/prism/components/prism-ruby.min.js +1 -0
  858. data/app/assets/components/prism/components/prism-rust.js +53 -0
  859. data/app/assets/components/prism/components/prism-rust.min.js +1 -0
  860. data/app/assets/components/prism/components/prism-sas.js +35 -0
  861. data/app/assets/components/prism/components/prism-sas.min.js +1 -0
  862. data/app/assets/components/prism/components/prism-scala.js +9 -0
  863. data/app/assets/components/prism/components/prism-scala.min.js +1 -0
  864. data/app/assets/components/prism/components/prism-scheme.js +24 -0
  865. data/app/assets/components/prism/components/prism-scheme.min.js +1 -0
  866. data/app/assets/components/prism/components/prism-scss.js +36 -0
  867. data/app/assets/components/prism/components/prism-scss.min.js +1 -0
  868. data/app/assets/components/prism/components/prism-smalltalk.js +31 -0
  869. data/app/assets/components/prism/components/prism-smalltalk.min.js +1 -0
  870. data/app/assets/components/prism/components/prism-smarty.js +124 -0
  871. data/app/assets/components/prism/components/prism-smarty.min.js +1 -0
  872. data/app/assets/components/prism/components/prism-sql.js +17 -0
  873. data/app/assets/components/prism/components/prism-sql.min.js +1 -0
  874. data/app/assets/components/prism/components/prism-stylus.js +61 -0
  875. data/app/assets/components/prism/components/prism-stylus.min.js +1 -0
  876. data/app/assets/components/prism/components/prism-swift.js +8 -0
  877. data/app/assets/components/prism/components/prism-swift.min.js +1 -0
  878. data/app/assets/components/prism/components/prism-twig.js +46 -0
  879. data/app/assets/components/prism/components/prism-twig.min.js +1 -0
  880. data/app/assets/components/prism/components/prism-typescript.js +3 -0
  881. data/app/assets/components/prism/components/prism-typescript.min.js +1 -0
  882. data/app/assets/components/prism/components/prism-wiki.js +80 -0
  883. data/app/assets/components/prism/components/prism-wiki.min.js +1 -0
  884. data/app/assets/components/prism/components/prism-yaml.js +44 -0
  885. data/app/assets/components/prism/components/prism-yaml.min.js +1 -0
  886. data/app/assets/components/prism/examples.js +181 -0
  887. data/app/assets/components/prism/gulpfile.js +48 -0
  888. data/app/assets/components/prism/package.json +27 -0
  889. data/app/assets/components/prism/plugins/autolinker/prism-autolinker.css +3 -0
  890. data/app/assets/components/prism/plugins/autolinker/prism-autolinker.js +66 -0
  891. data/app/assets/components/prism/plugins/autolinker/prism-autolinker.min.js +1 -0
  892. data/app/assets/components/prism/plugins/file-highlight/prism-file-highlight.js +61 -0
  893. data/app/assets/components/prism/plugins/file-highlight/prism-file-highlight.min.js +1 -0
  894. data/app/assets/components/prism/plugins/highlight-keywords/prism-highlight-keywords.js +14 -0
  895. data/app/assets/components/prism/plugins/highlight-keywords/prism-highlight-keywords.min.js +1 -0
  896. data/app/assets/components/prism/plugins/ie8/prism-ie8.css +3 -0
  897. data/app/assets/components/prism/plugins/ie8/prism-ie8.js +42 -0
  898. data/app/assets/components/prism/plugins/ie8/prism-ie8.min.js +1 -0
  899. data/app/assets/components/prism/plugins/line-highlight/prism-line-highlight.css +47 -0
  900. data/app/assets/components/prism/plugins/line-highlight/prism-line-highlight.js +109 -0
  901. data/app/assets/components/prism/plugins/line-highlight/prism-line-highlight.min.js +1 -0
  902. data/app/assets/components/prism/plugins/line-numbers/prism-line-numbers.css +40 -0
  903. data/app/assets/components/prism/plugins/line-numbers/prism-line-numbers.js +38 -0
  904. data/app/assets/components/prism/plugins/line-numbers/prism-line-numbers.min.js +1 -0
  905. data/app/assets/components/prism/plugins/show-invisibles/prism-show-invisibles.css +20 -0
  906. data/app/assets/components/prism/plugins/show-invisibles/prism-show-invisibles.js +16 -0
  907. data/app/assets/components/prism/plugins/show-invisibles/prism-show-invisibles.min.js +1 -0
  908. data/app/assets/components/prism/plugins/show-language/prism-show-language.css +16 -0
  909. data/app/assets/components/prism/plugins/show-language/prism-show-language.js +20 -0
  910. data/app/assets/components/prism/plugins/show-language/prism-show-language.min.css +1 -0
  911. data/app/assets/components/prism/plugins/show-language/prism-show-language.min.js +1 -0
  912. data/app/assets/components/prism/plugins/wpd/prism-wpd.css +11 -0
  913. data/app/assets/components/prism/plugins/wpd/prism-wpd.js +163 -0
  914. data/app/assets/components/prism/plugins/wpd/prism-wpd.min.js +1 -0
  915. data/app/assets/components/prism/prism.js +672 -0
  916. data/app/assets/components/prism/themes/prism-coy.css +231 -0
  917. data/app/assets/components/prism/themes/prism-dark.css +126 -0
  918. data/app/assets/components/prism/themes/prism-funky.css +115 -0
  919. data/app/assets/components/prism/themes/prism-okaidia.css +119 -0
  920. data/app/assets/components/prism/themes/prism-tomorrow.css +119 -0
  921. data/app/assets/components/prism/themes/prism-twilight.css +199 -0
  922. data/app/assets/components/prism/themes/prism.css +135 -0
  923. data/app/assets/components/prism/vendor/promise.js +5 -0
  924. data/app/assets/components/promise-polyfill/Gruntfile.js +40 -0
  925. data/app/assets/components/promise-polyfill/LICENSE +20 -0
  926. data/app/assets/components/promise-polyfill/Promise-Statics.js +37 -0
  927. data/app/assets/components/promise-polyfill/Promise.js +128 -0
  928. data/app/assets/components/promise-polyfill/Promise.min.js +3 -0
  929. data/app/assets/components/promise-polyfill/README.md +13 -0
  930. data/app/assets/components/promise-polyfill/bower.json +31 -0
  931. data/app/assets/components/promise-polyfill/package.json +35 -0
  932. data/app/assets/components/promise-polyfill/promise-polyfill-lite.html +7 -0
  933. data/app/assets/components/promise-polyfill/promise-polyfill.html +2 -0
  934. data/app/assets/components/sw-toolbox/CONTRIBUTING.md +30 -0
  935. data/app/assets/components/sw-toolbox/LICENSE +201 -0
  936. data/app/assets/components/sw-toolbox/README.md +156 -0
  937. data/app/assets/components/sw-toolbox/bower.json +14 -0
  938. data/app/assets/components/sw-toolbox/companion.js +23 -0
  939. data/app/assets/components/sw-toolbox/package.json +21 -0
  940. data/app/assets/components/sw-toolbox/sw-toolbox.js +148 -0
  941. data/app/assets/components/sw-toolbox/sw-toolbox.map.json +1 -0
  942. data/app/assets/components/web-animations-js/COPYING +202 -0
  943. data/app/assets/components/web-animations-js/History.md +108 -0
  944. data/app/assets/components/web-animations-js/README.md +161 -0
  945. data/app/assets/components/web-animations-js/bower.json +31 -0
  946. data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
  947. data/app/assets/components/web-animations-js/web-animations-next-lite.min.js.map +1 -0
  948. data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
  949. data/app/assets/components/web-animations-js/web-animations-next.min.js.map +1 -0
  950. data/app/assets/components/web-animations-js/web-animations.html +50 -0
  951. data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
  952. data/app/assets/components/web-animations-js/web-animations.min.js.gz +0 -0
  953. data/app/assets/components/web-animations-js/web-animations.min.js.map +1 -0
  954. data/app/assets/components/webcomponentsjs/CustomElements.js +956 -0
  955. data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
  956. data/app/assets/components/webcomponentsjs/HTMLImports.js +1078 -0
  957. data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
  958. data/app/assets/components/webcomponentsjs/MutationObserver.js +344 -0
  959. data/app/assets/components/webcomponentsjs/MutationObserver.min.js +11 -0
  960. data/app/assets/components/webcomponentsjs/README.md +125 -0
  961. data/app/assets/components/webcomponentsjs/ShadowDOM.js +4414 -0
  962. data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +15 -0
  963. data/app/assets/components/webcomponentsjs/bower.json +14 -0
  964. data/app/assets/components/webcomponentsjs/build.log +33 -0
  965. data/app/assets/components/webcomponentsjs/package.json +31 -0
  966. data/app/assets/components/webcomponentsjs/webcomponents-lite.js +2300 -0
  967. data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +13 -0
  968. data/app/assets/components/webcomponentsjs/webcomponents.js +7112 -0
  969. data/app/assets/components/webcomponentsjs/webcomponents.min.js +15 -0
  970. data/lib/polymer-elements-rails.rb +2 -0
  971. data/lib/polymer-elements-rails/engine.rb +4 -0
  972. data/lib/polymer-elements-rails/version.rb +3 -0
  973. metadata +1063 -0
@@ -0,0 +1,156 @@
1
+ # Service Worker Toolbox
2
+
3
+ > A collection of tools for [service workers](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/)
4
+
5
+ ## Service Worker helpers
6
+
7
+ Service Worker Toolbox provides some simple helpers for use in creating your own service workers. If you're not sure what service workers are or what they are for, start with [the explainer doc](https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md).
8
+
9
+ ### Installing Service Worker Toolbox
10
+
11
+ Service Worker Toolbox is available through Bower, npm or direct from github:
12
+
13
+ `bower install --save sw-toolbox`
14
+
15
+ `npm install --save sw-toolbox`
16
+
17
+ `git clone https://github.com/GoogleChrome/sw-toolbox.git`
18
+
19
+ ### Registering your service worker
20
+
21
+ From your registering page, register your service worker in the normal way. For example:
22
+
23
+ ```javascript
24
+ navigator.serviceWorker.register('my-service-worker.js');
25
+ ```
26
+
27
+ For even lower friction, if you don't intend to doing anything more fancy than just registering with a default scope, you can instead include the Service Worker Toolbox companion script in your HTML:
28
+
29
+ ```html
30
+ <script src="/path/to/sw-toolbox/companion.js" data-service-worker="my-service-worker.js"></script>
31
+ ```
32
+
33
+ As currently implemented in Chrome 40+, a service worker must exist at the root of the scope that you intend it to control, or higher. So if you want all of the pages under `/myapp/` to be controlled by the worker, the worker script itself must be served from either `/` or `/myapp/`. The default scope is the containing path of the service worker script.
34
+
35
+ ### Using Service Worker Toolbox in your worker script
36
+
37
+ In your service worker you just need to use `importScripts` to load Service Worker Toolbox
38
+
39
+ ```javascript
40
+ importScripts('bower_components/sw-toolbox/sw-toolbox.js'); // Update path to match your own setup
41
+ ```
42
+
43
+ ## Basic usage
44
+ Within your service worker file
45
+ ```javascript
46
+ // Set up routes from URL patterns to request handlers
47
+ toolbox.router.get('/myapp/index.html', someHandler);
48
+
49
+ // For some common cases Service Worker Toolbox provides a built-in handler
50
+ toolbox.router.get('/', toolbox.networkFirst);
51
+
52
+ // URL patterns are the same syntax as ExpressJS routes
53
+ // (http://expressjs.com/guide/routing.html)
54
+ toolbox.router.get(':foo/index.html', function(request, values) {
55
+ return new Response('Handled a request for ' + request.url +
56
+ ', where foo is "' + values.foo + '");
57
+ });
58
+
59
+ // For requests to other origins, specify the origin as an option
60
+ toolbox.router.post('/(.*)', apiHandler, {origin: 'https://api.example.com'});
61
+
62
+ // Provide a default handler
63
+ toolbox.router.default = myDefaultRequestHandler;
64
+
65
+ // You can provide a list of resources which will be cached at service worker install time
66
+ toolbox.precache(['/index.html', '/site.css', '/images/logo.png']);
67
+ ```
68
+
69
+ ## Request handlers
70
+ A request handler receives three arguments
71
+
72
+ ```javascript
73
+ var myHandler = function(request, values, options) {
74
+ // ...
75
+ }
76
+ ```
77
+
78
+ - `request` - [Request](https://fetch.spec.whatwg.org/#request) object that triggered the `fetch` event
79
+ - `values` - Object whose keys are the placeholder names in the URL pattern, with the values being the corresponding part of the request URL. For example, with a URL pattern of `'/images/:size/:name.jpg'` and an actual URL of `'/images/large/unicorns.jpg'`, `values` would be `{size: 'large', name: 'unicorns'}`
80
+ - `options` - the options object that was used when [creating the route](#api)
81
+
82
+ The return value should be a [Response](https://fetch.spec.whatwg.org/#response), or a [Promise](http://www.html5rocks.com/en/tutorials/es6/promises/) that resolves with a Response. If another value is returned, or if the returned Promise is rejected, the Request will fail which will appear to be a [NetworkError](https://developer.mozilla.org/en-US/docs/Web/API/DOMException#exception-NetworkError) to the page that made the request.
83
+
84
+ ### Built-in handlers
85
+
86
+ There are 5 built-in handlers to cover the most common network strategies. For more information about offline strategies see the [Offline Cookbook](http://jakearchibald.com/2014/offline-cookbook/).
87
+
88
+ #### `toolbox.networkFirst`
89
+ Try to handle the request by fetching from the network. If it succeeds, store the response in the cache. Otherwise, try to fulfill the request from the cache. This is the strategy to use for basic read-through caching. Also good for API requests where you always want the freshest data when it is available but would rather have stale data than no data.
90
+
91
+ #### `toolbox.cacheFirst`
92
+ If the request matches a cache entry, respond with that. Otherwise try to fetch the resource from the network. If the network request succeeds, update the cache. Good for resources that don't change, or for which you have some other update mechanism.
93
+
94
+ #### `toolbox.fastest`
95
+ Request the resource from both the cache and the network in parallel. Respond with whichever returns first. Usually this will be the cached version, if there is one. On the one hand this strategy will always make a network request, even if the resource is cached. On the other hand, if/when the network request completes the cache is updated, so that future cache reads will be more up-to-date.
96
+
97
+ #### `toolbox.cacheOnly`
98
+ Resolve the request from the cache, or fail. Good for when you need to guarantee that no network request will be made - to save battery on mobile, for example.
99
+
100
+ #### `toolbox.networkOnly`
101
+ Handle the request by trying to fetch the URL from the network. If the fetch fails, fail the request. Essentially the same as not creating a route for the URL at all.
102
+
103
+ ## API
104
+
105
+ ### Global Options
106
+ Any method that accepts an `options` object will accept a boolean option of `debug`. When true this causes Service Worker Toolbox to output verbose log messages to the worker's console.
107
+
108
+ Most methods that involve a cache (`toolbox.cache`, `toolbox.uncache`, `toolbox.fastest`, `toolbox.cacheFirst`, `toolbox.cacheOnly`, `toolbox.networkFirst`) accept an option called `cache`, which is the **name** of the [Cache](https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#cache) that should be used. If not specifed Service Worker Toolbox will use a default cache.
109
+
110
+ ### `toolbox.router.get(urlPattern, handler, options)`
111
+ ### `toolbox.router.post(urlPattern, handler, options)`
112
+ ### `toolbox.router.put(urlPattern, handler, options)`
113
+ ### `toolbox.router.delete(urlPattern, handler, options)`
114
+ ### `toolbox.router.head(urlPattern, handler, options)`
115
+ Create a route that causes requests for URLs matching `urlPattern` to be resolved by calling `handler`. Matches requests using the GET, POST, PUT, DELETE or HEAD HTTP methods respectively.
116
+
117
+ - `urlPattern` - an Express style route. See the docs for the [path-to-regexp](https://github.com/pillarjs/path-to-regexp) module for the full syntax
118
+ - `handler` - a request handler, as [described above](#request-handlers)
119
+ - `options` - an object containing options for the route. This options object will be available to the request handler. The `origin` option is specific to the route methods, and is an exact string or a Regexp against which the origin of the Request must match for the route to be used.
120
+
121
+ ### `toolbox.router.any(urlPattern, handler, options)`
122
+ Like `toolbox.router.get`, etc., but matches any HTTP method.
123
+
124
+ ### `toolbox.router.default`
125
+ If you set this property to a function it will be used as the request handler for any request that does not match a route.
126
+
127
+ ### `toolbox.precache(arrayOfURLs)`
128
+ Add each URL in arrayOfURLs to the list of resources that should be cached during the service worker install step. Note that this needs to be called before the install event is triggered, so you should do it on the first run of your script.
129
+
130
+ ### `toolbox.cache(url, options)`
131
+ Causes the resource at `url` to be added to the cache. Returns a Promise. Supports the `debug` and `cache` [global options](#global-options).
132
+
133
+ ### `toolbox.uncache(url, options)`
134
+ Causes the resource at `url` to be removed from the cache. Returns a Promise. Supports the `debug` and `cache` [global options](#global-options).
135
+
136
+ ## Support
137
+
138
+ If you’ve found an error in this library, please file an issue: https://github.com/GoogleChrome/sw-toolbox/issues
139
+
140
+ Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.
141
+
142
+ ## License
143
+
144
+ Copyright 2014 Google, Inc.
145
+
146
+ Licensed under the Apache License, Version 2.0 (the "License");
147
+ you may not use this file except in compliance with the License.
148
+ You may obtain a copy of the License at
149
+
150
+ http://www.apache.org/licenses/LICENSE-2.0
151
+
152
+ Unless required by applicable law or agreed to in writing, software
153
+ distributed under the License is distributed on an "AS IS" BASIS,
154
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
155
+ See the License for the specific language governing permissions and
156
+ limitations under the License.
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "sw-toolbox",
3
+ "main": "sw-toolbox.js",
4
+ "moduleType": [
5
+ "globals"
6
+ ],
7
+ "license": "Apache-2",
8
+ "ignore": [
9
+ "**/.*",
10
+ "lib",
11
+ "tests",
12
+ "gulpfile.js"
13
+ ]
14
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ Copyright 2014 Google Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+ (function() {
17
+ 'use strict';
18
+ var workerScript = document.currentScript.dataset.serviceWorker;
19
+
20
+ if (workerScript && 'serviceWorker' in navigator) {
21
+ navigator.serviceWorker.register(workerScript);
22
+ }
23
+ })();
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "sw-toolbox",
3
+ "version": "2.0.3",
4
+ "scripts": {
5
+ "test": "gulp test"
6
+ },
7
+ "repository": "https://github.com/GoogleChrome/sw-toolbox",
8
+ "devDependencies": {
9
+ "browserify": "^6.3.2",
10
+ "gulp": "^3.8.10",
11
+ "gulp-jshint": "^1.9.0",
12
+ "jshint-stylish": "^1.0.0",
13
+ "path-to-regexp": "^1.0.1",
14
+ "serviceworker-cache-polyfill": "coonsta/cache-polyfill",
15
+ "vinyl-source-stream": "^1.0.0"
16
+ },
17
+ "dependencies": {
18
+ "browserify-header": "^0.9.2",
19
+ "minifyify": "^6.4.0"
20
+ }
21
+ }
@@ -0,0 +1,148 @@
1
+ /*
2
+ Copyright 2014 Google Inc. All Rights Reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.toolbox=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
18
+ "use strict";function cache(e,t){return helpers.openCache(t).then(function(t){return t.add(e)})}function uncache(e,t){return helpers.openCache(t).then(function(t){return t["delete"](e)})}function precache(e){Array.isArray(e)||(e=[e]),options.preCacheItems=options.preCacheItems.concat(e)}require("serviceworker-cache-polyfill");var options=require("./options"),router=require("./router"),helpers=require("./helpers"),strategies=require("./strategies");helpers.debug("Service Worker Toolbox is loading"),self.addEventListener("install",function(e){var t=options.cacheName+"$$$inactive$$$";helpers.debug("install event fired"),helpers.debug("creating cache ["+t+"]"),helpers.debug("preCache list: "+(options.preCacheItems.join(", ")||"(none)")),e.waitUntil(helpers.openCache({cacheName:t}).then(function(e){return Promise.all(options.preCacheItems).then(e.addAll.bind(e))}))}),self.addEventListener("activate",function(e){helpers.debug("activate event fired");var t=options.cacheName+"$$$inactive$$$";e.waitUntil(helpers.renameCache(t,options.cacheName))}),self.addEventListener("fetch",function(e){var t=router.match(e.request);t?e.respondWith(t(e.request)):router["default"]&&e.respondWith(router["default"](e.request))}),module.exports={networkOnly:strategies.networkOnly,networkFirst:strategies.networkFirst,cacheOnly:strategies.cacheOnly,cacheFirst:strategies.cacheFirst,fastest:strategies.fastest,router:router,options:options,cache:cache,uncache:uncache,precache:precache};
19
+ },{"./helpers":2,"./options":3,"./router":5,"./strategies":9,"serviceworker-cache-polyfill":14}],2:[function(require,module,exports){
20
+ "use strict";function debug(e,n){n=n||{};var c=n.debug||globalOptions.debug;c&&console.log("[sw-toolbox] "+e)}function openCache(e){e=e||{};var n=e.cacheName||globalOptions.cacheName;return debug('Opening cache "'+n+'"',e),caches.open(n)}function fetchAndCache(e,n){n=n||{};var c=n.successResponses||globalOptions.successResponses;return fetch(e.clone()).then(function(t){return"GET"===e.method&&c.test(t.status)&&openCache(n).then(function(n){n.put(e,t)}),t.clone()})}function renameCache(e,n,c){return debug("Renaming cache: ["+e+"] to ["+n+"]",c),caches["delete"](n).then(function(){return Promise.all([caches.open(e),caches.open(n)]).then(function(n){var c=n[0],t=n[1];return c.keys().then(function(e){return Promise.all(e.map(function(e){return c.match(e).then(function(n){return t.put(e,n)})}))}).then(function(){return caches["delete"](e)})})})}var globalOptions=require("./options");module.exports={debug:debug,fetchAndCache:fetchAndCache,openCache:openCache,renameCache:renameCache};
21
+ },{"./options":3}],3:[function(require,module,exports){
22
+ "use strict";var scope;scope=self.registration?self.registration.scope:self.scope||new URL("./",self.location).href,module.exports={cacheName:"$$$toolbox-cache$$$"+scope+"$$$",debug:!1,preCacheItems:[],successResponses:/^0|([123]\d\d)|(40[14567])|410$/};
23
+ },{}],4:[function(require,module,exports){
24
+ "use strict";var url=new URL("./",self.location),basePath=url.pathname,pathRegexp=require("path-to-regexp"),Route=function(e,t,i,s){0!==t.indexOf("/")&&(t=basePath+t),this.method=e,this.keys=[],this.regexp=pathRegexp(t,this.keys),this.options=s,this.handler=i};Route.prototype.makeHandler=function(e){var t=this.regexp.exec(e),i={};return this.keys.forEach(function(e,s){i[e.name]=t[s+1]}),function(e){return this.handler(e,i,this.options)}.bind(this)},module.exports=Route;
25
+ },{"path-to-regexp":12}],5:[function(require,module,exports){
26
+ /*
27
+ Copyright 2014 Google Inc. All Rights Reserved.
28
+
29
+ Licensed under the Apache License, Version 2.0 (the "License");
30
+ you may not use this file except in compliance with the License.
31
+ You may obtain a copy of the License at
32
+
33
+ http://www.apache.org/licenses/LICENSE-2.0
34
+
35
+ Unless required by applicable law or agreed to in writing, software
36
+ distributed under the License is distributed on an "AS IS" BASIS,
37
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38
+ See the License for the specific language governing permissions and
39
+ limitations under the License.
40
+ */
41
+ 'use strict';
42
+
43
+ var Route = require('./route');
44
+
45
+ function regexEscape(s) {
46
+ return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
47
+ }
48
+
49
+ var keyMatch = function(map, string) {
50
+ for (var item of map) {
51
+ var pattern = new RegExp(item[0]), value = item[1];
52
+ if (pattern.test(string)) {
53
+ return value;
54
+ }
55
+ }
56
+ return null;
57
+ };
58
+
59
+ var Router = function() {
60
+ this.routes = new Map();
61
+ this.default = null;
62
+ };
63
+
64
+ ['get', 'post', 'put', 'delete', 'head', 'any'].forEach(function(method) {
65
+ Router.prototype[method] = function(path, handler, options) {
66
+ return this.add(method, path, handler, options);
67
+ };
68
+ });
69
+
70
+ Router.prototype.add = function(method, path, handler, options) {
71
+ options = options || {};
72
+ var origin = options.origin || self.location.origin;
73
+ if (origin instanceof RegExp) {
74
+ origin = origin.source;
75
+ } else {
76
+ origin = regexEscape(origin);
77
+ }
78
+ method = method.toLowerCase();
79
+
80
+ var route = new Route(method, path, handler, options);
81
+
82
+ if (!this.routes.has(origin)) {
83
+ this.routes.set(origin, new Map());
84
+ }
85
+
86
+ var methodMap = this.routes.get(origin);
87
+ if (!methodMap.has(method)) {
88
+ methodMap.set(method, new Map());
89
+ }
90
+
91
+ var routeMap = methodMap.get(method);
92
+ routeMap.set(route.regexp.source, route);
93
+ };
94
+
95
+ Router.prototype.matchMethod = function(method, url) {
96
+ url = new URL(url);
97
+ var origin = url.origin;
98
+ var path = url.pathname;
99
+ method = method.toLowerCase();
100
+
101
+ var methods = keyMatch(this.routes, origin);
102
+ if (!methods) {
103
+ return null;
104
+ }
105
+
106
+ var routes = methods.get(method);
107
+ if (!routes) {
108
+ return null;
109
+ }
110
+
111
+ var route = keyMatch(routes, path);
112
+
113
+ if (route) {
114
+ return route.makeHandler(path);
115
+ }
116
+
117
+ return null;
118
+ };
119
+
120
+ Router.prototype.match = function(request) {
121
+ return this.matchMethod(request.method, request.url) || this.matchMethod('any', request.url);
122
+ };
123
+
124
+ module.exports = new Router();
125
+
126
+ },{"./route":4}],6:[function(require,module,exports){
127
+ "use strict";function cacheFirst(e,r,t){return helpers.debug("Strategy: cache first ["+e.url+"]",t),helpers.openCache(t).then(function(r){return r.match(e).then(function(r){return r?r:helpers.fetchAndCache(e,t)})})}var helpers=require("../helpers");module.exports=cacheFirst;
128
+ },{"../helpers":2}],7:[function(require,module,exports){
129
+ "use strict";function cacheOnly(e,r,c){return helpers.debug("Strategy: cache only ["+e.url+"]",c),helpers.openCache(c).then(function(r){return r.match(e)})}var helpers=require("../helpers");module.exports=cacheOnly;
130
+ },{"../helpers":2}],8:[function(require,module,exports){
131
+ "use strict";function fastest(e,r,t){helpers.debug("Strategy: fastest ["+e.url+"]",t);var n=!1,c=[],s=function(e){return c.push(e.toString()),n?Promise.reject(new Error('Both cache and network failed: "'+c.join('", "')+'"')):void(n=!0)};return new Promise(function(r,n){helpers.fetchAndCache(e.clone(),t).then(r,s),cacheOnly(e,t).then(r,s)})}var helpers=require("../helpers"),cacheOnly=require("./cacheOnly");module.exports=fastest;
132
+ },{"../helpers":2,"./cacheOnly":7}],9:[function(require,module,exports){
133
+ module.exports={networkOnly:require("./networkOnly"),networkFirst:require("./networkFirst"),cacheOnly:require("./cacheOnly"),cacheFirst:require("./cacheFirst"),fastest:require("./fastest")};
134
+ },{"./cacheFirst":6,"./cacheOnly":7,"./fastest":8,"./networkFirst":10,"./networkOnly":11}],10:[function(require,module,exports){
135
+ "use strict";function networkFirst(e,r,s){s=s||{};var t=s.successResponses||globalOptions.successResponses;return helpers.debug("Strategy: network first ["+e.url+"]",s),helpers.openCache(s).then(function(r){return helpers.fetchAndCache(e,s).then(function(n){return t.test(n.status)?n:r.match(e).then(function(e){return helpers.debug("Response was an HTTP error",s),e?(helpers.debug("Resolving with cached response instead",s),e):(helpers.debug("No cached result, resolving with HTTP error response from network",s),n)})})["catch"](function(t){return helpers.debug("Network error, fallback to cache ["+e.url+"]",s),r.match(e)})})}var globalOptions=require("../options"),helpers=require("../helpers");module.exports=networkFirst;
136
+ },{"../helpers":2,"../options":3}],11:[function(require,module,exports){
137
+ "use strict";function networkOnly(e,r,t){return helpers.debug("Strategy: network only ["+e.url+"]",t),fetch(e)}var helpers=require("../helpers");module.exports=networkOnly;
138
+ },{"../helpers":2}],12:[function(require,module,exports){
139
+ function parse(e){for(var t,r=[],n=0,o=0,p="";null!=(t=PATH_REGEXP.exec(e));){var a=t[0],i=t[1],s=t.index;if(p+=e.slice(o,s),o=s+a.length,i)p+=i[1];else{p&&(r.push(p),p="");var u=t[2],c=t[3],l=t[4],f=t[5],g=t[6],x=t[7],h="+"===g||"*"===g,m="?"===g||"*"===g,y=u||"/",T=l||f||(x?".*":"[^"+y+"]+?");r.push({name:c||n++,prefix:u||"",delimiter:y,optional:m,repeat:h,pattern:escapeGroup(T)})}}return o<e.length&&(p+=e.substr(o)),p&&r.push(p),r}function compile(e){return tokensToFunction(parse(e))}function tokensToFunction(e){for(var t=new Array(e.length),r=0;r<e.length;r++)"object"==typeof e[r]&&(t[r]=new RegExp("^"+e[r].pattern+"$"));return function(r){var n="";r=r||{};for(var o=0;o<e.length;o++){var p=e[o];if("string"!=typeof p){var a=r[p.name];if(null==a){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to be defined')}if(isarray(a)){if(!p.repeat)throw new TypeError('Expected "'+p.name+'" to not repeat');if(0===a.length){if(p.optional)continue;throw new TypeError('Expected "'+p.name+'" to not be empty')}for(var i=0;i<a.length;i++){if(!t[o].test(a[i]))throw new TypeError('Expected all "'+p.name+'" to match "'+p.pattern+'"');n+=(0===i?p.prefix:p.delimiter)+encodeURIComponent(a[i])}}else{if(!t[o].test(a))throw new TypeError('Expected "'+p.name+'" to match "'+p.pattern+'"');n+=p.prefix+encodeURIComponent(a)}}else n+=p}return n}}function escapeString(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function escapeGroup(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function attachKeys(e,t){return e.keys=t,e}function flags(e){return e.sensitive?"":"i"}function regexpToRegexp(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return attachKeys(e,t)}function arrayToRegexp(e,t,r){for(var n=[],o=0;o<e.length;o++)n.push(pathToRegexp(e[o],t,r).source);var p=new RegExp("(?:"+n.join("|")+")",flags(r));return attachKeys(p,t)}function stringToRegexp(e,t,r){for(var n=parse(e),o=tokensToRegExp(n,r),p=0;p<n.length;p++)"string"!=typeof n[p]&&t.push(n[p]);return attachKeys(o,t)}function tokensToRegExp(e,t){t=t||{};for(var r=t.strict,n=t.end!==!1,o="",p=e[e.length-1],a="string"==typeof p&&/\/$/.test(p),i=0;i<e.length;i++){var s=e[i];if("string"==typeof s)o+=escapeString(s);else{var u=escapeString(s.prefix),c=s.pattern;s.repeat&&(c+="(?:"+u+c+")*"),c=s.optional?u?"(?:"+u+"("+c+"))?":"("+c+")?":u+"("+c+")",o+=c}}return r||(o=(a?o.slice(0,-2):o)+"(?:\\/(?=$))?"),o+=n?"$":r&&a?"":"(?=\\/|$)",new RegExp("^"+o,flags(t))}function pathToRegexp(e,t,r){return t=t||[],isarray(t)?r||(r={}):(r=t,t=[]),e instanceof RegExp?regexpToRegexp(e,t,r):isarray(e)?arrayToRegexp(e,t,r):stringToRegexp(e,t,r)}var isarray=require("isarray");module.exports=pathToRegexp,module.exports.parse=parse,module.exports.compile=compile,module.exports.tokensToFunction=tokensToFunction,module.exports.tokensToRegExp=tokensToRegExp;var PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");
140
+ },{"isarray":13}],13:[function(require,module,exports){
141
+ module.exports=Array.isArray||function(r){return"[object Array]"==Object.prototype.toString.call(r)};
142
+ },{}],14:[function(require,module,exports){
143
+ Cache.prototype.add||(Cache.prototype.add=function(t){return this.addAll([t])}),Cache.prototype.addAll||(Cache.prototype.addAll=function(t){function e(t){this.name="NetworkError",this.code=19,this.message=t}var r=this;return e.prototype=Object.create(Error.prototype),Promise.resolve().then(function(){if(arguments.length<1)throw new TypeError;return t=t.map(function(t){return t instanceof Request?t:String(t)}),Promise.all(t.map(function(t){"string"==typeof t&&(t=new Request(t));var r=new URL(t.url).protocol;if("http:"!==r&&"https:"!==r)throw new e("Invalid scheme");return fetch(t.clone())}))}).then(function(e){return Promise.all(e.map(function(e,n){return r.put(t[n],e)}))}).then(function(){return void 0})});
144
+ },{}]},{},[1])(1)
145
+ });
146
+
147
+
148
+ //# sourceMappingURL=sw-toolbox.map.json
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["node_modules/browserify/node_modules/browser-pack/_prelude.js","lib/router.js","lib/sw-toolbox.js","lib/helpers.js","lib/options.js","lib/strategies/index.js","lib/route.js","lib/strategies/networkOnly.js","lib/strategies/networkFirst.js","lib/strategies/cacheOnly.js","lib/strategies/cacheFirst.js","lib/strategies/fastest.js","node_modules/serviceworker-cache-polyfill/index.js","node_modules/path-to-regexp/index.js","node_modules/path-to-regexp/node_modules/isarray/index.js"],"names":["cache","url","options","helpers","openCache","then","add","uncache","precache","items","Array","isArray","preCacheItems","concat","require","router","strategies","debug","self","addEventListener","event","inactiveCache","cacheName","join","waitUntil","Promise","all","addAll","bind","renameCache","handler","match","request","respondWith","module","exports","networkOnly","networkFirst","cacheOnly","cacheFirst","fastest","message","flag","globalOptions","console","log","caches","open","fetchAndCache","successResponses","fetch","clone","response","method","test","status","put","source","destination","results","sourceCache","destCache","keys","requests","map","scope","registration","URL","location","href","basePath","pathname","pathRegexp","Route","path","indexOf","this","regexp","prototype","makeHandler","exec","values","forEach","key","index","name","cacheResponse","error","rejected","reasons","maybeReject","reason","push","toString","reject","Error","resolve","Cache","NetworkError","code","Object","create","arguments","length","TypeError","Request","String","scheme","protocol","responses","i","undefined","parse","str","res","tokens","PATH_REGEXP","m","escaped","offset","slice","prefix","capture","group","suffix","asterisk","repeat","optional","delimiter","pattern","escapeGroup","substr","compile","tokensToFunction","matches","RegExp","obj","value","isarray","j","encodeURIComponent","escapeString","replace","attachKeys","re","flags","sensitive","regexpToRegexp","groups","arrayToRegexp","parts","pathToRegexp","stringToRegexp","tokensToR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AAQmB,cAGxB9C,KAAK,SAASwG,GAGf,MAAOpF,SAAQC,IACbmF,EAAU7C,IAAI,SAASZ,EAAU0D,GAC/B,MAAO9G,GAAMwD,IAAIO,EAAS+C,GAAI1D,QAGjC/C,KAAK,WACN,MAAO0G","file":"bundle.js","sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})","/*\n Copyright 2014 Google Inc. All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n'use strict';\n\nvar Route = require('./route');\n\nfunction regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\n\nvar keyMatch = function(map, string) {\n for (var item of map) {\n var pattern = new RegExp(item[0]), value = item[1];\n if (pattern.test(string)) {\n return value;\n }\n }\n return null;\n};\n\nvar Router = function() {\n this.routes = new Map();\n this.default = null;\n};\n\n['get', 'post', 'put', 'delete', 'head', 'any'].forEach(function(method) {\n Router.prototype[method] = function(path, handler, options) {\n return this.add(method, path, handler, options);\n };\n});\n\nRouter.prototype.add = function(method, path, handler, options) {\n options = options || {};\n var origin = options.origin || self.location.origin;\n if (origin instanceof RegExp) {\n origin = origin.source;\n } else {\n origin = regexEscape(origin);\n }\n method = method.toLowerCase();\n\n var route = new Route(method, path, handler, options);\n\n if (!this.routes.has(origin)) {\n this.routes.set(origin, new Map());\n }\n\n var methodMap = this.routes.get(origin);\n if (!methodMap.has(method)) {\n methodMap.set(method, new Map());\n }\n\n var routeMap = methodMap.get(method);\n routeMap.set(route.regexp.source, route);\n};\n\nRouter.prototype.matchMethod = function(method, url) {\n url = new URL(url);\n var origin = url.origin;\n var path = url.pathname;\n method = method.toLowerCase();\n\n var methods = keyMatch(this.routes, origin);\n if (!methods) {\n return null;\n }\n\n var routes = methods.get(method);\n if (!routes) {\n return null;\n }\n\n var route = keyMatch(routes, path);\n\n if (route) {\n return route.makeHandler(path);\n }\n\n return null;\n};\n\nRouter.prototype.match = function(request) {\n return this.matchMethod(request.method, request.url) || this.matchMethod('any', request.url);\n};\n\nmodule.exports = new Router();\n","/*\n Copyright 2014 Google Inc. All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n'use strict';\n\nrequire('serviceworker-cache-polyfill');\nvar options = require('./options');\nvar router = require('./router');\nvar helpers = require('./helpers');\nvar strategies = require('./strategies');\n\nhelpers.debug('Service Worker Toolbox is loading');\n\n// Install\n\nself.addEventListener('install', function(event) {\n var inactiveCache = options.cacheName + '$$$inactive$$$';\n helpers.debug('install event fired');\n helpers.debug('creating cache [' + inactiveCache + ']');\n helpers.debug('preCache list: ' + (options.preCacheItems.join(', ') || '(none)'));\n event.waitUntil(\n helpers.openCache({cacheName: inactiveCache}).then(function(cache) {\n return Promise.all(options.preCacheItems).then(cache.addAll.bind(cache));\n })\n );\n});\n\n// Activate\n\nself.addEventListener('activate', function(event) {\n helpers.debug('activate event fired');\n var inactiveCache = options.cacheName + '$$$inactive$$$';\n event.waitUntil(helpers.renameCache(inactiveCache, options.cacheName));\n});\n\n// Fetch\n\nself.addEventListener('fetch', function(event) {\n var handler = router.match(event.request);\n\n if (handler) {\n event.respondWith(handler(event.request));\n } else if (router.default) {\n event.respondWith(router.default(event.request));\n }\n});\n\n// Caching\n\nfunction cache(url, options) {\n return helpers.openCache(options).then(function(cache) {\n return cache.add(url);\n });\n}\n\nfunction uncache(url, options) {\n return helpers.openCache(options).then(function(cache) {\n return cache.delete(url);\n });\n}\n\nfunction precache(items) {\n if (!Array.isArray(items)) {\n items = [items];\n }\n options.preCacheItems = options.preCacheItems.concat(items);\n}\n\nmodule.exports = {\n networkOnly: strategies.networkOnly,\n networkFirst: strategies.networkFirst,\n cacheOnly: strategies.cacheOnly,\n cacheFirst: strategies.cacheFirst,\n fastest: strategies.fastest,\n router: router,\n options: options,\n cache: cache,\n uncache: uncache,\n precache: precache\n};\n","/*\n Copyright 2014 Google Inc. All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n'use strict';\n\nvar globalOptions = require('./options');\n\nfunction debug(message, options) {\n options = options || {};\n var flag = options.debug || globalOptions.debug;\n if (flag) {\n console.log('[sw-toolbox] ' + message);\n }\n}\n\nfunction openCache(options) {\n options = options || {};\n var cacheName = options.cacheName || globalOptions.cacheName;\n debug('Opening cache \"' + cacheName + '\"', options);\n return caches.open(cacheName);\n}\n\nfunction fetchAndCache(request, options) {\n options = options || {};\n var successResponses = options.successResponses || globalOptions.successResponses;\n return fetch(request.clone()).then(function(response) {\n\n // Only cache GET requests with successful responses\n if (request.method === 'GET' && successResponses.test(response.status)) {\n openCache(options).then(function(cache) {\n cache.put(request, response);\n });\n }\n\n return response.clone();\n });\n}\n\nfunction renameCache(source, destination, options) {\n debug('Renaming cache: [' + source + '] to [' + destination + ']', options);\n return caches.delete(destination).then(function() {\n return Promise.all([\n caches.open(source),\n caches.open(destination)\n ]).then(function(results) {\n var sourceCache = results[0];\n var destCache = results[1];\n\n return sourceCache.keys().then(function(requests) {\n return Promise.all(requests.map(function(request) {\n return sourceCache.match(request).then(function(response) {\n return destCache.put(request, response);\n });\n }));\n }).then(function() {\n return caches.delete(source);\n });\n });\n });\n}\n\nmodule.exports = {\n debug: debug,\n fetchAndCache: fetchAndCache,\n openCache: openCache,\n renameCache: renameCache\n};\n","/*\n\tCopyright 2014 Google Inc. All Rights Reserved.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n*/\n'use strict';\n\n// TODO: This is necessary to handle different implementations in the wild\n// The spec defines self.registration, but it was not implemented in Chrome 40.\nvar scope;\nif (self.registration) {\n scope = self.registration.scope;\n} else {\n scope = self.scope || new URL('./', self.location).href;\n}\n\nmodule.exports = {\n\tcacheName: '$$$toolbox-cache$$$' + scope + '$$$',\n\tdebug: false,\n\tpreCacheItems: [],\n\t// A regular expression to apply to HTTP response codes. Codes that match\n\t// will be considered successes, while others will not, and will not be\n\t// cached.\n\tsuccessResponses: /^0|([123]\\d\\d)|(40[14567])|410$/,\n};\n","/*\n\tCopyright 2014 Google Inc. All Rights Reserved.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n*/\nmodule.exports = {\n networkOnly: require('./networkOnly'),\n networkFirst: require('./networkFirst'),\n cacheOnly: require('./cacheOnly'),\n cacheFirst: require('./cacheFirst'),\n fastest: require('./fastest')\t\n};","/*\n Copyright 2014 Google Inc. All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n'use strict';\n\n//TODO: Use self.registration.scope instead of self.location\nvar url = new URL('./', self.location);\nvar basePath = url.pathname;\nvar pathRegexp = require('path-to-regexp');\n\n\nvar Route = function(method, path, handler, options) {\n // The URL() constructor can't parse express-style routes as they are not\n // valid urls. This means we have to manually manipulate relative urls into\n // absolute ones. This check is extremely naive but implementing a tweaked\n // version of the full algorithm seems like overkill\n // (https://url.spec.whatwg.org/#concept-basic-url-parser)\n if (path.indexOf('/') !== 0) {\n path = basePath + path;\n }\n\n this.method = method;\n this.keys = [];\n this.regexp = pathRegexp(path, this.keys);\n this.options = options;\n this.handler = handler;\n};\n\nRoute.prototype.makeHandler = function(url) {\n var match = this.regexp.exec(url);\n var values = {};\n this.keys.forEach(function(key, index) {\n values[key.name] = match[index + 1];\n });\n return function(request) {\n return this.handler(request, values, this.options);\n }.bind(this);\n};\n\nmodule.exports = Route;\n","/*\n\tCopyright 2014 Google Inc. All Rights Reserved.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n*/\n'use strict';\nvar helpers = require('../helpers');\n\nfunction networkOnly(request, values, options) {\n helpers.debug('Strategy: network only [' + request.url + ']', options);\n return fetch(request);\n}\n\nmodule.exports = networkOnly;","/*\n Copyright 2014 Google Inc. All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n'use strict';\nvar globalOptions = require('../options');\nvar helpers = require('../helpers');\n\nfunction networkFirst(request, values, options) {\n options = options || {};\n var successResponses = options.successResponses || globalOptions.successResponses;\n helpers.debug('Strategy: network first [' + request.url + ']', options);\n return helpers.openCache(options).then(function(cache) {\n return helpers.fetchAndCache(request, options).then(function(response) {\n if (successResponses.test(response.status)) {\n return response;\n }\n\n return cache.match(request).then(function(cacheResponse) {\n helpers.debug('Response was an HTTP error', options);\n if (cacheResponse) {\n helpers.debug('Resolving with cached response instead', options);\n return cacheResponse;\n } else {\n // If we didn't have anything in the cache, it's better to return the\n // error page than to return nothing\n helpers.debug('No cached result, resolving with HTTP error response from network', options);\n return response;\n }\n });\n }).catch(function(error) {\n helpers.debug('Network error, fallback to cache [' + request.url + ']', options);\n return cache.match(request);\n });\n });\n}\n\nmodule.exports = networkFirst;","/*\n\tCopyright 2014 Google Inc. All Rights Reserved.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n*/\n'use strict';\nvar helpers = require('../helpers');\n\nfunction cacheOnly(request, values, options) {\n helpers.debug('Strategy: cache only [' + request.url + ']', options);\n return helpers.openCache(options).then(function(cache) {\n return cache.match(request);\n });\n}\n\nmodule.exports = cacheOnly;\n","/*\n\tCopyright 2014 Google Inc. All Rights Reserved.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n*/\n'use strict';\nvar helpers = require('../helpers');\n\nfunction cacheFirst(request, values, options) {\n helpers.debug('Strategy: cache first [' + request.url + ']', options);\n return helpers.openCache(options).then(function(cache) {\n return cache.match(request).then(function (response) {\n if (response) {\n return response;\n }\n\n return helpers.fetchAndCache(request, options);\n });\n });\n}\n\nmodule.exports = cacheFirst;","/*\n Copyright 2014 Google Inc. All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n*/\n'use strict';\nvar helpers = require('../helpers');\nvar cacheOnly = require('./cacheOnly');\n\nfunction fastest(request, values, options) {\n helpers.debug('Strategy: fastest [' + request.url + ']', options);\n var rejected = false;\n var reasons = [];\n\n var maybeReject = function(reason) {\n reasons.push(reason.toString());\n if (rejected) {\n return Promise.reject(new Error('Both cache and network failed: \"' + reasons.join('\", \"') + '\"'));\n }\n rejected = true;\n };\n\n return new Promise(function(resolve, reject) {\n helpers.fetchAndCache(request.clone(), options).then(resolve, maybeReject);\n cacheOnly(request, options).then(resolve, maybeReject);\n });\n}\n\nmodule.exports = fastest;","if (!Cache.prototype.add) {\n Cache.prototype.add = function add(request) {\n return this.addAll([request]);\n };\n}\n\nif (!Cache.prototype.addAll) {\n Cache.prototype.addAll = function addAll(requests) {\n var cache = this;\n\n // Since DOMExceptions are not constructable:\n function NetworkError(message) {\n this.name = 'NetworkError';\n this.code = 19;\n this.message = message;\n }\n NetworkError.prototype = Object.create(Error.prototype);\n\n return Promise.resolve().then(function() {\n if (arguments.length < 1) throw new TypeError();\n \n // Simulate sequence<(Request or USVString)> binding:\n var sequence = [];\n\n requests = requests.map(function(request) {\n if (request instanceof Request) {\n return request;\n }\n else {\n return String(request); // may throw TypeError\n }\n });\n\n return Promise.all(\n requests.map(function(request) {\n if (typeof request === 'string') {\n request = new Request(request);\n }\n\n var scheme = new URL(request.url).protocol;\n\n if (scheme !== 'http:' && scheme !== 'https:') {\n throw new NetworkError(\"Invalid scheme\");\n }\n\n return fetch(request.clone());\n })\n );\n }).then(function(responses) {\n // TODO: check that requests don't overwrite one another\n // (don't think this is possible to polyfill due to opaque responses)\n return Promise.all(\n responses.map(function(response, i) {\n return cache.put(requests[i], response);\n })\n );\n }).then(function() {\n return undefined;\n });\n };\n}\n","var isarray = require('isarray')\n\n/**\n * Expose `pathToRegexp`.\n */\nmodule.exports = pathToRegexp\nmodule.exports.parse = parse\nmodule.exports.compile = compile\nmodule.exports.tokensToFunction = tokensToFunction\nmodule.exports.tokensToRegExp = tokensToRegExp\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n // Match escaped characters that would otherwise appear in future matches.\n // This allows the user to escape special characters that won't transform.\n '(\\\\\\\\.)',\n // Match Express-style parameters and un-named parameters with a prefix\n // and optional suffixes. Matches appear as:\n //\n // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n // \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n // \"/*\" => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n '([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^()])+)\\\\))([+*?])?|(\\\\*))'\n].join('|'), 'g')\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param {String} str\n * @return {Array}\n */\nfunction parse (str) {\n var tokens = []\n var key = 0\n var index = 0\n var path = ''\n var res\n\n while ((res = PATH_REGEXP.exec(str)) != null) {\n var m = res[0]\n var escaped = res[1]\n var offset = res.index\n path += str.slice(index, offset)\n index = offset + m.length\n\n // Ignore already escaped sequences.\n if (escaped) {\n path += escaped[1]\n continue\n }\n\n // Push the current path onto the tokens.\n if (path) {\n tokens.push(path)\n path = ''\n }\n\n var prefix = res[2]\n var name = res[3]\n var capture = res[4]\n var group = res[5]\n var suffix = res[6]\n var asterisk = res[7]\n\n var repeat = suffix === '+' || suffix === '*'\n var optional = suffix === '?' || suffix === '*'\n var delimiter = prefix || '/'\n var pattern = capture || group || (asterisk ? '.*' : '[^' + delimiter + ']+?')\n\n tokens.push({\n name: name || key++,\n prefix: prefix || '',\n delimiter: delimiter,\n optional: optional,\n repeat: repeat,\n pattern: escapeGroup(pattern)\n })\n }\n\n // Match any characters still remaining.\n if (index < str.length) {\n path += str.substr(index)\n }\n\n // If the path exists, push it onto the end.\n if (path) {\n tokens.push(path)\n }\n\n return tokens\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param {String} str\n * @return {Function}\n */\nfunction compile (str) {\n return tokensToFunction(parse(str))\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction (tokens) {\n // Compile all the tokens into regexps.\n var matches = new Array(tokens.length)\n\n // Compile all the patterns before compilation.\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] === 'object') {\n matches[i] = new RegExp('^' + tokens[i].pattern + '$')\n }\n }\n\n return function (obj) {\n var path = ''\n\n obj = obj || {}\n\n for (var i = 0; i < tokens.length; i++) {\n var key = tokens[i]\n\n if (typeof key === 'string') {\n path += key\n\n continue\n }\n\n var value = obj[key.name]\n\n if (value == null) {\n if (key.optional) {\n continue\n } else {\n throw new TypeError('Expected \"' + key.name + '\" to be defined')\n }\n }\n\n if (isarray(value)) {\n if (!key.repeat) {\n throw new TypeError('Expected \"' + key.name + '\" to not repeat')\n }\n\n if (value.length === 0) {\n if (key.optional) {\n continue\n } else {\n throw new TypeError('Expected \"' + key.name + '\" to not be empty')\n }\n }\n\n for (var j = 0; j < value.length; j++) {\n if (!matches[i].test(value[j])) {\n throw new TypeError('Expected all \"' + key.name + '\" to match \"' + key.pattern + '\"')\n }\n\n path += (j === 0 ? key.prefix : key.delimiter) + encodeURIComponent(value[j])\n }\n\n continue\n }\n\n if (!matches[i].test(value)) {\n throw new TypeError('Expected \"' + key.name + '\" to match \"' + key.pattern + '\"')\n }\n\n path += key.prefix + encodeURIComponent(value)\n }\n\n return path\n }\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param {String} str\n * @return {String}\n */\nfunction escapeString (str) {\n return str.replace(/([.+*?=^!:${}()[\\]|\\/])/g, '\\\\$1')\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param {String} group\n * @return {String}\n */\nfunction escapeGroup (group) {\n return group.replace(/([=!:$\\/()])/g, '\\\\$1')\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param {RegExp} re\n * @param {Array} keys\n * @return {RegExp}\n */\nfunction attachKeys (re, keys) {\n re.keys = keys\n return re\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param {Object} options\n * @return {String}\n */\nfunction flags (options) {\n return options.sensitive ? '' : 'i'\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param {RegExp} path\n * @param {Array} keys\n * @return {RegExp}\n */\nfunction regexpToRegexp (path, keys) {\n // Use a negative lookahead to match only capturing groups.\n var groups = path.source.match(/\\((?!\\?)/g)\n\n if (groups) {\n for (var i = 0; i < groups.length; i++) {\n keys.push({\n name: i,\n prefix: null,\n delimiter: null,\n optional: false,\n repeat: false,\n pattern: null\n })\n }\n }\n\n return attachKeys(path, keys)\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param {Array} path\n * @param {Array} keys\n * @param {Object} options\n * @return {RegExp}\n */\nfunction arrayToRegexp (path, keys, options) {\n var parts = []\n\n for (var i = 0; i < path.length; i++) {\n parts.push(pathToRegexp(path[i], keys, options).source)\n }\n\n var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))\n\n return attachKeys(regexp, keys)\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param {String} path\n * @param {Array} keys\n * @param {Object} options\n * @return {RegExp}\n */\nfunction stringToRegexp (path, keys, options) {\n var tokens = parse(path)\n var re = tokensToRegExp(tokens, options)\n\n // Attach keys back to the regexp.\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] !== 'string') {\n keys.push(tokens[i])\n }\n }\n\n return attachKeys(re, keys)\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param {Array} tokens\n * @param {Array} keys\n * @param {Object} options\n * @return {RegExp}\n */\nfunction tokensToRegExp (tokens, options) {\n options = options || {}\n\n var strict = options.strict\n var end = options.end !== false\n var route = ''\n var lastToken = tokens[tokens.length - 1]\n var endsWithSlash = typeof lastToken === 'string' && /\\/$/.test(lastToken)\n\n // Iterate over the tokens and create our regexp string.\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i]\n\n if (typeof token === 'string') {\n route += escapeString(token)\n } else {\n var prefix = escapeString(token.prefix)\n var capture = token.pattern\n\n if (token.repeat) {\n capture += '(?:' + prefix + capture + ')*'\n }\n\n if (token.optional) {\n if (prefix) {\n capture = '(?:' + prefix + '(' + capture + '))?'\n } else {\n capture = '(' + capture + ')?'\n }\n } else {\n capture = prefix + '(' + capture + ')'\n }\n\n route += capture\n }\n }\n\n // In non-strict mode we allow a slash at the end of match. If the path to\n // match already ends with a slash, we remove it for consistency. The slash\n // is valid at the end of a path match, not in the middle. This is important\n // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n if (!strict) {\n route = (endsWithSlash ? route.slice(0, -2) : route) + '(?:\\\\/(?=$))?'\n }\n\n if (end) {\n route += '$'\n } else {\n // In non-ending mode, we need the capturing groups to match as much as\n // possible by using a positive lookahead to the end or next path segment.\n route += strict && endsWithSlash ? '' : '(?=\\\\/|$)'\n }\n\n return new RegExp('^' + route, flags(options))\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param {(String|RegExp|Array)} path\n * @param {Array} [keys]\n * @param {Object} [options]\n * @return {RegExp}\n */\nfunction pathToRegexp (path, keys, options) {\n keys = keys || []\n\n if (!isarray(keys)) {\n options = keys\n keys = []\n } else if (!options) {\n options = {}\n }\n\n if (path instanceof RegExp) {\n return regexpToRegexp(path, keys, options)\n }\n\n if (isarray(path)) {\n return arrayToRegexp(path, keys, options)\n }\n\n return stringToRegexp(path, keys, options)\n}\n","module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n"]}
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.