A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
add eml parser to paperless_mail
phail47189643ff07
diff --git a/Pipfile b/Pipfileindex da2644251..debccb323 100644--- a/Pipfile+++ b/Pipfile@@ -54,6 +54,7 @@ zipp = {version = "*", markers = "python_version < '3.9'"}pyzbar = "*"pdf2image = "*"click = "==8.0.4"+bleach = "*"[dev-packages]coveralls = "*"diff --git a/docker/compose/docker-compose.postgres-tika.yml b/docker/compose/docker-compose.postgres-tika.ymlindex c6a72e903..ad856b0fe 100644--- a/docker/compose/docker-compose.postgres-tika.yml+++ b/docker/compose/docker-compose.postgres-tika.yml@@ -82,7 +82,7 @@ services:restart: unless-stoppedcommand:- "gotenberg"- - "--chromium-disable-routes=true"+ - "--chromium-disable-web-security"tika:image: apache/tikadiff --git a/docker/compose/docker-compose.sqlite-tika.arm.yml b/docker/compose/docker-compose.sqlite-tika.arm.ymlindex d6ac848ec..930c66884 100644--- a/docker/compose/docker-compose.sqlite-tika.arm.yml+++ b/docker/compose/docker-compose.sqlite-tika.arm.yml@@ -69,10 +69,11 @@ services:PAPERLESS_TIKA_ENDPOINT: http://tika:9998gotenberg:- image: thecodingmachine/gotenberg+ image: gotenberg/gotenberg:7restart: unless-stopped- environment:- DISABLE_GOOGLE_CHROME: 1+ command:+ - "gotenberg"+ - "--chromium-disable-web-security"tika:image: iwishiwasaneagle/apache-tika-arm@sha256:a78c25ffe57ecb1a194b2859d42a61af46e9e845191512b8f1a4bf90578ffdfddiff --git a/docker/compose/docker-compose.sqlite-tika.yml b/docker/compose/docker-compose.sqlite-tika.ymlindex d9327533e..147f803a1 100644--- a/docker/compose/docker-compose.sqlite-tika.yml+++ b/docker/compose/docker-compose.sqlite-tika.yml@@ -71,7 +71,7 @@ services:restart: unless-stoppedcommand:- "gotenberg"- - "--chromium-disable-routes=true"+ - "--chromium-disable-web-security"tika:image: apache/tikadiff --git a/docs/configuration.rst b/docs/configuration.rstindex 3541f2e07..d4bde7bc8 100644--- a/docs/configuration.rst+++ b/docs/configuration.rst@@ -494,7 +494,7 @@ requires are as follows:restart: unless-stoppedcommand:- "gotenberg"- - "--chromium-disable-routes=true"+ - "--chromium-disable-web-security"tika:image: apache/tikadiff --git a/docs/troubleshooting.rst b/docs/troubleshooting.rstindex 3ae4909de..4e3cada82 100644--- a/docs/troubleshooting.rst+++ b/docs/troubleshooting.rst@@ -129,7 +129,7 @@ If using docker-compose, this is achieved by the following configuration changerestart: unless-stoppedcommand:- "gotenberg"- - "--chromium-disable-routes=true"+ - "--chromium-disable-web-security"- "--api-timeout=60"Permission denied errors in the consumption directorydiff --git a/scripts/start_services.sh b/scripts/start_services.shindex 24e3233cd..bebb5c913 100755--- a/scripts/start_services.sh+++ b/scripts/start_services.sh@@ -2,5 +2,5 @@docker run -p 5432:5432 -e POSTGRES_PASSWORD=password -v paperless_pgdata:/var/lib/postgresql/data -d postgres:13docker run -d -p 6379:6379 redis:latest-docker run -p 3000:3000 -d gotenberg/gotenberg:7+docker run -p 3000:3000 -d gotenberg/gotenberg:7 gotenberg --chromium-disable-web-securitydocker run -p 9998:9998 -d apache/tikadiff --git a/src/paperless_mail/apps.py b/src/paperless_mail/apps.pyindex 1c5d656e0..fa6b1a267 100644--- a/src/paperless_mail/apps.py+++ b/src/paperless_mail/apps.py@@ -1,8 +1,15 @@from django.apps import AppConfigfrom django.utils.translation import gettext_lazy as _+from paperless_mail.signals import mail_consumer_declarationclass PaperlessMailConfig(AppConfig):name = "paperless_mail"verbose_name = _("Paperless mail")++ def ready(self):+ from documents.signals import document_consumer_declaration++ document_consumer_declaration.connect(mail_consumer_declaration)+ AppConfig.ready(self)diff --git a/src/paperless_mail/mail_template/index.html b/src/paperless_mail/mail_template/index.htmlnew file mode 100644index 000000000..a3a01cb3e--- /dev/null+++ b/src/paperless_mail/mail_template/index.html@@ -0,0 +1,56 @@+<!doctype html>+<html>++<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <link href="output.css" rel="stylesheet">+</head>++<body class="bg-white w-screen flex flex-col items-center">+ <div class="container max-w-4xl">+ <!-- Header -->+ <div class="grid gap-x-2 bg-slate-200 p-4">++ <div class="col-start-9 col-span-4 row-start-1 text-right">{{ date }}</div>++ <div class="col-start-1 row-start-1 text-slate-400 text-right">{{ from_label }}</div>+ <div class="col-start-2 col-span-7 row-start-1">{{ from }}</div>++ <div class="col-start-1 row-start-2 text-slate-400 text-right">{{ subject_label }}</div>+ <div class=" col-start-2 col-span-10 row-start-2 font-bold">{{ subject }}</div>++ <div class="col-start-1 row-start-3 text-slate-400 text-right">{{ to_label }}</div>+ <div class="col-start-2 col-span-10 row-start-3 text-sm my-0.5">{{ to }}</div>++ <div class="col-start-1 row-start-4 text-slate-400 text-right">{{ cc_label }}</div>+ <div class="col-start-2 col-span-10 row-start-4 text-sm my-0.5">{{ cc }}</div>++ <div class="col-start-1 row-start-5 text-slate-400 text-right">{{ bcc_label }}</div>+ <div class="col-start-2 col-span-10 row-start-5" text-sm my-0.5>{{ bcc }}</div>++ <div class="col-start-1 row-start-6 text-slate-400 text-right">{{ attachments_label }}</div>+ <div class="col-start-2 col-span-10 row-start-6">{{ attachments }}</div>+ </div>++ <!-- Separator-->+ <div class="border-t border-solid border-b w-full h-[1px] box-content border-black mb-5 bg-slate-200"></div>++ <!-- Content-->+ <div class="w-full break-words">{{ content }} </div>++ <div class="border-t border-solid border-b w-full h-[1px] box-content border-black mb-5 bg-slate-200"></div>+ <iframe src=mail_html.html style="width: 100%;" scrolling="no" id="myIframe" ></iframe>+ </div>+ <script>+ // Selecting the iframe element+ var iframe = document.getElementById("myIframe");++ // Adjusting the iframe height onload event+ iframe.onload = function(){+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';+ }+ </script>+</body>++</html>diff --git a/src/paperless_mail/mail_template/input.css b/src/paperless_mail/mail_template/input.cssnew file mode 100644index 000000000..b5c61c956--- /dev/null+++ b/src/paperless_mail/mail_template/input.css@@ -0,0 +1,3 @@+@tailwind base;+@tailwind components;+@tailwind utilities;diff --git a/src/paperless_mail/mail_template/output.css b/src/paperless_mail/mail_template/output.cssnew file mode 100644index 000000000..fa51c7539--- /dev/null+++ b/src/paperless_mail/mail_template/output.css@@ -0,0 +1,706 @@+/*+! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com+*/++/*+1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)+2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)+*/++*,+::before,+::after {+ box-sizing: border-box;+ /* 1 */+ border-width: 0;+ /* 2 */+ border-style: solid;+ /* 2 */+ border-color: #e5e7eb;+ /* 2 */+}++::before,+::after {+ --tw-content: '';+}++/*+1. Use a consistent sensible line-height in all browsers.+2. Prevent adjustments of font size after orientation changes in iOS.+3. Use a more readable tab size.+4. Use the user's configured `sans` font-family by default.+*/++html {+ line-height: 1.5;+ /* 1 */+ -webkit-text-size-adjust: 100%;+ /* 2 */+ -moz-tab-size: 4;+ /* 3 */+ -o-tab-size: 4;+ tab-size: 4;+ /* 3 */+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";+ /* 4 */+}++/*+1. Remove the margin in all browsers.+2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.+*/++body {+ margin: 0;+ /* 1 */+ line-height: inherit;+ /* 2 */+}++/*+1. Add the correct height in Firefox.+2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)+3. Ensure horizontal rules are visible by default.+*/++hr {+ height: 0;+ /* 1 */+ color: inherit;+ /* 2 */+ border-top-width: 1px;+ /* 3 */+}++/*+Add the correct text decoration in Chrome, Edge, and Safari.+*/++abbr:where([title]) {+ -webkit-text-decoration: underline dotted;+ text-decoration: underline dotted;+}++/*+Remove the default font size and weight for headings.+*/++h1,+h2,+h3,+h4,+h5,+h6 {+ font-size: inherit;+ font-weight: inherit;+}++/*+Reset links to optimize for opt-in styling instead of opt-out.+*/++a {+ color: inherit;+ text-decoration: inherit;+}++/*+Add the correct font weight in Edge and Safari.+*/++b,+strong {+ font-weight: bolder;+}++/*+1. Use the user's configured `mono` font family by default.+2. Correct the odd `em` font sizing in all browsers.+*/++code,+kbd,+samp,+pre {+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;+ /* 1 */+ font-size: 1em;+ /* 2 */+}++/*+Add the correct font size in all browsers.+*/++small {+ font-size: 80%;+}++/*+Prevent `sub` and `sup` elements from affecting the line height in all browsers.+*/++sub,+sup {+ font-size: 75%;+ line-height: 0;+ position: relative;+ vertical-align: baseline;+}++sub {+ bottom: -0.25em;+}++sup {+ top: -0.5em;+}++/*+1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)+2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)+3. Remove gaps between table borders by default.+*/++table {+ text-indent: 0;+ /* 1 */+ border-color: inherit;+ /* 2 */+ border-collapse: collapse;+ /* 3 */+}++/*+1. Change the font styles in all browsers.+2. Remove the margin in Firefox and Safari.+3. Remove default padding in all browsers.+*/++button,+input,+optgroup,+select,+textarea {+ font-family: inherit;+ /* 1 */+ font-size: 100%;+ /* 1 */+ line-height: inherit;+ /* 1 */+ color: inherit;+ /* 1 */+ margin: 0;+ /* 2 */+ padding: 0;+ /* 3 */+}++/*+Remove the inheritance of text transform in Edge and Firefox.+*/++button,+select {+ text-transform: none;+}++/*+1. Correct the inability to style clickable types in iOS and Safari.+2. Remove default button styles.+*/++button,+[type='button'],+[type='reset'],+[type='submit'] {+ -webkit-appearance: button;+ /* 1 */+ background-color: transparent;+ /* 2 */+ background-image: none;+ /* 2 */+}++/*+Use the modern Firefox focus style for all focusable elements.+*/++:-moz-focusring {+ outline: auto;+}++/*+Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)+*/++:-moz-ui-invalid {+ box-shadow: none;+}++/*+Add the correct vertical alignment in Chrome and Firefox.+*/++progress {+ vertical-align: baseline;+}++/*+Correct the cursor style of increment and decrement buttons in Safari.+*/++::-webkit-inner-spin-button,+::-webkit-outer-spin-button {+ height: auto;+}++/*+1. Correct the odd appearance in Chrome and Safari.+2. Correct the outline style in Safari.+*/++[type='search'] {+ -webkit-appearance: textfield;+ /* 1 */+ outline-offset: -2px;+ /* 2 */+}++/*+Remove the inner padding in Chrome and Safari on macOS.+*/++::-webkit-search-decoration {+ -webkit-appearance: none;+}++/*+1. Correct the inability to style clickable types in iOS and Safari.+2. Change font properties to `inherit` in Safari.+*/++::-webkit-file-upload-button {+ -webkit-appearance: button;+ /* 1 */+ font: inherit;+ /* 2 */+}++/*+Add the correct display in Chrome and Safari.+*/++summary {+ display: list-item;+}++/*+Removes the default spacing and border for appropriate elements.+*/++blockquote,+dl,+dd,+h1,+h2,+h3,+h4,+h5,+h6,+hr,+figure,+p,+pre {+ margin: 0;+}++fieldset {+ margin: 0;+ padding: 0;+}++legend {+ padding: 0;+}++ol,+ul,+menu {+ list-style: none;+ margin: 0;+ padding: 0;+}++/*+Prevent resizing textareas horizontally by default.+*/++textarea {+ resize: vertical;+}++/*+1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)+2. Set the default placeholder color to the user's configured gray 400 color.+*/++input::-moz-placeholder, textarea::-moz-placeholder {+ opacity: 1;+ /* 1 */+ color: #9ca3af;+ /* 2 */+}++input:-ms-input-placeholder, textarea:-ms-input-placeholder {+ opacity: 1;+ /* 1 */+ color: #9ca3af;+ /* 2 */+}++input::placeholder,+textarea::placeholder {+ opacity: 1;+ /* 1 */+ color: #9ca3af;+ /* 2 */+}++/*+Set the default cursor for buttons.+*/++button,+[role="button"] {+ cursor: pointer;+}++/*+Make sure disabled buttons don't get the pointer cursor.+*/++:disabled {+ cursor: default;+}++/*+1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)+2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)+ This can trigger a poorly considered lint error in some tools but is included by design.+*/++img,+svg,+video,+canvas,+audio,+iframe,+embed,+object {+ display: block;+ /* 1 */+ vertical-align: middle;+ /* 2 */+}++/*+Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)+*/++img,+video {+ max-width: 100%;+ height: auto;+}++/*+Ensure the default browser behavior of the `hidden` attribute.+*/++[hidden] {+ display: none;+}++*, ::before, ::after {+ --tw-translate-x: 0;+ --tw-translate-y: 0;+ --tw-rotate: 0;+ --tw-skew-x: 0;+ --tw-skew-y: 0;+ --tw-scale-x: 1;+ --tw-scale-y: 1;+ --tw-pan-x: ;+ --tw-pan-y: ;+ --tw-pinch-zoom: ;+ --tw-scroll-snap-strictness: proximity;+ --tw-ordinal: ;+ --tw-slashed-zero: ;+ --tw-numeric-figure: ;+ --tw-numeric-spacing: ;+ --tw-numeric-fraction: ;+ --tw-ring-inset: ;+ --tw-ring-offset-width: 0px;+ --tw-ring-offset-color: #fff;+ --tw-ring-color: rgb(59 130 246 / 0.5);+ --tw-ring-offset-shadow: 0 0 #0000;+ --tw-ring-shadow: 0 0 #0000;+ --tw-shadow: 0 0 #0000;+ --tw-shadow-colored: 0 0 #0000;+ --tw-blur: ;+ --tw-brightness: ;+ --tw-contrast: ;+ --tw-grayscale: ;+ --tw-hue-rotate: ;+ --tw-invert: ;+ --tw-saturate: ;+ --tw-sepia: ;+ --tw-drop-shadow: ;+ --tw-backdrop-blur: ;+ --tw-backdrop-brightness: ;+ --tw-backdrop-contrast: ;+ --tw-backdrop-grayscale: ;+ --tw-backdrop-hue-rotate: ;+ --tw-backdrop-invert: ;+ --tw-backdrop-opacity: ;+ --tw-backdrop-saturate: ;+ --tw-backdrop-sepia: ;+}++.container {+ width: 100%;+}++@media (min-width: 640px) {+ .container {+ max-width: 640px;+ }+}++@media (min-width: 768px) {+ .container {+ max-width: 768px;+ }+}++@media (min-width: 1024px) {+ .container {+ max-width: 1024px;+ }+}++@media (min-width: 1280px) {+ .container {+ max-width: 1280px;+ }+}++@media (min-width: 1536px) {+ .container {+ max-width: 1536px;+ }+}++.col-span-2 {+ grid-column: span 2 / span 2;+}++.col-span-8 {+ grid-column: span 8 / span 8;+}++.col-span-10 {+ grid-column: span 10 / span 10;+}++.col-span-3 {+ grid-column: span 3 / span 3;+}++.col-span-4 {+ grid-column: span 4 / span 4;+}++.col-span-7 {+ grid-column: span 7 / span 7;+}++.col-start-11 {+ grid-column-start: 11;+}++.col-start-1 {+ grid-column-start: 1;+}++.col-start-2 {+ grid-column-start: 2;+}++.col-start-10 {+ grid-column-start: 10;+}++.col-start-9 {+ grid-column-start: 9;+}++.row-start-1 {+ grid-row-start: 1;+}++.row-start-2 {+ grid-row-start: 2;+}++.row-start-3 {+ grid-row-start: 3;+}++.row-start-4 {+ grid-row-start: 4;+}++.row-start-5 {+ grid-row-start: 5;+}++.row-start-6 {+ grid-row-start: 6;+}++.my-1 {+ margin-top: 0.25rem;+ margin-bottom: 0.25rem;+}++.my-0\.5 {+ margin-top: 0.125rem;+ margin-bottom: 0.125rem;+}++.my-0 {+ margin-top: 0px;+ margin-bottom: 0px;+}++.mb-5 {+ margin-bottom: 1.25rem;+}++.box-content {+ box-sizing: content-box;+}++.flex {+ display: flex;+}++.grid {+ display: grid;+}++.h-\[1px\] {+ height: 1px;+}++.w-screen {+ width: 100vw;+}++.w-full {+ width: 100%;+}++.max-w-4xl {+ max-width: 56rem;+}++.grid-cols-12 {+ grid-template-columns: repeat(12, minmax(0, 1fr));+}++.grid-rows-5 {+ grid-template-rows: repeat(5, minmax(0, 1fr));+}++.flex-col {+ flex-direction: column;+}++.items-center {+ align-items: center;+}++.gap-x-2 {+ -moz-column-gap: 0.5rem;+ column-gap: 0.5rem;+}++.whitespace-pre-line {+ white-space: pre-line;+}++.break-words {+ overflow-wrap: break-word;+}++.border-t {+ border-top-width: 1px;+}++.border-b {+ border-bottom-width: 1px;+}++.border-solid {+ border-style: solid;+}++.border-black {+ --tw-border-opacity: 1;+ border-color: rgb(0 0 0 / var(--tw-border-opacity));+}++.bg-white {+ --tw-bg-opacity: 1;+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));+}++.bg-slate-200 {+ --tw-bg-opacity: 1;+ background-color: rgb(226 232 240 / var(--tw-bg-opacity));+}++.p-4 {+ padding: 1rem;+}++.text-right {+ text-align: right;+}++.text-sm {+ font-size: 0.875rem;+ line-height: 1.25rem;+}++.font-bold {+ font-weight: 700;+}++.text-slate-400 {+ --tw-text-opacity: 1;+ color: rgb(148 163 184 / var(--tw-text-opacity));+}++.text-blue-600 {+ --tw-text-opacity: 1;+ color: rgb(37 99 235 / var(--tw-text-opacity));+}++.underline {+ -webkit-text-decoration-line: underline;+ text-decoration-line: underline;+}diff --git a/src/paperless_mail/mail_template/package-lock.json b/src/paperless_mail/mail_template/package-lock.jsonnew file mode 100644index 000000000..9d7a08b10--- /dev/null+++ b/src/paperless_mail/mail_template/package-lock.json@@ -0,0 +1,1260 @@+{+ "name": "phail-html",+ "lockfileVersion": 2,+ "requires": true,+ "packages": {+ "": {+ "devDependencies": {+ "tailwindcss": "^3.0.24"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true,+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/acorn": {+ "version": "7.4.1",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",+ "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",+ "dev": true,+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-node": {+ "version": "1.8.2",+ "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz",+ "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==",+ "dev": true,+ "dependencies": {+ "acorn": "^7.0.0",+ "acorn-walk": "^7.0.0",+ "xtend": "^4.0.2"+ }+ },+ "node_modules/acorn-walk": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz",+ "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==",+ "dev": true,+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/anymatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",+ "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",+ "dev": true,+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.1.tgz",+ "integrity": "sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA==",+ "dev": true+ },+ "node_modules/binary-extensions": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/braces": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",+ "dev": true,+ "dependencies": {+ "fill-range": "^7.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/camelcase-css": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",+ "dev": true,+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/chokidar": {+ "version": "3.5.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",+ "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://paulmillr.com/funding/"+ }+ ],+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/chokidar/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true,+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/defined": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz",+ "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=",+ "dev": true+ },+ "node_modules/detective": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.0.tgz",+ "integrity": "sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==",+ "dev": true,+ "dependencies": {+ "acorn-node": "^1.6.1",+ "defined": "^1.0.0",+ "minimist": "^1.1.1"+ },+ "bin": {+ "detective": "bin/detective.js"+ },+ "engines": {+ "node": ">=0.8.0"+ }+ },+ "node_modules/didyoumean": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",+ "dev": true+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "dev": true+ },+ "node_modules/fast-glob": {+ "version": "3.2.11",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz",+ "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==",+ "dev": true,+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.4"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/fastq": {+ "version": "1.13.0",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz",+ "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==",+ "dev": true,+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/fill-range": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",+ "dev": true,+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",+ "dev": true,+ "hasInstallScript": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",+ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",+ "dev": true+ },+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/has": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",+ "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",+ "dev": true,+ "dependencies": {+ "function-bind": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4.0"+ }+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz",+ "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==",+ "dev": true,+ "dependencies": {+ "has": "^1.0.3"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true,+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/lilconfig": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.5.tgz",+ "integrity": "sha512-xaYmXZtTHPAw5m+xLN8ab9C+3a8YmV3asNSPOATITbtwrfbwaLJj8h66H1WMIpALCkqsIzK3h7oQ+PdX+LQ9Eg==",+ "dev": true,+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromatch": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",+ "dev": true,+ "dependencies": {+ "braces": "^3.0.2",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/minimist": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",+ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",+ "dev": true+ },+ "node_modules/nanoid": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",+ "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",+ "dev": true,+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "dev": true,+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true+ },+ "node_modules/picocolors": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",+ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",+ "dev": true+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "dev": true,+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.4.12",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.12.tgz",+ "integrity": "sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ }+ ],+ "dependencies": {+ "nanoid": "^3.3.1",+ "picocolors": "^1.0.0",+ "source-map-js": "^1.0.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-js": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz",+ "integrity": "sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==",+ "dev": true,+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": "^8.3.3"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz",+ "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==",+ "dev": true,+ "dependencies": {+ "lilconfig": "^2.0.5",+ "yaml": "^1.10.2"+ },+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": ">=8.0.9",+ "ts-node": ">=9.0.0"+ },+ "peerDependenciesMeta": {+ "postcss": {+ "optional": true+ },+ "ts-node": {+ "optional": true+ }+ }+ },+ "node_modules/postcss-nested": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-5.0.6.tgz",+ "integrity": "sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==",+ "dev": true,+ "dependencies": {+ "postcss-selector-parser": "^6.0.6"+ },+ "engines": {+ "node": ">=12.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "6.0.10",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz",+ "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==",+ "dev": true,+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "dev": true+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },+ "node_modules/quick-lru": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",+ "dev": true,+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",+ "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",+ "dev": true,+ "dependencies": {+ "is-core-module": "^2.8.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/reusify": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",+ "dev": true,+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "dependencies": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",+ "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/tailwindcss": {+ "version": "3.0.24",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.24.tgz",+ "integrity": "sha512-H3uMmZNWzG6aqmg9q07ZIRNIawoiEcNFKDfL+YzOPuPsXuDXxJxB9icqzLgdzKNwjG3SAro2h9SYav8ewXNgig==",+ "dev": true,+ "dependencies": {+ "arg": "^5.0.1",+ "chokidar": "^3.5.3",+ "color-name": "^1.1.4",+ "detective": "^5.2.0",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.2.11",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "lilconfig": "^2.0.5",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.0.0",+ "postcss": "^8.4.12",+ "postcss-js": "^4.0.0",+ "postcss-load-config": "^3.1.4",+ "postcss-nested": "5.0.6",+ "postcss-selector-parser": "^6.0.10",+ "postcss-value-parser": "^4.2.0",+ "quick-lru": "^5.1.1",+ "resolve": "^1.22.0"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=12.13.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.9"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",+ "dev": true+ },+ "node_modules/xtend": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",+ "dev": true,+ "engines": {+ "node": ">=0.4"+ }+ },+ "node_modules/yaml": {+ "version": "1.10.2",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",+ "dev": true,+ "engines": {+ "node": ">= 6"+ }+ }+ },+ "dependencies": {+ "@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",+ "dev": true,+ "requires": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ }+ },+ "@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",+ "dev": true+ },+ "@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",+ "dev": true,+ "requires": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ }+ },+ "acorn": {+ "version": "7.4.1",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",+ "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",+ "dev": true+ },+ "acorn-node": {+ "version": "1.8.2",+ "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz",+ "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==",+ "dev": true,+ "requires": {+ "acorn": "^7.0.0",+ "acorn-walk": "^7.0.0",+ "xtend": "^4.0.2"+ }+ },+ "acorn-walk": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz",+ "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==",+ "dev": true+ },+ "anymatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz",+ "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==",+ "dev": true,+ "requires": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ }+ },+ "arg": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.1.tgz",+ "integrity": "sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA==",+ "dev": true+ },+ "binary-extensions": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",+ "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",+ "dev": true+ },+ "braces": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",+ "dev": true,+ "requires": {+ "fill-range": "^7.0.1"+ }+ },+ "camelcase-css": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",+ "dev": true+ },+ "chokidar": {+ "version": "3.5.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",+ "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",+ "dev": true,+ "requires": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "fsevents": "~2.3.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "dependencies": {+ "glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "requires": {+ "is-glob": "^4.0.1"+ }+ }+ }+ },+ "color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "dev": true+ },+ "cssesc": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",+ "dev": true+ },+ "defined": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz",+ "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=",+ "dev": true+ },+ "detective": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.0.tgz",+ "integrity": "sha512-6SsIx+nUUbuK0EthKjv0zrdnajCCXVYGmbYYiYjFVpzcjwEs/JMDZ8tPRG29J/HhN56t3GJp2cGSWDRjjot8Pg==",+ "dev": true,+ "requires": {+ "acorn-node": "^1.6.1",+ "defined": "^1.0.0",+ "minimist": "^1.1.1"+ }+ },+ "didyoumean": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",+ "dev": true+ },+ "dlv": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",+ "dev": true+ },+ "fast-glob": {+ "version": "3.2.11",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.11.tgz",+ "integrity": "sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==",+ "dev": true,+ "requires": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.4"+ },+ "dependencies": {+ "glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "requires": {+ "is-glob": "^4.0.1"+ }+ }+ }+ },+ "fastq": {+ "version": "1.13.0",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz",+ "integrity": "sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw==",+ "dev": true,+ "requires": {+ "reusify": "^1.0.4"+ }+ },+ "fill-range": {+ "version": "7.0.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",+ "dev": true,+ "requires": {+ "to-regex-range": "^5.0.1"+ }+ },+ "fsevents": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",+ "dev": true,+ "optional": true+ },+ "function-bind": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",+ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",+ "dev": true+ },+ "glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "dev": true,+ "requires": {+ "is-glob": "^4.0.3"+ }+ },+ "has": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",+ "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",+ "dev": true,+ "requires": {+ "function-bind": "^1.1.1"+ }+ },+ "is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "requires": {+ "binary-extensions": "^2.0.0"+ }+ },+ "is-core-module": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz",+ "integrity": "sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==",+ "dev": true,+ "requires": {+ "has": "^1.0.3"+ }+ },+ "is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",+ "dev": true+ },+ "is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "requires": {+ "is-extglob": "^2.1.1"+ }+ },+ "is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true+ },+ "lilconfig": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.5.tgz",+ "integrity": "sha512-xaYmXZtTHPAw5m+xLN8ab9C+3a8YmV3asNSPOATITbtwrfbwaLJj8h66H1WMIpALCkqsIzK3h7oQ+PdX+LQ9Eg==",+ "dev": true+ },+ "merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true+ },+ "micromatch": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",+ "dev": true,+ "requires": {+ "braces": "^3.0.2",+ "picomatch": "^2.3.1"+ }+ },+ "minimist": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",+ "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==",+ "dev": true+ },+ "nanoid": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz",+ "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==",+ "dev": true+ },+ "normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true+ },+ "object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "dev": true+ },+ "path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true+ },+ "picocolors": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",+ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",+ "dev": true+ },+ "picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "dev": true+ },+ "postcss": {+ "version": "8.4.12",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.12.tgz",+ "integrity": "sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==",+ "dev": true,+ "requires": {+ "nanoid": "^3.3.1",+ "picocolors": "^1.0.0",+ "source-map-js": "^1.0.2"+ }+ },+ "postcss-js": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.0.tgz",+ "integrity": "sha512-77QESFBwgX4irogGVPgQ5s07vLvFqWr228qZY+w6lW599cRlK/HmnlivnnVUxkjHnCu4J16PDMHcH+e+2HbvTQ==",+ "dev": true,+ "requires": {+ "camelcase-css": "^2.0.1"+ }+ },+ "postcss-load-config": {+ "version": "3.1.4",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.4.tgz",+ "integrity": "sha512-6DiM4E7v4coTE4uzA8U//WhtPwyhiim3eyjEMFCnUpzbrkK9wJHgKDT2mR+HbtSrd/NubVaYTOpSpjUl8NQeRg==",+ "dev": true,+ "requires": {+ "lilconfig": "^2.0.5",+ "yaml": "^1.10.2"+ }+ },+ "postcss-nested": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-5.0.6.tgz",+ "integrity": "sha512-rKqm2Fk0KbA8Vt3AdGN0FB9OBOMDVajMG6ZCf/GoHgdxUJ4sBFp0A/uMIRm+MJUdo33YXEtjqIz8u7DAp8B7DA==",+ "dev": true,+ "requires": {+ "postcss-selector-parser": "^6.0.6"+ }+ },+ "postcss-selector-parser": {+ "version": "6.0.10",+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz",+ "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==",+ "dev": true,+ "requires": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ }+ },+ "postcss-value-parser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",+ "dev": true+ },+ "queue-microtask": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",+ "dev": true+ },+ "quick-lru": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz",+ "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==",+ "dev": true+ },+ "readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "requires": {+ "picomatch": "^2.2.1"+ }+ },+ "resolve": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz",+ "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==",+ "dev": true,+ "requires": {+ "is-core-module": "^2.8.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ }+ },+ "reusify": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",+ "dev": true+ },+ "run-parallel": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",+ "dev": true,+ "requires": {+ "queue-microtask": "^1.2.2"+ }+ },+ "source-map-js": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",+ "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",+ "dev": true+ },+ "supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true+ },+ "tailwindcss": {+ "version": "3.0.24",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.0.24.tgz",+ "integrity": "sha512-H3uMmZNWzG6aqmg9q07ZIRNIawoiEcNFKDfL+YzOPuPsXuDXxJxB9icqzLgdzKNwjG3SAro2h9SYav8ewXNgig==",+ "dev": true,+ "requires": {+ "arg": "^5.0.1",+ "chokidar": "^3.5.3",+ "color-name": "^1.1.4",+ "detective": "^5.2.0",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.2.11",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "lilconfig": "^2.0.5",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.0.0",+ "postcss": "^8.4.12",+ "postcss-js": "^4.0.0",+ "postcss-load-config": "^3.1.4",+ "postcss-nested": "5.0.6",+ "postcss-selector-parser": "^6.0.10",+ "postcss-value-parser": "^4.2.0",+ "quick-lru": "^5.1.1",+ "resolve": "^1.22.0"+ }+ },+ "to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "requires": {+ "is-number": "^7.0.0"+ }+ },+ "util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",+ "dev": true+ },+ "xtend": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",+ "dev": true+ },+ "yaml": {+ "version": "1.10.2",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",+ "dev": true+ }+ }+}diff --git a/src/paperless_mail/mail_template/package.json b/src/paperless_mail/mail_template/package.jsonnew file mode 100644index 000000000..48785a003--- /dev/null+++ b/src/paperless_mail/mail_template/package.json@@ -0,0 +1,5 @@+{+ "devDependencies": {+ "tailwindcss": "^3.0.24"+ }+}diff --git a/src/paperless_mail/mail_template/tailwind.config.js b/src/paperless_mail/mail_template/tailwind.config.jsnew file mode 100644index 000000000..1e01796ee--- /dev/null+++ b/src/paperless_mail/mail_template/tailwind.config.js@@ -0,0 +1,7 @@+module.exports = {+ content: ['./*.html'],+ theme: {+ extend: {},+ },+ plugins: [],+}diff --git a/src/paperless_mail/parsers.py b/src/paperless_mail/parsers.pynew file mode 100644index 000000000..c3ac323ae--- /dev/null+++ b/src/paperless_mail/parsers.py@@ -0,0 +1,225 @@+import os+import re+from io import StringIO++import requests+from bleach import clean+from bleach import linkify+from django.conf import settings+from documents.parsers import DocumentParser+from documents.parsers import make_thumbnail_from_pdf+from documents.parsers import ParseError+from imap_tools import MailMessage+++class MailDocumentParser(DocumentParser):+ """+ This parser sends documents to a local tika server+ """++ logging_name = "paperless.parsing.mail"+ _parsed = None++ def get_parsed(self, document_path) -> MailMessage:+ if not self._parsed:+ try:+ with open(document_path, "rb") as eml:+ self._parsed = MailMessage.from_bytes(eml.read())+ except Exception as err:+ raise ParseError(+ f"Could not parse {document_path}: {err}",+ )++ return self._parsed++ def get_thumbnail(self, document_path, mime_type, file_name=None):+ if not self.archive_path:+ self.archive_path = self.generate_pdf(document_path)++ return make_thumbnail_from_pdf(+ self.archive_path,+ self.tempdir,+ self.logging_group,+ )++ def extract_metadata(self, document_path, mime_type):+ result = []++ try:+ mail = self.get_parsed(document_path)+ except ParseError as e:+ self.log(+ "warning",+ f"Error while fetching document metadata for " f"{document_path}: {e}",+ )+ return result++ for key, value in mail.headers.items():+ value = ", ".join(i for i in value)++ result.append(+ {+ "namespace": "",+ "prefix": "header",+ "key": key,+ "value": value,+ },+ )++ result.append(+ {+ "namespace": "",+ "prefix": "",+ "key": "attachments",+ "value": ", ".join(+ f"{attachment.filename}({(attachment.size / 1024):.2f} KiB)"+ for attachment in mail.attachments+ ),+ },+ )++ result.append(+ {+ "namespace": "",+ "prefix": "",+ "key": "date",+ "value": mail.date.strftime("%Y-%m-%d %H:%M:%S %Z"),+ },+ )++ result.sort(key=lambda item: (item["prefix"], item["key"]))+ return result++ def parse(self, document_path, mime_type, file_name=None):+ mail = self.get_parsed(document_path)++ content = mail.text.strip()++ content = re.sub(" +", " ", content)+ content = re.sub("\n+", "\n", content)++ self.text = f"{content}\n\n"+ self.text += f"Subject: {mail.subject}\n"+ self.text += f"From: {mail.from_values.full}\n"+ self.text += f"To: {', '.join(address.full for address in mail.to_values)}\n"+ if len(mail.cc_values) >= 1:+ self.text += (+ f"CC: {', '.join(address.full for address in mail.cc_values)}\n"+ )+ if len(mail.bcc_values) >= 1:+ self.text += (+ f"BCC: {', '.join(address.full for address in mail.bcc_values)}\n"+ )+ if len(mail.attachments) >= 1:+ att = ", ".join(f"{a.filename} ({a.size})" for a in mail.attachments)+ self.text += f"Attachments: {att}"++ self.date = mail.date+ self.archive_path = self.generate_pdf(document_path)++ def generate_pdf(self, document_path):+ def clean_html(text: str):+ if isinstance(text, list):+ text = "\n".join([str(e) for e in text])+ if type(text) != str:+ text = str(text)+ text = text.replace("&", "&")+ text = text.replace("<", "<")+ text = text.replace(">", ">")+ text = text.replace(" ", " ")+ text = text.replace("'", "'")+ text = text.replace('"', """)+ text = clean(text)+ text = linkify(text, parse_email=True)+ text = text.replace("\n", "<br>")+ return text++ def clean_html_script(text: str):+ text = text.replace("<script", "<div hidden ")+ text = text.replace("</script", "</div")+ return text++ mail = self.get_parsed(document_path)++ pdf_path = os.path.join(self.tempdir, "convert.pdf")+ gotenberg_server = settings.PAPERLESS_TIKA_GOTENBERG_ENDPOINT+ url = gotenberg_server + "/forms/chromium/convert/html"++ self.log("info", f"Converting {document_path} to PDF as {pdf_path}")++ data = {}+ data["subject"] = clean_html(mail.subject)+ if data["subject"] != "":+ data["subject_label"] = "Subject"+ data["from"] = clean_html(mail.from_values.full)+ if data["from"] != "":+ data["from_label"] = "From"+ data["to"] = clean_html("\n".join(address.full for address in mail.to_values))+ if data["to"] != "":+ data["to_label"] = "To"+ data["cc"] = clean_html("\n".join(address.full for address in mail.cc_values))+ if data["cc"] != "":+ data["cc_label"] = "CC"+ data["bcc"] = clean_html("\n".join(address.full for address in mail.bcc_values))+ if data["bcc"] != "":+ data["bcc_label"] = "BCC"+ data["date"] = clean_html(mail.date.astimezone().strftime("%Y-%m-%d %H:%M"))+ data["content"] = clean_html(mail.text.strip())++ html_file = os.path.join(os.path.dirname(__file__), "mail_template/index.html")+ css_file = os.path.join(os.path.dirname(__file__), "mail_template/output.css")+ placeholder_pattern = re.compile(r"{{(.+)}}")+ html = StringIO()+ orig_html = StringIO(clean_html_script(mail.html))++ with open(html_file, "r") as html_template_handle:+ with open(css_file, "rb") as css_handle:+ for line in html_template_handle.readlines():+ for placeholder in placeholder_pattern.findall(line):+ line = re.sub(+ "{{" + placeholder + "}}",+ data.get(placeholder.strip(), ""),+ line,+ )+ html.write(line)+ html.seek(0)+ files = {+ "html": (+ "index.html",+ html,+ ),+ "css": (+ "output.css",+ css_handle,+ ),+ "mail_html": (+ "mail_html.html",+ orig_html,+ ),+ }+ headers = {}+ data = {+ "marginTop": "0.1",+ "marginBottom": "0.1",+ "marginLeft": "0.1",+ "marginRight": "0.1",+ "paperWidth": "8.27",+ "paperHeight": "11.7",+ "scale": "1.0",+ }+ try:+ response = requests.post(+ url,+ files=files,+ headers=headers,+ data=data,+ )+ response.raise_for_status() # ensure we notice bad responses+ except Exception as err:+ raise ParseError(f"Error while converting document to PDF: {err}")++ with open(pdf_path, "wb") as file:+ file.write(response.content)+ file.close()++ return pdf_pathdiff --git a/src/paperless_mail/signals.py b/src/paperless_mail/signals.pynew file mode 100644index 000000000..c870335c6--- /dev/null+++ b/src/paperless_mail/signals.py@@ -0,0 +1,14 @@+def get_parser(*args, **kwargs):+ from .parsers import MailDocumentParser++ return MailDocumentParser(*args, **kwargs)+++def mail_consumer_declaration(sender, **kwargs):+ return {+ "parser": get_parser,+ "weight": 20,+ "mime_types": {+ "message/rfc822": ".eml",+ },+ }