le-kit 0.0.3 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/admin/index.d.ts +25 -0
- package/dist/admin/index.js +80 -0
- package/dist/cjs/index-CO4npcak.js +1796 -0
- package/dist/cjs/index-CO4npcak.js.map +1 -0
- package/dist/cjs/index.cjs.js +117 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/le-box.cjs.entry.js +184 -0
- package/dist/cjs/le-box.entry.cjs.js.map +1 -0
- package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +1 -0
- package/dist/cjs/le-button_6.cjs.entry.js +1199 -0
- package/dist/cjs/le-card.cjs.entry.js +29 -0
- package/dist/cjs/le-card.entry.cjs.js.map +1 -0
- package/dist/cjs/le-kit.cjs.js +25 -0
- package/dist/cjs/le-kit.cjs.js.map +1 -0
- package/dist/cjs/le-number-input.cjs.entry.js +202 -0
- package/dist/cjs/le-number-input.entry.cjs.js.map +1 -0
- package/dist/cjs/le-popup.cjs.entry.js +212 -0
- package/dist/cjs/le-popup.entry.cjs.js.map +1 -0
- package/dist/cjs/le-round-progress.cjs.entry.js +106 -0
- package/dist/cjs/le-round-progress.entry.cjs.js.map +1 -0
- package/dist/cjs/le-stack.cjs.entry.js +135 -0
- package/dist/cjs/le-stack.entry.cjs.js.map +1 -0
- package/dist/cjs/le-text.cjs.entry.js +335 -0
- package/dist/cjs/le-text.entry.cjs.js.map +1 -0
- package/dist/cjs/le-turntable.cjs.entry.js +139 -0
- package/dist/cjs/le-turntable.entry.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/utils-BeT0iyCQ.js +152 -0
- package/dist/cjs/utils-BeT0iyCQ.js.map +1 -0
- package/dist/collection/collection-manifest.json +20 -102
- package/dist/collection/components/le-box/le-box.default.css +37 -0
- package/dist/collection/components/le-box/le-box.js +614 -0
- package/dist/collection/components/le-box/le-box.js.map +1 -0
- package/dist/collection/components/le-button/le-button.default.css +263 -0
- package/dist/collection/components/le-button/le-button.js +368 -0
- package/dist/collection/components/le-button/le-button.js.map +1 -0
- package/dist/collection/components/le-card/le-card.default.css +74 -0
- package/dist/collection/components/le-card/le-card.js +102 -0
- package/dist/collection/components/le-card/le-card.js.map +1 -0
- package/dist/collection/components/le-checkbox/le-checkbox.css +93 -0
- package/dist/collection/components/le-checkbox/le-checkbox.js +192 -0
- package/dist/collection/components/le-checkbox/le-checkbox.js.map +1 -0
- package/dist/collection/components/le-component/le-component.css +189 -0
- package/dist/collection/components/le-component/le-component.js +359 -0
- package/dist/collection/components/le-component/le-component.js.map +1 -0
- package/dist/collection/components/le-number-input/le-number-input.css +135 -0
- package/dist/collection/components/le-number-input/le-number-input.js +515 -0
- package/dist/collection/components/le-number-input/le-number-input.js.map +1 -0
- package/dist/collection/components/le-popover/le-popover.css +143 -0
- package/dist/collection/components/le-popover/le-popover.js +693 -0
- package/dist/collection/components/le-popover/le-popover.js.map +1 -0
- package/dist/collection/components/le-popup/le-popup.api.js +101 -0
- package/dist/collection/components/le-popup/le-popup.api.js.map +1 -0
- package/dist/collection/components/le-popup/le-popup.css +222 -0
- package/dist/collection/components/le-popup/le-popup.js +596 -0
- package/dist/collection/components/le-popup/le-popup.js.map +1 -0
- package/dist/collection/components/le-round-progress/le-round-progress.js +184 -84
- package/dist/collection/components/le-round-progress/le-round-progress.js.map +1 -0
- package/dist/collection/components/le-slot/le-slot.default.css +222 -0
- package/dist/collection/components/le-slot/le-slot.js +636 -0
- package/dist/collection/components/le-slot/le-slot.js.map +1 -0
- package/dist/collection/components/le-stack/le-stack.default.css +37 -0
- package/dist/collection/components/le-stack/le-stack.js +389 -0
- package/dist/collection/components/le-stack/le-stack.js.map +1 -0
- package/dist/collection/components/le-string-input/le-string-input.css +83 -0
- package/dist/collection/components/le-string-input/le-string-input.js +359 -0
- package/dist/collection/components/le-string-input/le-string-input.js.map +1 -0
- package/dist/collection/components/le-text/le-text.default.css +169 -0
- package/dist/collection/components/le-text/le-text.js +475 -0
- package/dist/collection/components/le-text/le-text.js.map +1 -0
- package/dist/collection/components/le-turntable/le-turntable.js +210 -102
- package/dist/collection/components/le-turntable/le-turntable.js.map +1 -0
- package/dist/collection/global/app.js +130 -0
- package/dist/collection/global/app.js.map +1 -0
- package/dist/collection/index-admin.js +27 -0
- package/dist/collection/index-admin.js.map +1 -0
- package/dist/collection/index-core.js +25 -0
- package/dist/collection/index-core.js.map +1 -0
- package/dist/collection/index.js +15 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/types/blocks.js +115 -0
- package/dist/collection/types/blocks.js.map +1 -0
- package/dist/collection/types/options.js +2 -0
- package/dist/collection/types/options.js.map +1 -0
- package/dist/collection/utils/utils.js +141 -5
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.d.ts +64 -0
- package/dist/components/index.js +127 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/le-box.d.ts +11 -0
- package/dist/components/le-box.js +256 -0
- package/dist/components/le-box.js.map +1 -0
- package/dist/components/le-button.d.ts +11 -0
- package/dist/components/le-button.js +9 -0
- package/dist/components/le-button.js.map +1 -0
- package/dist/components/le-button2.js +1408 -0
- package/dist/components/le-button2.js.map +1 -0
- package/dist/components/le-card.d.ts +11 -0
- package/dist/components/le-card.js +83 -0
- package/dist/components/le-card.js.map +1 -0
- package/dist/components/le-checkbox.d.ts +11 -0
- package/dist/components/le-checkbox.js +9 -0
- package/dist/components/le-checkbox.js.map +1 -0
- package/dist/components/le-component.d.ts +11 -0
- package/dist/components/le-component.js +9 -0
- package/dist/components/le-component.js.map +1 -0
- package/dist/components/le-number-input.d.ts +11 -0
- package/dist/components/le-number-input.js +271 -0
- package/dist/components/le-number-input.js.map +1 -0
- package/dist/components/le-popover.d.ts +11 -0
- package/dist/components/le-popover.js +9 -0
- package/dist/components/le-popover.js.map +1 -0
- package/dist/components/le-popover2.js +382 -0
- package/dist/components/le-popover2.js.map +1 -0
- package/dist/components/le-popup.d.ts +11 -0
- package/dist/components/le-popup.js +279 -0
- package/dist/components/le-popup.js.map +1 -0
- package/dist/components/le-round-progress.d.ts +11 -0
- package/dist/components/le-round-progress.js +135 -0
- package/dist/components/le-round-progress.js.map +1 -0
- package/dist/components/le-slot.d.ts +11 -0
- package/dist/components/le-slot.js +9 -0
- package/dist/components/le-slot.js.map +1 -0
- package/dist/components/le-stack.d.ts +11 -0
- package/dist/components/le-stack.js +198 -0
- package/dist/components/le-stack.js.map +1 -0
- package/dist/components/le-string-input.d.ts +11 -0
- package/dist/components/le-string-input.js +9 -0
- package/dist/components/le-string-input.js.map +1 -0
- package/dist/components/le-text.d.ts +11 -0
- package/dist/components/le-text.js +398 -0
- package/dist/components/le-text.js.map +1 -0
- package/dist/components/le-turntable.d.ts +11 -0
- package/dist/components/le-turntable.js +164 -0
- package/dist/components/le-turntable.js.map +1 -0
- package/dist/core/components/index.d.ts +64 -0
- package/dist/core/components/index.js +127 -0
- package/dist/core/components/index.js.map +1 -0
- package/dist/core/components/le-box.d.ts +11 -0
- package/dist/core/components/le-box.js +246 -0
- package/dist/core/components/le-box.js.map +1 -0
- package/dist/core/components/le-button.d.ts +11 -0
- package/dist/core/components/le-button.js +9 -0
- package/dist/core/components/le-button.js.map +1 -0
- package/dist/core/components/le-button2.js +1358 -0
- package/dist/core/components/le-button2.js.map +1 -0
- package/dist/core/components/le-card.d.ts +11 -0
- package/dist/core/components/le-card.js +73 -0
- package/dist/core/components/le-card.js.map +1 -0
- package/dist/core/components/le-checkbox.d.ts +11 -0
- package/dist/core/components/le-checkbox.js +9 -0
- package/dist/core/components/le-checkbox.js.map +1 -0
- package/dist/core/components/le-component.js.map +1 -0
- package/dist/core/components/le-number-input.d.ts +11 -0
- package/dist/core/components/le-number-input.js +261 -0
- package/dist/core/components/le-number-input.js.map +1 -0
- package/dist/core/components/le-popover.d.ts +11 -0
- package/dist/core/components/le-popover.js +9 -0
- package/dist/core/components/le-popover.js.map +1 -0
- package/dist/core/components/le-popover2.js +382 -0
- package/dist/core/components/le-popover2.js.map +1 -0
- package/dist/core/components/le-popup.d.ts +11 -0
- package/dist/core/components/le-popup.js +269 -0
- package/dist/core/components/le-popup.js.map +1 -0
- package/dist/core/components/le-round-progress.d.ts +11 -0
- package/dist/core/components/le-round-progress.js +135 -0
- package/dist/core/components/le-round-progress.js.map +1 -0
- package/dist/core/components/le-slot.js.map +1 -0
- package/dist/core/components/le-stack.d.ts +11 -0
- package/dist/core/components/le-stack.js +188 -0
- package/dist/core/components/le-stack.js.map +1 -0
- package/dist/core/components/le-string-input.d.ts +11 -0
- package/dist/core/components/le-string-input.js +9 -0
- package/dist/core/components/le-string-input.js.map +1 -0
- package/dist/core/components/le-text.d.ts +11 -0
- package/dist/core/components/le-text.js +388 -0
- package/dist/core/components/le-text.js.map +1 -0
- package/dist/core/components/le-turntable.d.ts +11 -0
- package/dist/core/components/le-turntable.js +164 -0
- package/dist/core/components/le-turntable.js.map +1 -0
- package/dist/core/index.d.ts +23 -0
- package/dist/core/index.js +74 -0
- package/dist/core/stencil-runtime.js +1 -0
- package/dist/docs.d.ts +443 -0
- package/dist/docs.json +5185 -0
- package/dist/esm/index-D71TXvJa.js +1781 -0
- package/dist/esm/index-D71TXvJa.js.map +1 -0
- package/dist/esm/index.js +105 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/le-box.entry.js +182 -0
- package/dist/esm/le-box.entry.js.map +1 -0
- package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +1 -0
- package/dist/esm/le-button_6.entry.js +1192 -0
- package/dist/esm/le-card.entry.js +27 -0
- package/dist/esm/le-card.entry.js.map +1 -0
- package/dist/esm/le-kit.js +21 -0
- package/dist/esm/le-kit.js.map +1 -0
- package/dist/esm/le-number-input.entry.js +200 -0
- package/dist/esm/le-number-input.entry.js.map +1 -0
- package/dist/esm/le-popup.entry.js +210 -0
- package/dist/esm/le-popup.entry.js.map +1 -0
- package/dist/esm/le-round-progress.entry.js +104 -0
- package/dist/esm/le-round-progress.entry.js.map +1 -0
- package/dist/esm/le-stack.entry.js +133 -0
- package/dist/esm/le-stack.entry.js.map +1 -0
- package/dist/esm/le-text.entry.js +333 -0
- package/dist/esm/le-text.entry.js.map +1 -0
- package/dist/esm/le-turntable.entry.js +137 -0
- package/dist/esm/le-turntable.entry.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/utils-CJLZrrdC.js +146 -0
- package/dist/esm/utils-CJLZrrdC.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -2
- package/dist/le-kit/index-D21JjI31.js.map +1 -0
- package/dist/le-kit/index.esm.js +2 -0
- package/dist/le-kit/index.esm.js.map +1 -0
- package/dist/le-kit/le-box.entry.esm.js.map +1 -0
- package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +1 -0
- package/dist/le-kit/le-card.entry.esm.js.map +1 -0
- package/dist/le-kit/le-kit.css +1 -0
- package/dist/le-kit/le-kit.esm.js +2 -0
- package/dist/le-kit/le-kit.esm.js.map +1 -0
- package/dist/le-kit/le-number-input.entry.esm.js.map +1 -0
- package/dist/le-kit/le-popup.entry.esm.js.map +1 -0
- package/dist/le-kit/le-round-progress.entry.esm.js.map +1 -0
- package/dist/le-kit/le-stack.entry.esm.js.map +1 -0
- package/dist/le-kit/le-text.entry.esm.js.map +1 -0
- package/dist/le-kit/le-turntable.entry.esm.js.map +1 -0
- package/dist/le-kit/loader.esm.js.map +1 -0
- package/dist/le-kit/p-024a764e.entry.js +2 -0
- package/dist/le-kit/p-024a764e.entry.js.map +1 -0
- package/dist/le-kit/p-073cf0b9.entry.js +2 -0
- package/dist/le-kit/p-073cf0b9.entry.js.map +1 -0
- package/dist/le-kit/p-0955b105.entry.js +2 -0
- package/dist/le-kit/p-0955b105.entry.js.map +1 -0
- package/dist/le-kit/p-18d79ee2.entry.js +2 -0
- package/dist/le-kit/p-18d79ee2.entry.js.map +1 -0
- package/dist/le-kit/p-4b1d3b6d.entry.js +2 -0
- package/dist/le-kit/p-4b1d3b6d.entry.js.map +1 -0
- package/dist/le-kit/p-79d179bd.entry.js +2 -0
- package/dist/le-kit/p-79d179bd.entry.js.map +1 -0
- package/dist/le-kit/p-D71TXvJa.js +3 -0
- package/dist/le-kit/p-D71TXvJa.js.map +1 -0
- package/dist/le-kit/p-c8a9288e.entry.js +2 -0
- package/dist/le-kit/p-c8a9288e.entry.js.map +1 -0
- package/dist/le-kit/p-cfc35bd3.entry.js +2 -0
- package/dist/le-kit/p-cfc35bd3.entry.js.map +1 -0
- package/dist/le-kit/p-d04da1f5.entry.js +2 -0
- package/dist/le-kit/p-d04da1f5.entry.js.map +1 -0
- package/dist/le-kit/p-qIai5-eB.js +2 -0
- package/dist/le-kit/p-qIai5-eB.js.map +1 -0
- package/dist/le-kit/utils-apol-Xc_.js.map +1 -0
- package/dist/themes/base.css +89 -0
- package/dist/themes/dark.css +100 -0
- package/dist/themes/default.css +108 -0
- package/dist/themes/gradient.css +100 -0
- package/dist/themes/index.css +413 -0
- package/dist/themes/minimal.css +100 -0
- package/dist/themes/warm.css +100 -0
- package/dist/types/components/le-box/le-box.d.ts +111 -0
- package/dist/types/components/le-button/le-button.d.ts +78 -0
- package/dist/types/components/le-card/le-card.d.ts +37 -0
- package/dist/types/components/le-checkbox/le-checkbox.d.ts +46 -0
- package/dist/types/components/le-component/le-component.d.ts +115 -0
- package/dist/types/components/le-number-input/le-number-input.d.ts +106 -0
- package/dist/types/components/le-popover/le-popover.d.ts +109 -0
- package/dist/types/components/le-popup/le-popup.api.d.ts +73 -0
- package/dist/types/components/le-popup/le-popup.d.ts +122 -0
- package/dist/types/components/le-round-progress/le-round-progress.d.ts +2 -3
- package/dist/types/components/le-slot/le-slot.d.ts +149 -0
- package/dist/types/components/le-stack/le-stack.d.ts +73 -0
- package/dist/types/components/le-string-input/le-string-input.d.ts +83 -0
- package/dist/types/components/le-text/le-text.d.ts +141 -0
- package/dist/types/components/le-turntable/le-turntable.d.ts +1 -2
- package/dist/types/components.d.ts +2030 -62
- package/dist/types/global/app.d.ts +40 -0
- package/dist/types/index-admin.d.ts +29 -0
- package/dist/types/index-core.d.ts +27 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +1756 -0
- package/dist/types/types/blocks.d.ts +136 -0
- package/dist/types/types/options.d.ts +124 -0
- package/dist/types/utils/utils.d.ts +54 -1
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +64 -13
- package/readme.md +180 -46
- package/dist/cjs/es5/build/jqoqzji9.entry.js +0 -6
- package/dist/cjs/es5/build/jqoqzji9.sc.entry.js +0 -6
- package/dist/cjs/es5/build/novg0vs0.entry.js +0 -9
- package/dist/cjs/es5/build/novg0vs0.sc.entry.js +0 -9
- package/dist/cjs/es5/index.js +0 -1
- package/dist/cjs/es5/le-kit.components.js +0 -4
- package/dist/cjs/es5/le-kit.core.js +0 -459
- package/dist/cjs/es5/le-kit.define.js +0 -9
- package/dist/cjs/es5/polyfills/array.js +0 -63
- package/dist/cjs/es5/polyfills/css-shim.js +0 -178
- package/dist/cjs/es5/polyfills/dom.js +0 -125
- package/dist/cjs/es5/polyfills/fetch.js +0 -186
- package/dist/cjs/es5/polyfills/map.js +0 -54
- package/dist/cjs/es5/polyfills/object.js +0 -27
- package/dist/cjs/es5/polyfills/promise.js +0 -80
- package/dist/cjs/es5/polyfills/string.js +0 -15
- package/dist/cjs/es5/polyfills/tslib.js +0 -244
- package/dist/cjs/es5/polyfills/url.js +0 -68
- package/dist/collection/interface.js +0 -0
- package/dist/esm/es2017/build/jqoqzji9.entry.js +0 -88
- package/dist/esm/es2017/build/jqoqzji9.sc.entry.js +0 -88
- package/dist/esm/es2017/build/novg0vs0.entry.js +0 -106
- package/dist/esm/es2017/build/novg0vs0.sc.entry.js +0 -106
- package/dist/esm/es2017/index.js +0 -1
- package/dist/esm/es2017/le-kit.components.js +0 -2
- package/dist/esm/es2017/le-kit.core.js +0 -5
- package/dist/esm/es2017/le-kit.define.js +0 -9
- package/dist/esm/es5/build/jqoqzji9.entry.js +0 -1
- package/dist/esm/es5/build/jqoqzji9.sc.entry.js +0 -1
- package/dist/esm/es5/build/novg0vs0.entry.js +0 -1
- package/dist/esm/es5/build/novg0vs0.sc.entry.js +0 -1
- package/dist/esm/es5/index.js +0 -1
- package/dist/esm/es5/le-kit.components.js +0 -2
- package/dist/esm/es5/le-kit.core.js +0 -5
- package/dist/esm/es5/le-kit.define.js +0 -9
- package/dist/esm/es5/polyfills/array.js +0 -23
- package/dist/esm/es5/polyfills/css-shim.js +0 -8
- package/dist/esm/es5/polyfills/dom.js +0 -22
- package/dist/esm/es5/polyfills/fetch.js +0 -20
- package/dist/esm/es5/polyfills/map.js +0 -7
- package/dist/esm/es5/polyfills/object.js +0 -20
- package/dist/esm/es5/polyfills/promise.js +0 -8
- package/dist/esm/es5/polyfills/string.js +0 -12
- package/dist/esm/es5/polyfills/tslib.js +0 -160
- package/dist/esm/es5/polyfills/url.js +0 -7
- package/dist/le-kit/jqoqzji9.entry.js +0 -1
- package/dist/le-kit/jqoqzji9.es5.entry.js +0 -1
- package/dist/le-kit/jqoqzji9.sc.entry.js +0 -1
- package/dist/le-kit/jqoqzji9.sc.es5.entry.js +0 -1
- package/dist/le-kit/le-kit.lfyfa4jd.js +0 -123
- package/dist/le-kit/le-kit.rzqb8hph.js +0 -4
- package/dist/le-kit/novg0vs0.entry.js +0 -1
- package/dist/le-kit/novg0vs0.es5.entry.js +0 -1
- package/dist/le-kit/novg0vs0.sc.entry.js +0 -1
- package/dist/le-kit/novg0vs0.sc.es5.entry.js +0 -1
- package/dist/le-kit.js +0 -1
- package/dist/loader/index.cjs.js +0 -1
- package/dist/loader/index.d.ts +0 -1
- package/dist/loader/index.es2017.js +0 -1
- package/dist/loader/index.js +0 -1
- package/dist/loader/package.json +0 -9
- package/dist/types/stencil.core.d.ts +0 -1203
- package/dist/web-components.json +0 -41
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
(function (e) {
|
|
5
|
-
function d(a, b) { function c(a) { if (!this || this.constructor !== c)
|
|
6
|
-
return new c(a); this._keys = []; this._values = []; this._itp = []; this.objectOnly = b; a && v.call(this, a); } b || w(a, "size", { get: x }); a.constructor = c; c.prototype = a; return c; }
|
|
7
|
-
function v(a) { this.add ? a.forEach(this.add, this) : a.forEach(function (a) { this.set(a[0], a[1]); }, this); }
|
|
8
|
-
function f(a) { this.has(a) && (this._keys.splice(c, 1), this._values.splice(c, 1), this._itp.forEach(function (a) { c < a[0] && a[0]--; })); return -1 < c; }
|
|
9
|
-
function m(a) {
|
|
10
|
-
return this.has(a) ? this._values[c] :
|
|
11
|
-
void 0;
|
|
12
|
-
}
|
|
13
|
-
function n(a, b) { if (this.objectOnly && b !== Object(b))
|
|
14
|
-
throw new TypeError("Invalid value used as weak collection key"); if (b != b || 0 === b)
|
|
15
|
-
for (c = a.length; c-- && !y(a[c], b);)
|
|
16
|
-
;
|
|
17
|
-
else
|
|
18
|
-
c = a.indexOf(b); return -1 < c; }
|
|
19
|
-
function p(a) { return n.call(this, this._values, a); }
|
|
20
|
-
function q(a) { return n.call(this, this._keys, a); }
|
|
21
|
-
function r(a, b) { this.has(a) ? this._values[c] = b : this._values[this._keys.push(a) - 1] = b; return this; }
|
|
22
|
-
function t(a) { this.has(a) || this._values.push(a); return this; }
|
|
23
|
-
function h() {
|
|
24
|
-
(this._keys || 0).length = this._values.length =
|
|
25
|
-
0;
|
|
26
|
-
}
|
|
27
|
-
function z() { return k(this._itp, this._keys); }
|
|
28
|
-
function l() { return k(this._itp, this._values); }
|
|
29
|
-
function A() { return k(this._itp, this._keys, this._values); }
|
|
30
|
-
function B() { return k(this._itp, this._values, this._values); }
|
|
31
|
-
function k(a, b, c) { var g = [0], e = !1; a.push(g); return { next: function () { var d = g[0]; if (!e && d < b.length) {
|
|
32
|
-
var f = c ? [b[d], c[d]] : b[d];
|
|
33
|
-
g[0]++;
|
|
34
|
-
}
|
|
35
|
-
else
|
|
36
|
-
e = !0, a.splice(a.indexOf(g), 1); return { done: e, value: f }; } }; }
|
|
37
|
-
function x() { return this._values.length; }
|
|
38
|
-
function u(a, b) {
|
|
39
|
-
for (var c = this.entries();;) {
|
|
40
|
-
var d = c.next();
|
|
41
|
-
if (d.done)
|
|
42
|
-
break;
|
|
43
|
-
a.call(b, d.value[1], d.value[0], this);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
var c, w = Object.defineProperty, y = function (a, b) { return a === b || a !== a && b !== b; };
|
|
47
|
-
"undefined" == typeof WeakMap && (e.WeakMap = d({ "delete": f, clear: h, get: m, has: q, set: r }, !0));
|
|
48
|
-
"undefined" != typeof Map && "function" === typeof (new Map).values && (new Map).values().next || (e.Map = d({ "delete": f, has: q, get: m, set: r, keys: z, values: l, entries: A, forEach: u, clear: h }));
|
|
49
|
-
"undefined" != typeof Set && "function" === typeof (new Set).values && (new Set).values().next || (e.Set = d({ has: p, add: t, "delete": f, clear: h, keys: l,
|
|
50
|
-
values: l, entries: B, forEach: u }));
|
|
51
|
-
"undefined" == typeof WeakSet && (e.WeakSet = d({ "delete": f, add: t, clear: h, has: p }, !0));
|
|
52
|
-
})(window);
|
|
53
|
-
var StyleNode = function () { return function () { this.start = 0, this.end = 0, this.previous = null, this.parent = null, this.rules = null, this.parsedCssText = "", this.cssText = "", this.atRule = !1, this.type = 0, this.keyframesName = "", this.selector = "", this.parsedSelector = ""; }; }();
|
|
54
|
-
function parse(e) { return parseCss(lex(e = clean(e)), e); }
|
|
55
|
-
function clean(e) { return e.replace(RX.comments, "").replace(RX.port, ""); }
|
|
56
|
-
function lex(e) { var t = new StyleNode; t.start = 0, t.end = e.length; for (var r = t, n = 0, s = e.length; n < s; n++)
|
|
57
|
-
if (e[n] === OPEN_BRACE) {
|
|
58
|
-
r.rules || (r.rules = []);
|
|
59
|
-
var a = r, o = a.rules[a.rules.length - 1] || null;
|
|
60
|
-
(r = new StyleNode).start = n + 1, r.parent = a, r.previous = o, a.rules.push(r);
|
|
61
|
-
}
|
|
62
|
-
else
|
|
63
|
-
e[n] === CLOSE_BRACE && (r.end = n + 1, r = r.parent || t); return t; }
|
|
64
|
-
function parseCss(e, t) { var r = t.substring(e.start, e.end - 1); if (e.parsedCssText = e.cssText = r.trim(), e.parent) {
|
|
65
|
-
var n = e.previous ? e.previous.end : e.parent.start;
|
|
66
|
-
r = (r = (r = _expandUnicodeEscapes(r = t.substring(n, e.start - 1))).replace(RX.multipleSpaces, " ")).substring(r.lastIndexOf(";") + 1);
|
|
67
|
-
var s = e.parsedSelector = e.selector = r.trim();
|
|
68
|
-
e.atRule = 0 === s.indexOf(AT_START), e.atRule ? 0 === s.indexOf(MEDIA_START) ? e.type = types.MEDIA_RULE : s.match(RX.keyframesRule) && (e.type = types.KEYFRAMES_RULE, e.keyframesName = e.selector.split(RX.multipleSpaces).pop()) : 0 === s.indexOf(VAR_START) ? e.type = types.MIXIN_RULE : e.type = types.STYLE_RULE;
|
|
69
|
-
} var a = e.rules; if (a)
|
|
70
|
-
for (var o = 0, i = a.length, l = void 0; o < i && (l = a[o]); o++)
|
|
71
|
-
parseCss(l, t); return e; }
|
|
72
|
-
function _expandUnicodeEscapes(e) { return e.replace(/\\([0-9a-f]{1,6})\s/gi, function () { for (var e = arguments[1], t = 6 - e.length; t--;)
|
|
73
|
-
e = "0" + e; return "\\" + e; }); }
|
|
74
|
-
var types = { STYLE_RULE: 1, KEYFRAMES_RULE: 7, MEDIA_RULE: 4, MIXIN_RULE: 1e3 }, OPEN_BRACE = "{", CLOSE_BRACE = "}", RX = { comments: /\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim, port: /@import[^;]*;/gim, customProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim, mixinProp: /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim, mixinApply: /@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim, varApply: /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim, keyframesRule: /^@[^\s]*keyframes/, multipleSpaces: /\s+/g }, VAR_START = "--", MEDIA_START = "@media", AT_START = "@";
|
|
75
|
-
function findRegex(e, t, r) { e.lastIndex = 0; var n = t.substring(r).match(e); if (n) {
|
|
76
|
-
var s = r + n.index;
|
|
77
|
-
return { start: s, end: s + n[0].length };
|
|
78
|
-
} return null; }
|
|
79
|
-
var VAR_USAGE_START = /\bvar\(/, VAR_ASSIGN_START = /\B--[\w-]+\s*:/, COMMENTS = /\/\*[^*]*\*+([^\/*][^*]*\*+)*\//gim, TRAILING_LINES = /^[\t ]+\n/gm;
|
|
80
|
-
function resolveVar(e, t, r) { return e[t] ? e[t] : r ? executeTemplate(r, e) : ""; }
|
|
81
|
-
function findVarEndIndex(e, t) { for (var r = 0, n = t; n < e.length; n++) {
|
|
82
|
-
var s = e[n];
|
|
83
|
-
if ("(" === s)
|
|
84
|
-
r++;
|
|
85
|
-
else if (")" === s && --r <= 0)
|
|
86
|
-
return n + 1;
|
|
87
|
-
} return n; }
|
|
88
|
-
function parseVar(e, t) { var r = findRegex(VAR_USAGE_START, e, t); if (!r)
|
|
89
|
-
return null; var n = findVarEndIndex(e, r.start), s = e.substring(r.end, n - 1).split(","), a = s[0], o = s.slice(1); return { start: r.start, end: n, propName: a.trim(), fallback: o.length > 0 ? o.join(",").trim() : void 0 }; }
|
|
90
|
-
function compileVar(e, t, r) { var n = parseVar(e, r); if (!n)
|
|
91
|
-
return t.push(e.substring(r, e.length)), e.length; var s = n.propName, a = null != n.fallback ? compileTemplate(n.fallback) : void 0; return t.push(e.substring(r, n.start), function (e) { return resolveVar(e, s, a); }), n.end; }
|
|
92
|
-
function executeTemplate(e, t) { for (var r = "", n = 0; n < e.length; n++) {
|
|
93
|
-
var s = e[n];
|
|
94
|
-
r += "string" == typeof s ? s : s(t);
|
|
95
|
-
} return r; }
|
|
96
|
-
function findEndValue(e, t) { for (var r = !1, n = !1, s = t; s < e.length; s++) {
|
|
97
|
-
var a = e[s];
|
|
98
|
-
if (r)
|
|
99
|
-
n && '"' === a && (r = !1), n || "'" !== a || (r = !1);
|
|
100
|
-
else if ('"' === a)
|
|
101
|
-
r = !0, n = !0;
|
|
102
|
-
else if ("'" === a)
|
|
103
|
-
r = !0, n = !1;
|
|
104
|
-
else {
|
|
105
|
-
if (";" === a)
|
|
106
|
-
return s + 1;
|
|
107
|
-
if ("}" === a)
|
|
108
|
-
return s;
|
|
109
|
-
}
|
|
110
|
-
} return s; }
|
|
111
|
-
function removeCustomAssigns(e) { for (var t = "", r = 0;;) {
|
|
112
|
-
var n = findRegex(VAR_ASSIGN_START, e, r), s = n ? n.start : e.length;
|
|
113
|
-
if (t += e.substring(r, s), !n)
|
|
114
|
-
break;
|
|
115
|
-
r = findEndValue(e, s);
|
|
116
|
-
} return t; }
|
|
117
|
-
function compileTemplate(e) { var t = 0; e = removeCustomAssigns(e = e.replace(COMMENTS, "")).replace(TRAILING_LINES, ""); for (var r = []; t < e.length;)
|
|
118
|
-
t = compileVar(e, r, t); return r; }
|
|
119
|
-
function resolveValues(e) { var t = {}; e.forEach(function (e) { e.declarations.forEach(function (e) { t[e.prop] = e.value; }); }); for (var r = {}, n = Object.entries(t), s = function (e) { var t = !1; if (n.forEach(function (e) { var n = e[0], s = executeTemplate(e[1], r); s !== r[n] && (r[n] = s, t = !0); }), !t)
|
|
120
|
-
return "break"; }, a = 0; a < 10; a++) {
|
|
121
|
-
if ("break" === s())
|
|
122
|
-
break;
|
|
123
|
-
} return r; }
|
|
124
|
-
function getSelectors(e, t) { if (void 0 === t && (t = 0), !e.rules)
|
|
125
|
-
return []; var r = []; return e.rules.filter(function (e) { return e.type === types.STYLE_RULE; }).forEach(function (e) { var n = getDeclarations(e.cssText); n.length > 0 && e.parsedSelector.split(",").forEach(function (e) { e = e.trim(), r.push({ selector: e, declarations: n, specificity: computeSpecificity(e), nu: t }); }), t++; }), r; }
|
|
126
|
-
function computeSpecificity(e) { return 1; }
|
|
127
|
-
var IMPORTANT = "!important", FIND_DECLARATIONS = /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;
|
|
128
|
-
function getDeclarations(e) { for (var t, r = []; t = FIND_DECLARATIONS.exec(e.trim());) {
|
|
129
|
-
var n = normalizeValue(t[2]), s = n.value, a = n.important;
|
|
130
|
-
r.push({ prop: t[1].trim(), value: compileTemplate(s), important: a });
|
|
131
|
-
} return r; }
|
|
132
|
-
function normalizeValue(e) { var t = (e = e.replace(/\s+/gim, " ").trim()).endsWith(IMPORTANT); return t && (e = e.substr(0, e.length - IMPORTANT.length).trim()), { value: e, important: t }; }
|
|
133
|
-
function getActiveSelectors(e, t, r) { return sortSelectors(getSelectorsForScopes(r.concat(getScopesForElement(t, e))).filter(function (t) { return matches(e, t.selector); })); }
|
|
134
|
-
function getScopesForElement(e, t) { for (var r = []; t;) {
|
|
135
|
-
var n = e.get(t);
|
|
136
|
-
n && r.push(n), t = t.parentElement;
|
|
137
|
-
} return r; }
|
|
138
|
-
function getSelectorsForScopes(e) { var t = []; return e.forEach(function (e) { t.push.apply(t, e.selectors); }), t; }
|
|
139
|
-
function sortSelectors(e) { return e.sort(function (e, t) { return e.specificity === t.specificity ? e.nu - t.nu : e.specificity - t.specificity; }), e; }
|
|
140
|
-
function matches(e, t) { return e.matches(t); }
|
|
141
|
-
function parseCSS(e) { var t = parse(e), r = compileTemplate(e); return { original: e, template: r, selectors: getSelectors(t), isDynamic: r.length > 1 }; }
|
|
142
|
-
function addGlobalStyle(e, t) { var r = parseCSS(t.innerHTML); r.styleEl = t, e.push(r); }
|
|
143
|
-
function updateGlobalScopes(e) { var t = resolveValues(getSelectorsForScopes(e)); e.forEach(function (e) { e.isDynamic && (e.styleEl.innerHTML = executeTemplate(e.template, t)); }); }
|
|
144
|
-
function reScope(e, t) { var r = e.template.map(function (r) { return "string" == typeof r ? replaceScope(r, e.cssScopeId, t) : r; }), n = e.selectors.map(function (r) { return Object.assign({}, r, { selector: replaceScope(r.selector, e.cssScopeId, t) }); }); return Object.assign({}, e, { template: r, selectors: n, cssScopeId: t }); }
|
|
145
|
-
function replaceScope(e, t, r) { return e = replaceAll(e, "\\." + t, "." + r); }
|
|
146
|
-
function replaceAll(e, t, r) { return e.replace(new RegExp(t, "g"), r); }
|
|
147
|
-
function loadDocument(e, t) { return loadDocumentLinks(e, t).then(function () { loadDocumentStyles(e, t); }); }
|
|
148
|
-
function loadDocumentLinks(e, t) { for (var r = [], n = e.querySelectorAll('link[rel="stylesheet"][href]'), s = 0; s < n.length; s++)
|
|
149
|
-
r.push(addGlobalLink(e, t, n[s])); return Promise.all(r); }
|
|
150
|
-
function loadDocumentStyles(e, t) { for (var r = e.querySelectorAll("style"), n = 0; n < r.length; n++)
|
|
151
|
-
addGlobalStyle(t, r[n]); }
|
|
152
|
-
function addGlobalLink(e, t, r) { var n = r.href; return fetch(n).then(function (e) { return e.text(); }).then(function (s) { if (hasCssVariables(s) && r.parentNode) {
|
|
153
|
-
hasRelativeUrls(s) && (s = fixRelativeUrls(s, n));
|
|
154
|
-
var a = e.createElement("style");
|
|
155
|
-
a.innerHTML = s, addGlobalStyle(t, a), r.parentNode.insertBefore(a, r), r.remove();
|
|
156
|
-
} }).catch(function (e) { console.error(e); }); }
|
|
157
|
-
var CSS_VARIABLE_REGEXP = /[\s;{]--[-a-zA-Z0-9]+\s*:/m;
|
|
158
|
-
function hasCssVariables(e) { return e.indexOf("var(") > -1 || CSS_VARIABLE_REGEXP.test(e); }
|
|
159
|
-
var CSS_URL_REGEXP = /url[\s]*\([\s]*['"]?(?![http|\/])([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;
|
|
160
|
-
function hasRelativeUrls(e) { return CSS_URL_REGEXP.lastIndex = 0, CSS_URL_REGEXP.test(e); }
|
|
161
|
-
function fixRelativeUrls(e, t) { var r = t.replace(/[^\/]*$/, ""); return e.replace(CSS_URL_REGEXP, function (e, t) { var n = r + t; return e.replace(t, n); }); }
|
|
162
|
-
var CustomStyle = function () { function e(e, t) { this.win = e, this.doc = t, this.count = 0, this.hostStyleMap = new WeakMap, this.hostScopeMap = new WeakMap, this.globalScopes = [], this.scopesMap = new Map; } return e.prototype.initShim = function () { var e = this; return new Promise(function (t) { e.win.requestAnimationFrame(function () { loadDocument(e.doc, e.globalScopes).then(function () { return t(); }); }); }); }, e.prototype.addLink = function (e) { var t = this; return addGlobalLink(this.doc, this.globalScopes, e).then(function () { t.updateGlobal(); }); }, e.prototype.addGlobalStyle = function (e) { addGlobalStyle(this.globalScopes, e), this.updateGlobal(); }, e.prototype.createHostStyle = function (e, t, r) { if (this.hostScopeMap.has(e))
|
|
163
|
-
return null; var n = e["s-sc"], s = this.registerHostTemplate(r, t, n), a = s.isDynamic && s.cssScopeId; if (!(a || !s.styleEl))
|
|
164
|
-
return null; var o = this.doc.createElement("style"); if (a) {
|
|
165
|
-
var i = s.cssScopeId + "-" + this.count;
|
|
166
|
-
e["s-sc"] = i, this.hostStyleMap.set(e, o), this.hostScopeMap.set(e, reScope(s, i)), this.count++;
|
|
167
|
-
}
|
|
168
|
-
else
|
|
169
|
-
s.styleEl = o, s.isDynamic || (o.innerHTML = executeTemplate(s.template, {})), this.globalScopes.push(s), this.updateGlobal(), this.hostScopeMap.set(e, s); return o; }, e.prototype.removeHost = function (e) { var t = this.hostStyleMap.get(e); t && t.remove(), this.hostStyleMap.delete(e), this.hostScopeMap.delete(e); }, e.prototype.updateHost = function (e) { var t = this.hostScopeMap.get(e); if (t && t.isDynamic && t.cssScopeId) {
|
|
170
|
-
var r = this.hostStyleMap.get(e);
|
|
171
|
-
if (r) {
|
|
172
|
-
var n = resolveValues(getActiveSelectors(e, this.hostScopeMap, this.globalScopes));
|
|
173
|
-
r.innerHTML = executeTemplate(t.template, n);
|
|
174
|
-
}
|
|
175
|
-
} }, e.prototype.updateGlobal = function () { updateGlobalScopes(this.globalScopes); }, e.prototype.registerHostTemplate = function (e, t, r) { var n = this.scopesMap.get(t); return n || ((n = parseCSS(e)).cssScopeId = r, this.scopesMap.set(t, n)), n; }, e; }();
|
|
176
|
-
window.customStyleShim = new CustomStyle(window, document);
|
|
177
|
-
}
|
|
178
|
-
exports.applyPolyfill = applyPolyfill;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
if (!window['s-ce1']) {
|
|
5
|
-
window['s-ce1'] = true;
|
|
6
|
-
(function (e, t) {
|
|
7
|
-
"use strict";
|
|
8
|
-
function Ht() { var e = wt.splice(0, wt.length); Et = 0; while (e.length)
|
|
9
|
-
e.shift().call(null, e.shift()); }
|
|
10
|
-
function Bt(e, t) { for (var n = 0, r = e.length; n < r; n++)
|
|
11
|
-
Jt(e[n], t); }
|
|
12
|
-
function jt(e) { for (var t = 0, n = e.length, r; t < n; t++)
|
|
13
|
-
r = e[t], Pt(r, A[It(r)]); }
|
|
14
|
-
function Ft(e) { return function (t) { ut(t) && (Jt(t, e), O.length && Bt(t.querySelectorAll(O), e)); }; }
|
|
15
|
-
function It(e) { var t = ht.call(e, "is"), n = e.nodeName.toUpperCase(), r = _.call(L, t ? N + t.toUpperCase() : T + n); return t && -1 < r && !qt(n, t) ? -1 : r; }
|
|
16
|
-
function qt(e, t) { return -1 < O.indexOf(e + '[is="' + t + '"]'); }
|
|
17
|
-
function Rt(e) { var t = e.currentTarget, n = e.attrChange, r = e.attrName, i = e.target, s = e[y] || 2, o = e[w] || 3; kt && (!i || i === t) && t[h] && r !== "style" && (e.prevValue !== e.newValue || e.newValue === "" && (n === s || n === o)) && t[h](r, n === s ? null : e.prevValue, n === o ? null : e.newValue); }
|
|
18
|
-
function Ut(e) { var t = Ft(e); return function (e) { wt.push(t, e.target), Et && clearTimeout(Et), Et = setTimeout(Ht, 1); }; }
|
|
19
|
-
function zt(e) { Ct && (Ct = !1, e.currentTarget.removeEventListener(S, zt)), O.length && Bt((e.target || n).querySelectorAll(O), e.detail === l ? l : a), st && Vt(); }
|
|
20
|
-
function Wt(e, t) { var n = this; vt.call(n, e, t), Lt.call(n, { target: n }); }
|
|
21
|
-
function Xt(e, t) { nt(e, t), Mt ? Mt.observe(e, yt) : (Nt && (e.setAttribute = Wt, e[o] = Ot(e), e[u](x, Lt)), e[u](E, Rt)), e[m] && kt && (e.created = !0, e[m](), e.created = !1); }
|
|
22
|
-
function Vt() { for (var e, t = 0, n = at.length; t < n; t++)
|
|
23
|
-
e = at[t], M.contains(e) || (n--, at.splice(t--, 1), Jt(e, l)); }
|
|
24
|
-
function $t(e) { throw new Error("A " + e + " type is already registered"); }
|
|
25
|
-
function Jt(e, t) { var n, r = It(e), i; -1 < r && (Dt(e, A[r]), r = 0, t === a && !e[a] ? (e[l] = !1, e[a] = !0, i = "connected", r = 1, st && _.call(at, e) < 0 && at.push(e)) : t === l && !e[l] && (e[a] = !1, e[l] = !0, i = "disconnected", r = 1), r && (n = e[t + f] || e[i + f]) && n.call(e)); }
|
|
26
|
-
function Kt() { }
|
|
27
|
-
function Qt(e, t, r) { var i = r && r[c] || "", o = t.prototype, u = tt(o), a = t.observedAttributes || j, f = { prototype: u }; ot(u, m, { value: function () { if (Q)
|
|
28
|
-
Q = !1;
|
|
29
|
-
else if (!this[W]) {
|
|
30
|
-
this[W] = !0, new t(this), o[m] && o[m].call(this);
|
|
31
|
-
var e = G[Z.get(t)];
|
|
32
|
-
(!V || e.create.length > 1) && Zt(this);
|
|
33
|
-
} } }), ot(u, h, { value: function (e) { -1 < _.call(a, e) && o[h].apply(this, arguments); } }), o[d] && ot(u, p, { value: o[d] }), o[v] && ot(u, g, { value: o[v] }), i && (f[c] = i), e = e.toUpperCase(), G[e] = { constructor: t, create: i ? [i, et(e)] : [e] }, Z.set(t, e), n[s](e.toLowerCase(), f), en(e), Y[e].r(); }
|
|
34
|
-
function Gt(e) { var t = G[e.toUpperCase()]; return t && t.constructor; }
|
|
35
|
-
function Yt(e) { return typeof e == "string" ? e : e && e.is || ""; }
|
|
36
|
-
function Zt(e) { var t = e[h], n = t ? e.attributes : j, r = n.length, i; while (r--)
|
|
37
|
-
i = n[r], t.call(e, i.name || i.nodeName, null, i.value || i.nodeValue); }
|
|
38
|
-
function en(e) { return e = e.toUpperCase(), e in Y || (Y[e] = {}, Y[e].p = new K(function (t) { Y[e].r = t; })), Y[e].p; }
|
|
39
|
-
function tn() { X && delete e.customElements, B(e, "customElements", { configurable: !0, value: new Kt }), B(e, "CustomElementRegistry", { configurable: !0, value: Kt }); for (var t = function (t) { var r = e[t]; if (r) {
|
|
40
|
-
e[t] = function (t) { var i, s; return t || (t = this), t[W] || (Q = !0, i = G[Z.get(t.constructor)], s = V && i.create.length === 1, t = s ? Reflect.construct(r, j, i.constructor) : n.createElement.apply(n, i.create), t[W] = !0, Q = !1, s || Zt(t)), t; }, e[t].prototype = r.prototype;
|
|
41
|
-
try {
|
|
42
|
-
r.prototype.constructor = e[t];
|
|
43
|
-
}
|
|
44
|
-
catch (i) {
|
|
45
|
-
z = !0, B(r, W, { value: e[t] });
|
|
46
|
-
}
|
|
47
|
-
} }, r = i.get(/^HTML[A-Z]*[a-z]/), o = r.length; o--; t(r[o]))
|
|
48
|
-
; n.createElement = function (e, t) { var n = Yt(t); return n ? gt.call(this, e, et(n)) : gt.call(this, e); }, St || (Tt = !0, n[s]("")); }
|
|
49
|
-
var n = e.document, r = e.Object, i = function (e) { var t = /^[A-Z]+[a-z]/, n = function (e) { var t = [], n; for (n in s)
|
|
50
|
-
e.test(n) && t.push(n); return t; }, i = function (e, t) { t = t.toLowerCase(), t in s || (s[e] = (s[e] || []).concat(t), s[t] = s[t.toUpperCase()] = e); }, s = (r.create || r)(null), o = {}, u, a, f, l; for (a in e)
|
|
51
|
-
for (l in e[a]) {
|
|
52
|
-
f = e[a][l], s[l] = f;
|
|
53
|
-
for (u = 0; u < f.length; u++)
|
|
54
|
-
s[f[u].toLowerCase()] = s[f[u].toUpperCase()] = l;
|
|
55
|
-
} return o.get = function (r) { return typeof r == "string" ? s[r] || (t.test(r) ? [] : "") : n(r); }, o.set = function (n, r) { return t.test(n) ? i(n, r) : i(r, n), o; }, o; }({ collections: { HTMLAllCollection: ["all"], HTMLCollection: ["forms"], HTMLFormControlsCollection: ["elements"], HTMLOptionsCollection: ["options"] }, elements: { Element: ["element"], HTMLAnchorElement: ["a"], HTMLAppletElement: ["applet"], HTMLAreaElement: ["area"], HTMLAttachmentElement: ["attachment"], HTMLAudioElement: ["audio"], HTMLBRElement: ["br"], HTMLBaseElement: ["base"], HTMLBodyElement: ["body"], HTMLButtonElement: ["button"], HTMLCanvasElement: ["canvas"], HTMLContentElement: ["content"], HTMLDListElement: ["dl"], HTMLDataElement: ["data"], HTMLDataListElement: ["datalist"], HTMLDetailsElement: ["details"], HTMLDialogElement: ["dialog"], HTMLDirectoryElement: ["dir"], HTMLDivElement: ["div"], HTMLDocument: ["document"], HTMLElement: ["element", "abbr", "address", "article", "aside", "b", "bdi", "bdo", "cite", "code", "command", "dd", "dfn", "dt", "em", "figcaption", "figure", "footer", "header", "i", "kbd", "mark", "nav", "noscript", "rp", "rt", "ruby", "s", "samp", "section", "small", "strong", "sub", "summary", "sup", "u", "var", "wbr"], HTMLEmbedElement: ["embed"], HTMLFieldSetElement: ["fieldset"], HTMLFontElement: ["font"], HTMLFormElement: ["form"], HTMLFrameElement: ["frame"], HTMLFrameSetElement: ["frameset"], HTMLHRElement: ["hr"], HTMLHeadElement: ["head"], HTMLHeadingElement: ["h1", "h2", "h3", "h4", "h5", "h6"], HTMLHtmlElement: ["html"], HTMLIFrameElement: ["iframe"], HTMLImageElement: ["img"], HTMLInputElement: ["input"], HTMLKeygenElement: ["keygen"], HTMLLIElement: ["li"], HTMLLabelElement: ["label"], HTMLLegendElement: ["legend"], HTMLLinkElement: ["link"], HTMLMapElement: ["map"], HTMLMarqueeElement: ["marquee"], HTMLMediaElement: ["media"], HTMLMenuElement: ["menu"], HTMLMenuItemElement: ["menuitem"], HTMLMetaElement: ["meta"], HTMLMeterElement: ["meter"], HTMLModElement: ["del", "ins"], HTMLOListElement: ["ol"], HTMLObjectElement: ["object"], HTMLOptGroupElement: ["optgroup"], HTMLOptionElement: ["option"], HTMLOutputElement: ["output"], HTMLParagraphElement: ["p"], HTMLParamElement: ["param"], HTMLPictureElement: ["picture"], HTMLPreElement: ["pre"], HTMLProgressElement: ["progress"], HTMLQuoteElement: ["blockquote", "q", "quote"], HTMLScriptElement: ["script"], HTMLSelectElement: ["select"], HTMLShadowElement: ["shadow"], HTMLSlotElement: ["slot"], HTMLSourceElement: ["source"], HTMLSpanElement: ["span"], HTMLStyleElement: ["style"], HTMLTableCaptionElement: ["caption"], HTMLTableCellElement: ["td", "th"], HTMLTableColElement: ["col", "colgroup"], HTMLTableElement: ["table"], HTMLTableRowElement: ["tr"], HTMLTableSectionElement: ["thead", "tbody", "tfoot"], HTMLTemplateElement: ["template"], HTMLTextAreaElement: ["textarea"], HTMLTimeElement: ["time"], HTMLTitleElement: ["title"], HTMLTrackElement: ["track"], HTMLUListElement: ["ul"], HTMLUnknownElement: ["unknown", "vhgroupv", "vkeygen"], HTMLVideoElement: ["video"] }, nodes: { Attr: ["node"], Audio: ["audio"], CDATASection: ["node"], CharacterData: ["node"], Comment: ["#comment"], Document: ["#document"], DocumentFragment: ["#document-fragment"], DocumentType: ["node"], HTMLDocument: ["#document"], Image: ["img"], Option: ["option"], ProcessingInstruction: ["node"], ShadowRoot: ["#shadow-root"], Text: ["#text"], XMLDocument: ["xml"] } });
|
|
56
|
-
typeof t != "object" && (t = { type: t || "auto" });
|
|
57
|
-
var s = "registerElement", o = "__" + s + (e.Math.random() * 1e5 >> 0), u = "addEventListener", a = "attached", f = "Callback", l = "detached", c = "extends", h = "attributeChanged" + f, p = a + f, d = "connected" + f, v = "disconnected" + f, m = "created" + f, g = l + f, y = "ADDITION", b = "MODIFICATION", w = "REMOVAL", E = "DOMAttrModified", S = "DOMContentLoaded", x = "DOMSubtreeModified", T = "<", N = "=", C = /^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/, k = ["ANNOTATION-XML", "COLOR-PROFILE", "FONT-FACE", "FONT-FACE-SRC", "FONT-FACE-URI", "FONT-FACE-FORMAT", "FONT-FACE-NAME", "MISSING-GLYPH"], L = [], A = [], O = "", M = n.documentElement, _ = L.indexOf || function (e) { for (var t = this.length; t-- && this[t] !== e;)
|
|
58
|
-
; return t; }, D = r.prototype, P = D.hasOwnProperty, H = D.isPrototypeOf, B = r.defineProperty, j = [], F = r.getOwnPropertyDescriptor, I = r.getOwnPropertyNames, q = r.getPrototypeOf, R = r.setPrototypeOf, U = !!r.__proto__, z = !1, W = "__dreCEv1", X = e.customElements, V = !/^force/.test(t.type) && !!(X && X.define && X.get && X.whenDefined), $ = r.create || r, J = e.Map || function () { var t = [], n = [], r; return { get: function (e) { return n[_.call(t, e)]; }, set: function (e, i) { r = _.call(t, e), r < 0 ? n[t.push(e) - 1] = i : n[r] = i; } }; }, K = e.Promise || function (e) { function i(e) { n = !0; while (t.length)
|
|
59
|
-
t.shift()(e); } var t = [], n = !1, r = { "catch": function () { return r; }, then: function (e) { return t.push(e), n && setTimeout(i, 1), r; } }; return e(i), r; }, Q = !1, G = $(null), Y = $(null), Z = new J, et = function (e) { return e.toLowerCase(); }, tt = r.create || function sn(e) { return e ? (sn.prototype = e, new sn) : this; }, nt = R || (U ? function (e, t) { return e.__proto__ = t, e; } : I && F ? function () { function e(e, t) { for (var n, r = I(t), i = 0, s = r.length; i < s; i++)
|
|
60
|
-
n = r[i], P.call(e, n) || B(e, n, F(t, n)); } return function (t, n) { do
|
|
61
|
-
e(t, n);
|
|
62
|
-
while ((n = q(n)) && !H.call(n, t)); return t; }; }() : function (e, t) { for (var n in t)
|
|
63
|
-
e[n] = t[n]; return e; }), rt = e.MutationObserver || e.WebKitMutationObserver, it = (e.HTMLElement || e.Element || e.Node).prototype, st = !H.call(it, M), ot = st ? function (e, t, n) { return e[t] = n.value, e; } : B, ut = st ? function (e) { return e.nodeType === 1; } : function (e) { return H.call(it, e); }, at = st && [], ft = it.attachShadow, lt = it.cloneNode, ct = it.dispatchEvent, ht = it.getAttribute, pt = it.hasAttribute, dt = it.removeAttribute, vt = it.setAttribute, mt = n.createElement, gt = mt, yt = rt && { attributes: !0, characterData: !0, attributeOldValue: !0 }, bt = rt || function (e) { Nt = !1, M.removeEventListener(E, bt); }, wt, Et = 0, St = s in n && !/^force-all/.test(t.type), xt = !0, Tt = !1, Nt = !0, Ct = !0, kt = !0, Lt, At, Ot, Mt, _t, Dt, Pt;
|
|
64
|
-
St || (R || U ? (Dt = function (e, t) { H.call(t, e) || Xt(e, t); }, Pt = Xt) : (Dt = function (e, t) { e[o] || (e[o] = r(!0), Xt(e, t)); }, Pt = Dt), st ? (Nt = !1, function () { var e = F(it, u), t = e.value, n = function (e) { var t = new CustomEvent(E, { bubbles: !0 }); t.attrName = e, t.prevValue = ht.call(this, e), t.newValue = null, t[w] = t.attrChange = 2, dt.call(this, e), ct.call(this, t); }, r = function (e, t) { var n = pt.call(this, e), r = n && ht.call(this, e), i = new CustomEvent(E, { bubbles: !0 }); vt.call(this, e, t), i.attrName = e, i.prevValue = n ? r : null, i.newValue = t, n ? i[b] = i.attrChange = 1 : i[y] = i.attrChange = 0, ct.call(this, i); }, i = function (e) { var t = e.currentTarget, n = t[o], r = e.propertyName, i; n.hasOwnProperty(r) && (n = n[r], i = new CustomEvent(E, { bubbles: !0 }), i.attrName = n.name, i.prevValue = n.value || null, i.newValue = n.value = t[r] || null, i.prevValue == null ? i[y] = i.attrChange = 0 : i[b] = i.attrChange = 1, ct.call(t, i)); }; e.value = function (e, s, u) { e === E && this[h] && this.setAttribute !== r && (this[o] = { className: { name: "class", value: this.className } }, this.setAttribute = r, this.removeAttribute = n, t.call(this, "propertychange", i)), t.call(this, e, s, u); }, B(it, u, e); }()) : rt || (M[u](E, bt), M.setAttribute(o, 1), M.removeAttribute(o), Nt && (Lt = function (e) { var t = this, n, r, i; if (t === e.target) {
|
|
65
|
-
n = t[o], t[o] = r = Ot(t);
|
|
66
|
-
for (i in r) {
|
|
67
|
-
if (!(i in n))
|
|
68
|
-
return At(0, t, i, n[i], r[i], y);
|
|
69
|
-
if (r[i] !== n[i])
|
|
70
|
-
return At(1, t, i, n[i], r[i], b);
|
|
71
|
-
}
|
|
72
|
-
for (i in n)
|
|
73
|
-
if (!(i in r))
|
|
74
|
-
return At(2, t, i, n[i], r[i], w);
|
|
75
|
-
} }, At = function (e, t, n, r, i, s) { var o = { attrChange: e, currentTarget: t, attrName: n, prevValue: r, newValue: i }; o[s] = e, Rt(o); }, Ot = function (e) { for (var t, n, r = {}, i = e.attributes, s = 0, o = i.length; s < o; s++)
|
|
76
|
-
t = i[s], n = t.name, n !== "setAttribute" && (r[n] = t.value); return r; })), n[s] = function (t, r) { p = t.toUpperCase(), xt && (xt = !1, rt ? (Mt = function (e, t) { function n(e, t) { for (var n = 0, r = e.length; n < r; t(e[n++]))
|
|
77
|
-
; } return new rt(function (r) { for (var i, s, o, u = 0, a = r.length; u < a; u++)
|
|
78
|
-
i = r[u], i.type === "childList" ? (n(i.addedNodes, e), n(i.removedNodes, t)) : (s = i.target, kt && s[h] && i.attributeName !== "style" && (o = ht.call(s, i.attributeName), o !== i.oldValue && s[h](i.attributeName, i.oldValue, o))); }); }(Ft(a), Ft(l)), _t = function (e) { return Mt.observe(e, { childList: !0, subtree: !0 }), e; }, _t(n), ft && (it.attachShadow = function () { return _t(ft.apply(this, arguments)); })) : (wt = [], n[u]("DOMNodeInserted", Ut(a)), n[u]("DOMNodeRemoved", Ut(l))), n[u](S, zt), n[u]("readystatechange", zt), it.cloneNode = function (e) { var t = lt.call(this, !!e), n = It(t); return -1 < n && Pt(t, A[n]), e && O.length && jt(t.querySelectorAll(O)), t; }); if (Tt)
|
|
79
|
-
return Tt = !1; -2 < _.call(L, N + p) + _.call(L, T + p) && $t(t); if (!C.test(p) || -1 < _.call(k, p))
|
|
80
|
-
throw new Error("The type " + t + " is invalid"); var i = function () { return o ? n.createElement(f, p) : n.createElement(f); }, s = r || D, o = P.call(s, c), f = o ? r[c].toUpperCase() : p, p, d; return o && -1 < _.call(L, T + f) && $t(f), d = L.push((o ? N : T) + p) - 1, O = O.concat(O.length ? "," : "", o ? f + '[is="' + t.toLowerCase() + '"]' : f), i.prototype = A[d] = P.call(s, "prototype") ? s.prototype : tt(it), O.length && Bt(n.querySelectorAll(O), a), i; }, n.createElement = gt = function (e, t) { var r = Yt(t), i = r ? mt.call(n, e, et(r)) : mt.call(n, e), s = "" + e, o = _.call(L, (r ? N : T) + (r || s).toUpperCase()), u = -1 < o; return r && (i.setAttribute("is", r = r.toLowerCase()), u && (u = qt(s.toUpperCase(), r))), kt = !n.createElement.innerHTMLHelper, u && Pt(i, A[o]), i; }), Kt.prototype = { constructor: Kt, define: V ? function (e, t, n) { if (n)
|
|
81
|
-
Qt(e, t, n);
|
|
82
|
-
else {
|
|
83
|
-
var r = e.toUpperCase();
|
|
84
|
-
G[r] = { constructor: t, create: [r] }, Z.set(t, r), X.define(e, t);
|
|
85
|
-
} } : Qt, get: V ? function (e) { return X.get(e) || Gt(e); } : Gt, whenDefined: V ? function (e) { return K.race([X.whenDefined(e), en(e)]); } : en };
|
|
86
|
-
if (!X || /^force/.test(t.type))
|
|
87
|
-
tn();
|
|
88
|
-
else if (!t.noBuiltIn)
|
|
89
|
-
try {
|
|
90
|
-
(function (t, r, i) { r[c] = "a", t.prototype = tt(HTMLAnchorElement.prototype), t.prototype.constructor = t, e.customElements.define(i, t, r); if (ht.call(n.createElement("a", { is: i }), "is") !== i || V && ht.call(new t, "is") !== i)
|
|
91
|
-
throw r; })(function on() { return Reflect.construct(HTMLAnchorElement, [], on); }, {}, "document-register-element-a");
|
|
92
|
-
}
|
|
93
|
-
catch (nn) {
|
|
94
|
-
tn();
|
|
95
|
-
}
|
|
96
|
-
if (!t.noBuiltIn)
|
|
97
|
-
try {
|
|
98
|
-
mt.call(n, "a", "a");
|
|
99
|
-
}
|
|
100
|
-
catch (rn) {
|
|
101
|
-
et = function (e) { return { is: e.toLowerCase() }; };
|
|
102
|
-
}
|
|
103
|
-
})(window);
|
|
104
|
-
}
|
|
105
|
-
/*!
|
|
106
|
-
Element.closest and Element.matches
|
|
107
|
-
https://github.com/jonathantneal/closest
|
|
108
|
-
Creative Commons Zero v1.0 Universal
|
|
109
|
-
*/
|
|
110
|
-
(function (a) { "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) { a = (this.document || this.ownerDocument).querySelectorAll(a); for (var b = 0; a[b] && a[b] !== this;)
|
|
111
|
-
++b; return !!a[b]; }); "function" !== typeof a.closest && (a.closest = function (a) { for (var b = this; b && 1 === b.nodeType;) {
|
|
112
|
-
if (b.matches(a))
|
|
113
|
-
return b;
|
|
114
|
-
b = b.parentNode;
|
|
115
|
-
} return null; }); })(window.Element.prototype);
|
|
116
|
-
/*!
|
|
117
|
-
Element.getRootNode()
|
|
118
|
-
*/
|
|
119
|
-
(function (c) { function d(a) { a = b(a); return 11 === a.nodeType ? d(a.host) : a; } function b(a) { return a.parentNode ? b(a.parentNode) : a; } "function" !== typeof c.getRootNode && (c.getRootNode = function (a) { return a && a.composed ? d(this) : b(this); }); })(Element.prototype);
|
|
120
|
-
/*!
|
|
121
|
-
Element.remove()
|
|
122
|
-
*/
|
|
123
|
-
(function (b) { b.forEach(function (a) { a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { null !== this.parentNode && this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
|
124
|
-
}
|
|
125
|
-
exports.applyPolyfill = applyPolyfill;
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
(function (e) {
|
|
5
|
-
function l(a) { "string" !== typeof a && (a = String(a)); if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(a))
|
|
6
|
-
throw new TypeError("Invalid character in header field name"); return a.toLowerCase(); }
|
|
7
|
-
function q(a) { "string" !== typeof a && (a = String(a)); return a; }
|
|
8
|
-
function n(a) { var b = { next: function () { var b = a.shift(); return { done: void 0 === b, value: b }; } }; g.iterable && (b[Symbol.iterator] = function () { return b; }); return b; }
|
|
9
|
-
function d(a) {
|
|
10
|
-
this.map = {};
|
|
11
|
-
a instanceof d ? a.forEach(function (a, c) { this.append(c, a); }, this) : Array.isArray(a) ?
|
|
12
|
-
a.forEach(function (a) { this.append(a[0], a[1]); }, this) : a && Object.getOwnPropertyNames(a).forEach(function (b) { this.append(b, a[b]); }, this);
|
|
13
|
-
}
|
|
14
|
-
function p(a) { if (a.bodyUsed)
|
|
15
|
-
return Promise.reject(new TypeError("Already read")); a.bodyUsed = !0; }
|
|
16
|
-
function r(a) { return new Promise(function (b, c) { a.onload = function () { b(a.result); }; a.onerror = function () { c(a.error); }; }); }
|
|
17
|
-
function w(a) { var b = new FileReader, c = r(b); b.readAsArrayBuffer(a); return c; }
|
|
18
|
-
function x(a) {
|
|
19
|
-
a = new Uint8Array(a);
|
|
20
|
-
for (var b = Array(a.length), c = 0; c < a.length; c++)
|
|
21
|
-
b[c] = String.fromCharCode(a[c]);
|
|
22
|
-
return b.join("");
|
|
23
|
-
}
|
|
24
|
-
function t(a) { if (a.slice)
|
|
25
|
-
return a.slice(0); var b = new Uint8Array(a.byteLength); b.set(new Uint8Array(a)); return b.buffer; }
|
|
26
|
-
function u() {
|
|
27
|
-
this.bodyUsed = !1;
|
|
28
|
-
this._initBody = function (a) {
|
|
29
|
-
if (this._bodyInit = a)
|
|
30
|
-
if ("string" === typeof a)
|
|
31
|
-
this._bodyText = a;
|
|
32
|
-
else if (g.blob && Blob.prototype.isPrototypeOf(a))
|
|
33
|
-
this._bodyBlob = a;
|
|
34
|
-
else if (g.formData && FormData.prototype.isPrototypeOf(a))
|
|
35
|
-
this._bodyFormData = a;
|
|
36
|
-
else if (g.searchParams && URLSearchParams.prototype.isPrototypeOf(a))
|
|
37
|
-
this._bodyText = a.toString();
|
|
38
|
-
else if (g.arrayBuffer &&
|
|
39
|
-
g.blob && y(a))
|
|
40
|
-
this._bodyArrayBuffer = t(a.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer]);
|
|
41
|
-
else if (g.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(a) || z(a)))
|
|
42
|
-
this._bodyArrayBuffer = t(a);
|
|
43
|
-
else
|
|
44
|
-
throw Error("unsupported BodyInit type");
|
|
45
|
-
else
|
|
46
|
-
this._bodyText = "";
|
|
47
|
-
this.headers.get("content-type") || ("string" === typeof a ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : g.searchParams && URLSearchParams.prototype.isPrototypeOf(a) &&
|
|
48
|
-
this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
49
|
-
};
|
|
50
|
-
g.blob && (this.blob = function () { var a = p(this); if (a)
|
|
51
|
-
return a; if (this._bodyBlob)
|
|
52
|
-
return Promise.resolve(this._bodyBlob); if (this._bodyArrayBuffer)
|
|
53
|
-
return Promise.resolve(new Blob([this._bodyArrayBuffer])); if (this._bodyFormData)
|
|
54
|
-
throw Error("could not read FormData body as blob"); return Promise.resolve(new Blob([this._bodyText])); }, this.arrayBuffer = function () {
|
|
55
|
-
return this._bodyArrayBuffer ? p(this) || Promise.resolve(this._bodyArrayBuffer) :
|
|
56
|
-
this.blob().then(w);
|
|
57
|
-
});
|
|
58
|
-
this.text = function () { var a = p(this); if (a)
|
|
59
|
-
return a; if (this._bodyBlob) {
|
|
60
|
-
a = this._bodyBlob;
|
|
61
|
-
var b = new FileReader, c = r(b);
|
|
62
|
-
b.readAsText(a);
|
|
63
|
-
return c;
|
|
64
|
-
} if (this._bodyArrayBuffer)
|
|
65
|
-
return Promise.resolve(x(this._bodyArrayBuffer)); if (this._bodyFormData)
|
|
66
|
-
throw Error("could not read FormData body as text"); return Promise.resolve(this._bodyText); };
|
|
67
|
-
g.formData && (this.formData = function () { return this.text().then(A); });
|
|
68
|
-
this.json = function () { return this.text().then(JSON.parse); };
|
|
69
|
-
return this;
|
|
70
|
-
}
|
|
71
|
-
function k(a, b) {
|
|
72
|
-
b =
|
|
73
|
-
b || {};
|
|
74
|
-
var c = b.body;
|
|
75
|
-
if (a instanceof k) {
|
|
76
|
-
if (a.bodyUsed)
|
|
77
|
-
throw new TypeError("Already read");
|
|
78
|
-
this.url = a.url;
|
|
79
|
-
this.credentials = a.credentials;
|
|
80
|
-
b.headers || (this.headers = new d(a.headers));
|
|
81
|
-
this.method = a.method;
|
|
82
|
-
this.mode = a.mode;
|
|
83
|
-
c || null == a._bodyInit || (c = a._bodyInit, a.bodyUsed = !0);
|
|
84
|
-
}
|
|
85
|
-
else
|
|
86
|
-
this.url = String(a);
|
|
87
|
-
this.credentials = b.credentials || this.credentials || "omit";
|
|
88
|
-
if (b.headers || !this.headers)
|
|
89
|
-
this.headers = new d(b.headers);
|
|
90
|
-
var v = b.method || this.method || "GET", g = v.toUpperCase();
|
|
91
|
-
this.method = -1 < B.indexOf(g) ? g : v;
|
|
92
|
-
this.mode =
|
|
93
|
-
b.mode || this.mode || null;
|
|
94
|
-
this.referrer = null;
|
|
95
|
-
if (("GET" === this.method || "HEAD" === this.method) && c)
|
|
96
|
-
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
97
|
-
this._initBody(c);
|
|
98
|
-
}
|
|
99
|
-
function A(a) { var b = new FormData; a.trim().split("&").forEach(function (a) { if (a) {
|
|
100
|
-
var c = a.split("=");
|
|
101
|
-
a = c.shift().replace(/\+/g, " ");
|
|
102
|
-
c = c.join("=").replace(/\+/g, " ");
|
|
103
|
-
b.append(decodeURIComponent(a), decodeURIComponent(c));
|
|
104
|
-
} }); return b; }
|
|
105
|
-
function C(a) {
|
|
106
|
-
var b = new d;
|
|
107
|
-
a.replace(/\r?\n[\t ]+/g, " ").split(/\r?\n/).forEach(function (a) {
|
|
108
|
-
var c = a.split(":");
|
|
109
|
-
if (a = c.shift().trim())
|
|
110
|
-
c = c.join(":").trim(), b.append(a, c);
|
|
111
|
-
});
|
|
112
|
-
return b;
|
|
113
|
-
}
|
|
114
|
-
function h(a, b) { b || (b = {}); this.type = "default"; this.status = void 0 === b.status ? 200 : b.status; this.ok = 200 <= this.status && 300 > this.status; this.statusText = "statusText" in b ? b.statusText : "OK"; this.headers = new d(b.headers); this.url = b.url || ""; this._initBody(a); }
|
|
115
|
-
if (!e.fetch) {
|
|
116
|
-
var D = "Symbol" in e && "iterator" in Symbol, m;
|
|
117
|
-
if (m = "FileReader" in e && "Blob" in e)
|
|
118
|
-
try {
|
|
119
|
-
new Blob, m = !0;
|
|
120
|
-
}
|
|
121
|
-
catch (a) {
|
|
122
|
-
m = !1;
|
|
123
|
-
}
|
|
124
|
-
var g = { searchParams: "URLSearchParams" in e, iterable: D,
|
|
125
|
-
blob: m, formData: "FormData" in e, arrayBuffer: "ArrayBuffer" in e };
|
|
126
|
-
if (g.arrayBuffer) {
|
|
127
|
-
var E = "[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";");
|
|
128
|
-
var y = function (a) { return a && DataView.prototype.isPrototypeOf(a); };
|
|
129
|
-
var z = ArrayBuffer.isView || function (a) { return a && -1 < E.indexOf(Object.prototype.toString.call(a)); };
|
|
130
|
-
}
|
|
131
|
-
d.prototype.append = function (a, b) {
|
|
132
|
-
a = l(a);
|
|
133
|
-
b = q(b);
|
|
134
|
-
var c = this.map[a];
|
|
135
|
-
this.map[a] = c ? c + "," + b : b;
|
|
136
|
-
};
|
|
137
|
-
d.prototype["delete"] = function (a) { delete this.map[l(a)]; };
|
|
138
|
-
d.prototype.get = function (a) { a = l(a); return this.has(a) ? this.map[a] : null; };
|
|
139
|
-
d.prototype.has = function (a) { return this.map.hasOwnProperty(l(a)); };
|
|
140
|
-
d.prototype.set = function (a, b) { this.map[l(a)] = q(b); };
|
|
141
|
-
d.prototype.forEach = function (a, b) { for (var c in this.map)
|
|
142
|
-
this.map.hasOwnProperty(c) && a.call(b, this.map[c], c, this); };
|
|
143
|
-
d.prototype.keys = function () { var a = []; this.forEach(function (b, c) { a.push(c); }); return n(a); };
|
|
144
|
-
d.prototype.values =
|
|
145
|
-
function () { var a = []; this.forEach(function (b) { a.push(b); }); return n(a); };
|
|
146
|
-
d.prototype.entries = function () { var a = []; this.forEach(function (b, c) { a.push([c, b]); }); return n(a); };
|
|
147
|
-
g.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries);
|
|
148
|
-
var B = "DELETE GET HEAD OPTIONS POST PUT".split(" ");
|
|
149
|
-
k.prototype.clone = function () { return new k(this, { body: this._bodyInit }); };
|
|
150
|
-
u.call(k.prototype);
|
|
151
|
-
u.call(h.prototype);
|
|
152
|
-
h.prototype.clone = function () {
|
|
153
|
-
return new h(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new d(this.headers),
|
|
154
|
-
url: this.url });
|
|
155
|
-
};
|
|
156
|
-
h.error = function () { var a = new h(null, { status: 0, statusText: "" }); a.type = "error"; return a; };
|
|
157
|
-
var F = [301, 302, 303, 307, 308];
|
|
158
|
-
h.redirect = function (a, b) { if (-1 === F.indexOf(b))
|
|
159
|
-
throw new RangeError("Invalid status code"); return new h(null, { status: b, headers: { location: a } }); };
|
|
160
|
-
e.Headers = d;
|
|
161
|
-
e.Request = k;
|
|
162
|
-
e.Response = h;
|
|
163
|
-
e.fetch = function (a, b) {
|
|
164
|
-
return new Promise(function (c, d) {
|
|
165
|
-
var e = new k(a, b), f = new XMLHttpRequest;
|
|
166
|
-
f.onload = function () {
|
|
167
|
-
var a = { status: f.status, statusText: f.statusText, headers: C(f.getAllResponseHeaders() ||
|
|
168
|
-
"") };
|
|
169
|
-
a.url = "responseURL" in f ? f.responseURL : a.headers.get("X-Request-URL");
|
|
170
|
-
c(new h("response" in f ? f.response : f.responseText, a));
|
|
171
|
-
};
|
|
172
|
-
f.onerror = function () { d(new TypeError("Network request failed")); };
|
|
173
|
-
f.ontimeout = function () { d(new TypeError("Network request failed")); };
|
|
174
|
-
f.open(e.method, e.url, !0);
|
|
175
|
-
"include" === e.credentials ? f.withCredentials = !0 : "omit" === e.credentials && (f.withCredentials = !1);
|
|
176
|
-
"responseType" in f && g.blob && (f.responseType = "blob");
|
|
177
|
-
e.headers.forEach(function (a, b) { f.setRequestHeader(b, a); });
|
|
178
|
-
f.send("undefined" ===
|
|
179
|
-
typeof e._bodyInit ? null : e._bodyInit);
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
|
-
e.fetch.polyfill = !0;
|
|
183
|
-
}
|
|
184
|
-
})("undefined" !== typeof self ? self : window);
|
|
185
|
-
}
|
|
186
|
-
exports.applyPolyfill = applyPolyfill;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
(function (e) {
|
|
5
|
-
function d(a, b) { function c(a) { if (!this || this.constructor !== c)
|
|
6
|
-
return new c(a); this._keys = []; this._values = []; this._itp = []; this.objectOnly = b; a && v.call(this, a); } b || w(a, "size", { get: x }); a.constructor = c; c.prototype = a; return c; }
|
|
7
|
-
function v(a) { this.add ? a.forEach(this.add, this) : a.forEach(function (a) { this.set(a[0], a[1]); }, this); }
|
|
8
|
-
function f(a) { this.has(a) && (this._keys.splice(c, 1), this._values.splice(c, 1), this._itp.forEach(function (a) { c < a[0] && a[0]--; })); return -1 < c; }
|
|
9
|
-
function m(a) {
|
|
10
|
-
return this.has(a) ? this._values[c] :
|
|
11
|
-
void 0;
|
|
12
|
-
}
|
|
13
|
-
function n(a, b) { if (this.objectOnly && b !== Object(b))
|
|
14
|
-
throw new TypeError("Invalid value used as weak collection key"); if (b != b || 0 === b)
|
|
15
|
-
for (c = a.length; c-- && !y(a[c], b);)
|
|
16
|
-
;
|
|
17
|
-
else
|
|
18
|
-
c = a.indexOf(b); return -1 < c; }
|
|
19
|
-
function p(a) { return n.call(this, this._values, a); }
|
|
20
|
-
function q(a) { return n.call(this, this._keys, a); }
|
|
21
|
-
function r(a, b) { this.has(a) ? this._values[c] = b : this._values[this._keys.push(a) - 1] = b; return this; }
|
|
22
|
-
function t(a) { this.has(a) || this._values.push(a); return this; }
|
|
23
|
-
function h() {
|
|
24
|
-
(this._keys || 0).length = this._values.length =
|
|
25
|
-
0;
|
|
26
|
-
}
|
|
27
|
-
function z() { return k(this._itp, this._keys); }
|
|
28
|
-
function l() { return k(this._itp, this._values); }
|
|
29
|
-
function A() { return k(this._itp, this._keys, this._values); }
|
|
30
|
-
function B() { return k(this._itp, this._values, this._values); }
|
|
31
|
-
function k(a, b, c) { var g = [0], e = !1; a.push(g); return { next: function () { var d = g[0]; if (!e && d < b.length) {
|
|
32
|
-
var f = c ? [b[d], c[d]] : b[d];
|
|
33
|
-
g[0]++;
|
|
34
|
-
}
|
|
35
|
-
else
|
|
36
|
-
e = !0, a.splice(a.indexOf(g), 1); return { done: e, value: f }; } }; }
|
|
37
|
-
function x() { return this._values.length; }
|
|
38
|
-
function u(a, b) {
|
|
39
|
-
for (var c = this.entries();;) {
|
|
40
|
-
var d = c.next();
|
|
41
|
-
if (d.done)
|
|
42
|
-
break;
|
|
43
|
-
a.call(b, d.value[1], d.value[0], this);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
var c, w = Object.defineProperty, y = function (a, b) { return a === b || a !== a && b !== b; };
|
|
47
|
-
"undefined" == typeof WeakMap && (e.WeakMap = d({ "delete": f, clear: h, get: m, has: q, set: r }, !0));
|
|
48
|
-
"undefined" != typeof Map && "function" === typeof (new Map).values && (new Map).values().next || (e.Map = d({ "delete": f, has: q, get: m, set: r, keys: z, values: l, entries: A, forEach: u, clear: h }));
|
|
49
|
-
"undefined" != typeof Set && "function" === typeof (new Set).values && (new Set).values().next || (e.Set = d({ has: p, add: t, "delete": f, clear: h, keys: l,
|
|
50
|
-
values: l, entries: B, forEach: u }));
|
|
51
|
-
"undefined" == typeof WeakSet && (e.WeakSet = d({ "delete": f, add: t, clear: h, has: p }, !0));
|
|
52
|
-
})(window);
|
|
53
|
-
}
|
|
54
|
-
exports.applyPolyfill = applyPolyfill;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function applyPolyfill(window, document) {
|
|
4
|
-
"function" != typeof Object.assign && Object.defineProperty(Object, "assign", { value: function (d, f) { if (null == d)
|
|
5
|
-
throw new TypeError("Cannot convert undefined or null to object"); for (var e = Object(d), b = 1; b < arguments.length; b++) {
|
|
6
|
-
var a = arguments[b];
|
|
7
|
-
if (null != a)
|
|
8
|
-
for (var c in a)
|
|
9
|
-
Object.prototype.hasOwnProperty.call(a, c) && (e[c] = a[c]);
|
|
10
|
-
} return e; }, writable: !0, configurable: !0 });
|
|
11
|
-
/*!
|
|
12
|
-
Object.entries
|
|
13
|
-
*/
|
|
14
|
-
Object.entries || (Object.entries = function (c) { for (var b = Object.keys(c), a = b.length, d = Array(a); a--;)
|
|
15
|
-
d[a] = [b[a], c[b[a]]]; return d; });
|
|
16
|
-
/*!
|
|
17
|
-
Object.values
|
|
18
|
-
*/
|
|
19
|
-
Object.values || (Object.values = function (n) { return Object.keys(n).map(function (r) { return n[r]; }); });
|
|
20
|
-
/*!
|
|
21
|
-
Number
|
|
22
|
-
*/
|
|
23
|
-
void 0 === Number.isFinite && (Number.isFinite = function (a) { return "number" === typeof a && isFinite(a); });
|
|
24
|
-
Number.isNaN = Number.isNaN || function (a) { return a !== a; };
|
|
25
|
-
Number.isInteger = Number.isInteger || function (a) { return "number" === typeof a && isFinite(a) && Math.floor(a) === a; };
|
|
26
|
-
}
|
|
27
|
-
exports.applyPolyfill = applyPolyfill;
|