@wix/himalaya-cli 0.1835.0 → 0.1837.0
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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/local-db/src/index.d.ts +15 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{9258d331cc401dff7b183ce732d49df2e480ea113b52198a4a10790167519c09.bin → 12b7dd1ca5ed350a30ed6a0085a4c31f30b46688e3795c425f145dfdd3830b31.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +1010 -705
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +42 -0
- package/guides/component-index.md +198 -0
- package/guides/designing-himi-screens.md +6 -5
- package/guides/getting-started.md +5 -1
- package/guides/himi-json-output.md +14 -1
- package/guides/himi-skill.md +5 -1
- package/guides/himi-test.md +6 -1
- package/guides/index.json +6 -0
- package/guides/release-notes.md +8 -0
- package/guides/sdk-reference.json +1 -1
- package/guides/skill.md +4 -0
- package/guides/tier-5-add-a-screen.md +10 -5
- package/guides/web-ux.md +2 -1
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +305 -2
- package/templates/beauty-salon/l10n/ar.json +77 -0
- package/templates/beauty-salon/l10n/cs.json +77 -0
- package/templates/beauty-salon/l10n/da.json +77 -0
- package/templates/beauty-salon/l10n/de.json +77 -0
- package/templates/beauty-salon/l10n/el.json +77 -0
- package/templates/beauty-salon/l10n/en.json +85 -1
- package/templates/beauty-salon/l10n/es.json +77 -0
- package/templates/beauty-salon/l10n/fi.json +77 -0
- package/templates/beauty-salon/l10n/fr.json +77 -0
- package/templates/beauty-salon/l10n/he.json +64 -0
- package/templates/beauty-salon/l10n/hu.json +77 -0
- package/templates/beauty-salon/l10n/id.json +77 -0
- package/templates/beauty-salon/l10n/it.json +77 -0
- package/templates/beauty-salon/l10n/ja.json +77 -0
- package/templates/beauty-salon/l10n/ko.json +77 -0
- package/templates/beauty-salon/l10n/lt.json +77 -0
- package/templates/beauty-salon/l10n/nl.json +77 -0
- package/templates/beauty-salon/l10n/no.json +77 -0
- package/templates/beauty-salon/l10n/pl.json +77 -0
- package/templates/beauty-salon/l10n/pt.json +77 -0
- package/templates/beauty-salon/l10n/ru.json +77 -0
- package/templates/beauty-salon/l10n/sv.json +77 -0
- package/templates/beauty-salon/l10n/th.json +77 -0
- package/templates/beauty-salon/l10n/tr.json +77 -0
- package/templates/beauty-salon/l10n/uk.json +77 -0
- package/templates/beauty-salon/l10n/vi.json +77 -0
- package/templates/beauty-salon/l10n/zh.json +77 -0
- package/templates/beauty-salon/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/beauty-salon/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/branded-lite/dev/index.ts +305 -2
- package/templates/branded-lite/l10n/ar.json +77 -0
- package/templates/branded-lite/l10n/cs.json +77 -0
- package/templates/branded-lite/l10n/da.json +77 -0
- package/templates/branded-lite/l10n/de.json +77 -0
- package/templates/branded-lite/l10n/el.json +77 -0
- package/templates/branded-lite/l10n/en.json +85 -1
- package/templates/branded-lite/l10n/es.json +77 -0
- package/templates/branded-lite/l10n/fi.json +77 -0
- package/templates/branded-lite/l10n/fr.json +77 -0
- package/templates/branded-lite/l10n/he.json +64 -0
- package/templates/branded-lite/l10n/hu.json +77 -0
- package/templates/branded-lite/l10n/id.json +77 -0
- package/templates/branded-lite/l10n/it.json +77 -0
- package/templates/branded-lite/l10n/ja.json +77 -0
- package/templates/branded-lite/l10n/ko.json +77 -0
- package/templates/branded-lite/l10n/lt.json +77 -0
- package/templates/branded-lite/l10n/nl.json +77 -0
- package/templates/branded-lite/l10n/no.json +77 -0
- package/templates/branded-lite/l10n/pl.json +77 -0
- package/templates/branded-lite/l10n/pt.json +77 -0
- package/templates/branded-lite/l10n/ru.json +77 -0
- package/templates/branded-lite/l10n/sv.json +77 -0
- package/templates/branded-lite/l10n/th.json +77 -0
- package/templates/branded-lite/l10n/tr.json +77 -0
- package/templates/branded-lite/l10n/uk.json +77 -0
- package/templates/branded-lite/l10n/vi.json +77 -0
- package/templates/branded-lite/l10n/zh.json +77 -0
- package/templates/branded-lite/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/community-club/dev/index.ts +305 -2
- package/templates/community-club/l10n/ar.json +77 -0
- package/templates/community-club/l10n/cs.json +77 -0
- package/templates/community-club/l10n/da.json +77 -0
- package/templates/community-club/l10n/de.json +77 -0
- package/templates/community-club/l10n/el.json +77 -0
- package/templates/community-club/l10n/en.json +85 -1
- package/templates/community-club/l10n/es.json +77 -0
- package/templates/community-club/l10n/fi.json +77 -0
- package/templates/community-club/l10n/fr.json +77 -0
- package/templates/community-club/l10n/he.json +64 -0
- package/templates/community-club/l10n/hu.json +77 -0
- package/templates/community-club/l10n/id.json +77 -0
- package/templates/community-club/l10n/it.json +77 -0
- package/templates/community-club/l10n/ja.json +77 -0
- package/templates/community-club/l10n/ko.json +77 -0
- package/templates/community-club/l10n/lt.json +77 -0
- package/templates/community-club/l10n/nl.json +77 -0
- package/templates/community-club/l10n/no.json +77 -0
- package/templates/community-club/l10n/pl.json +77 -0
- package/templates/community-club/l10n/pt.json +77 -0
- package/templates/community-club/l10n/ru.json +77 -0
- package/templates/community-club/l10n/sv.json +77 -0
- package/templates/community-club/l10n/th.json +77 -0
- package/templates/community-club/l10n/tr.json +77 -0
- package/templates/community-club/l10n/uk.json +77 -0
- package/templates/community-club/l10n/vi.json +77 -0
- package/templates/community-club/l10n/zh.json +77 -0
- package/templates/community-club/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/community-club/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/events-meetups/dev/index.ts +305 -2
- package/templates/events-meetups/l10n/ar.json +77 -0
- package/templates/events-meetups/l10n/cs.json +77 -0
- package/templates/events-meetups/l10n/da.json +77 -0
- package/templates/events-meetups/l10n/de.json +77 -0
- package/templates/events-meetups/l10n/el.json +77 -0
- package/templates/events-meetups/l10n/en.json +85 -1
- package/templates/events-meetups/l10n/es.json +77 -0
- package/templates/events-meetups/l10n/fi.json +77 -0
- package/templates/events-meetups/l10n/fr.json +77 -0
- package/templates/events-meetups/l10n/he.json +64 -0
- package/templates/events-meetups/l10n/hu.json +77 -0
- package/templates/events-meetups/l10n/id.json +77 -0
- package/templates/events-meetups/l10n/it.json +77 -0
- package/templates/events-meetups/l10n/ja.json +77 -0
- package/templates/events-meetups/l10n/ko.json +77 -0
- package/templates/events-meetups/l10n/lt.json +77 -0
- package/templates/events-meetups/l10n/nl.json +77 -0
- package/templates/events-meetups/l10n/no.json +77 -0
- package/templates/events-meetups/l10n/pl.json +77 -0
- package/templates/events-meetups/l10n/pt.json +77 -0
- package/templates/events-meetups/l10n/ru.json +77 -0
- package/templates/events-meetups/l10n/sv.json +77 -0
- package/templates/events-meetups/l10n/th.json +77 -0
- package/templates/events-meetups/l10n/tr.json +77 -0
- package/templates/events-meetups/l10n/uk.json +77 -0
- package/templates/events-meetups/l10n/vi.json +77 -0
- package/templates/events-meetups/l10n/zh.json +77 -0
- package/templates/events-meetups/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/events-meetups/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/gym-fitness/dev/index.ts +305 -2
- package/templates/gym-fitness/l10n/ar.json +77 -0
- package/templates/gym-fitness/l10n/cs.json +77 -0
- package/templates/gym-fitness/l10n/da.json +77 -0
- package/templates/gym-fitness/l10n/de.json +77 -0
- package/templates/gym-fitness/l10n/el.json +77 -0
- package/templates/gym-fitness/l10n/en.json +85 -1
- package/templates/gym-fitness/l10n/es.json +77 -0
- package/templates/gym-fitness/l10n/fi.json +77 -0
- package/templates/gym-fitness/l10n/fr.json +77 -0
- package/templates/gym-fitness/l10n/he.json +64 -0
- package/templates/gym-fitness/l10n/hu.json +77 -0
- package/templates/gym-fitness/l10n/id.json +77 -0
- package/templates/gym-fitness/l10n/it.json +77 -0
- package/templates/gym-fitness/l10n/ja.json +77 -0
- package/templates/gym-fitness/l10n/ko.json +77 -0
- package/templates/gym-fitness/l10n/lt.json +77 -0
- package/templates/gym-fitness/l10n/nl.json +77 -0
- package/templates/gym-fitness/l10n/no.json +77 -0
- package/templates/gym-fitness/l10n/pl.json +77 -0
- package/templates/gym-fitness/l10n/pt.json +77 -0
- package/templates/gym-fitness/l10n/ru.json +77 -0
- package/templates/gym-fitness/l10n/sv.json +77 -0
- package/templates/gym-fitness/l10n/th.json +77 -0
- package/templates/gym-fitness/l10n/tr.json +77 -0
- package/templates/gym-fitness/l10n/uk.json +77 -0
- package/templates/gym-fitness/l10n/vi.json +77 -0
- package/templates/gym-fitness/l10n/zh.json +77 -0
- package/templates/gym-fitness/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/gym-fitness/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/nonprofit-cause/dev/index.ts +305 -2
- package/templates/nonprofit-cause/l10n/ar.json +77 -0
- package/templates/nonprofit-cause/l10n/cs.json +77 -0
- package/templates/nonprofit-cause/l10n/da.json +77 -0
- package/templates/nonprofit-cause/l10n/de.json +77 -0
- package/templates/nonprofit-cause/l10n/el.json +77 -0
- package/templates/nonprofit-cause/l10n/en.json +85 -1
- package/templates/nonprofit-cause/l10n/es.json +77 -0
- package/templates/nonprofit-cause/l10n/fi.json +77 -0
- package/templates/nonprofit-cause/l10n/fr.json +77 -0
- package/templates/nonprofit-cause/l10n/he.json +64 -0
- package/templates/nonprofit-cause/l10n/hu.json +77 -0
- package/templates/nonprofit-cause/l10n/id.json +77 -0
- package/templates/nonprofit-cause/l10n/it.json +77 -0
- package/templates/nonprofit-cause/l10n/ja.json +77 -0
- package/templates/nonprofit-cause/l10n/ko.json +77 -0
- package/templates/nonprofit-cause/l10n/lt.json +77 -0
- package/templates/nonprofit-cause/l10n/nl.json +77 -0
- package/templates/nonprofit-cause/l10n/no.json +77 -0
- package/templates/nonprofit-cause/l10n/pl.json +77 -0
- package/templates/nonprofit-cause/l10n/pt.json +77 -0
- package/templates/nonprofit-cause/l10n/ru.json +77 -0
- package/templates/nonprofit-cause/l10n/sv.json +77 -0
- package/templates/nonprofit-cause/l10n/th.json +77 -0
- package/templates/nonprofit-cause/l10n/tr.json +77 -0
- package/templates/nonprofit-cause/l10n/uk.json +77 -0
- package/templates/nonprofit-cause/l10n/vi.json +77 -0
- package/templates/nonprofit-cause/l10n/zh.json +77 -0
- package/templates/nonprofit-cause/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/personal-fitness-trainer/config.ts +1 -1
- package/templates/personal-fitness-trainer/dev/index.ts +129 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/podcast-creator/dev/index.ts +305 -2
- package/templates/podcast-creator/l10n/ar.json +77 -0
- package/templates/podcast-creator/l10n/cs.json +77 -0
- package/templates/podcast-creator/l10n/da.json +77 -0
- package/templates/podcast-creator/l10n/de.json +77 -0
- package/templates/podcast-creator/l10n/el.json +77 -0
- package/templates/podcast-creator/l10n/en.json +85 -1
- package/templates/podcast-creator/l10n/es.json +77 -0
- package/templates/podcast-creator/l10n/fi.json +77 -0
- package/templates/podcast-creator/l10n/fr.json +77 -0
- package/templates/podcast-creator/l10n/he.json +64 -0
- package/templates/podcast-creator/l10n/hu.json +77 -0
- package/templates/podcast-creator/l10n/id.json +77 -0
- package/templates/podcast-creator/l10n/it.json +77 -0
- package/templates/podcast-creator/l10n/ja.json +77 -0
- package/templates/podcast-creator/l10n/ko.json +77 -0
- package/templates/podcast-creator/l10n/lt.json +77 -0
- package/templates/podcast-creator/l10n/nl.json +77 -0
- package/templates/podcast-creator/l10n/no.json +77 -0
- package/templates/podcast-creator/l10n/pl.json +77 -0
- package/templates/podcast-creator/l10n/pt.json +77 -0
- package/templates/podcast-creator/l10n/ru.json +77 -0
- package/templates/podcast-creator/l10n/sv.json +77 -0
- package/templates/podcast-creator/l10n/th.json +77 -0
- package/templates/podcast-creator/l10n/tr.json +77 -0
- package/templates/podcast-creator/l10n/uk.json +77 -0
- package/templates/podcast-creator/l10n/vi.json +77 -0
- package/templates/podcast-creator/l10n/zh.json +77 -0
- package/templates/podcast-creator/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/podcast-creator/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/portfolio-creative/dev/index.ts +305 -2
- package/templates/portfolio-creative/l10n/ar.json +77 -0
- package/templates/portfolio-creative/l10n/cs.json +77 -0
- package/templates/portfolio-creative/l10n/da.json +77 -0
- package/templates/portfolio-creative/l10n/de.json +77 -0
- package/templates/portfolio-creative/l10n/el.json +77 -0
- package/templates/portfolio-creative/l10n/en.json +85 -1
- package/templates/portfolio-creative/l10n/es.json +77 -0
- package/templates/portfolio-creative/l10n/fi.json +77 -0
- package/templates/portfolio-creative/l10n/fr.json +77 -0
- package/templates/portfolio-creative/l10n/he.json +64 -0
- package/templates/portfolio-creative/l10n/hu.json +77 -0
- package/templates/portfolio-creative/l10n/id.json +77 -0
- package/templates/portfolio-creative/l10n/it.json +77 -0
- package/templates/portfolio-creative/l10n/ja.json +77 -0
- package/templates/portfolio-creative/l10n/ko.json +77 -0
- package/templates/portfolio-creative/l10n/lt.json +77 -0
- package/templates/portfolio-creative/l10n/nl.json +77 -0
- package/templates/portfolio-creative/l10n/no.json +77 -0
- package/templates/portfolio-creative/l10n/pl.json +77 -0
- package/templates/portfolio-creative/l10n/pt.json +77 -0
- package/templates/portfolio-creative/l10n/ru.json +77 -0
- package/templates/portfolio-creative/l10n/sv.json +77 -0
- package/templates/portfolio-creative/l10n/th.json +77 -0
- package/templates/portfolio-creative/l10n/tr.json +77 -0
- package/templates/portfolio-creative/l10n/uk.json +77 -0
- package/templates/portfolio-creative/l10n/vi.json +77 -0
- package/templates/portfolio-creative/l10n/zh.json +77 -0
- package/templates/portfolio-creative/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/restaurant/dev/index.ts +305 -2
- package/templates/restaurant/l10n/ar.json +77 -0
- package/templates/restaurant/l10n/cs.json +77 -0
- package/templates/restaurant/l10n/da.json +77 -0
- package/templates/restaurant/l10n/de.json +77 -0
- package/templates/restaurant/l10n/el.json +77 -0
- package/templates/restaurant/l10n/en.json +85 -1
- package/templates/restaurant/l10n/es.json +77 -0
- package/templates/restaurant/l10n/fi.json +77 -0
- package/templates/restaurant/l10n/fr.json +77 -0
- package/templates/restaurant/l10n/he.json +64 -0
- package/templates/restaurant/l10n/hu.json +77 -0
- package/templates/restaurant/l10n/id.json +77 -0
- package/templates/restaurant/l10n/it.json +77 -0
- package/templates/restaurant/l10n/ja.json +77 -0
- package/templates/restaurant/l10n/ko.json +77 -0
- package/templates/restaurant/l10n/lt.json +77 -0
- package/templates/restaurant/l10n/nl.json +77 -0
- package/templates/restaurant/l10n/no.json +77 -0
- package/templates/restaurant/l10n/pl.json +77 -0
- package/templates/restaurant/l10n/pt.json +77 -0
- package/templates/restaurant/l10n/ru.json +77 -0
- package/templates/restaurant/l10n/sv.json +77 -0
- package/templates/restaurant/l10n/th.json +77 -0
- package/templates/restaurant/l10n/tr.json +77 -0
- package/templates/restaurant/l10n/uk.json +77 -0
- package/templates/restaurant/l10n/vi.json +77 -0
- package/templates/restaurant/l10n/zh.json +77 -0
- package/templates/restaurant/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/restaurant/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/retail-store/dev/index.ts +305 -2
- package/templates/retail-store/l10n/ar.json +77 -0
- package/templates/retail-store/l10n/cs.json +77 -0
- package/templates/retail-store/l10n/da.json +77 -0
- package/templates/retail-store/l10n/de.json +77 -0
- package/templates/retail-store/l10n/el.json +77 -0
- package/templates/retail-store/l10n/en.json +85 -1
- package/templates/retail-store/l10n/es.json +77 -0
- package/templates/retail-store/l10n/fi.json +77 -0
- package/templates/retail-store/l10n/fr.json +77 -0
- package/templates/retail-store/l10n/he.json +64 -0
- package/templates/retail-store/l10n/hu.json +77 -0
- package/templates/retail-store/l10n/id.json +77 -0
- package/templates/retail-store/l10n/it.json +77 -0
- package/templates/retail-store/l10n/ja.json +77 -0
- package/templates/retail-store/l10n/ko.json +77 -0
- package/templates/retail-store/l10n/lt.json +77 -0
- package/templates/retail-store/l10n/nl.json +77 -0
- package/templates/retail-store/l10n/no.json +77 -0
- package/templates/retail-store/l10n/pl.json +77 -0
- package/templates/retail-store/l10n/pt.json +77 -0
- package/templates/retail-store/l10n/ru.json +77 -0
- package/templates/retail-store/l10n/sv.json +77 -0
- package/templates/retail-store/l10n/th.json +77 -0
- package/templates/retail-store/l10n/tr.json +77 -0
- package/templates/retail-store/l10n/uk.json +77 -0
- package/templates/retail-store/l10n/vi.json +77 -0
- package/templates/retail-store/l10n/zh.json +77 -0
- package/templates/retail-store/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/retail-store/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/yoga-studio/dev/index.ts +305 -2
- package/templates/yoga-studio/l10n/ar.json +77 -0
- package/templates/yoga-studio/l10n/cs.json +77 -0
- package/templates/yoga-studio/l10n/da.json +77 -0
- package/templates/yoga-studio/l10n/de.json +77 -0
- package/templates/yoga-studio/l10n/el.json +77 -0
- package/templates/yoga-studio/l10n/en.json +85 -1
- package/templates/yoga-studio/l10n/es.json +77 -0
- package/templates/yoga-studio/l10n/fi.json +77 -0
- package/templates/yoga-studio/l10n/fr.json +77 -0
- package/templates/yoga-studio/l10n/he.json +64 -0
- package/templates/yoga-studio/l10n/hu.json +77 -0
- package/templates/yoga-studio/l10n/id.json +77 -0
- package/templates/yoga-studio/l10n/it.json +77 -0
- package/templates/yoga-studio/l10n/ja.json +77 -0
- package/templates/yoga-studio/l10n/ko.json +77 -0
- package/templates/yoga-studio/l10n/lt.json +77 -0
- package/templates/yoga-studio/l10n/nl.json +77 -0
- package/templates/yoga-studio/l10n/no.json +77 -0
- package/templates/yoga-studio/l10n/pl.json +77 -0
- package/templates/yoga-studio/l10n/pt.json +77 -0
- package/templates/yoga-studio/l10n/ru.json +77 -0
- package/templates/yoga-studio/l10n/sv.json +77 -0
- package/templates/yoga-studio/l10n/th.json +77 -0
- package/templates/yoga-studio/l10n/tr.json +77 -0
- package/templates/yoga-studio/l10n/uk.json +77 -0
- package/templates/yoga-studio/l10n/vi.json +77 -0
- package/templates/yoga-studio/l10n/zh.json +77 -0
- package/templates/yoga-studio/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/yoga-studio/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
package/dist/cli.mjs
CHANGED
|
@@ -3501,12 +3501,12 @@ function resolveAndroidSigning(requested) {
|
|
|
3501
3501
|
};
|
|
3502
3502
|
}
|
|
3503
3503
|
function androidFormatSkewFailed(record5) {
|
|
3504
|
-
return record5.platform === "android" && typeof record5.error === "string" && [ANDROID_FORMAT_NOT_BUILT, ANDROID_FORMAT_WRONG_SIGNER, ANDROID_FORMAT_NOT_REQUESTED, ANDROID_BUILD_TYPE_NOT_BUILT].some((
|
|
3504
|
+
return record5.platform === "android" && typeof record5.error === "string" && [ANDROID_FORMAT_NOT_BUILT, ANDROID_FORMAT_WRONG_SIGNER, ANDROID_FORMAT_NOT_REQUESTED, ANDROID_BUILD_TYPE_NOT_BUILT].some((code3) => record5.error.includes(`${code3}:`));
|
|
3505
3505
|
}
|
|
3506
3506
|
function distErrorCodeOf(error) {
|
|
3507
3507
|
if (typeof error !== "string") return void 0;
|
|
3508
|
-
const
|
|
3509
|
-
return DIST_ERROR_CODES.includes(
|
|
3508
|
+
const code3 = /^[a-z][a-z0-9_]*/.exec(error)?.[0];
|
|
3509
|
+
return DIST_ERROR_CODES.includes(code3 ?? "") ? code3 : void 0;
|
|
3510
3510
|
}
|
|
3511
3511
|
function appleErrorCodesOf(diagnostics) {
|
|
3512
3512
|
if (typeof diagnostics !== "string") return void 0;
|
|
@@ -8453,6 +8453,7 @@ function assertExternalUrl(site, value2, where) {
|
|
|
8453
8453
|
var WIX_FREE_SITE_HOST_SUFFIXES, SITE_KINDS, SITE_LAYOUTS, SITE_PAGE_TITLES, SITE_TOP_BAR_MAX_ACTIONS, SITE_BUILTIN_NATIVE_SCREENS, SITE_PRIVATE_NATIVE_SCREENS, SITE_SHELL_MAX_TABS, SITE_SCREEN_PREFIX, SITE_PAGE_SCREEN_ID, BASE44_ORIGINS, PAGE_ID, SITE_PAGE_NODE_ID, SITE_SCREEN_FORMS, SITE_NODE_SCREEN_RENDERER, PLACEMENTS, ICONS, SITE_MEMBER_PAGE_SCREENS, SITE_MEMBER_CART_SCREENS, SITE_MEMBER_ONLY_SCREENS;
|
|
8454
8454
|
var init_site_shell = __esm({
|
|
8455
8455
|
"../../core/ts/src/site-shell.ts"() {
|
|
8456
|
+
"use strict";
|
|
8456
8457
|
init_define_HHP_CATALOG();
|
|
8457
8458
|
init_himi_package();
|
|
8458
8459
|
init_icon_catalog_generated();
|
|
@@ -9637,8 +9638,8 @@ function catalogManifestDigest(manifest2) {
|
|
|
9637
9638
|
} = manifest2;
|
|
9638
9639
|
return hash(canonical(body));
|
|
9639
9640
|
}
|
|
9640
|
-
function fail(
|
|
9641
|
-
throw new CatalogError(
|
|
9641
|
+
function fail(code3, message5) {
|
|
9642
|
+
throw new CatalogError(code3, message5);
|
|
9642
9643
|
}
|
|
9643
9644
|
function safePath(path2) {
|
|
9644
9645
|
if (typeof path2 !== "string" || !path2 || path2.length > 512 || path2.includes("\\") || path2.startsWith("/") || path2.split("/").some(
|
|
@@ -9700,9 +9701,9 @@ var init_catalog_cache = __esm({
|
|
|
9700
9701
|
MAX_PACK = 16 * 1024 * 1024;
|
|
9701
9702
|
MAX_EXPANDED = 64 * 1024 * 1024;
|
|
9702
9703
|
CatalogError = class extends Error {
|
|
9703
|
-
constructor(
|
|
9704
|
+
constructor(code3, message5) {
|
|
9704
9705
|
super(message5);
|
|
9705
|
-
this.code =
|
|
9706
|
+
this.code = code3;
|
|
9706
9707
|
this.name = "CatalogError";
|
|
9707
9708
|
}
|
|
9708
9709
|
};
|
|
@@ -10127,10 +10128,12 @@ var init_ensure_authoring_client = __esm({
|
|
|
10127
10128
|
REPO = resolve4(HERE, "../..");
|
|
10128
10129
|
AGGREGATES = Object.freeze([
|
|
10129
10130
|
"packages/serve/src/docs.generated.ts",
|
|
10131
|
+
"tools/himi-cli/guides/component-index.md",
|
|
10130
10132
|
"tools/himi-cli/guides/component-reference.md",
|
|
10131
10133
|
"tools/himi-cli/guides/component-reference.json",
|
|
10132
10134
|
"tools/himi-cli/guides/sdk-reference.json",
|
|
10133
10135
|
"tools/himi-cli/guides/index.json",
|
|
10136
|
+
"core/web-embed/authoring/component-index.md",
|
|
10134
10137
|
"core/web-embed/authoring/component-reference.md",
|
|
10135
10138
|
"core/web-embed/authoring/component-reference.json",
|
|
10136
10139
|
"tools/html-to-t5/catalog.v2.json"
|
|
@@ -10330,7 +10333,9 @@ while planning and implementing\u2014not only at review. The contracts are never
|
|
|
10330
10333
|
The references and examples live in the skill folder, \`${AGENT_SKILL_DIR}/\` (a hidden directory \u2014
|
|
10331
10334
|
open these paths directly; a plain \`ls\` does not list them):
|
|
10332
10335
|
|
|
10333
|
-
-
|
|
10336
|
+
- **Components:** before you write screens, read \`himi docs component-index\` once (every component on
|
|
10337
|
+
one page). For details, run one \`himi components A B C \u2026\` call with every component you need. Do not
|
|
10338
|
+
grep or slice the full reference, \`references/component-reference.md\` (generated from the schema).
|
|
10334
10339
|
- \`references/sdk-reference.md\` \u2014 every importable SDK: capabilities (\`@himalaya/*\`) + Wix data
|
|
10335
10340
|
verticals (\`@himalaya/wix-*\`), with a one-line description each. Full typed API of any:
|
|
10336
10341
|
\`himi sdk <name>\`.
|
|
@@ -11731,7 +11736,7 @@ function compileV2(html, profile, options2) {
|
|
|
11731
11736
|
const requiredCapabilities2 = /* @__PURE__ */ new Set();
|
|
11732
11737
|
const $2 = cheerio2.load(html, { sourceCodeLocationInfo: true });
|
|
11733
11738
|
const loc = (el2) => ({ file: options2.file, line: el2?.sourceCodeLocation?.startLine ?? 1, column: el2?.sourceCodeLocation?.startCol ?? 1 });
|
|
11734
|
-
const error = (el2,
|
|
11739
|
+
const error = (el2, code3, message5, hint) => diagnostics.push({ ...loc(el2), code: code3, severity: "error", message: message5, ...hint ? { hint } : {} });
|
|
11735
11740
|
const meta = (name) => $2(`meta[name="${name}"]`).attr("content");
|
|
11736
11741
|
const screenId = options2.screenId ?? meta("himalaya-screen-id");
|
|
11737
11742
|
if (!screenId || !/^[a-z][a-z0-9_.]*$/.test(screenId)) error(null, "HHP-SCREEN-ID", "Provide a stable lowercase screen id.");
|
|
@@ -13056,7 +13061,7 @@ function runNotifier(cmd, args) {
|
|
|
13056
13061
|
finish3(false);
|
|
13057
13062
|
}, NOTIFY_TIMEOUT_MS);
|
|
13058
13063
|
child3.on("error", () => finish3(false));
|
|
13059
|
-
child3.on("exit", (
|
|
13064
|
+
child3.on("exit", (code3) => finish3(code3 === 0));
|
|
13060
13065
|
});
|
|
13061
13066
|
}
|
|
13062
13067
|
async function notifyDesktop(title, body, deps = {}) {
|
|
@@ -13112,9 +13117,9 @@ var init_progress = __esm({
|
|
|
13112
13117
|
MAX_MESSAGE_CHARS = 500;
|
|
13113
13118
|
MAX_IMAGE_BYTES = 10 * 1024 * 1024;
|
|
13114
13119
|
ProgressError = class extends Error {
|
|
13115
|
-
constructor(
|
|
13120
|
+
constructor(code3, message5) {
|
|
13116
13121
|
super(message5);
|
|
13117
|
-
this.code =
|
|
13122
|
+
this.code = code3;
|
|
13118
13123
|
}
|
|
13119
13124
|
};
|
|
13120
13125
|
toPosix = (p2) => p2.split(sep4).join("/");
|
|
@@ -13475,8 +13480,8 @@ async function startPreview(dir, opts, deps = defaultPreviewDeps) {
|
|
|
13475
13480
|
} finally {
|
|
13476
13481
|
closeSync3(fd);
|
|
13477
13482
|
}
|
|
13478
|
-
child3.once("exit", (
|
|
13479
|
-
exited =
|
|
13483
|
+
child3.once("exit", (code3) => {
|
|
13484
|
+
exited = code3;
|
|
13480
13485
|
});
|
|
13481
13486
|
child3.once("error", (e2) => {
|
|
13482
13487
|
spawnError = e2;
|
|
@@ -13708,6 +13713,7 @@ __export(agent_context_exports, {
|
|
|
13708
13713
|
BLOCK_BEGIN: () => BLOCK_BEGIN,
|
|
13709
13714
|
BLOCK_END: () => BLOCK_END,
|
|
13710
13715
|
CLAUDE_MD_BODY: () => CLAUDE_MD_BODY,
|
|
13716
|
+
COMPONENT_LOOKUP_RULE: () => COMPONENT_LOOKUP_RULE,
|
|
13711
13717
|
InvalidAgentsHowTo: () => InvalidAgentsHowTo,
|
|
13712
13718
|
NotAContentPackage: () => NotAContentPackage,
|
|
13713
13719
|
SESSION_HOOK_COMMAND: () => SESSION_HOOK_COMMAND,
|
|
@@ -13786,11 +13792,13 @@ function howToLine(howTo) {
|
|
|
13786
13792
|
return `- **Technical how-to:** load the installed skills first \u2014 every skill in \`.agents/skills/\`
|
|
13787
13793
|
(Claude Code: \`.claude/skills/\`). They are the complete guides, written from this CLI. Use \`himi docs\`,
|
|
13788
13794
|
\`himi components\` and \`himi sdk\` for what a skill does not cover. When a search of \`himi docs\` does
|
|
13789
|
-
not answer, read the whole topic (\`himi docs <topic>\`), not a \`grep\` or \`head\` of it
|
|
13795
|
+
not answer, read the whole topic (\`himi docs <topic>\`), not a \`grep\` or \`head\` of it.
|
|
13796
|
+
- **Components:** ${COMPONENT_LOOKUP_RULE}`;
|
|
13790
13797
|
}
|
|
13791
13798
|
return `- **Technical how-to:** \`HIMALAYA.md\`, then \`himi guide\`. The installed CLI is the truth \u2014 \`himi docs\`,
|
|
13792
13799
|
\`himi components\`, \`himi sdk\`, \`himi --help\`; the seeded copies here are as old as the last
|
|
13793
|
-
\`himi agent-init
|
|
13800
|
+
\`himi agent-init\`.
|
|
13801
|
+
- **Components:** ${COMPONENT_LOOKUP_RULE}`;
|
|
13794
13802
|
}
|
|
13795
13803
|
function agentsMdBody(appName2, howTo = "cli") {
|
|
13796
13804
|
const gates = APPROVAL_GATES.map((g2) => `- \`${g2.id}\` \u2014 ${g2.label}`).join("\n");
|
|
@@ -14081,7 +14089,7 @@ function agentContextNote(dir, runningVersion) {
|
|
|
14081
14089
|
if (s5.kit) return `The agent files use another authoring kit; active references are ${s5.kit.contentVersion ?? "bundled"} \u2014 run \`himi agent-init\` to refresh them (app source and product contracts are kept).`;
|
|
14082
14090
|
return `The agent files here were written by himi v${s5.written}; this CLI is v${s5.running} \u2014 run \`himi agent-init\` to refresh them (SPEC.md and MOBILE-UX.md are kept).`;
|
|
14083
14091
|
}
|
|
14084
|
-
var BLOCK_BEGIN, BLOCK_END, BLOCK_RE, STAMP_RE, SESSION_HOOK_COMMAND, OUR_HOOK_COMMANDS, SKILL_PATHS, SKILL_EXAMPLES_PATH, ORPHAN_MARKER, AGENTS_HOW_TO, AGENTS_HOW_TO_FLAG, AGENTS_HOW_TO_ENV, InvalidAgentsHowTo, isAgentsHowTo, AGENTS_HOW_TO_STAMP_RE, agentsHowToStamp, CLAUDE_MD_BODY, MIGRATION_AGENTS_TITLE, MIGRATION_ROUTING_STAMP, readOrNull, posix, NotAContentPackage;
|
|
14092
|
+
var BLOCK_BEGIN, BLOCK_END, BLOCK_RE, STAMP_RE, SESSION_HOOK_COMMAND, OUR_HOOK_COMMANDS, SKILL_PATHS, SKILL_EXAMPLES_PATH, ORPHAN_MARKER, AGENTS_HOW_TO, AGENTS_HOW_TO_FLAG, AGENTS_HOW_TO_ENV, InvalidAgentsHowTo, isAgentsHowTo, AGENTS_HOW_TO_STAMP_RE, agentsHowToStamp, COMPONENT_LOOKUP_RULE, CLAUDE_MD_BODY, MIGRATION_AGENTS_TITLE, MIGRATION_ROUTING_STAMP, readOrNull, posix, NotAContentPackage;
|
|
14085
14093
|
var init_agent_context = __esm({
|
|
14086
14094
|
"src/agent-context.ts"() {
|
|
14087
14095
|
init_define_HHP_CATALOG();
|
|
@@ -14118,6 +14126,8 @@ var init_agent_context = __esm({
|
|
|
14118
14126
|
agentsHowToStamp = (howTo) => howTo === "cli" ? "" : `
|
|
14119
14127
|
<!-- himi:agents-how-to=${howTo} -->
|
|
14120
14128
|
`;
|
|
14129
|
+
COMPONENT_LOOKUP_RULE = `before you write screens, read \`himi docs component-index\` once. For details, run one
|
|
14130
|
+
\`himi components A B C \u2026\` call with every component you need. Do not grep or slice the full reference.`;
|
|
14121
14131
|
CLAUDE_MD_BODY = "@AGENTS.md";
|
|
14122
14132
|
MIGRATION_AGENTS_TITLE = "# One App migration \u2014 a Himalaya app";
|
|
14123
14133
|
MIGRATION_ROUTING_STAMP = "\n<!-- himi:routing=one-app-migration -->\n";
|
|
@@ -17579,8 +17589,8 @@ var init_locale = __esm({
|
|
|
17579
17589
|
function utf8Budget(value2) {
|
|
17580
17590
|
let bytes2 = 0;
|
|
17581
17591
|
for (let i2 = 0; i2 < value2.length; i2++) {
|
|
17582
|
-
const
|
|
17583
|
-
bytes2 +=
|
|
17592
|
+
const code3 = value2.charCodeAt(i2);
|
|
17593
|
+
bytes2 += code3 < 128 ? 1 : code3 < 2048 ? 2 : 3;
|
|
17584
17594
|
}
|
|
17585
17595
|
return bytes2;
|
|
17586
17596
|
}
|
|
@@ -18481,7 +18491,7 @@ var init_motion_bindings_lint = __esm({
|
|
|
18481
18491
|
"DisclosureGroup"
|
|
18482
18492
|
]);
|
|
18483
18493
|
isRecord2 = (v2) => !!v2 && typeof v2 === "object" && !Array.isArray(v2);
|
|
18484
|
-
issue = (severity, pass,
|
|
18494
|
+
issue = (severity, pass, code3, path2, message5) => ({ severity, pass, code: code3, ruleCode: code3, path: path2, message: message5 });
|
|
18485
18495
|
finiteNumbers = (v2) => Array.isArray(v2) && v2.every((n2) => typeof n2 === "number" && Number.isFinite(n2));
|
|
18486
18496
|
}
|
|
18487
18497
|
});
|
|
@@ -27530,7 +27540,7 @@ async function createQuickJsEvaluator(options2 = {}) {
|
|
|
27530
27540
|
await active2.warm();
|
|
27531
27541
|
const memoryLimit = options2.memoryLimitBytes ?? DEFAULT_MEMORY_LIMIT_BYTES;
|
|
27532
27542
|
return {
|
|
27533
|
-
run(
|
|
27543
|
+
run(code3, sandbox, opts) {
|
|
27534
27544
|
const mod = active2.current();
|
|
27535
27545
|
const himalaya = sandbox.himalaya;
|
|
27536
27546
|
const captureConsole = opts.captureConsole === true;
|
|
@@ -27612,7 +27622,7 @@ async function createQuickJsEvaluator(options2 = {}) {
|
|
|
27612
27622
|
}
|
|
27613
27623
|
if ((options2.webGlobals ?? options2.intl) && !opts.hide?.length) installWebGlobals(ctx);
|
|
27614
27624
|
if (realmInstallsIntl(options2.intl, opts.hide)) installIntl(ctx);
|
|
27615
|
-
const res = ctx.evalCode(
|
|
27625
|
+
const res = ctx.evalCode(code3, opts.filename);
|
|
27616
27626
|
if (res.error) {
|
|
27617
27627
|
const detail = ctx.dump(res.error);
|
|
27618
27628
|
res.error.dispose();
|
|
@@ -27999,7 +28009,7 @@ function createQuickJsWorkerRealm(options2 = {}) {
|
|
|
27999
28009
|
thread.on("error", (e2) => retire(thread, e2 instanceof Error ? e2 : new Error(String(e2))));
|
|
28000
28010
|
thread.on(
|
|
28001
28011
|
"exit",
|
|
28002
|
-
(
|
|
28012
|
+
(code3) => retire(thread, new Error(`the realm's worker thread exited (code ${code3}) before answering`))
|
|
28003
28013
|
);
|
|
28004
28014
|
return thread;
|
|
28005
28015
|
}
|
|
@@ -28019,7 +28029,7 @@ function createQuickJsWorkerRealm(options2 = {}) {
|
|
|
28019
28029
|
Atomics.store(ctl, CTL_READY, 1);
|
|
28020
28030
|
Atomics.notify(ctl, CTL_READY);
|
|
28021
28031
|
}
|
|
28022
|
-
async function runOne(
|
|
28032
|
+
async function runOne(code3, sandbox, opts) {
|
|
28023
28033
|
const w2 = ensureWorker();
|
|
28024
28034
|
const id = nextId++;
|
|
28025
28035
|
const himalaya = sandbox.himalaya;
|
|
@@ -28093,7 +28103,7 @@ function createQuickJsWorkerRealm(options2 = {}) {
|
|
|
28093
28103
|
w2.postMessage({
|
|
28094
28104
|
kind: "boot",
|
|
28095
28105
|
id,
|
|
28096
|
-
bundleJs:
|
|
28106
|
+
bundleJs: code3,
|
|
28097
28107
|
// Built on THIS side so the worker never sees the sandbox object — only a string. The
|
|
28098
28108
|
// prelude is what makes the guest's `wixApi.call` route to `__himiWixCall`.
|
|
28099
28109
|
prelude: preludeFor({
|
|
@@ -28190,8 +28200,8 @@ function createQuickJsWorkerRealm(options2 = {}) {
|
|
|
28190
28200
|
"the worker QuickJS realm cannot run synchronously \u2014 it evaluates in a worker thread so a worker's load() can block on the host transport. Use `runWithActions`, or `createQuickJsEvaluator()` for the synchronous boot path."
|
|
28191
28201
|
);
|
|
28192
28202
|
},
|
|
28193
|
-
runWithActions(
|
|
28194
|
-
const next = queue.then(() => runOne(
|
|
28203
|
+
runWithActions(code3, sandbox, opts) {
|
|
28204
|
+
const next = queue.then(() => runOne(code3, sandbox, opts));
|
|
28195
28205
|
queue = next.catch(() => void 0);
|
|
28196
28206
|
return next;
|
|
28197
28207
|
},
|
|
@@ -28240,9 +28250,9 @@ function createQuickJsWorkerRealmPool(options2 = {}) {
|
|
|
28240
28250
|
run(...args) {
|
|
28241
28251
|
return realms[0].run(...args);
|
|
28242
28252
|
},
|
|
28243
|
-
runWithActions(
|
|
28253
|
+
runWithActions(code3, sandbox, opts) {
|
|
28244
28254
|
const realm = realms[next++ % size];
|
|
28245
|
-
return realm.runWithActions(
|
|
28255
|
+
return realm.runWithActions(code3, sandbox, opts);
|
|
28246
28256
|
},
|
|
28247
28257
|
async dispose() {
|
|
28248
28258
|
await Promise.all(realms.map((r3) => r3.dispose()));
|
|
@@ -29186,8 +29196,8 @@ __export(pixels_exports, {
|
|
|
29186
29196
|
sourceImageMinEdge: () => sourceImageMinEdge
|
|
29187
29197
|
});
|
|
29188
29198
|
function isNotInstalled(e2) {
|
|
29189
|
-
const
|
|
29190
|
-
return
|
|
29199
|
+
const code3 = e2?.code;
|
|
29200
|
+
return code3 === "MODULE_NOT_FOUND" || code3 === "ERR_MODULE_NOT_FOUND";
|
|
29191
29201
|
}
|
|
29192
29202
|
function messageOf(e2) {
|
|
29193
29203
|
return e2 instanceof Error ? e2.message : String(e2);
|
|
@@ -30338,7 +30348,7 @@ var init_validate_descriptor = __esm({
|
|
|
30338
30348
|
setDeclaredNavigationAnalyzer((source2) => literalTargets(source2, navigationCompiler("typescript")));
|
|
30339
30349
|
setFixedNavigationAnalyzer((source2) => fixedNavigations(source2, navigationCompiler("typescript")));
|
|
30340
30350
|
nodeVmEvaluator = {
|
|
30341
|
-
run(
|
|
30351
|
+
run(code3, sandbox, opts) {
|
|
30342
30352
|
const context = createContext(sandbox);
|
|
30343
30353
|
if (opts.deviceParity) {
|
|
30344
30354
|
runInContext(allowlistSweepSource(Object.keys(sandbox)), context, { filename: "himi-sweep.js" });
|
|
@@ -30349,7 +30359,7 @@ var init_validate_descriptor = __esm({
|
|
|
30349
30359
|
if (pinned.Date) sandbox.Date = pinned.Date;
|
|
30350
30360
|
if (pinned.Math) sandbox.Math = pinned.Math;
|
|
30351
30361
|
}
|
|
30352
|
-
runInContext(
|
|
30362
|
+
runInContext(code3, context, { timeout: opts.timeoutMs, filename: opts.filename });
|
|
30353
30363
|
}
|
|
30354
30364
|
};
|
|
30355
30365
|
setDefaultEvaluator(nodeVmEvaluator);
|
|
@@ -31519,7 +31529,7 @@ function isSafePrivacyManifestPath(path2) {
|
|
|
31519
31529
|
}
|
|
31520
31530
|
function parseExtensionManifest(raw) {
|
|
31521
31531
|
const problems = [];
|
|
31522
|
-
const bad4 = (
|
|
31532
|
+
const bad4 = (code3, field, message5) => problems.push({ code: code3, field, message: message5 });
|
|
31523
31533
|
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
31524
31534
|
return { ok: false, problems: [{ code: "extension_manifest_invalid", field: "", message: "himi-extension.json must be a JSON object" }] };
|
|
31525
31535
|
}
|
|
@@ -44205,10 +44215,10 @@ async function exchangeSessionToken(clientId, redirectUri, visitorToken, session
|
|
|
44205
44215
|
const fullUrl = rs2.json?.redirectSession?.fullUrl;
|
|
44206
44216
|
if (rs2.status !== 200 || !fullUrl) throw new Error(`redirect-session failed (${rs2.status})`);
|
|
44207
44217
|
let url = fullUrl;
|
|
44208
|
-
let
|
|
44218
|
+
let code3;
|
|
44209
44219
|
for (let hop = 0; hop < 8 && url; hop++) {
|
|
44210
44220
|
if (isRedirectCallback(url, redirectUri)) {
|
|
44211
|
-
|
|
44221
|
+
code3 = authCodeFrom(url);
|
|
44212
44222
|
break;
|
|
44213
44223
|
}
|
|
44214
44224
|
const res = await fetch(url, { redirect: "manual", headers: { "User-Agent": "Mozilla/5.0" } });
|
|
@@ -44217,14 +44227,14 @@ async function exchangeSessionToken(clientId, redirectUri, visitorToken, session
|
|
|
44217
44227
|
url = loc;
|
|
44218
44228
|
continue;
|
|
44219
44229
|
}
|
|
44220
|
-
|
|
44230
|
+
code3 = /[?#&]code=([^&"'\s]+)/.exec(await res.text())?.[1];
|
|
44221
44231
|
break;
|
|
44222
44232
|
}
|
|
44223
|
-
if (!
|
|
44233
|
+
if (!code3) throw new Error("no auth code from redirect-session");
|
|
44224
44234
|
const tok = await postJson("/oauth2/token", {
|
|
44225
44235
|
clientId,
|
|
44226
44236
|
grantType: "authorization_code",
|
|
44227
|
-
code:
|
|
44237
|
+
code: code3,
|
|
44228
44238
|
codeVerifier: verifier2,
|
|
44229
44239
|
redirectUri
|
|
44230
44240
|
});
|
|
@@ -44256,8 +44266,8 @@ async function memberDirectRegister(clientId, redirectUri, email, password, firs
|
|
|
44256
44266
|
);
|
|
44257
44267
|
const sessionToken = register.json?.sessionToken;
|
|
44258
44268
|
if (register.status !== 200 || !sessionToken) {
|
|
44259
|
-
const
|
|
44260
|
-
throw new IamCallError(`IAM register failed (${register.status})`, register.status, typeof
|
|
44269
|
+
const code3 = register.json?.details?.applicationError?.code;
|
|
44270
|
+
throw new IamCallError(`IAM register failed (${register.status})`, register.status, typeof code3 === "string" ? code3 : void 0);
|
|
44261
44271
|
}
|
|
44262
44272
|
const memberToken = await exchangeSessionToken(clientId, redirectUri, visitorToken, sessionToken);
|
|
44263
44273
|
return { memberToken, visitorToken };
|
|
@@ -45852,8 +45862,8 @@ async function handlePreviewKey(res, payload) {
|
|
|
45852
45862
|
res.setHeader("content-type", "application/json");
|
|
45853
45863
|
return void res.end(JSON.stringify({ status: "ok", platform, udid, key: keyName, button }));
|
|
45854
45864
|
}
|
|
45855
|
-
const
|
|
45856
|
-
if (
|
|
45865
|
+
const code3 = ANDROID_KEYCODES[keyName];
|
|
45866
|
+
if (code3 === void 0) {
|
|
45857
45867
|
res.statusCode = 400;
|
|
45858
45868
|
res.setHeader("content-type", "application/json");
|
|
45859
45869
|
return void res.end(JSON.stringify({
|
|
@@ -45862,10 +45872,10 @@ async function handlePreviewKey(res, payload) {
|
|
|
45862
45872
|
}));
|
|
45863
45873
|
}
|
|
45864
45874
|
const base2 = payload.device ? ["-s", payload.device] : [];
|
|
45865
|
-
await runner.capture(ADB_BIN, [...base2, "shell", "input", "keyevent", String(
|
|
45875
|
+
await runner.capture(ADB_BIN, [...base2, "shell", "input", "keyevent", String(code3)]);
|
|
45866
45876
|
res.statusCode = 200;
|
|
45867
45877
|
res.setHeader("content-type", "application/json");
|
|
45868
|
-
res.end(JSON.stringify({ status: "ok", platform, serial: payload.device ?? null, key: keyName, code:
|
|
45878
|
+
res.end(JSON.stringify({ status: "ok", platform, serial: payload.device ?? null, key: keyName, code: code3 }));
|
|
45869
45879
|
} catch (err) {
|
|
45870
45880
|
res.statusCode = 503;
|
|
45871
45881
|
res.setHeader("content-type", "application/json");
|
|
@@ -46174,9 +46184,9 @@ var init_preview2 = __esm({
|
|
|
46174
46184
|
child3.stdout.on("data", (b3) => out2.push(b3));
|
|
46175
46185
|
child3.stderr.on("data", (b3) => err.push(b3));
|
|
46176
46186
|
child3.on("error", (e2) => settle3(reject, e2));
|
|
46177
|
-
child3.on("close", (
|
|
46178
|
-
if (
|
|
46179
|
-
else settle3(reject, new Error(`${cmd} exited ${
|
|
46187
|
+
child3.on("close", (code3) => {
|
|
46188
|
+
if (code3 === 0) settle3(resolve133, Buffer.concat(out2));
|
|
46189
|
+
else settle3(reject, new Error(`${cmd} exited ${code3}: ${Buffer.concat(err).toString("utf8")}`));
|
|
46180
46190
|
});
|
|
46181
46191
|
});
|
|
46182
46192
|
},
|
|
@@ -47756,10 +47766,10 @@ function mdScan(src, linkStyle = "") {
|
|
|
47756
47766
|
let out2 = "";
|
|
47757
47767
|
let last = 0;
|
|
47758
47768
|
for (let m2 = re2.exec(src); m2; m2 = re2.exec(src)) {
|
|
47759
|
-
const [whole,
|
|
47769
|
+
const [whole, code3, label4, url, bold, italic] = m2;
|
|
47760
47770
|
out2 += mdEsc(src.slice(last, m2.index));
|
|
47761
|
-
if (
|
|
47762
|
-
out2 += `<code style="${CODE_STYLE}">${mdEsc(
|
|
47771
|
+
if (code3 !== void 0) {
|
|
47772
|
+
out2 += `<code style="${CODE_STYLE}">${mdEsc(code3)}</code>`;
|
|
47763
47773
|
} else if (label4 !== void 0) {
|
|
47764
47774
|
if (/^https?:\/\//i.test(url)) {
|
|
47765
47775
|
const href = mdEsc(url).replace(/"/g, """);
|
|
@@ -51738,7 +51748,7 @@ var init_protocol = __esm({
|
|
|
51738
51748
|
"align"
|
|
51739
51749
|
]);
|
|
51740
51750
|
FATAL_PAGE_ERRORS = /* @__PURE__ */ new Set(["engine_error", "render_failed", "invalid_content", "engine_exception"]);
|
|
51741
|
-
isFatalPageError = (
|
|
51751
|
+
isFatalPageError = (code3) => FATAL_PAGE_ERRORS.has(code3);
|
|
51742
51752
|
str2 = (v2) => typeof v2 === "string";
|
|
51743
51753
|
}
|
|
51744
51754
|
});
|
|
@@ -53886,17 +53896,17 @@ var init_decode_codepoint = __esm({
|
|
|
53886
53896
|
});
|
|
53887
53897
|
|
|
53888
53898
|
// ../../node_modules/entities/lib/esm/decode.js
|
|
53889
|
-
function isNumber(
|
|
53890
|
-
return
|
|
53899
|
+
function isNumber(code3) {
|
|
53900
|
+
return code3 >= CharCodes.ZERO && code3 <= CharCodes.NINE;
|
|
53891
53901
|
}
|
|
53892
|
-
function isHexadecimalCharacter(
|
|
53893
|
-
return
|
|
53902
|
+
function isHexadecimalCharacter(code3) {
|
|
53903
|
+
return code3 >= CharCodes.UPPER_A && code3 <= CharCodes.UPPER_F || code3 >= CharCodes.LOWER_A && code3 <= CharCodes.LOWER_F;
|
|
53894
53904
|
}
|
|
53895
|
-
function isAsciiAlphaNumeric(
|
|
53896
|
-
return
|
|
53905
|
+
function isAsciiAlphaNumeric(code3) {
|
|
53906
|
+
return code3 >= CharCodes.UPPER_A && code3 <= CharCodes.UPPER_Z || code3 >= CharCodes.LOWER_A && code3 <= CharCodes.LOWER_Z || isNumber(code3);
|
|
53897
53907
|
}
|
|
53898
|
-
function isEntityInAttributeInvalidEnd(
|
|
53899
|
-
return
|
|
53908
|
+
function isEntityInAttributeInvalidEnd(code3) {
|
|
53909
|
+
return code3 === CharCodes.EQUALS || isAsciiAlphaNumeric(code3);
|
|
53900
53910
|
}
|
|
53901
53911
|
function getDecoder(decodeTree) {
|
|
53902
53912
|
let ret = "";
|
|
@@ -61707,9 +61717,9 @@ var init_pdf = __esm({
|
|
|
61707
61717
|
return BaseException2;
|
|
61708
61718
|
})();
|
|
61709
61719
|
PasswordException = class extends BaseException {
|
|
61710
|
-
constructor(msg,
|
|
61720
|
+
constructor(msg, code3) {
|
|
61711
61721
|
super(msg, "PasswordException");
|
|
61712
|
-
this.code =
|
|
61722
|
+
this.code = code3;
|
|
61713
61723
|
}
|
|
61714
61724
|
};
|
|
61715
61725
|
UnknownErrorException = class extends BaseException {
|
|
@@ -63252,8 +63262,8 @@ var init_pdf = __esm({
|
|
|
63252
63262
|
}
|
|
63253
63263
|
return [keyPart, modifiers];
|
|
63254
63264
|
}
|
|
63255
|
-
static #codeToKey(
|
|
63256
|
-
const match = /^(?:Key([A-Z])|(?:Digit|Numpad)(\d))$/.exec(
|
|
63265
|
+
static #codeToKey(code3) {
|
|
63266
|
+
const match = /^(?:Key([A-Z])|(?:Digit|Numpad)(\d))$/.exec(code3);
|
|
63257
63267
|
if (!match) {
|
|
63258
63268
|
return null;
|
|
63259
63269
|
}
|
|
@@ -67534,12 +67544,12 @@ var init_pdf = __esm({
|
|
|
67534
67544
|
data = new Uint8Array(input.length * 2);
|
|
67535
67545
|
length2 = 0;
|
|
67536
67546
|
for (let i2 = 0, ii2 = input.length; i2 < ii2; i2++) {
|
|
67537
|
-
const
|
|
67538
|
-
if (
|
|
67539
|
-
data[length2++] =
|
|
67547
|
+
const code3 = input.charCodeAt(i2);
|
|
67548
|
+
if (code3 <= 255) {
|
|
67549
|
+
data[length2++] = code3;
|
|
67540
67550
|
} else {
|
|
67541
|
-
data[length2++] =
|
|
67542
|
-
data[length2++] =
|
|
67551
|
+
data[length2++] = code3 >>> 8;
|
|
67552
|
+
data[length2++] = code3 & 255;
|
|
67543
67553
|
}
|
|
67544
67554
|
}
|
|
67545
67555
|
} else if (ArrayBuffer.isView(input)) {
|
|
@@ -136143,10 +136153,12 @@ function holdsCollapsedUnknown(wrapper) {
|
|
|
136143
136153
|
return !!n2 && n2.hasAttribute("data-unknown-type") && n2.hidden;
|
|
136144
136154
|
}
|
|
136145
136155
|
function makeCtx(tokens2, scheme = "light", opts = {}) {
|
|
136146
|
-
const
|
|
136156
|
+
const resolvers = makeTokenResolvers(tokens2, scheme, opts.idiomContext);
|
|
136157
|
+
const tk = opts.reduceMotion === true ? { ...resolvers, reduceMotion: () => true } : resolvers;
|
|
136147
136158
|
const provider = opts.provider ?? null;
|
|
136148
136159
|
return {
|
|
136149
136160
|
...tk,
|
|
136161
|
+
...opts.reduceMotion === true ? { forcedReduceMotion: true } : {},
|
|
136150
136162
|
scheme,
|
|
136151
136163
|
sizeClass: opts.sizeClass,
|
|
136152
136164
|
isRTL: opts.isRTL,
|
|
@@ -136235,7 +136247,8 @@ function withTheme(ctx, theme) {
|
|
|
136235
136247
|
radius: { ...base2.radius ?? {}, ...theme.radius ?? {} },
|
|
136236
136248
|
spacing: { ...base2.spacing ?? {}, ...theme.spacing ?? {} }
|
|
136237
136249
|
};
|
|
136238
|
-
const
|
|
136250
|
+
const resolvers = makeTokenResolvers(merged, ctx.scheme, ctx.idiomContext);
|
|
136251
|
+
const tk = ctx.forcedReduceMotion ? { ...resolvers, reduceMotion: () => true } : resolvers;
|
|
136239
136252
|
return { ...ctx, ...tk, modStyle: makeModStyle(tk, () => layoutIsRTL(ctx), isIOSGlassPreview(ctx.idiomContext), ctx.scheme) };
|
|
136240
136253
|
}
|
|
136241
136254
|
function ensureValueSwapKeyframes() {
|
|
@@ -136278,27 +136291,35 @@ function ensureAppearKeyframes() {
|
|
|
136278
136291
|
el2.textContent = APPEAR_KEYFRAMES;
|
|
136279
136292
|
document.head.appendChild(el2);
|
|
136280
136293
|
}
|
|
136294
|
+
function linkedEntranceKeyframes(css) {
|
|
136295
|
+
return css.replace(/@keyframes (himalaya-[\w-]+)\{/g, "@keyframes $1-sl{").replace(/opacity:([\d.]+)/g, "filter:opacity($1)");
|
|
136296
|
+
}
|
|
136281
136297
|
function ensureLinkedEntranceKeyframes() {
|
|
136282
136298
|
if (linkedEntranceKeyframesInjected || typeof document === "undefined") return;
|
|
136283
136299
|
linkedEntranceKeyframesInjected = true;
|
|
136284
136300
|
const el2 = document.createElement("style");
|
|
136285
|
-
el2.textContent = (APPEAR_KEYFRAMES + ENTER_KEYFRAMES)
|
|
136301
|
+
el2.textContent = linkedEntranceKeyframes(APPEAR_KEYFRAMES + ENTER_KEYFRAMES);
|
|
136286
136302
|
document.head.appendChild(el2);
|
|
136287
136303
|
}
|
|
136288
136304
|
function ensurePressStyles() {
|
|
136289
136305
|
if (pressStylesInjected || typeof document === "undefined") return;
|
|
136290
136306
|
pressStylesInjected = true;
|
|
136291
136307
|
const el2 = document.createElement("style");
|
|
136292
|
-
el2.textContent =
|
|
136293
|
-
// `pressMotion` token is present) with the original 160ms/standard-ease default.
|
|
136294
|
-
'[data-himalaya-press]{transition:transform var(--hm-press-dur,160ms) var(--hm-press-ease,cubic-bezier(0.2,0,0,1)),filter var(--hm-press-dur,160ms) var(--hm-press-ease,cubic-bezier(0.2,0,0,1))}[data-himalaya-press="scale"]:active,[data-himalaya-press="auto"]:active,[data-himalaya-press="scaleHighlight"]:active{transform:scale(0.96)}[data-himalaya-press="scaleHighlight"]:active,[data-himalaya-press="highlight"]:active{filter:brightness(1.08)}[data-himalaya-press="lift"]:active{transform:translateY(-4px) scale(1.02)}' + idiomPressRules() + // RFC 0051 track D — desktop hover analogs. Guarded by `(hover: hover)` so a
|
|
136295
|
-
// touch device never sees a sticky-hover state; pointer-only affordance for
|
|
136296
|
-
// the real web app. Tap-bearing nodes get a subtle dim (the hover analog of
|
|
136297
|
-
// pressFeedback's dim family); press-styled nodes preview their :active
|
|
136298
|
-
// recipe at reduced amplitude.
|
|
136299
|
-
'@media (hover:hover){[data-himalaya-tap]{transition:filter 120ms ease}[data-himalaya-tap]:hover{filter:brightness(0.97)}[data-himalaya-press="scale"]:hover,[data-himalaya-press="auto"]:hover,[data-himalaya-press="scaleHighlight"]:hover{transform:scale(0.985)}[data-himalaya-press="lift"]:hover{transform:translateY(-2px) scale(1.01)}}';
|
|
136308
|
+
el2.textContent = pressStylesCss();
|
|
136300
136309
|
document.head.appendChild(el2);
|
|
136301
136310
|
}
|
|
136311
|
+
function pressStylesCss() {
|
|
136312
|
+
return (
|
|
136313
|
+
// WS-N3 — the duration/easing read from per-node CSS vars (set when a
|
|
136314
|
+
// `pressMotion` token is present) with the original 160ms/standard-ease default.
|
|
136315
|
+
'[data-himalaya-press]{transition:transform var(--hm-press-dur,160ms) var(--hm-press-ease,cubic-bezier(0.2,0,0,1)),filter var(--hm-press-dur,160ms) var(--hm-press-ease,cubic-bezier(0.2,0,0,1))}[data-himalaya-press="scale"]:active,[data-himalaya-press="auto"]:active,[data-himalaya-press="scaleHighlight"]:active{transform:scale(0.96)}[data-himalaya-press="scaleHighlight"]:active,[data-himalaya-press="highlight"]:active{filter:brightness(1.08)}[data-himalaya-press="lift"]:active{transform:translateY(-4px) scale(1.02)}' + idiomPressRules() + // RFC 0051 track D — desktop hover analogs. Guarded by `(hover: hover)` so a
|
|
136316
|
+
// touch device never sees a sticky-hover state; pointer-only affordance for
|
|
136317
|
+
// the real web app. Tap-bearing nodes get a subtle dim (the hover analog of
|
|
136318
|
+
// pressFeedback's dim family); press-styled nodes preview their :active
|
|
136319
|
+
// recipe at reduced amplitude.
|
|
136320
|
+
'@media (hover:hover){[data-himalaya-tap]{transition:filter 120ms ease}[data-himalaya-tap]:hover{filter:brightness(0.97)}[data-himalaya-press="scale"]:hover,[data-himalaya-press="auto"]:hover,[data-himalaya-press="scaleHighlight"]:hover{transform:scale(0.985)}[data-himalaya-press="lift"]:hover{transform:translateY(-2px) scale(1.01)}}'
|
|
136321
|
+
);
|
|
136322
|
+
}
|
|
136302
136323
|
function idiomPressRules() {
|
|
136303
136324
|
let css = "";
|
|
136304
136325
|
for (const [name, row2] of Object.entries(IDIOM_CONTROLS)) {
|
|
@@ -139824,7 +139845,7 @@ function listSeparatorStyle(separator, horizontal) {
|
|
|
139824
139845
|
const insetLeading = Math.max(0, Number(s5.insetLeading ?? s5.inset_leading ?? 0) || 0);
|
|
139825
139846
|
return { token, thickness, insetLeading };
|
|
139826
139847
|
}
|
|
139827
|
-
var AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, columnKids, PLACED_TYPES, unplaced, columnPlaceStyle, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, oneLineDir, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOCOMPLETE_TOKENS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AVATAR_RING_INSET, AVATAR_BORDER_INSET, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
|
|
139848
|
+
var AppearanceActionContext, rowValue, loadPdfFetch, WebViewBridgeHost2, useIsomorphicLayoutEffect3, GridColumnsContext, GridBoundList, GRID_SPAN_ALL, ResponsiveGrid, MasonryCells, SPLIT_EXPANDED_MIN_WIDTH, SPLIT_COLUMN_GAP, ResponsiveSplitView, appearKeyframesInjected, valueSwapKeyframesInjected, NUMERIC_TEXT, shimmerKeyframesInjected, APPEAR_KEYFRAMES, linkedEntranceKeyframesInjected, pressStylesInjected, REVEAL_ON_FOCUS_ATTR, FOCUS_RING_CSS, focusStylesInjected, HLIST_CHILD_CSS, hListStylesInjected, listAnimateRuntimeInstalled, transitionKeyframesInjected, ENTER_KEYFRAMES, ENTRANCE_KEYFRAMES_CSS, countUpRuntimeInjected, MEASURE_PREFIX, measureRuntimeInjected, revealRuntimeInjected, AMBIENT_HOST_STYLE, AmbientMotionBox, vectorAnimStylesInjected, scrollProgressRuntimeInjected, scrollLinkedRuntime, confettiRuntimeInjected, lottieRuntimeInjected, lottieAssetHeaders, LOTTIE_RUNTIME_ATTRIBUTES, lottieAnims, riveRuntimeInjected, gradientKeyframesInjected, parallaxRuntimeInjected, spinKeyframesInjected, marqueeKeyframesInjected, alignItems, zJustifyItems, fillsZLayer, presentsFromOwnSurface, zLayerIndex, ZFILL_CSS, zFillStylesInjected, hAlignItems, bodyFont, kids2, columnKids, PLACED_TYPES, unplaced, columnPlaceStyle, rowKidCtx, rowKids, staggeredKids, asTextL10n, asFinalTextL10n, asBoundText, useBoundString, asBoundCopy, useBoundCopy, InterpolatedTextView, txt, oneLineDir, txtRaw, selectFragmentCase, fragmentValueHash, fragmentSlotContent, FragmentSlotNode, RichContentEditorNode, MediaFieldNode, WorkerSubtreeNode, RichContentNode, substituteItemDeep, resolveItemDeep2, resolveRowAction2, resolveSwipeActions, resolveModBindings, resolvedComponentId, directServiceBindings, withRootStyle, InScreenMorphHost, ReactiveDirectScalars, resolveNodeBoundTransforms, HiddenGate, ExitPresence, StatefulSectionNode, KEYBOARD_INPUT_MODES, AUTOCAPITALIZE_VALUES, ENTER_KEY_HINTS, AUTOCOMPLETE_TOKENS, AUTOGROW_CEILING, EditableField, MENU_ANCHOR_CONTROL, MenuNode, MENU_LONG_PRESS_MS, menuOpensOnLongPress, LoadMoreSentinel, FieldErrorNode, FormView, MediaSlotProvider, MEDIA_ITEM_BINDABLE, MediaPlayerView, VideoNode, PdfDocumentCanvas, PdfViewNode, WebViewNode, InteractivePicker, InteractiveDatePicker, InteractiveSearchField, InteractiveStepper, NODE_EXTRAS_TARGET, SYNTHETIC_TAP_ROLE, SYNTHETIC_TABINDEX, INFERRED_DECORATIVE, SELF_RENDERED_LEAF, ROLE_WHEN_NAMED, AUTHORED_ROLE, PENDING_RANGE, RANGE_ROLES, NODE_A11Y_ATTRS, INTERACTIVE_ROLES, ALWAYS_INTERACTIVE_COMPONENT_TYPES, TAP_ACTIVATOR_ATTR, TAP_GROUP_ATTR, NESTED_CONTROL_SELECTOR, VISUALLY_HIDDEN, NAME_SKIP_SELECTOR, activatorNameObservers, ACTIVATOR_STATE_ATTRS, controlNode, ToggleNode, SliderNode, SelectionControlNode, TabsNode, SegmentedControlNode, DisclosureGroupNode, GridNode, SplitViewNode, REVEAL_RELEASE_MS, REVEAL_FADE_MS, REVEAL_BUFFER, revealProgress, countWords, RevealText, TextNode, ImageNode, ANIMATION_LEAF, LottieNode, RiveNode, AvatarNode, IconNode, EMPTY_STATE_SPACING, EmptyStateNode, ERROR_STATE_VARIANTS, ERROR_STATE_SPACING, ErrorStateNode, ButtonNode, OtpInputNode, ProgressBarNode, SnackbarNode, ACTIVITY_DEFAULT_NAME, ACTIVITY_RING_ARC, ActivityIndicatorNode, NATIVELY_TABBABLE, BottomSheetNode, BOTTOM_DRAWER_HOST_STACK_EVENT, ModalBottomSheetNode, BottomDrawerNode, PRESENTED_OVERLAY_ATTR, TooltipNode, PopoverNode, ChipsInputNode, ChipNode, TableNode, GaugeRing, GaugeNode, RATING_METRICS, ratingMetrics, RatingNode, AVATAR_RING_INSET, AVATAR_BORDER_INSET, AvatarStripNode, CHART_STROKE_CYCLE, chartStrokeAt, chartBarCenter, ChartNode, donutSliceOpacity, DonutChartNode, QrCodeNode, ShapeNode, LegendMarker, LegendNode, cellAlign, dataTableProbe, DataTableNode, voiceNoteState, voiceNoteDelivery, VOICE_NOTE_DEFAULT_BARS, clampBarCount, VoiceNoteNode, LiveWaveformNode, PageControlNode, TimelineNode, ECHO_WINDOW_MS, heldPageIndex, LiveWindowMeasured, LiveWindowPage, PagingNode, WheelPickerNode, ColorPickerNode, FilterChipsNode, TILE_PX, MAX_MERCATOR_LAT, DEFAULT_TILE_MAX_ZOOM, CIRCLE_SEGMENTS, METRES_PER_DEG_LAT, MARKER_HIT_RADIUS, SHAPE_HIT_RADIUS, MapNode, CAROUSEL_SETTLE_MS, railScrollLeft, carouselScrollLeft, scrollCarouselTo, CarouselNode, BannerNode, CollapsingHeaderNode, UnsupportedOnSurface, CALENDAR_DATE_ONLY_RE, CAL_DEFAULT_MAX_DOTS, CAL_AGENDA_INITIAL_DAYS, CAL_AGENDA_PAGE_DAYS, CAL_DEFAULT_SNAP_MINUTES, CAL_UNASSIGNED_LANE_ID, MonthCalendarNode, TimeGridNode, AgendaNode, ARIA_ROLE, initialFocusScheduled, PRESENTED_SCOPE, focusRoots, A11yHintDescription, rowRenderers, railRowFrame, renderRailRow, RowAnchors, reportedUnknownComponents, UnknownComponentNode, WebRenderer, ScrollIntoViewNode;
|
|
139828
139849
|
var init_renderNode = __esm({
|
|
139829
139850
|
"../../core/web-renderer/src/renderNode.tsx"() {
|
|
139830
139851
|
"use strict";
|
|
@@ -140039,6 +140060,7 @@ var init_renderNode = __esm({
|
|
|
140039
140060
|
listAnimateRuntimeInstalled = false;
|
|
140040
140061
|
transitionKeyframesInjected = false;
|
|
140041
140062
|
ENTER_KEYFRAMES = "@keyframes himalaya-enter-fade{from{opacity:0}to{opacity:1}}@keyframes himalaya-enter-scale{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}@keyframes himalaya-enter-slide-up{from{opacity:0;transform:translateY(var(--hm-d,8px))}to{opacity:1;transform:none}}@keyframes himalaya-enter-slide-down{from{opacity:0;transform:translateY(calc(-1*var(--hm-d,8px)))}to{opacity:1;transform:none}}@keyframes himalaya-enter-slide-leading{from{opacity:0;transform:translateX(var(--hm-d,8px))}to{opacity:1;transform:none}}@keyframes himalaya-enter-slide-trailing{from{opacity:0;transform:translateX(calc(-1*var(--hm-d,8px)))}to{opacity:1;transform:none}}";
|
|
140063
|
+
ENTRANCE_KEYFRAMES_CSS = APPEAR_KEYFRAMES + ENTER_KEYFRAMES + linkedEntranceKeyframes(APPEAR_KEYFRAMES + ENTER_KEYFRAMES);
|
|
140042
140064
|
countUpRuntimeInjected = false;
|
|
140043
140065
|
MEASURE_PREFIX = "$measure:";
|
|
140044
140066
|
measureRuntimeInjected = false;
|
|
@@ -147179,7 +147201,8 @@ function renderDescriptorToHtml(payload, tokens2, scheme = "light", provider = n
|
|
|
147179
147201
|
...opts?.debugUnknownComponents ? { debugUnknownComponents: true } : {},
|
|
147180
147202
|
...opts?.assetBaseUrl ? { assetBaseUrl: opts.assetBaseUrl } : {},
|
|
147181
147203
|
...opts?.catalog ? { catalog: opts.catalog } : {},
|
|
147182
|
-
...opts?.localeTag ? { localeTag: opts.localeTag } : {}
|
|
147204
|
+
...opts?.localeTag ? { localeTag: opts.localeTag } : {},
|
|
147205
|
+
...opts?.reduceMotion ? { reduceMotion: true } : {}
|
|
147183
147206
|
});
|
|
147184
147207
|
const FOCUS_STYLE_MARKUP = `<style data-himalaya-focus-ring>${FOCUS_RING_CSS}</style>`;
|
|
147185
147208
|
const glassPreview = isIOSGlassPreview(opts?.idiomContext);
|
|
@@ -147421,6 +147444,7 @@ __export(src_exports2, {
|
|
|
147421
147444
|
Bound: () => Bound,
|
|
147422
147445
|
BoundList: () => BoundList,
|
|
147423
147446
|
BoundListWindowContext: () => BoundListWindowContext,
|
|
147447
|
+
ENTRANCE_KEYFRAMES_CSS: () => ENTRANCE_KEYFRAMES_CSS,
|
|
147424
147448
|
FakeServiceProvider: () => FakeServiceProvider,
|
|
147425
147449
|
IDIOM_CONTROLS: () => IDIOM_CONTROLS,
|
|
147426
147450
|
ImageCacheContext: () => ImageCacheContext,
|
|
@@ -147463,6 +147487,7 @@ __export(src_exports2, {
|
|
|
147463
147487
|
normalize: () => normalize2,
|
|
147464
147488
|
offerInitialFocusAgain: () => offerInitialFocusAgain,
|
|
147465
147489
|
pickRole: () => pickRole,
|
|
147490
|
+
pressStylesCss: () => pressStylesCss,
|
|
147466
147491
|
pushLiveWaveformSample: () => pushLiveWaveformSample,
|
|
147467
147492
|
readLiveAudioLevel: () => readLiveAudioLevel,
|
|
147468
147493
|
renderDescriptorToHtml: () => renderDescriptorToHtml,
|
|
@@ -147518,6 +147543,7 @@ __export(render_descriptor_exports, {
|
|
|
147518
147543
|
isMissingPlaywrightExecutable: () => isMissingPlaywrightExecutable,
|
|
147519
147544
|
isObservedTextProp: () => isObservedTextProp,
|
|
147520
147545
|
launchPngBrowser: () => launchPngBrowser,
|
|
147546
|
+
motionCaptureCss: () => motionCaptureCss,
|
|
147521
147547
|
navRootScreenIds: () => navRootScreenIds,
|
|
147522
147548
|
nodeHidden: () => nodeHidden,
|
|
147523
147549
|
pageBackgroundFor: () => pageBackgroundFor,
|
|
@@ -147526,6 +147552,7 @@ __export(render_descriptor_exports, {
|
|
|
147526
147552
|
pngPageHtml: () => pngPageHtml,
|
|
147527
147553
|
presentedScreenIds: () => presentedScreenIds,
|
|
147528
147554
|
renderDescriptorWeb: () => renderDescriptorWeb,
|
|
147555
|
+
renderMotionPngs: () => renderMotionPngs,
|
|
147529
147556
|
renderPngBatch: () => renderPngBatch,
|
|
147530
147557
|
renderSchemeFor: () => renderSchemeFor,
|
|
147531
147558
|
setPngEgress: () => setPngEgress,
|
|
@@ -147602,10 +147629,10 @@ function renderSchemeFor(requested, tokens2) {
|
|
|
147602
147629
|
if (requested === "dark" || requested === "light") return requested;
|
|
147603
147630
|
return kitColorScheme(tokens2?.kit) === "dark" ? "dark" : "light";
|
|
147604
147631
|
}
|
|
147605
|
-
function clientEnvFor(scheme, width, isRTL2) {
|
|
147632
|
+
function clientEnvFor(scheme, width, isRTL2, reduceMotion = false) {
|
|
147606
147633
|
return {
|
|
147607
147634
|
scheme,
|
|
147608
|
-
reduceMotion
|
|
147635
|
+
reduceMotion,
|
|
147609
147636
|
sizeClass: width === void 0 ? "compact" : sizeClassFromWidth(width),
|
|
147610
147637
|
isRTL: isRTL2 === true,
|
|
147611
147638
|
// #4674 — a server render has no software keyboard: `$env:keyboardVisible` draws the resting screen.
|
|
@@ -147963,7 +147990,7 @@ function composeStickyTree(payload, header2, footer) {
|
|
|
147963
147990
|
if (footer) children2.push(footer);
|
|
147964
147991
|
return { id: "screen", type: "ScreenChrome", children: children2 };
|
|
147965
147992
|
}
|
|
147966
|
-
async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, services2 = null, width, isRTL2, idiomContext, assetBaseUrl, platformFrame, contentMaxWidth, l10n) {
|
|
147993
|
+
async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, services2 = null, width, isRTL2, idiomContext, assetBaseUrl, platformFrame, contentMaxWidth, l10n, motion) {
|
|
147967
147994
|
const desc = descriptor;
|
|
147968
147995
|
const tooDeep = rawJsonDepthFinding(descriptor);
|
|
147969
147996
|
if (tooDeep) return { renderable: false, reason: `depth_budget_exceeded: ${tooDeep.message}` };
|
|
@@ -147981,7 +148008,7 @@ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, service
|
|
|
147981
148008
|
const treeProvider = provider && l10n ? { value: (path2) => provider.value(path2), catalog: l10n.catalog } : provider;
|
|
147982
148009
|
const stickyHeader = isSduiNode(desc.stickyHeader) ? desc.stickyHeader : void 0;
|
|
147983
148010
|
const stickyFooter = isSduiNode(desc.stickyFooter) ? desc.stickyFooter : void 0;
|
|
147984
|
-
const clientEnv = clientEnvFor(scheme, width, isRTL2);
|
|
148011
|
+
const clientEnv = clientEnvFor(scheme, width, isRTL2, motion?.reduceMotion === true);
|
|
147985
148012
|
const treeOf = (node3, path2, prov) => buildRenderTree(node3, path2, prov, void 0, true, clientEnv);
|
|
147986
148013
|
const renderTree = composeStickyTree(
|
|
147987
148014
|
treeOf(payload, "$", null) ?? void 0,
|
|
@@ -148009,7 +148036,7 @@ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, service
|
|
|
148009
148036
|
} : void 0,
|
|
148010
148037
|
// #4497 — the agent fast loop is a dev tool: an unknown component type keeps its
|
|
148011
148038
|
// developer label here (a shipped web app renders nothing for it).
|
|
148012
|
-
{ ...isRTL2 ? { isRTL: true } : {}, ...idiomContext ? { idiomContext } : {}, ...assetBaseUrl ? { assetBaseUrl } : {}, ...platformFrame ? { platformFrame } : {}, ...contentMaxWidth ? { contentMaxWidth } : {}, ...l10n ? { catalog: l10n.catalog, localeTag: l10n.localeTag } : {}, debugUnknownComponents: true }
|
|
148039
|
+
{ ...isRTL2 ? { isRTL: true } : {}, ...idiomContext ? { idiomContext } : {}, ...assetBaseUrl ? { assetBaseUrl } : {}, ...platformFrame ? { platformFrame } : {}, ...contentMaxWidth ? { contentMaxWidth } : {}, ...l10n ? { catalog: l10n.catalog, localeTag: l10n.localeTag } : {}, ...motion?.reduceMotion ? { reduceMotion: true } : {}, debugUnknownComponents: true }
|
|
148013
148040
|
);
|
|
148014
148041
|
} catch (err) {
|
|
148015
148042
|
return {
|
|
@@ -148024,9 +148051,26 @@ async function renderDescriptorWeb(descriptor, tokens2, scheme, wantPng, service
|
|
|
148024
148051
|
const nativeOnly = collectNativeOnly(renderTree);
|
|
148025
148052
|
if (nativeOnly.length) result.nativeOnly = nativeOnly;
|
|
148026
148053
|
if (wantPng) {
|
|
148027
|
-
const png = await renderPng(html, scheme, width, isRTL2, tokens2, idiomContext, fillsViewport);
|
|
148054
|
+
const png = await renderPng(html, scheme, width, isRTL2, tokens2, idiomContext, fillsViewport, motion?.reduceMotion === true);
|
|
148028
148055
|
if (png) result.pngBase64 = png;
|
|
148029
148056
|
else result.pngUnavailable = true;
|
|
148057
|
+
if (png && (motion?.entranceFrames || motion?.pressedFrame)) {
|
|
148058
|
+
const frames = await withRetry(() => renderMotionPngs({
|
|
148059
|
+
html,
|
|
148060
|
+
scheme,
|
|
148061
|
+
width,
|
|
148062
|
+
isRTL: isRTL2,
|
|
148063
|
+
tokens: tokens2,
|
|
148064
|
+
idiomContext,
|
|
148065
|
+
hasStickyFooter: fillsViewport,
|
|
148066
|
+
reduceMotion: motion?.reduceMotion === true,
|
|
148067
|
+
entrance: motion?.entranceFrames === true,
|
|
148068
|
+
pressed: motion?.pressedFrame === true
|
|
148069
|
+
})).catch(() => null);
|
|
148070
|
+
if (!frames) result.motionCaptureFailed = true;
|
|
148071
|
+
if (frames?.entrance) result.entranceFramesBase64 = frames.entrance;
|
|
148072
|
+
if (frames?.pressed) result.pressedBase64 = frames.pressed;
|
|
148073
|
+
}
|
|
148030
148074
|
}
|
|
148031
148075
|
return result;
|
|
148032
148076
|
}
|
|
@@ -148041,8 +148085,8 @@ async function withRetry(op, attempts = 2) {
|
|
|
148041
148085
|
}
|
|
148042
148086
|
throw lastErr;
|
|
148043
148087
|
}
|
|
148044
|
-
async function renderPng(html, scheme, width, isRTL2, tokens2, idiomContext, hasStickyFooter) {
|
|
148045
|
-
const out2 = await renderPngBatch([{ html, scheme, width, isRTL: isRTL2, tokens: tokens2, idiomContext, hasStickyFooter }]);
|
|
148088
|
+
async function renderPng(html, scheme, width, isRTL2, tokens2, idiomContext, hasStickyFooter, reduceMotion = false) {
|
|
148089
|
+
const out2 = await renderPngBatch([{ html, scheme, width, isRTL: isRTL2, tokens: tokens2, idiomContext, hasStickyFooter, ...reduceMotion ? { reduceMotion: true } : {} }]);
|
|
148046
148090
|
return out2?.[0] ?? null;
|
|
148047
148091
|
}
|
|
148048
148092
|
function setPngFontCss(source2) {
|
|
@@ -148063,7 +148107,53 @@ async function pngPageHtml(item2) {
|
|
|
148063
148107
|
faces = "";
|
|
148064
148108
|
}
|
|
148065
148109
|
const fill2 = item2.hasStickyFooter ? "html,body{height:100%}" : "";
|
|
148066
|
-
return `<!doctype html><html${item2.isRTL ? ' dir="rtl"' : ""}><head><meta charset="utf-8"><style>${faces}${fill2}html{background:${pageBackgroundFor(item2)}}body{font-family:${HOST_PAGE_FONT}}</style></head><body style="margin:0">${item2.html}</body></html>`;
|
|
148110
|
+
return `<!doctype html><html${item2.isRTL ? ' dir="rtl"' : ""}><head><meta charset="utf-8"><style>${faces}${fill2}html{background:${pageBackgroundFor(item2)}}body{font-family:${HOST_PAGE_FONT}}${item2.motionCss ?? ""}</style></head><body style="margin:0">${item2.html}</body></html>`;
|
|
148111
|
+
}
|
|
148112
|
+
async function motionCaptureCss() {
|
|
148113
|
+
const { ENTRANCE_KEYFRAMES_CSS: ENTRANCE_KEYFRAMES_CSS2, pressStylesCss: pressStylesCss2 } = await Promise.resolve().then(() => (init_src5(), src_exports2));
|
|
148114
|
+
const pressed = pressStylesCss2().replace(/:active/g, '[data-himalaya-pressed="1"]');
|
|
148115
|
+
return ENTRANCE_KEYFRAMES_CSS2 + pressed + '[data-himalaya-pressed="1"]{transition:none!important}';
|
|
148116
|
+
}
|
|
148117
|
+
async function renderMotionPngs(item2, launch = launchPngBrowser) {
|
|
148118
|
+
const launched = await launch();
|
|
148119
|
+
if (!launched) return null;
|
|
148120
|
+
const { browser } = launched;
|
|
148121
|
+
const out2 = {};
|
|
148122
|
+
try {
|
|
148123
|
+
const page = await browser.newPage({ colorScheme: item2.scheme, ...item2.reduceMotion ? { reducedMotion: "reduce" } : {}, ...item2.width && item2.width > 0 ? { viewport: { width: Math.round(item2.width), height: 900 } } : {} });
|
|
148124
|
+
try {
|
|
148125
|
+
await page.setContent(await pngPageHtml({ ...item2, motionCss: await motionCaptureCss() }), { waitUntil: "load" });
|
|
148126
|
+
await stabilizePngPage(page, item2.scheme);
|
|
148127
|
+
if (item2.hasStickyFooter) await fitViewportToContent(page);
|
|
148128
|
+
const shot = async () => Buffer.from(await page.screenshot({ fullPage: true })).toString("base64");
|
|
148129
|
+
if (item2.entrance) {
|
|
148130
|
+
const seek = async (at2) => page.evaluate(`(${SEEK_ANIMATIONS})(${at2})`);
|
|
148131
|
+
const count3 = await seek(0);
|
|
148132
|
+
if (count3 > 0) {
|
|
148133
|
+
const first = await shot();
|
|
148134
|
+
await seek(0.5);
|
|
148135
|
+
const mid = await shot();
|
|
148136
|
+
await seek(1);
|
|
148137
|
+
out2.entrance = [first, mid, await shot()];
|
|
148138
|
+
}
|
|
148139
|
+
}
|
|
148140
|
+
if (item2.pressed) {
|
|
148141
|
+
await page.evaluate(`(${SEEK_ANIMATIONS})(1)`);
|
|
148142
|
+
const forced = await page.evaluate(`(${PRESS_PRIMARY})()`);
|
|
148143
|
+
if (forced) {
|
|
148144
|
+
await stabilizePngPage(page, item2.scheme);
|
|
148145
|
+
out2.pressed = await shot();
|
|
148146
|
+
}
|
|
148147
|
+
}
|
|
148148
|
+
} finally {
|
|
148149
|
+
await page.close().catch(() => {
|
|
148150
|
+
});
|
|
148151
|
+
}
|
|
148152
|
+
} finally {
|
|
148153
|
+
await launched.close().catch(() => {
|
|
148154
|
+
});
|
|
148155
|
+
}
|
|
148156
|
+
return out2;
|
|
148067
148157
|
}
|
|
148068
148158
|
async function fitViewportToContent(page) {
|
|
148069
148159
|
const viewport = page.viewportSize();
|
|
@@ -148174,7 +148264,7 @@ async function renderPngBatch(items) {
|
|
|
148174
148264
|
const out2 = [];
|
|
148175
148265
|
for (const it2 of items) {
|
|
148176
148266
|
try {
|
|
148177
|
-
const page = await browser.newPage({ colorScheme: it2.scheme, ...it2.width && it2.width > 0 ? { viewport: { width: Math.round(it2.width), height: 900 } } : {} });
|
|
148267
|
+
const page = await browser.newPage({ colorScheme: it2.scheme, ...it2.reduceMotion ? { reducedMotion: "reduce" } : {}, ...it2.width && it2.width > 0 ? { viewport: { width: Math.round(it2.width), height: 900 } } : {} });
|
|
148178
148268
|
try {
|
|
148179
148269
|
await page.setContent(await pngPageHtml(it2), { waitUntil: "load" });
|
|
148180
148270
|
await stabilizePngPage(page, it2.scheme);
|
|
@@ -148194,7 +148284,7 @@ async function renderPngBatch(items) {
|
|
|
148194
148284
|
await launched.close();
|
|
148195
148285
|
}
|
|
148196
148286
|
}
|
|
148197
|
-
var A11Y_MODIFIER_KEYS, TREE_TEXT_VALUE_PROPS, asStringOrNumber, asStringOnly, asOtpCode, VALUE_PATH_TEXT, MEDIA_PLAYER_QUEUE_PROPERTIES, NATIVE_ONLY_TYPES, HOST_PAGE_FONT, pngFontCss, pngEgress;
|
|
148287
|
+
var A11Y_MODIFIER_KEYS, TREE_TEXT_VALUE_PROPS, asStringOrNumber, asStringOnly, asOtpCode, VALUE_PATH_TEXT, MEDIA_PLAYER_QUEUE_PROPERTIES, NATIVE_ONLY_TYPES, HOST_PAGE_FONT, pngFontCss, SEEK_ANIMATIONS, PRESS_PRIMARY, pngEgress;
|
|
148198
148288
|
var init_render_descriptor = __esm({
|
|
148199
148289
|
"../../core/dev-server/src/render-descriptor.ts"() {
|
|
148200
148290
|
init_define_HHP_CATALOG();
|
|
@@ -148239,6 +148329,31 @@ var init_render_descriptor = __esm({
|
|
|
148239
148329
|
MEDIA_PLAYER_QUEUE_PROPERTIES = /* @__PURE__ */ new Set(["items", "itemsPath", "items_path"]);
|
|
148240
148330
|
NATIVE_ONLY_TYPES = /* @__PURE__ */ new Set(["Map", "Video", "Lottie", "Rive", "WebView"]);
|
|
148241
148331
|
HOST_PAGE_FONT = '"Wix Madefor Text", system-ui, sans-serif';
|
|
148332
|
+
SEEK_ANIMATIONS = `(at) => {
|
|
148333
|
+
const anims = document.getAnimations();
|
|
148334
|
+
const totalOf = (a) => {
|
|
148335
|
+
const t = a.effect && a.effect.getComputedTiming ? a.effect.getComputedTiming() : null;
|
|
148336
|
+
return t ? Number(t.delay || 0) + Number(t.activeDuration || 0) : 0;
|
|
148337
|
+
};
|
|
148338
|
+
// An infinite animation (a spinner, a shimmer) is paused where it is and never seeked: it is not
|
|
148339
|
+
// an entrance, and a non-finite currentTime throws. Only finite animations are counted.
|
|
148340
|
+
const finite = anims.filter((a) => Number.isFinite(totalOf(a)) && totalOf(a) > 0);
|
|
148341
|
+
let longest = 0;
|
|
148342
|
+
for (const a of anims) a.pause();
|
|
148343
|
+
for (const a of finite) if (totalOf(a) > longest) longest = totalOf(a);
|
|
148344
|
+
for (const a of finite) {
|
|
148345
|
+
const total = totalOf(a);
|
|
148346
|
+
a.currentTime = at >= 1 ? total : Math.min(total, longest * at);
|
|
148347
|
+
}
|
|
148348
|
+
return finite.length;
|
|
148349
|
+
}`;
|
|
148350
|
+
PRESS_PRIMARY = `() => {
|
|
148351
|
+
const nodes = Array.from(document.querySelectorAll("[data-himalaya-press]"));
|
|
148352
|
+
const primary = nodes.find((n) => n.tagName === "BUTTON" || n.getAttribute("role") === "button");
|
|
148353
|
+
if (!primary) return false;
|
|
148354
|
+
primary.setAttribute("data-himalaya-pressed", "1");
|
|
148355
|
+
return true;
|
|
148356
|
+
}`;
|
|
148242
148357
|
}
|
|
148243
148358
|
});
|
|
148244
148359
|
|
|
@@ -148927,8 +149042,8 @@ function bundleDirFingerprint(roots2) {
|
|
|
148927
149042
|
try {
|
|
148928
149043
|
st2 = statSync9(path2, { bigint: true });
|
|
148929
149044
|
} catch (err) {
|
|
148930
|
-
const
|
|
148931
|
-
if (
|
|
149045
|
+
const code3 = err.code;
|
|
149046
|
+
if (code3 !== "ENOENT" && code3 !== "ENOTDIR" && code3 !== "ELOOP") throw err;
|
|
148932
149047
|
st2 = lstatSync16(path2, { bigint: true });
|
|
148933
149048
|
hash3.update(`${root}\0${entry}\0unresolved\0${st2.ino}\0${st2.mtimeNs}\0${st2.ctimeNs}
|
|
148934
149049
|
`);
|
|
@@ -152301,8 +152416,8 @@ async function readBundleFile(name, dir, opts = {}) {
|
|
|
152301
152416
|
const integrity2 = "sha256-" + createHash20("sha256").update(bytes2).digest("base64");
|
|
152302
152417
|
return { bytes: bytes2, integrity: integrity2 };
|
|
152303
152418
|
} catch (err) {
|
|
152304
|
-
const
|
|
152305
|
-
if (opts.failOnUnreadable &&
|
|
152419
|
+
const code3 = err.code;
|
|
152420
|
+
if (opts.failOnUnreadable && code3 !== "ENOENT" && code3 !== "ENOTDIR" && code3 !== "EISDIR" && code3 !== "ELOOP") throw err;
|
|
152306
152421
|
}
|
|
152307
152422
|
}
|
|
152308
152423
|
return null;
|
|
@@ -154086,8 +154201,8 @@ function emptiedBase44(data) {
|
|
|
154086
154201
|
const drain = (m2) => Object.fromEntries(Object.keys(m2).map((k3) => [k3, []]));
|
|
154087
154202
|
return { seed: drain(data.seed), sample: drain(data.sample) };
|
|
154088
154203
|
}
|
|
154089
|
-
function fail4(status2,
|
|
154090
|
-
return { ok: false, error: { status: status2, code:
|
|
154204
|
+
function fail4(status2, code3, message5) {
|
|
154205
|
+
return { ok: false, error: { status: status2, code: code3, message: message5 } };
|
|
154091
154206
|
}
|
|
154092
154207
|
function parseObject2(raw) {
|
|
154093
154208
|
if (raw && typeof raw === "object" && !Array.isArray(raw)) return raw;
|
|
@@ -154653,8 +154768,8 @@ async function playPage(opt3, p2, src, descriptor, host, w2, manifest2, declared
|
|
|
154653
154768
|
if (r3.capability === "himalaya") continue;
|
|
154654
154769
|
const a3 = answers2.find((x2) => x2.msg.id === r3.id)?.msg;
|
|
154655
154770
|
const outcome = !a3 ? "unanswered" : a3.ok !== true ? "error" : a3.stream === true ? "stream" : "ok";
|
|
154656
|
-
const
|
|
154657
|
-
result.calls.push({ capability: r3.capability, method: r3.method, outcome, ...
|
|
154771
|
+
const code3 = a3 && a3.ok !== true && isRec3(a3.error) && typeof a3.error.code === "string" ? a3.error.code : void 0;
|
|
154772
|
+
result.calls.push({ capability: r3.capability, method: r3.method, outcome, ...code3 ? { code: code3 } : {} });
|
|
154658
154773
|
const label4 = `${r3.capability}.${r3.method}`;
|
|
154659
154774
|
if (outcome === "unanswered") {
|
|
154660
154775
|
const offered = manifest2?.[r3.capability];
|
|
@@ -154667,7 +154782,7 @@ async function playPage(opt3, p2, src, descriptor, host, w2, manifest2, declared
|
|
|
154667
154782
|
hint: certain ? `The worker offers: ${Object.keys(manifest2 ?? {}).join(", ") || "nothing"}. Expose it (exposeCapabilitiesToPage / onPageRequest), or have the page check himalaya.isEnabled("${r3.capability}", "${r3.method}") first.` : "A page awaiting it hangs; return or throw from the handler, or answer with a stream."
|
|
154668
154783
|
});
|
|
154669
154784
|
}
|
|
154670
|
-
if (
|
|
154785
|
+
if (code3 === "unknown_method") unknownMethods.push(label4);
|
|
154671
154786
|
}
|
|
154672
154787
|
if (unknownMethods.length) {
|
|
154673
154788
|
add({
|
|
@@ -158004,13 +158119,13 @@ async function loadBuild() {
|
|
|
158004
158119
|
return (await import(nativeCompiler)).build;
|
|
158005
158120
|
}
|
|
158006
158121
|
function rejectUnsafeSource(name, source2) {
|
|
158007
|
-
const
|
|
158008
|
-
if (/\b(?:process|require|globalThis|child_process|node:|fs|net|dgram)\b|\bimport\s*\(/i.test(
|
|
158122
|
+
const code3 = maskSourceNonCode(source2);
|
|
158123
|
+
if (/\b(?:process|require|globalThis|child_process|node:|fs|net|dgram)\b|\bimport\s*\(/i.test(code3) || /\b(?:eval|Function|WebAssembly)\b/.test(code3)) {
|
|
158009
158124
|
throw new Error(`function ${name} uses a native or dynamic runtime surface; bundle must be sandbox-compatible`);
|
|
158010
158125
|
}
|
|
158011
158126
|
let depth = 0;
|
|
158012
158127
|
let topLevelCode = "";
|
|
158013
|
-
for (const character of
|
|
158128
|
+
for (const character of code3) {
|
|
158014
158129
|
if (character === "{") {
|
|
158015
158130
|
depth += 1;
|
|
158016
158131
|
topLevelCode += " ";
|
|
@@ -158032,9 +158147,9 @@ function rejectUnsafeSource(name, source2) {
|
|
|
158032
158147
|
if (callableNames.has(match[2])) callableNames.add(match[1]);
|
|
158033
158148
|
}
|
|
158034
158149
|
const hasCallableHandler = callableNames.has("handler");
|
|
158035
|
-
const hasDirectCallableDefault = /export\s+default\s+(?:(?:async\s+)?function\b|(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>)/.test(
|
|
158036
|
-
const hasHandlerExport = /export\s+(?:(?:(?:async)\s+)?function\s+handler\b|(?:const|let|var)\s+handler\b)|export\s+default\s+handler\b/.test(
|
|
158037
|
-
const hasAliasedHandlerExport = [...
|
|
158150
|
+
const hasDirectCallableDefault = /export\s+default\s+(?:(?:async\s+)?function\b|(?:async\s*)?(?:\([^)]*\)|[A-Za-z_$][\w$]*)\s*=>)/.test(code3);
|
|
158151
|
+
const hasHandlerExport = /export\s+(?:(?:(?:async)\s+)?function\s+handler\b|(?:const|let|var)\s+handler\b)|export\s+default\s+handler\b/.test(code3);
|
|
158152
|
+
const hasAliasedHandlerExport = [...code3.matchAll(/export\s*\{([^}]*)\}/g)].some(
|
|
158038
158153
|
(match) => match[1].split(",").some((specifier) => {
|
|
158039
158154
|
const parts = specifier.trim().split(/\s+as\s+/);
|
|
158040
158155
|
const local = parts[0];
|
|
@@ -158173,9 +158288,9 @@ var init_app_config_invalid = __esm({
|
|
|
158173
158288
|
init_define_HHP_CATALOG();
|
|
158174
158289
|
PROVIDER_EXAMPLES = 'call a provider factory \u2014 `auth: WixConsumerAuthProvider({ clientId, siteUrl, redirectUri })` for a Wix site\'s visitors and members, `auth: GenericOAuthProvider({ \u2026 })` for another OAuth server \u2014 or write `auth: { providerId: "none", config: {} }` for an app with no sign-in';
|
|
158175
158290
|
AppConfigInvalid = class extends Error {
|
|
158176
|
-
constructor(
|
|
158291
|
+
constructor(code3, file2, field, fix, message5) {
|
|
158177
158292
|
super(message5);
|
|
158178
|
-
this.code =
|
|
158293
|
+
this.code = code3;
|
|
158179
158294
|
this.file = file2;
|
|
158180
158295
|
this.field = field;
|
|
158181
158296
|
this.fix = fix;
|
|
@@ -158882,6 +158997,7 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
158882
158997
|
return path2 ? readFileSync46(path2, "utf8") : void 0;
|
|
158883
158998
|
};
|
|
158884
158999
|
const collect2 = opts.collect;
|
|
159000
|
+
const motionFor = (r3) => r3.reduceMotion || r3.entranceFrames || r3.pressedFrame ? { ...r3.reduceMotion ? { reduceMotion: true } : {}, ...r3.entranceFrames ? { entranceFrames: true } : {}, ...r3.pressedFrame ? { pressedFrame: true } : {} } : void 0;
|
|
158885
159001
|
const config = preloaded.module.config;
|
|
158886
159002
|
if (isFunctionsOnlyConfig(config)) {
|
|
158887
159003
|
return buildFunctionsOnlyRelease(preloaded, dest);
|
|
@@ -158940,7 +159056,7 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
158940
159056
|
const compareScheme = collect2?.render?.compareScheme;
|
|
158941
159057
|
const renderCompare = async (descriptor, services2, measure2) => {
|
|
158942
159058
|
if (!compareScheme || compareScheme === renderScheme) return {};
|
|
158943
|
-
const rr2 = await renderDescriptorWeb(descriptor, renderTokens, compareScheme, false, services2, collect2?.render?.width, collect2?.render?.rtl === true, renderIdiom, base2, void 0, measure2);
|
|
159059
|
+
const rr2 = await renderDescriptorWeb(descriptor, renderTokens, compareScheme, false, services2, collect2?.render?.width, collect2?.render?.rtl === true, renderIdiom, base2, void 0, measure2, void 0, collect2?.render ? motionFor(collect2.render) : void 0);
|
|
158944
159060
|
return { compare: { scheme: compareScheme, renderable: rr2.renderable, ...rr2.html ? { html: rr2.html } : {}, ...rr2.reason ? { reason: rr2.reason } : {} } };
|
|
158945
159061
|
};
|
|
158946
159062
|
const LIVE_LOAD_BUDGET_MS = 3e4;
|
|
@@ -159431,7 +159547,7 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
159431
159547
|
}
|
|
159432
159548
|
if (collect2?.render && (!collect2.render.screenId || collect2.render.screenId === screenId)) {
|
|
159433
159549
|
const { services: services2, liveCalls, liveReturned, liveErrors, mockCalls, mockUnserved, mockBootFailed, liveFailed, liveEmpty, liveRefused } = await renderServicesFor(bundleName, descriptor, screenId);
|
|
159434
|
-
const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base2, frameFor2(screenId, descriptor, services2), measureFor(screenId));
|
|
159550
|
+
const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base2, frameFor2(screenId, descriptor, services2), measureFor(screenId), void 0, motionFor(collect2.render));
|
|
159435
159551
|
renders.push({ screenId, scheme: renderScheme, ...rr2, ...await renderCompare(descriptor, services2, measureFor(screenId)), ...collect2.render.dumpState && services2 ? { serviceState: services2 } : {}, ...liveCalls ? { liveCalls } : {}, ...liveReturned !== void 0 ? { liveReturned } : {}, ...liveFailed ? { liveFailed } : {}, ...liveEmpty ? { liveEmpty } : {}, ...liveRefused ? { liveRefused } : {}, ...liveErrors ? { liveErrors } : {}, ...mockCalls ? { mockCalls, mockUnserved } : {}, ...mockBootFailed ? { mockBootFailed } : {} });
|
|
159436
159552
|
}
|
|
159437
159553
|
}
|
|
@@ -159476,7 +159592,7 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
159476
159592
|
lint.push({ screenId: wantedRender, ok: report9.ok, issues: report9.issues });
|
|
159477
159593
|
}
|
|
159478
159594
|
const { services: services2, liveCalls, liveReturned, liveErrors, mockCalls, mockUnserved, mockBootFailed, liveFailed, liveEmpty, liveRefused } = await renderServicesFor(bundleName, descriptor, wantedRender);
|
|
159479
|
-
const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base2, frameFor2(wantedRender, descriptor, services2), measureFor(wantedRender));
|
|
159595
|
+
const rr2 = await renderDescriptorWeb(descriptor, renderTokens, renderScheme, collect2.render.png === true, services2, collect2.render.width, collect2.render.rtl === true, renderIdiom, base2, frameFor2(wantedRender, descriptor, services2), measureFor(wantedRender), void 0, motionFor(collect2.render));
|
|
159480
159596
|
renders.push({ screenId: wantedRender, scheme: renderScheme, ...rr2, ...await renderCompare(descriptor, services2, measureFor(wantedRender)), ...collect2.render.dumpState && services2 ? { serviceState: services2 } : {}, ...liveCalls ? { liveCalls } : {}, ...liveReturned !== void 0 ? { liveReturned } : {}, ...liveFailed ? { liveFailed } : {}, ...liveEmpty ? { liveEmpty } : {}, ...liveRefused ? { liveRefused } : {}, ...liveErrors ? { liveErrors } : {}, ...mockCalls ? { mockCalls, mockUnserved } : {}, ...mockBootFailed ? { mockBootFailed } : {} });
|
|
159481
159597
|
} else if (res.status === 422) {
|
|
159482
159598
|
const finding2 = await depthRefusalOf(res);
|
|
@@ -162997,9 +163113,9 @@ async function mintToken(args, label4, cacheKey, spawnImpl) {
|
|
|
162997
163113
|
if (m2) done(() => resolve133(m2[0]));
|
|
162998
163114
|
});
|
|
162999
163115
|
child3.on("error", (e2) => done(() => reject(spawnFailure(label4, e2))));
|
|
163000
|
-
child3.on("exit", (
|
|
163116
|
+
child3.on("exit", (code3) => done(() => reject(new WixTokenError(
|
|
163001
163117
|
"wix_cli_token_failed",
|
|
163002
|
-
`\`${label4}\` exited (code ${
|
|
163118
|
+
`\`${label4}\` exited (code ${code3}) without printing a Wix token \u2014 is the Wix CLI logged in (\`wix login\`)? ${redactForError(out2)}`,
|
|
163003
163119
|
mintFailedFix(label4)
|
|
163004
163120
|
))));
|
|
163005
163121
|
});
|
|
@@ -163125,9 +163241,9 @@ var init_wix_owner = __esm({
|
|
|
163125
163241
|
ACCOUNT_TOKEN_KEY = "account:*";
|
|
163126
163242
|
WIX_CLI_FIX = "export WIX_TOKEN (the site owner's Wix account token, exchanged for this site), or install the Wix CLI and log in on this machine (`npm i -g @wix/cli && wix login`), or export WIX_API_KEY (an account API key from manage.wix.com/account/api-keys)";
|
|
163127
163243
|
WixTokenError = class extends Error {
|
|
163128
|
-
constructor(
|
|
163244
|
+
constructor(code3, message5, fix) {
|
|
163129
163245
|
super(message5);
|
|
163130
|
-
this.code =
|
|
163246
|
+
this.code = code3;
|
|
163131
163247
|
this.fix = fix;
|
|
163132
163248
|
this.name = "WixTokenError";
|
|
163133
163249
|
}
|
|
@@ -164065,9 +164181,9 @@ var init_customer_dist_signing = __esm({
|
|
|
164065
164181
|
"../../core/serve-control/src/customer-dist-signing.ts"() {
|
|
164066
164182
|
init_define_HHP_CATALOG();
|
|
164067
164183
|
CustomerSigningError = class extends Error {
|
|
164068
|
-
constructor(
|
|
164069
|
-
super(
|
|
164070
|
-
this.code =
|
|
164184
|
+
constructor(code3, status2 = 409) {
|
|
164185
|
+
super(code3);
|
|
164186
|
+
this.code = code3;
|
|
164071
164187
|
this.status = status2;
|
|
164072
164188
|
}
|
|
164073
164189
|
};
|
|
@@ -164432,10 +164548,10 @@ function validateAmpersand(xmlData, i2) {
|
|
|
164432
164548
|
}
|
|
164433
164549
|
return i2;
|
|
164434
164550
|
}
|
|
164435
|
-
function getErrorObject(
|
|
164551
|
+
function getErrorObject(code3, message5, lineNumber) {
|
|
164436
164552
|
return {
|
|
164437
164553
|
err: {
|
|
164438
|
-
code:
|
|
164554
|
+
code: code3,
|
|
164439
164555
|
msg: message5,
|
|
164440
164556
|
line: lineNumber.line || lineNumber,
|
|
164441
164557
|
col: lineNumber.col
|
|
@@ -168784,12 +168900,12 @@ function tagExpWithClosingIndex(xmlData, i2, closingChar = ">") {
|
|
|
168784
168900
|
let result = "";
|
|
168785
168901
|
let segmentStart = i2;
|
|
168786
168902
|
for (let index = i2; index < len; index++) {
|
|
168787
|
-
const
|
|
168903
|
+
const code3 = xmlData.charCodeAt(index);
|
|
168788
168904
|
if (attrBoundary) {
|
|
168789
|
-
if (
|
|
168790
|
-
} else if (
|
|
168791
|
-
attrBoundary =
|
|
168792
|
-
} else if (
|
|
168905
|
+
if (code3 === attrBoundary) attrBoundary = 0;
|
|
168906
|
+
} else if (code3 === 34 || code3 === 39) {
|
|
168907
|
+
attrBoundary = code3;
|
|
168908
|
+
} else if (code3 === closeCode0) {
|
|
168793
168909
|
if (closeCode1 !== -1) {
|
|
168794
168910
|
if (xmlData.charCodeAt(index + 1) === closeCode1) {
|
|
168795
168911
|
result += xmlData.substring(segmentStart, index);
|
|
@@ -168799,7 +168915,7 @@ function tagExpWithClosingIndex(xmlData, i2, closingChar = ">") {
|
|
|
168799
168915
|
result += xmlData.substring(segmentStart, index);
|
|
168800
168916
|
return { data: result, index };
|
|
168801
168917
|
}
|
|
168802
|
-
} else if (
|
|
168918
|
+
} else if (code3 === 9 && !attrBoundary) {
|
|
168803
168919
|
result += xmlData.substring(segmentStart, index) + " ";
|
|
168804
168920
|
segmentStart = index + 1;
|
|
168805
168921
|
}
|
|
@@ -170657,8 +170773,8 @@ var init_customer_signing_assets = __esm({
|
|
|
170657
170773
|
init_pkcs12();
|
|
170658
170774
|
init_customer_dist_signing();
|
|
170659
170775
|
sha2564 = (bytes2) => createHash28("sha256").update(bytes2).digest("hex");
|
|
170660
|
-
refuse2 = (
|
|
170661
|
-
throw new CustomerSigningError(
|
|
170776
|
+
refuse2 = (code3) => {
|
|
170777
|
+
throw new CustomerSigningError(code3);
|
|
170662
170778
|
};
|
|
170663
170779
|
}
|
|
170664
170780
|
});
|
|
@@ -171128,9 +171244,9 @@ __export(signing_inspect_exports, {
|
|
|
171128
171244
|
});
|
|
171129
171245
|
import { existsSync as existsSync53, readFileSync as readFileSync56, statSync as statSync14 } from "node:fs";
|
|
171130
171246
|
import { isAbsolute as isAbsolute6, resolve as resolve43 } from "node:path";
|
|
171131
|
-
function fail5(io2,
|
|
171132
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
171133
|
-
return
|
|
171247
|
+
function fail5(io2, code3, fields2 = {}) {
|
|
171248
|
+
io2.error(JSON.stringify({ ok: false, code: code3, ...fields2 }));
|
|
171249
|
+
return code3.endsWith("_required") || code3.endsWith("_usage") ? 2 : 1;
|
|
171134
171250
|
}
|
|
171135
171251
|
function printHuman(io2, report9) {
|
|
171136
171252
|
io2.log(`bundle ${report9.bundleId}`);
|
|
@@ -171866,9 +171982,9 @@ function objectLiteralsOf(src, keys2) {
|
|
|
171866
171982
|
}
|
|
171867
171983
|
function trimCapabilities(config, keptBlocks) {
|
|
171868
171984
|
const unread = { report: { skipped: "config.ts capabilities is not one JSON array literal; review it by hand" } };
|
|
171869
|
-
const
|
|
171870
|
-
const hits = [...
|
|
171871
|
-
if (!hits.length) return /^[ \t]*capabilities\s*:/m.test(
|
|
171985
|
+
const code3 = codeOnly(config);
|
|
171986
|
+
const hits = [...code3.matchAll(/^[ \t]*capabilities:\s*(\[[^\]]*\])[ \t]*,?[ \t]*$/gm)];
|
|
171987
|
+
if (!hits.length) return /^[ \t]*capabilities\s*:/m.test(code3) ? unread : void 0;
|
|
171872
171988
|
if (hits.length > 1) return unread;
|
|
171873
171989
|
let current;
|
|
171874
171990
|
try {
|
|
@@ -171893,16 +172009,16 @@ function trimCapabilities(config, keptBlocks) {
|
|
|
171893
172009
|
};
|
|
171894
172010
|
keptBlocks.forEach(walk5);
|
|
171895
172011
|
for (const id of capabilityActionsIn(JSON.stringify(keptBlocks))) declared.add(id);
|
|
171896
|
-
for (const m2 of
|
|
172012
|
+
for (const m2 of code3.matchAll(/(?<![\w$.-])["']?(?:actionId|action_id|action)["']?\s*:\s*["'`]capability\.([a-z0-9_]+)\.[A-Za-z0-9_]+["'`]/g)) {
|
|
171897
172013
|
declared.add(m2[1]);
|
|
171898
172014
|
}
|
|
171899
|
-
const workers = [...
|
|
171900
|
-
const literals = [...
|
|
172015
|
+
const workers = [...code3.matchAll(/\b(?:navLogicBundle|logicBundle|logic_bundle)["']?\s*:/g)].length;
|
|
172016
|
+
const literals = [...code3.matchAll(/\b(?:declaredCapabilities|declared_capabilities)["']?\s*:/g)].length;
|
|
171901
172017
|
if (workers > literals) return unread;
|
|
171902
|
-
if (/^[ \t]*(?:app|navigation)[ \t]*(?:,|:(?![ \t]*\{))/m.test(
|
|
171903
|
-
for (const block of objectLiteralsOf(
|
|
171904
|
-
for (const m2 of
|
|
171905
|
-
const rest =
|
|
172018
|
+
if (/^[ \t]*(?:app|navigation)[ \t]*(?:,|:(?![ \t]*\{))/m.test(code3)) return unread;
|
|
172019
|
+
for (const block of objectLiteralsOf(code3, ["app", "navigation"])) if (block.includes("...")) return unread;
|
|
172020
|
+
for (const m2 of code3.matchAll(/\b(?:declaredCapabilities|declared_capabilities)["']?\s*:\s*/g)) {
|
|
172021
|
+
const rest = code3.slice(m2.index + m2[0].length);
|
|
171906
172022
|
const literal3 = /^(\[[^\]]*\])\s*(?=[,}])/.exec(rest)?.[1];
|
|
171907
172023
|
let ids2;
|
|
171908
172024
|
try {
|
|
@@ -174412,9 +174528,9 @@ var init_spec = __esm({
|
|
|
174412
174528
|
init_net_guard();
|
|
174413
174529
|
init_dist_release_contract();
|
|
174414
174530
|
FromUrlError = class extends Error {
|
|
174415
|
-
constructor(
|
|
174531
|
+
constructor(code3, message5) {
|
|
174416
174532
|
super(message5);
|
|
174417
|
-
this.code =
|
|
174533
|
+
this.code = code3;
|
|
174418
174534
|
}
|
|
174419
174535
|
};
|
|
174420
174536
|
HEX2 = /^#[0-9A-Fa-f]{6}$/;
|
|
@@ -178972,8 +179088,8 @@ function renderSignInStatus(http3) {
|
|
|
178972
179088
|
const checks = Object.fromEntries(SOCIAL_CHECKS.map((name) => {
|
|
178973
179089
|
const entry = obj2(obj2(social.checks)[name]);
|
|
178974
179090
|
const state = typeof entry.state === "string" && CHECK_STATES.has(entry.state) ? entry.state : "unknown";
|
|
178975
|
-
const
|
|
178976
|
-
return [name, { state, ...
|
|
179091
|
+
const code3 = typeof entry.code === "string" && CODE.test(entry.code) ? entry.code : reported ? void 0 : "sign_in_not_reported";
|
|
179092
|
+
return [name, { state, ...code3 ? { code: code3 } : {} }];
|
|
178977
179093
|
}));
|
|
178978
179094
|
const iosGoogleHidden = readiness(social.iosGoogleHidden);
|
|
178979
179095
|
const hints = Object.entries(checks).flatMap(([name, check]) => {
|
|
@@ -179222,8 +179338,8 @@ async function offerPushSetup(options2) {
|
|
|
179222
179338
|
return { status: "deferred", resume: resume(contentDir2) };
|
|
179223
179339
|
}
|
|
179224
179340
|
try {
|
|
179225
|
-
const
|
|
179226
|
-
return { status: readPushOnboarding(contentDir2).push ? "deferred" :
|
|
179341
|
+
const code3 = await runNotifySetup(["notify", "setup"], { ...flags, content: contentDir2 }, { ...io2, log: io2.error }, deps);
|
|
179342
|
+
return { status: readPushOnboarding(contentDir2).push ? "deferred" : code3 === 0 ? "configured" : "needs_attention", resume: resume(contentDir2) };
|
|
179227
179343
|
} catch {
|
|
179228
179344
|
return { status: "needs_attention", resume: resume(contentDir2) };
|
|
179229
179345
|
}
|
|
@@ -181411,7 +181527,7 @@ async function renderHomeInChild(dir, home2, opts) {
|
|
|
181411
181527
|
finish3({ skipped: `the render took longer than ${Math.round(budgetMs / 1e3)}s, so ${opts.who} stopped waiting \u2014 ${opts.retry}` });
|
|
181412
181528
|
}, budgetMs);
|
|
181413
181529
|
child3.on("error", (e2) => finish3({ skipped: `the render did not start: ${e2.message}` }));
|
|
181414
|
-
child3.on("close", (
|
|
181530
|
+
child3.on("close", (code3) => {
|
|
181415
181531
|
clearTimeout(hardKill);
|
|
181416
181532
|
let report9 = null;
|
|
181417
181533
|
try {
|
|
@@ -181423,7 +181539,7 @@ async function renderHomeInChild(dir, home2, opts) {
|
|
|
181423
181539
|
fresh = statSync20(shot).mtimeMs >= started - 1e3;
|
|
181424
181540
|
} catch {
|
|
181425
181541
|
}
|
|
181426
|
-
if (
|
|
181542
|
+
if (code3 === 0 && fresh) {
|
|
181427
181543
|
const p2 = report9?.postcard;
|
|
181428
181544
|
const postcard = p2 && p2.journaled === true && typeof p2.milestone === "string" && typeof p2.message === "string" ? { journaled: true, milestone: p2.milestone, message: p2.message } : void 0;
|
|
181429
181545
|
return finish3({ image: `.himi/shots/${home2}.png`, ...postcard ? { postcard } : {} });
|
|
@@ -181439,7 +181555,7 @@ async function renderHomeInChild(dir, home2, opts) {
|
|
|
181439
181555
|
if (refusal2) break;
|
|
181440
181556
|
}
|
|
181441
181557
|
const why = typeof report9?.reason === "string" ? report9.reason : typeof report9?.error === "string" ? report9.error : refusal2;
|
|
181442
|
-
finish3({ skipped: `the render made no picture (exit ${
|
|
181558
|
+
finish3({ skipped: `the render made no picture (exit ${code3 ?? "killed"})${why ? `: ${why.slice(0, 200)}` : ""}` });
|
|
181443
181559
|
});
|
|
181444
181560
|
});
|
|
181445
181561
|
}
|
|
@@ -183708,9 +183824,9 @@ var init_template_recommend = __esm({
|
|
|
183708
183824
|
depthCredit = (n2) => Math.min(n2, 3) / 3;
|
|
183709
183825
|
weight = (t2) => t2.startsWith("@") ? 2 : 1;
|
|
183710
183826
|
BookRefusal = class extends Error {
|
|
183711
|
-
constructor(
|
|
183827
|
+
constructor(code3, message5) {
|
|
183712
183828
|
super(message5);
|
|
183713
|
-
this.code =
|
|
183829
|
+
this.code = code3;
|
|
183714
183830
|
this.name = "BookRefusal";
|
|
183715
183831
|
}
|
|
183716
183832
|
};
|
|
@@ -185566,9 +185682,9 @@ function requireBinary() {
|
|
|
185566
185682
|
const max = data.length;
|
|
185567
185683
|
const map2 = BASE64_MAP;
|
|
185568
185684
|
for (let idx = 0; idx < max; idx++) {
|
|
185569
|
-
const
|
|
185570
|
-
if (
|
|
185571
|
-
if (
|
|
185685
|
+
const code3 = map2.indexOf(data.charAt(idx));
|
|
185686
|
+
if (code3 > 64) continue;
|
|
185687
|
+
if (code3 < 0) return false;
|
|
185572
185688
|
bitlen += 6;
|
|
185573
185689
|
}
|
|
185574
185690
|
return bitlen % 8 === 0;
|
|
@@ -188912,7 +189028,7 @@ function stripJvmComments(text32) {
|
|
|
188912
189028
|
function stripSwiftComments(text32) {
|
|
188913
189029
|
let out2 = "";
|
|
188914
189030
|
let i2 = 0;
|
|
188915
|
-
const
|
|
189031
|
+
const code3 = (interpolation) => {
|
|
188916
189032
|
let depth = 0;
|
|
188917
189033
|
while (i2 < text32.length) {
|
|
188918
189034
|
const c2 = text32[i2];
|
|
@@ -188959,7 +189075,7 @@ function stripSwiftComments(text32) {
|
|
|
188959
189075
|
if (text32[i2] === "(") {
|
|
188960
189076
|
out2 += "(";
|
|
188961
189077
|
i2++;
|
|
188962
|
-
|
|
189078
|
+
code3(true);
|
|
188963
189079
|
if (i2 < text32.length) {
|
|
188964
189080
|
out2 += ")";
|
|
188965
189081
|
i2++;
|
|
@@ -188974,7 +189090,7 @@ function stripSwiftComments(text32) {
|
|
|
188974
189090
|
}
|
|
188975
189091
|
}
|
|
188976
189092
|
};
|
|
188977
|
-
|
|
189093
|
+
code3(false);
|
|
188978
189094
|
return out2;
|
|
188979
189095
|
}
|
|
188980
189096
|
function satelliteOnlyProblems(files, pods, androidProjects = /* @__PURE__ */ new Set()) {
|
|
@@ -188990,15 +189106,15 @@ function satelliteOnlyProblems(files, pods, androidProjects = /* @__PURE__ */ ne
|
|
|
188990
189106
|
const refs = [...stripJvmComments(f2.text).matchAll(GRADLE_PROJECT_REF)].map((m2) => m2[1]).filter((id) => androidProjects.has(id));
|
|
188991
189107
|
for (const id of [...new Set(refs)].sort()) named3.push(`the Core Gradle project \`:${id}\``);
|
|
188992
189108
|
} else if (isJvmSource(f2.path)) {
|
|
188993
|
-
const
|
|
188994
|
-
const imported = JVM_CORE_IMPORT.exec(
|
|
188995
|
-
const referenced = imported ? void 0 : JVM_CORE_REFERENCE.exec(
|
|
189109
|
+
const code3 = stripJvmComments(f2.text);
|
|
189110
|
+
const imported = JVM_CORE_IMPORT.exec(code3)?.[1];
|
|
189111
|
+
const referenced = imported ? void 0 : JVM_CORE_REFERENCE.exec(code3)?.[1];
|
|
188996
189112
|
if (imported) named3.push(`\`import ${imported}\``);
|
|
188997
189113
|
else if (referenced) named3.push(`\`${referenced}\``);
|
|
188998
189114
|
} else if (podWord) {
|
|
188999
|
-
const
|
|
189115
|
+
const code3 = isSwift(f2.path) ? stripSwiftComments(f2.text) : f2.text;
|
|
189000
189116
|
const source2 = isSwift(f2.path) && !isPackageSwift(f2.path);
|
|
189001
|
-
const hit = source2 ? [...
|
|
189117
|
+
const hit = source2 ? [...code3.matchAll(SWIFT_IMPORT)].map((m2) => m2[1]).find((m2) => pods.has(m2)) : podWord.exec(code3)?.[0];
|
|
189002
189118
|
if (hit) named3.push(source2 ? `\`import ${hit}\`` : `the Core module \`${hit}\``);
|
|
189003
189119
|
}
|
|
189004
189120
|
if (named3.length) {
|
|
@@ -189352,13 +189468,13 @@ function runCarrierAndroidCheck(carrier, selection, settingsGradle) {
|
|
|
189352
189468
|
}
|
|
189353
189469
|
}
|
|
189354
189470
|
function settingsCoreIdProblems(settingsText, graph, where, base2) {
|
|
189355
|
-
const
|
|
189471
|
+
const code3 = settingsText.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");
|
|
189356
189472
|
const dirs = /* @__PURE__ */ new Map();
|
|
189357
|
-
for (const m2 of
|
|
189473
|
+
for (const m2 of code3.matchAll(/project\(\s*"(:[^"]+)"\s*\)\.projectDir\s*=\s*file\(\s*"([^"]+)"\s*\)/g)) dirs.set(m2[1], m2[2]);
|
|
189358
189474
|
const problems = [];
|
|
189359
|
-
const rootName = rootProjectName(
|
|
189475
|
+
const rootName = rootProjectName(code3);
|
|
189360
189476
|
if (rootName && graph[rootName]?.platforms.android) problems.push(`${where}: rootProject.name "${rootName}" equals a Core module id`);
|
|
189361
|
-
for (const project of new Set(includedGradleProjects(
|
|
189477
|
+
for (const project of new Set(includedGradleProjects(code3))) {
|
|
189362
189478
|
const id = project.replace(/^:/, "");
|
|
189363
189479
|
if (!graph[id]?.platforms.android) continue;
|
|
189364
189480
|
const dir = dirs.get(project);
|
|
@@ -189624,9 +189740,9 @@ function replaceScalar(content, key4, value2) {
|
|
|
189624
189740
|
}
|
|
189625
189741
|
function readAndroidVersion(gradle) {
|
|
189626
189742
|
const name = /(\bversionName\s*=\s*")([^"]*)(")/.exec(gradle);
|
|
189627
|
-
const
|
|
189628
|
-
if (!name || !
|
|
189629
|
-
return { marketing: name[2], build: Number(
|
|
189743
|
+
const code3 = /(\bversionCode\s*=\s*)(\d+)/.exec(gradle);
|
|
189744
|
+
if (!name || !code3) throw new Error("build.gradle.kts is missing versionName / versionCode");
|
|
189745
|
+
return { marketing: name[2], build: Number(code3[2]) };
|
|
189630
189746
|
}
|
|
189631
189747
|
function readAndroidVersionName(gradle) {
|
|
189632
189748
|
const name = /(\bversionName\s*=\s*")([^"]*)(")/.exec(gradle);
|
|
@@ -190575,10 +190691,10 @@ function stripComments2(text32) {
|
|
|
190575
190691
|
}
|
|
190576
190692
|
function duplicateModuleInstalls(...texts) {
|
|
190577
190693
|
const calls = ["installLinkedModules", ...NATIVE_MODULES.flatMap((m2) => m2.ios ? [`${m2.ios.product}.install`] : [])];
|
|
190578
|
-
const
|
|
190694
|
+
const code3 = texts.map(stripComments2).join("\n");
|
|
190579
190695
|
return calls.filter((call) => {
|
|
190580
190696
|
const re2 = new RegExp(`(^|[^\\w])${call.replace(".", "\\.")}\\s*\\(`, "gm");
|
|
190581
|
-
return (
|
|
190697
|
+
return (code3.match(re2) ?? []).length > 1;
|
|
190582
190698
|
});
|
|
190583
190699
|
}
|
|
190584
190700
|
function assertSingleModuleInstall(app2, paths2) {
|
|
@@ -191290,9 +191406,9 @@ var init_gen_native_config = __esm({
|
|
|
191290
191406
|
siteOrigin: "io.himalaya.base44.siteOrigin"
|
|
191291
191407
|
};
|
|
191292
191408
|
DistBindingError = class extends Error {
|
|
191293
|
-
constructor(
|
|
191409
|
+
constructor(code3, message5) {
|
|
191294
191410
|
super(message5);
|
|
191295
|
-
this.code =
|
|
191411
|
+
this.code = code3;
|
|
191296
191412
|
this.name = "DistBindingError";
|
|
191297
191413
|
}
|
|
191298
191414
|
};
|
|
@@ -191304,6 +191420,22 @@ var init_gen_native_config = __esm({
|
|
|
191304
191420
|
}
|
|
191305
191421
|
});
|
|
191306
191422
|
|
|
191423
|
+
// src/edit-distance.ts
|
|
191424
|
+
function editDistance2(a3, b3) {
|
|
191425
|
+
let prev = Array.from({ length: b3.length + 1 }, (_2, j2) => j2);
|
|
191426
|
+
for (let i2 = 1; i2 <= a3.length; i2++) {
|
|
191427
|
+
const cur = [i2];
|
|
191428
|
+
for (let j2 = 1; j2 <= b3.length; j2++) cur[j2] = Math.min(prev[j2] + 1, cur[j2 - 1] + 1, prev[j2 - 1] + (a3[i2 - 1] === b3[j2 - 1] ? 0 : 1));
|
|
191429
|
+
prev = cur;
|
|
191430
|
+
}
|
|
191431
|
+
return prev[b3.length];
|
|
191432
|
+
}
|
|
191433
|
+
var init_edit_distance = __esm({
|
|
191434
|
+
"src/edit-distance.ts"() {
|
|
191435
|
+
init_define_HHP_CATALOG();
|
|
191436
|
+
}
|
|
191437
|
+
});
|
|
191438
|
+
|
|
191307
191439
|
// src/capabilities.ts
|
|
191308
191440
|
var capabilities_exports = {};
|
|
191309
191441
|
__export(capabilities_exports, {
|
|
@@ -191587,15 +191719,6 @@ function appWorkersOf(usage2) {
|
|
|
191587
191719
|
function shippedOthersOf(usage2) {
|
|
191588
191720
|
return (usage2.others ?? []).filter((o2) => o2.source === "app worker" || o2.source === "navigation");
|
|
191589
191721
|
}
|
|
191590
|
-
function editDistance2(a3, b3) {
|
|
191591
|
-
let prev = Array.from({ length: b3.length + 1 }, (_2, j2) => j2);
|
|
191592
|
-
for (let i2 = 1; i2 <= a3.length; i2++) {
|
|
191593
|
-
const cur = [i2];
|
|
191594
|
-
for (let j2 = 1; j2 <= b3.length; j2++) cur[j2] = Math.min(prev[j2] + 1, cur[j2 - 1] + 1, prev[j2 - 1] + (a3[i2 - 1] === b3[j2 - 1] ? 0 : 1));
|
|
191595
|
-
prev = cur;
|
|
191596
|
-
}
|
|
191597
|
-
return prev[b3.length];
|
|
191598
|
-
}
|
|
191599
191722
|
function didYouMean(id) {
|
|
191600
191723
|
if (id.length > MAX_SUGGEST_LEN2) return "";
|
|
191601
191724
|
const best = KNOWN_CAPABILITY_IDS.map((k3) => [k3, editDistance2(id, k3)]).sort((x2, y2) => x2[1] - y2[1])[0];
|
|
@@ -191877,6 +192000,7 @@ var init_capabilities = __esm({
|
|
|
191877
192000
|
init_capabilities_generated();
|
|
191878
192001
|
init_shell_capabilities_generated();
|
|
191879
192002
|
init_gen_native_config();
|
|
192003
|
+
init_edit_distance();
|
|
191880
192004
|
EXTENSION_GRANT_PREFIX2 = "ext:";
|
|
191881
192005
|
DECLARE_HINT = "config.ts `capabilities` (the app-level list a binary is built with) AND each calling screen's `logicBundle.declaredCapabilities` (the runtime gate)";
|
|
191882
192006
|
REGISTRY = CAPABILITY_REGISTRY;
|
|
@@ -192727,9 +192851,9 @@ var init_base44_types = __esm({
|
|
|
192727
192851
|
SCALAR = { string: "string", number: "number", integer: "number", boolean: "boolean" };
|
|
192728
192852
|
key2 = (k3) => /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(k3) ? k3 : JSON.stringify(k3);
|
|
192729
192853
|
Base44TypesError = class extends Error {
|
|
192730
|
-
constructor(
|
|
192854
|
+
constructor(code3, message5) {
|
|
192731
192855
|
super(message5);
|
|
192732
|
-
this.code =
|
|
192856
|
+
this.code = code3;
|
|
192733
192857
|
}
|
|
192734
192858
|
};
|
|
192735
192859
|
}
|
|
@@ -196127,12 +196251,12 @@ function checkStaticImports(bundle) {
|
|
|
196127
196251
|
}
|
|
196128
196252
|
}
|
|
196129
196253
|
function checkSource(bundle) {
|
|
196130
|
-
const
|
|
196131
|
-
checkStaticImports(
|
|
196132
|
-
if (/\bexport\s+(?:\{[^}]*\}|\*(?:\s+as\s+[A-Za-z_$][\w$]*)?)\s+from\b/i.test(
|
|
196254
|
+
const code3 = maskNonCode(bundle);
|
|
196255
|
+
checkStaticImports(code3);
|
|
196256
|
+
if (/\bexport\s+(?:\{[^}]*\}|\*(?:\s+as\s+[A-Za-z_$][\w$]*)?)\s+from\b/i.test(code3)) {
|
|
196133
196257
|
throw new SandboxError("sandbox_violation", "bundle contains a static re-export");
|
|
196134
196258
|
}
|
|
196135
|
-
const match = FORBIDDEN_SOURCE.find((pattern) => pattern.test(
|
|
196259
|
+
const match = FORBIDDEN_SOURCE.find((pattern) => pattern.test(code3));
|
|
196136
196260
|
if (match) throw new SandboxError("sandbox_violation", `bundle matched ${match}`);
|
|
196137
196261
|
}
|
|
196138
196262
|
function jsonBytes(value2) {
|
|
@@ -196304,8 +196428,8 @@ function createLocalTestSandbox() {
|
|
|
196304
196428
|
else finish3(() => reject(new SandboxError("execution_failed", message5.message ?? "handler failed")));
|
|
196305
196429
|
});
|
|
196306
196430
|
worker.once("error", (error) => finish3(() => reject(new SandboxError("execution_failed", error.message))));
|
|
196307
|
-
worker.once("exit", (
|
|
196308
|
-
if (
|
|
196431
|
+
worker.once("exit", (code3) => {
|
|
196432
|
+
if (code3 !== 0 && !settled) finish3(() => reject(new SandboxError("memory_limit", `worker exited with code ${code3}`)));
|
|
196309
196433
|
});
|
|
196310
196434
|
});
|
|
196311
196435
|
}
|
|
@@ -196317,10 +196441,10 @@ var init_sandbox = __esm({
|
|
|
196317
196441
|
init_define_HHP_CATALOG();
|
|
196318
196442
|
SandboxError = class extends Error {
|
|
196319
196443
|
code;
|
|
196320
|
-
constructor(
|
|
196321
|
-
super(`${
|
|
196444
|
+
constructor(code3, message5) {
|
|
196445
|
+
super(`${code3}: ${message5}`);
|
|
196322
196446
|
this.name = "SandboxError";
|
|
196323
|
-
this.code =
|
|
196447
|
+
this.code = code3;
|
|
196324
196448
|
}
|
|
196325
196449
|
};
|
|
196326
196450
|
FORBIDDEN_SOURCE = [
|
|
@@ -196429,9 +196553,9 @@ var init_calls = __esm({
|
|
|
196429
196553
|
"../../core/functions-runtime/src/calls.ts"() {
|
|
196430
196554
|
init_define_HHP_CATALOG();
|
|
196431
196555
|
FunctionCallError = class extends Error {
|
|
196432
|
-
constructor(
|
|
196433
|
-
super(`${
|
|
196434
|
-
this.code =
|
|
196556
|
+
constructor(code3, message5) {
|
|
196557
|
+
super(`${code3}: ${message5}`);
|
|
196558
|
+
this.code = code3;
|
|
196435
196559
|
this.name = "FunctionCallError";
|
|
196436
196560
|
}
|
|
196437
196561
|
};
|
|
@@ -196500,9 +196624,9 @@ var init_queue = __esm({
|
|
|
196500
196624
|
"../../core/functions-runtime/src/queue.ts"() {
|
|
196501
196625
|
init_define_HHP_CATALOG();
|
|
196502
196626
|
FunctionQueueError = class extends Error {
|
|
196503
|
-
constructor(
|
|
196504
|
-
super(`${
|
|
196505
|
-
this.code =
|
|
196627
|
+
constructor(code3, message5) {
|
|
196628
|
+
super(`${code3}: ${message5}`);
|
|
196629
|
+
this.code = code3;
|
|
196506
196630
|
this.name = "FunctionQueueError";
|
|
196507
196631
|
}
|
|
196508
196632
|
};
|
|
@@ -196703,9 +196827,9 @@ var init_apply2 = __esm({
|
|
|
196703
196827
|
init_schema2();
|
|
196704
196828
|
init_tombstones();
|
|
196705
196829
|
ResourceApplyError = class extends Error {
|
|
196706
|
-
constructor(
|
|
196707
|
-
super(`${
|
|
196708
|
-
this.code =
|
|
196830
|
+
constructor(code3, message5) {
|
|
196831
|
+
super(`${code3}: ${message5}`);
|
|
196832
|
+
this.code = code3;
|
|
196709
196833
|
this.name = "ResourceApplyError";
|
|
196710
196834
|
}
|
|
196711
196835
|
};
|
|
@@ -196932,8 +197056,8 @@ function json3(status2, body, requestId2, extra = {}) {
|
|
|
196932
197056
|
headers: { "content-type": "application/json; charset=utf-8", "cache-control": "no-store", "x-request-id": requestId2, ...extra }
|
|
196933
197057
|
});
|
|
196934
197058
|
}
|
|
196935
|
-
function errorResponse(status2,
|
|
196936
|
-
return json3(status2, { error: { code:
|
|
197059
|
+
function errorResponse(status2, code3, message5, requestId2) {
|
|
197060
|
+
return json3(status2, { error: { code: code3, message: message5.slice(0, MAX_LOG_MESSAGE), requestId: requestId2 }, requestId: requestId2 }, requestId2, { "access-control-allow-origin": "*" });
|
|
196937
197061
|
}
|
|
196938
197062
|
function routeMatch(template, actual) {
|
|
196939
197063
|
const expected = template.split("/").filter(Boolean);
|
|
@@ -197231,9 +197355,9 @@ function makeFunctionsHandler(options2) {
|
|
|
197231
197355
|
} catch (error) {
|
|
197232
197356
|
finish3("error");
|
|
197233
197357
|
const message5 = error instanceof Error ? error.message : String(error);
|
|
197234
|
-
const
|
|
197235
|
-
const status2 =
|
|
197236
|
-
const responseCode =
|
|
197358
|
+
const code3 = error instanceof SandboxError || error instanceof FunctionCallError ? error.code : "execution_failed";
|
|
197359
|
+
const status2 = code3 === "canceled" || code3 === "function_call_canceled" ? 499 : code3 === "timeout" || code3 === "memory_limit" || code3 === "function_call_deadline_exceeded" ? 504 : code3 === "capability_not_implemented" ? 501 : code3 === "function_input_invalid" ? 422 : code3 === "function_bundle_invalid" || code3 === "function_output_invalid" ? 502 : code3 === "function_not_found" ? 404 : code3 === "function_call_forbidden" ? 403 : 500;
|
|
197360
|
+
const responseCode = code3 === "function_input_invalid" ? "invalid_request" : code3 === "function_bundle_invalid" ? "bundle_integrity_failed" : code3 === "function_output_invalid" ? "invalid_response" : code3;
|
|
197237
197361
|
return errorResponse(status2, responseCode, message5, id);
|
|
197238
197362
|
}
|
|
197239
197363
|
};
|
|
@@ -197467,14 +197591,14 @@ function createCliBridge(run4) {
|
|
|
197467
197591
|
const out2 = [];
|
|
197468
197592
|
const err = [];
|
|
197469
197593
|
const io2 = { log: (l3) => out2.push(l3), error: (l3) => err.push(l3) };
|
|
197470
|
-
let
|
|
197594
|
+
let code3;
|
|
197471
197595
|
try {
|
|
197472
|
-
|
|
197596
|
+
code3 = await run4([...argv, ...MCP_FIXED_FLAGS], io2);
|
|
197473
197597
|
} catch (e2) {
|
|
197474
197598
|
err.push(JSON.stringify({ ok: false, error: "himi_threw", message: e2?.message ?? String(e2) }));
|
|
197475
|
-
|
|
197599
|
+
code3 = 1;
|
|
197476
197600
|
}
|
|
197477
|
-
return { code:
|
|
197601
|
+
return { code: code3, json: lastJson(out2), text: out2.join("\n"), stderr: err.join("\n") };
|
|
197478
197602
|
});
|
|
197479
197603
|
queue = call.catch(() => void 0);
|
|
197480
197604
|
return call;
|
|
@@ -197959,10 +198083,16 @@ function rawTools() {
|
|
|
197959
198083
|
{
|
|
197960
198084
|
name: "himi_components",
|
|
197961
198085
|
title: "SDUI component vocabulary",
|
|
197962
|
-
description: "The SDUI component vocabulary and props a descriptor may use;
|
|
198086
|
+
description: "The SDUI component vocabulary and props a descriptor may use. `names` returns every listed component in one call; with two or more names the answer also carries the element shapes their props name and the modifiers every component accepts, while one name returns that component's entry alone. `name` returns one component. Offline.",
|
|
197963
198087
|
annotations: LEARN,
|
|
197964
|
-
inputSchema: z4.object({
|
|
197965
|
-
|
|
198088
|
+
inputSchema: z4.object({
|
|
198089
|
+
names: z4.array(z4.string()).optional().describe('Every component you need, e.g. `["Button", "ListItem", "FilterChips"]`: one call instead of one per component.'),
|
|
198090
|
+
name: z4.string().optional().describe("One component, e.g. `Button`. Omit both for all.")
|
|
198091
|
+
}),
|
|
198092
|
+
handler: async (a3, d2) => {
|
|
198093
|
+
const names2 = [...Array.isArray(a3.names) ? a3.names.filter((n2) => typeof n2 === "string" && n2 !== "") : [], ...typeof a3.name === "string" && a3.name ? [a3.name] : []];
|
|
198094
|
+
return fromCli(await d2.runCli(["components", ...names2, "--json"]));
|
|
198095
|
+
}
|
|
197966
198096
|
},
|
|
197967
198097
|
{
|
|
197968
198098
|
name: "himi_sdk",
|
|
@@ -198377,14 +198507,14 @@ function createLoginSession(deps) {
|
|
|
198377
198507
|
current = { state: "failed", error: `could not start himi login: ${e2.message}` };
|
|
198378
198508
|
answer();
|
|
198379
198509
|
});
|
|
198380
|
-
child3.once("exit", (
|
|
198381
|
-
if (
|
|
198510
|
+
child3.once("exit", (code3) => {
|
|
198511
|
+
if (code3 === 0) {
|
|
198382
198512
|
const r3 = lastJson([out2.join("")]) ?? {};
|
|
198383
198513
|
current = { state: "signed_in", account: r3.sub, scope: r3.scope, expiresAt: r3.exp, ...held ? { via: "wix" } : {} };
|
|
198384
198514
|
signedInTarget = target;
|
|
198385
198515
|
} else {
|
|
198386
198516
|
const e2 = lastJson(err.join("").split("\n"));
|
|
198387
|
-
current = { state: "failed", error: e2?.error ?? (err.join("").trim().slice(-500) || `himi login exited ${
|
|
198517
|
+
current = { state: "failed", error: e2?.error ?? (err.join("").trim().slice(-500) || `himi login exited ${code3}`) };
|
|
198388
198518
|
}
|
|
198389
198519
|
answer();
|
|
198390
198520
|
});
|
|
@@ -198481,9 +198611,9 @@ function findStoreBuild(dir) {
|
|
|
198481
198611
|
const record5 = readUploadFacts(dir);
|
|
198482
198612
|
const foreign = record5 && record5.app !== ownAppId(dir) ? record5 : void 0;
|
|
198483
198613
|
const dist = foreign ? void 0 : record5;
|
|
198484
|
-
const
|
|
198485
|
-
if (dist && dist.platform === "ios" && dist.appStoreUpload === "UPLOADED" && /^\d+(?:\.\d+)*$/.test(
|
|
198486
|
-
return { kind: "uploaded", jobId: dist.jobId, buildNumber:
|
|
198614
|
+
const code3 = dist?.versionCode !== void 0 ? String(dist.versionCode).trim() : "";
|
|
198615
|
+
if (dist && dist.platform === "ios" && dist.appStoreUpload === "UPLOADED" && /^\d+(?:\.\d+)*$/.test(code3)) {
|
|
198616
|
+
return { kind: "uploaded", jobId: dist.jobId, buildNumber: code3, ...dist.versionName ?? dist.requestedVersion ? { version: dist.versionName ?? dist.requestedVersion } : {} };
|
|
198487
198617
|
}
|
|
198488
198618
|
const ipa = newestLocalIpa(dir);
|
|
198489
198619
|
if (ipa) return { kind: "ipa", path: ipa };
|
|
@@ -198615,12 +198745,12 @@ function entryText(e2) {
|
|
|
198615
198745
|
function kindForStatus(status2) {
|
|
198616
198746
|
return STATUS_KINDS[status2] ?? (status2 >= 500 ? "server" : "invalid");
|
|
198617
198747
|
}
|
|
198618
|
-
function isAgreementCode(
|
|
198619
|
-
const dot =
|
|
198748
|
+
function isAgreementCode(code3) {
|
|
198749
|
+
const dot = code3.lastIndexOf(".");
|
|
198620
198750
|
if (dot < 0)
|
|
198621
198751
|
return false;
|
|
198622
|
-
const prefix =
|
|
198623
|
-
const segment3 =
|
|
198752
|
+
const prefix = code3.slice(0, dot).trim().toUpperCase();
|
|
198753
|
+
const segment3 = code3.slice(dot + 1).trim().toUpperCase();
|
|
198624
198754
|
return (prefix === "FORBIDDEN" || prefix === "FORBIDDEN_ERROR") && ["REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED", "PLA_NOT_VALID", "PLA_NOT_ACCEPTED"].includes(segment3);
|
|
198625
198755
|
}
|
|
198626
198756
|
function isUnsupportedOperation(detail) {
|
|
@@ -198862,7 +198992,7 @@ function relaunchWithoutSystemCa(deps = {}, plan = planSystemCaRelaunch({
|
|
|
198862
198992
|
if (plan === void 0)
|
|
198863
198993
|
return Promise.resolve();
|
|
198864
198994
|
const start2 = deps.spawn ?? ((p2) => spawn6(p2.command, p2.args, { stdio: "inherit", env: p2.env }));
|
|
198865
|
-
const exit = deps.exit ?? ((
|
|
198995
|
+
const exit = deps.exit ?? ((code3) => process.exit(code3));
|
|
198866
198996
|
const kill = deps.kill ?? ((s5) => process.kill(process.pid, s5));
|
|
198867
198997
|
const on4 = deps.on ?? ((s5, h2) => void process.on(s5, h2));
|
|
198868
198998
|
const off = deps.off ?? ((s5, h2) => void process.off(s5, h2));
|
|
@@ -198882,11 +199012,11 @@ function relaunchWithoutSystemCa(deps = {}, plan = planSystemCaRelaunch({
|
|
|
198882
199012
|
detach();
|
|
198883
199013
|
resolve133();
|
|
198884
199014
|
});
|
|
198885
|
-
child3.once("exit", (
|
|
199015
|
+
child3.once("exit", (code3, signal) => {
|
|
198886
199016
|
detach();
|
|
198887
199017
|
if (signal !== null)
|
|
198888
199018
|
kill(signal);
|
|
198889
|
-
exit(
|
|
199019
|
+
exit(code3 ?? 1);
|
|
198890
199020
|
});
|
|
198891
199021
|
});
|
|
198892
199022
|
}
|
|
@@ -199208,8 +199338,8 @@ var init_lock = __esm({
|
|
|
199208
199338
|
try {
|
|
199209
199339
|
return JSON.parse(await readFile3(this.path(key4), "utf8"));
|
|
199210
199340
|
} catch (e2) {
|
|
199211
|
-
const
|
|
199212
|
-
if (
|
|
199341
|
+
const code3 = e2.code;
|
|
199342
|
+
if (code3 === "ENOENT")
|
|
199213
199343
|
return void 0;
|
|
199214
199344
|
throw e2;
|
|
199215
199345
|
}
|
|
@@ -200135,13 +200265,13 @@ async function postToken(fetchImpl, uri, form, secrets) {
|
|
|
200135
200265
|
const body = await response.json().catch(() => ({}));
|
|
200136
200266
|
if (response.ok)
|
|
200137
200267
|
return body;
|
|
200138
|
-
const
|
|
200268
|
+
const code3 = typeof body.error === "string" ? body.error : `HTTP ${response.status}`;
|
|
200139
200269
|
const description = typeof body.error_description === "string" ? `: ${scrubSecrets(body.error_description, secrets)}` : "";
|
|
200140
200270
|
if (response.status >= 500 || response.status === 429)
|
|
200141
|
-
throw new GplayError("server", `Google's token endpoint answered ${
|
|
200142
|
-
throw new AuthError(`Google refused the sign-in: ${
|
|
200271
|
+
throw new GplayError("server", `Google's token endpoint answered ${code3}${description}`, { status: response.status });
|
|
200272
|
+
throw new AuthError(`Google refused the sign-in: ${code3}${description}`, {
|
|
200143
200273
|
status: response.status,
|
|
200144
|
-
remediation:
|
|
200274
|
+
remediation: code3 === "invalid_grant" ? "The sign-in expired or was revoked. An OAuth client still in Testing mode may lose its sign-ins after 7 days. Sign in again: gplay-node login" : void 0
|
|
200145
200275
|
});
|
|
200146
200276
|
}
|
|
200147
200277
|
async function loadApplicationDefaultCredentials(options2 = {}) {
|
|
@@ -200223,7 +200353,7 @@ async function loginWithOAuthClient(options2) {
|
|
|
200223
200353
|
const challenge = createHash46("sha256").update(verifier2).digest("base64url");
|
|
200224
200354
|
const state = randomBytes5(16).toString("hex");
|
|
200225
200355
|
let redirect = "";
|
|
200226
|
-
const
|
|
200356
|
+
const code3 = await new Promise((resolve133, reject) => {
|
|
200227
200357
|
const finish3 = (error, value2) => {
|
|
200228
200358
|
clearTimeout(timer);
|
|
200229
200359
|
options2.signal?.removeEventListener("abort", onAbort);
|
|
@@ -200268,10 +200398,10 @@ async function loginWithOAuthClient(options2) {
|
|
|
200268
200398
|
Promise.resolve(options2.openBrowser(auth.toString())).catch((e2) => finish3(e2));
|
|
200269
200399
|
});
|
|
200270
200400
|
});
|
|
200271
|
-
const form = new URLSearchParams({ grant_type: "authorization_code", code:
|
|
200401
|
+
const form = new URLSearchParams({ grant_type: "authorization_code", code: code3, client_id: client4.clientId, redirect_uri: redirect, code_verifier: verifier2 });
|
|
200272
200402
|
if (client4.clientSecret)
|
|
200273
200403
|
form.set("client_secret", client4.clientSecret);
|
|
200274
|
-
const body = await postToken(options2.fetch ?? ((input, init) => globalThis.fetch(input, init)), client4.tokenUri, form, [
|
|
200404
|
+
const body = await postToken(options2.fetch ?? ((input, init) => globalThis.fetch(input, init)), client4.tokenUri, form, [code3, client4.clientSecret]);
|
|
200275
200405
|
if (typeof body.refresh_token !== "string")
|
|
200276
200406
|
throw new AuthError("Google returned no refresh token, so this sign-in can't be kept");
|
|
200277
200407
|
return { clientId: client4.clientId, clientSecret: client4.clientSecret, refreshToken: body.refresh_token };
|
|
@@ -200334,7 +200464,7 @@ var init_auth2 = __esm({
|
|
|
200334
200464
|
child3.stdin?.on("error", () => void 0);
|
|
200335
200465
|
child3.stdin?.end(options2.input ?? "");
|
|
200336
200466
|
child3.on("error", reject);
|
|
200337
|
-
child3.on("close", (
|
|
200467
|
+
child3.on("close", (code3) => resolve133({ code: code3 ?? 1, stdout, stderr }));
|
|
200338
200468
|
});
|
|
200339
200469
|
GOOGLE_OAUTH_HOSTS = /* @__PURE__ */ new Set(["accounts.google.com", HOSTS.oauth]);
|
|
200340
200470
|
FileCredentialStore = class {
|
|
@@ -206893,8 +207023,8 @@ var init_job = __esm({
|
|
|
206893
207023
|
isGoogleAccount = (a3) => a3.kind === "google";
|
|
206894
207024
|
JobError = class extends AscError {
|
|
206895
207025
|
job;
|
|
206896
|
-
constructor(message5, job,
|
|
206897
|
-
super("refused", message5,
|
|
207026
|
+
constructor(message5, job, code3) {
|
|
207027
|
+
super("refused", message5, code3 ? { entries: [{ code: code3, detail: message5 }] } : {});
|
|
206898
207028
|
this.job = job;
|
|
206899
207029
|
this.name = "JobError";
|
|
206900
207030
|
}
|
|
@@ -207161,9 +207291,9 @@ ${job.plan.changes.map((c2) => ` ${c2.op} ${c2.resource}: ${c2.summary}`).join(
|
|
|
207161
207291
|
return job;
|
|
207162
207292
|
}
|
|
207163
207293
|
setCode(job, e2) {
|
|
207164
|
-
const
|
|
207165
|
-
if (
|
|
207166
|
-
job.errorCode =
|
|
207294
|
+
const code3 = jobErrorCode(e2);
|
|
207295
|
+
if (code3)
|
|
207296
|
+
job.errorCode = code3;
|
|
207167
207297
|
}
|
|
207168
207298
|
withFiles(params, fn2) {
|
|
207169
207299
|
return this.options.files ? withJobFiles(this.options.files, params, fn2) : fn2();
|
|
@@ -207473,8 +207603,8 @@ function asJobError(e2) {
|
|
|
207473
207603
|
}
|
|
207474
207604
|
return e2;
|
|
207475
207605
|
}
|
|
207476
|
-
function coded(message5,
|
|
207477
|
-
const err = new JobError(message5, void 0,
|
|
207606
|
+
function coded(message5, code3, cause) {
|
|
207607
|
+
const err = new JobError(message5, void 0, code3);
|
|
207478
207608
|
Object.defineProperty(err, "cause", { value: cause, configurable: true, writable: true });
|
|
207479
207609
|
if (cause.remediation)
|
|
207480
207610
|
Object.defineProperty(err, "remediation", { value: cause.remediation, configurable: true });
|
|
@@ -208813,10 +208943,10 @@ async function createExclusive(path2, owner) {
|
|
|
208813
208943
|
await link2(tmp, path2);
|
|
208814
208944
|
return true;
|
|
208815
208945
|
} catch (e2) {
|
|
208816
|
-
const
|
|
208817
|
-
if (
|
|
208946
|
+
const code3 = errCode(e2);
|
|
208947
|
+
if (code3 === "EEXIST")
|
|
208818
208948
|
return false;
|
|
208819
|
-
if (
|
|
208949
|
+
if (code3 !== "EPERM" && code3 !== "ENOTSUP" && code3 !== "ENOSYS")
|
|
208820
208950
|
throw e2;
|
|
208821
208951
|
try {
|
|
208822
208952
|
const fh = await open4(path2, "wx", 384);
|
|
@@ -209577,8 +209707,8 @@ import * as __ascBuiltin032 from "node:crypto";
|
|
|
209577
209707
|
function describe(e2) {
|
|
209578
209708
|
const message5 = e2 instanceof Error ? e2.message : String(e2);
|
|
209579
209709
|
const status2 = statusOf2(e2);
|
|
209580
|
-
const
|
|
209581
|
-
return [status2 !== void 0 ? String(status2) : void 0,
|
|
209710
|
+
const code3 = codeOf(e2);
|
|
209711
|
+
return [status2 !== void 0 ? String(status2) : void 0, code3 && !message5.includes(code3) ? code3 : void 0, message5].filter(Boolean).join(" ");
|
|
209582
209712
|
}
|
|
209583
209713
|
function isSyncPath(path2) {
|
|
209584
209714
|
if (!path2 || path2.length > 256)
|
|
@@ -211605,8 +211735,8 @@ function refreshPartsOf(values, fallback) {
|
|
|
211605
211735
|
}
|
|
211606
211736
|
function refreshReason(e2) {
|
|
211607
211737
|
const message5 = scrubSecrets(e2 instanceof Error ? e2.message : String(e2));
|
|
211608
|
-
const
|
|
211609
|
-
return `${
|
|
211738
|
+
const code3 = e2 instanceof PageChangedError ? "page_changed" : e2 instanceof GplayError ? e2.kind : e2 instanceof UsageError ? "usage" : e2 instanceof RefreshUnavailable ? "unavailable" : e2 instanceof TypeError && /fetch failed/.test(message5) ? "network" : "error";
|
|
211739
|
+
return `${code3}: ${message5}`;
|
|
211610
211740
|
}
|
|
211611
211741
|
async function readTracks(deps, packageName) {
|
|
211612
211742
|
const tracks = await (await deps.api()).readEdit(packageName, (edit) => edit.listTracks());
|
|
@@ -212176,7 +212306,7 @@ function googleStoreHost(o2) {
|
|
|
212176
212306
|
clear: () => Promise.reject(new Error("the store tools never clear a sign-in"))
|
|
212177
212307
|
});
|
|
212178
212308
|
let lastAppDeveloper;
|
|
212179
|
-
const refuse10 = (
|
|
212309
|
+
const refuse10 = (code3, message5) => new o2.rt.mcp.StoreRefusal(code3, message5);
|
|
212180
212310
|
return {
|
|
212181
212311
|
async connect({ signal, onProgress }) {
|
|
212182
212312
|
const l3 = await local();
|
|
@@ -213291,10 +213421,10 @@ function parsePlist(data) {
|
|
|
213291
213421
|
function decodeText(raw) {
|
|
213292
213422
|
return raw.replace(/&([^;&\s]{1,12});/g, (_2, name) => {
|
|
213293
213423
|
if (name[0] === "#") {
|
|
213294
|
-
const
|
|
213295
|
-
if (!Number.isInteger(
|
|
213424
|
+
const code3 = name[1] === "x" || name[1] === "X" ? parseInt(name.slice(2), 16) : parseInt(name.slice(1), 10);
|
|
213425
|
+
if (!Number.isInteger(code3) || code3 < 0 || code3 > 1114111)
|
|
213296
213426
|
throw badPlist("a character reference is out of range");
|
|
213297
|
-
return String.fromCodePoint(
|
|
213427
|
+
return String.fromCodePoint(code3);
|
|
213298
213428
|
}
|
|
213299
213429
|
const value2 = ENTITIES2[name];
|
|
213300
213430
|
if (value2 === void 0)
|
|
@@ -213873,8 +214003,8 @@ function dpapiBox(o2 = {}) {
|
|
|
213873
214003
|
try {
|
|
213874
214004
|
out2 = await run4(command, ["-NoProfile", "-NonInteractive", "-Command", what === "protect" ? DPAPI_PROTECT_SCRIPT : DPAPI_UNPROTECT_SCRIPT], { input });
|
|
213875
214005
|
} catch (e2) {
|
|
213876
|
-
const
|
|
213877
|
-
if (
|
|
214006
|
+
const code3 = e2.code;
|
|
214007
|
+
if (code3 === "ENOENT")
|
|
213878
214008
|
throw new CredentialError("powershell.exe was not found; Windows DPAPI needs Windows PowerShell", "dpapi", "unavailable");
|
|
213879
214009
|
throw new CredentialError(what === "protect" ? "could not protect the secret with Windows DPAPI" : "could not unprotect the secret with Windows DPAPI: it can only be read by the Windows user who saved it, on the same machine", "dpapi", "unavailable");
|
|
213880
214010
|
}
|
|
@@ -213986,8 +214116,8 @@ function readKey(fs2, path2, what, providerId) {
|
|
|
213986
214116
|
try {
|
|
213987
214117
|
return fs2.readFile(path2);
|
|
213988
214118
|
} catch (e2) {
|
|
213989
|
-
const
|
|
213990
|
-
if (
|
|
214119
|
+
const code3 = e2.code;
|
|
214120
|
+
if (code3 === "EACCES" || code3 === "EPERM")
|
|
213991
214121
|
throw new CredentialError(`${what} is not readable by this process (permission denied)`, providerId, "permissionDenied");
|
|
213992
214122
|
throw new CredentialError(`${what} could not be read`, providerId, "unavailable");
|
|
213993
214123
|
}
|
|
@@ -215248,10 +215378,10 @@ async function twoFactor(options2, call, auth, headers2) {
|
|
|
215248
215378
|
const devices = (authOptions.body?.trustedDevices ?? []).map((d2) => d2.name ?? d2.deviceType ?? "device");
|
|
215249
215379
|
const phones = (authOptions.body?.trustedPhoneNumbers ?? []).filter((p2) => Number.isInteger(p2?.id));
|
|
215250
215380
|
const securityKey = usableFsaChallenge(authOptions.body?.fsaChallenge);
|
|
215251
|
-
const requireCode = (
|
|
215252
|
-
if (!
|
|
215381
|
+
const requireCode = (code4) => {
|
|
215382
|
+
if (!code4)
|
|
215253
215383
|
throw new WebAuthError("twoFactorRequired", "no verification code was entered");
|
|
215254
|
-
return
|
|
215384
|
+
return code4;
|
|
215255
215385
|
};
|
|
215256
215386
|
const byPhone = async (phone, mode) => {
|
|
215257
215387
|
const requestedAt = /* @__PURE__ */ new Date();
|
|
@@ -215260,8 +215390,8 @@ async function twoFactor(options2, call, auth, headers2) {
|
|
|
215260
215390
|
throw new WebAuthError("twoFactorRateLimited", `Apple did not send the SMS (${sent.status}${codes3(sent.body)}): too many verification codes were requested for this Apple Account. Wait a few hours (Apple does not say how long) and sign in once; every attempt, including a failed code command, requests a new code`);
|
|
215261
215391
|
if (sent.status >= 300)
|
|
215262
215392
|
throw new WebAuthError("protocol", `Apple did not send the SMS (${sent.status}${codes3(sent.body)})`);
|
|
215263
|
-
const
|
|
215264
|
-
const verify3 = await call("POST", `${auth}/verify/phone/securitycode`, { headers: headers2, body: { securityCode: { code:
|
|
215393
|
+
const code4 = requireCode((await options2.twoFactorCode({ length: length2, method: "phone", devices, destination: phone.numberWithDialCode, requestedAt })).trim());
|
|
215394
|
+
const verify3 = await call("POST", `${auth}/verify/phone/securitycode`, { headers: headers2, body: { securityCode: { code: code4 }, phoneNumber: { id: phone.id }, mode } });
|
|
215265
215395
|
if (verify3.status === 400 || verify3.status === 401)
|
|
215266
215396
|
throw new WebAuthError("twoFactorRejected", `Apple did not accept the SMS code (${verify3.status}${codes3(verify3.body)}); enter the code from the latest text, not an earlier one or one a trusted device shows`);
|
|
215267
215397
|
if (verify3.status >= 300)
|
|
@@ -215281,8 +215411,8 @@ async function twoFactor(options2, call, auth, headers2) {
|
|
|
215281
215411
|
}
|
|
215282
215412
|
if (securityKey)
|
|
215283
215413
|
throw new WebAuthError("securityKeyRequired", securityKeyMessage(Boolean(fallback)));
|
|
215284
|
-
const
|
|
215285
|
-
const verify2 = await call("POST", `${auth}/verify/trusteddevice/securitycode`, { headers: headers2, body: { securityCode: { code:
|
|
215414
|
+
const code3 = requireCode((await options2.twoFactorCode({ length: length2, method: "trusted-device", devices, requestedAt: /* @__PURE__ */ new Date() })).trim());
|
|
215415
|
+
const verify2 = await call("POST", `${auth}/verify/trusteddevice/securitycode`, { headers: headers2, body: { securityCode: { code: code3 } } });
|
|
215286
215416
|
if (verify2.status === 400 && fallback)
|
|
215287
215417
|
return byPhone(fallback, fallback.pushMode?.trim() || "sms");
|
|
215288
215418
|
if (verify2.status === 400 || verify2.status === 401)
|
|
@@ -218098,12 +218228,12 @@ var init_html_entities = __esm({
|
|
|
218098
218228
|
|
|
218099
218229
|
// ../../node_modules/@wix/asc-web/dist/html.js
|
|
218100
218230
|
function numeric(digits2, radix) {
|
|
218101
|
-
const
|
|
218102
|
-
if (
|
|
218103
|
-
return WINDOWS_1252[
|
|
218104
|
-
if (!Number.isSafeInteger(
|
|
218231
|
+
const code3 = parseInt(digits2, radix);
|
|
218232
|
+
if (code3 >= 128 && code3 <= 159)
|
|
218233
|
+
return WINDOWS_1252[code3 - 128];
|
|
218234
|
+
if (!Number.isSafeInteger(code3) || code3 === 0 || code3 > 1114111 || code3 >= 55296 && code3 <= 57343)
|
|
218105
218235
|
return "\uFFFD";
|
|
218106
|
-
return String.fromCodePoint(
|
|
218236
|
+
return String.fromCodePoint(code3);
|
|
218107
218237
|
}
|
|
218108
218238
|
function named(name, semicolon, original) {
|
|
218109
218239
|
if (semicolon && NAMED_ENTITIES[name] !== void 0)
|
|
@@ -218143,11 +218273,11 @@ var init_html2 = __esm({
|
|
|
218143
218273
|
});
|
|
218144
218274
|
|
|
218145
218275
|
// ../../node_modules/@wix/asc-web/dist/agreements.js
|
|
218146
|
-
function agreementFor(
|
|
218147
|
-
if (/PLA_NOT_ACCEPTED|PLA_NOT_VALID/.test(
|
|
218276
|
+
function agreementFor(code3) {
|
|
218277
|
+
if (/PLA_NOT_ACCEPTED|PLA_NOT_VALID/.test(code3)) {
|
|
218148
218278
|
return { agreement: "Apple Developer Program License Agreement", acceptAt: [ACCOUNT_URL], who: "the team's Account Holder" };
|
|
218149
218279
|
}
|
|
218150
|
-
if (/REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED/.test(
|
|
218280
|
+
if (/REQUIRED_AGREEMENTS_MISSING_OR_EXPIRED/.test(code3)) {
|
|
218151
218281
|
return {
|
|
218152
218282
|
agreement: "a required agreement: the Program License Agreement, or the Paid Applications Agreement for paid apps and in-app purchases",
|
|
218153
218283
|
acceptAt: [ACCOUNT_URL, BUSINESS_URL],
|
|
@@ -227341,20 +227471,20 @@ var init_actions_products = __esm({
|
|
|
227341
227471
|
scope: (p2) => p2.appId,
|
|
227342
227472
|
async plan({ api: api4 }, p2) {
|
|
227343
227473
|
await ownedSubscription(api4, p2.appId, p2.subscriptionId);
|
|
227344
|
-
const
|
|
227345
|
-
if (!
|
|
227474
|
+
const code3 = (await api4.subscriptions.offerCodes(p2.subscriptionId)).find((c2) => c2.id === p2.offerCodeId);
|
|
227475
|
+
if (!code3)
|
|
227346
227476
|
throw new AscError("notFound", `${p2.offerCodeId} is not an offer code of subscription ${p2.subscriptionId}`);
|
|
227347
|
-
if (
|
|
227348
|
-
return noop6("subscriptionOfferCodes", `${
|
|
227349
|
-
return { changes: [{ op: "update", resource: "subscriptionOfferCodes", id: p2.offerCodeId, summary: `${
|
|
227477
|
+
if (code3.active === p2.active)
|
|
227478
|
+
return noop6("subscriptionOfferCodes", `${code3.name} is already ${p2.active ? "on" : "off"}`);
|
|
227479
|
+
return { changes: [{ op: "update", resource: "subscriptionOfferCodes", id: p2.offerCodeId, summary: `${code3.name}: ${p2.active ? "on" : "off"}` }], sideEffects: p2.active ? [] : ["its codes stop working"], facts: { active: code3.active ?? null } };
|
|
227350
227480
|
},
|
|
227351
227481
|
async apply({ api: api4 }, p2) {
|
|
227352
227482
|
await api4.subscriptions.setOfferCodeActive(p2.offerCodeId, p2.active);
|
|
227353
227483
|
return { ids: [p2.offerCodeId], detail: p2.active ? "on" : "off" };
|
|
227354
227484
|
},
|
|
227355
227485
|
async verify({ api: api4 }, p2) {
|
|
227356
|
-
const
|
|
227357
|
-
return { ok:
|
|
227486
|
+
const code3 = (await api4.subscriptions.offerCodes(p2.subscriptionId)).find((c2) => c2.id === p2.offerCodeId);
|
|
227487
|
+
return { ok: code3?.active === p2.active, detail: `active is ${String(code3?.active)}` };
|
|
227358
227488
|
}
|
|
227359
227489
|
};
|
|
227360
227490
|
[uploadSubscriptionReviewScreenshot, deleteSubscriptionReviewScreenshot] = reviewScreenshotActions({
|
|
@@ -227457,20 +227587,20 @@ var init_actions_products = __esm({
|
|
|
227457
227587
|
scope: (p2) => p2.appId,
|
|
227458
227588
|
async plan({ api: api4 }, p2) {
|
|
227459
227589
|
await ownedIap(api4, p2.appId, p2.iapId);
|
|
227460
|
-
const
|
|
227461
|
-
if (!
|
|
227590
|
+
const code3 = (await api4.iap.offerCodes(p2.iapId)).find((c2) => c2.id === p2.offerCodeId);
|
|
227591
|
+
if (!code3)
|
|
227462
227592
|
throw new AscError("notFound", `${p2.offerCodeId} is not an offer code of in-app purchase ${p2.iapId}`);
|
|
227463
|
-
if (
|
|
227464
|
-
return noop6("inAppPurchaseOfferCodes", `${
|
|
227465
|
-
return { changes: [{ op: "update", resource: "inAppPurchaseOfferCodes", id: p2.offerCodeId, summary: `${
|
|
227593
|
+
if (code3.active === p2.active)
|
|
227594
|
+
return noop6("inAppPurchaseOfferCodes", `${code3.name} is already ${p2.active ? "on" : "off"}`);
|
|
227595
|
+
return { changes: [{ op: "update", resource: "inAppPurchaseOfferCodes", id: p2.offerCodeId, summary: `${code3.name}: ${p2.active ? "on" : "off"}` }], sideEffects: p2.active ? [] : ["its codes stop working"], facts: { active: code3.active ?? null } };
|
|
227466
227596
|
},
|
|
227467
227597
|
async apply({ api: api4 }, p2) {
|
|
227468
227598
|
await api4.iap.setOfferCodeActive(p2.offerCodeId, p2.active);
|
|
227469
227599
|
return { ids: [p2.offerCodeId], detail: p2.active ? "on" : "off" };
|
|
227470
227600
|
},
|
|
227471
227601
|
async verify({ api: api4 }, p2) {
|
|
227472
|
-
const
|
|
227473
|
-
return { ok:
|
|
227602
|
+
const code3 = (await api4.iap.offerCodes(p2.iapId)).find((c2) => c2.id === p2.offerCodeId);
|
|
227603
|
+
return { ok: code3?.active === p2.active, detail: `active is ${String(code3?.active)}` };
|
|
227474
227604
|
}
|
|
227475
227605
|
};
|
|
227476
227606
|
PRODUCT_ACTIONS = Object.fromEntries([createSubscriptionGroup, localizeSubscriptionGroup, deleteSubscriptionGroup, attachSubscriptionToReview, updateSubscription, deleteSubscription, createSubscriptionVersion, localizeSubscription, deleteSubscriptionLocalization, priceSubscription, equalizeSubscription, setSubscriptionAvailability, createIntroOffer, deleteIntroOffer, createPromoOffer, deletePromoOffer, createSubscriptionOfferCode, setSubscriptionOfferCodeActive, uploadSubscriptionReviewScreenshot, deleteSubscriptionReviewScreenshot, updateIap, createIapVersion, createIapOfferCode, setIapOfferCodeActive, uploadIapReviewScreenshot, deleteIapReviewScreenshot].map((a3) => [a3.name, a3]));
|
|
@@ -228438,8 +228568,8 @@ function appleRefreshPartsOf(values, fallback) {
|
|
|
228438
228568
|
}
|
|
228439
228569
|
function appleRefreshReason(e2) {
|
|
228440
228570
|
const message5 = scrubSecrets(e2 instanceof Error ? e2.message : String(e2));
|
|
228441
|
-
const
|
|
228442
|
-
return `${
|
|
228571
|
+
const code3 = e2 instanceof AscError ? e2.kind : /fetch failed|ECONNRESET|ENOTFOUND|ETIMEDOUT|socket hang up/i.test(message5) ? "network" : "error";
|
|
228572
|
+
return `${code3}: ${message5}`;
|
|
228443
228573
|
}
|
|
228444
228574
|
async function listedVersions(api4, appId3) {
|
|
228445
228575
|
const out2 = [];
|
|
@@ -231733,9 +231863,9 @@ function selectAppleCode(rows, cutoffMs) {
|
|
|
231733
231863
|
for (const row2 of sorted3) {
|
|
231734
231864
|
if (messagesDateToMs(row2.date) < cutoffMs)
|
|
231735
231865
|
continue;
|
|
231736
|
-
const
|
|
231737
|
-
if (
|
|
231738
|
-
return
|
|
231866
|
+
const code3 = codeFromRow(row2);
|
|
231867
|
+
if (code3)
|
|
231868
|
+
return code3;
|
|
231739
231869
|
}
|
|
231740
231870
|
return void 0;
|
|
231741
231871
|
}
|
|
@@ -231761,12 +231891,12 @@ function resolveMessagesDb(raw, home2 = homedir14()) {
|
|
|
231761
231891
|
} catch (e2) {
|
|
231762
231892
|
if (e2 instanceof MessagesCodeError)
|
|
231763
231893
|
throw e2;
|
|
231764
|
-
const
|
|
231765
|
-
if (
|
|
231894
|
+
const code3 = e2.code;
|
|
231895
|
+
if (code3 === "ENOENT")
|
|
231766
231896
|
throw new MessagesCodeError(`no Messages database at ${path2}; use --db to point at chat.db, and make sure Messages is set up on this Mac`);
|
|
231767
|
-
if (
|
|
231897
|
+
if (code3 === "EACCES" || code3 === "EPERM")
|
|
231768
231898
|
throw privacyError(path2);
|
|
231769
|
-
throw new MessagesCodeError(`cannot inspect the Messages database ${path2} (${
|
|
231899
|
+
throw new MessagesCodeError(`cannot inspect the Messages database ${path2} (${code3 ?? "error"})`);
|
|
231770
231900
|
}
|
|
231771
231901
|
return path2;
|
|
231772
231902
|
}
|
|
@@ -231787,9 +231917,9 @@ async function waitForAppleCode(options2) {
|
|
|
231787
231917
|
throw privacyError(options2.db);
|
|
231788
231918
|
throw new MessagesCodeError(`cannot read the Messages database ${options2.db}: ${message5.split("\n")[0].slice(0, 200)}`);
|
|
231789
231919
|
}
|
|
231790
|
-
const
|
|
231791
|
-
if (
|
|
231792
|
-
return
|
|
231920
|
+
const code3 = selectAppleCode(parseMessagesRows(out2), options2.cutoffMs);
|
|
231921
|
+
if (code3)
|
|
231922
|
+
return code3;
|
|
231793
231923
|
if (now() + pollMs > deadline) {
|
|
231794
231924
|
throw new MessagesCodeError(`no Apple verification code in Messages within ${Math.round(options2.timeoutMs / 1e3)}s (accepting messages ${options2.window}); check that the code went by SMS and that iPhone Text Message Forwarding is on for this Mac`);
|
|
231795
231925
|
}
|
|
@@ -232027,10 +232157,10 @@ var init_session_transfer = __esm({
|
|
|
232027
232157
|
} catch (e2) {
|
|
232028
232158
|
if (e2 instanceof SessionStoreError)
|
|
232029
232159
|
throw e2;
|
|
232030
|
-
const
|
|
232031
|
-
if (
|
|
232160
|
+
const code3 = e2.code;
|
|
232161
|
+
if (code3 === "ENOENT" || code3 === "ENOTDIR")
|
|
232032
232162
|
return void 0;
|
|
232033
|
-
throw new SessionStoreError(`could not read the web session file ${path2} (${
|
|
232163
|
+
throw new SessionStoreError(`could not read the web session file ${path2} (${code3 ?? "error"})`);
|
|
232034
232164
|
} finally {
|
|
232035
232165
|
if (fd !== void 0)
|
|
232036
232166
|
closeSync11(fd);
|
|
@@ -232646,7 +232776,7 @@ function startAttempt(input) {
|
|
|
232646
232776
|
appleId: input.appleId,
|
|
232647
232777
|
previous: input.previous,
|
|
232648
232778
|
password: input.password,
|
|
232649
|
-
answer: (
|
|
232779
|
+
answer: (code3) => take()?.resolve(code3),
|
|
232650
232780
|
cancel: () => {
|
|
232651
232781
|
stop2.abort();
|
|
232652
232782
|
take()?.reject(new Cancelled());
|
|
@@ -232804,13 +232934,13 @@ async function runConnectFlow(opts) {
|
|
|
232804
232934
|
password = "";
|
|
232805
232935
|
return settle3(next);
|
|
232806
232936
|
}
|
|
232807
|
-
const
|
|
232937
|
+
const code3 = (form.get("code") ?? "").replace(/\s+/g, "");
|
|
232808
232938
|
form.delete("code");
|
|
232809
|
-
if (!new RegExp(`^\\d{${st2.prompt.length}}$`).test(
|
|
232939
|
+
if (!new RegExp(`^\\d{${st2.prompt.length}}$`).test(code3)) {
|
|
232810
232940
|
state = { ...st2, error: { kind: "code", text: `Enter the ${st2.prompt.length}-digit code, digits only.` } };
|
|
232811
232941
|
return show2();
|
|
232812
232942
|
}
|
|
232813
|
-
st2.attempt.answer(
|
|
232943
|
+
st2.attempt.answer(code3);
|
|
232814
232944
|
return settle3(st2.attempt);
|
|
232815
232945
|
}
|
|
232816
232946
|
async function signedIn(session) {
|
|
@@ -235038,8 +235168,8 @@ async function browserLogin(inv) {
|
|
|
235038
235168
|
}
|
|
235039
235169
|
io2.stderr(`Error: ${result.reason}
|
|
235040
235170
|
`);
|
|
235041
|
-
const
|
|
235042
|
-
io2.stdout(`${JSON.stringify({ status: result.status, code:
|
|
235171
|
+
const code3 = browserFailed ? "connect_browser_unavailable" : result.status === "abandoned" ? "connect_abandoned" : "connect_failed";
|
|
235172
|
+
io2.stdout(`${JSON.stringify({ status: result.status, code: code3, reason: result.reason })}
|
|
235043
235173
|
`);
|
|
235044
235174
|
return ExitCode.Auth;
|
|
235045
235175
|
}
|
|
@@ -237663,13 +237793,13 @@ async function startCallback(timeoutMs) {
|
|
|
237663
237793
|
if (!expected || state !== expected)
|
|
237664
237794
|
return send2(page(400, "This sign-in link does not match the one asc-node started. Run the command again."));
|
|
237665
237795
|
const error = url.searchParams.get("error");
|
|
237666
|
-
const
|
|
237667
|
-
if (error || !
|
|
237796
|
+
const code3 = url.searchParams.get("code");
|
|
237797
|
+
if (error || !code3) {
|
|
237668
237798
|
send2(page(400, "Sign-in did not finish. You can close this tab."));
|
|
237669
237799
|
return settle3.reject(new AscError("auth", `sign-in was not completed (${error ?? "no code"})`));
|
|
237670
237800
|
}
|
|
237671
237801
|
send2(page(200, "Signed in. You can close this tab and go back to the terminal."));
|
|
237672
|
-
settle3.resolve(
|
|
237802
|
+
settle3.resolve(code3);
|
|
237673
237803
|
});
|
|
237674
237804
|
await new Promise((resolve133) => server.listen(0, "127.0.0.1", resolve133));
|
|
237675
237805
|
const port = server.address().port;
|
|
@@ -237790,7 +237920,7 @@ var init_gateway_auth = __esm({
|
|
|
237790
237920
|
authorize.searchParams.set("state", state);
|
|
237791
237921
|
if (resource.resource)
|
|
237792
237922
|
authorize.searchParams.set("resource", resource.resource);
|
|
237793
|
-
const
|
|
237923
|
+
const code3 = callback.code(state);
|
|
237794
237924
|
let opened = false;
|
|
237795
237925
|
if (this.options.openBrowser) {
|
|
237796
237926
|
opened = await this.options.openBrowser(authorize.toString()).then(() => true, () => false);
|
|
@@ -237798,7 +237928,7 @@ var init_gateway_auth = __esm({
|
|
|
237798
237928
|
this.options.stderr(opened ? "Signing in to the worker's gateway in your browser\u2026\n" : `Open this address to sign in to the worker's gateway:
|
|
237799
237929
|
${authorize}
|
|
237800
237930
|
`);
|
|
237801
|
-
const got = await
|
|
237931
|
+
const got = await code3;
|
|
237802
237932
|
const form = new URLSearchParams({ grant_type: "authorization_code", code: got, redirect_uri: callback.redirect, client_id: clientId, code_verifier: verifier2 });
|
|
237803
237933
|
if (resource.resource)
|
|
237804
237934
|
form.set("resource", resource.resource);
|
|
@@ -238540,9 +238670,9 @@ ${command.summary}
|
|
|
238540
238670
|
throw new UsageError("--dry-run and --confirm cannot be combined");
|
|
238541
238671
|
const format = parseFormat(opts.output, io2.isTTY);
|
|
238542
238672
|
ctx = new Context({ profile: opts.profile, policy: opts.policy, worker: opts.worker, msid: opts.msid, wixAccount: opts["wix-account"], readOnly: opts["read-only"] === true, baseUrl: opts["base-url"], actor: opts.actor, stateDir: opts["state-dir"], recordDir: opts["record-dir"], appKey: opts["app-key"], noRecord: opts["no-record"] === true }, io2);
|
|
238543
|
-
const
|
|
238673
|
+
const code3 = await command.run({ ctx, args: parsed.positionals, opts, format, print: (data, columns) => io2.stdout(render2(data, format, columns) + "\n") });
|
|
238544
238674
|
await ctx.flushSessionSaves();
|
|
238545
|
-
return
|
|
238675
|
+
return code3 ?? ExitCode.Success;
|
|
238546
238676
|
} catch (e2) {
|
|
238547
238677
|
await ctx?.flushSessionSaves();
|
|
238548
238678
|
return report2(e2, io2);
|
|
@@ -241557,7 +241687,7 @@ async function cliRead(ctx, argv, options2 = {}) {
|
|
|
241557
241687
|
...ctx.flags.msid ? [`--msid=${ctx.flags.msid}`] : ctx.flags.wixAccount ? [`--wix-account=${ctx.flags.wixAccount}`] : [],
|
|
241558
241688
|
...options2.web ? [`--apple-id=${options2.web}`] : []
|
|
241559
241689
|
];
|
|
241560
|
-
const
|
|
241690
|
+
const code3 = await run([...argv, ...flags], {
|
|
241561
241691
|
...ctx.io,
|
|
241562
241692
|
env: { ...ctx.io.env, ASC_ACTOR: ctx.actor.actor, ...ctx.flags.profile ? { ASC_PROFILE: ctx.flags.profile } : {}, ...ctx.flags.stateDir ? { ASC_NODE_HOME: ctx.flags.stateDir } : {} },
|
|
241563
241693
|
stdout: (t2) => void (stdout += t2),
|
|
@@ -241573,16 +241703,16 @@ async function cliRead(ctx, argv, options2 = {}) {
|
|
|
241573
241703
|
} catch {
|
|
241574
241704
|
parsed = void 0;
|
|
241575
241705
|
}
|
|
241576
|
-
if (
|
|
241577
|
-
const message5 = stderr.split("\n").find((l3) => l3.startsWith("Error: "))?.slice(7) ?? (stderr.trim() || `asc-node ${argv.slice(0, 3).join(" ")} exited ${
|
|
241578
|
-
if (options2.web &&
|
|
241706
|
+
if (code3 !== 0 && !((options2.okCodes ?? []).includes(code3) && parsed !== void 0)) {
|
|
241707
|
+
const message5 = stderr.split("\n").find((l3) => l3.startsWith("Error: "))?.slice(7) ?? (stderr.trim() || `asc-node ${argv.slice(0, 3).join(" ")} exited ${code3}`);
|
|
241708
|
+
if (options2.web && code3 === 3)
|
|
241579
241709
|
throw new CredentialError(`the web session for ${options2.web} did not work: ${message5}. ${signInHint(options2.web)}`, "web", "invalid");
|
|
241580
241710
|
const text32 = notes.length ? `${message5}
|
|
241581
241711
|
${notes.join("\n")}` : message5;
|
|
241582
|
-
const kind = EXIT_KINDS[
|
|
241712
|
+
const kind = EXIT_KINDS[code3];
|
|
241583
241713
|
throw kind ? new AscError(kind, text32) : new Error(text32);
|
|
241584
241714
|
}
|
|
241585
|
-
return { data: parsed !== void 0 ? parsed : stdout.trim() || null, notes, code:
|
|
241715
|
+
return { data: parsed !== void 0 ? parsed : stdout.trim() || null, notes, code: code3 };
|
|
241586
241716
|
}
|
|
241587
241717
|
function cliTool(def2) {
|
|
241588
241718
|
return {
|
|
@@ -241858,7 +241988,7 @@ var init_tools2 = __esm({
|
|
|
241858
241988
|
noAppleId = () => new CredentialError(`this tool needs an Apple ID web session and no Apple ID is configured: set ASC_APPLE_ID in the MCP server's environment (or pass appleId). ${signInHint()}`, "web", "notFound");
|
|
241859
241989
|
EXIT_KINDS = { 2: "invalid", 3: "auth", 4: "notFound", 5: "conflict", 6: "readOnly" };
|
|
241860
241990
|
notesOf2 = (stderr) => stderr.split("\n").map((l3) => l3.trim()).filter((l3) => /^(Note|Warning|Pending):/.test(l3));
|
|
241861
|
-
cliResult = ({ data, notes, code:
|
|
241991
|
+
cliResult = ({ data, notes, code: code3 }) => ok2({ ...Array.isArray(data) || data === null || typeof data !== "object" ? { items: data } : data, ...code3 === 1 ? { complete: false } : {}, ...notes.length ? { notes } : {} });
|
|
241862
241992
|
flag2 = (name, value2) => value2 === void 0 || value2 === null || value2 === "" ? [] : [`--${name}=${String(value2)}`];
|
|
241863
241993
|
ACTIONS = ACTION_CATALOG;
|
|
241864
241994
|
FAMILIES = {
|
|
@@ -242407,9 +242537,9 @@ async function recordApplied(ctx, google, job, ref) {
|
|
|
242407
242537
|
}
|
|
242408
242538
|
function androidError(e2) {
|
|
242409
242539
|
const err = asJobError(e2);
|
|
242410
|
-
const
|
|
242411
|
-
if (
|
|
242412
|
-
return { content: [{ type: "text", text: `${
|
|
242540
|
+
const code3 = err instanceof StoreRefusal ? err.code : jobErrorCode(err);
|
|
242541
|
+
if (code3)
|
|
242542
|
+
return { content: [{ type: "text", text: `${code3}: ${err.message}` }], isError: true };
|
|
242413
242543
|
return toolError(err);
|
|
242414
242544
|
}
|
|
242415
242545
|
function googleHostOf(google) {
|
|
@@ -242642,9 +242772,9 @@ var init_store_android = __esm({
|
|
|
242642
242772
|
({ join: join134 } = __ascBuiltin39);
|
|
242643
242773
|
StoreRefusal = class extends Error {
|
|
242644
242774
|
code;
|
|
242645
|
-
constructor(
|
|
242775
|
+
constructor(code3, message5) {
|
|
242646
242776
|
super(message5);
|
|
242647
|
-
this.code =
|
|
242777
|
+
this.code = code3;
|
|
242648
242778
|
this.name = "StoreRefusal";
|
|
242649
242779
|
}
|
|
242650
242780
|
};
|
|
@@ -243899,8 +244029,8 @@ function wixIapProviderConnector(call, route) {
|
|
|
243899
244029
|
};
|
|
243900
244030
|
}
|
|
243901
244031
|
function refusalCode(error) {
|
|
243902
|
-
const
|
|
243903
|
-
return typeof
|
|
244032
|
+
const code3 = error?.body?.details?.applicationError?.code;
|
|
244033
|
+
return typeof code3 === "string" ? code3 : void 0;
|
|
243904
244034
|
}
|
|
243905
244035
|
function allPages(call, path2, field) {
|
|
243906
244036
|
return allCursorPages(call, path2, field, "the purchases service", (cursor) => ({ query: { cursorPaging: { limit: PAGE, ...cursor ? { cursor } : {} } } }));
|
|
@@ -244162,10 +244292,10 @@ function openBrowserStrict(url, platform = process.platform, timeoutMs = 1e4) {
|
|
|
244162
244292
|
clearTimeout(timer);
|
|
244163
244293
|
reject(e2);
|
|
244164
244294
|
});
|
|
244165
|
-
child3.once("exit", (
|
|
244295
|
+
child3.once("exit", (code3) => {
|
|
244166
244296
|
clearTimeout(timer);
|
|
244167
|
-
if (
|
|
244168
|
-
else reject(new Error(`${cmd} exited ${
|
|
244297
|
+
if (code3 === 0) resolveOpen();
|
|
244298
|
+
else reject(new Error(`${cmd} exited ${code3}`));
|
|
244169
244299
|
});
|
|
244170
244300
|
} catch (e2) {
|
|
244171
244301
|
reject(e2);
|
|
@@ -244699,9 +244829,9 @@ var init_store_host = __esm({
|
|
|
244699
244829
|
STORE_FACTS_FILE = "store/app-store.json";
|
|
244700
244830
|
GENERATED_PRIVACY_FILE = join135(".himi", "store-privacy.json");
|
|
244701
244831
|
StoreFactsError = class extends Error {
|
|
244702
|
-
constructor(message5,
|
|
244832
|
+
constructor(message5, code3) {
|
|
244703
244833
|
super(message5);
|
|
244704
|
-
this.code =
|
|
244834
|
+
this.code = code3;
|
|
244705
244835
|
}
|
|
244706
244836
|
};
|
|
244707
244837
|
FILE_FACTS = ["ipaPath", "metadataFile", "screenshotsDir", "reviewDetailsFile", "privacyAnswersFile"];
|
|
@@ -244711,9 +244841,9 @@ var init_store_host = __esm({
|
|
|
244711
244841
|
SLOT_TAKEN_REASON = "This site's App Store slot belongs to another app (a Wix site has one App Store app, and another app on it holds that slot); v1 can't connect it. Use a site whose App Store slot is free, or ask Wix support to move the slot.";
|
|
244712
244842
|
LINK_FIRST_REASON = "This app is not linked to the site yet, so Wix cannot tell whether another app holds the site's App Store slot. Link it first with `himi store app set --app <id> --site <msid> --android-package himi.<name>`, then connect again.";
|
|
244713
244843
|
ConnectRefused = class extends Error {
|
|
244714
|
-
constructor(message5,
|
|
244844
|
+
constructor(message5, code3) {
|
|
244715
244845
|
super(message5);
|
|
244716
|
-
this.code =
|
|
244846
|
+
this.code = code3;
|
|
244717
244847
|
}
|
|
244718
244848
|
};
|
|
244719
244849
|
STORE_FACTS_EXAMPLE = {
|
|
@@ -244962,9 +245092,9 @@ __export(store_agent_exports, {
|
|
|
244962
245092
|
});
|
|
244963
245093
|
import { createInterface as createInterface2 } from "node:readline/promises";
|
|
244964
245094
|
import { resolve as resolve88 } from "node:path";
|
|
244965
|
-
function fail6(io2,
|
|
244966
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
244967
|
-
return
|
|
245095
|
+
function fail6(io2, code3, error, extra = {}) {
|
|
245096
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error: scrubSecretShapes(error), ...extra }));
|
|
245097
|
+
return code3 === "invalid_usage" || code3 === "confirmation_required" ? 2 : 1;
|
|
244968
245098
|
}
|
|
244969
245099
|
function scrubStrings(value2) {
|
|
244970
245100
|
if (typeof value2 === "string") return scrubSecretShapes(value2);
|
|
@@ -245168,9 +245298,9 @@ async function runStoreAgent(pos, flags, io2, deps = {}) {
|
|
|
245168
245298
|
result = await tool2.handler(tool2.inputSchema.parse(args), ctx, host, { signal: abort.signal, progress: log });
|
|
245169
245299
|
} catch (e2) {
|
|
245170
245300
|
if (android2 && !(e2 instanceof StoreFactsError) && !(e2 instanceof UsageError3)) {
|
|
245171
|
-
const
|
|
245301
|
+
const code3 = e2 instanceof rt2.mcp.StoreRefusal ? e2.code : rt2.jobs.jobErrorCode(e2);
|
|
245172
245302
|
const message5 = e2.message ?? String(e2);
|
|
245173
|
-
return fail6(io2, "store_tool_failed",
|
|
245303
|
+
return fail6(io2, "store_tool_failed", code3 ? `${code3}: ${message5}` : message5);
|
|
245174
245304
|
}
|
|
245175
245305
|
throw e2;
|
|
245176
245306
|
} finally {
|
|
@@ -245301,9 +245431,9 @@ __export(store_record_exports2, {
|
|
|
245301
245431
|
});
|
|
245302
245432
|
import { existsSync as existsSync105, mkdirSync as mkdirSync50, readFileSync as readFileSync127, renameSync as renameSync19, writeFileSync as writeFileSync48 } from "node:fs";
|
|
245303
245433
|
import { join as join136, relative as relative27, resolve as resolve89 } from "node:path";
|
|
245304
|
-
function fail7(io2,
|
|
245305
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
245306
|
-
return
|
|
245434
|
+
function fail7(io2, code3, error, extra = {}) {
|
|
245435
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error: scrubSecretShapes(error), ...extra }));
|
|
245436
|
+
return code3 === "invalid_usage" ? 2 : 1;
|
|
245307
245437
|
}
|
|
245308
245438
|
async function storeIdentityOf(dir, flags = {}, deps = {}) {
|
|
245309
245439
|
const readOther = (read2, own6) => {
|
|
@@ -245398,15 +245528,15 @@ function serveRecordRemote(o2) {
|
|
|
245398
245528
|
}
|
|
245399
245529
|
};
|
|
245400
245530
|
const refused2 = async (r3, what) => {
|
|
245401
|
-
let
|
|
245531
|
+
let code3;
|
|
245402
245532
|
let message5;
|
|
245403
245533
|
try {
|
|
245404
245534
|
const body = await r3.json();
|
|
245405
|
-
|
|
245535
|
+
code3 = typeof body.code === "string" ? body.code : typeof body.error === "string" ? body.error : void 0;
|
|
245406
245536
|
message5 = typeof body.message === "string" ? body.message : void 0;
|
|
245407
245537
|
} catch {
|
|
245408
245538
|
}
|
|
245409
|
-
return new RecordRemoteError(scrubSecretShapes(`${what}: serve answered ${r3.status}${
|
|
245539
|
+
return new RecordRemoteError(scrubSecretShapes(`${what}: serve answered ${r3.status}${code3 ? ` ${code3}` : ""}${message5 ? ` (${message5})` : ""}`), r3.status, code3);
|
|
245410
245540
|
};
|
|
245411
245541
|
const json9 = async (r3, what) => {
|
|
245412
245542
|
try {
|
|
@@ -245925,10 +246055,10 @@ var init_store_record2 = __esm({
|
|
|
245925
246055
|
}
|
|
245926
246056
|
};
|
|
245927
246057
|
RecordRemoteError = class extends Error {
|
|
245928
|
-
constructor(message5, status2,
|
|
246058
|
+
constructor(message5, status2, code3) {
|
|
245929
246059
|
super(message5);
|
|
245930
246060
|
this.status = status2;
|
|
245931
|
-
this.code =
|
|
246061
|
+
this.code = code3;
|
|
245932
246062
|
}
|
|
245933
246063
|
};
|
|
245934
246064
|
uploadChains = /* @__PURE__ */ new Map();
|
|
@@ -246110,7 +246240,7 @@ async function startMcpServer(opts) {
|
|
|
246110
246240
|
const finished = await (store?.settle?.(opts.storeGraceMs ?? STORE_PUSH_GRACE_MS) ?? Promise.resolve(true)).catch(() => true);
|
|
246111
246241
|
if (!finished) store?.interrupt?.();
|
|
246112
246242
|
await handle.close().catch(() => void 0);
|
|
246113
|
-
if (!finished) (opts.exit ?? ((
|
|
246243
|
+
if (!finished) (opts.exit ?? ((code3) => process.exit(code3)))(0);
|
|
246114
246244
|
}
|
|
246115
246245
|
var SERVER_INSTRUCTIONS, GOOGLE_STORE_INSTRUCTIONS, STORE_PUSH_GRACE_MS;
|
|
246116
246246
|
var init_server2 = __esm({
|
|
@@ -246129,8 +246259,8 @@ var init_server2 = __esm({
|
|
|
246129
246259
|
// src/ux-audit.ts
|
|
246130
246260
|
import { existsSync as existsSync108, readFileSync as readFileSync129, readdirSync as readdirSync50 } from "node:fs";
|
|
246131
246261
|
import { join as join140, relative as relative28, resolve as resolve92 } from "node:path";
|
|
246132
|
-
function issue2(issues, strict,
|
|
246133
|
-
issues.push({ code:
|
|
246262
|
+
function issue2(issues, strict, code3, message5, path2) {
|
|
246263
|
+
issues.push({ code: code3, message: message5, ...path2 ? { path: path2 } : {}, severity: strict ? "error" : "warning" });
|
|
246134
246264
|
}
|
|
246135
246265
|
function readText2(path2) {
|
|
246136
246266
|
try {
|
|
@@ -246159,8 +246289,8 @@ function blankMatrixRows(text32) {
|
|
|
246159
246289
|
return /\|\s*(?:Ready|Empty|Add\s*\/\s*edit|Saved\s*\/\s*completed|Error\s*\/\s*recovery)\s*\|\s*\|\s*\|\s*\|\s*\|/i.test(acceptance);
|
|
246160
246290
|
}
|
|
246161
246291
|
function usesAppNetwork(source2) {
|
|
246162
|
-
const
|
|
246163
|
-
return source2.some(({ text: text32 }) => /\bwixApi\b|(?:from|import)\s*["']@(?:himalaya|wix\/himalaya)\/wix-[^"']+["']/.test(
|
|
246292
|
+
const code3 = (text32) => text32.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");
|
|
246293
|
+
return source2.some(({ text: text32 }) => /\bwixApi\b|(?:from|import)\s*["']@(?:himalaya|wix\/himalaya)\/wix-[^"']+["']/.test(code3(text32)));
|
|
246164
246294
|
}
|
|
246165
246295
|
function auditUx(content, strict = false) {
|
|
246166
246296
|
const dir = resolve92(content);
|
|
@@ -246304,11 +246434,37 @@ __export(input_evidence_isolation_exports, {
|
|
|
246304
246434
|
runInputEvidenceChild: () => runInputEvidenceChild
|
|
246305
246435
|
});
|
|
246306
246436
|
async function installInputEvidenceIsolation(dir) {
|
|
246307
|
-
const { lstatSync: lstatSync42, readdirSync: readdirSync67 } = await import("node:fs");
|
|
246308
|
-
const { join: join213 } = await import("node:path");
|
|
246437
|
+
const { lstatSync: lstatSync42, readdirSync: readdirSync67, readlinkSync: readlinkSync3, realpathSync: realpathSync26 } = await import("node:fs");
|
|
246438
|
+
const { dirname: dirname91, isAbsolute: isAbsolute23, join: join213, relative: relative40, resolve: resolve133, sep: sep37 } = await import("node:path");
|
|
246439
|
+
const root = resolve133(dir);
|
|
246440
|
+
const privateDir = join213(root, ".himi");
|
|
246441
|
+
const privateReal = join213(realpathSync26(root), ".himi") + sep37;
|
|
246442
|
+
const within2 = (base2, path2) => {
|
|
246443
|
+
const rel2 = relative40(base2, path2);
|
|
246444
|
+
return !!rel2 && rel2 !== ".." && !rel2.startsWith(`..${sep37}`) && !isAbsolute23(rel2);
|
|
246445
|
+
};
|
|
246446
|
+
const recording = join213(dir, "dev", "net-mocks.json");
|
|
246447
|
+
const isAllowedLink = (path2) => {
|
|
246448
|
+
try {
|
|
246449
|
+
if (path2 === recording) {
|
|
246450
|
+
const link4 = readlinkSync3(path2);
|
|
246451
|
+
if (isAbsolute23(link4)) return false;
|
|
246452
|
+
const target = resolve133(dirname91(path2), link4);
|
|
246453
|
+
if (!within2(privateDir, target)) return false;
|
|
246454
|
+
if (realpathSync26(path2) !== join213(realpathSync26(root), relative40(root, target))) return false;
|
|
246455
|
+
return lstatSync42(target).isFile();
|
|
246456
|
+
}
|
|
246457
|
+
return within2(privateDir, resolve133(path2)) && realpathSync26(path2).startsWith(privateReal);
|
|
246458
|
+
} catch {
|
|
246459
|
+
return false;
|
|
246460
|
+
}
|
|
246461
|
+
};
|
|
246309
246462
|
const check = (path2) => {
|
|
246310
246463
|
const stat10 = lstatSync42(path2);
|
|
246311
|
-
if (stat10.isSymbolicLink())
|
|
246464
|
+
if (stat10.isSymbolicLink()) {
|
|
246465
|
+
if (isAllowedLink(path2)) return;
|
|
246466
|
+
throw new Error("input evidence requires a content tree without symlinks");
|
|
246467
|
+
}
|
|
246312
246468
|
if (stat10.isDirectory()) for (const name of readdirSync67(path2)) check(join213(path2, name));
|
|
246313
246469
|
};
|
|
246314
246470
|
check(dir);
|
|
@@ -246852,8 +247008,8 @@ async function probeAuthoringPage(authoringBase, fetchImpl = fetch, timeoutMs =
|
|
|
246852
247008
|
try {
|
|
246853
247009
|
res = await fetchImpl(url, { method: "GET", signal: AbortSignal.timeout(timeoutMs) });
|
|
246854
247010
|
} catch (e2) {
|
|
246855
|
-
const
|
|
246856
|
-
if (isLoopbackOrigin(url) &&
|
|
247011
|
+
const code3 = e2?.cause?.code;
|
|
247012
|
+
if (isLoopbackOrigin(url) && code3 === "ECONNREFUSED") {
|
|
246857
247013
|
return `${url} refused the connection (ECONNREFUSED) \u2014 nothing is listening there. ${POINT_ELSEWHERE}`;
|
|
246858
247014
|
}
|
|
246859
247015
|
return null;
|
|
@@ -249149,7 +249305,7 @@ var init_shot_files = __esm({
|
|
|
249149
249305
|
RENDERS_PER_SCREEN = 10;
|
|
249150
249306
|
RENDERS_GRACE_MS = 15 * 6e4;
|
|
249151
249307
|
STALE_TMP_MS = 60 * 6e4;
|
|
249152
|
-
RENDER_NAME = /^[0-9a-f]{16}
|
|
249308
|
+
RENDER_NAME = /^[0-9a-f]{16}(?:-enter-\d|-pressed)?\.png$/;
|
|
249153
249309
|
}
|
|
249154
249310
|
});
|
|
249155
249311
|
|
|
@@ -249629,6 +249785,15 @@ function dataSourceHint(source2) {
|
|
|
249629
249785
|
return void 0;
|
|
249630
249786
|
}
|
|
249631
249787
|
}
|
|
249788
|
+
function renderMotionFlags(flags, wantPng) {
|
|
249789
|
+
const reduceMotion = flags["reduce-motion"] === true;
|
|
249790
|
+
const frames = flags.frames;
|
|
249791
|
+
if (frames !== void 0 && frames !== "entrance") return { error: `--frames takes "entrance" (got ${JSON.stringify(frames)})` };
|
|
249792
|
+
const entranceFrames = frames === "entrance";
|
|
249793
|
+
const pressedFrame = flags.pressed === true;
|
|
249794
|
+
if ((entranceFrames || pressedFrame) && !wantPng) return { error: "--frames and --pressed capture PNGs: pass --png <file> as well" };
|
|
249795
|
+
return { reduceMotion, entranceFrames, pressedFrame };
|
|
249796
|
+
}
|
|
249632
249797
|
function renderPlatform(explicit3) {
|
|
249633
249798
|
return explicit3 === "ios" || explicit3 === "android" ? explicit3 : void 0;
|
|
249634
249799
|
}
|
|
@@ -249671,6 +249836,10 @@ async function renderCommand(ctx) {
|
|
|
249671
249836
|
io2.error(JSON.stringify({ error: "render --remote cannot --dump-state: the serve plane has no worker runtime. Render locally to inspect state." }));
|
|
249672
249837
|
return 2;
|
|
249673
249838
|
}
|
|
249839
|
+
if (flags["reduce-motion"] === true || flags.frames !== void 0 || flags.pressed === true) {
|
|
249840
|
+
io2.error(JSON.stringify({ error: "render --remote cannot --reduce-motion, --frames or --pressed: the serve plane renders the converged screen only. Render locally for the motion captures." }));
|
|
249841
|
+
return 2;
|
|
249842
|
+
}
|
|
249674
249843
|
const app3 = str3(flags.app);
|
|
249675
249844
|
const release5 = str3(flags.release);
|
|
249676
249845
|
if (!app3 || !release5) {
|
|
@@ -249715,6 +249884,12 @@ async function renderCommand(ctx) {
|
|
|
249715
249884
|
const hydrate = flags.static !== true;
|
|
249716
249885
|
const live4 = flags.live === true;
|
|
249717
249886
|
const strict = flags.strict === true;
|
|
249887
|
+
const motionFlags = renderMotionFlags(flags, wantPng);
|
|
249888
|
+
if ("error" in motionFlags) {
|
|
249889
|
+
io2.error(JSON.stringify({ error: motionFlags.error }));
|
|
249890
|
+
return 2;
|
|
249891
|
+
}
|
|
249892
|
+
const { reduceMotion, entranceFrames, pressedFrame } = motionFlags;
|
|
249718
249893
|
if (live4 && flags.static === true) {
|
|
249719
249894
|
io2.error(JSON.stringify({ error: "--static and --live are mutually exclusive: --static renders raw bindings, --live renders real Wix data" }));
|
|
249720
249895
|
return 2;
|
|
@@ -249835,7 +250010,7 @@ async function renderCommand(ctx) {
|
|
|
249835
250010
|
...hasWorkers ? { tier5Dir: bundleOutDir2(dir) } : {},
|
|
249836
250011
|
// The settled state is always kept (printed only under --dump-state): it is what says whether
|
|
249837
250012
|
// the picture landed on the screen's content or on its error, loading or empty state.
|
|
249838
|
-
collect: { lint: true, strict, render: { screenId, scheme, png: wantPng, hydrate, dumpState: true, ...live4 ? { live: true } : {}, ...injectedState ? { state: injectedState } : {}, ...injectedInput ? { input: injectedInput } : {}, ...renderWidth ? { width: renderWidth } : {}, ...platform ? { platform } : {}, ...frame ? { frame: true } : {}, ...renderSurface ? { surface: renderSurface } : {}, ...flags.rtl === true ? { rtl: true } : {}, ...loadBudgetMs ? { loadBudgetMs } : {}, ...mocks ? { mocks: { rules: mocks.rules, cmsSeed: mocks.cmsSeed, ...mocks.base44Data ? { base44Data: mocks.base44Data } : {} } } : {} } }
|
|
250013
|
+
collect: { lint: true, strict, render: { screenId, scheme, png: wantPng, hydrate, dumpState: true, ...live4 ? { live: true } : {}, ...injectedState ? { state: injectedState } : {}, ...injectedInput ? { input: injectedInput } : {}, ...renderWidth ? { width: renderWidth } : {}, ...platform ? { platform } : {}, ...frame ? { frame: true } : {}, ...renderSurface ? { surface: renderSurface } : {}, ...flags.rtl === true ? { rtl: true } : {}, ...reduceMotion ? { reduceMotion: true } : {}, ...entranceFrames ? { entranceFrames: true } : {}, ...pressedFrame ? { pressedFrame: true } : {}, ...loadBudgetMs ? { loadBudgetMs } : {}, ...mocks ? { mocks: { rules: mocks.rules, cmsSeed: mocks.cmsSeed, ...mocks.base44Data ? { base44Data: mocks.base44Data } : {} } } : {} } }
|
|
249839
250014
|
});
|
|
249840
250015
|
const r3 = (outcome.renders ?? [])[0];
|
|
249841
250016
|
if (!r3) {
|
|
@@ -249858,6 +250033,9 @@ async function renderCommand(ctx) {
|
|
|
249858
250033
|
attestationPngFile = own6 ?? void 0;
|
|
249859
250034
|
pngFile = explicitPng ? writePngFile(explicitPng, r3.pngBase64) : attestationPngFile;
|
|
249860
250035
|
}
|
|
250036
|
+
const beside = (suffix) => pngFile ? pngFile.replace(/\.png$/i, "") + suffix + ".png" : void 0;
|
|
250037
|
+
const frameFiles = r3.entranceFramesBase64 && pngFile ? r3.entranceFramesBase64.map((b642, i2) => writePngFile(beside(`-enter-${i2}`), b642)) : void 0;
|
|
250038
|
+
const pressedFile = r3.pressedBase64 && pngFile ? writePngFile(beside("-pressed"), r3.pressedBase64) : void 0;
|
|
249861
250039
|
if (renderWidth !== void 0 && r3.renderable) {
|
|
249862
250040
|
recordRenderWidth(dir, {
|
|
249863
250041
|
screenId,
|
|
@@ -249892,6 +250070,11 @@ async function renderCommand(ctx) {
|
|
|
249892
250070
|
treeNote: "renderTree.props preserves authored raw bindings and stable structure; resolvedRenderTree contains hydrated values and expanded bound rows. stickyHeader/stickyFooter are painted around payload (position:sticky, matching ScreenHost / HimalayaScreenHost / ScreenStickyChrome). Use --dump-state for the complete worker snapshot."
|
|
249893
250071
|
} : {},
|
|
249894
250072
|
...pngFile ? { pngFile } : {},
|
|
250073
|
+
...reduceMotion ? { reduceMotion: true } : {},
|
|
250074
|
+
// A capture that failed says so; only a capture that ran and found nothing gets a note.
|
|
250075
|
+
...(entranceFrames || pressedFrame) && pngFile && r3.motionCaptureFailed ? { motionCaptureFailed: true, motionCaptureHint: "the headless browser could not capture the motion frames; the converged PNG is unaffected" } : {},
|
|
250076
|
+
...frameFiles ? { frameFiles } : entranceFrames && pngFile && !r3.motionCaptureFailed ? { frameFiles: [], framesNote: "the screen declares no entrance animation, so there is nothing to capture" } : {},
|
|
250077
|
+
...pressedFile ? { pressedFile } : pressedFrame && pngFile && !r3.motionCaptureFailed ? { pressedNote: "no node carries pressFeedback, so there is no pressed state to show" } : {},
|
|
249895
250078
|
...wantPng && r3.pngUnavailable ? { pngUnavailable: true, hint: `PNG needs a headless browser: run \`${(await Promise.resolve().then(() => (init_playwright_install(), playwright_install_exports))).playwrightInstallCommand()}\` (~170MB from the Playwright CDN), then re-run. Text render + diagnostics above work without it.` } : {},
|
|
249896
250079
|
...r3.nativeOnly?.length ? { nativeOnly: r3.nativeOnly, nativeOnlyHint: `these are native-only components (${r3.nativeOnly.join(", ")}) \u2014 they won't paint in the headless render/PNG (you'll see an empty box), but DO render on device. Not a bug; verify them on the pushed preview.` } : {},
|
|
249897
250080
|
diagnostics
|
|
@@ -250039,9 +250222,9 @@ var init_errors4 = __esm({
|
|
|
250039
250222
|
"src/one-app/errors.ts"() {
|
|
250040
250223
|
init_define_HHP_CATALOG();
|
|
250041
250224
|
OneAppError = class extends Error {
|
|
250042
|
-
constructor(
|
|
250225
|
+
constructor(code3, message5, details) {
|
|
250043
250226
|
super(message5);
|
|
250044
|
-
this.code =
|
|
250227
|
+
this.code = code3;
|
|
250045
250228
|
this.details = details;
|
|
250046
250229
|
this.name = "OneAppError";
|
|
250047
250230
|
}
|
|
@@ -250283,7 +250466,7 @@ async function uploadLargeAssets(client4, app2, uploads) {
|
|
|
250283
250466
|
let bytesUploaded = 0;
|
|
250284
250467
|
for (const u2 of uploads) {
|
|
250285
250468
|
const declaration2 = { app: app2, sha256: u2.sha256, bytes: u2.bytes, contentType: u2.contentType };
|
|
250286
|
-
const fail16 = (
|
|
250469
|
+
const fail16 = (code3, error, hint, extra = {}) => ({ ok: false, code: code3, error, sha256: u2.sha256, names: u2.names, ...extra, hint });
|
|
250287
250470
|
const first = await client4.largeAssetTarget(declaration2);
|
|
250288
250471
|
const j2 = first.json;
|
|
250289
250472
|
if (!first.ok) {
|
|
@@ -251548,8 +251731,8 @@ __export(push_errors_exports, {
|
|
|
251548
251731
|
pushFailure: () => pushFailure,
|
|
251549
251732
|
uxEvidenceCode: () => uxEvidenceCode
|
|
251550
251733
|
});
|
|
251551
|
-
function pushFailure(
|
|
251552
|
-
return { ...fields2, ok: false, code:
|
|
251734
|
+
function pushFailure(code3, fields2) {
|
|
251735
|
+
return { ...fields2, ok: false, code: code3 };
|
|
251553
251736
|
}
|
|
251554
251737
|
function uxEvidenceCode(state) {
|
|
251555
251738
|
return UX_CODES[state];
|
|
@@ -251584,8 +251767,8 @@ function federatedRefusal(status2, body, token, nowSec = Math.floor(Date.now() /
|
|
|
251584
251767
|
}
|
|
251585
251768
|
function base44ClaimRefusal(error) {
|
|
251586
251769
|
if (typeof error !== "string" || !(error in BASE44_CLAIM_CODES)) return void 0;
|
|
251587
|
-
const
|
|
251588
|
-
return { code:
|
|
251770
|
+
const code3 = error;
|
|
251771
|
+
return { code: code3, hint: BASE44_CLAIM_CODES[code3] };
|
|
251589
251772
|
}
|
|
251590
251773
|
async function base44AppIdForClaim(dir, token) {
|
|
251591
251774
|
const claims = token ? decodeControlTokenClaims(token) : null;
|
|
@@ -251780,14 +251963,14 @@ async function refreshStoredLogin(target, opts = {}) {
|
|
|
251780
251963
|
const stored = swapRefreshedLogin(target, before.refreshToken, { controlToken: body.token, refreshToken: body.refresh_token }, path2);
|
|
251781
251964
|
return stored ? { ok: true, refreshed: true } : { ok: true, refreshed: false };
|
|
251782
251965
|
}
|
|
251783
|
-
const
|
|
251784
|
-
if (
|
|
251966
|
+
const code3 = typeof body.code === "string" ? body.code : typeof body.error === "string" ? body.error : "";
|
|
251967
|
+
if (code3 === "federated_disabled") {
|
|
251785
251968
|
return { ok: false, code: "federated_disabled", error: "the plane does not accept sign-ins without a Wix account right now", hint: "sign in with a Wix account (`himi login --device --provider wix`) or try again later" };
|
|
251786
251969
|
}
|
|
251787
|
-
if (
|
|
251788
|
-
return { ok: false, code: "login_expired", error: `the stored login can no longer be renewed (${
|
|
251970
|
+
if (code3 === "invalid_grant" || code3 === "token_revoked") {
|
|
251971
|
+
return { ok: false, code: "login_expired", error: `the stored login can no longer be renewed (${code3})`, hint: `sign in again: \`himi login --browser --target ${target}\` (or \`himi login --device --target ${target}\`)` };
|
|
251789
251972
|
}
|
|
251790
|
-
return { ok: false, code: "refresh_unavailable", error: `the plane could not refresh the login (${resp.status}${
|
|
251973
|
+
return { ok: false, code: "refresh_unavailable", error: `the plane could not refresh the login (${resp.status}${code3 ? ` ${code3}` : ""})`, hint: "retry in a moment; the stored login is unchanged" };
|
|
251791
251974
|
}, () => ({ ok: false, code: "refresh_unavailable", error: "another himi process is renewing this login", hint: "retry in a moment; the stored login is unchanged" }));
|
|
251792
251975
|
}
|
|
251793
251976
|
var FEDERATED_REFRESH_PATH, EARLY_SEC, LOCK_STALE_MS, LOCK_WAIT_MS;
|
|
@@ -252130,7 +252313,7 @@ async function exchangeMemberSession(input, fetchImpl = fetch, random = randomBy
|
|
|
252130
252313
|
return { ok: false, code: "redirect_session_failed", status: rsRes.status };
|
|
252131
252314
|
}
|
|
252132
252315
|
const firstHost = url.hostname.toLowerCase();
|
|
252133
|
-
let
|
|
252316
|
+
let code3;
|
|
252134
252317
|
let lastStatus;
|
|
252135
252318
|
for (let hop = 0; hop < MAX_HOPS2; hop++) {
|
|
252136
252319
|
if (!hopAllowed(url, firstHost)) return { ok: false, code: "authorize_host_refused" };
|
|
@@ -252142,7 +252325,7 @@ async function exchangeMemberSession(input, fetchImpl = fetch, random = randomBy
|
|
|
252142
252325
|
if (location.startsWith(redirectUri)) {
|
|
252143
252326
|
const params = new URLSearchParams(location.slice(redirectUri.length).replace(/^[?#]/, ""));
|
|
252144
252327
|
if (params.get("state") !== state) return { ok: false, code: "authorize_state_mismatch" };
|
|
252145
|
-
|
|
252328
|
+
code3 = params.get("code") ?? void 0;
|
|
252146
252329
|
break;
|
|
252147
252330
|
}
|
|
252148
252331
|
try {
|
|
@@ -252151,11 +252334,11 @@ async function exchangeMemberSession(input, fetchImpl = fetch, random = randomBy
|
|
|
252151
252334
|
return { ok: false, code: "authorize_no_code", status: res.status };
|
|
252152
252335
|
}
|
|
252153
252336
|
}
|
|
252154
|
-
if (!
|
|
252337
|
+
if (!code3) return { ok: false, code: "authorize_no_code", ...lastStatus !== void 0 ? { status: lastStatus } : {} };
|
|
252155
252338
|
const tokRes = await call(`${WIX_API}/oauth2/token`, {
|
|
252156
252339
|
method: "POST",
|
|
252157
252340
|
headers: { "Content-Type": "application/json" },
|
|
252158
|
-
body: JSON.stringify({ clientId, grantType: "authorization_code", code:
|
|
252341
|
+
body: JSON.stringify({ clientId, grantType: "authorization_code", code: code3, codeVerifier: verifier2, redirectUri })
|
|
252159
252342
|
});
|
|
252160
252343
|
if (!tokRes) return { ok: false, code: "unreachable" };
|
|
252161
252344
|
const tok = await json9(tokRes);
|
|
@@ -252500,14 +252683,14 @@ async function hostedAuthUrl(req, visitorToken, fetchImpl = fetch) {
|
|
|
252500
252683
|
if (!isHttpsRedirectUri(fullUrl)) throw new Error("redirect-session returned a non-https url");
|
|
252501
252684
|
return fullUrl;
|
|
252502
252685
|
}
|
|
252503
|
-
async function exchangeAuthCode(cfg,
|
|
252686
|
+
async function exchangeAuthCode(cfg, code3, verifier2, fetchImpl = fetch) {
|
|
252504
252687
|
const res = await fetchImpl(`${WIX_API3}${TOKEN_PATH}`, {
|
|
252505
252688
|
method: "POST",
|
|
252506
252689
|
headers: { "Content-Type": "application/json" },
|
|
252507
252690
|
body: JSON.stringify({
|
|
252508
252691
|
clientId: cfg.clientId,
|
|
252509
252692
|
grantType: "authorization_code",
|
|
252510
|
-
code:
|
|
252693
|
+
code: code3,
|
|
252511
252694
|
codeVerifier: verifier2,
|
|
252512
252695
|
redirectUri: cfg.redirectUri
|
|
252513
252696
|
})
|
|
@@ -253132,9 +253315,9 @@ ${releaseId}`;
|
|
|
253132
253315
|
}
|
|
253133
253316
|
if (path2 === MEMBER_CALLBACK_PATH) {
|
|
253134
253317
|
if (request2.method !== "GET") return json6(405, { error: "method_not_allowed" });
|
|
253135
|
-
const
|
|
253318
|
+
const code3 = url.searchParams.get("code");
|
|
253136
253319
|
const state2 = url.searchParams.get("state");
|
|
253137
|
-
if (!
|
|
253320
|
+
if (!code3) {
|
|
253138
253321
|
if (url.searchParams.has("nohash")) return json6(400, { error: "member_auth_no_code" });
|
|
253139
253322
|
return fragmentBounceResponse();
|
|
253140
253323
|
}
|
|
@@ -253147,7 +253330,7 @@ ${releaseId}`;
|
|
|
253147
253330
|
let memberToken;
|
|
253148
253331
|
let expiresInSec;
|
|
253149
253332
|
try {
|
|
253150
|
-
({ memberToken, expiresInSec } = await exchangeAuthCode(pending2.auth,
|
|
253333
|
+
({ memberToken, expiresInSec } = await exchangeAuthCode(pending2.auth, code3, pending2.verifier, webwixFetch));
|
|
253151
253334
|
} catch (e2) {
|
|
253152
253335
|
return json6(502, { error: "member_auth_exchange_failed", app: app4, detail: String(e2?.message ?? e2).slice(0, 120) });
|
|
253153
253336
|
}
|
|
@@ -254540,53 +254723,53 @@ var init_preview_assets_generated = __esm({
|
|
|
254540
254723
|
init_define_HHP_CATALOG();
|
|
254541
254724
|
init_preview_assets_format();
|
|
254542
254725
|
PREVIEW_ASSET_MANIFEST = [
|
|
254543
|
-
{ key: "assets/DashboardHost-
|
|
254544
|
-
{ key: "assets/DevDrawer-
|
|
254545
|
-
{ key: "assets/IdiomCompare-
|
|
254546
|
-
{ key: "assets/LightboxViewer-
|
|
254547
|
-
{ key: "assets/OfflineReadingBar-
|
|
254548
|
-
{ key: "assets/PhonePreviewControl-
|
|
254549
|
-
{ key: "assets/SchemeCompare-
|
|
254550
|
-
{ key: "assets/TopBarSearchStates-
|
|
254551
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
254726
|
+
{ key: "assets/DashboardHost-CXpWlwPb.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2985, sha256: "c40fe59d1491ee385e3d4dd7114725eda75823f7999962fb328c2f9ff0c348bd" },
|
|
254727
|
+
{ key: "assets/DevDrawer-CRqSl4ae.js", contentType: "application/javascript; charset=utf-8", offset: 2993, length: 16783, sha256: "c2931ea8fbfe97d36f1ca616ed65be438b7b2249c769692398107f9eb81b2903" },
|
|
254728
|
+
{ key: "assets/IdiomCompare-0PCgRBYt.js", contentType: "application/javascript; charset=utf-8", offset: 19776, length: 1926, sha256: "38f71722dd534b126de4d63bb4bf3c33fb27f2c8a995743ded3f64359b90c662" },
|
|
254729
|
+
{ key: "assets/LightboxViewer-atIbwsSW.js", contentType: "application/javascript; charset=utf-8", offset: 21702, length: 15616, sha256: "efc728dfe49cdc11ba5c67601ed6717570e8d62632725f8dfdb76a668cee2b72" },
|
|
254730
|
+
{ key: "assets/OfflineReadingBar-BIlRf6Jm.js", contentType: "application/javascript; charset=utf-8", offset: 37318, length: 1646, sha256: "1405eca6f8e12f19bf02b3f0baca1fa0b32f947864e2f02fe7bd00c9e40de79e" },
|
|
254731
|
+
{ key: "assets/PhonePreviewControl-CnhoTVzA.js", contentType: "application/javascript; charset=utf-8", offset: 38964, length: 37851, sha256: "cfb30d94e7b6364da614741255264bec9b0a64f7dfb807a1da97f3f25bd4de5a" },
|
|
254732
|
+
{ key: "assets/SchemeCompare-DIVrQzlD.js", contentType: "application/javascript; charset=utf-8", offset: 76815, length: 1858, sha256: "ee6ed0a49e84f0ea7222a89a0630050ba4fc2c32d89a90cad0b4a6bd5fa48289" },
|
|
254733
|
+
{ key: "assets/TopBarSearchStates-C7z-MbUM.js", contentType: "application/javascript; charset=utf-8", offset: 78673, length: 4068, sha256: "aba0ba30a22fd016a7e704e6511c5c39b4a06c5b71c91780dfcdcbf1fc6b45c5" },
|
|
254734
|
+
{ key: "assets/WixFrogTelemetrySink-Cc6VzbFY.js", contentType: "application/javascript; charset=utf-8", offset: 82741, length: 3515, sha256: "effc986e39285762730f7c9400c9c7e042130bb9171eb49805c22254890f5279" },
|
|
254552
254735
|
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 86256, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
254553
254736
|
{ key: "assets/catalog-B4UJpy5D.js", contentType: "application/javascript; charset=utf-8", offset: 88448, length: 35626, sha256: "90111ffcf2d13eff399836acafd1f2b387859440a29dcd4a0afd8370915992cb" },
|
|
254554
|
-
{ key: "assets/catalogFontFaces-
|
|
254737
|
+
{ key: "assets/catalogFontFaces-BPZl9T0e.js", contentType: "application/javascript; charset=utf-8", offset: 124074, length: 1111, sha256: "0e7b32d97b71f8d9a11c6e03d9c43b941826a54ceecf57edb56afb443e3cecfa" },
|
|
254555
254738
|
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 125185, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
254556
|
-
{ key: "assets/files-transfer-
|
|
254739
|
+
{ key: "assets/files-transfer-Bx_oWi-6.js", contentType: "application/javascript; charset=utf-8", offset: 127752, length: 6446, sha256: "8334a7be8ab11d657180feead15aec7effd3bd49882dda99fd83bf5098d1ea6b" },
|
|
254557
254740
|
{ key: "assets/frogActionMap-CTMe3Bz1.js", contentType: "application/javascript; charset=utf-8", offset: 134198, length: 1172, sha256: "9f1ce4c70a680dfb902949e1f482c7e47500b69c3350cd091b1b51d674032d53" },
|
|
254558
|
-
{ key: "assets/frogApiRules-
|
|
254741
|
+
{ key: "assets/frogApiRules-6ZsOIjgt.js", contentType: "application/javascript; charset=utf-8", offset: 135370, length: 2207, sha256: "83a8613abbd1725c39f7e8d930d7f60bff0d44eca1f2f27685ebf10022bb1ed1" },
|
|
254559
254742
|
{ key: "assets/frogScreenMap-S_IRnz20.js", contentType: "application/javascript; charset=utf-8", offset: 137577, length: 1067, sha256: "22b2f71e1b06df8f1e79b890d47fe42e983d37865c2cc9be753e4121764c91e1" },
|
|
254560
254743
|
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 138644, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
254561
254744
|
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 145222, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
254562
|
-
{ key: "assets/index-
|
|
254563
|
-
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
254564
|
-
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
254565
|
-
{ key: "assets/pdf-
|
|
254566
|
-
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
254567
|
-
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset:
|
|
254568
|
-
{ key: "assets/pdfDocument-
|
|
254569
|
-
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
254570
|
-
{ key: "assets/scrollLinkedRuntime-
|
|
254571
|
-
{ key: "assets/webviewBridgeHost-
|
|
254572
|
-
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset:
|
|
254573
|
-
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset:
|
|
254574
|
-
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset:
|
|
254575
|
-
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
254576
|
-
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset:
|
|
254577
|
-
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset:
|
|
254578
|
-
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
254579
|
-
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset:
|
|
254580
|
-
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset:
|
|
254581
|
-
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset:
|
|
254582
|
-
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset:
|
|
254583
|
-
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset:
|
|
254584
|
-
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
254585
|
-
{ key: "index.html", contentType: "text/html; charset=utf-8", offset:
|
|
254586
|
-
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset:
|
|
254587
|
-
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset:
|
|
254588
|
-
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
254589
|
-
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset:
|
|
254745
|
+
{ key: "assets/index-CiJzwEc6.js", contentType: "application/javascript; charset=utf-8", offset: 147926, length: 1663061, sha256: "d9bf263e70ce96a2585b052291735fd8c3892a89261508e333147cc994d4f73e" },
|
|
254746
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1810987, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
254747
|
+
{ key: "assets/on-device-ml-D5QGvW8P.js", contentType: "application/javascript; charset=utf-8", offset: 1818738, length: 10531, sha256: "914ea54d973624e7bc82d1847444f26084ac16d69be3051b4b5938b1e35beced" },
|
|
254748
|
+
{ key: "assets/pdf-B4r8dmd7.js", contentType: "application/javascript; charset=utf-8", offset: 1829269, length: 488215, sha256: "12b7dd1ca5ed350a30ed6a0085a4c31f30b46688e3795c425f145dfdd3830b31" },
|
|
254749
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2317484, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
254750
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2317574, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
254751
|
+
{ key: "assets/pdfDocument-B1YEIBGo.js", contentType: "application/javascript; charset=utf-8", offset: 3634608, length: 3471, sha256: "f1a15a7721006c043ea0e5e31b36095e3296bfbe3cc23a3d3dccac9ed1839dc2" },
|
|
254752
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3638079, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
254753
|
+
{ key: "assets/scrollLinkedRuntime-Cv1n5_u8.js", contentType: "application/javascript; charset=utf-8", offset: 3640345, length: 2278, sha256: "780e390a669329d5f6ebe1ae5737c158425350607937a0dc4445cad6d8bae20d" },
|
|
254754
|
+
{ key: "assets/webviewBridgeHost-BQKtKPdd.js", contentType: "application/javascript; charset=utf-8", offset: 3642623, length: 9889, sha256: "74976496938c9d7bc240ec947d2790c7d8d11581dd3443c10062140fd67015b0" },
|
|
254755
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3652512, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
254756
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3657122, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
254757
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 4145706, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
254758
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4236630, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
254759
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4327614, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
254760
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4418594, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
254761
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4509466, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
254762
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4600446, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
254763
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4709082, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
254764
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4818166, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
254765
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4927214, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
254766
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 5034914, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
254767
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 5123022, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
254768
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 5129840, length: 4924, sha256: "536c05fd21a7b1dcd67632e0655eba68da3a5b91e1911a10161666baddff174f" },
|
|
254769
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 5134764, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
254770
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 5146221, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
254771
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 5147392, length: 24303, sha256: "7ee3dbacf4e6da69c1c7085a2423e33e2adaec933cd897fb2ee2391e3277c3ae" },
|
|
254772
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5171695, length: 24320, sha256: "d24f399a1fcfa7f696a0d96aadbc983d2624b45712dae9a15545f6914dbb9506" }
|
|
254590
254773
|
];
|
|
254591
254774
|
}
|
|
254592
254775
|
});
|
|
@@ -255163,9 +255346,9 @@ __export(store_google_keys_exports, {
|
|
|
255163
255346
|
});
|
|
255164
255347
|
import { readFile as readFile21 } from "node:fs/promises";
|
|
255165
255348
|
import { join as join163, resolve as resolve104 } from "node:path";
|
|
255166
|
-
function fail8(io2,
|
|
255167
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
255168
|
-
return
|
|
255349
|
+
function fail8(io2, code3, error, extra = {}) {
|
|
255350
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error: scrubSecretShapes(error).slice(0, 600), ...extra }));
|
|
255351
|
+
return code3 === "invalid_usage" ? 2 : 1;
|
|
255169
255352
|
}
|
|
255170
255353
|
function ownerKeyProblem(packageName) {
|
|
255171
255354
|
const name = packageName.toLowerCase();
|
|
@@ -255275,9 +255458,9 @@ import { lstatSync as lstatSync37, renameSync as renameSync23, rmSync as rmSync3
|
|
|
255275
255458
|
import { readFile as readFile22 } from "node:fs/promises";
|
|
255276
255459
|
import { join as join164, resolve as resolve105 } from "node:path";
|
|
255277
255460
|
import { createInterface as createInterface3 } from "node:readline/promises";
|
|
255278
|
-
function fail9(io2,
|
|
255279
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
255280
|
-
return
|
|
255461
|
+
function fail9(io2, code3, error, extra = {}) {
|
|
255462
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error, ...extra }));
|
|
255463
|
+
return code3 === "invalid_usage" || code3 === "confirmation_required" ? 2 : 1;
|
|
255281
255464
|
}
|
|
255282
255465
|
function ttyAsk2() {
|
|
255283
255466
|
return async (question) => {
|
|
@@ -255827,7 +256010,7 @@ var init_store_app = __esm({
|
|
|
255827
256010
|
"request_failed"
|
|
255828
256011
|
];
|
|
255829
256012
|
SITE_RE6 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
255830
|
-
fail10 = (
|
|
256013
|
+
fail10 = (code3, error, extra = {}) => ({ ok: false, code: code3, error, ...extra });
|
|
255831
256014
|
}
|
|
255832
256015
|
});
|
|
255833
256016
|
|
|
@@ -255863,9 +256046,9 @@ import { readFile as readFile23 } from "node:fs/promises";
|
|
|
255863
256046
|
import { existsSync as existsSync128 } from "node:fs";
|
|
255864
256047
|
import { join as join165, resolve as resolve106 } from "node:path";
|
|
255865
256048
|
import { userInfo as userInfo4 } from "node:os";
|
|
255866
|
-
function fail11(io2,
|
|
255867
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
255868
|
-
return
|
|
256049
|
+
function fail11(io2, code3, error, extra = {}) {
|
|
256050
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error: scrubSecretShapes(error).slice(0, 600), ...extra }));
|
|
256051
|
+
return code3 === "invalid_usage" || code3 === "confirmation_required" ? 2 : 1;
|
|
255869
256052
|
}
|
|
255870
256053
|
function ttyAsk3() {
|
|
255871
256054
|
return async (question) => {
|
|
@@ -255992,11 +256175,11 @@ async function approveAndApply(runner2, job, person, actor, now) {
|
|
|
255992
256175
|
}
|
|
255993
256176
|
function jobFailed(io2, e2, extra = {}, note = "") {
|
|
255994
256177
|
const job = e2 instanceof JobFailure ? e2.job : e2.job;
|
|
255995
|
-
const
|
|
256178
|
+
const code3 = e2.code;
|
|
255996
256179
|
return fail11(io2, "job_failed", `${e2.message ?? String(e2)}${note}`, {
|
|
255997
256180
|
...extra,
|
|
255998
256181
|
...job ? { jobId: job.id, status: job.status, ...job.errorCode ? { errorCode: job.errorCode } : {} } : {},
|
|
255999
|
-
...typeof
|
|
256182
|
+
...typeof code3 === "string" && !job?.errorCode ? { errorCode: code3 } : {},
|
|
256000
256183
|
...job ? { next: `gplay-node jobs show ${job.id}` } : {}
|
|
256001
256184
|
});
|
|
256002
256185
|
}
|
|
@@ -256504,9 +256687,9 @@ __export(store_wix_submit_exports, {
|
|
|
256504
256687
|
});
|
|
256505
256688
|
import { createInterface as createInterface5 } from "node:readline/promises";
|
|
256506
256689
|
import { resolve as resolve107 } from "node:path";
|
|
256507
|
-
function fail12(io2,
|
|
256508
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
256509
|
-
return
|
|
256690
|
+
function fail12(io2, code3, error, extra = {}) {
|
|
256691
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error: scrubSecretShapes(error).slice(0, 600), ...extra }));
|
|
256692
|
+
return code3 === "invalid_usage" || code3 === "confirmation_required" ? 2 : 1;
|
|
256510
256693
|
}
|
|
256511
256694
|
function ttyAsk4() {
|
|
256512
256695
|
return async (question) => {
|
|
@@ -257104,9 +257287,9 @@ __export(store_google_testers_exports, {
|
|
|
257104
257287
|
});
|
|
257105
257288
|
import { mkdir as mkdir20, readFile as readFile24, rm as rm10, writeFile as writeFile16 } from "node:fs/promises";
|
|
257106
257289
|
import { join as join166, resolve as resolve108 } from "node:path";
|
|
257107
|
-
function fail13(io2,
|
|
257108
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
257109
|
-
return
|
|
257290
|
+
function fail13(io2, code3, error, extra = {}) {
|
|
257291
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error: scrubSecretShapes(error).slice(0, 600), ...extra }));
|
|
257292
|
+
return code3 === "invalid_usage" || code3 === "confirmation_required" || code3 === "pool_group_unset" ? 2 : 1;
|
|
257110
257293
|
}
|
|
257111
257294
|
function parse7(pos, flags, cwd, env) {
|
|
257112
257295
|
const op = pos[3];
|
|
@@ -257561,9 +257744,9 @@ async function recordPool(op, app2, site, body, io2, deps, owner) {
|
|
|
257561
257744
|
}
|
|
257562
257745
|
return out2;
|
|
257563
257746
|
}
|
|
257564
|
-
function fail14(io2,
|
|
257565
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
257566
|
-
return
|
|
257747
|
+
function fail14(io2, code3, error, extra = {}) {
|
|
257748
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error, ...extra }));
|
|
257749
|
+
return code3 === "invalid_usage" ? 2 : 1;
|
|
257567
257750
|
}
|
|
257568
257751
|
async function runStoreRelopsPool(pos, flags, io2, deps = {}) {
|
|
257569
257752
|
const op = pos[3];
|
|
@@ -257839,9 +258022,9 @@ var init_iap_catalog_client = __esm({
|
|
|
257839
258022
|
}
|
|
257840
258023
|
};
|
|
257841
258024
|
IapCatalogError = class extends Error {
|
|
257842
|
-
constructor(
|
|
258025
|
+
constructor(code3, message5, endpoint) {
|
|
257843
258026
|
super(message5);
|
|
257844
|
-
this.code =
|
|
258027
|
+
this.code = code3;
|
|
257845
258028
|
this.endpoint = endpoint;
|
|
257846
258029
|
this.name = "IapCatalogError";
|
|
257847
258030
|
}
|
|
@@ -258621,10 +258804,10 @@ var init_iap_setup = __esm({
|
|
|
258621
258804
|
["APP_STORE_CONNECT_PERMISSION_DENIED", "Apple refused the key\u2019s access: give the key the role it lacks, or have the Account Holder accept the pending Apple agreement, then retry."],
|
|
258622
258805
|
["APP_STORE_CONNECT_RATE_LIMITED", "Apple\u2019s rate limit for this key was reached; retry later."]
|
|
258623
258806
|
]);
|
|
258624
|
-
finding = (state,
|
|
258807
|
+
finding = (state, code3, fix) => ({ state, code: code3, fix });
|
|
258625
258808
|
ok4 = () => finding("ok", "ok", "");
|
|
258626
|
-
blocked = (
|
|
258627
|
-
missing2 = (
|
|
258809
|
+
blocked = (code3, fix) => finding("blocked", code3, fix);
|
|
258810
|
+
missing2 = (code3, fix) => finding("missing", code3, fix);
|
|
258628
258811
|
}
|
|
258629
258812
|
});
|
|
258630
258813
|
|
|
@@ -260113,11 +260296,11 @@ async function applyItem(item2, live4, context, manifest2) {
|
|
|
260113
260296
|
try {
|
|
260114
260297
|
await context.api.managed.validateMapping(item2);
|
|
260115
260298
|
} catch (error) {
|
|
260116
|
-
const
|
|
260117
|
-
const conflict = ["sku_in_use", "mapping_conflict", "mapping_inactive", "mapping_type_mismatch", "mapping_unsupported"].includes(
|
|
260299
|
+
const code4 = error instanceof IapCatalogError ? error.code : "catalog_request_failed";
|
|
260300
|
+
const conflict = ["sku_in_use", "mapping_conflict", "mapping_inactive", "mapping_type_mismatch", "mapping_unsupported"].includes(code4);
|
|
260118
260301
|
const detail = error instanceof Error ? error.message : String(error);
|
|
260119
260302
|
const result2 = itemResult({ ...base2, observed: live4.observed, outcome: conflict ? "conflict" : "failed", ...conflict ? { conflicts: [detail] } : { unmet: [detail] } });
|
|
260120
|
-
result2.provisioning.code =
|
|
260303
|
+
result2.provisioning.code = code4;
|
|
260121
260304
|
return result2;
|
|
260122
260305
|
}
|
|
260123
260306
|
}
|
|
@@ -260133,8 +260316,8 @@ async function applyItem(item2, live4, context, manifest2) {
|
|
|
260133
260316
|
const unmet = failure4 ? [`could not read the product back: ${failure4}`] : [...await unmetFor(item2, observed, context), ...context.api.managed ? [] : screenshotUnmet(live4.reviewScreenshot, observed)];
|
|
260134
260317
|
const outcome = outcomeOf(live4.ops, steps, unmet);
|
|
260135
260318
|
const result = itemResult({ ...base2, readAt: context.now(), observed, outcome, steps, unmet, appleResourceId: run4.resourceId });
|
|
260136
|
-
const
|
|
260137
|
-
if (
|
|
260319
|
+
const code3 = steps.find((step) => step.code)?.code;
|
|
260320
|
+
if (code3) result.provisioning.code = code3;
|
|
260138
260321
|
return result;
|
|
260139
260322
|
}
|
|
260140
260323
|
function deferredResult(item2, live4, context, manifest2) {
|
|
@@ -262062,8 +262245,8 @@ async function statusCommand(flags, deps, out2) {
|
|
|
262062
262245
|
}
|
|
262063
262246
|
const result = await statusIap(manifest2, { ...session.planContext, manifestDir: manifestDirOf(manifestPath) }, catalog4?.items);
|
|
262064
262247
|
if (resultPath) writeJson2(deps, out2, resultPath, result);
|
|
262065
|
-
const
|
|
262066
|
-
if (out2.json) out2.print({ ok: result.complete, ...
|
|
262248
|
+
const code3 = result.complete ? void 0 : result.items.some((i2) => i2.provisioning.priceCheckIssue) ? "price_check_unavailable" : result.items.some((i2) => i2.provisioning.priceDrift) ? "price_drift" : "status_incomplete";
|
|
262249
|
+
if (out2.json) out2.print({ ok: result.complete, ...code3 ? { code: code3 } : {}, result });
|
|
262067
262250
|
else printResult(out2, result, resultPath);
|
|
262068
262251
|
return result.complete ? 0 : 1;
|
|
262069
262252
|
}
|
|
@@ -262337,15 +262520,15 @@ async function connectWith(flags, deps, out2) {
|
|
|
262337
262520
|
const outPath = textFlag(flags, "out");
|
|
262338
262521
|
if (outPath) writeJson2(deps, out2, outPath, { report: report9, config });
|
|
262339
262522
|
const configProblem = config?.conflicts.length ? "config_conflict" : unapplied ? "config_not_applied" : void 0;
|
|
262340
|
-
const
|
|
262523
|
+
const code3 = firstProblem(report9) ?? configProblem;
|
|
262341
262524
|
const diff = dryRun ? connectDiff(report9) : void 0;
|
|
262342
|
-
if (out2.json) out2.print({ ok: !
|
|
262525
|
+
if (out2.json) out2.print({ ok: !code3, ...code3 ? { code: code3 } : {}, dryRun, report: report9, ...diff ? { diff } : {}, config, ...note ? { note } : {} });
|
|
262343
262526
|
else {
|
|
262344
262527
|
printConnect(out2, report9, dryRun ? "dry run (nothing was written)" : "result");
|
|
262345
262528
|
printConfig(out2, config, note);
|
|
262346
262529
|
if (diff) printDiff(out2, diff);
|
|
262347
262530
|
}
|
|
262348
|
-
return
|
|
262531
|
+
return code3 ? 1 : 0;
|
|
262349
262532
|
}
|
|
262350
262533
|
async function checkCommand(flags, deps, out2) {
|
|
262351
262534
|
const manifest2 = readManifest3(deps, requireFlag(flags, "manifest", "check"));
|
|
@@ -262467,8 +262650,8 @@ async function screenshotsCommand(flags, deps, out2) {
|
|
|
262467
262650
|
} finally {
|
|
262468
262651
|
await renderer.close?.();
|
|
262469
262652
|
}
|
|
262470
|
-
const
|
|
262471
|
-
if (out2.json) out2.print({ ok: report9.complete, ...
|
|
262653
|
+
const code3 = report9.complete ? void 0 : "screenshots_incomplete";
|
|
262654
|
+
if (out2.json) out2.print({ ok: report9.complete, ...code3 ? { code: code3 } : {}, manifest: manifestPath, items: report9.items });
|
|
262472
262655
|
else printScreenshots(out2, report9, manifestPath, dryRun);
|
|
262473
262656
|
return report9.complete ? 0 : 1;
|
|
262474
262657
|
}
|
|
@@ -262630,9 +262813,9 @@ var init_store_iap = __esm({
|
|
|
262630
262813
|
print(value2) {
|
|
262631
262814
|
this.io.log(this.serialize(value2));
|
|
262632
262815
|
}
|
|
262633
|
-
fail(error, extra = {},
|
|
262816
|
+
fail(error, extra = {}, code3 = 2) {
|
|
262634
262817
|
this.io.error(JSON.stringify(scrubDeep({ error, ...extra }, (t2) => this.scrub(t2))));
|
|
262635
|
-
return
|
|
262818
|
+
return code3;
|
|
262636
262819
|
}
|
|
262637
262820
|
serialize(value2) {
|
|
262638
262821
|
return JSON.stringify(scrubDeep(value2, (t2) => this.scrub(t2)), null, 2);
|
|
@@ -263928,13 +264111,13 @@ async function runConnectorToken(sub, args, ctx) {
|
|
|
263928
264111
|
}
|
|
263929
264112
|
const body = await res.json().catch(() => ({}));
|
|
263930
264113
|
if (!res.ok) {
|
|
263931
|
-
const
|
|
264114
|
+
const code3 = res.status === 404 && sub === "revoke" ? "token_not_found" : res.status === 404 ? "personal_tokens_unavailable" : res.status === 401 ? "not_signed_in" : "request_failed";
|
|
263932
264115
|
ctx.error(JSON.stringify({
|
|
263933
264116
|
...body,
|
|
263934
|
-
...
|
|
264117
|
+
...code3 === "token_not_found" ? { hint: `a token made for another of your Wix accounts is managed on ${managePage}` } : {},
|
|
263935
264118
|
status: res.status,
|
|
263936
264119
|
ok: false,
|
|
263937
|
-
code:
|
|
264120
|
+
code: code3
|
|
263938
264121
|
}));
|
|
263939
264122
|
return 1;
|
|
263940
264123
|
}
|
|
@@ -263963,6 +264146,113 @@ var init_connector_token = __esm({
|
|
|
263963
264146
|
}
|
|
263964
264147
|
});
|
|
263965
264148
|
|
|
264149
|
+
// src/component-lookup.ts
|
|
264150
|
+
var component_lookup_exports = {};
|
|
264151
|
+
__export(component_lookup_exports, {
|
|
264152
|
+
MODIFIERS_LEAD: () => MODIFIERS_LEAD,
|
|
264153
|
+
compactModifiers: () => compactModifiers,
|
|
264154
|
+
formatComponent: () => formatComponent,
|
|
264155
|
+
formatLookup: () => formatLookup,
|
|
264156
|
+
lookupComponents: () => lookupComponents,
|
|
264157
|
+
referencedShapes: () => referencedShapes,
|
|
264158
|
+
requestedNames: () => requestedNames,
|
|
264159
|
+
suggestComponents: () => suggestComponents
|
|
264160
|
+
});
|
|
264161
|
+
function suggestComponents(name, all) {
|
|
264162
|
+
if (name.length > MAX_SUGGEST_LEN3) return [];
|
|
264163
|
+
const n2 = name.toLowerCase();
|
|
264164
|
+
const scored = all.map((c2) => {
|
|
264165
|
+
const l3 = c2.toLowerCase();
|
|
264166
|
+
const near = l3.startsWith(n2) || n2.startsWith(l3) || l3.includes(n2) || n2.includes(l3);
|
|
264167
|
+
return { c: c2, d: near ? 0 : editDistance2(n2, l3) };
|
|
264168
|
+
});
|
|
264169
|
+
return scored.filter((s5) => s5.d <= Math.max(2, Math.floor(n2.length / 3))).sort((x2, y2) => x2.d - y2.d || x2.c.localeCompare(y2.c)).slice(0, 3).map((s5) => s5.c);
|
|
264170
|
+
}
|
|
264171
|
+
function requestedNames(args) {
|
|
264172
|
+
const out2 = [];
|
|
264173
|
+
for (const a3 of args.flatMap((x2) => x2.split(","))) {
|
|
264174
|
+
const t2 = a3.trim();
|
|
264175
|
+
if (t2 && !out2.some((o2) => o2.toLowerCase() === t2.toLowerCase())) out2.push(t2);
|
|
264176
|
+
}
|
|
264177
|
+
return out2;
|
|
264178
|
+
}
|
|
264179
|
+
function lookupComponents(ref, names2) {
|
|
264180
|
+
const found = [], unknown = [];
|
|
264181
|
+
const suggestions = {};
|
|
264182
|
+
const all = ref.components.map((c2) => c2.name);
|
|
264183
|
+
for (const name of names2) {
|
|
264184
|
+
const c2 = ref.components.find((x2) => x2.name.toLowerCase() === name.toLowerCase());
|
|
264185
|
+
if (c2) found.push(c2);
|
|
264186
|
+
else {
|
|
264187
|
+
unknown.push(name);
|
|
264188
|
+
suggestions[name] = suggestComponents(name, all);
|
|
264189
|
+
}
|
|
264190
|
+
}
|
|
264191
|
+
return { found, unknown, suggestions };
|
|
264192
|
+
}
|
|
264193
|
+
function referencedShapes(ref, comps) {
|
|
264194
|
+
const shapes = Object.entries(ref.descriptor).filter(([name]) => !NOT_ELEMENT_SHAPES.has(name));
|
|
264195
|
+
const out2 = {};
|
|
264196
|
+
let sources = comps.map((c2) => code2(c2.propsSource));
|
|
264197
|
+
while (sources.length) {
|
|
264198
|
+
const next = [];
|
|
264199
|
+
for (const [name, decl] of shapes) {
|
|
264200
|
+
if (out2[name] !== void 0) continue;
|
|
264201
|
+
const re2 = new RegExp(`\\b${name}\\b`);
|
|
264202
|
+
if (sources.some((s5) => re2.test(s5))) {
|
|
264203
|
+
out2[name] = decl;
|
|
264204
|
+
next.push(code2(decl));
|
|
264205
|
+
}
|
|
264206
|
+
}
|
|
264207
|
+
sources = next;
|
|
264208
|
+
}
|
|
264209
|
+
return out2;
|
|
264210
|
+
}
|
|
264211
|
+
function compactModifiers(ref) {
|
|
264212
|
+
const decl = ref.descriptor.Modifiers ?? "";
|
|
264213
|
+
const body = decl.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");
|
|
264214
|
+
const open6 = body.indexOf("{"), close = body.lastIndexOf("}");
|
|
264215
|
+
const fields2 = body.slice(open6 + 1, close).split(";").map((f2) => f2.replace(/\s+/g, " ").trim()).filter(Boolean);
|
|
264216
|
+
return fields2.join("; ");
|
|
264217
|
+
}
|
|
264218
|
+
function formatComponent(c2) {
|
|
264219
|
+
const lines2 = [`${c2.name} [${c2.category}] props: ${c2.propsType}`];
|
|
264220
|
+
if (c2.bindings.length) lines2.push(`bindable props: ${c2.bindings.join(", ")}`);
|
|
264221
|
+
for (const d2 of c2.dispatches ?? []) {
|
|
264222
|
+
lines2.push(`dispatches: ${d2.callback} sends args.${d2.key} (${d2.encoding})${d2.note ? ` \u2014 ${d2.note}` : ""}`);
|
|
264223
|
+
}
|
|
264224
|
+
for (const ni2 of niEntries(c2.notImplemented)) {
|
|
264225
|
+
lines2.push(`${caveatLead(ni2)}. ${ni2.note} Platforms: ${ni2.platforms.join(", ")}; affected props: ${ni2.props.join(", ")}.`);
|
|
264226
|
+
}
|
|
264227
|
+
if (/\bIconRef\b/.test(c2.propsSource)) {
|
|
264228
|
+
lines2.push("IconRef is an icon-name string (or a supported binding), not an object. Run `himi icons` for valid catalog names.");
|
|
264229
|
+
}
|
|
264230
|
+
lines2.push(c2.propsSource);
|
|
264231
|
+
return lines2.join("\n");
|
|
264232
|
+
}
|
|
264233
|
+
function formatLookup(ref, found) {
|
|
264234
|
+
const parts = found.map(formatComponent);
|
|
264235
|
+
const shapes = referencedShapes(ref, found);
|
|
264236
|
+
if (Object.keys(shapes).length) parts.push(`Shapes these props name:
|
|
264237
|
+
|
|
264238
|
+
${Object.values(shapes).join("\n\n")}`);
|
|
264239
|
+
parts.push(`${MODIFIERS_LEAD}
|
|
264240
|
+
${compactModifiers(ref)}`);
|
|
264241
|
+
return parts.join("\n\n\u2014\u2014\u2014\n\n");
|
|
264242
|
+
}
|
|
264243
|
+
var MAX_SUGGEST_LEN3, NOT_ELEMENT_SHAPES, code2, MODIFIERS_LEAD;
|
|
264244
|
+
var init_component_lookup = __esm({
|
|
264245
|
+
"src/component-lookup.ts"() {
|
|
264246
|
+
init_define_HHP_CATALOG();
|
|
264247
|
+
init_cli_shared();
|
|
264248
|
+
init_edit_distance();
|
|
264249
|
+
MAX_SUGGEST_LEN3 = 64;
|
|
264250
|
+
NOT_ELEMENT_SHAPES = /* @__PURE__ */ new Set(["ScreenDescriptor", "Component", "LogicBundleRef", "Modifiers"]);
|
|
264251
|
+
code2 = (decl) => decl.replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/[^\n]*/g, "");
|
|
264252
|
+
MODIFIERS_LEAD = 'Modifiers \u2014 every component takes an optional `modifiers` block. Its colour slots are TokenRef OBJECTS (`{ "token": "\u2026" }`), never bare strings. Field notes: `himi docs component-reference` \xA7 Modifiers.';
|
|
264253
|
+
}
|
|
264254
|
+
});
|
|
264255
|
+
|
|
263966
264256
|
// ../../core/functions-secrets/src/vault.ts
|
|
263967
264257
|
import { createCipheriv as createCipheriv2, createDecipheriv as createDecipheriv3, randomBytes as randomBytes23 } from "node:crypto";
|
|
263968
264258
|
import { mkdir as mkdir21, readFile as readFile25, rename as rename9, writeFile as writeFile17 } from "node:fs/promises";
|
|
@@ -264271,9 +264561,9 @@ var init_push_send_service = __esm({
|
|
|
264271
264561
|
"send_outcome_unknown"
|
|
264272
264562
|
];
|
|
264273
264563
|
PushSendError = class extends Error {
|
|
264274
|
-
constructor(
|
|
264275
|
-
super(
|
|
264276
|
-
this.code =
|
|
264564
|
+
constructor(code3, status2, retryAfterSec) {
|
|
264565
|
+
super(code3);
|
|
264566
|
+
this.code = code3;
|
|
264277
264567
|
this.status = status2;
|
|
264278
264568
|
this.retryAfterSec = retryAfterSec;
|
|
264279
264569
|
}
|
|
@@ -264417,9 +264707,9 @@ var init_notify_ping_all = __esm({
|
|
|
264417
264707
|
"src/notify-ping-all.ts"() {
|
|
264418
264708
|
init_define_HHP_CATALOG();
|
|
264419
264709
|
CampaignFailure = class extends Error {
|
|
264420
|
-
constructor(
|
|
264421
|
-
super(
|
|
264422
|
-
this.code =
|
|
264710
|
+
constructor(code3, completed, memberEmail) {
|
|
264711
|
+
super(code3);
|
|
264712
|
+
this.code = code3;
|
|
264423
264713
|
this.completed = completed;
|
|
264424
264714
|
this.memberEmail = memberEmail;
|
|
264425
264715
|
}
|
|
@@ -264493,8 +264783,8 @@ async function runAllMembers(args) {
|
|
|
264493
264783
|
});
|
|
264494
264784
|
if (!readiness2.ok) {
|
|
264495
264785
|
const reported = String(readiness2.body?.error ?? "");
|
|
264496
|
-
const
|
|
264497
|
-
return refuse8(io2,
|
|
264786
|
+
const code3 = KNOWN_CODES.has(reported) ? reported : "push_setup_unavailable";
|
|
264787
|
+
return refuse8(io2, code3, HINTS[code3], 1);
|
|
264498
264788
|
}
|
|
264499
264789
|
if (readiness2.body?.app !== input.app || readiness2.body?.site !== input.site || readiness2.body?.state !== "ready") {
|
|
264500
264790
|
return refuse8(io2, "push_not_ready", HINTS.push_not_ready, 1);
|
|
@@ -264509,8 +264799,8 @@ async function runAllMembers(args) {
|
|
|
264509
264799
|
});
|
|
264510
264800
|
recipients = await listApprovedMembers({ site: input.site, siteToken: siteToken2, fetchImpl: deps.fetchImpl });
|
|
264511
264801
|
} catch (error) {
|
|
264512
|
-
const
|
|
264513
|
-
return refuse8(io2,
|
|
264802
|
+
const code3 = error instanceof PushSendError ? error.code : error instanceof Error && ROSTER_CODES.has(error.message) ? error.message : "member_lookup_unavailable";
|
|
264803
|
+
return refuse8(io2, code3, void 0, 1);
|
|
264514
264804
|
}
|
|
264515
264805
|
const base2 = { app: input.app, site: input.site, title: text26(flags.title), ...text26(flags.body) ? { body: text26(flags.body) } : {}, link: text26(flags.link) };
|
|
264516
264806
|
const send2 = (recipient, memberRequestId, dryRun = false) => pushSendRequest({
|
|
@@ -264524,8 +264814,8 @@ async function runAllMembers(args) {
|
|
|
264524
264814
|
if (flags["dry-run"] === true) {
|
|
264525
264815
|
if (recipients.length) {
|
|
264526
264816
|
const result = await send2(recipients[0], requestId2, true);
|
|
264527
|
-
const
|
|
264528
|
-
if (
|
|
264817
|
+
const code3 = refusalCode2(result);
|
|
264818
|
+
if (code3) return refuse8(io2, code3, HINTS[code3], 1);
|
|
264529
264819
|
}
|
|
264530
264820
|
io2.log(JSON.stringify({ ok: true, state: "dry_run", campaignId: requestId2, recipients: recipients.length, sent: false }));
|
|
264531
264821
|
return 0;
|
|
@@ -264543,9 +264833,9 @@ async function runAllMembers(args) {
|
|
|
264543
264833
|
},
|
|
264544
264834
|
send: async (recipient, memberRequestId) => {
|
|
264545
264835
|
const response = await send2(recipient, memberRequestId);
|
|
264546
|
-
const
|
|
264547
|
-
if (
|
|
264548
|
-
if (
|
|
264836
|
+
const code3 = refusalCode2(response);
|
|
264837
|
+
if (code3 === "rate_limited" && response.retryAfterSec) return { state: "rate_limited", retryAfterSec: response.retryAfterSec };
|
|
264838
|
+
if (code3) return { state: "failed", code: code3 };
|
|
264549
264839
|
return { state: "accepted", deduplicated: response.body?.deduplicated === true };
|
|
264550
264840
|
}
|
|
264551
264841
|
});
|
|
@@ -264568,14 +264858,14 @@ function flagRefusal(flags) {
|
|
|
264568
264858
|
return void 0;
|
|
264569
264859
|
}
|
|
264570
264860
|
function report3(http3, sent, flags, io2) {
|
|
264571
|
-
const
|
|
264572
|
-
if (
|
|
264573
|
-
return refuse8(io2,
|
|
264861
|
+
const code3 = refusalCode2(http3);
|
|
264862
|
+
if (code3 === "send_outcome_unknown") {
|
|
264863
|
+
return refuse8(io2, code3, `Ping may have accepted it. Re-run the same command with --request-id ${sent.requestId}: Ping runs one request at most once per site for 24 hours.`, 1, { requestId: sent.requestId });
|
|
264574
264864
|
}
|
|
264575
|
-
if (
|
|
264576
|
-
return refuse8(io2,
|
|
264865
|
+
if (code3 === "rate_limited" && http3.retryAfterSec) {
|
|
264866
|
+
return refuse8(io2, code3, `Test sends are limited per owner; retry in ${http3.retryAfterSec} seconds.`, 1, { retryAfterSec: http3.retryAfterSec });
|
|
264577
264867
|
}
|
|
264578
|
-
if (
|
|
264868
|
+
if (code3) return refuse8(io2, code3, HINTS[code3], 1);
|
|
264579
264869
|
if (flags.json === true) io2.log(JSON.stringify(http3.body, null, 2));
|
|
264580
264870
|
else io2.log(summary(http3.body ?? {}, sent));
|
|
264581
264871
|
return 0;
|
|
@@ -264583,8 +264873,8 @@ function report3(http3, sent, flags, io2) {
|
|
|
264583
264873
|
function refusalCode2(http3) {
|
|
264584
264874
|
if (http3.error) return http3.error === "push_send_unreachable" ? "send_outcome_unknown" : http3.error;
|
|
264585
264875
|
if (http3.ok && (http3.body?.state === "accepted" || http3.body?.state === "dry_run")) return void 0;
|
|
264586
|
-
const
|
|
264587
|
-
if (KNOWN_CODES.has(
|
|
264876
|
+
const code3 = String(http3.body?.error ?? "");
|
|
264877
|
+
if (KNOWN_CODES.has(code3)) return code3;
|
|
264588
264878
|
return http3.ok || http3.status >= 500 ? "send_outcome_unknown" : "push_send_failed";
|
|
264589
264879
|
}
|
|
264590
264880
|
function summary(result, sent) {
|
|
@@ -264943,14 +265233,14 @@ async function capture(run4) {
|
|
|
264943
265233
|
function failure(refusal2) {
|
|
264944
265234
|
if (!refusal2) return { ok: false, code: "setup_status_unreadable" };
|
|
264945
265235
|
const error = text27(refusal2.error) ?? "setup_check_failed";
|
|
264946
|
-
const
|
|
264947
|
-
return { ok: false, error, code:
|
|
265236
|
+
const code3 = text27(refusal2.code) ?? error;
|
|
265237
|
+
return { ok: false, error, code: code3, ...text27(refusal2.hint) ? { hint: refusal2.hint } : {} };
|
|
264948
265238
|
}
|
|
264949
265239
|
function pushSection(result) {
|
|
264950
265240
|
const { signIn: _2, ...push } = result;
|
|
264951
265241
|
if (push.ok === true) return { ...push, ok: true };
|
|
264952
|
-
const
|
|
264953
|
-
return { ...push, ok: false, code:
|
|
265242
|
+
const code3 = text27(push.code) ?? text27(push.error) ?? (text27(push.state) ? `push_${push.state}` : "push_not_ready");
|
|
265243
|
+
return { ...push, ok: false, code: code3 };
|
|
264954
265244
|
}
|
|
264955
265245
|
function signInSection(signIn3) {
|
|
264956
265246
|
const ready = [signIn3.appleReady, signIn3.googleIosReady, signIn3.googleAndroidReady];
|
|
@@ -264965,8 +265255,8 @@ function areasFrom(flags) {
|
|
|
264965
265255
|
if (bad4.length || !names2.length) return { code: "invalid_setup_area", error: `--only takes ${AREAS.join(", ")}; got ${only}` };
|
|
264966
265256
|
return AREAS.filter((a3) => names2.includes(a3));
|
|
264967
265257
|
}
|
|
264968
|
-
function refuse9(io2,
|
|
264969
|
-
io2.error(JSON.stringify({ ok: false, error, code:
|
|
265258
|
+
function refuse9(io2, code3, error) {
|
|
265259
|
+
io2.error(JSON.stringify({ ok: false, error, code: code3 }));
|
|
264970
265260
|
return 2;
|
|
264971
265261
|
}
|
|
264972
265262
|
async function runSetupCheck(flags, io2, deps) {
|
|
@@ -266126,9 +266416,9 @@ var init_base44_adopt = __esm({
|
|
|
266126
266416
|
BUILTINS = new Set(BASE44_BUILTIN_FIELDS);
|
|
266127
266417
|
ENTITY_NAME2 = /^[A-Za-z][A-Za-z0-9]*$/;
|
|
266128
266418
|
AdoptError = class extends Error {
|
|
266129
|
-
constructor(
|
|
266419
|
+
constructor(code3, message5, exit = 1, extra = {}) {
|
|
266130
266420
|
super(message5);
|
|
266131
|
-
this.code =
|
|
266421
|
+
this.code = code3;
|
|
266132
266422
|
this.exit = exit;
|
|
266133
266423
|
this.extra = extra;
|
|
266134
266424
|
}
|
|
@@ -266317,9 +266607,9 @@ var init_plan5 = __esm({
|
|
|
266317
266607
|
init_define_HHP_CATALOG();
|
|
266318
266608
|
init_base44_schema();
|
|
266319
266609
|
PlanError = class extends Error {
|
|
266320
|
-
constructor(
|
|
266610
|
+
constructor(code3, message5, extra = {}) {
|
|
266321
266611
|
super(message5);
|
|
266322
|
-
this.code =
|
|
266612
|
+
this.code = code3;
|
|
266323
266613
|
this.extra = extra;
|
|
266324
266614
|
this.name = "PlanError";
|
|
266325
266615
|
}
|
|
@@ -266643,15 +266933,15 @@ async function base44DeviceLogin(opts) {
|
|
|
266643
266933
|
body: JSON.stringify({ client_id: BASE44_OAUTH_CLIENT_ID, scope: opts.scope ?? BASE44_LOGIN_SCOPE })
|
|
266644
266934
|
});
|
|
266645
266935
|
if (!res.ok) throw new Error(`Base44 refused a device code: HTTP ${res.status}`);
|
|
266646
|
-
const
|
|
266647
|
-
if (!
|
|
266648
|
-
const expiresIn =
|
|
266649
|
-
await opts.io.prompt({ verificationUri:
|
|
266650
|
-
let interval = Math.max(1,
|
|
266936
|
+
const code3 = await res.json();
|
|
266937
|
+
if (!code3.device_code || !code3.user_code || !code3.verification_uri) throw new Error("Base44 returned an incomplete device code");
|
|
266938
|
+
const expiresIn = code3.expires_in ?? 600;
|
|
266939
|
+
await opts.io.prompt({ verificationUri: code3.verification_uri_complete ?? code3.verification_uri, userCode: code3.user_code, expiresIn });
|
|
266940
|
+
let interval = Math.max(1, code3.interval ?? 5) * 1e3;
|
|
266651
266941
|
const deadline = now() + expiresIn * 1e3;
|
|
266652
266942
|
while (now() < deadline) {
|
|
266653
266943
|
await opts.io.sleep(interval);
|
|
266654
|
-
const r3 = await tokenCall(fetchImpl, apiBase, { grant_type: "urn:ietf:params:oauth:grant-type:device_code", device_code:
|
|
266944
|
+
const r3 = await tokenCall(fetchImpl, apiBase, { grant_type: "urn:ietf:params:oauth:grant-type:device_code", device_code: code3.device_code, client_id: BASE44_OAUTH_CLIENT_ID });
|
|
266655
266945
|
if (r3.ok) {
|
|
266656
266946
|
const claims = jwtClaims(r3.body.access_token);
|
|
266657
266947
|
const info4 = await fetchImpl(`${apiBase}/oauth/userinfo`, { headers: { Authorization: `Bearer ${r3.body.access_token}`, Accept: "application/json" } }).then((x2) => x2.ok ? x2.json() : {}).catch(() => ({}));
|
|
@@ -267135,10 +267425,10 @@ function readEntities(files, dirs) {
|
|
|
267135
267425
|
}
|
|
267136
267426
|
return out2;
|
|
267137
267427
|
}
|
|
267138
|
-
function functionSignature(
|
|
267139
|
-
if (
|
|
267140
|
-
const methods = [...new Set([...
|
|
267141
|
-
const http3 = /\bDeno\.serve\s*\(|\bserve\s*\(\s*(?:async\s*)?\(?\s*req/.test(
|
|
267428
|
+
function functionSignature(code3) {
|
|
267429
|
+
if (code3 === void 0) return { kind: "unknown" };
|
|
267430
|
+
const methods = [...new Set([...code3.matchAll(/\b(?:req|request)\.method\s*[!=]==?\s*["'](GET|POST|PUT|PATCH|DELETE)["']/g)].map((m2) => m2[1]))];
|
|
267431
|
+
const http3 = /\bDeno\.serve\s*\(|\bserve\s*\(\s*(?:async\s*)?\(?\s*req/.test(code3);
|
|
267142
267432
|
return { kind: http3 ? "http" : "invoke", ...methods.length ? { methods } : {} };
|
|
267143
267433
|
}
|
|
267144
267434
|
function automationsOf(v2) {
|
|
@@ -267228,9 +267518,9 @@ function resolveImport2(files, fromFile, spec) {
|
|
|
267228
267518
|
} else return void 0;
|
|
267229
267519
|
return RESOLVE_EXT.map((e2) => base2 + e2).find((p2) => files.has(p2));
|
|
267230
267520
|
}
|
|
267231
|
-
function importsOf(
|
|
267521
|
+
function importsOf(code3) {
|
|
267232
267522
|
const out2 = /* @__PURE__ */ new Map();
|
|
267233
|
-
for (const m2 of
|
|
267523
|
+
for (const m2 of code3.matchAll(/import\s+([^'";]+?)\s+from\s+["']([^"']+)["']/g)) {
|
|
267234
267524
|
const clause = m2[1];
|
|
267235
267525
|
const spec = m2[2];
|
|
267236
267526
|
const def2 = /^([A-Za-z_$][\w$]*)/.exec(clause);
|
|
@@ -267245,10 +267535,10 @@ function importsOf(code2) {
|
|
|
267245
267535
|
}
|
|
267246
267536
|
return out2;
|
|
267247
267537
|
}
|
|
267248
|
-
function entitiesReadBy(
|
|
267538
|
+
function entitiesReadBy(code3, known2) {
|
|
267249
267539
|
const out2 = /* @__PURE__ */ new Set();
|
|
267250
|
-
for (const m2 of
|
|
267251
|
-
for (const [local, spec] of importsOf(
|
|
267540
|
+
for (const m2 of code3.matchAll(/\bentities\.([A-Z][A-Za-z0-9_]*)/g)) out2.add(m2[1]);
|
|
267541
|
+
for (const [local, spec] of importsOf(code3)) if (/(^|\/)(api\/)?entities(\.[jt]s)?$/.test(spec) && known2.includes(local)) out2.add(local);
|
|
267252
267542
|
const list5 = [...out2];
|
|
267253
267543
|
return known2.length ? list5.filter((n2) => known2.includes(n2)) : list5;
|
|
267254
267544
|
}
|
|
@@ -267258,23 +267548,23 @@ function readRoutes(files, knownEntities) {
|
|
|
267258
267548
|
if (out2.some((r3) => r3.path === path2)) return;
|
|
267259
267549
|
const spec = component ? imports.get(component) : void 0;
|
|
267260
267550
|
const file2 = spec ? resolveImport2(files, fromFile, spec) : void 0;
|
|
267261
|
-
const
|
|
267262
|
-
out2.push({ path: path2, ...component ? { component } : {}, ...file2 ? { file: file2 } : {}, entities:
|
|
267551
|
+
const code3 = file2 ? files.get(file2) : void 0;
|
|
267552
|
+
out2.push({ path: path2, ...component ? { component } : {}, ...file2 ? { file: file2 } : {}, entities: code3 ? entitiesReadBy(code3, knownEntities) : [], source: "project-files" });
|
|
267263
267553
|
};
|
|
267264
267554
|
const src = [...files.keys()].filter((p2) => p2.startsWith("src/") && CODE_FILE2.test(p2)).sort();
|
|
267265
267555
|
for (const file2 of src) {
|
|
267266
|
-
const
|
|
267267
|
-
if (!/\bRoute\b|\bpath\s*:|\bPAGES\b/.test(
|
|
267268
|
-
const imports = importsOf(
|
|
267269
|
-
for (const m2 of
|
|
267556
|
+
const code3 = files.get(file2);
|
|
267557
|
+
if (!/\bRoute\b|\bpath\s*:|\bPAGES\b/.test(code3)) continue;
|
|
267558
|
+
const imports = importsOf(code3);
|
|
267559
|
+
for (const m2 of code3.matchAll(/<Route\b([^>]*?)\/?>/g)) {
|
|
267270
267560
|
const path2 = /\bpath\s*=\s*["'{]\s*["'`]?([^"'`}]+)["'`]?\s*}?/.exec(m2[1])?.[1]?.trim();
|
|
267271
267561
|
const comp = /\belement\s*=\s*\{\s*<\s*([A-Z][\w.]*)/.exec(m2[1])?.[1];
|
|
267272
267562
|
if (path2 && /^(?:\/|\*$|[A-Za-z0-9_:.-]+(?:\/[A-Za-z0-9_:.*-]*)*$)/.test(path2)) add(path2, comp, file2, imports);
|
|
267273
267563
|
}
|
|
267274
|
-
for (const m2 of
|
|
267275
|
-
const pages2 = /\bPAGES\s*=\s*\{([^}]*)\}/.exec(
|
|
267564
|
+
for (const m2 of code3.matchAll(/\{\s*path\s*:\s*["'`]([^"'`]+)["'`]\s*,\s*(?:element|Component)\s*:\s*<?\s*([A-Z][\w.]*)/g)) add(m2[1], m2[2], file2, imports);
|
|
267565
|
+
const pages2 = /\bPAGES\s*=\s*\{([^}]*)\}/.exec(code3);
|
|
267276
267566
|
if (pages2) {
|
|
267277
|
-
const main4 = /\bmainPage\s*[:=]\s*["']([A-Za-z0-9_]+)["']/.exec(
|
|
267567
|
+
const main4 = /\bmainPage\s*[:=]\s*["']([A-Za-z0-9_]+)["']/.exec(code3)?.[1];
|
|
267278
267568
|
for (const pm of pages2[1].matchAll(/["']?([A-Z][A-Za-z0-9_]*)["']?\s*(?::\s*([A-Za-z_$][\w$]*))?\s*(?:,|$)/g)) {
|
|
267279
267569
|
const name = pm[1];
|
|
267280
267570
|
const comp = pm[2] ?? name;
|
|
@@ -267427,9 +267717,9 @@ var init_functions2 = __esm({
|
|
|
267427
267717
|
MAX_FILES = 200;
|
|
267428
267718
|
MAX_BYTES = 5 * 1024 * 1024;
|
|
267429
267719
|
FunctionSourceError = class extends Error {
|
|
267430
|
-
constructor(
|
|
267720
|
+
constructor(code3, message5) {
|
|
267431
267721
|
super(message5);
|
|
267432
|
-
this.code =
|
|
267722
|
+
this.code = code3;
|
|
267433
267723
|
}
|
|
267434
267724
|
};
|
|
267435
267725
|
}
|
|
@@ -267978,7 +268268,7 @@ function parsePublishedHtml2(html, base2) {
|
|
|
267978
268268
|
return out2;
|
|
267979
268269
|
}
|
|
267980
268270
|
function codeMask(js2) {
|
|
267981
|
-
const
|
|
268271
|
+
const code3 = new Uint8Array(js2.length);
|
|
267982
268272
|
const templates = [];
|
|
267983
268273
|
let i2 = 0;
|
|
267984
268274
|
const inHole = () => templates.length > 0 && templates[templates.length - 1] >= 0;
|
|
@@ -268059,20 +268349,20 @@ function codeMask(js2) {
|
|
|
268059
268349
|
templates[t2]--;
|
|
268060
268350
|
}
|
|
268061
268351
|
}
|
|
268062
|
-
|
|
268352
|
+
code3[i2] = 1;
|
|
268063
268353
|
if (!/\s/.test(c2)) {
|
|
268064
268354
|
word = /[A-Za-z0-9_$]/.test(c2) ? /[A-Za-z0-9_$]/.test(prev) ? word + c2 : c2 : "";
|
|
268065
268355
|
prev = c2;
|
|
268066
268356
|
}
|
|
268067
268357
|
i2++;
|
|
268068
268358
|
}
|
|
268069
|
-
return
|
|
268359
|
+
return code3;
|
|
268070
268360
|
}
|
|
268071
|
-
function enclosingObject(js2, at2,
|
|
268361
|
+
function enclosingObject(js2, at2, code3) {
|
|
268072
268362
|
let depth = 0;
|
|
268073
268363
|
let start2 = -1;
|
|
268074
268364
|
for (let i2 = at2; i2 >= Math.max(0, at2 - OBJECT_SCAN); i2--) {
|
|
268075
|
-
if (!
|
|
268365
|
+
if (!code3[i2]) continue;
|
|
268076
268366
|
const c2 = js2[i2];
|
|
268077
268367
|
if (c2 === "}") depth++;
|
|
268078
268368
|
else if (c2 === "{") {
|
|
@@ -268088,30 +268378,30 @@ function enclosingObject(js2, at2, code2) {
|
|
|
268088
268378
|
depth = 0;
|
|
268089
268379
|
for (let i2 = start2; i2 < Math.min(js2.length, start2 + 2 * OBJECT_SCAN); i2++) {
|
|
268090
268380
|
const c2 = js2[i2];
|
|
268091
|
-
if (
|
|
268381
|
+
if (code3[i2] && c2 === "{") {
|
|
268092
268382
|
depth++;
|
|
268093
268383
|
if (depth === 1) out2 += c2;
|
|
268094
268384
|
else if (depth === 2) out2 += "{}";
|
|
268095
268385
|
continue;
|
|
268096
268386
|
}
|
|
268097
|
-
if (
|
|
268387
|
+
if (code3[i2] && c2 === "}") {
|
|
268098
268388
|
depth--;
|
|
268099
268389
|
if (depth === 0) return out2 + c2;
|
|
268100
268390
|
continue;
|
|
268101
268391
|
}
|
|
268102
268392
|
if (depth === 1) {
|
|
268103
|
-
if (
|
|
268104
|
-
else if (
|
|
268393
|
+
if (code3[i2]) out2 += c2;
|
|
268394
|
+
else if (code3[i2 - 1]) out2 += '""';
|
|
268105
268395
|
}
|
|
268106
268396
|
}
|
|
268107
268397
|
return void 0;
|
|
268108
268398
|
}
|
|
268109
268399
|
function routesFromBundle(js2) {
|
|
268110
268400
|
const out2 = /* @__PURE__ */ new Set();
|
|
268111
|
-
const
|
|
268401
|
+
const code3 = codeMask(js2);
|
|
268112
268402
|
for (const m2 of js2.matchAll(/\bpath\s*:\s*["'`](\/[A-Za-z0-9_\-/:.*]*|\*)["'`]/g)) {
|
|
268113
|
-
if (!
|
|
268114
|
-
const own6 = enclosingObject(js2, m2.index,
|
|
268403
|
+
if (!code3[m2.index]) continue;
|
|
268404
|
+
const own6 = enclosingObject(js2, m2.index, code3);
|
|
268115
268405
|
const before = js2.slice(Math.max(0, m2.index - 80), m2.index);
|
|
268116
268406
|
if (!(own6 && ROUTE_KEY.test(own6)) && !NAV_LABEL_BEFORE.test(before)) continue;
|
|
268117
268407
|
out2.add(m2[1]);
|
|
@@ -268501,13 +268791,13 @@ var require_cjs = __commonJS({
|
|
|
268501
268791
|
}
|
|
268502
268792
|
var CONTROL_CHARS3 = /[\t\n\r]/g;
|
|
268503
268793
|
var extractedHostnameValidated = false;
|
|
268504
|
-
function isValidHostnameChar(
|
|
268505
|
-
return
|
|
268506
|
-
|
|
268507
|
-
|
|
268508
|
-
|
|
268509
|
-
|
|
268510
|
-
|
|
268794
|
+
function isValidHostnameChar(code3) {
|
|
268795
|
+
return code3 >= 97 && code3 <= 122 || // a-z
|
|
268796
|
+
code3 >= 48 && code3 <= 57 || // 0-9
|
|
268797
|
+
code3 > 127 || // non-ASCII (accepted, not punycode-checked)
|
|
268798
|
+
code3 >= 65 && code3 <= 90 || // A-Z (becomes valid once lowercased)
|
|
268799
|
+
code3 === 45 || // '-'
|
|
268800
|
+
code3 === 95;
|
|
268511
268801
|
}
|
|
268512
268802
|
function getSpecialScheme(url, schemeStart, colonIndex) {
|
|
268513
268803
|
const length2 = colonIndex - schemeStart;
|
|
@@ -268577,12 +268867,12 @@ var require_cjs = __commonJS({
|
|
|
268577
268867
|
}
|
|
268578
268868
|
} else {
|
|
268579
268869
|
for (let i2 = start2; i2 < indexOfProtocol; i2 += 1) {
|
|
268580
|
-
const
|
|
268581
|
-
if (!(
|
|
268582
|
-
|
|
268583
|
-
|
|
268584
|
-
|
|
268585
|
-
|
|
268870
|
+
const code3 = url.charCodeAt(i2) | 32;
|
|
268871
|
+
if (!(code3 >= 97 && code3 <= 122 || // [a, z]
|
|
268872
|
+
code3 >= 48 && code3 <= 57 || // [0, 9]
|
|
268873
|
+
code3 === 46 || // '.'
|
|
268874
|
+
code3 === 45 || // '-'
|
|
268875
|
+
code3 === 43)) {
|
|
268586
268876
|
const raw = url.charCodeAt(i2);
|
|
268587
268877
|
if (raw === 9 || raw === 10 || raw === 13) {
|
|
268588
268878
|
return extractHostname(url.replace(CONTROL_CHARS3, ""), urlIsValidHostname, validate5);
|
|
@@ -268599,26 +268889,26 @@ var require_cjs = __commonJS({
|
|
|
268599
268889
|
} else if (url.charCodeAt(start2) !== 91) {
|
|
268600
268890
|
let indexOfColon = -1;
|
|
268601
268891
|
for (let i2 = start2; i2 < end2; i2 += 1) {
|
|
268602
|
-
const
|
|
268603
|
-
if (
|
|
268892
|
+
const code3 = url.charCodeAt(i2);
|
|
268893
|
+
if (code3 === 9 || code3 === 10 || code3 === 13) {
|
|
268604
268894
|
return extractHostname(url.replace(CONTROL_CHARS3, ""), urlIsValidHostname, validate5);
|
|
268605
268895
|
}
|
|
268606
|
-
if (
|
|
268896
|
+
if (code3 === 58) {
|
|
268607
268897
|
indexOfColon = i2;
|
|
268608
268898
|
break;
|
|
268609
268899
|
}
|
|
268610
|
-
if (
|
|
268900
|
+
if (code3 === 47 || code3 === 92 || code3 === 63 || code3 === 35) {
|
|
268611
268901
|
break;
|
|
268612
268902
|
}
|
|
268613
268903
|
}
|
|
268614
268904
|
if (indexOfColon !== -1) {
|
|
268615
268905
|
let hasIdentifier = false;
|
|
268616
268906
|
for (let i2 = indexOfColon + 1; i2 < end2; i2 += 1) {
|
|
268617
|
-
const
|
|
268618
|
-
if (
|
|
268907
|
+
const code3 = url.charCodeAt(i2);
|
|
268908
|
+
if (code3 === 47 || code3 === 92 || code3 === 63 || code3 === 35) {
|
|
268619
268909
|
break;
|
|
268620
268910
|
}
|
|
268621
|
-
if (
|
|
268911
|
+
if (code3 === 64) {
|
|
268622
268912
|
hasIdentifier = true;
|
|
268623
268913
|
break;
|
|
268624
268914
|
}
|
|
@@ -268627,11 +268917,11 @@ var require_cjs = __commonJS({
|
|
|
268627
268917
|
let allDigits = true;
|
|
268628
268918
|
let i2 = indexOfColon + 1;
|
|
268629
268919
|
for (; i2 < end2; i2 += 1) {
|
|
268630
|
-
const
|
|
268631
|
-
if (
|
|
268920
|
+
const code3 = url.charCodeAt(i2);
|
|
268921
|
+
if (code3 === 47 || code3 === 92 || code3 === 63 || code3 === 35) {
|
|
268632
268922
|
break;
|
|
268633
268923
|
}
|
|
268634
|
-
if (
|
|
268924
|
+
if (code3 < 48 || code3 > 57) {
|
|
268635
268925
|
allDigits = false;
|
|
268636
268926
|
break;
|
|
268637
268927
|
}
|
|
@@ -268644,11 +268934,11 @@ var require_cjs = __commonJS({
|
|
|
268644
268934
|
if (special === 0) {
|
|
268645
268935
|
let isBareIpv6 = false;
|
|
268646
268936
|
for (let j2 = indexOfColon + 1; j2 < end2; j2 += 1) {
|
|
268647
|
-
const
|
|
268648
|
-
if (
|
|
268937
|
+
const code3 = url.charCodeAt(j2);
|
|
268938
|
+
if (code3 === 47 || code3 === 92 || code3 === 63 || code3 === 35) {
|
|
268649
268939
|
break;
|
|
268650
268940
|
}
|
|
268651
|
-
if (
|
|
268941
|
+
if (code3 === 58) {
|
|
268652
268942
|
isBareIpv6 = true;
|
|
268653
268943
|
break;
|
|
268654
268944
|
}
|
|
@@ -268695,46 +268985,46 @@ var require_cjs = __commonJS({
|
|
|
268695
268985
|
}
|
|
268696
268986
|
}
|
|
268697
268987
|
for (let i2 = start2; i2 < end2; i2 += 1) {
|
|
268698
|
-
const
|
|
268699
|
-
if (
|
|
268700
|
-
if (
|
|
268988
|
+
const code3 = url.charCodeAt(i2);
|
|
268989
|
+
if (code3 < 64) {
|
|
268990
|
+
if (code3 === 47 || code3 === 35 || code3 === 63) {
|
|
268701
268991
|
end2 = i2;
|
|
268702
268992
|
break;
|
|
268703
|
-
} else if (
|
|
268993
|
+
} else if (code3 === 58) {
|
|
268704
268994
|
if (indexOfFirstColon === -1) {
|
|
268705
268995
|
indexOfFirstColon = i2;
|
|
268706
268996
|
}
|
|
268707
268997
|
indexOfPort = i2;
|
|
268708
|
-
} else if (
|
|
268998
|
+
} else if (code3 === 9 || code3 === 10 || code3 === 13) {
|
|
268709
268999
|
hasControl = true;
|
|
268710
269000
|
} else if (validate5) {
|
|
268711
|
-
if (
|
|
269001
|
+
if (code3 === 46) {
|
|
268712
269002
|
if (i2 - vLastDot > 64 || vLastCode === 46 || vLastCode === 45) {
|
|
268713
269003
|
vValid = false;
|
|
268714
269004
|
}
|
|
268715
269005
|
vLastDot = i2;
|
|
268716
|
-
} else if (
|
|
268717
|
-
if (
|
|
269006
|
+
} else if (code3 < 48 || code3 > 57) {
|
|
269007
|
+
if (code3 !== 45 || vLastCode === 46) {
|
|
268718
269008
|
vValid = false;
|
|
268719
269009
|
}
|
|
268720
269010
|
}
|
|
268721
269011
|
}
|
|
268722
|
-
} else if (isSpecial2 &&
|
|
269012
|
+
} else if (isSpecial2 && code3 === 92) {
|
|
268723
269013
|
end2 = i2;
|
|
268724
269014
|
break;
|
|
268725
|
-
} else if (
|
|
269015
|
+
} else if (code3 === 64) {
|
|
268726
269016
|
indexOfIdentifier = i2;
|
|
268727
269017
|
indexOfFirstColon = -1;
|
|
268728
|
-
} else if (
|
|
269018
|
+
} else if (code3 === 93) {
|
|
268729
269019
|
indexOfClosingBracket = i2;
|
|
268730
|
-
} else if (
|
|
269020
|
+
} else if (code3 >= 65 && code3 <= 90) {
|
|
268731
269021
|
hasUpper = true;
|
|
268732
269022
|
} else if (validate5 && !/*@__INLINE__*/
|
|
268733
|
-
isValidHostnameChar(
|
|
269023
|
+
isValidHostnameChar(code3)) {
|
|
268734
269024
|
vValid = false;
|
|
268735
269025
|
}
|
|
268736
269026
|
if (validate5) {
|
|
268737
|
-
vLastCode =
|
|
269027
|
+
vLastCode = code3;
|
|
268738
269028
|
}
|
|
268739
269029
|
}
|
|
268740
269030
|
if (hasControl) {
|
|
@@ -268781,10 +269071,10 @@ var require_cjs = __commonJS({
|
|
|
268781
269071
|
}
|
|
268782
269072
|
let numberOfDots = 0;
|
|
268783
269073
|
for (let i2 = 0; i2 < hostname8.length; i2 += 1) {
|
|
268784
|
-
const
|
|
268785
|
-
if (
|
|
269074
|
+
const code3 = hostname8.charCodeAt(i2);
|
|
269075
|
+
if (code3 === 46) {
|
|
268786
269076
|
numberOfDots += 1;
|
|
268787
|
-
} else if (
|
|
269077
|
+
} else if (code3 < 48 || code3 > 57) {
|
|
268788
269078
|
return false;
|
|
268789
269079
|
}
|
|
268790
269080
|
}
|
|
@@ -268804,12 +269094,12 @@ var require_cjs = __commonJS({
|
|
|
268804
269094
|
}
|
|
268805
269095
|
let hasColon = false;
|
|
268806
269096
|
for (; start2 < end2; start2 += 1) {
|
|
268807
|
-
const
|
|
268808
|
-
if (
|
|
269097
|
+
const code3 = hostname8.charCodeAt(start2);
|
|
269098
|
+
if (code3 === 58) {
|
|
268809
269099
|
hasColon = true;
|
|
268810
|
-
} else if (!(
|
|
268811
|
-
|
|
268812
|
-
|
|
269100
|
+
} else if (!(code3 >= 48 && code3 <= 57 || // 0-9
|
|
269101
|
+
code3 >= 97 && code3 <= 102 || // a-f
|
|
269102
|
+
code3 >= 65 && code3 <= 70)) {
|
|
268813
269103
|
return false;
|
|
268814
269104
|
}
|
|
268815
269105
|
}
|
|
@@ -268860,8 +269150,8 @@ var require_cjs = __commonJS({
|
|
|
268860
269150
|
}
|
|
268861
269151
|
return false;
|
|
268862
269152
|
}
|
|
268863
|
-
function isValidAscii(
|
|
268864
|
-
return
|
|
269153
|
+
function isValidAscii(code3) {
|
|
269154
|
+
return code3 >= 97 && code3 <= 122 || code3 >= 48 && code3 <= 57 || code3 > 127;
|
|
268865
269155
|
}
|
|
268866
269156
|
function isValidHostname(hostname8) {
|
|
268867
269157
|
if (hostname8.length > 255) {
|
|
@@ -268881,8 +269171,8 @@ var require_cjs = __commonJS({
|
|
|
268881
269171
|
let lastCharCode = -1;
|
|
268882
269172
|
const len = hostname8.length;
|
|
268883
269173
|
for (let i2 = 0; i2 < len; i2 += 1) {
|
|
268884
|
-
const
|
|
268885
|
-
if (
|
|
269174
|
+
const code3 = hostname8.charCodeAt(i2);
|
|
269175
|
+
if (code3 === 46) {
|
|
268886
269176
|
if (
|
|
268887
269177
|
// Check that previous label is < 63 bytes long (64 = 63 + '.')
|
|
268888
269178
|
i2 - lastDotIndex > 64 || // Check that previous character was not already a '.'
|
|
@@ -268897,15 +269187,15 @@ var require_cjs = __commonJS({
|
|
|
268897
269187
|
} else if (
|
|
268898
269188
|
// A forbidden character in the label...
|
|
268899
269189
|
!/*@__INLINE__*/
|
|
268900
|
-
(isValidAscii(
|
|
269190
|
+
(isValidAscii(code3) || code3 === 45 || code3 === 95) || // ...or a '-' starting a label (the byte right after a '.'). A label must
|
|
268901
269191
|
// not begin with a hyphen (RFC 1034 §3.5 / RFC 1035 §2.3.1 LDH, as amended
|
|
268902
269192
|
// by RFC 1123 §2.1; cf. UTS #46 CheckHyphens). The first label is covered by
|
|
268903
269193
|
// the leading-character guard above; mirrors the trailing-'-' rule below.
|
|
268904
|
-
|
|
269194
|
+
code3 === 45 && lastCharCode === 46
|
|
268905
269195
|
) {
|
|
268906
269196
|
return false;
|
|
268907
269197
|
}
|
|
268908
|
-
lastCharCode =
|
|
269198
|
+
lastCharCode = code3;
|
|
268909
269199
|
}
|
|
268910
269200
|
return (
|
|
268911
269201
|
// Check that last label is shorter than 63 chars
|
|
@@ -269135,8 +269425,8 @@ var require_cjs = __commonJS({
|
|
|
269135
269425
|
let hash3 = 5381;
|
|
269136
269426
|
matchNode = -1;
|
|
269137
269427
|
for (let i2 = hostname8.length - 1; i2 >= 0; i2 -= 1) {
|
|
269138
|
-
const
|
|
269139
|
-
if (
|
|
269428
|
+
const code3 = hostname8.charCodeAt(i2);
|
|
269429
|
+
if (code3 === 46) {
|
|
269140
269430
|
const start2 = i2 + 1;
|
|
269141
269431
|
let edge2 = findEdge(node3, hash3 >>> 0, hostname8, start2, end2 - start2);
|
|
269142
269432
|
if (edge2 === -1) {
|
|
@@ -269154,7 +269444,7 @@ var require_cjs = __commonJS({
|
|
|
269154
269444
|
end2 = i2;
|
|
269155
269445
|
hash3 = 5381;
|
|
269156
269446
|
} else {
|
|
269157
|
-
hash3 = hash3 * 33 ^
|
|
269447
|
+
hash3 = hash3 * 33 ^ code3;
|
|
269158
269448
|
}
|
|
269159
269449
|
}
|
|
269160
269450
|
let edge = findEdge(node3, hash3 >>> 0, hostname8, 0, end2);
|
|
@@ -272674,8 +272964,8 @@ var init_one_app_page = __esm({
|
|
|
272674
272964
|
"../../stdlib/flows/screens/src/one-app-page.ts"() {
|
|
272675
272965
|
init_define_HHP_CATALOG();
|
|
272676
272966
|
init_src11();
|
|
272677
|
-
failure2 = (
|
|
272678
|
-
throw Object.assign(new Error(message5), { name: "OneAppPageContentError", code:
|
|
272967
|
+
failure2 = (code3, message5) => {
|
|
272968
|
+
throw Object.assign(new Error(message5), { name: "OneAppPageContentError", code: code3 });
|
|
272679
272969
|
};
|
|
272680
272970
|
object13 = (v2) => v2 && typeof v2 === "object" && !Array.isArray(v2) ? v2 : {};
|
|
272681
272971
|
invalid3 = () => failure2("invalid", "The referenced page returned malformed content.");
|
|
@@ -272963,9 +273253,9 @@ async function collectOneApp(input, deps = {}) {
|
|
|
272963
273253
|
}
|
|
272964
273254
|
if (!response.ok) {
|
|
272965
273255
|
controller.abort();
|
|
272966
|
-
const
|
|
273256
|
+
const code3 = response.status === 401 ? "source_unauthorized" : response.status === 403 ? "source_forbidden" : response.status === 404 ? "source_not_found" : "source_request_failed";
|
|
272967
273257
|
const message5 = response.status === 401 || response.status === 403 ? "The signed-in Wix user cannot read this source app. Check site access and sign in again." : response.status === 404 ? "The source app was not found. Check the metasite ID." : "The source could not be read. Try again later.";
|
|
272968
|
-
throw new OneAppError(
|
|
273258
|
+
throw new OneAppError(code3, message5, { stage, httpStatus: response.status });
|
|
272969
273259
|
}
|
|
272970
273260
|
const length2 = Number(response.headers.get("content-length"));
|
|
272971
273261
|
if (Number.isFinite(length2) && length2 > maxBytes) {
|
|
@@ -275526,8 +275816,8 @@ async function runOneAppIdentityValidation(args, io2) {
|
|
|
275526
275816
|
}
|
|
275527
275817
|
const values = /* @__PURE__ */ new Map();
|
|
275528
275818
|
let fix = false;
|
|
275529
|
-
const fail16 = (
|
|
275530
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
275819
|
+
const fail16 = (code3, error) => {
|
|
275820
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error }));
|
|
275531
275821
|
return 1;
|
|
275532
275822
|
};
|
|
275533
275823
|
for (let i2 = 0; i2 < args.length; i2++) {
|
|
@@ -277698,8 +277988,8 @@ async function runOneAppAccess(args, io2) {
|
|
|
277698
277988
|
const wallEdit = decision.wall ? applyLoginWall(nextConfig, decision.wall, { keepExisting: decision.basis === "evidence", ...gateScreenId ? { gateScreenId } : {} }) : void 0;
|
|
277699
277989
|
const manual = [screensEdit, configEdit, wallEdit].find((edit) => edit?.status === "manual");
|
|
277700
277990
|
if (manual) {
|
|
277701
|
-
const
|
|
277702
|
-
return report8(io2, false, { code:
|
|
277991
|
+
const code3 = manual === configEdit && configEdit?.needsNewApp ? "app_services_unavailable" : "needs_manual_merge";
|
|
277992
|
+
return report8(io2, false, { code: code3, gates: plan.gates, ...common2, error: manual.reason });
|
|
277703
277993
|
}
|
|
277704
277994
|
if (wallEdit) nextConfig = wallEdit.text;
|
|
277705
277995
|
const loginWall = {
|
|
@@ -277933,8 +278223,8 @@ function runPaymentReview(args, io2) {
|
|
|
277933
278223
|
return 0;
|
|
277934
278224
|
}
|
|
277935
278225
|
let evidenceDir;
|
|
277936
|
-
const fail16 = (
|
|
277937
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
278226
|
+
const fail16 = (code3, issues, exit) => {
|
|
278227
|
+
io2.error(JSON.stringify({ ok: false, code: code3, issues, usage: PAYMENT_REVIEW_USAGE }));
|
|
277938
278228
|
return exit;
|
|
277939
278229
|
};
|
|
277940
278230
|
for (let i2 = 0; i2 < args.length; i2++) {
|
|
@@ -279066,13 +279356,13 @@ var init_site_member_app = __esm({
|
|
|
279066
279356
|
"request_failed"
|
|
279067
279357
|
];
|
|
279068
279358
|
SITE_RE10 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
279069
|
-
fail15 = (
|
|
279359
|
+
fail15 = (code3, error, extra = {}) => ({ ok: false, code: code3, error, ...extra });
|
|
279070
279360
|
}
|
|
279071
279361
|
});
|
|
279072
279362
|
|
|
279073
279363
|
// src/site-analyze/language.ts
|
|
279074
|
-
function normalizeLang(
|
|
279075
|
-
const p2 =
|
|
279364
|
+
function normalizeLang(code3) {
|
|
279365
|
+
const p2 = code3.trim().toLowerCase().replace(/_/g, "-").split("-")[0] ?? "";
|
|
279076
279366
|
return /^[a-z]{2,3}$/.test(p2) ? p2 : "";
|
|
279077
279367
|
}
|
|
279078
279368
|
function inferContentLanguage(texts) {
|
|
@@ -280077,12 +280367,12 @@ async function readMobileApp(fetchImpl, auth, deps = {}) {
|
|
|
280077
280367
|
if (e2 instanceof OneAppError && e2.code === "source_not_found" && e2.details?.stage === "published") {
|
|
280078
280368
|
return { chapter: { status: "none", note: "the mobile server has no app structure for this site", ...empty() } };
|
|
280079
280369
|
}
|
|
280080
|
-
const
|
|
280370
|
+
const code3 = e2 instanceof OneAppError ? e2.code : "source_request_failed";
|
|
280081
280371
|
const httpStatus = e2 instanceof OneAppError ? e2.details?.httpStatus : void 0;
|
|
280082
280372
|
return {
|
|
280083
280373
|
chapter: {
|
|
280084
280374
|
status: "error",
|
|
280085
|
-
errorCode:
|
|
280375
|
+
errorCode: code3,
|
|
280086
280376
|
...httpStatus ? { httpStatus } : {},
|
|
280087
280377
|
note: e2 instanceof OneAppError ? e2.message : "the mobile app structure could not be read",
|
|
280088
280378
|
...empty()
|
|
@@ -282459,8 +282749,8 @@ async function accountToken2(spawnImpl = spawn9) {
|
|
|
282459
282749
|
child3.stdout?.on("data", scan);
|
|
282460
282750
|
child3.stderr?.on("data", scan);
|
|
282461
282751
|
child3.on("error", (e2) => done(() => reject(new Error(mintHelp2(e2.message)))));
|
|
282462
|
-
child3.on("exit", (
|
|
282463
|
-
`\`wix token\` exited (code ${
|
|
282752
|
+
child3.on("exit", (code3) => done(() => reject(new Error(
|
|
282753
|
+
`\`wix token\` exited (code ${code3}) without printing a Wix token \u2014 is the Wix CLI logged in (\`wix login\`)? ${redactForError(out2)}`
|
|
282464
282754
|
))));
|
|
282465
282755
|
});
|
|
282466
282756
|
cached2 = token;
|
|
@@ -283332,8 +283622,8 @@ async function collectSiteContext(opts) {
|
|
|
283332
283622
|
if (!Array.isArray(data?.collections)) throw new Error("Malformed CMS inventory");
|
|
283333
283623
|
return data;
|
|
283334
283624
|
} catch (e2) {
|
|
283335
|
-
const
|
|
283336
|
-
failure4 =
|
|
283625
|
+
const code3 = e2 instanceof WixApiError2 ? e2.body?.details?.applicationError?.code : void 0;
|
|
283626
|
+
failure4 = code3 === "WDE0110" ? { status: "unavailable", httpStatus: 400 } : failed2(e2);
|
|
283337
283627
|
throw e2;
|
|
283338
283628
|
}
|
|
283339
283629
|
} : void 0;
|
|
@@ -283631,22 +283921,22 @@ function isStructured(envelope) {
|
|
|
283631
283921
|
}
|
|
283632
283922
|
function forwardFinding(finding2, run4, mode, secrets) {
|
|
283633
283923
|
const buildStop = (mode === "crawl" || mode === "browser") && run4.envelope?.stage === "build";
|
|
283634
|
-
let pass,
|
|
283924
|
+
let pass, code3, phase;
|
|
283635
283925
|
if (mode === "validate") {
|
|
283636
283926
|
pass = run4.flags.strict === true ? "validate:strict" : "validate";
|
|
283637
|
-
|
|
283927
|
+
code3 = lintCode(finding2);
|
|
283638
283928
|
phase = ["compile", "build", "worker"].includes(text31(finding2.pass) ?? "") ? "build" : "check";
|
|
283639
283929
|
} else if (buildStop) {
|
|
283640
283930
|
pass = BUILD_STOP_PASSES.has(text31(finding2.pass) ?? "") ? "build" : "lint";
|
|
283641
|
-
|
|
283931
|
+
code3 = lintCode(finding2);
|
|
283642
283932
|
phase = "build";
|
|
283643
283933
|
} else if (mode === "functions") {
|
|
283644
283934
|
pass = "functions";
|
|
283645
|
-
|
|
283935
|
+
code3 = "function-not-ok";
|
|
283646
283936
|
phase = "check";
|
|
283647
283937
|
} else {
|
|
283648
283938
|
pass = mode === "browser" ? "browser-crawl" : `${crawlPass(finding2)}${profileSuffix(run4.flags)}`;
|
|
283649
|
-
|
|
283939
|
+
code3 = text31(finding2.invariant) ? codeName(text31(finding2.invariant)) : lintCode(finding2);
|
|
283650
283940
|
phase = "check";
|
|
283651
283941
|
}
|
|
283652
283942
|
const screen = text31(finding2.screen);
|
|
@@ -283655,12 +283945,12 @@ function forwardFinding(finding2, run4, mode, secrets) {
|
|
|
283655
283945
|
return {
|
|
283656
283946
|
...id && /^[a-z0-9:]{1,64}$/.test(id) ? { id } : {},
|
|
283657
283947
|
pass: codeName(pass, 64),
|
|
283658
|
-
code:
|
|
283948
|
+
code: code3,
|
|
283659
283949
|
severity: "error",
|
|
283660
283950
|
phase,
|
|
283661
283951
|
screen: screen ? boundedText(screen, secrets).slice(0, 128) : null,
|
|
283662
283952
|
...location ? { location } : {},
|
|
283663
|
-
message: boundedText(text31(finding2.message) ??
|
|
283953
|
+
message: boundedText(text31(finding2.message) ?? code3, secrets),
|
|
283664
283954
|
...text31(finding2.actual) ? { observed: boundedText(text31(finding2.actual), secrets) } : {},
|
|
283665
283955
|
...text31(finding2.expected) ? { expected: boundedText(text31(finding2.expected), secrets) } : {}
|
|
283666
283956
|
};
|
|
@@ -284171,9 +284461,9 @@ var init_judge = __esm({
|
|
|
284171
284461
|
clearTimeout(timer);
|
|
284172
284462
|
done({ code: null, stdout, stderr, error });
|
|
284173
284463
|
});
|
|
284174
|
-
child3.on("close", (
|
|
284464
|
+
child3.on("close", (code3) => {
|
|
284175
284465
|
clearTimeout(timer);
|
|
284176
|
-
done({ code:
|
|
284466
|
+
done({ code: code3, stdout, stderr, timedOut });
|
|
284177
284467
|
});
|
|
284178
284468
|
child3.stdin.on("error", () => {
|
|
284179
284469
|
});
|
|
@@ -284260,7 +284550,7 @@ var init_score = __esm({
|
|
|
284260
284550
|
child3.stdout.on("data", (d2) => stdout += d2);
|
|
284261
284551
|
child3.stderr.on("data", (d2) => stderr += d2);
|
|
284262
284552
|
child3.on("error", reject);
|
|
284263
|
-
child3.on("close", (
|
|
284553
|
+
child3.on("close", (code3) => resolve133({ code: code3 ?? 1, stdout, stderr }));
|
|
284264
284554
|
});
|
|
284265
284555
|
}
|
|
284266
284556
|
});
|
|
@@ -284578,9 +284868,9 @@ function runWithTimeout(cmd, args, timeoutMs) {
|
|
|
284578
284868
|
clearTimeout(timer);
|
|
284579
284869
|
resolve133({ code: 127, stdout: Buffer.alloc(0) });
|
|
284580
284870
|
});
|
|
284581
|
-
child3.on("close", (
|
|
284871
|
+
child3.on("close", (code3) => {
|
|
284582
284872
|
clearTimeout(timer);
|
|
284583
|
-
resolve133({ code:
|
|
284873
|
+
resolve133({ code: code3 ?? 1, stdout: Buffer.concat(chunks) });
|
|
284584
284874
|
});
|
|
284585
284875
|
});
|
|
284586
284876
|
}
|
|
@@ -285088,9 +285378,9 @@ async function fidelityCommand(ctx) {
|
|
|
285088
285378
|
try {
|
|
285089
285379
|
report9 = await runFidelity2(dir, { judgeDir, screens: list4(flags.screen), variants, ...native !== void 0 ? { native } : {}, ...rtl ? { rtl } : {}, ...unlinkable ? { unlinkable } : {} });
|
|
285090
285380
|
} catch (e2) {
|
|
285091
|
-
const
|
|
285092
|
-
if (
|
|
285093
|
-
io2.error(failure3(
|
|
285381
|
+
const code3 = e2.code;
|
|
285382
|
+
if (code3 === "fidelity_not_hhp" || code3 === "fidelity_unknown_screen") {
|
|
285383
|
+
io2.error(failure3(code3, e2.message));
|
|
285094
285384
|
return 2;
|
|
285095
285385
|
}
|
|
285096
285386
|
io2.error(failure3("fidelity_error", e2.message ?? String(e2)));
|
|
@@ -285121,7 +285411,7 @@ var init_fidelity = __esm({
|
|
|
285121
285411
|
"src/commands/fidelity.ts"() {
|
|
285122
285412
|
init_define_HHP_CATALOG();
|
|
285123
285413
|
init_cli_shared();
|
|
285124
|
-
failure3 = (
|
|
285414
|
+
failure3 = (code3, error, extra = {}) => JSON.stringify({ ok: false, code: code3, error, ...extra });
|
|
285125
285415
|
list4 = (v2) => typeof v2 === "string" ? v2.split(",").map((s5) => s5.trim()).filter(Boolean) : [];
|
|
285126
285416
|
}
|
|
285127
285417
|
});
|
|
@@ -285133,8 +285423,8 @@ __export(publish_size_exports2, {
|
|
|
285133
285423
|
});
|
|
285134
285424
|
async function publishSizeCommand(ctx) {
|
|
285135
285425
|
const { flags, pos, print } = ctx;
|
|
285136
|
-
const fail16 = (
|
|
285137
|
-
print({ ok: false, code:
|
|
285426
|
+
const fail16 = (code3, error, extra = {}, exit = 1) => {
|
|
285427
|
+
print({ ok: false, code: code3, error, pushed: false, claimed: false, ...extra });
|
|
285138
285428
|
return exit;
|
|
285139
285429
|
};
|
|
285140
285430
|
const allowed2 = /* @__PURE__ */ new Set(["content", "app", "reserve-bytes", "target", "source", "binary", "json", "skip-version-check"]);
|
|
@@ -285336,8 +285626,8 @@ import { join as join212 } from "node:path";
|
|
|
285336
285626
|
import ts33 from "typescript";
|
|
285337
285627
|
async function runExt(ctx) {
|
|
285338
285628
|
const { pos, flags, io: io2, print } = ctx;
|
|
285339
|
-
const fail16 = (
|
|
285340
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
285629
|
+
const fail16 = (code3, error, extra = {}, exit = 1) => {
|
|
285630
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error, ...extra }));
|
|
285341
285631
|
return exit;
|
|
285342
285632
|
};
|
|
285343
285633
|
const sub = pos[1];
|
|
@@ -285699,6 +285989,8 @@ var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
|
285699
285989
|
"mocks",
|
|
285700
285990
|
"no-mocks",
|
|
285701
285991
|
"no-native",
|
|
285992
|
+
"pressed",
|
|
285993
|
+
"reduce-motion",
|
|
285702
285994
|
"from-base44-cli",
|
|
285703
285995
|
"no-browser",
|
|
285704
285996
|
"install-browser",
|
|
@@ -286780,7 +287072,8 @@ Learn (works offline \u2014 no serve stack needed):
|
|
|
286780
287072
|
himi docs status|refresh [--pin <version|digest>] [--unpin] [--no-network] [--json]
|
|
286781
287073
|
inspect/refresh verified compatible authoring references, independently of CLI
|
|
286782
287074
|
himi docs [<topic>] list guides, or print one (--json for structured)
|
|
286783
|
-
himi components [<Name>]
|
|
287075
|
+
himi components [<Name> \u2026] the SDUI component vocabulary; names = each one's props, dispatches,
|
|
287076
|
+
the shapes its props name, then the modifiers (--json: {components})
|
|
286784
287077
|
himi sdk [<name>|unverified] importable @himalaya SDKs, typed API, or unverified exports (--json)
|
|
286785
287078
|
himi capabilities [<id>] [--shell <s>] native capabilities (camera, location, push, \u2026): the import,
|
|
286786
287079
|
where to declare it, what the binary needs, which shells serve it
|
|
@@ -286851,7 +287144,7 @@ var COMMANDS = [
|
|
|
286851
287144
|
{ name: "store", summary: "`app set --app <id> --site <msid> --android-package himi.<name>` gives an app YOUR account owns (one made with `himi init`) the Google Play store app of a Wix site your account also owns, so `himi dist --aab` makes its Wix-signed (WixOne) Play bundle: the app is LINKED to the site, never converted into a site app, so your `himi login` token keeps working for push and the rest. `app set --link-only` links and holds the site with no package, for an owner-signed app whose Play package is your own. One site per app and one app per site; the package name is permanent once a build locks it. `app show --app <id> --site <msid>` runs the store build's checks without building (saved package name, the site's Premium plan). Both send your `himi login` control token plus the account `wix token`, which the plane uses to verify your account owns the app and the site (`himi docs qa-builds`). `apple-keys setup|status` onboards the owner\u2019s ASC and In-App Purchase keys independently of push and signing profiles. `connect` and `submission status|plan|apply|rejection|reply` submit an app to the App Store from YOUR computer under YOUR Apple account, off-repo (Node 24+): `connect` opens a sign-in page on 127.0.0.1 where you type your Apple ID password and 2FA code (no flag takes them) and creates an Admin API key saved in this computer's keychain, shared with Wix for App Store builds when the app's store/app-store.json names its site; `submission plan` plans the next ordered batch and `apply` applies it only after you type the plan hash's first 8 characters (or click Approve on a local page). The same steps are the store_* tools of `himi mcp` (`himi docs store-submission`). `--platform android` takes `connect` and `submission status|plan|apply|rejection|reply` to Google Play instead: `connect` signs you in to Google in your browser (the OAuth client file from GPLAY_OAUTH_CLIENT_FILE or gplay-node's state dir, else a gcloud sign-in), the facts come from the app's store/google-play.json (category, contactEmail, privacyPolicyUrl, targetAudience, contentRatingCategory, packageName), a site-linked himi.<name> app is Wix-signed (`himi dist --aab`) and any other owner-signed (`--android-signing owner --google-services <file>`, then `google keygen <package>` makes the upload key once and `google resign <in.aab> --keystore <file.p12> --storepass-file <file>` signs the bundle, both on this computer), `apply` takes one `--job`, and `submission approve-reply --platform android --issue <id> --kind appeal|resubmit --text <reply>` records your typed yes on one exact policy reply (no --yes), the only way `reply` or store_reply can plan it. `record show|refresh|sync|pull` reads the app's store record on this computer (~/.himi/store, or HIMI_STORE_HOME / --record-dir): what each store showed when last read, what was last sent and what is drafted, with ages and drift; `refresh --platform android [--part status|tracks|listing|app-content|account|policy|all]` reads Google again into it; `sync` exchanges it with the copy Wix keeps for the app and `pull` only fetches it, for a new computer, with your himi login: the site's owner writes it, and so does the Wix person helping with the app while the owner lets Wix submit it (`wix-submit start`), while a `--read-only` consent only lets them pull; after a job verifies, the record is pushed on its own (a failure is a warning; HIMI_STORE_RECORD_SYNC=off turns it off). `handoff` uploads the app's asc-node records (allowlisted ids, statuses and outcomes; never keys, cookies or passwords) so Wix can take the submission over, `--out`/`--dry-run` keep it local. `wix-submit start [--platform ios|android] [--read-only] [--yes]` lets Wix submit the app for you: after your yes it records your consent for 90 days (read and submit; on Android also Wix-signed builds and Play Console work; `--read-only` is read alone), sends the handoff, and on Android adds the Wix person helping with your app to YOUR Google Play account for 90 days, showing their name and email first, after a typed yes at a terminal (`--yes` answers the consent only; with no one named yet, Wix contacts you and you run start again); `wix-submit stop` withdraws the consent and removes everyone Wix added to your Google Play account for the app (non-zero while anyone may remain); `wix-submit status` shows the consent (scopes, recorded, expires), who is helping and whether they are on your Play account. All are site-owner only (`himi store wix-submit --help`). `google create-app --name <n>` creates the app in your own Play Console after you read Google's Create app declarations and type yes. The App Store Connect group behind `testflight`. `preflight <app>` checks readiness offline (icon, entitlements, encryption flag, version, store.config ids, listing + review record); `upload <app>` is what `testflight` runs; `status <app>` reads live build + processing state. `--profile` selects WHICH App Store Connect account: an app built for a Wix customer ships under the CUSTOMER's Apple team (Apple guideline 4.2.6 forbids an app-generation service submitting on a client's behalf), declared per-app as ios.credentialProfile in store.config.yaml and resolved from ~/.himalaya/store-credentials/<name>.json \u2014 the .p8 itself never enters the repo. `iap draft|plan|apply|status|connect|screenshots|check|mappings` registers an app owner's digital products as in-app purchases (non-consumables, or consumable price tiers): draft reads the Wix catalog and writes the manifest, plan and status only read, apply is the one App Store mutation boundary, connect readies the Wix site to sell them (purchases app, In-App Purchase key, appleIAP provider, product mappings; --preview-tag routes only its Serve calls to a deploy preview), legacy screenshots --profile renders each product's purchase screen from the app (--content) as a bound iPhone shows it to a signed-in member and names the 1290\xD72796 PNG as the item's App Review screenshot, and none of them builds, signs or needs a checkout (`himi docs iap-products`) IAP provisioning defaults to Catalog; managed apply generates screenshots on the server with no local .p8 or profile fallback; --managed is optional and --profile selects legacy mode; --catalog-route or HIMI_IAP_CATALOG_ROUTE has no default.", required: "app set --app <id> --site <msid> (--android-package himi.<name> | --link-only) | app show --app <id> --site <msid> | connect [--dir <app>] [--app <id> --site <msid>] [--no-key] [--profile <name>] | submission status|plan|rejection [--dir <app>] [--apple-id <id>] [--profile <name>] | submission apply (--batch <id> | --job <id>) --plan-hash <hash> | submission reply --text <reply> [--attach <file>]\u2026 [--thread <id>] [--dir <app>] | connect --platform android | submission status|plan|rejection --platform android [--dir <app>] [--issue <id>] | submission apply --platform android --job <id> --plan-hash <hash> | submission reply|approve-reply --platform android --issue <id> --kind appeal|resubmit --text <reply> [--dir <app>] | record show [--dir <app>] [--platform android|ios] [--part <part>] [--record-dir <dir>] | record refresh [--dir <app>] [--platform android] [--part <part>] | record sync|pull [--dir <app>] [--app <id> --site <msid>] [--record-dir <dir>] | handoff [--dir <app>] [--app <id> --site <msid>] [--apple-app-id <id>] [--out <file> | --dry-run] | wix-submit start [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--read-only] [--yes] [--developer <id>] [--android-package himi.<name>] | wix-submit stop [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--yes] [--developer <id>] | wix-submit status [--dir <app>] [--app <id> --site <msid>] [--platform ios|android] [--developer <id>] | google create-app --name <app name> [--app <id> --site <msid>] [--developer <id>] [--android-package himi.<name>] | google testers pool-add|pool-remove|pool-check [--dir <app>] [--track himi-pool] | google testers consent grant|revoke|status [--dir <app>] | google keygen <package> [--out <file.p12>] [--alias <name>] [--name <certificate name>] | google resign <in.aab> --keystore <file.p12> (--storepass-file <file> | --storepass-env <NAME>) [--alias <name>] [--out <file.aab>] | apple-keys setup|status --app <slug> --site <metaSiteId> --bundle-id <id> [--asc-key-file <p8> --asc-key-id <id> --asc-issuer-id <issuer>] [--iap-key <p8> --iap-key-id <id> --iap-issuer-id <issuer>] [--yes|--dry-run] [--json] | preflight <app> [--profile <n>] | upload <app> [--track <t>] [--profile <n>] [--yes] [--dry-run] | status <app> [--profile <n>] | iap draft --site <msid> " + IAP_CREDENTIAL_OPTIONS + " --apple-app <id> --bundle <id> --base-territory <t> --out <f> [--territories <a,b>] [--locale <l>] [--mode per-item|tiers] [--merge <f>] [--report <f>] [--json] | iap plan --manifest <f> " + IAP_CREDENTIAL_OPTIONS + " --out <f> [--json] | iap apply --plan <f> " + IAP_CREDENTIAL_OPTIONS + " --out <f> [--yes] [--limit <n>] [--no-submit] [--json] | iap status --manifest <f> " + IAP_CREDENTIAL_OPTIONS + " [--out <f>] [--json] | iap connect --manifest <f> [--profile <n>] [--catalog-route <prefix>] [--iap-key <AuthKey.p8> --iap-key-id <id>] [--content <dir>] [--preview-tag dp-<tag>] [--dry-run] [--yes] [--out <f>] [--json] | iap screenshots --manifest <f> --content <dir> --profile <n> [--out-dir <d>] [--only <id,\u2026>] [--force] [--dry-run] [--json] | iap check --manifest <f> --catalog-route <prefix> [--purchases-app <id>] [--content <dir>] [--plist <file>] [--visitor-client <id>] [--json] | iap mappings --site <msid> --purchases-app <id> --catalog-route <prefix> [--product <id> --active true|false --yes] [--json]" },
|
|
286852
287145
|
{ name: "guide", summary: "print the Himalaya overview + headless dev loop + available topics (offline)", required: "[--json]" },
|
|
286853
287146
|
{ name: "docs", summary: "print bundled/verified cached guides offline; status reports kit identity; refresh downloads compatible reference content independently of CLI without changing app source", required: "[<topic>|catalog [kind]|status|refresh] [--pin <version|digest>] [--unpin] [--no-network] [--json]" },
|
|
286854
|
-
{ name: "components", summary: "print the SDUI component vocabulary
|
|
287147
|
+
{ name: "components", summary: "print the SDUI component vocabulary; names = every named component in one call: props, dispatches, the element shapes its props name, then the modifiers every component accepts (offline). --json with several names returns {components:{<Name>:\u2026}}; one name keeps the bare entry. An unknown name still prints the others and exits 2 with code unknown_component", required: "[<Name> \u2026] [--json]" },
|
|
286855
287148
|
{ name: "sdk", summary: "list importable @himalaya SDKs + descriptions; a name = that SDK's typed API (offline); `unverified` lists every export still carrying a verify-live doubt", required: "[<name>|unverified] [--json] [--summary]" },
|
|
286856
287149
|
{ name: "capabilities", summary: "the native capabilities a worker can use (camera, location, push, \u2026): what to import, where to declare it, what the binary needs, and which `himi dist --shell` binaries serve it. A capability with a native footprint (a permission or entitlement) only arrives with a new binary \u2014 an OTA push cannot add it. `--shell` checks one shell; with none it reads himalaya.content.json `shell` (offline)", required: "[<id>] [--shell " + SHELL_ENUM + "] [--json]" },
|
|
286857
287150
|
{ name: "skills", summary: "list the authoring topics you can learn, grouped by category (offline)", required: "[--json]" },
|
|
@@ -286963,9 +287256,9 @@ async function resolveFromUrl(ctx) {
|
|
|
286963
287256
|
if (flagUrl === void 0 && specPath === void 0) return void 0;
|
|
286964
287257
|
const { FromUrlError: FromUrlError2, readAppSpec: readAppSpec2, siteUrlOf: siteUrlOf2 } = await Promise.resolve().then(() => (init_spec(), spec_exports));
|
|
286965
287258
|
const refuse10 = (e2) => {
|
|
286966
|
-
const
|
|
286967
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
286968
|
-
return
|
|
287259
|
+
const code3 = e2 instanceof FromUrlError2 ? e2.code : "app_spec_invalid";
|
|
287260
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error: e2.message }));
|
|
287261
|
+
return code3 === "site_unreachable" ? 1 : 2;
|
|
286969
287262
|
};
|
|
286970
287263
|
try {
|
|
286971
287264
|
const template = str3(flags.template);
|
|
@@ -287443,8 +287736,8 @@ async function templateCommand(ctx) {
|
|
|
287443
287736
|
const show2 = str3(flags.show);
|
|
287444
287737
|
const target = str3(flags.write);
|
|
287445
287738
|
const adding = str3(flags.add);
|
|
287446
|
-
const refuse10 = (
|
|
287447
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
287739
|
+
const refuse10 = (code3, error) => {
|
|
287740
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error }));
|
|
287448
287741
|
return 2;
|
|
287449
287742
|
};
|
|
287450
287743
|
const entryFrom = (flag3, id, raw = false) => {
|
|
@@ -287951,8 +288244,8 @@ async function templateCommand(ctx) {
|
|
|
287951
288244
|
}
|
|
287952
288245
|
if (!r3.ok) {
|
|
287953
288246
|
const hint = releaseIdExistsHint(r3.status, r3.json);
|
|
287954
|
-
const
|
|
287955
|
-
print({ ok: false, ...
|
|
288247
|
+
const code3 = r3.json?.code === "compressed_publish_unsupported" ? "compressed_publish_unsupported" : void 0;
|
|
288248
|
+
print({ ok: false, ...code3 ? { code: code3 } : {}, status: r3.status, body: r3.json ?? r3.text, ...hint ? { hint } : {} });
|
|
287956
288249
|
return 1;
|
|
287957
288250
|
}
|
|
287958
288251
|
if (sendPayload.sourceGz && r3.json?.template !== true) {
|
|
@@ -288822,8 +289115,8 @@ async function testCommand(ctx) {
|
|
|
288822
289115
|
print({ ok: false, code: "test_input_evidence_requires_json", error: "--input-evidence requires --json" });
|
|
288823
289116
|
return 2;
|
|
288824
289117
|
}
|
|
288825
|
-
if (captureInputEvidence && (flags.browser === true || existsSync115(join149(dir, "functions")))) {
|
|
288826
|
-
print({ ok: false, code: "test_input_evidence_unsupported_mode", error: "--input-evidence needs the local app worker crawl, not --browser or a functions package" });
|
|
289118
|
+
if (captureInputEvidence && (flags.browser === true || flags.record === true || existsSync115(join149(dir, "functions")))) {
|
|
289119
|
+
print({ ok: false, code: "test_input_evidence_unsupported_mode", error: "--input-evidence needs the local app worker crawl, not --browser, --record or a functions package" });
|
|
288827
289120
|
return 2;
|
|
288828
289121
|
}
|
|
288829
289122
|
let sourceArchiveHash;
|
|
@@ -288864,13 +289157,13 @@ async function testCommand(ctx) {
|
|
|
288864
289157
|
}
|
|
288865
289158
|
config = readTestConfig2(dir, capturedConfig == null ? capturedConfig : capturedConfig.toString("utf8"));
|
|
288866
289159
|
} catch (e2) {
|
|
288867
|
-
const
|
|
288868
|
-
io2.error(JSON.stringify({ ...
|
|
289160
|
+
const code3 = e2.code;
|
|
289161
|
+
io2.error(JSON.stringify({ ...code3 === "test_journey_budget_exceeded" ? { ok: false, code: code3 } : {}, error: e2.message }));
|
|
288869
289162
|
return 2;
|
|
288870
289163
|
}
|
|
288871
289164
|
if (flags.browser === true && config.journeys?.length) {
|
|
288872
|
-
const
|
|
288873
|
-
print({ ok: false, code:
|
|
289165
|
+
const code3 = config.journeys.some((journey) => journey.coldVisits?.length) ? "test_browser_cold_visits_unsupported" : "test_browser_journeys_unsupported";
|
|
289166
|
+
print({ ok: false, code: code3, error: "--browser cannot execute authored journeys, including coldVisits and root assertions. Drop --browser to execute the contract with the local worker crawl." });
|
|
288874
289167
|
return 2;
|
|
288875
289168
|
}
|
|
288876
289169
|
let budgetMs;
|
|
@@ -289433,17 +289726,17 @@ async function iconCommand(ctx) {
|
|
|
289433
289726
|
const { OneAppError: OneAppError2 } = await Promise.resolve().then(() => (init_errors4(), errors_exports));
|
|
289434
289727
|
try {
|
|
289435
289728
|
const res = await installOneAppIcon2(dir, str3(flags["evidence-dir"]) ?? `${dir}/.himi/one-app`);
|
|
289436
|
-
const
|
|
289729
|
+
const code3 = "source_icon_unusable";
|
|
289437
289730
|
return report9(res.status, {
|
|
289438
289731
|
from: res.sourceUrl,
|
|
289439
289732
|
wrote: res.wrote,
|
|
289440
289733
|
normalized: res.normalized,
|
|
289441
289734
|
playListingIcon: res.playDerived,
|
|
289442
|
-
...blocksRelease2(res.status, { requireVerified }) ? { code:
|
|
289735
|
+
...blocksRelease2(res.status, { requireVerified }) ? { code: code3 } : {}
|
|
289443
289736
|
});
|
|
289444
289737
|
} catch (error) {
|
|
289445
|
-
const
|
|
289446
|
-
print({ ok: false, code:
|
|
289738
|
+
const code3 = error instanceof OneAppError2 && error.code === "source_icon_unusable" ? error.code : "source_icon_unavailable";
|
|
289739
|
+
print({ ok: false, code: code3, error: error.message });
|
|
289447
289740
|
return 1;
|
|
289448
289741
|
}
|
|
289449
289742
|
}
|
|
@@ -290329,12 +290622,12 @@ async function pushCommand(ctx) {
|
|
|
290329
290622
|
return 1;
|
|
290330
290623
|
}
|
|
290331
290624
|
if (!up2.ok) {
|
|
290332
|
-
const { ok: _ok, code:
|
|
290625
|
+
const { ok: _ok, code: code3, ...rest } = up2;
|
|
290333
290626
|
void _ok;
|
|
290334
290627
|
const fed = up2.status !== void 0 ? (await Promise.resolve().then(() => (init_push_errors(), push_errors_exports))).federatedRefusal(up2.status, up2.body, pushToken) : void 0;
|
|
290335
290628
|
const hint = fed?.code === "federated_not_allowed" ? `assets over the inline cap (${up2.names.join(", ")}) need a Wix sign-in (\`himi login --device --provider wix\`); accounts signed in without Wix can push a release without them \u2014 shrink or remove those assets` : fed?.hint;
|
|
290336
290629
|
if (fed) print(pushFailure2(fed.code, { ok: false, app: app2, pushed: false, ...rest, hint }));
|
|
290337
|
-
else print(pushFailure2(
|
|
290630
|
+
else print(pushFailure2(code3, { ok: false, app: app2, pushed: false, ...rest }));
|
|
290338
290631
|
return 1;
|
|
290339
290632
|
}
|
|
290340
290633
|
largeAssetReport = { uploaded: up2.uploaded.length, alreadyStored: up2.alreadyStored.length, bytesUploaded: up2.bytesUploaded };
|
|
@@ -291089,10 +291382,10 @@ async function runPackageCommand(ctx) {
|
|
|
291089
291382
|
dropInitRecord = () => removeInitWatchRecord2(dir2, process.pid);
|
|
291090
291383
|
const onExit = () => dropInitRecord?.();
|
|
291091
291384
|
process.once("exit", onExit);
|
|
291092
|
-
const early = [["SIGINT", 130], ["SIGTERM", 143], ["SIGHUP", 129]].map(([sig,
|
|
291385
|
+
const early = [["SIGINT", 130], ["SIGTERM", 143], ["SIGHUP", 129]].map(([sig, code3]) => {
|
|
291093
291386
|
const onEarly = () => {
|
|
291094
291387
|
dropInitRecord?.();
|
|
291095
|
-
process.exit(
|
|
291388
|
+
process.exit(code3);
|
|
291096
291389
|
};
|
|
291097
291390
|
process.once(sig, onEarly);
|
|
291098
291391
|
return [sig, onEarly];
|
|
@@ -293532,13 +293825,13 @@ function classifyDevicePoll(resp, body, interval, target) {
|
|
|
293532
293825
|
return { kind: "backoff", interval: Math.max(interval + 5, Number(body.retryAfterSec) || Number(resp.headers.get("retry-after")) || 0) };
|
|
293533
293826
|
}
|
|
293534
293827
|
if (body.error === "slow_down") return { kind: "backoff", interval: Math.max(interval + 5, Number(body.interval) || 0) };
|
|
293535
|
-
const
|
|
293828
|
+
const code3 = body.error === "access_denied" ? "device_access_denied" : body.error === "expired_token" ? "device_code_expired" : "device_login_failed";
|
|
293536
293829
|
return {
|
|
293537
293830
|
kind: "fail",
|
|
293538
|
-
final:
|
|
293831
|
+
final: code3 !== "device_login_failed",
|
|
293539
293832
|
envelope: {
|
|
293540
293833
|
ok: false,
|
|
293541
|
-
code:
|
|
293834
|
+
code: code3,
|
|
293542
293835
|
status: resp.status,
|
|
293543
293836
|
error: body.error ?? "device login failed",
|
|
293544
293837
|
...body.error === "access_denied" ? { hint: "the owner denied this sign-in" } : body.error === "expired_token" ? { hint: "the code expired before it was approved \u2014 run `himi login --device` again" } : ownerPlaneHint(resp.status, body.error, target)
|
|
@@ -294811,26 +295104,38 @@ Guides in your browser: ${idx.portalUrl}`);
|
|
|
294811
295104
|
}
|
|
294812
295105
|
case "components": {
|
|
294813
295106
|
const ref = loadComponentReference();
|
|
294814
|
-
const
|
|
294815
|
-
|
|
294816
|
-
|
|
294817
|
-
|
|
294818
|
-
|
|
294819
|
-
|
|
294820
|
-
|
|
295107
|
+
const { compactModifiers: compactModifiers2, formatLookup: formatLookup2, lookupComponents: lookupComponents2, referencedShapes: referencedShapes2, requestedNames: requestedNames2 } = await Promise.resolve().then(() => (init_component_lookup(), component_lookup_exports));
|
|
295108
|
+
const names2 = requestedNames2(pos.slice(1));
|
|
295109
|
+
if (names2.length) {
|
|
295110
|
+
const { found, unknown, suggestions } = lookupComponents2(ref, names2);
|
|
295111
|
+
const failure4 = unknown.length ? {
|
|
295112
|
+
ok: false,
|
|
295113
|
+
code: "unknown_component",
|
|
295114
|
+
error: `unknown component${unknown.length > 1 ? "s" : ""}: ${unknown.join(", ")}`,
|
|
295115
|
+
unknown,
|
|
295116
|
+
suggestions,
|
|
295117
|
+
hint: "Run `himi components` for every name, or `himi docs component-index` for the one-page index.",
|
|
295118
|
+
// Every name the CLI knows. `components` is reserved for entries, as on success.
|
|
295119
|
+
available: ref.components.map((x2) => x2.name)
|
|
295120
|
+
} : null;
|
|
294821
295121
|
if (flags.json === true) {
|
|
294822
|
-
|
|
295122
|
+
if (names2.length === 1 && found.length === 1) {
|
|
295123
|
+
print(found[0]);
|
|
295124
|
+
return 0;
|
|
295125
|
+
}
|
|
295126
|
+
const components2 = Object.fromEntries(found.map((c2) => [c2.name, c2]));
|
|
295127
|
+
if (failure4) {
|
|
295128
|
+
print({ ...failure4, components: components2 });
|
|
295129
|
+
return 2;
|
|
295130
|
+
}
|
|
295131
|
+
print({ ok: true, components: components2, shapes: referencedShapes2(ref, found), modifiers: compactModifiers2(ref) });
|
|
294823
295132
|
return 0;
|
|
294824
295133
|
}
|
|
294825
|
-
io2.log(
|
|
294826
|
-
if (
|
|
294827
|
-
|
|
294828
|
-
|
|
294829
|
-
}
|
|
294830
|
-
if (/\bIconRef\b/.test(c2.propsSource)) {
|
|
294831
|
-
io2.log("IconRef is an icon-name string (or a supported binding), not an object. Run `himi icons` for valid catalog names.");
|
|
295134
|
+
if (found.length) io2.log(formatLookup2(ref, found));
|
|
295135
|
+
if (failure4) {
|
|
295136
|
+
io2.error(JSON.stringify(failure4));
|
|
295137
|
+
return 2;
|
|
294832
295138
|
}
|
|
294833
|
-
io2.log(c2.propsSource);
|
|
294834
295139
|
return 0;
|
|
294835
295140
|
}
|
|
294836
295141
|
if (flags.json === true) {
|
|
@@ -294839,7 +295144,7 @@ Guides in your browser: ${idx.portalUrl}`);
|
|
|
294839
295144
|
}
|
|
294840
295145
|
io2.log(`${ref.componentCount} SDUI components.`);
|
|
294841
295146
|
io2.log(`Binding grammar: ${ref.bindingGrammar}`);
|
|
294842
|
-
io2.log("Run `himi components <Name
|
|
295147
|
+
io2.log("Run `himi components <Name> [<Name>\u2026]` for the props, dispatches and shapes of every component you need, in one call.\n");
|
|
294843
295148
|
for (const c2 of ref.components) {
|
|
294844
295149
|
const b3 = c2.bindings.length ? ` $:${c2.bindings.join(",")}` : "";
|
|
294845
295150
|
const ni2 = niEntries(c2.notImplemented);
|
|
@@ -296045,8 +296350,8 @@ function unsafeDestination(appDir3, tags) {
|
|
|
296045
296350
|
try {
|
|
296046
296351
|
if (lstatSync38(path2).isSymbolicLink()) return `${relative37(process.cwd(), path2)} is a symbolic link`;
|
|
296047
296352
|
} catch (e2) {
|
|
296048
|
-
const
|
|
296049
|
-
if (
|
|
296353
|
+
const code3 = e2.code;
|
|
296354
|
+
if (code3 !== "ENOENT" && code3 !== "ENOTDIR") throw e2;
|
|
296050
296355
|
}
|
|
296051
296356
|
}
|
|
296052
296357
|
return void 0;
|
|
@@ -296063,8 +296368,8 @@ function writeCatalog(path2, text32) {
|
|
|
296063
296368
|
}
|
|
296064
296369
|
async function l10nCommand(ctx) {
|
|
296065
296370
|
const { io: io2, pos, flags, print } = ctx;
|
|
296066
|
-
const fail16 = (
|
|
296067
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
296371
|
+
const fail16 = (code3, fields2, exit) => {
|
|
296372
|
+
io2.error(JSON.stringify({ ok: false, code: code3, usage: L10N_USAGE, ...fields2 }));
|
|
296068
296373
|
return exit;
|
|
296069
296374
|
};
|
|
296070
296375
|
if (pos[1] !== "import") {
|
|
@@ -296376,8 +296681,8 @@ async function base44Command(ctx) {
|
|
|
296376
296681
|
}
|
|
296377
296682
|
if (sub === "screens") {
|
|
296378
296683
|
const dir = contentDir(flags);
|
|
296379
|
-
const fail16 = (
|
|
296380
|
-
io2.error(JSON.stringify({ ok: false, code:
|
|
296684
|
+
const fail16 = (code3, error, extra = {}) => {
|
|
296685
|
+
io2.error(JSON.stringify({ ok: false, code: code3, error, ...extra }));
|
|
296381
296686
|
return 1;
|
|
296382
296687
|
};
|
|
296383
296688
|
const gen = await Promise.resolve().then(() => (init_generate(), generate_exports));
|
|
@@ -296643,9 +296948,9 @@ Code: ${userCode}`);
|
|
|
296643
296948
|
else print({ ok: r3.ok, out: r3.out, files: r3.files, mode: r3.mode, gaps: r3.gaps });
|
|
296644
296949
|
return 0;
|
|
296645
296950
|
} catch (e2) {
|
|
296646
|
-
const
|
|
296647
|
-
io2.error(JSON.stringify({ error: e2.message, ...
|
|
296648
|
-
return
|
|
296951
|
+
const code3 = e2.exit === 2 ? 2 : 1;
|
|
296952
|
+
io2.error(JSON.stringify({ error: e2.message, ...code3 === 2 ? { usage: b44Usage } : {} }));
|
|
296953
|
+
return code3;
|
|
296649
296954
|
}
|
|
296650
296955
|
}
|
|
296651
296956
|
|
|
@@ -296902,8 +297207,8 @@ async function siteCommand(ctx) {
|
|
|
296902
297207
|
print(r3);
|
|
296903
297208
|
return 0;
|
|
296904
297209
|
} catch (e2) {
|
|
296905
|
-
const
|
|
296906
|
-
io2.error(JSON.stringify({ ...typeof
|
|
297210
|
+
const code3 = e2.code;
|
|
297211
|
+
io2.error(JSON.stringify({ ...typeof code3 === "string" && code3 ? { ok: false, code: code3 } : {}, error: e2.message }));
|
|
296907
297212
|
return e2.exit === 2 ? 2 : 1;
|
|
296908
297213
|
}
|
|
296909
297214
|
}
|
|
@@ -296934,7 +297239,7 @@ function createUpdateRefreshSpawner(spawnFn = spawn13, execArgv = process.execAr
|
|
|
296934
297239
|
}
|
|
296935
297240
|
var spawnUpdateRefresh = createUpdateRefreshSpawner();
|
|
296936
297241
|
function createTrimValidator(deps = {}, spawnFn = spawn13) {
|
|
296937
|
-
const outcome = (
|
|
297242
|
+
const outcome = (code3, report9, said) => {
|
|
296938
297243
|
let counts;
|
|
296939
297244
|
let errors;
|
|
296940
297245
|
try {
|
|
@@ -296953,17 +297258,17 @@ function createTrimValidator(deps = {}, spawnFn = spawn13) {
|
|
|
296953
297258
|
}
|
|
296954
297259
|
} catch {
|
|
296955
297260
|
}
|
|
296956
|
-
return { code:
|
|
297261
|
+
return { code: code3, counts, ...errors ? { errors } : {}, ...code3 !== 0 ? { tail: said.slice(-4e3) } : {} };
|
|
296957
297262
|
};
|
|
296958
297263
|
return async (dir, opts = {}) => {
|
|
296959
297264
|
const argv = ["validate", "--content", resolve132(dir), "--strict", "--skip-version-check"];
|
|
296960
297265
|
if (!opts.fresh) {
|
|
296961
297266
|
const out2 = [];
|
|
296962
297267
|
const err = [];
|
|
296963
|
-
const
|
|
296964
|
-
return outcome(
|
|
297268
|
+
const code4 = await run2(argv, { log: (l3) => out2.push(l3), error: (l3) => err.push(l3) }, deps);
|
|
297269
|
+
return outcome(code4, out2[out2.length - 1] ?? "", [...out2, ...err].join("\n"));
|
|
296965
297270
|
}
|
|
296966
|
-
const { code:
|
|
297271
|
+
const { code: code3, stdout, stderr } = await new Promise((done) => {
|
|
296967
297272
|
const chunks = { out: [], err: [] };
|
|
296968
297273
|
const child3 = spawnFn(process.execPath, [...loaderArgs(process.execArgv), fileURLToPath43(import.meta.url), ...argv], {
|
|
296969
297274
|
cwd: process.cwd(),
|
|
@@ -296975,7 +297280,7 @@ function createTrimValidator(deps = {}, spawnFn = spawn13) {
|
|
|
296975
297280
|
child3.on("error", (e2) => done({ code: 2, stdout: "", stderr: String(e2) }));
|
|
296976
297281
|
child3.on("close", (c2) => done({ code: c2 ?? 1, stdout: Buffer.concat(chunks.out).toString("utf8"), stderr: Buffer.concat(chunks.err).toString("utf8") }));
|
|
296977
297282
|
});
|
|
296978
|
-
return outcome(
|
|
297283
|
+
return outcome(code3, stdout.trim(), `${stdout}
|
|
296979
297284
|
${stderr}`);
|
|
296980
297285
|
};
|
|
296981
297286
|
}
|
|
@@ -297021,11 +297326,11 @@ async function run2(argv, io2 = defaultIO, deps = {}) {
|
|
|
297021
297326
|
process.on("SIGTERM", onSignal);
|
|
297022
297327
|
}
|
|
297023
297328
|
const scratch = [];
|
|
297024
|
-
let
|
|
297329
|
+
let code3;
|
|
297025
297330
|
try {
|
|
297026
|
-
|
|
297331
|
+
code3 = await runParent.run(pos[0] ?? "", () => commandScratch.run(scratch, () => runCommand2(argv, runIO, deps)));
|
|
297027
297332
|
if (reporter) {
|
|
297028
|
-
const sent = await reporter.finish(
|
|
297333
|
+
const sent = await reporter.finish(code3);
|
|
297029
297334
|
if (sent && !sent.delivered) io2.error(`himi: check result not forwarded (${sent.reason})`);
|
|
297030
297335
|
}
|
|
297031
297336
|
} catch (err) {
|
|
@@ -297048,7 +297353,7 @@ async function run2(argv, io2 = defaultIO, deps = {}) {
|
|
|
297048
297353
|
}
|
|
297049
297354
|
}
|
|
297050
297355
|
}
|
|
297051
|
-
return
|
|
297356
|
+
return code3;
|
|
297052
297357
|
}
|
|
297053
297358
|
var runParent = new AsyncLocalStorage4();
|
|
297054
297359
|
var CHECK_CANCEL_TIMEOUT_MS = 1e3;
|
|
@@ -297563,14 +297868,14 @@ himi v${cliVersion()} \u2014 run \`himi --version\`. If authoring commands fail
|
|
|
297563
297868
|
return 2;
|
|
297564
297869
|
}
|
|
297565
297870
|
io2.error(JSON.stringify(pushFailure2("push_failed", { error: err.message })));
|
|
297566
|
-
const
|
|
297567
|
-
return
|
|
297871
|
+
const code3 = err.exitCode;
|
|
297872
|
+
return code3 === 2 ? 2 : 1;
|
|
297568
297873
|
}
|
|
297569
297874
|
}
|
|
297570
297875
|
var isMain4 = process.argv[1] && (process.argv[1].endsWith("/cli.ts") || process.argv[1].endsWith("/cli.mjs") || process.argv[1].endsWith("/himi"));
|
|
297571
297876
|
if (isMain4) {
|
|
297572
|
-
run2(process.argv.slice(2)).then((
|
|
297573
|
-
process.exitCode =
|
|
297877
|
+
run2(process.argv.slice(2)).then((code3) => {
|
|
297878
|
+
process.exitCode = code3;
|
|
297574
297879
|
});
|
|
297575
297880
|
}
|
|
297576
297881
|
export {
|