Compare commits

...

72 Commits

Author SHA1 Message Date
1831beab0f Ajouter 316ca7b4d1ae9b1c7f797227e4fe5918.txt
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 2m6s
2025-08-26 12:39:39 +00:00
b33d1aba9d subdomain change
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 46s
2025-02-21 07:55:48 +00:00
Mobicoop
82398a4c44 image rapprochement
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 36s
2025-02-17 09:39:08 +01:00
8e814e38ca Actualiser content/gotogether/2025-02-12mobicoop-coopgo-rapprochement.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 38s
2025-02-16 08:49:58 +00:00
Mobicoop
ba3dc4857d rapprochement
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 34s
2025-02-16 09:46:15 +01:00
7befa8c2d1 fix publish
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 1m12s
2025-02-13 07:58:10 +01:00
df706254f3 Actualiser content/gotogether/mobicoop-coopgo-rapprochement.md
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 15s
2025-02-11 13:21:57 +00:00
Mobicoop
0d4fd49103 rapprochement
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 20s
2025-02-11 14:16:01 +01:00
41dd6a5379 Supprimer content/gotogether/2024-12-18-scop-scic-kezaco.md
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 17s
2024-12-20 11:03:56 +00:00
ca8529a7f5 Supprimer assets/images/Des gauches « irréconciliables » ? L’Insoumis Paul Vannier et la socialiste Laurence Rossignol débattent | Mediapart.pdf
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 15s
2024-12-18 07:37:23 +00:00
Stéphane Gauthier
33c880e6e7 article SCIC
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 15s
2024-12-18 08:35:45 +01:00
Stéphane Gauthier
0094dd59b2 article mobilité zones rurales
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 37s
2024-12-12 10:35:25 +01:00
Stéphane Gauthier
adbc8b6ce1 flyer perm mobilite
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-12-06 14:28:36 +01:00
Stéphane Gauthier
07e4cf43f1 coquille
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 31s
2024-12-05 12:30:05 +01:00
Stéphane Gauthier
79db5aa56a lien refugies.info
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 32s
2024-12-05 12:28:09 +01:00
Stéphane Gauthier
9bd249e2ee Merge branch 'master' of https://git.coopgo.io/websites/coopgo 2024-12-05 12:27:37 +01:00
fe3238bea0 Actualiser content/roya/_index.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 31s
2024-11-30 11:25:31 +00:00
Stéphane Gauthier
7b38f3ef4a imageperm 2024-11-30 12:16:06 +01:00
Stéphane Gauthier
ae123c1674 image perm mobilite
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 33s
2024-11-30 12:03:02 +01:00
Stéphane Gauthier
98965b1683 coquilles
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 28s
2024-11-28 12:58:45 +01:00
Stéphane Gauthier
103c9d7454 article porteur projet
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 36s
2024-11-28 12:52:23 +01:00
sgauthier
d0caf6f938 image velo roya
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 32s
2024-11-22 09:37:05 +01:00
0360de7e77 coquilles PMD
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 26s
2024-11-14 12:30:30 +01:00
4e0f1d6650 Actualiser content/gotogether/le-plan-de-mobilité-durable-dans-les-entreprises.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 32s
2024-11-14 10:45:56 +00:00
ae98b93aed Téléverser les fichiers vers "assets/images"
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 28s
2024-11-14 10:38:43 +00:00
4d11a41f82 Actualiser content/gotogether/2024-11-14-le-plan-de-mobilité-durable-dans-les-entreprises.md
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 16s
2024-11-14 10:35:55 +00:00
60207bb79c article PMD
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 31s
2024-11-14 11:32:39 +01:00
b979e075c7 Actualiser content/velo-roya.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 34s
2024-10-23 09:44:38 +00:00
ec6f4230e9 Merge remote-tracking branch 'refs/remotes/origin/master'
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 33s
2024-10-23 11:41:16 +02:00
2e4e604459 Maj lien page vélo 2024-10-23 11:38:28 +02:00
86aa6b2f18 Ajouter _redirects
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 37s
2024-10-23 09:31:42 +00:00
13708009d0 Actualiser content/velo-roya.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 28s
2024-10-22 07:11:21 +00:00
ca70ebd94f Actualiser content/velo-roya.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-10-22 07:10:40 +00:00
617e176226 Actualiser content/velo-roya.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-10-22 07:08:43 +00:00
35716058e3 add-redirection
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-10-22 09:05:55 +02:00
34a9e90abe fix image
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 38s
2024-10-17 13:00:24 +02:00
716abe336c fix image
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 16s
2024-10-17 12:57:36 +02:00
191bd69ea0 fix image
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 14s
2024-10-17 12:56:12 +02:00
caaf3349f5 ajour lien Whatsapp covoiturage
Some checks failed
Publish To Prod / deploy_and_publish (push) Failing after 14s
2024-10-17 12:42:54 +02:00
6ad08ec4a0 Correction page RIDYGO
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 1m27s
2024-10-16 16:19:11 +02:00
79386153e4 Ajouter logos TIMS
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 28s
2024-10-15 15:20:48 +02:00
a52ab95a8c Merge branch 'master' of https://git.coopgo.io/websites/coopgo
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 29s
2024-10-15 16:32:13 +02:00
eac9df1cb2 ajouter page vélo Roya 2024-10-15 16:31:33 +02:00
f68a86e2d2 ajout lien Tims
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 33s
2024-10-15 10:15:54 +02:00
c3a224a029 mise en forme
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 29s
2024-10-15 10:12:08 +02:00
542a215a1b remove bad title
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 27s
2024-10-15 08:29:28 +02:00
77ead5dc32 resolve conflict
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-10-15 08:19:48 +02:00
7370fd402d resolve conflict
Some checks failed
Publish To Prod / deploy_and_publish (push) Has been cancelled
2024-10-15 08:18:52 +02:00
49143c4192 Pages Roya 2024-10-15 08:17:27 +02:00
7feaeb7b86 corrections2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 29s
2024-10-14 14:37:46 +02:00
8b266ae293 correction
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-10-14 14:32:51 +02:00
9129268db4 Change media folders 2024-10-14 12:59:15 +02:00
cad851d2e2 publisj article
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 28s
2024-10-14 12:48:26 +02:00
1a1310e573 publisj article
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-10-14 12:47:00 +02:00
e79781c666 publisj article
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 28s
2024-10-14 12:40:07 +02:00
a38fcc191d Actualiser content/gotogether/2024-10-14-mobilité-inclusive-dans-les-vallées-de-la-roya-et-de-la-vésubie.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 27s
2024-10-14 09:26:49 +00:00
ac0ca45de9 Actualiser content/gotogether/2024-10-14-mobilité-inclusive-dans-les-vallées-de-la-roya-et-de-la-vésubie.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 1m13s
2024-10-14 09:23:01 +00:00
addcfb2d27 mobilité roya
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 2m11s
2024-10-14 11:09:01 +02:00
b53a8a2c7f maj projet tims
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 30s
2024-10-14 09:41:02 +02:00
6e64e138e2 planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
2024-10-14 09:15:30 +02:00
bcba00a730 Merge branch 'master' of https://git.coopgo.io/websites/coopgo
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 25s
2024-10-11 12:34:02 +02:00
b32b7c4153 test planning 2024-10-11 12:33:01 +02:00
48df7437a6 Actualiser content/velo-roya.md
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 24s
2024-10-11 08:15:49 +00:00
4f88ae0738 velo roya
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 1m1s
2024-10-11 10:11:19 +02:00
c9ba61391c delete velo-roya
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 26s
2024-10-11 09:26:47 +02:00
55be4dce2b MAJ VELO
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 26s
2024-10-11 09:16:30 +02:00
854ab4b1f4 Merge branch 'master' of https://git.coopgo.io/websites/coopgo
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 24s
2024-10-10 14:22:27 +02:00
8cce6c5074 Add CMS 2024-10-10 14:20:13 +02:00
0bdd29e7f4 planning2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 25s
2024-10-10 12:40:24 +02:00
bf230e48d5 coquille
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 24s
2024-10-10 12:38:07 +02:00
6d46b00a97 planning1
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 24s
2024-10-10 12:35:29 +02:00
68c8ea210b planning 2024-10-10 12:33:35 +02:00
21135 changed files with 2318570 additions and 50 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
.gitea/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -31,8 +31,8 @@ jobs:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_ENDPOINT: https://s3.fr-par.scw.cloud
AWS_S3_BUCKET: coopgo-web
AWS_S3_BUCKET: coopgo-www
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }}
AWS_REGION: 'fr-par'
SOURCE_DIR: 'public'
SOURCE_DIR: 'public'

View File

2
_redirects Normal file
View File

@@ -0,0 +1,2 @@
# Redirects from what the browser requests to what we serve
/velo-roya /roya/velo

BIN
assets/.DS_Store vendored

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

BIN
assets/images/SCOP-SCIC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
assets/images/Velo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

BIN
assets/images/histo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 410 KiB

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

View File

