@ircam/comote-helpers 1.0.1 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/README.md +9 -0
  2. package/package.json +4 -1
  3. package/.babelrc +0 -5
  4. package/.github/workflows/main.yml +0 -45
  5. package/.history/.gitignore_20250415160643 +0 -6
  6. package/.history/.gitignore_20250415160723 +0 -6
  7. package/.history/examples/simple-webview/package-lock_20250415130242.json +0 -5109
  8. package/.history/examples/simple-webview/package-lock_20250416103557.json +0 -5109
  9. package/.history/examples/simple-webview/package_20250415130704.json +0 -26
  10. package/.history/examples/simple-webview/package_20250415184837.json +0 -26
  11. package/.history/examples/simple-webview/package_20250415190300.json +0 -23
  12. package/.history/examples/simple-webview/src/server_20250415105733.js +0 -20
  13. package/.history/examples/simple-webview/src/server_20250415184604.js +0 -20
  14. package/.history/examples/soundworks/package_20250415132431.json +0 -35
  15. package/.history/examples/soundworks/package_20250416105956.json +0 -35
  16. package/.history/max/CoMote/examples/simple-webview/package_20250415184836.json +0 -26
  17. package/.history/max/CoMote/examples/simple-webview/package_20250415185949.json +0 -23
  18. package/.history/max/CoMote/examples/simple-webview/package_20250415185950.json +0 -23
  19. package/.history/max/CoMote/package-info_20241018173608.json +0 -41
  20. package/.history/max/CoMote/package-info_20250416105743.json +0 -27
  21. package/.history/max/CoMote/package-info_20250416105826.json +0 -27
  22. package/.history/max/CoMote/source/comote-connect/package_20250415132759.json +0 -19
  23. package/.history/max/CoMote/source/comote-connect/package_20250416110158.json +0 -19
  24. package/.history/max/CoMote/source/comote-connect/server_20250414175059.js +0 -193
  25. package/.history/max/CoMote/source/comote-connect/server_20250415180549.js +0 -193
  26. package/.history/package_20250415143437.json +0 -26
  27. package/.history/package_20250416105907.json +0 -26
  28. package/examples/simple-webview/README.md +0 -10
  29. package/examples/simple-webview/build/comote-simple-webview-server.js +0 -44
  30. package/examples/simple-webview/package-lock.json +0 -5109
  31. package/examples/simple-webview/package.json +0 -23
  32. package/examples/simple-webview/public/favicon.ico +0 -0
  33. package/examples/simple-webview/public/index.html +0 -13
  34. package/examples/simple-webview/public/index.mjs +0 -3623
  35. package/examples/simple-webview/public/styles.css +0 -99
  36. package/examples/simple-webview/src/client.js +0 -35
  37. package/examples/simple-webview/src/server.js +0 -20
  38. package/examples/soundworks/.build/clients/components/sw-audit.js +0 -64
  39. package/examples/soundworks/.build/clients/components/sw-audit.js.map +0 -1
  40. package/examples/soundworks/.build/clients/components/sw-credits.js +0 -73
  41. package/examples/soundworks/.build/clients/components/sw-credits.js.map +0 -1
  42. package/examples/soundworks/.build/clients/player/.editorbackup/PlayerExperience.js~ +0 -131
  43. package/examples/soundworks/.build/clients/player/index.js +0 -116
  44. package/examples/soundworks/.build/clients/player/index.js.map +0 -1
  45. package/examples/soundworks/.build/clients/styles/app.scss +0 -79
  46. package/examples/soundworks/.build/clients/styles/normalize.scss +0 -359
  47. package/examples/soundworks/.build/clients/webview/index.js +0 -72
  48. package/examples/soundworks/.build/clients/webview/index.js.map +0 -1
  49. package/examples/soundworks/.build/public/css/app.css +0 -76
  50. package/examples/soundworks/.build/public/css/app.css.map +0 -1
  51. package/examples/soundworks/.build/public/css/normalize.css +0 -321
  52. package/examples/soundworks/.build/public/css/normalize.css.map +0 -1
  53. package/examples/soundworks/.build/public/player.js +0 -98098
  54. package/examples/soundworks/.build/public/player.js.map +0 -1
  55. package/examples/soundworks/.build/public/webview.js +0 -50725
  56. package/examples/soundworks/.build/public/webview.js.map +0 -1
  57. package/examples/soundworks/.build/server/index.js +0 -57
  58. package/examples/soundworks/.build/server/index.js.map +0 -1
  59. package/examples/soundworks/.build/server/schemas/.gitkeep +0 -1
  60. package/examples/soundworks/.build/server/schemas/global.js +0 -19
  61. package/examples/soundworks/.build/server/schemas/global.js.map +0 -1
  62. package/examples/soundworks/.build/server/tmpl/default.tmpl +0 -27
  63. package/examples/soundworks/.build/utils/catch-unhandled-errors.js +0 -9
  64. package/examples/soundworks/.build/utils/catch-unhandled-errors.js.map +0 -1
  65. package/examples/soundworks/.editorconfig +0 -12
  66. package/examples/soundworks/.eslintrc +0 -3
  67. package/examples/soundworks/.soundworks +0 -7
  68. package/examples/soundworks/.vendors/public/webcomponentsjs/CHANGELOG.md +0 -76
  69. package/examples/soundworks/.vendors/public/webcomponentsjs/LICENSE.md +0 -19
  70. package/examples/soundworks/.vendors/public/webcomponentsjs/README.md +0 -259
  71. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-ce.js +0 -63
  72. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-ce.js.map +0 -1
  73. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_dom.js +0 -62
  74. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +0 -1
  75. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_js.js +0 -95
  76. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-pf_js.js.map +0 -1
  77. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +0 -374
  78. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +0 -1
  79. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce.js +0 -240
  80. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +0 -1
  81. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd.js +0 -196
  82. package/examples/soundworks/.vendors/public/webcomponentsjs/bundles/webcomponents-sd.js.map +0 -1
  83. package/examples/soundworks/.vendors/public/webcomponentsjs/custom-elements-es5-adapter.js +0 -15
  84. package/examples/soundworks/.vendors/public/webcomponentsjs/package.json +0 -51
  85. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +0 -16
  86. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +0 -55
  87. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +0 -17
  88. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +0 -19
  89. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-pf_js-index.js +0 -13
  90. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +0 -19
  91. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +0 -25
  92. package/examples/soundworks/.vendors/public/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +0 -18
  93. package/examples/soundworks/.vendors/public/webcomponentsjs/src/flag-parser.js +0 -69
  94. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/baseuri.js +0 -28
  95. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/after.js +0 -47
  96. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/before.js +0 -40
  97. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/index.js +0 -14
  98. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/remove.js +0 -37
  99. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/child-node/replace-with.js +0 -42
  100. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/custom-event.js +0 -79
  101. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/es6-misc.js +0 -38
  102. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/event-listener-options.js +0 -122
  103. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/get-attribute-names.js +0 -27
  104. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/matches.js +0 -21
  105. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/append.js +0 -31
  106. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/index.js +0 -13
  107. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/prepend.js +0 -42
  108. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/parent-node/replace-children.js +0 -45
  109. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/promise.js +0 -50
  110. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/svg-element-class-list.js +0 -28
  111. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/symbol.js +0 -64
  112. package/examples/soundworks/.vendors/public/webcomponentsjs/src/platform/toggle-attribute.js +0 -39
  113. package/examples/soundworks/.vendors/public/webcomponentsjs/src/unresolved.js +0 -32
  114. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.d.ts +0 -175
  115. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.js +0 -384
  116. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-bundle.js.map +0 -1
  117. package/examples/soundworks/.vendors/public/webcomponentsjs/webcomponents-loader.js +0 -238
  118. package/examples/soundworks/LICENSE +0 -28
  119. package/examples/soundworks/README.md +0 -26
  120. package/examples/soundworks/config/application.yaml +0 -8
  121. package/examples/soundworks/config/env-default.yaml +0 -12
  122. package/examples/soundworks/package.json +0 -35
  123. package/examples/soundworks/public/favicon.ico +0 -0
  124. package/examples/soundworks/public/images/loader.gif +0 -0
  125. package/examples/soundworks/src/clients/components/sw-audit.js +0 -78
  126. package/examples/soundworks/src/clients/components/sw-credits.js +0 -80
  127. package/examples/soundworks/src/clients/player/.editorbackup/PlayerExperience.js~ +0 -131
  128. package/examples/soundworks/src/clients/player/index.js +0 -118
  129. package/examples/soundworks/src/clients/styles/app.scss +0 -79
  130. package/examples/soundworks/src/clients/styles/normalize.scss +0 -359
  131. package/examples/soundworks/src/clients/webview/index.js +0 -78
  132. package/examples/soundworks/src/server/index.js +0 -62
  133. package/examples/soundworks/src/server/schemas/.gitkeep +0 -1
  134. package/examples/soundworks/src/server/schemas/global.js +0 -18
  135. package/examples/soundworks/src/server/tmpl/default.tmpl +0 -27
  136. package/examples/soundworks/src/utils/catch-unhandled-errors.js +0 -9
  137. package/index.html +0 -51
  138. package/max/CoMote/docs/sw.shared-state.maxref.xml +0 -95
  139. package/max/CoMote/examples/simple-webview/README.md +0 -10
  140. package/max/CoMote/examples/simple-webview/build/comote-simple-webview-server.js +0 -44
  141. package/max/CoMote/examples/simple-webview/comote-simple-webview-server.maxpat +0 -186
  142. package/max/CoMote/examples/simple-webview/package-lock.json +0 -5109
  143. package/max/CoMote/examples/simple-webview/package.json +0 -23
  144. package/max/CoMote/examples/simple-webview/public/favicon.ico +0 -0
  145. package/max/CoMote/examples/simple-webview/public/index.html +0 -13
  146. package/max/CoMote/examples/simple-webview/public/index.mjs +0 -3623
  147. package/max/CoMote/examples/simple-webview/public/styles.css +0 -99
  148. package/max/CoMote/examples/simple-webview/src/client.js +0 -35
  149. package/max/CoMote/examples/simple-webview/src/server.js +0 -20
  150. package/max/CoMote/examples/soundworks/.editorconfig +0 -12
  151. package/max/CoMote/examples/soundworks/.eslintrc +0 -3
  152. package/max/CoMote/examples/soundworks/.soundworks +0 -7
  153. package/max/CoMote/examples/soundworks/LICENSE +0 -28
  154. package/max/CoMote/examples/soundworks/README.md +0 -26
  155. package/max/CoMote/examples/soundworks/config/application.yaml +0 -8
  156. package/max/CoMote/examples/soundworks/config/env-default.yaml +0 -12
  157. package/max/CoMote/examples/soundworks/package.json +0 -35
  158. package/max/CoMote/examples/soundworks/public/favicon.ico +0 -0
  159. package/max/CoMote/examples/soundworks/public/images/loader.gif +0 -0
  160. package/max/CoMote/examples/soundworks/src/clients/components/sw-audit.js +0 -78
  161. package/max/CoMote/examples/soundworks/src/clients/components/sw-credits.js +0 -80
  162. package/max/CoMote/examples/soundworks/src/clients/player/.editorbackup/PlayerExperience.js~ +0 -131
  163. package/max/CoMote/examples/soundworks/src/clients/player/index.js +0 -118
  164. package/max/CoMote/examples/soundworks/src/clients/styles/app.scss +0 -79
  165. package/max/CoMote/examples/soundworks/src/clients/styles/normalize.scss +0 -359
  166. package/max/CoMote/examples/soundworks/src/clients/webview/index.js +0 -78
  167. package/max/CoMote/examples/soundworks/src/server/index.js +0 -62
  168. package/max/CoMote/examples/soundworks/src/server/schemas/.gitkeep +0 -1
  169. package/max/CoMote/examples/soundworks/src/server/schemas/global.js +0 -18
  170. package/max/CoMote/examples/soundworks/src/server/tmpl/default.tmpl +0 -27
  171. package/max/CoMote/examples/soundworks/src/utils/catch-unhandled-errors.js +0 -9
  172. package/max/CoMote/extras/CoMote.maxpat +0 -1994
  173. package/max/CoMote/help/comote_osc_receive.maxhelp +0 -946
  174. package/max/CoMote/icon.png +0 -0
  175. package/max/CoMote/init/objectmappings.txt +0 -2
  176. package/max/CoMote/media/comote-screenshot.png +0 -0
  177. package/max/CoMote/package-info.json +0 -27
  178. package/max/CoMote/patchers/comote-connect/comote-connect-public/comote-connect-client.mjs +0 -2821
  179. package/max/CoMote/patchers/comote-connect/comote-connect-public/favicon.ico +0 -0
  180. package/max/CoMote/patchers/comote-connect/comote-connect-public/index.html +0 -22
  181. package/max/CoMote/patchers/comote-connect/comote-connect-server.js +0 -24775
  182. package/max/CoMote/patchers/comote-connect/comote-connect.maxpat +0 -1048
  183. package/max/CoMote/patchers/comote-connect/package.json +0 -4
  184. package/max/CoMote/patchers/comote_format_from_comote_v2.maxpat +0 -613
  185. package/max/CoMote/patchers/comote_format_from_v3.maxpat +0 -443
  186. package/max/CoMote/patchers/comote_format_gyro_v2_to_v3.maxpat +0 -240
  187. package/max/CoMote/patchers/comote_format_gyro_v3_to_v2.maxpat +0 -240
  188. package/max/CoMote/patchers/comote_format_heading_v2_to_v3.maxpat +0 -171
  189. package/max/CoMote/patchers/comote_osc_receive.maxpat +0 -440
  190. package/max/CoMote/patchers/comote_osc_to_list.maxpat +0 -161
  191. package/max/CoMote/readme.md +0 -22
  192. package/max/CoMote/source/comote-connect/client.js +0 -104
  193. package/max/CoMote/source/comote-connect/package-lock.json +0 -591
  194. package/max/CoMote/source/comote-connect/package.json +0 -19
  195. package/max/CoMote/source/comote-connect/server.js +0 -193
  196. package/max-update.bash +0 -44
  197. package/src/.editorbackup/network-infos.js~ +0 -60
  198. package/src/.editorbackup/wifi-infos.js~ +0 -33
