cross-country 1.2.21 → 1.2.22
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/dist/Color-F6OSRLHC-BbLcUd-T.js +575 -0
- package/dist/{bolt-Bw4E_fgS.js → bolt-BLbYxvOV.js} +6 -5
- package/dist/bundle.css +36 -31
- package/dist/colour-util-Bzfca_cM.js +775 -0
- package/dist/components/atoms/circle/__tests__/circle.test.js +2 -2
- package/dist/components/atoms/column/__tests__/column.test.js +2 -2
- package/dist/components/atoms/index.js +1 -1
- package/dist/components/atoms/list/index.js +4 -0
- package/dist/components/atoms/list/list-item/index.js +4 -0
- package/dist/components/atoms/list/list-item/list-item.js +20 -0
- package/dist/components/atoms/list/list.js +33 -0
- package/dist/components/atoms/radio/index.js +2 -2
- package/dist/components/atoms/radio/radio.js +42 -3
- package/dist/components/atoms/text/animate-number/animate-number.js +1 -1
- package/dist/components/atoms/text/index.js +1 -1
- package/dist/components/atoms/text/input/__stories__/state-machine-fetch-dragons.js +3 -3
- package/dist/components/atoms/text/input/input-text-machine.js +3 -3
- package/dist/components/atoms/text/input/state-machine-text-input.js +1 -1
- package/dist/components/atoms/text/span/__stories__/span-story.js +6 -5
- package/dist/components/index.js +116 -116
- package/dist/components/molecules/autocomplete/autocomplete-machine.js +3 -3
- package/dist/components/molecules/autocomplete/autocomplete.js +1 -1
- package/dist/components/molecules/card/amazon/amazon-card.js +7 -6
- package/dist/components/molecules/card/builder/card-builder-machine/card-builder-machine.js +1 -1
- package/dist/components/molecules/card/builder/card-builder-machine/card-service-events.js +2 -2
- package/dist/components/molecules/card/builder/card-builder-machine/platform-states-amazon.js +1 -1
- package/dist/components/molecules/card/builder/card-builder-machine/platform-states-common.js +1 -1
- package/dist/components/molecules/card/builder/card-builder.js +1 -1
- package/dist/components/molecules/card/builder/card-editor.js +7 -6
- package/dist/components/molecules/card/card.js +6 -5
- package/dist/components/molecules/carousel/carousel.js +6 -5
- package/dist/components/molecules/day-number/day-number.js +6 -5
- package/dist/components/molecules/field/field.js +6 -5
- package/dist/components/molecules/gold-leaf/gold-leaf-view/__tests__/gold-leaf-view.test.js +3 -3
- package/dist/components/molecules/gold-leaf/gold-leaf-view/controls/gold-leaf-view-controls.js +8 -7
- package/dist/components/molecules/gold-leaf/gold-leaf-view/email/gold-leaf-email-view.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/index.js +1 -1
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.js +7 -6
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.js +40 -0
- package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-image-card.js +8 -7
- package/dist/components/molecules/gold-leaf/gold-leaf.js +1 -1
- package/dist/components/molecules/header/Header.js +10 -9
- package/dist/components/molecules/hero/hero.js +7 -6
- package/dist/components/molecules/icons/index.js +4 -3
- package/dist/components/molecules/icons/x/x.js +6 -5
- package/dist/components/molecules/index.js +8 -7
- package/dist/components/molecules/key-value-pairs/__tests__/key-value-pairs.js +1 -1
- package/dist/components/molecules/key-value-pairs/key-value-pairs.js +10 -9
- package/dist/components/molecules/keywords/keywords.js +6 -5
- package/dist/components/molecules/loading/__tests__/loading.test.js +1 -1
- package/dist/components/molecules/log-error-boundary/__stories__/log-error-boundary-story.js +1 -1
- package/dist/components/molecules/log-error-boundary/__tests__/log-error-boundary.test.js +2 -2
- package/dist/components/molecules/log-error-boundary/log-error-boundary.js +6 -5
- package/dist/components/molecules/modal/modal.js +6 -5
- package/dist/components/molecules/policies/index.js +4 -3
- package/dist/components/molecules/policies/privacy-policy.js +8 -7
- package/dist/components/molecules/policies/terms-of-use.js +8 -7
- package/dist/components/molecules/quote/quote.js +6 -5
- package/dist/components/molecules/radiogroup/__stories__/radio-group-form-story.js +12 -11
- package/dist/components/molecules/radiogroup/__stories__/radio-group-react-hook-form-story.js +15 -14
- package/dist/components/molecules/radiogroup/radiogroup.js +9 -9
- package/dist/components/molecules/related-articles/related-articles.js +15 -14
- package/dist/components/molecules/search/search.js +6 -5
- package/dist/components/molecules/stagger/stagger.js +6 -5
- package/dist/components/molecules/tile/corners.js +1 -1
- package/dist/components/molecules/tile/index.js +1 -1
- package/dist/components/molecules/tile/tile-interactive.js +5 -4
- package/dist/components/molecules/tile/tile.js +1 -1
- package/dist/components/molecules/time-progress/__tests__/progress.test.js +1 -1
- package/dist/components/molecules/time-progress/pilot/index.js +2 -3
- package/dist/components/molecules/time-progress/progress-over-year.js +6 -5
- package/dist/components/molecules/time-progress/progress.js +6 -5
- package/dist/components/molecules/user/anon-user.js +6 -5
- package/dist/components/molecules/user/user.js +7 -6
- package/dist/components/molecules/venn-diagram/__tests__/venn-diagram.tests.js +2 -2
- package/dist/components/molecules/venn-diagram/venn-diagram-circle.js +6 -5
- package/dist/components/molecules/venn-diagram/venn-diagram.js +6 -5
- package/dist/components/molecules/wallpaper/__tests__/wallpaper.tests.js +2 -2
- package/dist/components/molecules/wallpaper/wallpaper.js +1 -1
- package/dist/components/molecules/wrapper/__stories__/wrapper-children-story.js +6 -5
- package/dist/components/organisms/actors/actor/actor-builder-machine.js +2 -2
- package/dist/components/organisms/actors/actor/actor-builder.js +6 -5
- package/dist/components/organisms/actors/actor/actor.js +5 -4
- package/dist/components/organisms/actors/actor/index.js +1 -1
- package/dist/components/organisms/actors/animal/animal.js +1 -1
- package/dist/components/organisms/actors/monsters/troll/troll-machine.js +2 -2
- package/dist/components/organisms/actors/monsters/troll/troll.js +6 -5
- package/dist/components/organisms/actors/party/cleric/cleric.js +1 -1
- package/dist/components/organisms/actors/party/hunter/hunter.js +1 -1
- package/dist/components/organisms/actors/party/warrior/warrior.js +1 -1
- package/dist/components/organisms/actors/party/wizard/wizard.js +1 -1
- package/dist/components/organisms/actors/wisp/wisp.js +1 -1
- package/dist/components/organisms/ads/ad-card.js +6 -5
- package/dist/components/organisms/animation/animate-actor/animate-actor.js +6 -5
- package/dist/components/organisms/animation/one-day/one-day.js +15 -14
- package/dist/components/organisms/animation/reverse-text-animation/reverse-text-animation.js +6 -5
- package/dist/components/organisms/bento/layouts/five-by-four/bento-five-by-four.js +9 -8
- package/dist/components/organisms/bento/layouts/four-by-four/bento-four-by-four.js +6 -5
- package/dist/components/organisms/bento/layouts/three-by-three/bento-three-by-three.js +6 -5
- package/dist/components/organisms/bento/layouts/two-by-two/bento-two-by-two.js +6 -5
- package/dist/components/organisms/blog/__stories__/blog-story.js +9 -8
- package/dist/components/organisms/blog/blog-post/__stories__/blog-post-story.js +6 -5
- package/dist/components/organisms/blog/blog-post/blog-post-machine/build-listicle-machine.js +1 -1
- package/dist/components/organisms/blog/blog-post/blog-post-machine/delete-listicle-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/load-listicle.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/manage-listicle-items.js +1 -1
- package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post-machine/update-listice-item.js +2 -2
- package/dist/components/organisms/blog/blog-post/blog-post.js +6 -5
- package/dist/components/organisms/blog/blog-post-list.js +12 -11
- package/dist/components/organisms/blog/blog.js +6 -5
- package/dist/components/organisms/branch/branch.js +6 -5
- package/dist/components/organisms/branches/__tests__/branch-list.test.js +6 -4
- package/dist/components/organisms/branches/branch-list.js +61 -39
- package/dist/components/organisms/branches/branches.js +7 -6
- package/dist/components/organisms/calendar/calendar.js +6 -5
- package/dist/components/organisms/charts/chart/__stories__/data-set.js +1 -1
- package/dist/components/organisms/charts/chart/chart-gold-leaf/chart-gold-leaf.js +4 -3
- package/dist/components/organisms/clusters/cluster.js +6 -5
- package/dist/components/organisms/json-map-tile-grid/index.js +1 -1
- package/dist/components/organisms/json-map-tile-grid/json-map-tile-grid.js +6 -4
- package/dist/components/organisms/listicle/__stories__/andor-right-click-story.js +6 -5
- package/dist/components/organisms/listicle/__stories__/listicle-fb-v-canada-story.js +6 -5
- package/dist/components/organisms/listicle/__stories__/listicle-story.js +6 -5
- package/dist/components/organisms/listicle/build-listicle-machine/build-listicle-machine.js +1 -1
- package/dist/components/organisms/listicle/build-listicle-machine/delete-listicle-item.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/load-listicle.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/manage-listicle-items.js +1 -1
- package/dist/components/organisms/listicle/build-listicle-machine/save-listicle-item.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/save-listicle.js +2 -2
- package/dist/components/organisms/listicle/build-listicle-machine/update-listice-item.js +2 -2
- package/dist/components/organisms/listicle/edit-listicle/edit-listicle.js +13 -12
- package/dist/components/organisms/listicle/edit-listicle-item-list/edit-listicle-item-list.js +6 -5
- package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item-input.js +12 -11
- package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item.js +6 -5
- package/dist/components/organisms/listicle/listicle-builder.js +14 -13
- package/dist/components/organisms/listicle/listicle-item-list.js +12 -11
- package/dist/components/organisms/listicle/listicle.js +6 -5
- package/dist/components/organisms/listicle/post-link.js +7 -6
- package/dist/components/organisms/login/__stories__/login-story.js +6 -5
- package/dist/components/organisms/login/login-fetching-transition.js +6 -5
- package/dist/components/organisms/login/login-fields-transition.js +21 -20
- package/dist/components/organisms/login/login-response-transition.js +66 -11
- package/dist/components/organisms/login/login-submit-transition.js +6 -5
- package/dist/components/organisms/login/login-view.js +7 -6
- package/dist/components/organisms/metrics/metrics.js +6 -5
- package/dist/components/organisms/palettes/palettes.js +14 -12
- package/dist/components/organisms/player/player.js +6 -5
- package/dist/components/organisms/registration/password-strength-helper.js +11 -10
- package/dist/components/organisms/registration/post-registration.js +2 -2
- package/dist/components/organisms/registration/registration-form.js +6 -5
- package/dist/components/organisms/registration/registration-machine.js +2 -2
- package/dist/components/organisms/registration/registration-response.js +6 -5
- package/dist/components/organisms/registration/registration.js +7 -6
- package/dist/components/organisms/stage/stage.js +9 -8
- package/dist/components/organisms/survey/__stories__/build-form-story.js +6 -5
- package/dist/components/organisms/survey/build-form-machine.js +2 -2
- package/dist/components/organisms/survey/build-form.js +8 -7
- package/dist/components/organisms/survey/final-form.js +8 -7
- package/dist/components/organisms/survey/question/edit/__stories__/edit-question-story.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-media.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-question/__stories__/add-question-story.js +6 -5
- package/dist/components/organisms/survey/question/edit/add-question/add-question.js +30 -29
- package/dist/components/organisms/survey/question/edit/answer/answer-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/answer-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-multiple-choice.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js +2 -2
- package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list.js +7 -6
- package/dist/components/organisms/survey/question/edit/edit-option-list/option-input.js +6 -5
- package/dist/components/organisms/survey/question/edit/edit-option-list/option.js +7 -6
- package/dist/components/organisms/survey/question/edit/question-answer-input.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/multiple-choice-story.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/take-answer-date-time-input-story.js +6 -5
- package/dist/components/organisms/survey/question/take/__stories__/take-answer-input-story.js +6 -5
- package/dist/components/organisms/survey/question/take/inputs/input-manager.js +6 -5
- package/dist/components/organisms/survey/question/take/multiple-choice.js +6 -5
- package/dist/components/organisms/survey/question/take/take-answer-input.js +12 -11
- package/dist/components/organisms/tile-grid/__tests__/tile-grid.tests.js +3 -3
- package/dist/components/organisms/tile-grid/grid-row.js +6 -5
- package/dist/components/organisms/tile-grid/index.js +1 -1
- package/dist/components/organisms/tile-grid/island-tile-grid.js +12 -11
- package/dist/components/organisms/tile-grid/tile-grid.js +6 -4
- package/dist/components/organisms/worlds/area-of-effect/__stories__/area-of-affect-story.js +6 -5
- package/dist/components/organisms/worlds/area-of-effect/area-of-affect.js +31 -29
- package/dist/components/organisms/worlds/island/__stories__/island-story.js +18 -16
- package/dist/components/organisms/worlds/island/__stories__/island-util.js +25 -23
- package/dist/components/pages/home/headwinds/header/headwinds-header.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-footer.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-hero.js +6 -5
- package/dist/components/pages/home/headwinds/headwinds-sidequest.js +35 -34
- package/dist/components/pages/home/headwinds/home.js +9 -8
- package/dist/components/pages/index.js +6 -5
- package/dist/components/pages/profile/headwinds/headwinds-profile.js +21 -20
- package/dist/components/pages/profile/index.js +4 -3
- package/dist/components/templates/articles/article/article.js +6 -5
- package/dist/components/templates/home/headwinds/headwinds-home-hero.js +6 -5
- package/dist/components/templates/home/headwinds/headwinds-home.js +6 -5
- package/dist/components/templates/home/home.js +10 -9
- package/dist/fp-util-DZLSTUg5.js +8 -0
- package/dist/gold-leaf-view-CgRraK2i.js +183 -0
- package/dist/gold-leaf-view.module-p3mWnO60.js +17 -0
- package/dist/headline-DzDFQZ3e.js +11 -0
- package/dist/image-find-util-DMX6BcO-.js +1036 -0
- package/dist/index-BTF1caLu.js +2529 -0
- package/dist/{index-COQaJqs5.js → index-OdyFkztm.js} +3670 -2660
- package/dist/{index-DsigmIMS.js → index-_cvPLH70.js} +1 -1
- package/dist/index.esm-DGm91C_6.js +944 -0
- package/dist/index.js +143 -140
- package/dist/lib/components/atoms/list/index.d.ts +2 -0
- package/dist/lib/components/atoms/list/list-item/index.d.ts +2 -0
- package/dist/lib/components/atoms/list/list-item/list-item.d.ts +10 -0
- package/dist/lib/components/atoms/list/list.d.ts +12 -0
- package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.d.ts +4 -0
- package/dist/lib/components/organisms/branch/branch.d.ts +3 -1
- package/dist/lib/components/organisms/branches/__stories__/branches.stories.d.ts +7 -0
- package/dist/lib/components/organisms/branches/branch-list.d.ts +4 -1
- package/dist/lib/models/TreeModel.d.ts +12 -0
- package/dist/lib/models/index.d.ts +1 -0
- package/dist/lib/utils/golds/feed-util.d.ts +17 -0
- package/dist/lib/utils/index.d.ts +5 -0
- package/dist/list.module-pjS_KHqp.js +10 -0
- package/dist/{log-2a4cc478.esm-HFv7vQ7j.js → log-2a4cc478.esm-BdzQp5f-.js} +15 -15
- package/dist/{log-error-boundary-story-BF8rmHhr.js → log-error-boundary-story-CcyM__Yt.js} +6541 -7185
- package/dist/{magic-string.es-VsGWiGpd.js → magic-string.es-QkQE39Zh.js} +11 -6
- package/dist/{radio-BTUtRmLM.js → mobile-detect-CWVWWCSg.js} +12 -51
- package/dist/models/TreeModel.js +12 -0
- package/dist/models/index.js +3 -2
- package/dist/{react-spring_web.modern-nSq5Xzxb.js → react-spring_web.modern-ClBJWBW2.js} +281 -273
- package/dist/{react.esm-BEaxtOYu.js → react.esm-BpVcViTQ.js} +2197 -2181
- package/dist/string-util-D7tmqJRS.js +35 -0
- package/dist/table-data-BnRZ5F7y.js +16 -0
- package/dist/utils/golds/feed-util.js +240 -0
- package/dist/utils/index.js +12 -0
- package/dist/{vi.YFlodzP_-CjWVzrI3.js → vi.YFlodzP_-C3qjkUdf.js} +2 -2
- package/dist/{xstate-actors.esm-Ba6reXm_.js → xstate-actors.esm-CcLF5JHw.js} +1 -1
- package/dist/{xstate-react.esm-Ct8KIFgA.js → xstate-react.esm-DWdE0_Ay.js} +1 -1
- package/dist/{xstate.esm-Bo02HSs2.js → xstate.esm-COAqQ2fq.js} +11 -11
- package/package.json +4 -2
- package/dist/Color-ERTF36HU-DRLqcX19.js +0 -358
- package/dist/_getTag-CqbPZ7Cl.js +0 -449
- package/dist/components/organisms/branches/__stories__/branches-story.js +0 -6
- package/dist/components/organisms/branches/branch-list.types.js +0 -1
- package/dist/feed-util-CZfVh6cR.js +0 -244
- package/dist/fp-util-4N0NK_eU.js +0 -8
- package/dist/gold-leaf-view-BAGw5McJ.js +0 -117
- package/dist/gold-leaf-view.module-BTNjKEeW.js +0 -17
- package/dist/headline-DuHL8hAt.js +0 -11
- package/dist/image-find-util-Cl2ZJHfC.js +0 -41
- package/dist/index-BsYJgl86.js +0 -3853
- package/dist/index-Cdg9lY68.js +0 -542
- package/dist/index.esm-BrPDxyfz.js +0 -933
- package/dist/lib/components/organisms/branches/__stories__/branches-story.d.ts +0 -2
- package/dist/lib/components/organisms/branches/branch-list.types.d.ts +0 -5
- package/dist/list-BkQjCFcb.js +0 -14
- package/dist/list-item-DyDjznkQ.js +0 -8
- package/dist/login-response-transition-Dws0eBbH.js +0 -123
- package/dist/table-data-PGM-_ef9.js +0 -16
package/dist/index-Cdg9lY68.js
DELETED
|
@@ -1,542 +0,0 @@
|
|
|
1
|
-
var m, k;
|
|
2
|
-
function F() {
|
|
3
|
-
return k || (k = 1, m = {
|
|
4
|
-
aliceblue: [240, 248, 255],
|
|
5
|
-
antiquewhite: [250, 235, 215],
|
|
6
|
-
aqua: [0, 255, 255],
|
|
7
|
-
aquamarine: [127, 255, 212],
|
|
8
|
-
azure: [240, 255, 255],
|
|
9
|
-
beige: [245, 245, 220],
|
|
10
|
-
bisque: [255, 228, 196],
|
|
11
|
-
black: [0, 0, 0],
|
|
12
|
-
blanchedalmond: [255, 235, 205],
|
|
13
|
-
blue: [0, 0, 255],
|
|
14
|
-
blueviolet: [138, 43, 226],
|
|
15
|
-
brown: [165, 42, 42],
|
|
16
|
-
burlywood: [222, 184, 135],
|
|
17
|
-
cadetblue: [95, 158, 160],
|
|
18
|
-
chartreuse: [127, 255, 0],
|
|
19
|
-
chocolate: [210, 105, 30],
|
|
20
|
-
coral: [255, 127, 80],
|
|
21
|
-
cornflowerblue: [100, 149, 237],
|
|
22
|
-
cornsilk: [255, 248, 220],
|
|
23
|
-
crimson: [220, 20, 60],
|
|
24
|
-
cyan: [0, 255, 255],
|
|
25
|
-
darkblue: [0, 0, 139],
|
|
26
|
-
darkcyan: [0, 139, 139],
|
|
27
|
-
darkgoldenrod: [184, 134, 11],
|
|
28
|
-
darkgray: [169, 169, 169],
|
|
29
|
-
darkgreen: [0, 100, 0],
|
|
30
|
-
darkgrey: [169, 169, 169],
|
|
31
|
-
darkkhaki: [189, 183, 107],
|
|
32
|
-
darkmagenta: [139, 0, 139],
|
|
33
|
-
darkolivegreen: [85, 107, 47],
|
|
34
|
-
darkorange: [255, 140, 0],
|
|
35
|
-
darkorchid: [153, 50, 204],
|
|
36
|
-
darkred: [139, 0, 0],
|
|
37
|
-
darksalmon: [233, 150, 122],
|
|
38
|
-
darkseagreen: [143, 188, 143],
|
|
39
|
-
darkslateblue: [72, 61, 139],
|
|
40
|
-
darkslategray: [47, 79, 79],
|
|
41
|
-
darkslategrey: [47, 79, 79],
|
|
42
|
-
darkturquoise: [0, 206, 209],
|
|
43
|
-
darkviolet: [148, 0, 211],
|
|
44
|
-
deeppink: [255, 20, 147],
|
|
45
|
-
deepskyblue: [0, 191, 255],
|
|
46
|
-
dimgray: [105, 105, 105],
|
|
47
|
-
dimgrey: [105, 105, 105],
|
|
48
|
-
dodgerblue: [30, 144, 255],
|
|
49
|
-
firebrick: [178, 34, 34],
|
|
50
|
-
floralwhite: [255, 250, 240],
|
|
51
|
-
forestgreen: [34, 139, 34],
|
|
52
|
-
fuchsia: [255, 0, 255],
|
|
53
|
-
gainsboro: [220, 220, 220],
|
|
54
|
-
ghostwhite: [248, 248, 255],
|
|
55
|
-
gold: [255, 215, 0],
|
|
56
|
-
goldenrod: [218, 165, 32],
|
|
57
|
-
gray: [128, 128, 128],
|
|
58
|
-
green: [0, 128, 0],
|
|
59
|
-
greenyellow: [173, 255, 47],
|
|
60
|
-
grey: [128, 128, 128],
|
|
61
|
-
honeydew: [240, 255, 240],
|
|
62
|
-
hotpink: [255, 105, 180],
|
|
63
|
-
indianred: [205, 92, 92],
|
|
64
|
-
indigo: [75, 0, 130],
|
|
65
|
-
ivory: [255, 255, 240],
|
|
66
|
-
khaki: [240, 230, 140],
|
|
67
|
-
lavender: [230, 230, 250],
|
|
68
|
-
lavenderblush: [255, 240, 245],
|
|
69
|
-
lawngreen: [124, 252, 0],
|
|
70
|
-
lemonchiffon: [255, 250, 205],
|
|
71
|
-
lightblue: [173, 216, 230],
|
|
72
|
-
lightcoral: [240, 128, 128],
|
|
73
|
-
lightcyan: [224, 255, 255],
|
|
74
|
-
lightgoldenrodyellow: [250, 250, 210],
|
|
75
|
-
lightgray: [211, 211, 211],
|
|
76
|
-
lightgreen: [144, 238, 144],
|
|
77
|
-
lightgrey: [211, 211, 211],
|
|
78
|
-
lightpink: [255, 182, 193],
|
|
79
|
-
lightsalmon: [255, 160, 122],
|
|
80
|
-
lightseagreen: [32, 178, 170],
|
|
81
|
-
lightskyblue: [135, 206, 250],
|
|
82
|
-
lightslategray: [119, 136, 153],
|
|
83
|
-
lightslategrey: [119, 136, 153],
|
|
84
|
-
lightsteelblue: [176, 196, 222],
|
|
85
|
-
lightyellow: [255, 255, 224],
|
|
86
|
-
lime: [0, 255, 0],
|
|
87
|
-
limegreen: [50, 205, 50],
|
|
88
|
-
linen: [250, 240, 230],
|
|
89
|
-
magenta: [255, 0, 255],
|
|
90
|
-
maroon: [128, 0, 0],
|
|
91
|
-
mediumaquamarine: [102, 205, 170],
|
|
92
|
-
mediumblue: [0, 0, 205],
|
|
93
|
-
mediumorchid: [186, 85, 211],
|
|
94
|
-
mediumpurple: [147, 112, 219],
|
|
95
|
-
mediumseagreen: [60, 179, 113],
|
|
96
|
-
mediumslateblue: [123, 104, 238],
|
|
97
|
-
mediumspringgreen: [0, 250, 154],
|
|
98
|
-
mediumturquoise: [72, 209, 204],
|
|
99
|
-
mediumvioletred: [199, 21, 133],
|
|
100
|
-
midnightblue: [25, 25, 112],
|
|
101
|
-
mintcream: [245, 255, 250],
|
|
102
|
-
mistyrose: [255, 228, 225],
|
|
103
|
-
moccasin: [255, 228, 181],
|
|
104
|
-
navajowhite: [255, 222, 173],
|
|
105
|
-
navy: [0, 0, 128],
|
|
106
|
-
oldlace: [253, 245, 230],
|
|
107
|
-
olive: [128, 128, 0],
|
|
108
|
-
olivedrab: [107, 142, 35],
|
|
109
|
-
orange: [255, 165, 0],
|
|
110
|
-
orangered: [255, 69, 0],
|
|
111
|
-
orchid: [218, 112, 214],
|
|
112
|
-
palegoldenrod: [238, 232, 170],
|
|
113
|
-
palegreen: [152, 251, 152],
|
|
114
|
-
paleturquoise: [175, 238, 238],
|
|
115
|
-
palevioletred: [219, 112, 147],
|
|
116
|
-
papayawhip: [255, 239, 213],
|
|
117
|
-
peachpuff: [255, 218, 185],
|
|
118
|
-
peru: [205, 133, 63],
|
|
119
|
-
pink: [255, 192, 203],
|
|
120
|
-
plum: [221, 160, 221],
|
|
121
|
-
powderblue: [176, 224, 230],
|
|
122
|
-
purple: [128, 0, 128],
|
|
123
|
-
rebeccapurple: [102, 51, 153],
|
|
124
|
-
red: [255, 0, 0],
|
|
125
|
-
rosybrown: [188, 143, 143],
|
|
126
|
-
royalblue: [65, 105, 225],
|
|
127
|
-
saddlebrown: [139, 69, 19],
|
|
128
|
-
salmon: [250, 128, 114],
|
|
129
|
-
sandybrown: [244, 164, 96],
|
|
130
|
-
seagreen: [46, 139, 87],
|
|
131
|
-
seashell: [255, 245, 238],
|
|
132
|
-
sienna: [160, 82, 45],
|
|
133
|
-
silver: [192, 192, 192],
|
|
134
|
-
skyblue: [135, 206, 235],
|
|
135
|
-
slateblue: [106, 90, 205],
|
|
136
|
-
slategray: [112, 128, 144],
|
|
137
|
-
slategrey: [112, 128, 144],
|
|
138
|
-
snow: [255, 250, 250],
|
|
139
|
-
springgreen: [0, 255, 127],
|
|
140
|
-
steelblue: [70, 130, 180],
|
|
141
|
-
tan: [210, 180, 140],
|
|
142
|
-
teal: [0, 128, 128],
|
|
143
|
-
thistle: [216, 191, 216],
|
|
144
|
-
tomato: [255, 99, 71],
|
|
145
|
-
turquoise: [64, 224, 208],
|
|
146
|
-
violet: [238, 130, 238],
|
|
147
|
-
wheat: [245, 222, 179],
|
|
148
|
-
white: [255, 255, 255],
|
|
149
|
-
whitesmoke: [245, 245, 245],
|
|
150
|
-
yellow: [255, 255, 0],
|
|
151
|
-
yellowgreen: [154, 205, 50]
|
|
152
|
-
}), m;
|
|
153
|
-
}
|
|
154
|
-
var y, w;
|
|
155
|
-
function q() {
|
|
156
|
-
if (w) return y;
|
|
157
|
-
w = 1;
|
|
158
|
-
const h = F(), d = {};
|
|
159
|
-
for (const n of Object.keys(h))
|
|
160
|
-
d[h[n]] = n;
|
|
161
|
-
const l = {
|
|
162
|
-
rgb: { channels: 3, labels: "rgb" },
|
|
163
|
-
hsl: { channels: 3, labels: "hsl" },
|
|
164
|
-
hsv: { channels: 3, labels: "hsv" },
|
|
165
|
-
hwb: { channels: 3, labels: "hwb" },
|
|
166
|
-
cmyk: { channels: 4, labels: "cmyk" },
|
|
167
|
-
xyz: { channels: 3, labels: "xyz" },
|
|
168
|
-
lab: { channels: 3, labels: "lab" },
|
|
169
|
-
lch: { channels: 3, labels: "lch" },
|
|
170
|
-
hex: { channels: 1, labels: ["hex"] },
|
|
171
|
-
keyword: { channels: 1, labels: ["keyword"] },
|
|
172
|
-
ansi16: { channels: 1, labels: ["ansi16"] },
|
|
173
|
-
ansi256: { channels: 1, labels: ["ansi256"] },
|
|
174
|
-
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
|
175
|
-
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
176
|
-
gray: { channels: 1, labels: ["gray"] }
|
|
177
|
-
};
|
|
178
|
-
y = l;
|
|
179
|
-
for (const n of Object.keys(l)) {
|
|
180
|
-
if (!("channels" in l[n]))
|
|
181
|
-
throw new Error("missing channels property: " + n);
|
|
182
|
-
if (!("labels" in l[n]))
|
|
183
|
-
throw new Error("missing channel labels property: " + n);
|
|
184
|
-
if (l[n].labels.length !== l[n].channels)
|
|
185
|
-
throw new Error("channel and label counts mismatch: " + n);
|
|
186
|
-
const { channels: o, labels: e } = l[n];
|
|
187
|
-
delete l[n].channels, delete l[n].labels, Object.defineProperty(l[n], "channels", { value: o }), Object.defineProperty(l[n], "labels", { value: e });
|
|
188
|
-
}
|
|
189
|
-
l.rgb.hsl = function(n) {
|
|
190
|
-
const o = n[0] / 255, e = n[1] / 255, r = n[2] / 255, t = Math.min(o, e, r), s = Math.max(o, e, r), c = s - t;
|
|
191
|
-
let a, i;
|
|
192
|
-
s === t ? a = 0 : o === s ? a = (e - r) / c : e === s ? a = 2 + (r - o) / c : r === s && (a = 4 + (o - e) / c), a = Math.min(a * 60, 360), a < 0 && (a += 360);
|
|
193
|
-
const u = (t + s) / 2;
|
|
194
|
-
return s === t ? i = 0 : u <= 0.5 ? i = c / (s + t) : i = c / (2 - s - t), [a, i * 100, u * 100];
|
|
195
|
-
}, l.rgb.hsv = function(n) {
|
|
196
|
-
let o, e, r, t, s;
|
|
197
|
-
const c = n[0] / 255, a = n[1] / 255, i = n[2] / 255, u = Math.max(c, a, i), f = u - Math.min(c, a, i), b = function(j) {
|
|
198
|
-
return (u - j) / 6 / f + 1 / 2;
|
|
199
|
-
};
|
|
200
|
-
return f === 0 ? (t = 0, s = 0) : (s = f / u, o = b(c), e = b(a), r = b(i), c === u ? t = r - e : a === u ? t = 1 / 3 + o - r : i === u && (t = 2 / 3 + e - o), t < 0 ? t += 1 : t > 1 && (t -= 1)), [
|
|
201
|
-
t * 360,
|
|
202
|
-
s * 100,
|
|
203
|
-
u * 100
|
|
204
|
-
];
|
|
205
|
-
}, l.rgb.hwb = function(n) {
|
|
206
|
-
const o = n[0], e = n[1];
|
|
207
|
-
let r = n[2];
|
|
208
|
-
const t = l.rgb.hsl(n)[0], s = 1 / 255 * Math.min(o, Math.min(e, r));
|
|
209
|
-
return r = 1 - 1 / 255 * Math.max(o, Math.max(e, r)), [t, s * 100, r * 100];
|
|
210
|
-
}, l.rgb.cmyk = function(n) {
|
|
211
|
-
const o = n[0] / 255, e = n[1] / 255, r = n[2] / 255, t = Math.min(1 - o, 1 - e, 1 - r), s = (1 - o - t) / (1 - t) || 0, c = (1 - e - t) / (1 - t) || 0, a = (1 - r - t) / (1 - t) || 0;
|
|
212
|
-
return [s * 100, c * 100, a * 100, t * 100];
|
|
213
|
-
};
|
|
214
|
-
function g(n, o) {
|
|
215
|
-
return (n[0] - o[0]) ** 2 + (n[1] - o[1]) ** 2 + (n[2] - o[2]) ** 2;
|
|
216
|
-
}
|
|
217
|
-
return l.rgb.keyword = function(n) {
|
|
218
|
-
const o = d[n];
|
|
219
|
-
if (o)
|
|
220
|
-
return o;
|
|
221
|
-
let e = 1 / 0, r;
|
|
222
|
-
for (const t of Object.keys(h)) {
|
|
223
|
-
const s = h[t], c = g(n, s);
|
|
224
|
-
c < e && (e = c, r = t);
|
|
225
|
-
}
|
|
226
|
-
return r;
|
|
227
|
-
}, l.keyword.rgb = function(n) {
|
|
228
|
-
return h[n];
|
|
229
|
-
}, l.rgb.xyz = function(n) {
|
|
230
|
-
let o = n[0] / 255, e = n[1] / 255, r = n[2] / 255;
|
|
231
|
-
o = o > 0.04045 ? ((o + 0.055) / 1.055) ** 2.4 : o / 12.92, e = e > 0.04045 ? ((e + 0.055) / 1.055) ** 2.4 : e / 12.92, r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
232
|
-
const t = o * 0.4124 + e * 0.3576 + r * 0.1805, s = o * 0.2126 + e * 0.7152 + r * 0.0722, c = o * 0.0193 + e * 0.1192 + r * 0.9505;
|
|
233
|
-
return [t * 100, s * 100, c * 100];
|
|
234
|
-
}, l.rgb.lab = function(n) {
|
|
235
|
-
const o = l.rgb.xyz(n);
|
|
236
|
-
let e = o[0], r = o[1], t = o[2];
|
|
237
|
-
e /= 95.047, r /= 100, t /= 108.883, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116, t = t > 8856e-6 ? t ** (1 / 3) : 7.787 * t + 16 / 116;
|
|
238
|
-
const s = 116 * r - 16, c = 500 * (e - r), a = 200 * (r - t);
|
|
239
|
-
return [s, c, a];
|
|
240
|
-
}, l.hsl.rgb = function(n) {
|
|
241
|
-
const o = n[0] / 360, e = n[1] / 100, r = n[2] / 100;
|
|
242
|
-
let t, s, c;
|
|
243
|
-
if (e === 0)
|
|
244
|
-
return c = r * 255, [c, c, c];
|
|
245
|
-
r < 0.5 ? t = r * (1 + e) : t = r + e - r * e;
|
|
246
|
-
const a = 2 * r - t, i = [0, 0, 0];
|
|
247
|
-
for (let u = 0; u < 3; u++)
|
|
248
|
-
s = o + 1 / 3 * -(u - 1), s < 0 && s++, s > 1 && s--, 6 * s < 1 ? c = a + (t - a) * 6 * s : 2 * s < 1 ? c = t : 3 * s < 2 ? c = a + (t - a) * (2 / 3 - s) * 6 : c = a, i[u] = c * 255;
|
|
249
|
-
return i;
|
|
250
|
-
}, l.hsl.hsv = function(n) {
|
|
251
|
-
const o = n[0];
|
|
252
|
-
let e = n[1] / 100, r = n[2] / 100, t = e;
|
|
253
|
-
const s = Math.max(r, 0.01);
|
|
254
|
-
r *= 2, e *= r <= 1 ? r : 2 - r, t *= s <= 1 ? s : 2 - s;
|
|
255
|
-
const c = (r + e) / 2, a = r === 0 ? 2 * t / (s + t) : 2 * e / (r + e);
|
|
256
|
-
return [o, a * 100, c * 100];
|
|
257
|
-
}, l.hsv.rgb = function(n) {
|
|
258
|
-
const o = n[0] / 60, e = n[1] / 100;
|
|
259
|
-
let r = n[2] / 100;
|
|
260
|
-
const t = Math.floor(o) % 6, s = o - Math.floor(o), c = 255 * r * (1 - e), a = 255 * r * (1 - e * s), i = 255 * r * (1 - e * (1 - s));
|
|
261
|
-
switch (r *= 255, t) {
|
|
262
|
-
case 0:
|
|
263
|
-
return [r, i, c];
|
|
264
|
-
case 1:
|
|
265
|
-
return [a, r, c];
|
|
266
|
-
case 2:
|
|
267
|
-
return [c, r, i];
|
|
268
|
-
case 3:
|
|
269
|
-
return [c, a, r];
|
|
270
|
-
case 4:
|
|
271
|
-
return [i, c, r];
|
|
272
|
-
case 5:
|
|
273
|
-
return [r, c, a];
|
|
274
|
-
}
|
|
275
|
-
}, l.hsv.hsl = function(n) {
|
|
276
|
-
const o = n[0], e = n[1] / 100, r = n[2] / 100, t = Math.max(r, 0.01);
|
|
277
|
-
let s, c;
|
|
278
|
-
c = (2 - e) * r;
|
|
279
|
-
const a = (2 - e) * t;
|
|
280
|
-
return s = e * t, s /= a <= 1 ? a : 2 - a, s = s || 0, c /= 2, [o, s * 100, c * 100];
|
|
281
|
-
}, l.hwb.rgb = function(n) {
|
|
282
|
-
const o = n[0] / 360;
|
|
283
|
-
let e = n[1] / 100, r = n[2] / 100;
|
|
284
|
-
const t = e + r;
|
|
285
|
-
let s;
|
|
286
|
-
t > 1 && (e /= t, r /= t);
|
|
287
|
-
const c = Math.floor(6 * o), a = 1 - r;
|
|
288
|
-
s = 6 * o - c, c & 1 && (s = 1 - s);
|
|
289
|
-
const i = e + s * (a - e);
|
|
290
|
-
let u, f, b;
|
|
291
|
-
switch (c) {
|
|
292
|
-
default:
|
|
293
|
-
case 6:
|
|
294
|
-
case 0:
|
|
295
|
-
u = a, f = i, b = e;
|
|
296
|
-
break;
|
|
297
|
-
case 1:
|
|
298
|
-
u = i, f = a, b = e;
|
|
299
|
-
break;
|
|
300
|
-
case 2:
|
|
301
|
-
u = e, f = a, b = i;
|
|
302
|
-
break;
|
|
303
|
-
case 3:
|
|
304
|
-
u = e, f = i, b = a;
|
|
305
|
-
break;
|
|
306
|
-
case 4:
|
|
307
|
-
u = i, f = e, b = a;
|
|
308
|
-
break;
|
|
309
|
-
case 5:
|
|
310
|
-
u = a, f = e, b = i;
|
|
311
|
-
break;
|
|
312
|
-
}
|
|
313
|
-
return [u * 255, f * 255, b * 255];
|
|
314
|
-
}, l.cmyk.rgb = function(n) {
|
|
315
|
-
const o = n[0] / 100, e = n[1] / 100, r = n[2] / 100, t = n[3] / 100, s = 1 - Math.min(1, o * (1 - t) + t), c = 1 - Math.min(1, e * (1 - t) + t), a = 1 - Math.min(1, r * (1 - t) + t);
|
|
316
|
-
return [s * 255, c * 255, a * 255];
|
|
317
|
-
}, l.xyz.rgb = function(n) {
|
|
318
|
-
const o = n[0] / 100, e = n[1] / 100, r = n[2] / 100;
|
|
319
|
-
let t, s, c;
|
|
320
|
-
return t = o * 3.2406 + e * -1.5372 + r * -0.4986, s = o * -0.9689 + e * 1.8758 + r * 0.0415, c = o * 0.0557 + e * -0.204 + r * 1.057, t = t > 31308e-7 ? 1.055 * t ** (1 / 2.4) - 0.055 : t * 12.92, s = s > 31308e-7 ? 1.055 * s ** (1 / 2.4) - 0.055 : s * 12.92, c = c > 31308e-7 ? 1.055 * c ** (1 / 2.4) - 0.055 : c * 12.92, t = Math.min(Math.max(0, t), 1), s = Math.min(Math.max(0, s), 1), c = Math.min(Math.max(0, c), 1), [t * 255, s * 255, c * 255];
|
|
321
|
-
}, l.xyz.lab = function(n) {
|
|
322
|
-
let o = n[0], e = n[1], r = n[2];
|
|
323
|
-
o /= 95.047, e /= 100, r /= 108.883, o = o > 8856e-6 ? o ** (1 / 3) : 7.787 * o + 16 / 116, e = e > 8856e-6 ? e ** (1 / 3) : 7.787 * e + 16 / 116, r = r > 8856e-6 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
|
|
324
|
-
const t = 116 * e - 16, s = 500 * (o - e), c = 200 * (e - r);
|
|
325
|
-
return [t, s, c];
|
|
326
|
-
}, l.lab.xyz = function(n) {
|
|
327
|
-
const o = n[0], e = n[1], r = n[2];
|
|
328
|
-
let t, s, c;
|
|
329
|
-
s = (o + 16) / 116, t = e / 500 + s, c = s - r / 200;
|
|
330
|
-
const a = s ** 3, i = t ** 3, u = c ** 3;
|
|
331
|
-
return s = a > 8856e-6 ? a : (s - 16 / 116) / 7.787, t = i > 8856e-6 ? i : (t - 16 / 116) / 7.787, c = u > 8856e-6 ? u : (c - 16 / 116) / 7.787, t *= 95.047, s *= 100, c *= 108.883, [t, s, c];
|
|
332
|
-
}, l.lab.lch = function(n) {
|
|
333
|
-
const o = n[0], e = n[1], r = n[2];
|
|
334
|
-
let t;
|
|
335
|
-
t = Math.atan2(r, e) * 360 / 2 / Math.PI, t < 0 && (t += 360);
|
|
336
|
-
const c = Math.sqrt(e * e + r * r);
|
|
337
|
-
return [o, c, t];
|
|
338
|
-
}, l.lch.lab = function(n) {
|
|
339
|
-
const o = n[0], e = n[1], t = n[2] / 360 * 2 * Math.PI, s = e * Math.cos(t), c = e * Math.sin(t);
|
|
340
|
-
return [o, s, c];
|
|
341
|
-
}, l.rgb.ansi16 = function(n, o = null) {
|
|
342
|
-
const [e, r, t] = n;
|
|
343
|
-
let s = o === null ? l.rgb.hsv(n)[2] : o;
|
|
344
|
-
if (s = Math.round(s / 50), s === 0)
|
|
345
|
-
return 30;
|
|
346
|
-
let c = 30 + (Math.round(t / 255) << 2 | Math.round(r / 255) << 1 | Math.round(e / 255));
|
|
347
|
-
return s === 2 && (c += 60), c;
|
|
348
|
-
}, l.hsv.ansi16 = function(n) {
|
|
349
|
-
return l.rgb.ansi16(l.hsv.rgb(n), n[2]);
|
|
350
|
-
}, l.rgb.ansi256 = function(n) {
|
|
351
|
-
const o = n[0], e = n[1], r = n[2];
|
|
352
|
-
return o === e && e === r ? o < 8 ? 16 : o > 248 ? 231 : Math.round((o - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(o / 255 * 5) + 6 * Math.round(e / 255 * 5) + Math.round(r / 255 * 5);
|
|
353
|
-
}, l.ansi16.rgb = function(n) {
|
|
354
|
-
let o = n % 10;
|
|
355
|
-
if (o === 0 || o === 7)
|
|
356
|
-
return n > 50 && (o += 3.5), o = o / 10.5 * 255, [o, o, o];
|
|
357
|
-
const e = (~~(n > 50) + 1) * 0.5, r = (o & 1) * e * 255, t = (o >> 1 & 1) * e * 255, s = (o >> 2 & 1) * e * 255;
|
|
358
|
-
return [r, t, s];
|
|
359
|
-
}, l.ansi256.rgb = function(n) {
|
|
360
|
-
if (n >= 232) {
|
|
361
|
-
const s = (n - 232) * 10 + 8;
|
|
362
|
-
return [s, s, s];
|
|
363
|
-
}
|
|
364
|
-
n -= 16;
|
|
365
|
-
let o;
|
|
366
|
-
const e = Math.floor(n / 36) / 5 * 255, r = Math.floor((o = n % 36) / 6) / 5 * 255, t = o % 6 / 5 * 255;
|
|
367
|
-
return [e, r, t];
|
|
368
|
-
}, l.rgb.hex = function(n) {
|
|
369
|
-
const e = (((Math.round(n[0]) & 255) << 16) + ((Math.round(n[1]) & 255) << 8) + (Math.round(n[2]) & 255)).toString(16).toUpperCase();
|
|
370
|
-
return "000000".substring(e.length) + e;
|
|
371
|
-
}, l.hex.rgb = function(n) {
|
|
372
|
-
const o = n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
373
|
-
if (!o)
|
|
374
|
-
return [0, 0, 0];
|
|
375
|
-
let e = o[0];
|
|
376
|
-
o[0].length === 3 && (e = e.split("").map((a) => a + a).join(""));
|
|
377
|
-
const r = parseInt(e, 16), t = r >> 16 & 255, s = r >> 8 & 255, c = r & 255;
|
|
378
|
-
return [t, s, c];
|
|
379
|
-
}, l.rgb.hcg = function(n) {
|
|
380
|
-
const o = n[0] / 255, e = n[1] / 255, r = n[2] / 255, t = Math.max(Math.max(o, e), r), s = Math.min(Math.min(o, e), r), c = t - s;
|
|
381
|
-
let a, i;
|
|
382
|
-
return c < 1 ? a = s / (1 - c) : a = 0, c <= 0 ? i = 0 : t === o ? i = (e - r) / c % 6 : t === e ? i = 2 + (r - o) / c : i = 4 + (o - e) / c, i /= 6, i %= 1, [i * 360, c * 100, a * 100];
|
|
383
|
-
}, l.hsl.hcg = function(n) {
|
|
384
|
-
const o = n[1] / 100, e = n[2] / 100, r = e < 0.5 ? 2 * o * e : 2 * o * (1 - e);
|
|
385
|
-
let t = 0;
|
|
386
|
-
return r < 1 && (t = (e - 0.5 * r) / (1 - r)), [n[0], r * 100, t * 100];
|
|
387
|
-
}, l.hsv.hcg = function(n) {
|
|
388
|
-
const o = n[1] / 100, e = n[2] / 100, r = o * e;
|
|
389
|
-
let t = 0;
|
|
390
|
-
return r < 1 && (t = (e - r) / (1 - r)), [n[0], r * 100, t * 100];
|
|
391
|
-
}, l.hcg.rgb = function(n) {
|
|
392
|
-
const o = n[0] / 360, e = n[1] / 100, r = n[2] / 100;
|
|
393
|
-
if (e === 0)
|
|
394
|
-
return [r * 255, r * 255, r * 255];
|
|
395
|
-
const t = [0, 0, 0], s = o % 1 * 6, c = s % 1, a = 1 - c;
|
|
396
|
-
let i = 0;
|
|
397
|
-
switch (Math.floor(s)) {
|
|
398
|
-
case 0:
|
|
399
|
-
t[0] = 1, t[1] = c, t[2] = 0;
|
|
400
|
-
break;
|
|
401
|
-
case 1:
|
|
402
|
-
t[0] = a, t[1] = 1, t[2] = 0;
|
|
403
|
-
break;
|
|
404
|
-
case 2:
|
|
405
|
-
t[0] = 0, t[1] = 1, t[2] = c;
|
|
406
|
-
break;
|
|
407
|
-
case 3:
|
|
408
|
-
t[0] = 0, t[1] = a, t[2] = 1;
|
|
409
|
-
break;
|
|
410
|
-
case 4:
|
|
411
|
-
t[0] = c, t[1] = 0, t[2] = 1;
|
|
412
|
-
break;
|
|
413
|
-
default:
|
|
414
|
-
t[0] = 1, t[1] = 0, t[2] = a;
|
|
415
|
-
}
|
|
416
|
-
return i = (1 - e) * r, [
|
|
417
|
-
(e * t[0] + i) * 255,
|
|
418
|
-
(e * t[1] + i) * 255,
|
|
419
|
-
(e * t[2] + i) * 255
|
|
420
|
-
];
|
|
421
|
-
}, l.hcg.hsv = function(n) {
|
|
422
|
-
const o = n[1] / 100, e = n[2] / 100, r = o + e * (1 - o);
|
|
423
|
-
let t = 0;
|
|
424
|
-
return r > 0 && (t = o / r), [n[0], t * 100, r * 100];
|
|
425
|
-
}, l.hcg.hsl = function(n) {
|
|
426
|
-
const o = n[1] / 100, r = n[2] / 100 * (1 - o) + 0.5 * o;
|
|
427
|
-
let t = 0;
|
|
428
|
-
return r > 0 && r < 0.5 ? t = o / (2 * r) : r >= 0.5 && r < 1 && (t = o / (2 * (1 - r))), [n[0], t * 100, r * 100];
|
|
429
|
-
}, l.hcg.hwb = function(n) {
|
|
430
|
-
const o = n[1] / 100, e = n[2] / 100, r = o + e * (1 - o);
|
|
431
|
-
return [n[0], (r - o) * 100, (1 - r) * 100];
|
|
432
|
-
}, l.hwb.hcg = function(n) {
|
|
433
|
-
const o = n[1] / 100, r = 1 - n[2] / 100, t = r - o;
|
|
434
|
-
let s = 0;
|
|
435
|
-
return t < 1 && (s = (r - t) / (1 - t)), [n[0], t * 100, s * 100];
|
|
436
|
-
}, l.apple.rgb = function(n) {
|
|
437
|
-
return [n[0] / 65535 * 255, n[1] / 65535 * 255, n[2] / 65535 * 255];
|
|
438
|
-
}, l.rgb.apple = function(n) {
|
|
439
|
-
return [n[0] / 255 * 65535, n[1] / 255 * 65535, n[2] / 255 * 65535];
|
|
440
|
-
}, l.gray.rgb = function(n) {
|
|
441
|
-
return [n[0] / 100 * 255, n[0] / 100 * 255, n[0] / 100 * 255];
|
|
442
|
-
}, l.gray.hsl = function(n) {
|
|
443
|
-
return [0, 0, n[0]];
|
|
444
|
-
}, l.gray.hsv = l.gray.hsl, l.gray.hwb = function(n) {
|
|
445
|
-
return [0, 100, n[0]];
|
|
446
|
-
}, l.gray.cmyk = function(n) {
|
|
447
|
-
return [0, 0, 0, n[0]];
|
|
448
|
-
}, l.gray.lab = function(n) {
|
|
449
|
-
return [n[0], 0, 0];
|
|
450
|
-
}, l.gray.hex = function(n) {
|
|
451
|
-
const o = Math.round(n[0] / 100 * 255) & 255, r = ((o << 16) + (o << 8) + o).toString(16).toUpperCase();
|
|
452
|
-
return "000000".substring(r.length) + r;
|
|
453
|
-
}, l.rgb.gray = function(n) {
|
|
454
|
-
return [(n[0] + n[1] + n[2]) / 3 / 255 * 100];
|
|
455
|
-
}, y;
|
|
456
|
-
}
|
|
457
|
-
var v, M;
|
|
458
|
-
function C() {
|
|
459
|
-
if (M) return v;
|
|
460
|
-
M = 1;
|
|
461
|
-
const h = q();
|
|
462
|
-
function d() {
|
|
463
|
-
const o = {}, e = Object.keys(h);
|
|
464
|
-
for (let r = e.length, t = 0; t < r; t++)
|
|
465
|
-
o[e[t]] = {
|
|
466
|
-
// http://jsperf.com/1-vs-infinity
|
|
467
|
-
// micro-opt, but this is simple.
|
|
468
|
-
distance: -1,
|
|
469
|
-
parent: null
|
|
470
|
-
};
|
|
471
|
-
return o;
|
|
472
|
-
}
|
|
473
|
-
function l(o) {
|
|
474
|
-
const e = d(), r = [o];
|
|
475
|
-
for (e[o].distance = 0; r.length; ) {
|
|
476
|
-
const t = r.pop(), s = Object.keys(h[t]);
|
|
477
|
-
for (let c = s.length, a = 0; a < c; a++) {
|
|
478
|
-
const i = s[a], u = e[i];
|
|
479
|
-
u.distance === -1 && (u.distance = e[t].distance + 1, u.parent = t, r.unshift(i));
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
return e;
|
|
483
|
-
}
|
|
484
|
-
function g(o, e) {
|
|
485
|
-
return function(r) {
|
|
486
|
-
return e(o(r));
|
|
487
|
-
};
|
|
488
|
-
}
|
|
489
|
-
function n(o, e) {
|
|
490
|
-
const r = [e[o].parent, o];
|
|
491
|
-
let t = h[e[o].parent][o], s = e[o].parent;
|
|
492
|
-
for (; e[s].parent; )
|
|
493
|
-
r.unshift(e[s].parent), t = g(h[e[s].parent][s], t), s = e[s].parent;
|
|
494
|
-
return t.conversion = r, t;
|
|
495
|
-
}
|
|
496
|
-
return v = function(o) {
|
|
497
|
-
const e = l(o), r = {}, t = Object.keys(e);
|
|
498
|
-
for (let s = t.length, c = 0; c < s; c++) {
|
|
499
|
-
const a = t[c];
|
|
500
|
-
e[a].parent !== null && (r[a] = n(a, e));
|
|
501
|
-
}
|
|
502
|
-
return r;
|
|
503
|
-
}, v;
|
|
504
|
-
}
|
|
505
|
-
var p, x;
|
|
506
|
-
function O() {
|
|
507
|
-
if (x) return p;
|
|
508
|
-
x = 1;
|
|
509
|
-
const h = q(), d = C(), l = {}, g = Object.keys(h);
|
|
510
|
-
function n(e) {
|
|
511
|
-
const r = function(...t) {
|
|
512
|
-
const s = t[0];
|
|
513
|
-
return s == null ? s : (s.length > 1 && (t = s), e(t));
|
|
514
|
-
};
|
|
515
|
-
return "conversion" in e && (r.conversion = e.conversion), r;
|
|
516
|
-
}
|
|
517
|
-
function o(e) {
|
|
518
|
-
const r = function(...t) {
|
|
519
|
-
const s = t[0];
|
|
520
|
-
if (s == null)
|
|
521
|
-
return s;
|
|
522
|
-
s.length > 1 && (t = s);
|
|
523
|
-
const c = e(t);
|
|
524
|
-
if (typeof c == "object")
|
|
525
|
-
for (let a = c.length, i = 0; i < a; i++)
|
|
526
|
-
c[i] = Math.round(c[i]);
|
|
527
|
-
return c;
|
|
528
|
-
};
|
|
529
|
-
return "conversion" in e && (r.conversion = e.conversion), r;
|
|
530
|
-
}
|
|
531
|
-
return g.forEach((e) => {
|
|
532
|
-
l[e] = {}, Object.defineProperty(l[e], "channels", { value: h[e].channels }), Object.defineProperty(l[e], "labels", { value: h[e].labels });
|
|
533
|
-
const r = d(e);
|
|
534
|
-
Object.keys(r).forEach((s) => {
|
|
535
|
-
const c = r[s];
|
|
536
|
-
l[e][s] = o(c), l[e][s].raw = n(c);
|
|
537
|
-
});
|
|
538
|
-
}), p = l, p;
|
|
539
|
-
}
|
|
540
|
-
export {
|
|
541
|
-
O as r
|
|
542
|
-
};
|