@@ -0,0 +1 @@
<svg id="Calque_1" data-name="Calque 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 175.4 32.57"><defs><style>.cls-1{fill:#ff5300;}.cls-2{fill:#243887;}</style></defs><path class="cls-1" d="M140.82,15.5v5.68c0,5.64-3.57,11.85-16.17,11.89-15.51,0-16.5-8-16.5-16.49,0-9,2.82-16.08,16.5-16.08,14.85,0,16.12,7.9,16.17,11.89a1.41,1.41,0,0,1-1.46,1.46H125.54V11.69c0-.85-.37-1.18-.94-1.18s-.94.33-.94,1.18v9.73c0,.84.38,1.17.94,1.17h2.49a1,1,0,0,0,.95-.94V21h-2.5V15.5Z" transform="translate(-0.42 -0.5)"/><path class="cls-1" d="M175.83,16.58c0,9-1.93,16.49-16.22,16.49-15.46,0-16.45-8-16.45-16.49,0-8.89,2.82-16,16.45-16,14.34,0,16.22,7.66,16.22,16" transform="translate(-0.42 -0.5)"/><path class="cls-2" d="M1.65,32.51A1.18,1.18,0,0,1,.42,31.34v-29A1.17,1.17,0,0,1,1.6,1.11H18.38c9.3,0,12,6.3,12.08,11.47,0,3.29-.8,6.77-3.29,8.18l3.29,11.75H19.55c-2.3,0-5.17-.75-5.82-2.68L7.24,11a.89.89,0,0,0-1.13-.62c-.47.14-.7.66-.15.65l7.09,20.91Z" transform="translate(-0.42 -0.5)"/><path class="cls-2" d="M45.77,32.51H34.21A1.18,1.18,0,0,1,33,31.34v-29a1.17,1.17,0,0,1,1.18-1.18h11.6A1.17,1.17,0,0,1,47,2.29v29a1.18,1.18,0,0,1-1.18,1.22" transform="translate(-0.42 -0.5)"/><path class="cls-2" d="M79.66,16.58c-.14,11.09-1.27,15.93-14.1,15.93H50.66a1.17,1.17,0,0,1-1.18-1.17v-29a1.17,1.17,0,0,1,1.18-1.18h14.9c12.74,0,14.15,4.28,14.1,15.47" transform="translate(-0.42 -0.5)"/><path class="cls-2" d="M114.76,3.18,104.28,22.55v8.79a1.17,1.17,0,0,1-1.17,1.17H90.28a1.17,1.17,0,0,1-1.18-1.17V22.55L78.53,3.18a1.35,1.35,0,0,1,1.26-2.06H92.86a1.1,1.1,0,0,1,1,.51l5.07,11a1,1,0,0,0,1.18.52.91.91,0,0,0,.42-1.32L95.59,1.12h17.9a1.35,1.35,0,0,1,1.27,2.06" transform="translate(-0.42 -0.5)"/></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
assets/images/vf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 KiB

View File

@@ -0,0 +1,4 @@
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://www.linkedin.com/
HostUrl=https://media.licdn.com/dms/image/v2/D4D22AQEFHehRuRzPKA/feedshare-shrink_2048_1536/feedshare-shrink_2048_1536/0/1729281596930?e=1735171200&v=beta&t=LS1L7lKb_6NcLmvVP9coOi6VIrvIbImBrMpVUMyMbKM

View File

@@ -1,4 +1,4 @@
baseURL: "https://coopgo.fr/"
baseURL: "https://www.coopgo.fr/"
languageCode: "fr-fr"
title: "COOPGO"
theme: "coopgo-theme"

BIN
content/.DS_Store vendored

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,61 @@
---
title: Rendez vous le 5 Novembre pour l'événement régional PACA de la mobilité
inclusive
date: 2024-10-10T12:13:46.781Z
featuredimage: /images/vf.png
description: Le Réseau Mob'In PACA, dont COOPGO est membre, organise le 5
novembre prochain, au CEREMA (Aix-en-Provence) un grand événement régional
dédié à la mobilité inclusive, solidaire et durable.
---
# Rendez vous le 5 Novembre pour l'événement régional PACA de la mobilité inclusive
Le Réseau Mob'In PACA, dont COOPGO est membre, organise le **5 novembre prochain, au CEREMA (Aix-en-Provence)** un grand événement régional dédié à la **mobilité inclusive, solidaire et durable**.
![Flyer de l'événement.](/images/vf.png)
En partenariat avec l'ADEME, la Banque des Territoires, le CEREMA et en lien avec le programme d'écomobilité inclusive TIMS, il rassemblera, tout au long de la journée, des acteurs locaux et institutionnels issus de toute la région.
Cet événement sera également l'occasion de dévoiler le guide du Réseau Mob'In PACA ***Avancer vers des Plans d'Action Mobilité Solidaire*** auquel COOPGO, avec d'autres structures, a contribué.
## Au programme
### Matin (9h30-12h30)
* **9h30 :** Accueil café
* **9h45 :** Discours introductifs (Réseau MobIn PACA et partenaires)
* **10h15 :** Table ronde : Financer et coordonner des actions mobilité inclusive et solidaire
* **11h15 :** Table ronde : Avancer vers des Plans dAction pour la Mobilité Solidaire en PACA
* En introduction de la table ronde : Présentation du Guide MobIn PACA 2024 “Avancer vers des Plans dAction Mobilité Solidaire”
* **12h15 :** Synthèse de la matinée par Yolande Eskenazi, Commissaire à la Lutte contre la Pauvreté
 
### Pause déjeuner (12h30-13h45)
Un repas vous est proposé sur place (sur inscription), en parallèle de la mise en place du Village mobilité.
 
### Après-midi (14h-16h30)
**Échanges de pratiques :**
* **14h-14h45 :** Financer et coordonner une plateforme mobilité
* **14h45-15h30 :** Conseillers en mobilité inclusive
* **15h30-16h15 :** Intégrer lécomobilité dans les accompagnements
 **Animations :**
* Serious game Mobilimix (CEREMA)
* Simulateur conduite (Mission Locale de Toulon)
 **Village mobilité / stands :**
* Projets TIMS
* Projet MobIn PACA “Intégration des étrangers primo-arrivants par la mobilité”
* Adhérents MobIn et acteurs locaux 
### Fin : 16h30
J'espère vous y retrouver !

View File

@@ -0,0 +1,52 @@
---
title: "Mobilité durable en milieu rural : un réel impact pour les populations ? "
date: 2024-12-11T10:23:00.000Z
featuredimage: /images/velo-coopgo.png
description: "Les problématiques de mobilité en zone rurale sont bien
différentes de celles rencontrées dans les territoires urbains et
péri-urbains. Pour autant, des solutions inclusives et durables peuvent être
déployées, et avoir un impact positif sur la vie des habitants. "
---
# Mobilité durable en milieu rural : un réel impact pour les populations ?
![Vélo Coopgo stationné devant le Train des Merveilles](/media/velo-coopgo.jpg "velo-full")
En zone rurale, la mobilité est un défi au quotidien : transports en communs peu nombreux voire inexistants, infrastructures peu adaptées pour la pratique du vélo en sécurité, omniprésence de l'autosolisme rendent les déplacements compliqués voire impossible pour les publics les plus fragiles.
Le développement de solutions de mobilité inclusive et solidaire est une réelle bouffée d'oxygène dans ces territoires, en ayant un réel impact sur les déplacements du quotidien.
## Quelles solutions pour quels territoires ?
La mobilité inclusive regroupe des multitudes de solutions, imaginées en complémentarité les unes des autres et pensées pour être accessibles au plus grand nombre. Le covoiturage, solidaire ou contre paiement, les navettes solidaires, la mise à disposition de véhicules, les permis solidaires ... sont des exemples de solutions de mobilité inclusive. Toutefois, ces solutions prises de façon isolées ne toucheront qu'une partie des publics en situation de précarité. Il faut imaginer des ensembles de solutions, en capacité de couvrir une majorité des besoins.
En zone rurale, il est essentiel d'impliquer l'ensemble des acteurs institutionnels (collectivités locales, associations, organismes de l'insertion sociale...) pour identifier les zones blanches et les besoins des habitants. On le sait, le moyen de déplacement privilégié reste la voiture, le plus souvent parce que c'est le seul moyen accessible (10 millions de personnes en France n'ont pas accès aux transports en commun, selon l'[UFC-Que Choisir !](https://www.quechoisir.org/action-ufc-que-choisir-plus-de-10-millions-de-francais-sans-alternatives-a-la-voiture-l-ufc-que-choisir-revele-les-zones-blanches-de-l-acces-aux-transports-publics-n132694/)). Or le coût de possession et d'usage est élevé, et en cas d'impossibilité de conduire (pour cause de handicap ou d'âge), de nombreuses personnes risquent de se retrouver isolé·e·s ce que le sociologue [Érick Le Breton](https://www.mobiliteinclusive.com/la-mobilite-renvoie-desormais-a-la-notion-de-cohesion-sociale-interview-deric-le-breton/) décrit justement comme des situations *"[d'insularité autour de leur domicile](https://www.lemonde.fr/m-le-mag/article/2020/02/14/les-oublies-de-la-mobilite-sans-voiture-je-ne-suis-plus-rien_6029593_4500055.html)*".`
## Sortir de l'isolement
Pour une personne âgée, l'arrêt de la conduite est le plus souvent non préparé et non anticipé. Il s'agit pourtant d'une perte sévère d'autonomie. Comment en effet faire ses courses, visiter son médecin ou maintenir le lien social quand il n'est plus possible de sortir de chez soi ? Quand le maintien à domicile est possible, il ne peut s'accompagner des seules visites des infirmières et auxiliaires de vie. Il est essentiel de proposer des activités sociales, pour éviter l'isolement et la baisse de qualité de vie, rendant inéluctable le placement en EHPAD.
Dans le cas d'un parcours d'insertion sociale, les déplacements sont indispensables pour honorer les différents entretiens, les formation essentielles pour acquérir un métier, et maintenir le lien social essentiel pour les loisirs et une vie quotidienne de qualité. Pour les réfugié·e·s, se déplacer permet aussi de faciliter l'intégration, l'appropriation de la langue et de la culture du pays d'accueil qui permet de s'insérer dans la société.
## L'impact environnemental
Le déploiement de solutions inclusives et solidaires a aussi un impact sur l'empreinte carbone laissée par les déplacements. En développant les initiatives en faveur du covoiturage par exemple, on permet ainsi de mutualiser certains déplacements, "partageant" ainsi le coût-carbone entre les passagers. Même si les embouteillages sont plus rares en zone rurale, la réduction du nombre d'automobiles en circulation a aussi un impact sur le maintien en l'état des voies de circulation, et contribue à réduire les coûts d'entretien pour la collectivité.
Les marges ainsi dégagées peuvent ainsi permettre des aménagements de voirie pour développer des infrastructures telles que des pistes cyclables, permettant ainsi une pratique du vélo de manière sécurisée et levant [un des principaux freins à la pratique en zone rurale.](https://www.velo-territoires.org/actualite/2019/05/10/velo-territoire-rural-levier-de-mobilite-quotidienne/#) [](https://www.velo-territoires.org/actualite/2019/05/10/velo-territoire-rural-levier-de-mobilite-quotidienne/#)De même, le développement de solutions simples comme l'[aménagement de points de prise en charge](https://pro.mobicoop.fr/bfm-hautes-alpes/) pour le stop organisé permet d'offrir des solutions de mobilité à faible coût environnemental et financier.
## Communiquer pour changer les comportements
Un des aspects souvent négligé dans le déploiement de solutions de mobilité inclusive est la communication. Quoi de plus frustrant pour une collectivité que d'imaginer des solutions, les mettre en place sur le terrain et de les voir pas ou peu adoptées... parce que les habitant·e·s ne savent pas qu'elles existent. Il est essentiel de mettre en place des actions de communication ciblées, au plus près des habitant·e·s, en se déplaçant dans les villages, en informant, en impliquant les maires des plus petites communes.
Il ne faut aussi pas hésiter à "investir" les réseaux informels (groupes Facebook, discussions sur WhatsApp...) pour sensibiliser les habitant·e·s sur les solutions existantes, pour les interroger sur leurs attentes réelles et co-construire des solutions les plus adaptées possible. C'est une part du travail que COOPGO mène sur [le projet de plateforme mobilité dans la vallée de la Roya](https://coopgo.fr/roya/), afin de sensibiliser le plus possible les personnes vivant sur ce territoire aux enjeux et faire connaître les initiatives développées pour la mobilité inclusive sur le territoire.
Des actions de communication bien ciblées, menées en concertation avec l'ensemble des parties prenantes, permettent de mieux comprendre les enjeux et de donner la possibilité aux habitant·e·s de s'en emparer et d'inciter eux-mêmes leur entourage à modifier leurs habitudes de mobilité.
- - -
## En résumé
Le développement de solutions de mobilité inclusive et durable est essentiel pour sortir les habitant·e·s les plus fragiles de l'isolement et permettre de restaurer le lien social en zone rurale, tout en ayant un impact positif sur l'environnement et le pouvoir d'achat. De nombreuses solutions existent, et en adaptant les réponses aux spécificités des territoires, il est possible de réduire significativement la part de l'autosolisme et de rendre à nouveau possible les déplacements en zone rurale pour les personnes isolées.
Pour réussir le déploiement de telles solutions et faciliter leur appropriation par les usagers, il est essentiel d'impliquer les parties prenantes à tous les niveaux, et de faire connaître les initiatives prises au plus près des territoires concernés.
- - -

View File

@@ -0,0 +1,47 @@
---
title: Mobicoop et COOPGO sassocient pour allier savoir bouger et pouvoir bouger !
date: 2025-02-12T16:00:00.000Z
description: Mobicoop et COOPGO annoncent leur rapprochement pour renforcer l'offre de mobilité dans les territoires.
color: primary
featuredimage: images/rapprochement.png
---
# Mobicoop et COOPGO sassocient pour allier savoir bouger et pouvoir bouger !
## **"La mobilité est un bien commun"**
**[Mobicoop](https://pro.mobicoop.fr)** et **COOPGO** partagent cette affirmation. Elle guide les actions de nos coopératives au quotidien. Au-delà du simple acte de se déplacer, nous considérons que la mobilité est un droit essentiel. Sans moyen de transport, impossible daller travailler, à lécole, chez le médecin, rejoindre son club de foot ou de rugby, aller samuser ou retrouver ses ami·es.
**Depuis plusieurs années, COOPGO et Mobicoop coopèrent.** **Aujourdhui, nous choisissons daller plus loin, ensemble.**
En faisant cause commune, nous ambitionnons de repousser nos frontières respectives, nous réaffirmons ensemble notre volonté de proposer des solutions adapté·e·s à tout·e·s, sur tous les territoires.
En alliant nos expertises et les relations construites avec les acteurs locaux, nous avons lambition daccompagner et outiller les acteurs des territoires pour que chacun et chacune ait accès au **savoir bouger** et au **pouvoir bouger.**
De nombreux points communs nous rapprochent :
- Notre **ambition partagée autour de la mobilité**, que nous voulons solidaire, inclusive, durable et accessible à tou·te·s.
- Nos **valeurs coopératives**, un modèle commun de gouvernance et de gestion au quotidien
- Le développement de nos outils respectifs autour du **logiciel libre et des standards communs de données.**
En renforçant mutuellement nos compétences, nos dispositifs et les outils numériques qui les soutiennent, en unissant nos énergies, nous ambitionnons de développer une offre toujours plus complète et adaptée aux besoins de nos clients.
**COOPGO** a créé des outils et possède des compétences spécifiques pour aller vers le **"savoir bouger",** dont ParcoursMob, un outil unique qui vise à aider les collectivités et les acteurs de linsertion sociale dans laccompagnement des publics précaires vers la mobilité, ou les projets menés pour le programme TIMS, notamment la plateforme de mobilité inclusive et solidaire en vallée de la Roya (06).
**Mobicoop** a développé des solutions uniques pour le **"pouvoir bouger"** au travers de sa plateforme de covoiturage, de lautostop au quotidien avec Rezo Pouce ou de lautopartage entre particuliers.
Chacune de nos coopératives porte de façon complémentaire différents projets pour développer la mobilité solidaire sur les territoires.
Cette alliance, est lopportunité de changer déchelle, en renforçant notre implantation au cœur des territoires, en apportant des **réponses plus complètes** **aux défis** sociaux, économiques et écologiques que nous vivons.
En faisant alliance **sous la bannière Mobicoop**, nous ferons entendre plus fort la voix des acteurs de la mobilité durable, inclusive et solidaire.
Cest la tête haute et avec une immense fierté que nous entamons ce nouveau chapitre de notre histoire, démontrant la **force de notre modèle coopératif** et notre volonté dagir au quotidien pour rendre **la mobilité accessible pour tou·te·s, sur tous les territoires.**
**Arnaud Delcasse**, dirigeant de COOPGO
**Bénédicte Rozes**, présidente de Mobicoop
---
**À RETENIR :** **Mobicoop** et **COOPGO** annoncent leur rapprochement **sous la bannière « Mobicoop »**, avec lambition de développer laccès à la mobilité pour tous autour de deux axes complémentaires : **savoir bouger** et **pouvoir bouger !**
Cette alliance constitue un changement déchelle, permettant de proposer des solutions innovantes et ambitieuses pour les territoires, en alliant leurs **expertises techniques** respectives, la connaissance profonde des **enjeux de la mobilité** et les **valeurs coopératives et de solidarité** commune aux deux entités.

BIN
content/gotogether/assets/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@@ -0,0 +1,62 @@
---
title: Le Plan de Mobilité Durable dans les Entreprises
date: 2024-11-14T00:00:00.000Z
featuredimage: /images/PMD-blog-1411.png
description: Mettre en place un plan de mobilité durable dans votre entreprise
présente de nombreux avantages. Découvrons ensemble les différentes étapes
pour faciliter la mise en place de mesures pour faciliter les déplacements de
vos équipes
---
# Le Plan de Mobilité Durable dans les Entreprises
En France, [74% des trajets domicile-travail](https://www.statistiques.developpement-durable.gouv.fr/media/7313/download?inline#:~:text=Les%20transports%20en%20commun%20sont,%25%20des%20trajets%20domicile%2Dtravail.) et des déplacements professionnels se font en voiture. Alors que la réduction des émissions de CO2 est un objectif prioritaire face au changement climatique, quelles solutions peuvent être mises en œuvre dans les entreprises pour participer à ce mouvement ?
## Qu'est-ce qu'un Plan de Mobilité Durable ?
La mobilité durable englobe **l'ensemble des pratiques visant à réduire l'impact environnemental, social et économique des déplacements**. Alliant la réduction des émissions de gaz à effet de serre, l'optimisation des coûts de déplacements et l'accessibilité au plus grand nombre, elle intègre de nombreuses solutions visant à réduire le recours à la voiture individuelle et son poids dans nos déplacements.
Le recours au covoiturage, aux transports en commun, au télétravail... participent à l'adoption de pratiques de mobilité durable, en réduisant les embouteillages, le temps perdu pour des déplacements pas toujours nécessaires, et améliore la qualité de vie au travail des collaborateurs. Pour être efficaces, ces mesures doivent être prises en compte dans un plan global, intégrant les besoins de tous et permettant de trouver des réponses adaptées aux freins éventuels.
## Les Avantages d'un Plan de Mobilité Durable
Adopter un Plan de Mobilité Durable en présente de nombreux avantages pour votre entreprise :
- **Économiques** : la mutualisation des moyens de transport permet une réduction directe et immédiate des coûts, que ce soit sur l'acquisition et l'entretien d'un parc de véhicules, et directement sur les coûts énergétiques. Elle permet aussi un accroissement du pouvoir d'achat des collaborateurs.
- **Environnementaux** : En contribuant à la réduction de l'empreinte-carbone de l'entreprise, elle permet aussi la préservation des ressources environnementales, avec un impact sur le cadre de vie de tous.
- **Sociaux** : La mobilité durable a un impact direct sur la qualité de vie de vos collaborateurs. L'impact immédiat sur le volume de trafic réduit les temps de trajets, donc les sources de stress de vos équipes. Le gain en pouvoir d'achat réalisé peut être perçu comme un avantage social direct.
- **Image de marque** : L'adoption d'un plan de mobilité durable renforce l'image de marque de votre entreprise en tant qu'acteur responsable et engagé. Elle peut permettre d'attirer de nouveaux talents, engagés sur ces sujets et séduits par la démarche ainsi mise en œuvre.
## Mettre en place un Plan de Mobilité Durable en entreprise
Pour assurer la réussite d'un Plan de Mobilité Durable en entreprise, il est nécessaire de respecter plusieurs étapes :
1. La première étape consiste à **évaluer les besoins** de vos collaborateurs, [le plus souvent au travers d'une enquête](https://coopgo.fr/kitandgo-bibliotheque/questionnaire_plandemobilite.pdf), afin de pouvoir bâtir des réponses utiles. Il est aussi fortement recommandé d'impliquer les partenaires sociaux pour favoriser l'adoption des nouvelles dispositions.
2. Il faut ensuite définir des **objectifs clairs et mesurables**, par exemple en gain de pouvoir d'achat pour vos collaborateurs, ou l'impact-carbone des mesures prises. Ces objectifs seront utiles pour favoriser l'acceptation du plan par le plus grand nombre.
3. À partir des données disponibles, il est possible de choisir les solutions les plus adaptées : accès aux transports en commun, mise en place d'incitation à l'utilisation de VAE, solution de covoiturage interne ...
4. Il est indispensable de **communiquer** sur la mise en place de ces solutions, pour inciter vos équipes à s'en emparer. Vous pouvez organiser des animations, des incitations à adopter les nouveaux comportements.
5. Enfin, vous pourrez mettre en place des **indicateurs de performance** et évaluer régulièrement les résultats, de manière à adapter le Plan et en favoriser la réussite.
Pour faciliter la mise en place de votre Plan de Mobilité Durable, nous mettons à votre disposition [Kit&Go](https://coopgo.fr/projects/kit-and-go/), un ensemble de ressources et de fiches méthodes pour vous aider à mieux appréhender les différentes étapes nécessaires.
## Les Défis et Solutions
Durant la mise en place, votre entreprise devra répondre à de nombreux défis :
- **Coûts initiaux** : un plan de mobilité nécessitera forcément des investissements initiaux plus ou moins importants.
Par exemple, si le plan prévoit l'accentuation de la pratique du VAE, il faudra prévoir des solutions de parcage et de rechargement sécurisées pour les vélos, et des vestiaires dédiés pour vos collaborateurs, afin d'accroître leur confort. Si votre plan comprend l'usage renforcé des transports en commun, il sera peut-être nécessaire d'adapter les horaires de travail en fonction des heures de passage. Ces investissements devront pouvoir être amortis par les économies réalisées.
- Certains collaborateurs montreront des **réticences au changement,** il sera alors indispensable de prévoir des réponses adaptées pour les convaincre, et valoriser les changements de comportements via des incitations, des animations et des entretiens individualisés, afin de proposer des solutions adaptées à chaque collaborateur.
## Conclusion
**Un plan de mobilité durable n'est pas une solution unique**. C'est un ensemble de mesures, adaptées à vos réalités et aux contraintes de votre entreprise, qui permet de réduire les coûts inhérents aux déplacements et de valoriser la réduction de leur empreinte carbone auprès de vos collaborateurs et de vos partenaires.
Vous pouvez à tout moment [contacter nos experts](mailto:contact@coopgo.fr) pour réaliser un point sur vos projets, vos besoins et construire des solutions adaptées à votre entreprise.

View File

@@ -0,0 +1,57 @@
---
title: Porteur de projet, un métier pas comme les autres
date: 2024-11-28T12:00:00+02:00
description: "Dans le cadre du programme TIMS, COOPGO met en place des solutions de mobilité solidaire et durable dans les vallées de la Roya et de la Vésubie."
color: primary
featuredimage: images/vallee-roya.png
---
# Porteur de projet, un métier pas comme les autres
Dans le cadre du programme [TIMS](https://mobilite-durable-inclusive.fr), COOPGO met en place des solutions de mobilité solidaire et durable dans les vallées de la Roya et de la Vésubie. Pour notre équipe, le défi est d'être pour la première fois prescripteur, plutôt que fournisseur de solutions .
## Le projet
Partant du constat que la mobilité est un des principaux freins à l'insertion professionnelle, source d'isolement et d'exclusion sociale, que les Vallées de la Roya et de la Vésubie sont des territoires montagneux et souvent difficile d'accès, nous avons décidé de porter un projet pour développer des actions d'écomobilité inclusive sur ces 2 territoires.
**Les actions mises en oeuvre sont** :
- Conseil en mobilité pour accompagner les publics de manière individuelle et par le biais d'ateliers collectifs (diagnostics, sensibilisation, identification de solutions ...)
- Développement d'une démarche de covoiturage solidaire et de transport solidaire
- Mise à disposition de vélos à assistance électrique auprès des publics en situation de précarité vis à vis de leur mobilité (période de 1 à 3 mois), ou afin de sensibiliser le grand public au VAE (prêts d'1 semaine pour faire tester le vélo)
## Ingénierie
Pour mener ce projet à bien, il a d'abord fallu constituer une équipe. Il était essentiel à nos yeux que l'élément clé serait la proximité.
Nous avons donc intégré **[Giulia](https://mobilite-durable-inclusive.fr/de-nouvelles-conseilleres-en-ecomobilite-inclusive/)** à notre équipe. Son expertise sur les sujets de mobilité se complète par une connaissance fine du territoire où elle vit, des acteurs locaux et des besoins des habitants pour leur mobilité.
Nous avons ensuite pris lien avec les acteurs locaux (communes et communautés de communes, EPCI, Mission Locale, France Travail...) afin de présenter notre projet et d'affiner avec eux les besoins, au plus près des habitants. Durant ces échanges, nous avons ainsi pu appréhender les difficultés rencontrées pour se déplacer dans ces territoires vallonés, et imaginer des solutions innovantes.
Notre équipe de développeurs s'est attelée à adapter [ParcoursMob](https://coopgo.fr/projects/ridygo-insertion-sociale/), notre outil de construction de parcours de mobilité à l'intention des publics en situation de précarité. Nous avons intégré dans la plateforme l'ensemble des transports en commun disponibles, les vélos mis à disposition, et la solution de covoiturage proposée par [Mobicoop.](https://www.mobicoop.fr) Ainsi, tous les acteurs impliqués peuvent construire avec les bénéficiaires des solutions accessibles pour se déplacer, et ainsi faciliter la réinsertion sociale.
Enfin, nous avons choisi de travailler en partenariat avec [Mobicity](https://mobicity.fr) pour la [mise à disposition des vélos](https://coopgo.fr/roya/velo/). Disponibles à la location, ce sont 10 vélos à assistance électrique fabriqués en France qui sont désormais accessibles dans la vallée de la Roya pour faciliter les déplacements courts.
## Le rôle crucial du conseiller en mobilité
Au coeur de ce dispositif, le rôle de Giulia est essentiel. Elle assure des permanences sur le territoire de la vallée de la Roya, de manière à rencontrer les bénéficiaires, les informer sur les dispositifs existants et construire des solutions adaptées à leurs besoins. Elle anime aussi la communauté des habitants pour remonter les besoins et nous permettre d'adapter les solutions proposées.
Avec les ateliers et rencontres au coeur des villages, elle sensibilise aussi le public sur l'impact économique et climatique des déplacements, et sur les solutions existantes (covoiturage, transports en commun...) pour diminuer cet impact sur l'écosystème de la vallée. Elle sensibilise des personnes de tous âges aux enjeux liés à la mobilité, et permet à chacun·e d'imaginer les nouveaux modes de déplacement qu'ils peuvent utiliser au quotidien.
L'implication au quotidien de Giulia dans ce projet, et sa connaissance accrue des enjeux du territoire, sont un élément majeur de réussite pour le déploiement et la pérennisation de solutions de mobilité inclusive et durable dans la vallée de la Roya.
## Et la suite ?
Depuis septembre 2024, et le déploiement effectif du projet, nous avons déjà constaté un interêt assez vif de la part des habitants, des partenaires et des publics visés. L'objectif est de dupliquer le projet dans la vallée de la Vésubie, en adaptant les solutions proposées aux contraintes spécfiques du territoire.
Par ailleurs, nous visons à continuer, au-delà de 2026, à accompagner les habitants des vallées dans leurs déplacements au quotidien, en installant dans la durée des dispositifs mis en place et en continuant à échanger avec tous les acteurs, pour faciliter l'accès à la mobilité pour tous.
*Pour en savoir plus, vous pouvez contacter Giulia Fiscato par [mail](mailto:giulia.fiscato@coopgo.fr) ou au 07.45.29.07.35*

Binary file not shown.

View File

@@ -1,21 +1,49 @@
---
title: "Ridygo"
title: Ridygo
date: 2021-05-31T06:05:24+02:00
image: images/ridygo-whiteorange.svg
featuredimage: /images/ridygo-logo-bluegreen.svg
description: RIDYGO, l'application de covoiturage et mobilité du quotidien
---
# RIDYGO, l'application de covoiturage et mobilité du quotidien
{{< flex-row >}}
{{% column "max-w-400" %}}
[![RIDYGO](https://ridygo.fr/images/ridygo-logo-bluegreen.svg)](https://ridygo.fr)
![](/media/carpool-commute.svg)
{{% /column %}}
{{< /flex-row >}}
Projet historique de la coopérative **COOPGO**, RIDYGO est une plateforme de covoiturage et mobilité durable pour les trajets du quotidien. L'application intègre le covoiturage, les transports en commun, le vélo et la marche à pieds pour proposer toutes les alternatives à la voiture individuelle.
## Partagez vos trajets de manière simple et flexible
RIDYGO vous met en relation pour partager simplement vos trajets. Vous avez le choix : planifier vos trajets à l'avance ou les créer en quelques minutes seulement avant votre départ. Vous pouvez ainsi covoiturer sans contrainte.
## Préservez la planète
Limitez vos émissions de gaz à effet de serre : avec le covoiturage, vous réduisez le nombre de voitures sur la route, les embouteillages et donc la pollution.
## Economisez de l'argent
Partagez les frais de vos trajets de manière automatique directement dans l'application RIDYGO : inutile d'avoir de l'argent sur vous, nous nous chargeons de tout.
## Participez à un projet citoyen, inclusif et solidaire
RIDYGO est portée par une coopérative, engagée dans l'Economie Sociale et Solidaire, qui agit pout une mobilité durable, inclusive, accessible à toutes et tous
## Combinez les modes de déplacements
RIDYGO intègre le covoiturage, les transports en commun et le vélo pour toujours vous proposer les meilleurs trajets alternatifs à la voiture individuelle.
{{< center >}}{{< link-button "https://ridygo.page.link/?ibi=fr.ridygo.app&isi=1113462772&apn=fr.ridygo.app&imv=1&amv=0&link=https://app.ridygo.fr/" "bg-primary white big p-15 m-30" >}}Télécharger RIDYGO{{< /link-button >}} {{< /center >}}
## RIDYGO pour la mobilité de vos salariés
Application grand public, RIDYGO peut également être déployée dans les entreprises pour favoriser la mobilité durable des salariés. COOPGO propose ainsi une offre d'accompagnement dédiée, allant de la réalisation de votre plan de mobilité à la mise en place de la solution RIDYGO et le suivi opérationnel des actions de sensibilisation des salariés. [Découvrez nos offres d'accompagnement COOPGO pour les employeurs](/employeurs/).
**COOPGO** s'intègre également aux applications multimodales et systèmes de MaaS ("Mobility as a Service") des collectivités territoriales. Nous déployons également des plateformes de covoiturage en marque blanche. Intéressés pour discuter des mobilités alternatives pour votre collectivité ? [Découvrez nos solutions COOPGO pour les territoires](/territoires/).
Téléchargez ou accédez à l'application sur [le site internet dédié de RIDYGO](https://ridygo.fr).

View File

@@ -1,10 +1,11 @@
---
title: TIMS
title: Tims
date: 2024-08-02T09:50:00+02:00
color: primary
image: images/TIMS-transparent.png
featuredimage: /images/TIMS.png
description: Programme Tims
---
# Le programme TIMS
{{< flex-row >}}
@@ -18,8 +19,13 @@ Tims est un programme qui vise à développer la mobilité durable et inclusive
Le programme est élaboré et porté par le réseau [Cler](https://cler.org) aux côtés de trois partenaires, le [Réseau MobIn](https://www.mobin-solutions.fr) les acteurs territoriaux de la mobilité inclusive, [Auvergne-Rhône-Alpes Énergie Environnement](https://www.auvergnerhonealpes-ee.fr) (AURA-EE) et le [Réseau des Agences Régionales de lEnergie et de lEnvironnement (RARE)](https://rare.fr). Lancé en 2022, il est financé par les certificats déconomies dénergie (CEE) jusquà fin 2026.
Dans le cadre de ce projet, **COOPGO** est porte ou accompagne 3 projets innovants sur la Région Sud Provence-Alpes-Cöte dAzur :
- déploiement de solutions déco-mobilité inclusive et accompagnement des publics en difficulté dans les vallées de la Roya et de la Vésubie.
- aide au développement du projet de [Locomotiv](https://paca.apprentis-auteuil.org/gare-golfe-juan-vallauris-locomotiv-mobilite-inclusive/) itinérante avec la Fondation Apprentis dAuteuil.
- développement dune plateforme départementale de mobilité inclusive et solidaire dans les Alpes-de-Haute-Provence avec [Wimoov](https://wimoov.org).
* déploiement de solutions déco-mobilité inclusive et accompagnement des publics en difficulté dans les vallées de la Roya et de la Vésubie.
* aide au développement du projet de [Locomotiv](https://paca.apprentis-auteuil.org/gare-golfe-juan-vallauris-locomotiv-mobilite-inclusive/) itinérante avec la Fondation Apprentis dAuteuil.
* développement dune plateforme départementale de mobilité inclusive et solidaire dans les Alpes-de-Haute-Provence avec [Wimoov](https://wimoov.org).
Pour en savoir plus : [COOPGO est engagée sur 3 projets lauréats "Tims" pour une mobilité inclusive et solidaire](https://coopgo.fr/gotogether/coopgo-engagee-projets-tims/)
## [](https://coopgo.fr/gotogether/coopgo-engagee-projets-tims/)Accéder directement aux pages projets
* [Inclusion Mobilité Roya](/roya/)

BIN
content/roya/.DS_Store vendored Normal file

Binary file not shown.

46
content/roya/_index.md Normal file
View File

@@ -0,0 +1,46 @@
---
title: Mobilité inclusive Roya
date: 2024-10-14T00:00:00.000Z
featuredimage: /images/TIMS-transparent.png
description: Dans le cadre du programme TIMS, nous mettons en oeuvre des
solutions innovantes de mobilité inclusive et durable dans les vallées de
l'est des Alpes-Maritimes
---
Partant du constat que la mobilité est un des principaux freins à l'insertion professionnelle, source d'isolement et d'exclusion sociale, que les Vallées de la Roya et de la Vésubie sont des territoires montagneux difficile d'accès, nous avons décidé de porter un projet pour développer des actions d'écomobilité inclusive sur ces 2 territoires.
Ce projet, financé en partie par les Certificats d'Economie d'Energie ([programme TIMS](https://mobilite-durable-inclusive.fr/)), vise à déployer des solutions d'écomobilité inclusive et d'accompagner les publics en difficulté sur le territoire de ces 2 vallées.
## Quelles seront nos actions ?
* Conseil en mobilité pour accompagner les publics de manière individuelle et par le biais d'ateliers collectifs (diagnostics, sensibilisation, identification de solutions ...)
* Développement d'une démarche de covoiturage solidaire et de transport solidaire
* Mise à disposition de vélos à assistance électrique auprès des publics en situation de précarité mobilité (période de 1 à 3 mois à tarification sociale), ou afin de sensibiliser le grand public au VAE (location à tarification grand public)
## Pour qui ?
* Personnes en insertion socio-professionnelle (dont bénéficiaire RSA) en lien avec France Travail, la Mission Locale, les structures d'accompagnement partenaires du Département
* [Réfugiés/Migrants](https://refugies.info/fr/dispositif/673da9867557f9efdc31b21f)
* Personnes âgées isolées
## Le territoire
[<img src="/media/carto-coopgo-tims-roya.png" width="200" alt="Carto Covoit Roya" title="Carto Covoit Roya : cliquer pour agrandir">](/media/carto-coopgo-tims-roya.png)
## Votre conseillère en mobilité
**Giulia Fiscato**
Mail : [giulia.fiscato@coopgo.fr](mailto:giulia.fiscato@coopgo.fr)
Téléphone : 07.45.29.07.35
## Les permanences mobilité
![flyer-perm](/media/perm-mobilite.png)
## Calendrier des permanences
{{< calendar "https://corsproxy.io/?https://cloud.coopgo.coop/remote.php/dav/public-calendars/8Z4oLKwjTPRrGzwM/?export" >}}
![Projet financé par le programme TIMS](/media/logos-tims.png)
## Accéder aux pages thématiques

BIN
content/roya/assets/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -0,0 +1,16 @@
---
title: Covoiturage
date: 2024-10-13T02:00:00.000Z
featuredimage: images/Covoiturage.svg
description: Covoiturage Roya
slug: covoiturage
---
# Covoiturage solidaire dans la Vallée de la Roya
Dans le cadre du projet, nous proposons des solutions pour faciliter le covoiturage solidaire dans la vallée de la Roya.
Nous détaillerons très bientôt sur cette page les solutions dédiées.
En attendant, vous pouvez d'ores et déjà rejoindre le groupe de covoiturage existant dans la Vallée : [Rejoindre le groupe WhatsApp "Covoiturage vallée Roya"](https://chat.whatsapp.com/Imp7CKDijS07bcPcHNWs5P)
Retour à la page du projet [Inclusion Mobilité Roya Vésubie](/roya/).

19
content/roya/velo.md Normal file
View File

@@ -0,0 +1,19 @@
---
title: Mise à disposition de vélos
date: 2024-10-13T02:00:00.000Z
featuredimage: images/Velo.png
description: Mise à disposition de vélos dans la Roya
slug: velo
---
# Mise à disposition de vélos à assistance électrique dans la Vallée de la Roya.
Dans le cadre du projet [Inclusion Mobilité Roya Vésubie](/roya/), COOPGO met à disposition 10 vélos à assistance électrique dans la Vallée de la Roya.
L'objectif du dispositif est d'aider des personnes en insertion, isolées ou rencontrant des difficultés de déplacement à accéder à une solution de mobilité durable.
La mise à disposition de ces vélos est soumise à condition de ressources, dans le cadre d'un accompagnement par notre conseillère mobilité.
Pour toute information concernant ce dispositif, vous pouvez contacter Giulia Fiscato par mail ([giulia.fiscato@coopgo.fr](mailto:giulia.fiscato@coopgo.fr)) ou par téléphone au 07.45.29.07.35.
![Projet financé par le programme TIMS](/media/logos-tims.png)

View File

@@ -1,18 +1,11 @@
---
title: velo
date: 2024-07-23T13:00:00+02:00
color: primary
title: Mise à disposition de VAE dans la vallée de la Roya
date: 2024-10-11T10:00:00.000Z
featuredimage: /images/velo-bulle.png
description: Mise à disposition de vélos
---
# Cette page a changé de destination.
# Mise à disposition de vélos dans le cadre du projet TIMS Roya-Vésubie
## Conditions de mise à disposition
Accéder à la page [Mise à disposition de vélos](/roya/velo/)
Dans le cadre du programme TIMS, COOPGO met à disposition 10 vélos à assistance électrique (VAE) pour les bénéficiaires, afin de faciliter leurs déplacements dans les vallées de la Roya et de la Vésubie.
Ces vélos seront loués aux bénéficiaires, après évaluation des besoins par les conseillers en mobilité des différents organismes partenaires ou directement suite à lévaluation menée par notre conseillère en mobilité inclusive et durable.
Pour tout renseignement, vous pouvez prendre contact avec notre conseillère **Giulia Fiscato** par mail : [giulia.fiscato@coopgo.fr](mailto:giulia.fiscato@coopgo.fr) ou par téléphone au 07.45.29.07.35.
)

BIN
content/velo-roya/.DS_Store vendored Normal file

Binary file not shown.

1
node_modules/.bin/direction generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../direction/cli.js

1
node_modules/.bin/esparse generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../esprima/bin/esparse.js

1
node_modules/.bin/esvalidate generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../esprima/bin/esvalidate.js

1
node_modules/.bin/gl-style-composite generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../@mapbox/mapbox-gl-style-spec/bin/gl-style-composite.js

1
node_modules/.bin/gl-style-format generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../@mapbox/mapbox-gl-style-spec/bin/gl-style-format.js

1
node_modules/.bin/gl-style-migrate generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../@mapbox/mapbox-gl-style-spec/bin/gl-style-migrate.js

1
node_modules/.bin/gl-style-validate generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../@mapbox/mapbox-gl-style-spec/bin/gl-style-validate.js

1
node_modules/.bin/js-yaml generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../js-yaml/bin/js-yaml.js

1
node_modules/.bin/jsesc generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../jsesc/bin/jsesc

1
node_modules/.bin/loose-envify generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../loose-envify/cli.js

1
node_modules/.bin/parser generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../@babel/parser/bin/babel-parser.js

1
node_modules/.bin/pbf generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../pbf/bin/pbf

1
node_modules/.bin/resolve generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../resolve/bin/resolve

1
node_modules/.bin/uuid generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../uuid/dist/bin/uuid

5833
node_modules/.package-lock.json generated vendored Normal file

File diff suppressed because it is too large Load Diff

22
node_modules/@babel/code-frame/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2014-present Sebastian McKenzie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

19
node_modules/@babel/code-frame/README.md generated vendored Normal file
View File

@@ -0,0 +1,19 @@
# @babel/code-frame
> Generate errors that contain a code frame that point to source locations.
See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/code-frame
```
or using yarn:
```sh
yarn add @babel/code-frame --dev
```

156
node_modules/@babel/code-frame/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,156 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.codeFrameColumns = codeFrameColumns;
exports.default = _default;
var _highlight = require("@babel/highlight");
var _picocolors = _interopRequireWildcard(require("picocolors"), true);
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
const colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
const compose = (f, g) => v => f(g(v));
let pcWithForcedColor = undefined;
function getColors(forceColor) {
if (forceColor) {
var _pcWithForcedColor;
(_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
return pcWithForcedColor;
}
return colors;
}
let deprecationWarningShown = false;
function getDefs(colors) {
return {
gutter: colors.gray,
marker: compose(colors.red, colors.bold),
message: compose(colors.red, colors.bold)
};
}
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
function getMarkerLines(loc, source, opts) {
const startLoc = Object.assign({
column: 0,
line: -1
}, loc.start);
const endLoc = Object.assign({}, startLoc, loc.end);
const {
linesAbove = 2,
linesBelow = 3
} = opts || {};
const startLine = startLoc.line;
const startColumn = startLoc.column;
const endLine = endLoc.line;
const endColumn = endLoc.column;
let start = Math.max(startLine - (linesAbove + 1), 0);
let end = Math.min(source.length, endLine + linesBelow);
if (startLine === -1) {
start = 0;
}
if (endLine === -1) {
end = source.length;
}
const lineDiff = endLine - startLine;
const markerLines = {};
if (lineDiff) {
for (let i = 0; i <= lineDiff; i++) {
const lineNumber = i + startLine;
if (!startColumn) {
markerLines[lineNumber] = true;
} else if (i === 0) {
const sourceLength = source[lineNumber - 1].length;
markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];
} else if (i === lineDiff) {
markerLines[lineNumber] = [0, endColumn];
} else {
const sourceLength = source[lineNumber - i].length;
markerLines[lineNumber] = [0, sourceLength];
}
}
} else {
if (startColumn === endColumn) {
if (startColumn) {
markerLines[startLine] = [startColumn, 0];
} else {
markerLines[startLine] = true;
}
} else {
markerLines[startLine] = [startColumn, endColumn - startColumn];
}
}
return {
start,
end,
markerLines
};
}
function codeFrameColumns(rawLines, loc, opts = {}) {
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
const colors = getColors(opts.forceColor);
const defs = getDefs(colors);
const maybeHighlight = (fmt, string) => {
return highlighted ? fmt(string) : string;
};
const lines = rawLines.split(NEWLINE);
const {
start,
end,
markerLines
} = getMarkerLines(loc, lines, opts);
const hasColumns = loc.start && typeof loc.start.column === "number";
const numberMaxWidth = String(end).length;
const highlightedLines = highlighted ? (0, _highlight.default)(rawLines, opts) : rawLines;
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
const number = start + 1 + index;
const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
const gutter = ` ${paddedNumber} |`;
const hasMarker = markerLines[number];
const lastMarkerLine = !markerLines[number + 1];
if (hasMarker) {
let markerLine = "";
if (Array.isArray(hasMarker)) {
const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
const numberOfMarkers = hasMarker[1] || 1;
markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), " ", markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join("");
if (lastMarkerLine && opts.message) {
markerLine += " " + maybeHighlight(defs.message, opts.message);
}
}
return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
} else {
return ` ${maybeHighlight(defs.gutter, gutter)}${line.length > 0 ? ` ${line}` : ""}`;
}
}).join("\n");
if (opts.message && !hasColumns) {
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
}
if (highlighted) {
return colors.reset(frame);
} else {
return frame;
}
}
function _default(rawLines, lineNumber, colNumber, opts = {}) {
if (!deprecationWarningShown) {
deprecationWarningShown = true;
const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
if (process.emitWarning) {
process.emitWarning(message, "DeprecationWarning");
} else {
const deprecationError = new Error(message);
deprecationError.name = "DeprecationWarning";
console.warn(new Error(message));
}
}
colNumber = Math.max(colNumber, 0);
const location = {
start: {
column: colNumber,
line: lineNumber
}
};
return codeFrameColumns(rawLines, location, opts);
}
//# sourceMappingURL=index.js.map

1
node_modules/@babel/code-frame/lib/index.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

30
node_modules/@babel/code-frame/package.json generated vendored Normal file
View File

@@ -0,0 +1,30 @@
{
"name": "@babel/code-frame",
"version": "7.25.7",
"description": "Generate errors that contain a code frame that point to source locations.",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/babel/babel.git",
"directory": "packages/babel-code-frame"
},
"main": "./lib/index.js",
"dependencies": {
"@babel/highlight": "^7.25.7",
"picocolors": "^1.0.0"
},
"devDependencies": {
"import-meta-resolve": "^4.1.0",
"strip-ansi": "^4.0.0"
},
"engines": {
"node": ">=6.9.0"
},
"type": "commonjs"
}

17
node_modules/@babel/code-frame/tsconfig.json generated vendored Normal file
View File

@@ -0,0 +1,17 @@
/* This file is automatically generated by scripts/generators/tsconfig.js */
{
"extends": [
"../../tsconfig.base.json",
"../../tsconfig.paths.json"
],
"include": [
"../../packages/babel-code-frame/src/**/*.ts",
"../../lib/globals.d.ts",
"../../scripts/repo-utils/*.d.ts"
],
"references": [
{
"path": "../../packages/babel-highlight"
}
]
}

1
node_modules/@babel/code-frame/tsconfig.tsbuildinfo generated vendored Normal file

File diff suppressed because one or more lines are too long

22
node_modules/@babel/generator/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2014-present Sebastian McKenzie and other contributors
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

19
node_modules/@babel/generator/README.md generated vendored Normal file
View File

@@ -0,0 +1,19 @@
# @babel/generator
> Turns an AST into code.
See our website [@babel/generator](https://babeljs.io/docs/babel-generator) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen) associated with this package.
## Install
Using npm:
```sh
npm install --save-dev @babel/generator
```
or using yarn:
```sh
yarn add @babel/generator --dev
```

317
node_modules/@babel/generator/lib/buffer.js generated vendored Normal file
View File

@@ -0,0 +1,317 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
class Buffer {
constructor(map, indentChar) {
this._map = null;
this._buf = "";
this._str = "";
this._appendCount = 0;
this._last = 0;
this._queue = [];
this._queueCursor = 0;
this._canMarkIdName = true;
this._indentChar = "";
this._fastIndentations = [];
this._position = {
line: 1,
column: 0
};
this._sourcePosition = {
identifierName: undefined,
identifierNamePos: undefined,
line: undefined,
column: undefined,
filename: undefined
};
this._map = map;
this._indentChar = indentChar;
for (let i = 0; i < 64; i++) {
this._fastIndentations.push(indentChar.repeat(i));
}
this._allocQueue();
}
_allocQueue() {
const queue = this._queue;
for (let i = 0; i < 16; i++) {
queue.push({
char: 0,
repeat: 1,
line: undefined,
column: undefined,
identifierName: undefined,
identifierNamePos: undefined,
filename: ""
});
}
}
_pushQueue(char, repeat, line, column, filename) {
const cursor = this._queueCursor;
if (cursor === this._queue.length) {
this._allocQueue();
}
const item = this._queue[cursor];
item.char = char;
item.repeat = repeat;
item.line = line;
item.column = column;
item.filename = filename;
this._queueCursor++;
}
_popQueue() {
if (this._queueCursor === 0) {
throw new Error("Cannot pop from empty queue");
}
return this._queue[--this._queueCursor];
}
get() {
this._flush();
const map = this._map;
const result = {
code: (this._buf + this._str).trimRight(),
decodedMap: map == null ? void 0 : map.getDecoded(),
get __mergedMap() {
return this.map;
},
get map() {
const resultMap = map ? map.get() : null;
result.map = resultMap;
return resultMap;
},
set map(value) {
Object.defineProperty(result, "map", {
value,
writable: true
});
},
get rawMappings() {
const mappings = map == null ? void 0 : map.getRawMappings();
result.rawMappings = mappings;
return mappings;
},
set rawMappings(value) {
Object.defineProperty(result, "rawMappings", {
value,
writable: true
});
}
};
return result;
}
append(str, maybeNewline) {
this._flush();
this._append(str, this._sourcePosition, maybeNewline);
}
appendChar(char) {
this._flush();
this._appendChar(char, 1, this._sourcePosition);
}
queue(char) {
if (char === 10) {
while (this._queueCursor !== 0) {
const char = this._queue[this._queueCursor - 1].char;
if (char !== 32 && char !== 9) {
break;
}
this._queueCursor--;
}
}
const sourcePosition = this._sourcePosition;
this._pushQueue(char, 1, sourcePosition.line, sourcePosition.column, sourcePosition.filename);
}
queueIndentation(repeat) {
if (repeat === 0) return;
this._pushQueue(-1, repeat, undefined, undefined, undefined);
}
_flush() {
const queueCursor = this._queueCursor;
const queue = this._queue;
for (let i = 0; i < queueCursor; i++) {
const item = queue[i];
this._appendChar(item.char, item.repeat, item);
}
this._queueCursor = 0;
}
_appendChar(char, repeat, sourcePos) {
this._last = char;
if (char === -1) {
const fastIndentation = this._fastIndentations[repeat];
if (fastIndentation !== undefined) {
this._str += fastIndentation;
} else {
this._str += repeat > 1 ? this._indentChar.repeat(repeat) : this._indentChar;
}
} else {
this._str += repeat > 1 ? String.fromCharCode(char).repeat(repeat) : String.fromCharCode(char);
}
if (char !== 10) {
this._mark(sourcePos.line, sourcePos.column, sourcePos.identifierName, sourcePos.identifierNamePos, sourcePos.filename);
this._position.column += repeat;
} else {
this._position.line++;
this._position.column = 0;
}
if (this._canMarkIdName) {
sourcePos.identifierName = undefined;
sourcePos.identifierNamePos = undefined;
}
}
_append(str, sourcePos, maybeNewline) {
const len = str.length;
const position = this._position;
this._last = str.charCodeAt(len - 1);
if (++this._appendCount > 4096) {
+this._str;
this._buf += this._str;
this._str = str;
this._appendCount = 0;
} else {
this._str += str;
}
if (!maybeNewline && !this._map) {
position.column += len;
return;
}
const {
column,
identifierName,
identifierNamePos,
filename
} = sourcePos;
let line = sourcePos.line;
if ((identifierName != null || identifierNamePos != null) && this._canMarkIdName) {
sourcePos.identifierName = undefined;
sourcePos.identifierNamePos = undefined;
}
let i = str.indexOf("\n");
let last = 0;
if (i !== 0) {
this._mark(line, column, identifierName, identifierNamePos, filename);
}
while (i !== -1) {
position.line++;
position.column = 0;
last = i + 1;
if (last < len && line !== undefined) {
this._mark(++line, 0, null, null, filename);
}
i = str.indexOf("\n", last);
}
position.column += len - last;
}
_mark(line, column, identifierName, identifierNamePos, filename) {
var _this$_map;
(_this$_map = this._map) == null || _this$_map.mark(this._position, line, column, identifierName, identifierNamePos, filename);
}
removeTrailingNewline() {
const queueCursor = this._queueCursor;
if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 10) {
this._queueCursor--;
}
}
removeLastSemicolon() {
const queueCursor = this._queueCursor;
if (queueCursor !== 0 && this._queue[queueCursor - 1].char === 59) {
this._queueCursor--;
}
}
getLastChar() {
const queueCursor = this._queueCursor;
return queueCursor !== 0 ? this._queue[queueCursor - 1].char : this._last;
}
getNewlineCount() {
const queueCursor = this._queueCursor;
let count = 0;
if (queueCursor === 0) return this._last === 10 ? 1 : 0;
for (let i = queueCursor - 1; i >= 0; i--) {
if (this._queue[i].char !== 10) {
break;
}
count++;
}
return count === queueCursor && this._last === 10 ? count + 1 : count;
}
endsWithCharAndNewline() {
const queue = this._queue;
const queueCursor = this._queueCursor;
if (queueCursor !== 0) {
const lastCp = queue[queueCursor - 1].char;
if (lastCp !== 10) return;
if (queueCursor > 1) {
return queue[queueCursor - 2].char;
} else {
return this._last;
}
}
}
hasContent() {
return this._queueCursor !== 0 || !!this._last;
}
exactSource(loc, cb) {
if (!this._map) {
cb();
return;
}
this.source("start", loc);
const identifierName = loc.identifierName;
const sourcePos = this._sourcePosition;
if (identifierName) {
this._canMarkIdName = false;
sourcePos.identifierName = identifierName;
}
cb();
if (identifierName) {
this._canMarkIdName = true;
sourcePos.identifierName = undefined;
sourcePos.identifierNamePos = undefined;
}
this.source("end", loc);
}
source(prop, loc) {
if (!this._map) return;
this._normalizePosition(prop, loc, 0);
}
sourceWithOffset(prop, loc, columnOffset) {
if (!this._map) return;
this._normalizePosition(prop, loc, columnOffset);
}
_normalizePosition(prop, loc, columnOffset) {
const pos = loc[prop];
const target = this._sourcePosition;
if (pos) {
target.line = pos.line;
target.column = Math.max(pos.column + columnOffset, 0);
target.filename = loc.filename;
}
}
getCurrentColumn() {
const queue = this._queue;
const queueCursor = this._queueCursor;
let lastIndex = -1;
let len = 0;
for (let i = 0; i < queueCursor; i++) {
const item = queue[i];
if (item.char === 10) {
lastIndex = len;
}
len += item.repeat;
}
return lastIndex === -1 ? this._position.column + len : len - 1 - lastIndex;
}
getCurrentLine() {
let count = 0;
const queue = this._queue;
for (let i = 0; i < this._queueCursor; i++) {
if (queue[i].char === 10) {
count++;
}
}
return this._position.line + count;
}
}
exports.default = Buffer;
//# sourceMappingURL=buffer.js.map

1
node_modules/@babel/generator/lib/buffer.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

94
node_modules/@babel/generator/lib/generators/base.js generated vendored Normal file
View File

@@ -0,0 +1,94 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BlockStatement = BlockStatement;
exports.Directive = Directive;
exports.DirectiveLiteral = DirectiveLiteral;
exports.File = File;
exports.InterpreterDirective = InterpreterDirective;
exports.Placeholder = Placeholder;
exports.Program = Program;
function File(node) {
if (node.program) {
this.print(node.program.interpreter);
}
this.print(node.program);
}
function Program(node) {
var _node$directives;
this.noIndentInnerCommentsHere();
this.printInnerComments();
const directivesLen = (_node$directives = node.directives) == null ? void 0 : _node$directives.length;
if (directivesLen) {
var _node$directives$trai;
const newline = node.body.length ? 2 : 1;
this.printSequence(node.directives, {
trailingCommentsLineOffset: newline
});
if (!((_node$directives$trai = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai.length)) {
this.newline(newline);
}
}
this.printSequence(node.body);
}
function BlockStatement(node) {
var _node$directives2;
this.tokenChar(123);
const exit = this.enterDelimited();
const directivesLen = (_node$directives2 = node.directives) == null ? void 0 : _node$directives2.length;
if (directivesLen) {
var _node$directives$trai2;
const newline = node.body.length ? 2 : 1;
this.printSequence(node.directives, {
indent: true,
trailingCommentsLineOffset: newline
});
if (!((_node$directives$trai2 = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai2.length)) {
this.newline(newline);
}
}
this.printSequence(node.body, {
indent: true
});
exit();
this.rightBrace(node);
}
function Directive(node) {
this.print(node.value);
this.semicolon();
}
const unescapedSingleQuoteRE = /(?:^|[^\\])(?:\\\\)*'/;
const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/;
function DirectiveLiteral(node) {
const raw = this.getPossibleRaw(node);
if (!this.format.minified && raw !== undefined) {
this.token(raw);
return;
}
const {
value
} = node;
if (!unescapedDoubleQuoteRE.test(value)) {
this.token(`"${value}"`);
} else if (!unescapedSingleQuoteRE.test(value)) {
this.token(`'${value}'`);
} else {
throw new Error("Malformed AST: it is not possible to print a directive containing" + " both unescaped single and double quotes.");
}
}
function InterpreterDirective(node) {
this.token(`#!${node.value}`);
this.newline(1, true);
}
function Placeholder(node) {
this.token("%%");
this.print(node.name);
this.token("%%");
if (node.expectedNode === "Statement") {
this.semicolon();
}
}
//# sourceMappingURL=base.js.map

File diff suppressed because one or more lines are too long

179
node_modules/@babel/generator/lib/generators/classes.js generated vendored Normal file
View File

@@ -0,0 +1,179 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ClassAccessorProperty = ClassAccessorProperty;
exports.ClassBody = ClassBody;
exports.ClassExpression = exports.ClassDeclaration = ClassDeclaration;
exports.ClassMethod = ClassMethod;
exports.ClassPrivateMethod = ClassPrivateMethod;
exports.ClassPrivateProperty = ClassPrivateProperty;
exports.ClassProperty = ClassProperty;
exports.StaticBlock = StaticBlock;
exports._classMethodHead = _classMethodHead;
var _t = require("@babel/types");
const {
isExportDefaultDeclaration,
isExportNamedDeclaration
} = _t;
function ClassDeclaration(node, parent) {
const inExport = isExportDefaultDeclaration(parent) || isExportNamedDeclaration(parent);
if (!inExport || !this._shouldPrintDecoratorsBeforeExport(parent)) {
this.printJoin(node.decorators);
}
if (node.declare) {
this.word("declare");
this.space();
}
if (node.abstract) {
this.word("abstract");
this.space();
}
this.word("class");
if (node.id) {
this.space();
this.print(node.id);
}
this.print(node.typeParameters);
if (node.superClass) {
this.space();
this.word("extends");
this.space();
this.print(node.superClass);
this.print(node.superTypeParameters);
}
if (node.implements) {
this.space();
this.word("implements");
this.space();
this.printList(node.implements);
}
this.space();
this.print(node.body);
}
function ClassBody(node) {
this.tokenChar(123);
if (node.body.length === 0) {
this.tokenChar(125);
} else {
this.newline();
const exit = this.enterDelimited();
this.printSequence(node.body, {
indent: true
});
exit();
if (!this.endsWith(10)) this.newline();
this.rightBrace(node);
}
}
function ClassProperty(node) {
var _node$key$loc;
this.printJoin(node.decorators);
const endLine = (_node$key$loc = node.key.loc) == null || (_node$key$loc = _node$key$loc.end) == null ? void 0 : _node$key$loc.line;
if (endLine) this.catchUp(endLine);
this.tsPrintClassMemberModifiers(node);
if (node.computed) {
this.tokenChar(91);
this.print(node.key);
this.tokenChar(93);
} else {
this._variance(node);
this.print(node.key);
}
if (node.optional) {
this.tokenChar(63);
}
if (node.definite) {
this.tokenChar(33);
}
this.print(node.typeAnnotation);
if (node.value) {
this.space();
this.tokenChar(61);
this.space();
this.print(node.value);
}
this.semicolon();
}
function ClassAccessorProperty(node) {
var _node$key$loc2;
this.printJoin(node.decorators);
const endLine = (_node$key$loc2 = node.key.loc) == null || (_node$key$loc2 = _node$key$loc2.end) == null ? void 0 : _node$key$loc2.line;
if (endLine) this.catchUp(endLine);
this.tsPrintClassMemberModifiers(node);
this.word("accessor", true);
this.space();
if (node.computed) {
this.tokenChar(91);
this.print(node.key);
this.tokenChar(93);
} else {
this._variance(node);
this.print(node.key);
}
if (node.optional) {
this.tokenChar(63);
}
if (node.definite) {
this.tokenChar(33);
}
this.print(node.typeAnnotation);
if (node.value) {
this.space();
this.tokenChar(61);
this.space();
this.print(node.value);
}
this.semicolon();
}
function ClassPrivateProperty(node) {
this.printJoin(node.decorators);
if (node.static) {
this.word("static");
this.space();
}
this.print(node.key);
this.print(node.typeAnnotation);
if (node.value) {
this.space();
this.tokenChar(61);
this.space();
this.print(node.value);
}
this.semicolon();
}
function ClassMethod(node) {
this._classMethodHead(node);
this.space();
this.print(node.body);
}
function ClassPrivateMethod(node) {
this._classMethodHead(node);
this.space();
this.print(node.body);
}
function _classMethodHead(node) {
var _node$key$loc3;
this.printJoin(node.decorators);
const endLine = (_node$key$loc3 = node.key.loc) == null || (_node$key$loc3 = _node$key$loc3.end) == null ? void 0 : _node$key$loc3.line;
if (endLine) this.catchUp(endLine);
this.tsPrintClassMemberModifiers(node);
this._methodHead(node);
}
function StaticBlock(node) {
this.word("static");
this.space();
this.tokenChar(123);
if (node.body.length === 0) {
this.tokenChar(125);
} else {
this.newline();
this.printSequence(node.body, {
indent: true
});
this.rightBrace(node);
}
}
//# sourceMappingURL=classes.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,292 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression;
exports.AssignmentPattern = AssignmentPattern;
exports.AwaitExpression = AwaitExpression;
exports.BindExpression = BindExpression;
exports.CallExpression = CallExpression;
exports.ConditionalExpression = ConditionalExpression;
exports.Decorator = Decorator;
exports.DoExpression = DoExpression;
exports.EmptyStatement = EmptyStatement;
exports.ExpressionStatement = ExpressionStatement;
exports.Import = Import;
exports.MemberExpression = MemberExpression;
exports.MetaProperty = MetaProperty;
exports.ModuleExpression = ModuleExpression;
exports.NewExpression = NewExpression;
exports.OptionalCallExpression = OptionalCallExpression;
exports.OptionalMemberExpression = OptionalMemberExpression;
exports.ParenthesizedExpression = ParenthesizedExpression;
exports.PrivateName = PrivateName;
exports.SequenceExpression = SequenceExpression;
exports.Super = Super;
exports.ThisExpression = ThisExpression;
exports.UnaryExpression = UnaryExpression;
exports.UpdateExpression = UpdateExpression;
exports.V8IntrinsicIdentifier = V8IntrinsicIdentifier;
exports.YieldExpression = YieldExpression;
exports._shouldPrintDecoratorsBeforeExport = _shouldPrintDecoratorsBeforeExport;
var _t = require("@babel/types");
var _index = require("../node/index.js");
const {
isCallExpression,
isLiteral,
isMemberExpression,
isNewExpression,
isPattern
} = _t;
function UnaryExpression(node) {
const {
operator
} = node;
if (operator === "void" || operator === "delete" || operator === "typeof" || operator === "throw") {
this.word(operator);
this.space();
} else {
this.token(operator);
}
this.print(node.argument);
}
function DoExpression(node) {
if (node.async) {
this.word("async", true);
this.space();
}
this.word("do");
this.space();
this.print(node.body);
}
function ParenthesizedExpression(node) {
this.tokenChar(40);
const exit = this.enterDelimited();
this.print(node.expression);
exit();
this.rightParens(node);
}
function UpdateExpression(node) {
if (node.prefix) {
this.token(node.operator);
this.print(node.argument);
} else {
this.print(node.argument, true);
this.token(node.operator);
}
}
function ConditionalExpression(node) {
this.print(node.test);
this.space();
this.tokenChar(63);
this.space();
this.print(node.consequent);
this.space();
this.tokenChar(58);
this.space();
this.print(node.alternate);
}
function NewExpression(node, parent) {
this.word("new");
this.space();
this.print(node.callee);
if (this.format.minified && node.arguments.length === 0 && !node.optional && !isCallExpression(parent, {
callee: node
}) && !isMemberExpression(parent) && !isNewExpression(parent)) {
return;
}
this.print(node.typeArguments);
this.print(node.typeParameters);
if (node.optional) {
this.token("?.");
}
this.tokenChar(40);
const exit = this.enterDelimited();
this.printList(node.arguments);
exit();
this.rightParens(node);
}
function SequenceExpression(node) {
this.printList(node.expressions);
}
function ThisExpression() {
this.word("this");
}
function Super() {
this.word("super");
}
function _shouldPrintDecoratorsBeforeExport(node) {
if (typeof this.format.decoratorsBeforeExport === "boolean") {
return this.format.decoratorsBeforeExport;
}
return typeof node.start === "number" && node.start === node.declaration.start;
}
function Decorator(node) {
this.tokenChar(64);
this.print(node.expression);
this.newline();
}
function OptionalMemberExpression(node) {
let {
computed
} = node;
const {
optional,
property
} = node;
this.print(node.object);
if (!computed && isMemberExpression(property)) {
throw new TypeError("Got a MemberExpression for MemberExpression property");
}
if (isLiteral(property) && typeof property.value === "number") {
computed = true;
}
if (optional) {
this.token("?.");
}
if (computed) {
this.tokenChar(91);
this.print(property);
this.tokenChar(93);
} else {
if (!optional) {
this.tokenChar(46);
}
this.print(property);
}
}
function OptionalCallExpression(node) {
this.print(node.callee);
this.print(node.typeParameters);
if (node.optional) {
this.token("?.");
}
this.print(node.typeArguments);
this.tokenChar(40);
const exit = this.enterDelimited();
this.printList(node.arguments);
exit();
this.rightParens(node);
}
function CallExpression(node) {
this.print(node.callee);
this.print(node.typeArguments);
this.print(node.typeParameters);
this.tokenChar(40);
const exit = this.enterDelimited();
this.printList(node.arguments);
exit();
this.rightParens(node);
}
function Import() {
this.word("import");
}
function AwaitExpression(node) {
this.word("await");
if (node.argument) {
this.space();
this.printTerminatorless(node.argument);
}
}
function YieldExpression(node) {
this.word("yield", true);
if (node.delegate) {
this.tokenChar(42);
if (node.argument) {
this.space();
this.print(node.argument);
}
} else {
if (node.argument) {
this.space();
this.printTerminatorless(node.argument);
}
}
}
function EmptyStatement() {
this.semicolon(true);
}
function ExpressionStatement(node) {
this.tokenContext |= _index.TokenContext.expressionStatement;
this.print(node.expression);
this.semicolon();
}
function AssignmentPattern(node) {
this.print(node.left);
if (node.left.type === "Identifier" || isPattern(node.left)) {
if (node.left.optional) this.tokenChar(63);
this.print(node.left.typeAnnotation);
}
this.space();
this.tokenChar(61);
this.space();
this.print(node.right);
}
function AssignmentExpression(node) {
this.print(node.left);
this.space();
if (node.operator === "in" || node.operator === "instanceof") {
this.word(node.operator);
} else {
this.token(node.operator);
this._endsWithDiv = node.operator === "/";
}
this.space();
this.print(node.right);
}
function BindExpression(node) {
this.print(node.object);
this.token("::");
this.print(node.callee);
}
function MemberExpression(node) {
this.print(node.object);
if (!node.computed && isMemberExpression(node.property)) {
throw new TypeError("Got a MemberExpression for MemberExpression property");
}
let computed = node.computed;
if (isLiteral(node.property) && typeof node.property.value === "number") {
computed = true;
}
if (computed) {
const exit = this.enterDelimited();
this.tokenChar(91);
this.print(node.property);
this.tokenChar(93);
exit();
} else {
this.tokenChar(46);
this.print(node.property);
}
}
function MetaProperty(node) {
this.print(node.meta);
this.tokenChar(46);
this.print(node.property);
}
function PrivateName(node) {
this.tokenChar(35);
this.print(node.id);
}
function V8IntrinsicIdentifier(node) {
this.tokenChar(37);
this.word(node.name);
}
function ModuleExpression(node) {
this.word("module", true);
this.space();
this.tokenChar(123);
this.indent();
const {
body
} = node;
if (body.body.length || body.directives.length) {
this.newline();
}
this.print(body);
this.dedent();
this.rightBrace(node);
}
//# sourceMappingURL=expressions.js.map

File diff suppressed because one or more lines are too long

669
node_modules/@babel/generator/lib/generators/flow.js generated vendored Normal file
View File

@@ -0,0 +1,669 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AnyTypeAnnotation = AnyTypeAnnotation;
exports.ArrayTypeAnnotation = ArrayTypeAnnotation;
exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation;
exports.BooleanTypeAnnotation = BooleanTypeAnnotation;
exports.DeclareClass = DeclareClass;
exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration;
exports.DeclareExportDeclaration = DeclareExportDeclaration;
exports.DeclareFunction = DeclareFunction;
exports.DeclareInterface = DeclareInterface;
exports.DeclareModule = DeclareModule;
exports.DeclareModuleExports = DeclareModuleExports;
exports.DeclareOpaqueType = DeclareOpaqueType;
exports.DeclareTypeAlias = DeclareTypeAlias;
exports.DeclareVariable = DeclareVariable;
exports.DeclaredPredicate = DeclaredPredicate;
exports.EmptyTypeAnnotation = EmptyTypeAnnotation;
exports.EnumBooleanBody = EnumBooleanBody;
exports.EnumBooleanMember = EnumBooleanMember;
exports.EnumDeclaration = EnumDeclaration;
exports.EnumDefaultedMember = EnumDefaultedMember;
exports.EnumNumberBody = EnumNumberBody;
exports.EnumNumberMember = EnumNumberMember;
exports.EnumStringBody = EnumStringBody;
exports.EnumStringMember = EnumStringMember;
exports.EnumSymbolBody = EnumSymbolBody;
exports.ExistsTypeAnnotation = ExistsTypeAnnotation;
exports.FunctionTypeAnnotation = FunctionTypeAnnotation;
exports.FunctionTypeParam = FunctionTypeParam;
exports.IndexedAccessType = IndexedAccessType;
exports.InferredPredicate = InferredPredicate;
exports.InterfaceDeclaration = InterfaceDeclaration;
exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends;
exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation;
exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation;
exports.MixedTypeAnnotation = MixedTypeAnnotation;
exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation;
exports.NullableTypeAnnotation = NullableTypeAnnotation;
Object.defineProperty(exports, "NumberLiteralTypeAnnotation", {
enumerable: true,
get: function () {
return _types2.NumericLiteral;
}
});
exports.NumberTypeAnnotation = NumberTypeAnnotation;
exports.ObjectTypeAnnotation = ObjectTypeAnnotation;
exports.ObjectTypeCallProperty = ObjectTypeCallProperty;
exports.ObjectTypeIndexer = ObjectTypeIndexer;
exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot;
exports.ObjectTypeProperty = ObjectTypeProperty;
exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty;
exports.OpaqueType = OpaqueType;
exports.OptionalIndexedAccessType = OptionalIndexedAccessType;
exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier;
Object.defineProperty(exports, "StringLiteralTypeAnnotation", {
enumerable: true,
get: function () {
return _types2.StringLiteral;
}
});
exports.StringTypeAnnotation = StringTypeAnnotation;
exports.SymbolTypeAnnotation = SymbolTypeAnnotation;
exports.ThisTypeAnnotation = ThisTypeAnnotation;
exports.TupleTypeAnnotation = TupleTypeAnnotation;
exports.TypeAlias = TypeAlias;
exports.TypeAnnotation = TypeAnnotation;
exports.TypeCastExpression = TypeCastExpression;
exports.TypeParameter = TypeParameter;
exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation;
exports.TypeofTypeAnnotation = TypeofTypeAnnotation;
exports.UnionTypeAnnotation = UnionTypeAnnotation;
exports.Variance = Variance;
exports.VoidTypeAnnotation = VoidTypeAnnotation;
exports._interfaceish = _interfaceish;
exports._variance = _variance;
var _t = require("@babel/types");
var _modules = require("./modules.js");
var _index = require("../node/index.js");
var _types2 = require("./types.js");
const {
isDeclareExportDeclaration,
isStatement
} = _t;
function AnyTypeAnnotation() {
this.word("any");
}
function ArrayTypeAnnotation(node) {
this.print(node.elementType, true);
this.tokenChar(91);
this.tokenChar(93);
}
function BooleanTypeAnnotation() {
this.word("boolean");
}
function BooleanLiteralTypeAnnotation(node) {
this.word(node.value ? "true" : "false");
}
function NullLiteralTypeAnnotation() {
this.word("null");
}
function DeclareClass(node, parent) {
if (!isDeclareExportDeclaration(parent)) {
this.word("declare");
this.space();
}
this.word("class");
this.space();
this._interfaceish(node);
}
function DeclareFunction(node, parent) {
if (!isDeclareExportDeclaration(parent)) {
this.word("declare");
this.space();
}
this.word("function");
this.space();
this.print(node.id);
this.print(node.id.typeAnnotation.typeAnnotation);
if (node.predicate) {
this.space();
this.print(node.predicate);
}
this.semicolon();
}
function InferredPredicate() {
this.tokenChar(37);
this.word("checks");
}
function DeclaredPredicate(node) {
this.tokenChar(37);
this.word("checks");
this.tokenChar(40);
this.print(node.value);
this.tokenChar(41);
}
function DeclareInterface(node) {
this.word("declare");
this.space();
this.InterfaceDeclaration(node);
}
function DeclareModule(node) {
this.word("declare");
this.space();
this.word("module");
this.space();
this.print(node.id);
this.space();
this.print(node.body);
}
function DeclareModuleExports(node) {
this.word("declare");
this.space();
this.word("module");
this.tokenChar(46);
this.word("exports");
this.print(node.typeAnnotation);
}
function DeclareTypeAlias(node) {
this.word("declare");
this.space();
this.TypeAlias(node);
}
function DeclareOpaqueType(node, parent) {
if (!isDeclareExportDeclaration(parent)) {
this.word("declare");
this.space();
}
this.OpaqueType(node);
}
function DeclareVariable(node, parent) {
if (!isDeclareExportDeclaration(parent)) {
this.word("declare");
this.space();
}
this.word("var");
this.space();
this.print(node.id);
this.print(node.id.typeAnnotation);
this.semicolon();
}
function DeclareExportDeclaration(node) {
this.word("declare");
this.space();
this.word("export");
this.space();
if (node.default) {
this.word("default");
this.space();
}
FlowExportDeclaration.call(this, node);
}
function DeclareExportAllDeclaration(node) {
this.word("declare");
this.space();
_modules.ExportAllDeclaration.call(this, node);
}
function EnumDeclaration(node) {
const {
id,
body
} = node;
this.word("enum");
this.space();
this.print(id);
this.print(body);
}
function enumExplicitType(context, name, hasExplicitType) {
if (hasExplicitType) {
context.space();
context.word("of");
context.space();
context.word(name);
}
context.space();
}
function enumBody(context, node) {
const {
members
} = node;
context.token("{");
context.indent();
context.newline();
for (const member of members) {
context.print(member);
context.newline();
}
if (node.hasUnknownMembers) {
context.token("...");
context.newline();
}
context.dedent();
context.token("}");
}
function EnumBooleanBody(node) {
const {
explicitType
} = node;
enumExplicitType(this, "boolean", explicitType);
enumBody(this, node);
}
function EnumNumberBody(node) {
const {
explicitType
} = node;
enumExplicitType(this, "number", explicitType);
enumBody(this, node);
}
function EnumStringBody(node) {
const {
explicitType
} = node;
enumExplicitType(this, "string", explicitType);
enumBody(this, node);
}
function EnumSymbolBody(node) {
enumExplicitType(this, "symbol", true);
enumBody(this, node);
}
function EnumDefaultedMember(node) {
const {
id
} = node;
this.print(id);
this.tokenChar(44);
}
function enumInitializedMember(context, node) {
context.print(node.id);
context.space();
context.token("=");
context.space();
context.print(node.init);
context.token(",");
}
function EnumBooleanMember(node) {
enumInitializedMember(this, node);
}
function EnumNumberMember(node) {
enumInitializedMember(this, node);
}
function EnumStringMember(node) {
enumInitializedMember(this, node);
}
function FlowExportDeclaration(node) {
if (node.declaration) {
const declar = node.declaration;
this.print(declar);
if (!isStatement(declar)) this.semicolon();
} else {
this.tokenChar(123);
if (node.specifiers.length) {
this.space();
this.printList(node.specifiers);
this.space();
}
this.tokenChar(125);
if (node.source) {
this.space();
this.word("from");
this.space();
this.print(node.source);
}
this.semicolon();
}
}
function ExistsTypeAnnotation() {
this.tokenChar(42);
}
function FunctionTypeAnnotation(node, parent) {
this.print(node.typeParameters);
this.tokenChar(40);
if (node.this) {
this.word("this");
this.tokenChar(58);
this.space();
this.print(node.this.typeAnnotation);
if (node.params.length || node.rest) {
this.tokenChar(44);
this.space();
}
}
this.printList(node.params);
if (node.rest) {
if (node.params.length) {
this.tokenChar(44);
this.space();
}
this.token("...");
this.print(node.rest);
}
this.tokenChar(41);
const type = parent == null ? void 0 : parent.type;
if (type != null && (type === "ObjectTypeCallProperty" || type === "ObjectTypeInternalSlot" || type === "DeclareFunction" || type === "ObjectTypeProperty" && parent.method)) {
this.tokenChar(58);
} else {
this.space();
this.token("=>");
}
this.space();
this.print(node.returnType);
}
function FunctionTypeParam(node) {
this.print(node.name);
if (node.optional) this.tokenChar(63);
if (node.name) {
this.tokenChar(58);
this.space();
}
this.print(node.typeAnnotation);
}
function InterfaceExtends(node) {
this.print(node.id);
this.print(node.typeParameters, true);
}
function _interfaceish(node) {
var _node$extends;
this.print(node.id);
this.print(node.typeParameters);
if ((_node$extends = node.extends) != null && _node$extends.length) {
this.space();
this.word("extends");
this.space();
this.printList(node.extends);
}
if (node.type === "DeclareClass") {
var _node$mixins, _node$implements;
if ((_node$mixins = node.mixins) != null && _node$mixins.length) {
this.space();
this.word("mixins");
this.space();
this.printList(node.mixins);
}
if ((_node$implements = node.implements) != null && _node$implements.length) {
this.space();
this.word("implements");
this.space();
this.printList(node.implements);
}
}
this.space();
this.print(node.body);
}
function _variance(node) {
var _node$variance;
const kind = (_node$variance = node.variance) == null ? void 0 : _node$variance.kind;
if (kind != null) {
if (kind === "plus") {
this.tokenChar(43);
} else if (kind === "minus") {
this.tokenChar(45);
}
}
}
function InterfaceDeclaration(node) {
this.word("interface");
this.space();
this._interfaceish(node);
}
function andSeparator() {
this.space();
this.tokenChar(38);
this.space();
}
function InterfaceTypeAnnotation(node) {
var _node$extends2;
this.word("interface");
if ((_node$extends2 = node.extends) != null && _node$extends2.length) {
this.space();
this.word("extends");
this.space();
this.printList(node.extends);
}
this.space();
this.print(node.body);
}
function IntersectionTypeAnnotation(node) {
this.printJoin(node.types, {
separator: andSeparator
});
}
function MixedTypeAnnotation() {
this.word("mixed");
}
function EmptyTypeAnnotation() {
this.word("empty");
}
function NullableTypeAnnotation(node) {
this.tokenChar(63);
this.print(node.typeAnnotation);
}
function NumberTypeAnnotation() {
this.word("number");
}
function StringTypeAnnotation() {
this.word("string");
}
function ThisTypeAnnotation() {
this.word("this");
}
function TupleTypeAnnotation(node) {
this.tokenChar(91);
this.printList(node.types);
this.tokenChar(93);
}
function TypeofTypeAnnotation(node) {
this.word("typeof");
this.space();
this.print(node.argument);
}
function TypeAlias(node) {
this.word("type");
this.space();
this.print(node.id);
this.print(node.typeParameters);
this.space();
this.tokenChar(61);
this.space();
this.print(node.right);
this.semicolon();
}
function TypeAnnotation(node, parent) {
this.tokenChar(58);
this.space();
if (parent.type === "ArrowFunctionExpression") {
this.tokenContext |= _index.TokenContext.arrowFlowReturnType;
} else if (node.optional) {
this.tokenChar(63);
}
this.print(node.typeAnnotation);
}
function TypeParameterInstantiation(node) {
this.tokenChar(60);
this.printList(node.params, {});
this.tokenChar(62);
}
function TypeParameter(node) {
this._variance(node);
this.word(node.name);
if (node.bound) {
this.print(node.bound);
}
if (node.default) {
this.space();
this.tokenChar(61);
this.space();
this.print(node.default);
}
}
function OpaqueType(node) {
this.word("opaque");
this.space();
this.word("type");
this.space();
this.print(node.id);
this.print(node.typeParameters);
if (node.supertype) {
this.tokenChar(58);
this.space();
this.print(node.supertype);
}
if (node.impltype) {
this.space();
this.tokenChar(61);
this.space();
this.print(node.impltype);
}
this.semicolon();
}
function ObjectTypeAnnotation(node) {
if (node.exact) {
this.token("{|");
} else {
this.tokenChar(123);
}
const props = [...node.properties, ...(node.callProperties || []), ...(node.indexers || []), ...(node.internalSlots || [])];
if (props.length) {
this.newline();
this.space();
this.printJoin(props, {
addNewlines(leading) {
if (leading && !props[0]) return 1;
},
indent: true,
statement: true,
iterator: () => {
if (props.length !== 1 || node.inexact) {
this.tokenChar(44);
this.space();
}
}
});
this.space();
}
if (node.inexact) {
this.indent();
this.token("...");
if (props.length) {
this.newline();
}
this.dedent();
}
if (node.exact) {
this.token("|}");
} else {
this.tokenChar(125);
}
}
function ObjectTypeInternalSlot(node) {
if (node.static) {
this.word("static");
this.space();
}
this.tokenChar(91);
this.tokenChar(91);
this.print(node.id);
this.tokenChar(93);
this.tokenChar(93);
if (node.optional) this.tokenChar(63);
if (!node.method) {
this.tokenChar(58);
this.space();
}
this.print(node.value);
}
function ObjectTypeCallProperty(node) {
if (node.static) {
this.word("static");
this.space();
}
this.print(node.value);
}
function ObjectTypeIndexer(node) {
if (node.static) {
this.word("static");
this.space();
}
this._variance(node);
this.tokenChar(91);
if (node.id) {
this.print(node.id);
this.tokenChar(58);
this.space();
}
this.print(node.key);
this.tokenChar(93);
this.tokenChar(58);
this.space();
this.print(node.value);
}
function ObjectTypeProperty(node) {
if (node.proto) {
this.word("proto");
this.space();
}
if (node.static) {
this.word("static");
this.space();
}
if (node.kind === "get" || node.kind === "set") {
this.word(node.kind);
this.space();
}
this._variance(node);
this.print(node.key);
if (node.optional) this.tokenChar(63);
if (!node.method) {
this.tokenChar(58);
this.space();
}
this.print(node.value);
}
function ObjectTypeSpreadProperty(node) {
this.token("...");
this.print(node.argument);
}
function QualifiedTypeIdentifier(node) {
this.print(node.qualification);
this.tokenChar(46);
this.print(node.id);
}
function SymbolTypeAnnotation() {
this.word("symbol");
}
function orSeparator() {
this.space();
this.tokenChar(124);
this.space();
}
function UnionTypeAnnotation(node) {
this.printJoin(node.types, {
separator: orSeparator
});
}
function TypeCastExpression(node) {
this.tokenChar(40);
this.print(node.expression);
this.print(node.typeAnnotation);
this.tokenChar(41);
}
function Variance(node) {
if (node.kind === "plus") {
this.tokenChar(43);
} else {
this.tokenChar(45);
}
}
function VoidTypeAnnotation() {
this.word("void");
}
function IndexedAccessType(node) {
this.print(node.objectType, true);
this.tokenChar(91);
this.print(node.indexType);
this.tokenChar(93);
}
function OptionalIndexedAccessType(node) {
this.print(node.objectType);
if (node.optional) {
this.token("?.");
}
this.tokenChar(91);
this.print(node.indexType);
this.tokenChar(93);
}
//# sourceMappingURL=flow.js.map

File diff suppressed because one or more lines are too long

128
node_modules/@babel/generator/lib/generators/index.js generated vendored Normal file
View File

@@ -0,0 +1,128 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _templateLiterals = require("./template-literals.js");
Object.keys(_templateLiterals).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _templateLiterals[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _templateLiterals[key];
}
});
});
var _expressions = require("./expressions.js");
Object.keys(_expressions).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _expressions[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _expressions[key];
}
});
});
var _statements = require("./statements.js");
Object.keys(_statements).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _statements[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _statements[key];
}
});
});
var _classes = require("./classes.js");
Object.keys(_classes).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _classes[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _classes[key];
}
});
});
var _methods = require("./methods.js");
Object.keys(_methods).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _methods[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _methods[key];
}
});
});
var _modules = require("./modules.js");
Object.keys(_modules).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _modules[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _modules[key];
}
});
});
var _types = require("./types.js");
Object.keys(_types).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _types[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _types[key];
}
});
});
var _flow = require("./flow.js");
Object.keys(_flow).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _flow[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _flow[key];
}
});
});
var _base = require("./base.js");
Object.keys(_base).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _base[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _base[key];
}
});
});
var _jsx = require("./jsx.js");
Object.keys(_jsx).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _jsx[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _jsx[key];
}
});
});
var _typescript = require("./typescript.js");
Object.keys(_typescript).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _typescript[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _typescript[key];
}
});
});
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["_templateLiterals","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_expressions","_statements","_classes","_methods","_modules","_types","_flow","_base","_jsx","_typescript"],"sources":["../../src/generators/index.ts"],"sourcesContent":["export * from \"./template-literals.ts\";\nexport * from \"./expressions.ts\";\nexport * from \"./statements.ts\";\nexport * from \"./classes.ts\";\nexport * from \"./methods.ts\";\nexport * from \"./modules.ts\";\nexport * from \"./types.ts\";\nexport * from \"./flow.ts\";\nexport * from \"./base.ts\";\nexport * from \"./jsx.ts\";\nexport * from \"./typescript.ts\";\n"],"mappings":";;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,iBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,iBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,iBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,YAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,YAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,YAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,YAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,WAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,WAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,WAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,WAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,QAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,QAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,QAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,QAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,QAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,QAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,QAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,QAAA,CAAAR,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,QAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,QAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAS,QAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAK,QAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,MAAA,GAAAd,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAY,MAAA,EAAAX,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAU,MAAA,CAAAV,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAM,MAAA,CAAAV,GAAA;IAAA;EAAA;AAAA;AACA,IAAAW,KAAA,GAAAf,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAa,KAAA,EAAAZ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAW,KAAA,CAAAX,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAO,KAAA,CAAAX,GAAA;IAAA;EAAA;AAAA;AACA,IAAAY,KAAA,GAAAhB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAc,KAAA,EAAAb,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAY,KAAA,CAAAZ,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAQ,KAAA,CAAAZ,GAAA;IAAA;EAAA;AAAA;AACA,IAAAa,IAAA,GAAAjB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAe,IAAA,EAAAd,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAa,IAAA,CAAAb,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAS,IAAA,CAAAb,GAAA;IAAA;EAAA;AAAA;AACA,IAAAc,WAAA,GAAAlB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAgB,WAAA,EAAAf,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAc,WAAA,CAAAd,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAU,WAAA,CAAAd,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}