@@ -1,57 +0,0 @@
1
- import '@soundworks/helpers/polyfills.js';
2
- import { Server } from '@soundworks/core/server.js';
3
- import { loadConfig } from '@soundworks/helpers/node.js';
4
- import '../utils/catch-unhandled-errors.js';
5
- import { Server as CoMoteServer } from '@ircam/comote-helpers/server.js';
6
- import * as CoMoteQRCode from '@ircam/comote-helpers/qrcode.js';
7
- import { getWifiInfos } from '@ircam/comote-helpers/wifi-infos.js';
8
- import globalSchema from './schemas/global.js';
9
-
10
- // - General documentation: https://soundworks.dev/
11
- // - API documentation: https://soundworks.dev/api
12
- // - Issue Tracker: https://github.com/collective-soundworks/soundworks/issues
13
- // - Wizard & Tools: `npx soundworks`
14
-
15
- const config = loadConfig(process.env.ENV, import.meta.url);
16
- console.log(`
17
- --------------------------------------------------------
18
- - launching "${config.app.name}" in "${process.env.ENV || 'default'}" environment
19
- - [pid: ${process.pid}]
20
- --------------------------------------------------------
21
- `);
22
- const server = new Server(config);
23
- server.useDefaultApplicationTemplate();
24
- server.stateManager.registerSchema('global', globalSchema);
25
- await server.start();
26
- const wifiInfos = await getWifiInfos();
27
- const comoteConfig = {
28
- id: 0,
29
- interval: 20,
30
- // period in ms
31
- ws: {
32
- port: 8901,
33
- hostname: wifiInfos.ip,
34
- autostart: true
35
- },
36
- osc: null,
37
- webview: `http://${wifiInfos.ip}:${config.env.port}/webview`
38
- // test raw HTML
39
- // webview: `<button style="width: 500px; height: 300px;" comote-key="coucou-1" comote-touchstart="1" comote-touchend="0">Coucou</button>`
40
- };
41
- const comoteServer = new CoMoteServer(comoteConfig, {
42
- verbose: false
43
- });
44
- await comoteServer.start();
45
-
46
- // -----------------------------------------------------------
47
- console.log('+ CoMote link:', CoMoteQRCode.rawLink(comoteConfig));
48
- console.log('');
49
- console.log(await CoMoteQRCode.terminal(comoteConfig));
50
- const global = await server.stateManager.create('global', {
51
- wifiInfos,
52
- comoteConfig
53
- });
54
- comoteServer.addWsListener(data => global.set({
55
- data
56
- }));
57
- //# sourceMappingURL=./index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["Server","loadConfig","CoMoteServer","CoMoteQRCode","getWifiInfos","globalSchema","config","process","env","ENV","import","meta","url","console","log","app","name","pid","server","useDefaultApplicationTemplate","stateManager","registerSchema","start","wifiInfos","comoteConfig","id","interval","ws","port","hostname","ip","autostart","osc","webview","comoteServer","verbose","rawLink","terminal","global","create","addWsListener","data","set"],"sources":["../../src/server/index.js"],"sourcesContent":["import '@soundworks/helpers/polyfills.js';\nimport { Server } from '@soundworks/core/server.js';\nimport { loadConfig } from '@soundworks/helpers/node.js';\n\nimport '../utils/catch-unhandled-errors.js';\n\nimport { Server as CoMoteServer } from '@ircam/comote-helpers/server.js';\nimport * as CoMoteQRCode from '@ircam/comote-helpers/qrcode.js';\nimport { getWifiInfos } from '@ircam/comote-helpers/wifi-infos.js';\n\nimport globalSchema from './schemas/global.js';\n\n// - General documentation: https://soundworks.dev/\n// - API documentation: https://soundworks.dev/api\n// - Issue Tracker: https://github.com/collective-soundworks/soundworks/issues\n// - Wizard & Tools: `npx soundworks`\n\nconst config = loadConfig(process.env.ENV, import.meta.url);\n\nconsole.log(`\n--------------------------------------------------------\n- launching \"${config.app.name}\" in \"${process.env.ENV || 'default'}\" environment\n- [pid: ${process.pid}]\n--------------------------------------------------------\n`);\n\nconst server = new Server(config);\nserver.useDefaultApplicationTemplate();\n\nserver.stateManager.registerSchema('global', globalSchema);\n\nawait server.start();\n\nconst wifiInfos = await getWifiInfos();\nconst comoteConfig = {\n id: 0,\n interval: 20, // period in ms\n ws: {\n port: 8901,\n hostname: wifiInfos.ip,\n autostart: true,\n },\n osc: null,\n webview: `http://${wifiInfos.ip}:${config.env.port}/webview`,\n // test raw HTML\n // webview: `<button style=\"width: 500px; height: 300px;\" comote-key=\"coucou-1\" comote-touchstart=\"1\" comote-touchend=\"0\">Coucou</button>`\n};\n\nconst comoteServer = new CoMoteServer(comoteConfig, { verbose: false });\nawait comoteServer.start();\n\n// -----------------------------------------------------------\nconsole.log('+ CoMote link:', CoMoteQRCode.rawLink(comoteConfig));\nconsole.log('');\nconsole.log(await CoMoteQRCode.terminal(comoteConfig));\n\nconst global = await server.stateManager.create('global', {\n wifiInfos,\n comoteConfig,\n});\n\ncomoteServer.addWsListener(data => global.set({ data }));\n"],"mappings":"AAAA,OAAO,kCAAkC;AACzC,SAASA,MAAM,QAAQ,4BAA4B;AACnD,SAASC,UAAU,QAAQ,6BAA6B;AAExD,OAAO,oCAAoC;AAE3C,SAASD,MAAM,IAAIE,YAAY,QAAQ,iCAAiC;AACxE,OAAO,KAAKC,YAAY,MAAM,iCAAiC;AAC/D,SAASC,YAAY,QAAQ,qCAAqC;AAElE,OAAOC,YAAY,MAAM,qBAAqB;;AAE9C;AACA;AACA;AACA;;AAEA,MAAMC,MAAM,GAAGL,UAAU,CAACM,OAAO,CAACC,GAAG,CAACC,GAAG,EAAEC,MAAM,CAACC,IAAI,CAACC,GAAG,CAAC;AAE3DC,OAAO,CAACC,GAAG,CAAC;AACZ;AACA,eAAeR,MAAM,CAACS,GAAG,CAACC,IAAI,SAAST,OAAO,CAACC,GAAG,CAACC,GAAG,IAAI,SAAS;AACnE,UAAUF,OAAO,CAACU,GAAG;AACrB;AACA,CAAC,CAAC;AAEF,MAAMC,MAAM,GAAG,IAAIlB,MAAM,CAACM,MAAM,CAAC;AACjCY,MAAM,CAACC,6BAA6B,CAAC,CAAC;AAEtCD,MAAM,CAACE,YAAY,CAACC,cAAc,CAAC,QAAQ,EAAEhB,YAAY,CAAC;AAE1D,MAAMa,MAAM,CAACI,KAAK,CAAC,CAAC;AAEpB,MAAMC,SAAS,GAAG,MAAMnB,YAAY,CAAC,CAAC;AACtC,MAAMoB,YAAY,GAAG;EACnBC,EAAE,EAAE,CAAC;EACLC,QAAQ,EAAE,EAAE;EAAE;EACdC,EAAE,EAAE;IACFC,IAAI,EAAE,IAAI;IACVC,QAAQ,EAAEN,SAAS,CAACO,EAAE;IACtBC,SAAS,EAAE;EACb,CAAC;EACDC,GAAG,EAAE,IAAI;EACTC,OAAO,EAAE,UAAUV,SAAS,CAACO,EAAE,IAAIxB,MAAM,CAACE,GAAG,CAACoB,IAAI;EAClD;EACA;AACF,CAAC;AAED,MAAMM,YAAY,GAAG,IAAIhC,YAAY,CAACsB,YAAY,EAAE;EAAEW,OAAO,EAAE;AAAM,CAAC,CAAC;AACvE,MAAMD,YAAY,CAACZ,KAAK,CAAC,CAAC;;AAE1B;AACAT,OAAO,CAACC,GAAG,CAAC,gBAAgB,EAAEX,YAAY,CAACiC,OAAO,CAACZ,YAAY,CAAC,CAAC;AACjEX,OAAO,CAACC,GAAG,CAAC,EAAE,CAAC;AACfD,OAAO,CAACC,GAAG,CAAC,MAAMX,YAAY,CAACkC,QAAQ,CAACb,YAAY,CAAC,CAAC;AAEtD,MAAMc,MAAM,GAAG,MAAMpB,MAAM,CAACE,YAAY,CAACmB,MAAM,CAAC,QAAQ,EAAE;EACxDhB,SAAS;EACTC;AACF,CAAC,CAAC;AAEFU,YAAY,CAACM,aAAa,CAACC,IAAI,IAAIH,MAAM,CAACI,GAAG,CAAC;EAAED;AAAK,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- .gitkeep
@@ -1,19 +0,0 @@
1
- export default {
2
- wifiInfos: {
3
- type: 'any',
4
- default: {}
5
- },
6
- comoteConfig: {
7
- type: 'any',
8
- default: {}
9
- },
10
- data: {
11
- type: 'any',
12
- default: {}
13
- },
14
- webviewPage: {
15
- type: 'string',
16
- default: '1'
17
- }
18
- };
19
- //# sourceMappingURL=./global.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["wifiInfos","type","default","comoteConfig","data","webviewPage"],"sources":["../../../src/server/schemas/global.js"],"sourcesContent":["export default {\n wifiInfos: {\n type: 'any',\n default: {},\n },\n comoteConfig: {\n type: 'any',\n default: {},\n },\n data: {\n type: 'any',\n default: {},\n },\n webviewPage: {\n type: 'string',\n default: '1',\n },\n};\n"],"mappings":"AAAA,eAAe;EACbA,SAAS,EAAE;IACTC,IAAI,EAAE,KAAK;IACXC,OAAO,EAAE,CAAC;EACZ,CAAC;EACDC,YAAY,EAAE;IACZF,IAAI,EAAE,KAAK;IACXC,OAAO,EAAE,CAAC;EACZ,CAAC;EACDE,IAAI,EAAE;IACJH,IAAI,EAAE,KAAK;IACXC,OAAO,EAAE,CAAC;EACZ,CAAC;EACDG,WAAW,EAAE;IACXJ,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAE;EACX;AACF,CAAC","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
6
- <meta name="theme-color" content="#000000">
7
-
8
- <title>
9
- ${d.app.name} | ${d.role}
10
- </title>
11
-
12
- <script>
13
- window.SOUNDWORKS_CONFIG = JSON.parse('${JSON.stringify(d)}');
14
- </script>
15
-
16
- ${
17
- d.env.useMinifiedFile === true
18
- ? `<script defer src="${d.env.subpath ? `/${d.env.subpath}` : ''}/build/${d.role}.min.js"></script>`
19
- : `<script defer src="${d.env.subpath ? `/${d.env.subpath}` : ''}/build/${d.role}.js"></script>`
20
- }
21
-
22
- <link rel="stylesheet" href="${d.env.subpath ? `/${d.env.subpath}` : ''}/build/css/normalize.css">
23
- <link rel="stylesheet" href="${d.env.subpath ? `/${d.env.subpath}` : ''}/build/css/app.css">
24
- </head>
25
-
26
- <body class="loading ${d.role}"></body>
27
- </html>
@@ -1,9 +0,0 @@
1
- process.on('unhandledRejection', (reason, _p) => {
2
- console.log('> Unhandled Promise Rejection');
3
- console.log(reason);
4
- });
5
- process.on('uncaughtException', (reason, _p) => {
6
- console.log('> Unhandled Promise Rejection');
7
- console.log(reason);
8
- });
9
- //# sourceMappingURL=./catch-unhandled-errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["process","on","reason","_p","console","log"],"sources":["../../src/utils/catch-unhandled-errors.js"],"sourcesContent":["process.on('unhandledRejection', (reason, _p) => {\n console.log('> Unhandled Promise Rejection');\n console.log(reason);\n});\n\nprocess.on('uncaughtException', (reason, _p) => {\n console.log('> Unhandled Promise Rejection');\n console.log(reason);\n});\n"],"mappings":"AAAAA,OAAO,CAACC,EAAE,CAAC,oBAAoB,EAAE,CAACC,MAAM,EAAEC,EAAE,KAAK;EAC/CC,OAAO,CAACC,GAAG,CAAC,+BAA+B,CAAC;EAC5CD,OAAO,CAACC,GAAG,CAACH,MAAM,CAAC;AACrB,CAAC,CAAC;AAEFF,OAAO,CAACC,EAAE,CAAC,mBAAmB,EAAE,CAACC,MAAM,EAAEC,EAAE,KAAK;EAC9CC,OAAO,CAACC,GAAG,CAAC,+BAA+B,CAAC;EAC5CD,OAAO,CAACC,GAAG,CAACH,MAAM,CAAC;AACrB,CAAC,CAAC","ignoreList":[]}
@@ -1,12 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 2
6
- end_of_line = LF
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
10
-
11
- [*.md]
12
- trim_trailing_whitespace = false
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "@ircam",
3
- }
@@ -1,7 +0,0 @@
1
- {
2
- "createVersion": "1.0.0-alpha.23",
3
- "name": "example-new",
4
- "eslint": true,
5
- "language": "js",
6
- "configFormat": "yaml"
7
- }
@@ -1,76 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic
7
- Versioning](https://semver.org/spec/v2.0.0.html).
8
-
9
- <!-- ## [Unreleased] -->
10
-
11
- ## [2.8.0] - 2023-03-30
12
-
13
- - Update dependencies ([#542](https://github.com/webcomponents/polyfills/pull/542))
14
- - Polyfill `Element.toggleAttribute()`. ([#541](https://github.com/webcomponents/polyfills/pull/541))
15
-
16
- ## [2.7.0] - 2022-10-20
17
-
18
- - Polyfill `addEventListener/removeEventListener` event listener options,
19
- including `{capture: boolean, once: boolean}`.
20
- ([#469](https://github.com/webcomponents/polyfills/pull/469))
21
- - Make `webcomponents-loader.js` compatible with the Trusted Types API
22
- ([#501](https://github.com/webcomponents/polyfills/pull/501))
23
- - Remove an arrow function in `webcomponents-loader.js`.
24
- ([#507](https://github.com/webcomponents/polyfills/pull/507))
25
-
26
- ## [2.6.0] - 2021-08-02
27
-
28
- - Add TS externs. ([#457](https://github.com/webcomponents/polyfills/pull/457))
29
-
30
- ## [2.5.0] - 2020-10-21
31
-
32
- - Polyfill `Element#matches`.
33
- ([#400](https://github.com/webcomponents/polyfills/pull/400))
34
- - Remove function declarations from platform polyfills to sastisfy internal lint
35
- after import transforms.
36
- ([#396](https://github.com/webcomponents/polyfills/pull/396))
37
- - Polyfill `Element#getAttributeNames`.
38
- ([#393](https://github.com/webcomponents/polyfills/pull/393))
39
- - Add polyfills for ChildNode APIs.
40
- ([#390](https://github.com/webcomponents/polyfills/pull/390))
41
- - Add polyfills for select ParentNode APIs.
42
- ([#389](https://github.com/webcomponents/polyfills/pull/389))
43
- - Add `classList` support to `SVGElement`.
44
- ([#391](https://github.com/webcomponents/polyfills/pull/391))
45
- - Add new entrypoints to webcomponentsjs for the 'platform' polyfills.
46
- ([#385](https://github.com/webcomponents/polyfills/pull/385))
47
-
48
- ## [2.4.4] - 2020-07-20
49
-
50
- - Fixed bug where Object.assign polyfill would copy non-enumerable properties.
51
- - Convert platform (`Array.from`, `CustomEvent`, `Promise` etc.) polyfills to
52
- TypeScript ([#292](https://github.com/webcomponents/polyfills/pull/292))
53
- - Improve types for JSCompiler compatibility
54
- ([#307](https://github.com/webcomponents/polyfills/pull/307))
55
- - README improvements
56
- ([#128](https://github.com/webcomponents/polyfills/pull/128),
57
- [#212](https://github.com/webcomponents/polyfills/pull/212),
58
- [#214](https://github.com/webcomponents/polyfills/pull/214))
59
-
60
- ## [2.4.3] - 2020-03-16
61
-
62
- - Maintenance release (no user-facing changes)
63
-
64
- ## [2.4.2] - 2020-02-26
65
-
66
- - Remove unnecessary externs
67
- ([#272](https://github.com/webcomponents/polyfills/pull/272))
68
-
69
- ## [2.4.1] - 2020-01-09
70
-
71
- - Maintenance release (no user-facing changes)
72
-
73
- ## [2.4.0] - 2019-11-12
74
-
75
- - Add on-demand patching mode
76
- ([#189](https://github.com/webcomponents/polyfills/pull/189))
@@ -1,19 +0,0 @@
1
- # License
2
-
3
- Everything in this repo is BSD style license unless otherwise specified.
4
-
5
- Copyright (c) 2015 The Polymer Authors. All rights reserved.
6
-
7
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
8
-
9
- * Redistributions of source code must retain the above copyright
10
- notice, this list of conditions and the following disclaimer.
11
- * Redistributions in binary form must reproduce the above
12
- copyright notice, this list of conditions and the following disclaimer
13
- in the documentation and/or other materials provided with the
14
- distribution.
15
- * Neither the name of Google Inc. nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -1,259 +0,0 @@
1
- [![Build Status](https://travis-ci.org/webcomponents/webcomponentsjs.svg?branch=master)](https://travis-ci.org/webcomponents/webcomponentsjs)
2
-
3
- # webcomponents.js (v1 spec polyfills)
4
-
5
- > **Note**. For polyfills that work with the older Custom Elements and Shadow DOM v0 specs,
6
- > see the [v0 branch](https://github.com/webcomponents/webcomponentsjs/tree/v0).
7
-
8
- > **Note**. For polyfills that include HTML Imports,
9
- > see the [v1 branch](https://github.com/webcomponents/webcomponentsjs/tree/v1).
10
-
11
- A suite of polyfills supporting the [Web Components](http://webcomponents.org) specs:
12
-
13
- - **Custom Elements v1**: allows authors to define their own custom tags ([spec](https://w3c.github.io/webcomponents/spec/custom/), [tutorial](https://developers.google.com/web/fundamentals/getting-started/primers/customelements), [polyfill](https://github.com/webcomponents/polyfills/tree/master/packages/custom-elements)).
14
- - **Shadow DOM v1**: provides encapsulation by hiding DOM subtrees under shadow roots ([spec](https://w3c.github.io/webcomponents/spec/shadow/), [tutorial](https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom),
15
- [shadydom polyfill](https://github.com/webcomponents/polyfills/tree/master/packages/shadydom), [shadycss polyfill](https://github.com/webcomponents/polyfills/tree/master/packages/shadycss)).
16
-
17
- For browsers that need it, there are also some minor polyfills included:
18
-
19
- - [`HTMLTemplateElement`](https://github.com/webcomponents/polyfills/tree/master/packages/template)
20
- - [`Promise`](https://github.com/taylorhakes/promise-polyfill)
21
- - `Event`, `CustomEvent`, `MouseEvent` constructors and `Object.assign`, `Array.from`
22
- (see [webcomponents-platform](https://github.com/webcomponents/webcomponents-platform))
23
- - [`URL constructor`](https://github.com/webcomponents/polyfills/tree/master/packages/url)
24
-
25
- ## How to use
26
-
27
- ### Install polyfills
28
-
29
- ```bash
30
- npm install @webcomponents/webcomponentsjs
31
- ```
32
-
33
- You can also load the code from a CDN such as unpkg: https://unpkg.com/@webcomponents/webcomponentsjs@^2/
34
-
35
- ### Using `webcomponents-bundle.js`
36
-
37
- The `webcomponents-bundle.js` contains all of the web components polyfills and is
38
- suitable for use on any supported browser. All of the polyfill code will be loaded
39
- but each polyfill will only be used based on feature detection.
40
- The bundle includes Custom Elements, Shady DOM/CSS and generic platform polyfills
41
- (such as ES6 Promise, Constructable events, etc.) (needed by Internet Explorer 11),
42
- and Template (needed by IE 11 and Edge).
43
-
44
- The `webcomponents-bundle.js` is very simple to use but it does load code
45
- that is not needed on most modern browsers, slowing page load. For best performance,
46
- use the `webcomponents-loader.js`.
47
-
48
- Here's an example:
49
-
50
- ```html
51
- <!-- load webcomponents bundle, which includes all the necessary polyfills -->
52
- <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
53
-
54
- <!-- load the element -->
55
- <script type="module" src="my-element.js"></script>
56
-
57
- <!-- use the element -->
58
- <my-element></my-element>
59
- ```
60
-
61
- ### Using `webcomponents-loader.js`
62
-
63
- The `webcomponents-loader.js` is a client-side loader that dynamically loads the
64
- minimum polyfill bundle, using feature detection.
65
-
66
- `webcomponents-loader.js` can be loaded synchronously, or asynchronously depending on your needs.
67
-
68
- #### Inlining
69
-
70
- If you have inlined the source of `webcomponent-loader.js`, then you should specify `window.WebComponents.root` as the root from which to load the polyfills.
71
- For example:
72
-
73
- ```html
74
- <script>
75
- window.WebComponents = window.WebComponents || {};
76
- window.WebComponents.root = 'node_modules/@webcomponents/webcomponentsjs/';
77
- </script>
78
- ```
79
-
80
- This property is used to build the URL to the selected bundle, so you should
81
- only set it to values that are unable to be influenced by user-controlled data.
82
- If trusted types are enforced, this property should be a `TrustedScriptURL`.
83
-
84
- #### Synchronous
85
-
86
- When loaded synchronously, `webcomponents-loader.js` behaves similarly to `webcomponents-bundle.js`.
87
-
88
- The appropriate bundle will be loaded with `document.write()` to ensure that WebComponent polyfills are available for subsequent scripts and modules.
89
-
90
- Here's an example:
91
-
92
- ```html
93
- <!-- load the webcomponents loader, which injects the necessary polyfill bundle -->
94
- <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
95
-
96
- <!-- load the element -->
97
- <script type="module" src="my-element.js"></script>
98
-
99
- <!-- use the element -->
100
- <my-element></my-element>
101
- ```
102
-
103
- #### Asynchronous
104
-
105
- When loaded asychronously with the `defer` attribute, polyfill bundles will be loaded asynchronously,
106
- which means that scripts and modules that depend on webcomponents APIs _must_ be loaded
107
- using `WebComponents.waitFor` function.
108
-
109
- The `WebComponents.waitFor` function takes a callback function as an argument, and will evaluate that callback after the polyfill bundle has been loaded.
110
-
111
- The callback function should load scripts that need the polyfills (typically via `import('my-script.js')`) and
112
- should return a promise that resolves when all scripts have loaded.
113
-
114
- Here's an example:
115
-
116
- ```html
117
- <!-- Load polyfills; note that "loader" will load these async -->
118
- <script
119
- src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"
120
- defer
121
- ></script>
122
-
123
- <!-- Load a custom element definitions in `waitFor` and return a promise -->
124
- <script type="module">
125
- WebComponents.waitFor(() => {
126
- // At this point we are guaranteed that all required polyfills have
127
- // loaded, and can use web components API's.
128
- // The standard pattern is to load element definitions that call
129
- // `customElements.define` here.
130
- // Note: returning the import's promise causes the custom elements
131
- // polyfill to wait until all definitions are loaded and then upgrade
132
- // the document in one batch, for better performance.
133
- return import('my-element.js');
134
- });
135
- </script>
136
-
137
- <!-- Use the custom element -->
138
- <my-element></my-element>
139
- ```
140
-
141
- The `WebComponents.waitFor` function may be called multiple times, and the callback functions will be processed in order.
142
-
143
- Here's a more complicated example:
144
-
145
- ```html
146
- <!-- Load polyfills; note that "loader" will load these async -->
147
- <script
148
- src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"
149
- defer
150
- ></script>
151
-
152
- <script type="module">
153
- WebComponents.waitFor(async () => {
154
- if (!window.fetch) {
155
- await import('node_modules/fetch-polyfill/fetch.js');
156
- }
157
- return import('my-element.js');
158
- });
159
- </script>
160
-
161
- <script type="module"></script>
162
- ```
163
-
164
- #### Trusted Types
165
-
166
- If you're using the loader on a page that enforces the `trusted-types` Content
167
- Security Policy, you'll need to allow the `webcomponents-loader` policy name so
168
- that the loader can dynamically create and insert a `<script>` for the polyfill
169
- bundle it selects based on feature detection. If you set `WebComponents.root`
170
- (which is rare), it should be set to a `TrustedScriptURL` for Trusted Types
171
- compatibility.
172
-
173
- ### WebComponentsReady event
174
-
175
- The `WebComponentsReady` event is fired when polyfills and user scripts have loaded and custom elements have been upgraded. This event is generally not needed; however, it may be useful in some cases like testing. If imperative code should wait until a specific custom element definition has loaded, it can use the platform `customElements.whenDefined` API.
176
-
177
- ### `custom-elements-es5-adapter.js`
178
-
179
- According to the spec, only ES6 classes (https://html.spec.whatwg.org/multipage/scripting.html#custom-element-conformance) may be passed to the _native_ `customElements.define` API. For best performance, ES6 should be served to browsers that support it, and ES5 code should be serve to those that don't. Since this may not always be possible, it may make sense to compile and serve ES5 to all browsers. However, if you do so, ES5-style custom element classes will now **not** work on browsers with native Custom Elements because ES5-style classes cannot properly extend ES6 classes, like `HTMLElement`.
180
-
181
- As a workaround, if your project has been compiled to ES5, load `custom-elements-es5-adapter.js` before defining Custom Elements. This adapter will automatically wrap ES5.
182
-
183
- **The adapter must NOT be compiled.**
184
-
185
- ## Browser Support
186
-
187
- The polyfills are intended to work in the latest versions of evergreen browsers. See below
188
- for our complete browser support matrix:
189
-
190
- | Polyfill | Edge | IE11+ | Chrome\* | Firefox\* | Safari 9+\* | Chrome Android\* | Mobile Safari\* |
191
- | --------------- | :--: | :---: | :------: | :-------: | :---------: | :--------------: | :-------------: |
192
- | Custom Elements | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
193
- | Shady CSS/DOM | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
194
-
195
- \*Indicates the current version of the browser
196
-
197
- The polyfills may work in older browsers, however require additional polyfills (such as classList, or other [platform](https://github.com/webcomponents/webcomponents-platform)
198
- polyfills) to be used. We cannot guarantee support for browsers outside of our compatibility matrix.
199
-
200
- ## Known Issues
201
-
202
- - [Style encapsulation (inline styling in components) does not work out of the box](#shadycss)
203
- - [Custom element's constructor property is unreliable](#constructor)
204
- - [ShadyCSS: :host(.zot:not(.bar:nth-child(2))) doesn't work](#nestedparens)
205
-
206
- ### Style encapsulation (inline styling in components) does not work out of the box. <a id="shadycss"></a>
207
-
208
- The ShadowDOM polyfill does not properly support CSS in ShadowDoM out of the box:
209
-
210
- - Any styles inside components have an effect on the whole document (instead of on the component only - the encapsulation is broken).
211
- - Any shadow-dom specific selectors (like `:host`) do not work.
212
-
213
- You can fix those issues by manually calling the `ShadyCSS` APIs. See [ShadyCSS usage](https://github.com/webcomponents/shadycss#usage).
214
-
215
- ### Custom element's constructor property is unreliable <a id="constructor"></a>
216
-
217
- See [#215](https://github.com/webcomponents/webcomponentsjs/issues/215) for background.
218
-
219
- In Edge and IE, instances of Custom Elements have a `constructor` property of `HTMLUnknownElementConstructor` and `HTMLUnknownElement`, respectively. It's unsafe to rely on this property for checking element types.
220
-
221
- It's worth noting that `customElement.__proto__.__proto__.constructor` is `HTMLElementPrototype` and that the prototype chain isn't modified by the polyfills(onto `ElementPrototype`, etc.)
222
-
223
- ### ShadyCSS: :host(.zot:not(.bar:nth-child(2))) doesn't work <a id="nestedparens"></a>
224
-
225
- ShadyCSS `:host()` rules can only have (at most) 1-level of nested parentheses in its argument selector under ShadyCSS. For example, `:host(.zot)` and `:host(.zot:not(.bar))` both work, but `:host(.zot:not(.bar:nth-child(2)))` does not.
226
-
227
- ### Manually Building
228
-
229
- If you wish to build the bundles yourself, you'll need `node` and `npm` on your system:
230
-
231
- - install [node.js](http://nodejs.org/) using the instructions on their website
232
- - use `npm` to install [gulp.js](http://gulpjs.com/): `npm install -g gulp`
233
- - make sure you have Java installed per https://www.npmjs.com/package/google-closure-compiler#java-version
234
-
235
- Now you are ready to build the polyfills with:
236
-
237
- # install dependencies
238
- npm install
239
- # build
240
- npm run build
241
-
242
- The builds will be placed into the root directory.
243
-
244
- ## Contribute
245
-
246
- See the [contributing guide](CONTRIBUTING.md)
247
-
248
- ## License
249
-
250
- Everything in this repository is BSD style license unless otherwise specified.
251
-
252
- Copyright (c) 2015 The Polymer Authors. All rights reserved.
253
-
254
- ## Changes in version 2.x
255
-
256
- - The HTML Imports polyfill has been removed. Given that ES modules have shipped in
257
- most browsers, the expectation is that web components code will be loaded via
258
- ES modules.
259
- - When using `webcomponents-loader.js` with the `defer` attribute, scripts that rely on the polyfills _must_ be loaded using `WebComponents.waitFor(loadCallback)`.
@@ -1,63 +0,0 @@
1
- /**
2
- @license @nocompile
3
- Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
4
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
- Code distributed by Google as part of the polymer project is also
8
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
- */
10
- (function(){/*
11
-
12
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
13
- This code may only be used under the BSD style license found at
14
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found
15
- at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
16
- be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
17
- Google as part of the polymer project is also subject to an additional IP
18
- rights grant found at http://polymer.github.io/PATENTS.txt
19
- */
20
- 'use strict';var n=window.Document.prototype.createElement,p=window.Document.prototype.createElementNS,aa=window.Document.prototype.importNode,ba=window.Document.prototype.prepend,ca=window.Document.prototype.append,da=window.DocumentFragment.prototype.prepend,ea=window.DocumentFragment.prototype.append,q=window.Node.prototype.cloneNode,r=window.Node.prototype.appendChild,t=window.Node.prototype.insertBefore,u=window.Node.prototype.removeChild,v=window.Node.prototype.replaceChild,w=Object.getOwnPropertyDescriptor(window.Node.prototype,
21
- "textContent"),y=window.Element.prototype.attachShadow,z=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),A=window.Element.prototype.getAttribute,B=window.Element.prototype.setAttribute,C=window.Element.prototype.removeAttribute,D=window.Element.prototype.toggleAttribute,E=window.Element.prototype.getAttributeNS,F=window.Element.prototype.setAttributeNS,G=window.Element.prototype.removeAttributeNS,H=window.Element.prototype.insertAdjacentElement,fa=window.Element.prototype.insertAdjacentHTML,
22
- ha=window.Element.prototype.prepend,ia=window.Element.prototype.append,ja=window.Element.prototype.before,ka=window.Element.prototype.after,la=window.Element.prototype.replaceWith,ma=window.Element.prototype.remove,na=window.HTMLElement,I=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),oa=window.HTMLElement.prototype.insertAdjacentElement,pa=window.HTMLElement.prototype.insertAdjacentHTML;var qa=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(a){return qa.add(a)});function ra(a){var b=qa.has(a);a=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a);return!b&&a}var sa=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
23
- function J(a){var b=a.isConnected;if(void 0!==b)return b;if(sa(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function K(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
24
- function L(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
25
- function M(a,b,d){for(var f=a;f;){if(f.nodeType===Node.ELEMENT_NODE){var c=f;b(c);var e=c.localName;if("link"===e&&"import"===c.getAttribute("rel")){f=c.import;void 0===d&&(d=new Set);if(f instanceof Node&&!d.has(f))for(d.add(f),f=f.firstChild;f;f=f.nextSibling)M(f,b,d);f=L(a,c);continue}else if("template"===e){f=L(a,c);continue}if(c=c.__CE_shadowRoot)for(c=c.firstChild;c;c=c.nextSibling)M(c,b,d)}f=f.firstChild?f.firstChild:L(a,f)}};function N(){var a=!(null===O||void 0===O||!O.noDocumentConstructionObserver),b=!(null===O||void 0===O||!O.shadyDomFastWalk);this.m=[];this.g=[];this.j=!1;this.shadyDomFastWalk=b;this.I=!a}function P(a,b,d,f){var c=window.ShadyDOM;if(a.shadyDomFastWalk&&c&&c.inUse){if(b.nodeType===Node.ELEMENT_NODE&&d(b),b.querySelectorAll)for(a=c.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)d(a[b])}else M(b,d,f)}function ta(a,b){a.j=!0;a.m.push(b)}function ua(a,b){a.j=!0;a.g.push(b)}
26
- function Q(a,b){a.j&&P(a,b,function(d){return R(a,d)})}function R(a,b){if(a.j&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d<a.m.length;d++)a.m[d](b);for(d=0;d<a.g.length;d++)a.g[d](b)}}function S(a,b){var d=[];P(a,b,function(c){return d.push(c)});for(b=0;b<d.length;b++){var f=d[b];1===f.__CE_state?a.connectedCallback(f):T(a,f)}}function U(a,b){var d=[];P(a,b,function(c){return d.push(c)});for(b=0;b<d.length;b++){var f=d[b];1===f.__CE_state&&a.disconnectedCallback(f)}}
27
- function V(a,b,d){d=void 0===d?{}:d;var f=d.J,c=d.upgrade||function(g){return T(a,g)},e=[];P(a,b,function(g){a.j&&R(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var l=new Set;f&&(f.forEach(function(m){return l.add(m)}),
28
- l.delete(k));V(a,k,{J:l,upgrade:c})}})}else e.push(g)},f);for(b=0;b<e.length;b++)c(e[b])}
29
- function T(a,b){try{var d=b.ownerDocument,f=d.__CE_registry;var c=f&&(d.defaultView||d.__CE_isImportDocument)?W(f,b.localName):void 0;if(c&&void 0===b.__CE_state){c.constructionStack.push(b);try{try{if(new c.constructorFunction!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{c.constructionStack.pop()}}catch(k){throw b.__CE_state=2,k;}b.__CE_state=1;b.__CE_definition=c;if(c.attributeChangedCallback&&b.hasAttributes()){var e=c.observedAttributes;
30
- for(c=0;c<e.length;c++){var g=e[c],h=b.getAttribute(g);null!==h&&a.attributeChangedCallback(b,g,null,h,null)}}J(b)&&a.connectedCallback(b)}}catch(k){X(k)}}N.prototype.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(d){X(d)}};N.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(d){X(d)}};
31
- N.prototype.attributeChangedCallback=function(a,b,d,f,c){var e=a.__CE_definition;if(e.attributeChangedCallback&&-1<e.observedAttributes.indexOf(b))try{e.attributeChangedCallback.call(a,b,d,f,c)}catch(g){X(g)}};
32
- function va(a,b,d,f){var c=b.__CE_registry;if(c&&(null===f||"http://www.w3.org/1999/xhtml"===f)&&(c=W(c,d)))try{var e=new c.constructorFunction;if(void 0===e.__CE_state||void 0===e.__CE_definition)throw Error("Failed to construct '"+d+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==e.namespaceURI)throw Error("Failed to construct '"+d+"': The constructed element's namespace must be the HTML namespace.");if(e.hasAttributes())throw Error("Failed to construct '"+
33
- d+"': The constructed element must not have any attributes.");if(null!==e.firstChild)throw Error("Failed to construct '"+d+"': The constructed element must not have any children.");if(null!==e.parentNode)throw Error("Failed to construct '"+d+"': The constructed element must not have a parent node.");if(e.ownerDocument!==b)throw Error("Failed to construct '"+d+"': The constructed element's owner document is incorrect.");if(e.localName!==d)throw Error("Failed to construct '"+d+"': The constructed element's local name is incorrect.");
34
- return e}catch(g){return X(g),b=null===f?n.call(b,d):p.call(b,f,d),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,R(a,b),b}b=null===f?n.call(b,d):p.call(b,f,d);R(a,b);return b}
35
- function X(a){var b="",d="",f=0,c=0;a instanceof Error?(b=a.message,d=a.sourceURL||a.fileName||"",f=a.line||a.lineNumber||0,c=a.column||a.columnNumber||0):b="Uncaught "+String(a);var e=void 0;void 0===ErrorEvent.prototype.initErrorEvent?e=new ErrorEvent("error",{cancelable:!0,message:b,filename:d,lineno:f,colno:c,error:a}):(e=document.createEvent("ErrorEvent"),e.initErrorEvent("error",!1,!0,b,d,f),e.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});
36
- void 0===e.error&&Object.defineProperty(e,"error",{configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(e);e.defaultPrevented||console.error(a)};function wa(){var a=this;this.g=void 0;this.F=new Promise(function(b){a.l=b})}wa.prototype.resolve=function(a){if(this.g)throw Error("Already resolved.");this.g=a;this.l(a)};function xa(a){var b=document;this.l=void 0;this.h=a;this.g=b;V(this.h,this.g);"loading"===this.g.readyState&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function ya(a){a.l&&a.l.disconnect()}xa.prototype.G=function(a){var b=this.g.readyState;"interactive"!==b&&"complete"!==b||ya(this);for(b=0;b<a.length;b++)for(var d=a[b].addedNodes,f=0;f<d.length;f++)V(this.h,d[f])};function Y(a){this.s=new Map;this.u=new Map;this.C=new Map;this.A=!1;this.B=new Map;this.o=function(b){return b()};this.i=!1;this.v=[];this.h=a;this.D=a.I?new xa(a):void 0}Y.prototype.H=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");za(this,a);this.s.set(a,b);this.v.push(a);this.i||(this.i=!0,this.o(function(){return Aa(d)}))};
37
- Y.prototype.define=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");za(this,a);Ba(this,a,b);this.v.push(a);this.i||(this.i=!0,this.o(function(){return Aa(d)}))};function za(a,b){if(!ra(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(W(a,b))throw Error("A custom element with name '"+(b+"' has already been defined."));if(a.A)throw Error("A custom element is already being defined.");}
38
- function Ba(a,b,d){a.A=!0;var f;try{var c=d.prototype;if(!(c instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var e=function(m){var x=c[m];if(void 0!==x&&!(x instanceof Function))throw Error("The '"+m+"' callback must be a function.");return x};var g=e("connectedCallback");var h=e("disconnectedCallback");var k=e("adoptedCallback");var l=(f=e("attributeChangedCallback"))&&d.observedAttributes||[]}catch(m){throw m;}finally{a.A=!1}d={localName:b,
39
- constructorFunction:d,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:f,observedAttributes:l,constructionStack:[]};a.u.set(b,d);a.C.set(d.constructorFunction,d);return d}Y.prototype.upgrade=function(a){V(this.h,a)};
40
- function Aa(a){if(!1!==a.i){a.i=!1;for(var b=[],d=a.v,f=new Map,c=0;c<d.length;c++)f.set(d[c],[]);V(a.h,document,{upgrade:function(k){if(void 0===k.__CE_state){var l=k.localName,m=f.get(l);m?m.push(k):a.u.has(l)&&b.push(k)}}});for(c=0;c<b.length;c++)T(a.h,b[c]);for(c=0;c<d.length;c++){for(var e=d[c],g=f.get(e),h=0;h<g.length;h++)T(a.h,g[h]);(e=a.B.get(e))&&e.resolve(void 0)}d.length=0}}Y.prototype.get=function(a){if(a=W(this,a))return a.constructorFunction};
41
- Y.prototype.whenDefined=function(a){if(!ra(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.B.get(a);if(b)return b.F;b=new wa;this.B.set(a,b);var d=this.u.has(a)||this.s.has(a);a=-1===this.v.indexOf(a);d&&a&&b.resolve(void 0);return b.F};Y.prototype.polyfillWrapFlushCallback=function(a){this.D&&ya(this.D);var b=this.o;this.o=function(d){return a(function(){return b(d)})}};
42
- function W(a,b){var d=a.u.get(b);if(d)return d;if(d=a.s.get(b)){a.s.delete(b);try{return Ba(a,b,d())}catch(f){X(f)}}}Y.prototype.define=Y.prototype.define;Y.prototype.upgrade=Y.prototype.upgrade;Y.prototype.get=Y.prototype.get;Y.prototype.whenDefined=Y.prototype.whenDefined;Y.prototype.polyfillDefineLazy=Y.prototype.H;Y.prototype.polyfillWrapFlushCallback=Y.prototype.polyfillWrapFlushCallback;function Z(a,b,d){function f(c){return function(e){for(var g=[],h=0;h<arguments.length;++h)g[h]=arguments[h];h=[];for(var k=[],l=0;l<g.length;l++){var m=g[l];m instanceof Element&&J(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)h.push(m);else h.push(m)}c.apply(this,g);for(g=0;g<k.length;g++)U(a,k[g]);if(J(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&S(a,k)}}void 0!==d.prepend&&(b.prepend=f(d.prepend));void 0!==d.append&&(b.append=f(d.append))};function Ca(a){Document.prototype.createElement=function(b){return va(a,this,b,null)};Document.prototype.importNode=function(b,d){b=aa.call(this,b,!!d);this.__CE_registry?V(a,b):Q(a,b);return b};Document.prototype.createElementNS=function(b,d){return va(a,this,d,b)};Z(a,Document.prototype,{prepend:ba,append:ca})};function Da(a){function b(f){return function(c){for(var e=[],g=0;g<arguments.length;++g)e[g]=arguments[g];g=[];for(var h=[],k=0;k<e.length;k++){var l=e[k];l instanceof Element&&J(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}f.apply(this,e);for(e=0;e<h.length;e++)U(a,h[e]);if(J(this))for(e=0;e<g.length;e++)h=g[e],h instanceof Element&&S(a,h)}}var d=Element.prototype;void 0!==ja&&(d.before=b(ja));void 0!==ka&&(d.after=b(ka));void 0!==la&&
43
- (d.replaceWith=function(f){for(var c=[],e=0;e<arguments.length;++e)c[e]=arguments[e];e=[];for(var g=[],h=0;h<c.length;h++){var k=c[h];k instanceof Element&&J(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)e.push(k);else e.push(k)}h=J(this);la.apply(this,c);for(c=0;c<g.length;c++)U(a,g[c]);if(h)for(U(a,this),c=0;c<e.length;c++)g=e[c],g instanceof Element&&S(a,g)});void 0!==ma&&(d.remove=function(){var f=J(this);ma.call(this);f&&U(a,this)})};function Ea(a){function b(c,e){Object.defineProperty(c,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(g){var h=this,k=void 0;J(this)&&(k=[],P(a,this,function(x){x!==h&&k.push(x)}));e.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var m=k[l];1===m.__CE_state&&a.disconnectedCallback(m)}this.ownerDocument.__CE_registry?V(a,this):Q(a,this);return g}})}function d(c,e){c.insertAdjacentElement=function(g,h){var k=J(h);g=e.call(this,g,h);k&&U(a,h);J(g)&&S(a,h);return g}}function f(c,
44
- e){function g(h,k){for(var l=[];h!==k;h=h.nextSibling)l.push(h);for(k=0;k<l.length;k++)V(a,l[k])}c.insertAdjacentHTML=function(h,k){h=h.toLowerCase();if("beforebegin"===h){var l=this.previousSibling;e.call(this,h,k);g(l||this.parentNode.firstChild,this)}else if("afterbegin"===h)l=this.firstChild,e.call(this,h,k),g(this.firstChild,l);else if("beforeend"===h)l=this.lastChild,e.call(this,h,k),g(l||this.firstChild,null);else if("afterend"===h)l=this.nextSibling,e.call(this,h,k),g(this.nextSibling,l);
45
- else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");}}y&&(Element.prototype.attachShadow=function(c){c=y.call(this,c);if(a.j&&!c.__CE_patched){c.__CE_patched=!0;for(var e=0;e<a.m.length;e++)a.m[e](c)}return this.__CE_shadowRoot=c});z&&z.get?b(Element.prototype,z):I&&I.get?b(HTMLElement.prototype,I):ua(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){return q.call(this,!0).innerHTML},set:function(e){var g=
46
- "template"===this.localName,h=g?this.content:this,k=p.call(document,this.namespaceURI,this.localName);for(k.innerHTML=e;0<h.childNodes.length;)u.call(h,h.childNodes[0]);for(e=g?k.content:k;0<e.childNodes.length;)r.call(h,e.childNodes[0])}})});Element.prototype.setAttribute=function(c,e){if(1!==this.__CE_state)return B.call(this,c,e);var g=A.call(this,c);B.call(this,c,e);e=A.call(this,c);a.attributeChangedCallback(this,c,g,e,null)};Element.prototype.setAttributeNS=function(c,e,g){if(1!==this.__CE_state)return F.call(this,
47
- c,e,g);var h=E.call(this,c,e);F.call(this,c,e,g);g=E.call(this,c,e);a.attributeChangedCallback(this,e,h,g,c)};Element.prototype.removeAttribute=function(c){if(1!==this.__CE_state)return C.call(this,c);var e=A.call(this,c);C.call(this,c);null!==e&&a.attributeChangedCallback(this,c,e,null,null)};D&&(Element.prototype.toggleAttribute=function(c,e){if(1!==this.__CE_state)return D.call(this,c,e);var g=A.call(this,c),h=null!==g;e=D.call(this,c,e);h!==e&&a.attributeChangedCallback(this,c,g,e?"":null,null);
48
- return e});Element.prototype.removeAttributeNS=function(c,e){if(1!==this.__CE_state)return G.call(this,c,e);var g=E.call(this,c,e);G.call(this,c,e);var h=E.call(this,c,e);g!==h&&a.attributeChangedCallback(this,e,g,h,c)};oa?d(HTMLElement.prototype,oa):H&&d(Element.prototype,H);pa?f(HTMLElement.prototype,pa):fa&&f(Element.prototype,fa);Z(a,Element.prototype,{prepend:ha,append:ia});Da(a)};var Fa={};function Ga(a){function b(){var d=this.constructor;var f=document.__CE_registry.C.get(d);if(!f)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var c=f.constructionStack;if(0===c.length)return c=n.call(document,f.localName),Object.setPrototypeOf(c,d.prototype),c.__CE_state=1,c.__CE_definition=f,R(a,c),c;var e=c.length-1,g=c[e];if(g===Fa)throw Error("Failed to construct '"+f.localName+"': This element was already constructed.");c[e]=Fa;
49
- Object.setPrototypeOf(g,d.prototype);R(a,g);return g}b.prototype=na.prototype;Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});window.HTMLElement=b};function Ha(a){function b(d,f){Object.defineProperty(d,"textContent",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(c){if(this.nodeType===Node.TEXT_NODE)f.set.call(this,c);else{var e=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&J(this)){e=Array(h);for(var k=0;k<h;k++)e[k]=g[k]}}f.set.call(this,c);if(e)for(c=0;c<e.length;c++)U(a,e[c])}}})}Node.prototype.insertBefore=function(d,f){if(d instanceof DocumentFragment){var c=K(d);d=t.call(this,d,f);if(J(this))for(f=
50
- 0;f<c.length;f++)S(a,c[f]);return d}c=d instanceof Element&&J(d);f=t.call(this,d,f);c&&U(a,d);J(this)&&S(a,d);return f};Node.prototype.appendChild=function(d){if(d instanceof DocumentFragment){var f=K(d);d=r.call(this,d);if(J(this))for(var c=0;c<f.length;c++)S(a,f[c]);return d}f=d instanceof Element&&J(d);c=r.call(this,d);f&&U(a,d);J(this)&&S(a,d);return c};Node.prototype.cloneNode=function(d){d=q.call(this,!!d);this.ownerDocument.__CE_registry?V(a,d):Q(a,d);return d};Node.prototype.removeChild=function(d){var f=
51
- d instanceof Element&&J(d),c=u.call(this,d);f&&U(a,d);return c};Node.prototype.replaceChild=function(d,f){if(d instanceof DocumentFragment){var c=K(d);d=v.call(this,d,f);if(J(this))for(U(a,f),f=0;f<c.length;f++)S(a,c[f]);return d}c=d instanceof Element&&J(d);var e=v.call(this,d,f),g=J(this);g&&U(a,f);c&&U(a,d);g&&S(a,d);return e};w&&w.get?b(Node.prototype,w):ta(a,function(d){b(d,{enumerable:!0,configurable:!0,get:function(){for(var f=[],c=this.firstChild;c;c=c.nextSibling)c.nodeType!==Node.COMMENT_NODE&&
52
- f.push(c.textContent);return f.join("")},set:function(f){for(;this.firstChild;)u.call(this,this.firstChild);null!=f&&""!==f&&r.call(this,document.createTextNode(f))}})})};var O=window.customElements;function Ia(){var a=new N;Ga(a);Ca(a);Z(a,DocumentFragment.prototype,{prepend:da,append:ea});Ha(a);Ea(a);window.CustomElementRegistry=Y;a=new Y(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}O&&!O.forcePolyfill&&"function"==typeof O.define&&"function"==typeof O.get||Ia();window.__CE_installPolyfill=Ia;/*
53
-
54
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
55
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
56
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
57
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
58
- Code distributed by Google as part of the polymer project is also
59
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
60
- */
61
- }).call(this);
62
-
63
- //# sourceMappingURL=webcomponents-ce.js.map