123
node_modules/@babel/generator/lib/generators/jsx.js generated vendored Normal file
View File

@@ -0,0 +1,123 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.JSXAttribute = JSXAttribute;
exports.JSXClosingElement = JSXClosingElement;
exports.JSXClosingFragment = JSXClosingFragment;
exports.JSXElement = JSXElement;
exports.JSXEmptyExpression = JSXEmptyExpression;
exports.JSXExpressionContainer = JSXExpressionContainer;
exports.JSXFragment = JSXFragment;
exports.JSXIdentifier = JSXIdentifier;
exports.JSXMemberExpression = JSXMemberExpression;
exports.JSXNamespacedName = JSXNamespacedName;
exports.JSXOpeningElement = JSXOpeningElement;
exports.JSXOpeningFragment = JSXOpeningFragment;
exports.JSXSpreadAttribute = JSXSpreadAttribute;
exports.JSXSpreadChild = JSXSpreadChild;
exports.JSXText = JSXText;
function JSXAttribute(node) {
this.print(node.name);
if (node.value) {
this.tokenChar(61);
this.print(node.value);
}
}
function JSXIdentifier(node) {
this.word(node.name);
}
function JSXNamespacedName(node) {
this.print(node.namespace);
this.tokenChar(58);
this.print(node.name);
}
function JSXMemberExpression(node) {
this.print(node.object);
this.tokenChar(46);
this.print(node.property);
}
function JSXSpreadAttribute(node) {
this.tokenChar(123);
this.token("...");
this.print(node.argument);
this.rightBrace(node);
}
function JSXExpressionContainer(node) {
this.tokenChar(123);
this.print(node.expression);
this.rightBrace(node);
}
function JSXSpreadChild(node) {
this.tokenChar(123);
this.token("...");
this.print(node.expression);
this.rightBrace(node);
}
function JSXText(node) {
const raw = this.getPossibleRaw(node);
if (raw !== undefined) {
this.token(raw, true);
} else {
this.token(node.value, true);
}
}
function JSXElement(node) {
const open = node.openingElement;
this.print(open);
if (open.selfClosing) return;
this.indent();
for (const child of node.children) {
this.print(child);
}
this.dedent();
this.print(node.closingElement);
}
function spaceSeparator() {
this.space();
}
function JSXOpeningElement(node) {
this.tokenChar(60);
this.print(node.name);
this.print(node.typeParameters);
if (node.attributes.length > 0) {
this.space();
this.printJoin(node.attributes, {
separator: spaceSeparator
});
}
if (node.selfClosing) {
this.space();
this.token("/>");
} else {
this.tokenChar(62);
}
}
function JSXClosingElement(node) {
this.token("</");
this.print(node.name);
this.tokenChar(62);
}
function JSXEmptyExpression() {
this.printInnerComments();
}
function JSXFragment(node) {
this.print(node.openingFragment);
this.indent();
for (const child of node.children) {
this.print(child);
}
this.dedent();
this.print(node.closingFragment);
}
function JSXOpeningFragment() {
this.tokenChar(60);
this.tokenChar(62);
}
function JSXClosingFragment() {
this.token("</");
this.tokenChar(62);
}
//# sourceMappingURL=jsx.js.map

File diff suppressed because one or more lines are too long

177
node_modules/@babel/generator/lib/generators/methods.js generated vendored Normal file
View File

@@ -0,0 +1,177 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ArrowFunctionExpression = ArrowFunctionExpression;
exports.FunctionDeclaration = exports.FunctionExpression = FunctionExpression;
exports._functionHead = _functionHead;
exports._methodHead = _methodHead;
exports._param = _param;
exports._parameters = _parameters;
exports._params = _params;
exports._predicate = _predicate;
var _t = require("@babel/types");
var _index = require("../node/index.js");
const {
isIdentifier
} = _t;
function _params(node, idNode, parentNode) {
this.print(node.typeParameters);
const nameInfo = _getFuncIdName.call(this, idNode, parentNode);
if (nameInfo) {
this.sourceIdentifierName(nameInfo.name, nameInfo.pos);
}
this.tokenChar(40);
this._parameters(node.params);
this.tokenChar(41);
const noLineTerminator = node.type === "ArrowFunctionExpression";
this.print(node.returnType, noLineTerminator);
this._noLineTerminator = noLineTerminator;
}
function _parameters(parameters) {
const exit = this.enterDelimited();
const paramLength = parameters.length;
for (let i = 0; i < paramLength; i++) {
this._param(parameters[i]);
if (i < parameters.length - 1) {
this.tokenChar(44);
this.space();
}
}
exit();
}
function _param(parameter) {
this.printJoin(parameter.decorators);
this.print(parameter);
if (parameter.optional) {
this.tokenChar(63);
}
this.print(parameter.typeAnnotation);
}
function _methodHead(node) {
const kind = node.kind;
const key = node.key;
if (kind === "get" || kind === "set") {
this.word(kind);
this.space();
}
if (node.async) {
this.word("async", true);
this.space();
}
if (kind === "method" || kind === "init") {
if (node.generator) {
this.tokenChar(42);
}
}
if (node.computed) {
this.tokenChar(91);
this.print(key);
this.tokenChar(93);
} else {
this.print(key);
}
if (node.optional) {
this.tokenChar(63);
}
this._params(node, node.computed && node.key.type !== "StringLiteral" ? undefined : node.key, undefined);
}
function _predicate(node, noLineTerminatorAfter) {
if (node.predicate) {
if (!node.returnType) {
this.tokenChar(58);
}
this.space();
this.print(node.predicate, noLineTerminatorAfter);
}
}
function _functionHead(node, parent) {
if (node.async) {
this.word("async");
this._endsWithInnerRaw = false;
this.space();
}
this.word("function");
if (node.generator) {
this._endsWithInnerRaw = false;
this.tokenChar(42);
}
this.space();
if (node.id) {
this.print(node.id);
}
this._params(node, node.id, parent);
if (node.type !== "TSDeclareFunction") {
this._predicate(node);
}
}
function FunctionExpression(node, parent) {
this._functionHead(node, parent);
this.space();
this.print(node.body);
}
function ArrowFunctionExpression(node, parent) {
if (node.async) {
this.word("async", true);
this.space();
}
let firstParam;
if (!this.format.retainLines && node.params.length === 1 && isIdentifier(firstParam = node.params[0]) && !hasTypesOrComments(node, firstParam)) {
this.print(firstParam, true);
} else {
this._params(node, undefined, parent);
}
this._predicate(node, true);
this.space();
this.printInnerComments();
this.token("=>");
this.space();
this.tokenContext |= _index.TokenContext.arrowBody;
this.print(node.body);
}
function hasTypesOrComments(node, param) {
var _param$leadingComment, _param$trailingCommen;
return !!(node.typeParameters || node.returnType || node.predicate || param.typeAnnotation || param.optional || (_param$leadingComment = param.leadingComments) != null && _param$leadingComment.length || (_param$trailingCommen = param.trailingComments) != null && _param$trailingCommen.length);
}
function _getFuncIdName(idNode, parent) {
let id = idNode;
if (!id && parent) {
const parentType = parent.type;
if (parentType === "VariableDeclarator") {
id = parent.id;
} else if (parentType === "AssignmentExpression" || parentType === "AssignmentPattern") {
id = parent.left;
} else if (parentType === "ObjectProperty" || parentType === "ClassProperty") {
if (!parent.computed || parent.key.type === "StringLiteral") {
id = parent.key;
}
} else if (parentType === "ClassPrivateProperty" || parentType === "ClassAccessorProperty") {
id = parent.key;
}
}
if (!id) return;
let nameInfo;
if (id.type === "Identifier") {
var _id$loc, _id$loc2;
nameInfo = {
pos: (_id$loc = id.loc) == null ? void 0 : _id$loc.start,
name: ((_id$loc2 = id.loc) == null ? void 0 : _id$loc2.identifierName) || id.name
};
} else if (id.type === "PrivateName") {
var _id$loc3;
nameInfo = {
pos: (_id$loc3 = id.loc) == null ? void 0 : _id$loc3.start,
name: "#" + id.id.name
};
} else if (id.type === "StringLiteral") {
var _id$loc4;
nameInfo = {
pos: (_id$loc4 = id.loc) == null ? void 0 : _id$loc4.start,
name: id.value
};
}
return nameInfo;
}
//# sourceMappingURL=methods.js.map

File diff suppressed because one or more lines are too long

276
node_modules/@babel/generator/lib/generators/modules.js generated vendored Normal file
View File

@@ -0,0 +1,276 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ExportAllDeclaration = ExportAllDeclaration;
exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
exports.ExportDefaultSpecifier = ExportDefaultSpecifier;
exports.ExportNamedDeclaration = ExportNamedDeclaration;
exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier;
exports.ExportSpecifier = ExportSpecifier;
exports.ImportAttribute = ImportAttribute;
exports.ImportDeclaration = ImportDeclaration;
exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
exports.ImportExpression = ImportExpression;
exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
exports.ImportSpecifier = ImportSpecifier;
exports._printAttributes = _printAttributes;
var _t = require("@babel/types");
var _index = require("../node/index.js");
const {
isClassDeclaration,
isExportDefaultSpecifier,
isExportNamespaceSpecifier,
isImportDefaultSpecifier,
isImportNamespaceSpecifier,
isStatement
} = _t;
function ImportSpecifier(node) {
if (node.importKind === "type" || node.importKind === "typeof") {
this.word(node.importKind);
this.space();
}
this.print(node.imported);
if (node.local && node.local.name !== node.imported.name) {
this.space();
this.word("as");
this.space();
this.print(node.local);
}
}
function ImportDefaultSpecifier(node) {
this.print(node.local);
}
function ExportDefaultSpecifier(node) {
this.print(node.exported);
}
function ExportSpecifier(node) {
if (node.exportKind === "type") {
this.word("type");
this.space();
}
this.print(node.local);
if (node.exported && node.local.name !== node.exported.name) {
this.space();
this.word("as");
this.space();
this.print(node.exported);
}
}
function ExportNamespaceSpecifier(node) {
this.tokenChar(42);
this.space();
this.word("as");
this.space();
this.print(node.exported);
}
let warningShown = false;
function _printAttributes(node) {
const {
importAttributesKeyword
} = this.format;
const {
attributes,
assertions
} = node;
if (attributes && !importAttributesKeyword && !warningShown) {
warningShown = true;
console.warn(`\
You are using import attributes, without specifying the desired output syntax.
Please specify the "importAttributesKeyword" generator option, whose value can be one of:
- "with" : \`import { a } from "b" with { type: "json" };\`
- "assert" : \`import { a } from "b" assert { type: "json" };\`
- "with-legacy" : \`import { a } from "b" with type: "json";\`
`);
}
const useAssertKeyword = importAttributesKeyword === "assert" || !importAttributesKeyword && assertions;
this.word(useAssertKeyword ? "assert" : "with");
this.space();
if (!useAssertKeyword && importAttributesKeyword !== "with") {
this.printList(attributes || assertions);
return;
}
this.tokenChar(123);
this.space();
this.printList(attributes || assertions);
this.space();
this.tokenChar(125);
}
function ExportAllDeclaration(node) {
var _node$attributes, _node$assertions;
this.word("export");
this.space();
if (node.exportKind === "type") {
this.word("type");
this.space();
}
this.tokenChar(42);
this.space();
this.word("from");
this.space();
if ((_node$attributes = node.attributes) != null && _node$attributes.length || (_node$assertions = node.assertions) != null && _node$assertions.length) {
this.print(node.source, true);
this.space();
this._printAttributes(node);
} else {
this.print(node.source);
}
this.semicolon();
}
function maybePrintDecoratorsBeforeExport(printer, node) {
if (isClassDeclaration(node.declaration) && printer._shouldPrintDecoratorsBeforeExport(node)) {
printer.printJoin(node.declaration.decorators);
}
}
function ExportNamedDeclaration(node) {
maybePrintDecoratorsBeforeExport(this, node);
this.word("export");
this.space();
if (node.declaration) {
const declar = node.declaration;
this.print(declar);
if (!isStatement(declar)) this.semicolon();
} else {
if (node.exportKind === "type") {
this.word("type");
this.space();
}
const specifiers = node.specifiers.slice(0);
let hasSpecial = false;
for (;;) {
const first = specifiers[0];
if (isExportDefaultSpecifier(first) || isExportNamespaceSpecifier(first)) {
hasSpecial = true;
this.print(specifiers.shift());
if (specifiers.length) {
this.tokenChar(44);
this.space();
}
} else {
break;
}
}
if (specifiers.length || !specifiers.length && !hasSpecial) {
this.tokenChar(123);
if (specifiers.length) {
this.space();
this.printList(specifiers);
this.space();
}
this.tokenChar(125);
}
if (node.source) {
var _node$attributes2, _node$assertions2;
this.space();
this.word("from");
this.space();
if ((_node$attributes2 = node.attributes) != null && _node$attributes2.length || (_node$assertions2 = node.assertions) != null && _node$assertions2.length) {
this.print(node.source, true);
this.space();
this._printAttributes(node);
} else {
this.print(node.source);
}
}
this.semicolon();
}
}
function ExportDefaultDeclaration(node) {
maybePrintDecoratorsBeforeExport(this, node);
this.word("export");
this.noIndentInnerCommentsHere();
this.space();
this.word("default");
this.space();
this.tokenContext |= _index.TokenContext.exportDefault;
const declar = node.declaration;
this.print(declar);
if (!isStatement(declar)) this.semicolon();
}
function ImportDeclaration(node) {
var _node$attributes3, _node$assertions3;
this.word("import");
this.space();
const isTypeKind = node.importKind === "type" || node.importKind === "typeof";
if (isTypeKind) {
this.noIndentInnerCommentsHere();
this.word(node.importKind);
this.space();
} else if (node.module) {
this.noIndentInnerCommentsHere();
this.word("module");
this.space();
} else if (node.phase) {
this.noIndentInnerCommentsHere();
this.word(node.phase);
this.space();
}
const specifiers = node.specifiers.slice(0);
const hasSpecifiers = !!specifiers.length;
while (hasSpecifiers) {
const first = specifiers[0];
if (isImportDefaultSpecifier(first) || isImportNamespaceSpecifier(first)) {
this.print(specifiers.shift());
if (specifiers.length) {
this.tokenChar(44);
this.space();
}
} else {
break;
}
}
if (specifiers.length) {
this.tokenChar(123);
this.space();
this.printList(specifiers);
this.space();
this.tokenChar(125);
} else if (isTypeKind && !hasSpecifiers) {
this.tokenChar(123);
this.tokenChar(125);
}
if (hasSpecifiers || isTypeKind) {
this.space();
this.word("from");
this.space();
}
if ((_node$attributes3 = node.attributes) != null && _node$attributes3.length || (_node$assertions3 = node.assertions) != null && _node$assertions3.length) {
this.print(node.source, true);
this.space();
this._printAttributes(node);
} else {
this.print(node.source);
}
this.semicolon();
}
function ImportAttribute(node) {
this.print(node.key);
this.tokenChar(58);
this.space();
this.print(node.value);
}
function ImportNamespaceSpecifier(node) {
this.tokenChar(42);
this.space();
this.word("as");
this.space();
this.print(node.local);
}
function ImportExpression(node) {
this.word("import");
if (node.phase) {
this.tokenChar(46);
this.word(node.phase);
}
this.tokenChar(40);
this.print(node.source);
if (node.options != null) {
this.tokenChar(44);
this.space();
this.print(node.options);
}
this.tokenChar(41);
}
//# sourceMappingURL=modules.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,290 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BreakStatement = BreakStatement;
exports.CatchClause = CatchClause;
exports.ContinueStatement = ContinueStatement;
exports.DebuggerStatement = DebuggerStatement;
exports.DoWhileStatement = DoWhileStatement;
exports.ForOfStatement = exports.ForInStatement = void 0;
exports.ForStatement = ForStatement;
exports.IfStatement = IfStatement;
exports.LabeledStatement = LabeledStatement;
exports.ReturnStatement = ReturnStatement;
exports.SwitchCase = SwitchCase;
exports.SwitchStatement = SwitchStatement;
exports.ThrowStatement = ThrowStatement;
exports.TryStatement = TryStatement;
exports.VariableDeclaration = VariableDeclaration;
exports.VariableDeclarator = VariableDeclarator;
exports.WhileStatement = WhileStatement;
exports.WithStatement = WithStatement;
var _t = require("@babel/types");
var _index = require("../node/index.js");
const {
isFor,
isForStatement,
isIfStatement,
isStatement
} = _t;
function WithStatement(node) {
this.word("with");
this.space();
this.tokenChar(40);
this.print(node.object);
this.tokenChar(41);
this.printBlock(node);
}
function IfStatement(node) {
this.word("if");
this.space();
this.tokenChar(40);
this.print(node.test);
this.tokenChar(41);
this.space();
const needsBlock = node.alternate && isIfStatement(getLastStatement(node.consequent));
if (needsBlock) {
this.tokenChar(123);
this.newline();
this.indent();
}
this.printAndIndentOnComments(node.consequent);
if (needsBlock) {
this.dedent();
this.newline();
this.tokenChar(125);
}
if (node.alternate) {
if (this.endsWith(125)) this.space();
this.word("else");
this.space();
this.printAndIndentOnComments(node.alternate);
}
}
function getLastStatement(statement) {
const {
body
} = statement;
if (isStatement(body) === false) {
return statement;
}
return getLastStatement(body);
}
function ForStatement(node) {
this.word("for");
this.space();
this.tokenChar(40);
{
const exit = this.enterForStatementInit();
this.tokenContext |= _index.TokenContext.forHead;
this.print(node.init);
exit();
}
this.tokenChar(59);
if (node.test) {
this.space();
this.print(node.test);
}
this.tokenChar(59);
if (node.update) {
this.space();
this.print(node.update);
}
this.tokenChar(41);
this.printBlock(node);
}
function WhileStatement(node) {
this.word("while");
this.space();
this.tokenChar(40);
this.print(node.test);
this.tokenChar(41);
this.printBlock(node);
}
function ForXStatement(node) {
this.word("for");
this.space();
const isForOf = node.type === "ForOfStatement";
if (isForOf && node.await) {
this.word("await");
this.space();
}
this.noIndentInnerCommentsHere();
this.tokenChar(40);
{
const exit = isForOf ? null : this.enterForStatementInit();
this.tokenContext |= isForOf ? _index.TokenContext.forOfHead : _index.TokenContext.forInHead;
this.print(node.left);
exit == null || exit();
}
this.space();
this.word(isForOf ? "of" : "in");
this.space();
this.print(node.right);
this.tokenChar(41);
this.printBlock(node);
}
const ForInStatement = exports.ForInStatement = ForXStatement;
const ForOfStatement = exports.ForOfStatement = ForXStatement;
function DoWhileStatement(node) {
this.word("do");
this.space();
this.print(node.body);
this.space();
this.word("while");
this.space();
this.tokenChar(40);
this.print(node.test);
this.tokenChar(41);
this.semicolon();
}
function printStatementAfterKeyword(printer, node) {
if (node) {
printer.space();
printer.printTerminatorless(node);
}
printer.semicolon();
}
function BreakStatement(node) {
this.word("break");
printStatementAfterKeyword(this, node.label);
}
function ContinueStatement(node) {
this.word("continue");
printStatementAfterKeyword(this, node.label);
}
function ReturnStatement(node) {
this.word("return");
printStatementAfterKeyword(this, node.argument);
}
function ThrowStatement(node) {
this.word("throw");
printStatementAfterKeyword(this, node.argument);
}
function LabeledStatement(node) {
this.print(node.label);
this.tokenChar(58);
this.space();
this.print(node.body);
}
function TryStatement(node) {
this.word("try");
this.space();
this.print(node.block);
this.space();
if (node.handlers) {
this.print(node.handlers[0]);
} else {
this.print(node.handler);
}
if (node.finalizer) {
this.space();
this.word("finally");
this.space();
this.print(node.finalizer);
}
}
function CatchClause(node) {
this.word("catch");
this.space();
if (node.param) {
this.tokenChar(40);
this.print(node.param);
this.print(node.param.typeAnnotation);
this.tokenChar(41);
this.space();
}
this.print(node.body);
}
function SwitchStatement(node) {
this.word("switch");
this.space();
this.tokenChar(40);
this.print(node.discriminant);
this.tokenChar(41);
this.space();
this.tokenChar(123);
this.printSequence(node.cases, {
indent: true,
addNewlines(leading, cas) {
if (!leading && node.cases[node.cases.length - 1] === cas) return -1;
}
});
this.rightBrace(node);
}
function SwitchCase(node) {
if (node.test) {
this.word("case");
this.space();
this.print(node.test);
this.tokenChar(58);
} else {
this.word("default");
this.tokenChar(58);
}
if (node.consequent.length) {
this.newline();
this.printSequence(node.consequent, {
indent: true
});
}
}
function DebuggerStatement() {
this.word("debugger");
this.semicolon();
}
function VariableDeclaration(node, parent) {
if (node.declare) {
this.word("declare");
this.space();
}
const {
kind
} = node;
if (kind === "await using") {
this.word("await");
this.space();
this.word("using", true);
} else {
this.word(kind, kind === "using");
}
this.space();
let hasInits = false;
if (!isFor(parent)) {
for (const declar of node.declarations) {
if (declar.init) {
hasInits = true;
}
}
}
this.printList(node.declarations, {
separator: hasInits ? function () {
this.tokenChar(44);
this.newline();
} : undefined,
indent: node.declarations.length > 1 ? true : false
});
if (isFor(parent)) {
if (isForStatement(parent)) {
if (parent.init === node) return;
} else {
if (parent.left === node) return;
}
}
this.semicolon();
}
function VariableDeclarator(node) {
this.print(node.id);
if (node.definite) this.tokenChar(33);
this.print(node.id.typeAnnotation);
if (node.init) {
this.space();
this.tokenChar(61);
this.space();
this.print(node.init);
}
}
//# sourceMappingURL=statements.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TaggedTemplateExpression = TaggedTemplateExpression;
exports.TemplateElement = TemplateElement;
exports.TemplateLiteral = TemplateLiteral;
function TaggedTemplateExpression(node) {
this.print(node.tag);
this.print(node.typeParameters);
this.print(node.quasi);
}
function TemplateElement() {
throw new Error("TemplateElement printing is handled in TemplateLiteral");
}
function TemplateLiteral(node) {
const quasis = node.quasis;
let partRaw = "`";
for (let i = 0; i < quasis.length; i++) {
partRaw += quasis[i].value.raw;
if (i + 1 < quasis.length) {
this.token(partRaw + "${", true);
this.print(node.expressions[i]);
partRaw = "}";
}
}
this.token(partRaw + "`", true);
}
//# sourceMappingURL=template-literals.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["TaggedTemplateExpression","node","print","tag","typeParameters","quasi","TemplateElement","Error","TemplateLiteral","quasis","partRaw","i","length","value","raw","token","expressions"],"sources":["../../src/generators/template-literals.ts"],"sourcesContent":["import type Printer from \"../printer.ts\";\nimport type * as t from \"@babel/types\";\n\nexport function TaggedTemplateExpression(\n this: Printer,\n node: t.TaggedTemplateExpression,\n) {\n this.print(node.tag);\n this.print(node.typeParameters); // TS\n this.print(node.quasi);\n}\n\nexport function TemplateElement(this: Printer) {\n throw new Error(\"TemplateElement printing is handled in TemplateLiteral\");\n}\n\nexport function TemplateLiteral(this: Printer, node: t.TemplateLiteral) {\n const quasis = node.quasis;\n\n let partRaw = \"`\";\n\n for (let i = 0; i < quasis.length; i++) {\n partRaw += quasis[i].value.raw;\n\n if (i + 1 < quasis.length) {\n this.token(partRaw + \"${\", true);\n this.print(node.expressions[i]);\n partRaw = \"}\";\n }\n }\n\n this.token(partRaw + \"`\", true);\n}\n"],"mappings":";;;;;;;;AAGO,SAASA,wBAAwBA,CAEtCC,IAAgC,EAChC;EACA,IAAI,CAACC,KAAK,CAACD,IAAI,CAACE,GAAG,CAAC;EACpB,IAAI,CAACD,KAAK,CAACD,IAAI,CAACG,cAAc,CAAC;EAC/B,IAAI,CAACF,KAAK,CAACD,IAAI,CAACI,KAAK,CAAC;AACxB;AAEO,SAASC,eAAeA,CAAA,EAAgB;EAC7C,MAAM,IAAIC,KAAK,CAAC,wDAAwD,CAAC;AAC3E;AAEO,SAASC,eAAeA,CAAgBP,IAAuB,EAAE;EACtE,MAAMQ,MAAM,GAAGR,IAAI,CAACQ,MAAM;EAE1B,IAAIC,OAAO,GAAG,GAAG;EAEjB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,MAAM,CAACG,MAAM,EAAED,CAAC,EAAE,EAAE;IACtCD,OAAO,IAAID,MAAM,CAACE,CAAC,CAAC,CAACE,KAAK,CAACC,GAAG;IAE9B,IAAIH,CAAC,GAAG,CAAC,GAAGF,MAAM,CAACG,MAAM,EAAE;MACzB,IAAI,CAACG,KAAK,CAACL,OAAO,GAAG,IAAI,EAAE,IAAI,CAAC;MAChC,IAAI,CAACR,KAAK,CAACD,IAAI,CAACe,WAAW,CAACL,CAAC,CAAC,CAAC;MAC/BD,OAAO,GAAG,GAAG;IACf;EACF;EAEA,IAAI,CAACK,KAAK,CAACL,OAAO,GAAG,GAAG,EAAE,IAAI,CAAC;AACjC","ignoreList":[]}

229
node_modules/@babel/generator/lib/generators/types.js generated vendored Normal file
View File

@@ -0,0 +1,229 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ArgumentPlaceholder = ArgumentPlaceholder;
exports.ArrayPattern = exports.ArrayExpression = ArrayExpression;
exports.BigIntLiteral = BigIntLiteral;
exports.BooleanLiteral = BooleanLiteral;
exports.DecimalLiteral = DecimalLiteral;
exports.Identifier = Identifier;
exports.NullLiteral = NullLiteral;
exports.NumericLiteral = NumericLiteral;
exports.ObjectPattern = exports.ObjectExpression = ObjectExpression;
exports.ObjectMethod = ObjectMethod;
exports.ObjectProperty = ObjectProperty;
exports.PipelineBareFunction = PipelineBareFunction;
exports.PipelinePrimaryTopicReference = PipelinePrimaryTopicReference;
exports.PipelineTopicExpression = PipelineTopicExpression;
exports.RecordExpression = RecordExpression;
exports.RegExpLiteral = RegExpLiteral;
exports.SpreadElement = exports.RestElement = RestElement;
exports.StringLiteral = StringLiteral;
exports.TopicReference = TopicReference;
exports.TupleExpression = TupleExpression;
var _t = require("@babel/types");
var _jsesc = require("jsesc");
const {
isAssignmentPattern,
isIdentifier
} = _t;
function Identifier(node) {
var _node$loc;
this.sourceIdentifierName(((_node$loc = node.loc) == null ? void 0 : _node$loc.identifierName) || node.name);
this.word(node.name);
}
function ArgumentPlaceholder() {
this.tokenChar(63);
}
function RestElement(node) {
this.token("...");
this.print(node.argument);
}
function ObjectExpression(node) {
const props = node.properties;
this.tokenChar(123);
if (props.length) {
const exit = this.enterDelimited();
this.space();
this.printList(props, {
indent: true,
statement: true
});
this.space();
exit();
}
this.sourceWithOffset("end", node.loc, -1);
this.tokenChar(125);
}
function ObjectMethod(node) {
this.printJoin(node.decorators);
this._methodHead(node);
this.space();
this.print(node.body);
}
function ObjectProperty(node) {
this.printJoin(node.decorators);
if (node.computed) {
this.tokenChar(91);
this.print(node.key);
this.tokenChar(93);
} else {
if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) {
this.print(node.value);
return;
}
this.print(node.key);
if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) {
return;
}
}
this.tokenChar(58);
this.space();
this.print(node.value);
}
function ArrayExpression(node) {
const elems = node.elements;
const len = elems.length;
this.tokenChar(91);
const exit = this.enterDelimited();
for (let i = 0; i < elems.length; i++) {
const elem = elems[i];
if (elem) {
if (i > 0) this.space();
this.print(elem);
if (i < len - 1) this.tokenChar(44);
} else {
this.tokenChar(44);
}
}
exit();
this.tokenChar(93);
}
function RecordExpression(node) {
const props = node.properties;
let startToken;
let endToken;
{
if (this.format.recordAndTupleSyntaxType === "bar") {
startToken = "{|";
endToken = "|}";
} else if (this.format.recordAndTupleSyntaxType !== "hash" && this.format.recordAndTupleSyntaxType != null) {
throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);
} else {
startToken = "#{";
endToken = "}";
}
}
this.token(startToken);
if (props.length) {
this.space();
this.printList(props, {
indent: true,
statement: true
});
this.space();
}
this.token(endToken);
}
function TupleExpression(node) {
const elems = node.elements;
const len = elems.length;
let startToken;
let endToken;
{
if (this.format.recordAndTupleSyntaxType === "bar") {
startToken = "[|";
endToken = "|]";
} else if (this.format.recordAndTupleSyntaxType === "hash") {
startToken = "#[";
endToken = "]";
} else {
throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);
}
}
this.token(startToken);
for (let i = 0; i < elems.length; i++) {
const elem = elems[i];
if (elem) {
if (i > 0) this.space();
this.print(elem);
if (i < len - 1) this.tokenChar(44);
}
}
this.token(endToken);
}
function RegExpLiteral(node) {
this.word(`/${node.pattern}/${node.flags}`);
}
function BooleanLiteral(node) {
this.word(node.value ? "true" : "false");
}
function NullLiteral() {
this.word("null");
}
function NumericLiteral(node) {
const raw = this.getPossibleRaw(node);
const opts = this.format.jsescOption;
const value = node.value;
const str = value + "";
if (opts.numbers) {
this.number(_jsesc(value, opts), value);
} else if (raw == null) {
this.number(str, value);
} else if (this.format.minified) {
this.number(raw.length < str.length ? raw : str, value);
} else {
this.number(raw, value);
}
}
function StringLiteral(node) {
const raw = this.getPossibleRaw(node);
if (!this.format.minified && raw !== undefined) {
this.token(raw);
return;
}
const val = _jsesc(node.value, this.format.jsescOption);
this.token(val);
}
function BigIntLiteral(node) {
const raw = this.getPossibleRaw(node);
if (!this.format.minified && raw !== undefined) {
this.word(raw);
return;
}
this.word(node.value + "n");
}
function DecimalLiteral(node) {
const raw = this.getPossibleRaw(node);
if (!this.format.minified && raw !== undefined) {
this.word(raw);
return;
}
this.word(node.value + "m");
}
const validTopicTokenSet = new Set(["^^", "@@", "^", "%", "#"]);
function TopicReference() {
const {
topicToken
} = this.format;
if (validTopicTokenSet.has(topicToken)) {
this.token(topicToken);
} else {
const givenTopicTokenJSON = JSON.stringify(topicToken);
const validTopics = Array.from(validTopicTokenSet, v => JSON.stringify(v));
throw new Error(`The "topicToken" generator option must be one of ` + `${validTopics.join(", ")} (${givenTopicTokenJSON} received instead).`);
}
}
function PipelineTopicExpression(node) {
this.print(node.expression);
}
function PipelineBareFunction(node) {
this.print(node.callee);
}
function PipelinePrimaryTopicReference() {
this.tokenChar(35);
}
//# sourceMappingURL=types.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,692 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TSAnyKeyword = TSAnyKeyword;
exports.TSArrayType = TSArrayType;
exports.TSSatisfiesExpression = exports.TSAsExpression = TSTypeExpression;
exports.TSBigIntKeyword = TSBigIntKeyword;
exports.TSBooleanKeyword = TSBooleanKeyword;
exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration;
exports.TSInterfaceHeritage = exports.TSExpressionWithTypeArguments = exports.TSClassImplements = TSClassImplements;
exports.TSConditionalType = TSConditionalType;
exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration;
exports.TSConstructorType = TSConstructorType;
exports.TSDeclareFunction = TSDeclareFunction;
exports.TSDeclareMethod = TSDeclareMethod;
exports.TSEnumDeclaration = TSEnumDeclaration;
exports.TSEnumMember = TSEnumMember;
exports.TSExportAssignment = TSExportAssignment;
exports.TSExternalModuleReference = TSExternalModuleReference;
exports.TSFunctionType = TSFunctionType;
exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration;
exports.TSImportType = TSImportType;
exports.TSIndexSignature = TSIndexSignature;
exports.TSIndexedAccessType = TSIndexedAccessType;
exports.TSInferType = TSInferType;
exports.TSInstantiationExpression = TSInstantiationExpression;
exports.TSInterfaceBody = TSInterfaceBody;
exports.TSInterfaceDeclaration = TSInterfaceDeclaration;
exports.TSIntersectionType = TSIntersectionType;
exports.TSIntrinsicKeyword = TSIntrinsicKeyword;
exports.TSLiteralType = TSLiteralType;
exports.TSMappedType = TSMappedType;
exports.TSMethodSignature = TSMethodSignature;
exports.TSModuleBlock = TSModuleBlock;
exports.TSModuleDeclaration = TSModuleDeclaration;
exports.TSNamedTupleMember = TSNamedTupleMember;
exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration;
exports.TSNeverKeyword = TSNeverKeyword;
exports.TSNonNullExpression = TSNonNullExpression;
exports.TSNullKeyword = TSNullKeyword;
exports.TSNumberKeyword = TSNumberKeyword;
exports.TSObjectKeyword = TSObjectKeyword;
exports.TSOptionalType = TSOptionalType;
exports.TSParameterProperty = TSParameterProperty;
exports.TSParenthesizedType = TSParenthesizedType;
exports.TSPropertySignature = TSPropertySignature;
exports.TSQualifiedName = TSQualifiedName;
exports.TSRestType = TSRestType;
exports.TSStringKeyword = TSStringKeyword;
exports.TSSymbolKeyword = TSSymbolKeyword;
exports.TSThisType = TSThisType;
exports.TSTupleType = TSTupleType;
exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration;
exports.TSTypeAnnotation = TSTypeAnnotation;
exports.TSTypeAssertion = TSTypeAssertion;
exports.TSTypeLiteral = TSTypeLiteral;
exports.TSTypeOperator = TSTypeOperator;
exports.TSTypeParameter = TSTypeParameter;
exports.TSTypeParameterDeclaration = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation;
exports.TSTypePredicate = TSTypePredicate;
exports.TSTypeQuery = TSTypeQuery;
exports.TSTypeReference = TSTypeReference;
exports.TSUndefinedKeyword = TSUndefinedKeyword;
exports.TSUnionType = TSUnionType;
exports.TSUnknownKeyword = TSUnknownKeyword;
exports.TSVoidKeyword = TSVoidKeyword;
exports.tsPrintClassMemberModifiers = tsPrintClassMemberModifiers;
exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType;
exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName;
exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase;
exports.tsPrintTypeLiteralOrInterfaceBody = tsPrintTypeLiteralOrInterfaceBody;
function TSTypeAnnotation(node) {
this.tokenChar(58);
this.space();
if (node.optional) this.tokenChar(63);
this.print(node.typeAnnotation);
}
function TSTypeParameterInstantiation(node, parent) {
this.tokenChar(60);
this.printList(node.params, {});
if (parent.type === "ArrowFunctionExpression" && node.params.length === 1) {
this.tokenChar(44);
}
this.tokenChar(62);
}
function TSTypeParameter(node) {
if (node.in) {
this.word("in");
this.space();
}
if (node.out) {
this.word("out");
this.space();
}
this.word(node.name);
if (node.constraint) {
this.space();
this.word("extends");
this.space();
this.print(node.constraint);
}
if (node.default) {
this.space();
this.tokenChar(61);
this.space();
this.print(node.default);
}
}
function TSParameterProperty(node) {
if (node.accessibility) {
this.word(node.accessibility);
this.space();
}
if (node.readonly) {
this.word("readonly");
this.space();
}
this._param(node.parameter);
}
function TSDeclareFunction(node, parent) {
if (node.declare) {
this.word("declare");
this.space();
}
this._functionHead(node, parent);
this.semicolon();
}
function TSDeclareMethod(node) {
this._classMethodHead(node);
this.semicolon();
}
function TSQualifiedName(node) {
this.print(node.left);
this.tokenChar(46);
this.print(node.right);
}
function TSCallSignatureDeclaration(node) {
this.tsPrintSignatureDeclarationBase(node);
this.semicolon();
}
function TSConstructSignatureDeclaration(node) {
this.word("new");
this.space();
this.tsPrintSignatureDeclarationBase(node);
this.semicolon();
}
function TSPropertySignature(node) {
const {
readonly
} = node;
if (readonly) {
this.word("readonly");
this.space();
}
this.tsPrintPropertyOrMethodName(node);
this.print(node.typeAnnotation);
this.semicolon();
}
function tsPrintPropertyOrMethodName(node) {
if (node.computed) {
this.tokenChar(91);
}
this.print(node.key);
if (node.computed) {
this.tokenChar(93);
}
if (node.optional) {
this.tokenChar(63);
}
}
function TSMethodSignature(node) {
const {
kind
} = node;
if (kind === "set" || kind === "get") {
this.word(kind);
this.space();
}
this.tsPrintPropertyOrMethodName(node);
this.tsPrintSignatureDeclarationBase(node);
this.semicolon();
}
function TSIndexSignature(node) {
const {
readonly,
static: isStatic
} = node;
if (isStatic) {
this.word("static");
this.space();
}
if (readonly) {
this.word("readonly");
this.space();
}
this.tokenChar(91);
this._parameters(node.parameters);
this.tokenChar(93);
this.print(node.typeAnnotation);
this.semicolon();
}
function TSAnyKeyword() {
this.word("any");
}
function TSBigIntKeyword() {
this.word("bigint");
}
function TSUnknownKeyword() {
this.word("unknown");
}
function TSNumberKeyword() {
this.word("number");
}
function TSObjectKeyword() {
this.word("object");
}
function TSBooleanKeyword() {
this.word("boolean");
}
function TSStringKeyword() {
this.word("string");
}
function TSSymbolKeyword() {
this.word("symbol");
}
function TSVoidKeyword() {
this.word("void");
}
function TSUndefinedKeyword() {
this.word("undefined");
}
function TSNullKeyword() {
this.word("null");
}
function TSNeverKeyword() {
this.word("never");
}
function TSIntrinsicKeyword() {
this.word("intrinsic");
}
function TSThisType() {
this.word("this");
}
function TSFunctionType(node) {
this.tsPrintFunctionOrConstructorType(node);
}
function TSConstructorType(node) {
if (node.abstract) {
this.word("abstract");
this.space();
}
this.word("new");
this.space();
this.tsPrintFunctionOrConstructorType(node);
}
function tsPrintFunctionOrConstructorType(node) {
const {
typeParameters
} = node;
const parameters = node.parameters;
this.print(typeParameters);
this.tokenChar(40);
this._parameters(parameters);
this.tokenChar(41);
this.space();
this.token("=>");
this.space();
const returnType = node.typeAnnotation;
this.print(returnType.typeAnnotation);
}
function TSTypeReference(node) {
this.print(node.typeName, true);
this.print(node.typeParameters, true);
}
function TSTypePredicate(node) {
if (node.asserts) {
this.word("asserts");
this.space();
}
this.print(node.parameterName);
if (node.typeAnnotation) {
this.space();
this.word("is");
this.space();
this.print(node.typeAnnotation.typeAnnotation);
}
}
function TSTypeQuery(node) {
this.word("typeof");
this.space();
this.print(node.exprName);
if (node.typeParameters) {
this.print(node.typeParameters);
}
}
function TSTypeLiteral(node) {
this.tsPrintTypeLiteralOrInterfaceBody(node.members, node);
}
function tsPrintTypeLiteralOrInterfaceBody(members, node) {
tsPrintBraced(this, members, node);
}
function tsPrintBraced(printer, members, node) {
printer.token("{");
if (members.length) {
printer.indent();
printer.newline();
for (const member of members) {
printer.print(member);
printer.newline();
}
printer.dedent();
}
printer.rightBrace(node);
}
function TSArrayType(node) {
this.print(node.elementType, true);
this.tokenChar(91);
this.tokenChar(93);
}
function TSTupleType(node) {
this.tokenChar(91);
this.printList(node.elementTypes);
this.tokenChar(93);
}
function TSOptionalType(node) {
this.print(node.typeAnnotation);
this.tokenChar(63);
}
function TSRestType(node) {
this.token("...");
this.print(node.typeAnnotation);
}
function TSNamedTupleMember(node) {
this.print(node.label);
if (node.optional) this.tokenChar(63);
this.tokenChar(58);
this.space();
this.print(node.elementType);
}
function TSUnionType(node) {
tsPrintUnionOrIntersectionType(this, node, "|");
}
function TSIntersectionType(node) {
tsPrintUnionOrIntersectionType(this, node, "&");
}
function tsPrintUnionOrIntersectionType(printer, node, sep) {
printer.printJoin(node.types, {
separator() {
this.space();
this.token(sep);
this.space();
}
});
}
function TSConditionalType(node) {
this.print(node.checkType);
this.space();
this.word("extends");
this.space();
this.print(node.extendsType);
this.space();
this.tokenChar(63);
this.space();
this.print(node.trueType);
this.space();
this.tokenChar(58);
this.space();
this.print(node.falseType);
}
function TSInferType(node) {
this.word("infer");
this.print(node.typeParameter);
}
function TSParenthesizedType(node) {
this.tokenChar(40);
this.print(node.typeAnnotation);
this.tokenChar(41);
}
function TSTypeOperator(node) {
this.word(node.operator);
this.space();
this.print(node.typeAnnotation);
}
function TSIndexedAccessType(node) {
this.print(node.objectType, true);
this.tokenChar(91);
this.print(node.indexType);
this.tokenChar(93);
}
function TSMappedType(node) {
const {
nameType,
optional,
readonly,
typeAnnotation
} = node;
this.tokenChar(123);
this.space();
if (readonly) {
tokenIfPlusMinus(this, readonly);
this.word("readonly");
this.space();
}
this.tokenChar(91);
{
this.word(node.typeParameter.name);
}
this.space();
this.word("in");
this.space();
{
this.print(node.typeParameter.constraint);
}
if (nameType) {
this.space();
this.word("as");
this.space();
this.print(nameType);
}
this.tokenChar(93);
if (optional) {
tokenIfPlusMinus(this, optional);
this.tokenChar(63);
}
if (typeAnnotation) {
this.tokenChar(58);
this.space();
this.print(typeAnnotation);
}
this.space();
this.tokenChar(125);
}
function tokenIfPlusMinus(self, tok) {
if (tok !== true) {
self.token(tok);
}
}
function TSLiteralType(node) {
this.print(node.literal);
}
function TSClassImplements(node) {
this.print(node.expression);
this.print(node.typeParameters);
}
function TSInterfaceDeclaration(node) {
const {
declare,
id,
typeParameters,
extends: extendz,
body
} = node;
if (declare) {
this.word("declare");
this.space();
}
this.word("interface");
this.space();
this.print(id);
this.print(typeParameters);
if (extendz != null && extendz.length) {
this.space();
this.word("extends");
this.space();
this.printList(extendz);
}
this.space();
this.print(body);
}
function TSInterfaceBody(node) {
this.tsPrintTypeLiteralOrInterfaceBody(node.body, node);
}
function TSTypeAliasDeclaration(node) {
const {
declare,
id,
typeParameters,
typeAnnotation
} = node;
if (declare) {
this.word("declare");
this.space();
}
this.word("type");
this.space();
this.print(id);
this.print(typeParameters);
this.space();
this.tokenChar(61);
this.space();
this.print(typeAnnotation);
this.semicolon();
}
function TSTypeExpression(node) {
const {
type,
expression,
typeAnnotation
} = node;
this.print(expression, true);
this.space();
this.word(type === "TSAsExpression" ? "as" : "satisfies");
this.space();
this.print(typeAnnotation);
}
function TSTypeAssertion(node) {
const {
typeAnnotation,
expression
} = node;
this.tokenChar(60);
this.print(typeAnnotation);
this.tokenChar(62);
this.space();
this.print(expression);
}
function TSInstantiationExpression(node) {
this.print(node.expression);
this.print(node.typeParameters);
}
function TSEnumDeclaration(node) {
const {
declare,
const: isConst,
id,
members
} = node;
if (declare) {
this.word("declare");
this.space();
}
if (isConst) {
this.word("const");
this.space();
}
this.word("enum");
this.space();
this.print(id);
this.space();
tsPrintBraced(this, members, node);
}
function TSEnumMember(node) {
const {
id,
initializer
} = node;
this.print(id);
if (initializer) {
this.space();
this.tokenChar(61);
this.space();
this.print(initializer);
}
this.tokenChar(44);
}
function TSModuleDeclaration(node) {
const {
declare,
id
} = node;
if (declare) {
this.word("declare");
this.space();
}
if (!node.global) {
this.word(id.type === "Identifier" ? "namespace" : "module");
this.space();
}
this.print(id);
if (!node.body) {
this.semicolon();
return;
}
let body = node.body;
while (body.type === "TSModuleDeclaration") {
this.tokenChar(46);
this.print(body.id);
body = body.body;
}
this.space();
this.print(body);
}
function TSModuleBlock(node) {
tsPrintBraced(this, node.body, node);
}
function TSImportType(node) {
const {
argument,
qualifier,
typeParameters
} = node;
this.word("import");
this.tokenChar(40);
this.print(argument);
this.tokenChar(41);
if (qualifier) {
this.tokenChar(46);
this.print(qualifier);
}
if (typeParameters) {
this.print(typeParameters);
}
}
function TSImportEqualsDeclaration(node) {
const {
isExport,
id,
moduleReference
} = node;
if (isExport) {
this.word("export");
this.space();
}
this.word("import");
this.space();
this.print(id);
this.space();
this.tokenChar(61);
this.space();
this.print(moduleReference);
this.semicolon();
}
function TSExternalModuleReference(node) {
this.token("require(");
this.print(node.expression);
this.tokenChar(41);
}
function TSNonNullExpression(node) {
this.print(node.expression);
this.tokenChar(33);
}
function TSExportAssignment(node) {
this.word("export");
this.space();
this.tokenChar(61);
this.space();
this.print(node.expression);
this.semicolon();
}
function TSNamespaceExportDeclaration(node) {
this.word("export");
this.space();
this.word("as");
this.space();
this.word("namespace");
this.space();
this.print(node.id);
this.semicolon();
}
function tsPrintSignatureDeclarationBase(node) {
const {
typeParameters
} = node;
const parameters = node.parameters;
this.print(typeParameters);
this.tokenChar(40);
this._parameters(parameters);
this.tokenChar(41);
const returnType = node.typeAnnotation;
this.print(returnType);
}
function tsPrintClassMemberModifiers(node) {
const isField = node.type === "ClassAccessorProperty" || node.type === "ClassProperty";
if (isField && node.declare) {
this.word("declare");
this.space();
}
if (node.accessibility) {
this.word(node.accessibility);
this.space();
}
if (node.static) {
this.word("static");
this.space();
}
if (node.override) {
this.word("override");
this.space();
}
if (node.abstract) {
this.word("abstract");
this.space();
}
if (isField && node.readonly) {
this.word("readonly");
this.space();
}
}
//# sourceMappingURL=typescript.js.map

Some files were not shown because too many files have changed in this diff Show More