Spaces:
Build error
Build error
Commit ·
b380b5a
1
Parent(s): 6b8e7bc
Upload 167 files
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +16 -0
- Dockerfile +7 -0
- api/__init__.py +0 -0
- api/__pycache__/__init__.cpython-311.pyc +0 -0
- api/__pycache__/admin.cpython-311.pyc +0 -0
- api/__pycache__/apps.cpython-311.pyc +0 -0
- api/__pycache__/models.cpython-311.pyc +0 -0
- api/__pycache__/urls.cpython-311.pyc +0 -0
- api/__pycache__/views.cpython-311.pyc +0 -0
- api/admin.py +3 -0
- api/apps.py +6 -0
- api/migrations/__init__.py +0 -0
- api/migrations/__pycache__/__init__.cpython-311.pyc +0 -0
- api/models.py +3 -0
- api/tests.py +3 -0
- api/urls.py +16 -0
- api/views.py +469 -0
- api/views.py.dacc480a95df4e91cf44e8b780e4c741.tmp +469 -0
- db.sqlite3 +0 -0
- manage.py +22 -0
- purityai/__init__.py +0 -0
- purityai/__pycache__/__init__.cpython-311.pyc +0 -0
- purityai/__pycache__/settings.cpython-311.pyc +0 -0
- purityai/__pycache__/urls.cpython-311.pyc +0 -0
- purityai/__pycache__/wsgi.cpython-311.pyc +0 -0
- purityai/asgi.py +16 -0
- purityai/settings.py +127 -0
- purityai/urls.py +20 -0
- purityai/wsgi.py +16 -0
- requirements.txt +0 -0
- static/_next/static/5AMzUELPXC7eY2oJtbjtp/_buildManifest-abd07886baeaa.js +21 -0
- static/_next/static/5AMzUELPXC7eY2oJtbjtp/_buildManifest.js +21 -0
- static/_next/static/5AMzUELPXC7eY2oJtbjtp/_middlewareManifest.js +2 -0
- static/_next/static/5AMzUELPXC7eY2oJtbjtp/_ssgManifest.js +1 -0
- static/_next/static/chunks/152-b45757b9176f674c-92b8a4c43fc81.js +431 -0
- static/_next/static/chunks/152-b45757b9176f674c.js +431 -0
- static/_next/static/chunks/2-70c32d541379fb99-291053884a544.js +0 -0
- static/_next/static/chunks/2-70c32d541379fb99.js +0 -0
- static/_next/static/chunks/369-e8f2ba2cc85c0dd6-7b1aeaad877df.js +0 -0
- static/_next/static/chunks/369-e8f2ba2cc85c0dd6.js +0 -0
- static/_next/static/chunks/524-05696a2671cf01d2-12f313f6a252d.js +0 -0
- static/_next/static/chunks/524-05696a2671cf01d2.js +0 -0
- static/_next/static/chunks/867-624f974e1910ffb8-c19d2a2e961c7.js +667 -0
- static/_next/static/chunks/867-624f974e1910ffb8.js +667 -0
- static/_next/static/chunks/910-0a7f7ac0643ac.598c19d8e3964441 +0 -0
- static/_next/static/chunks/910.598c19d8e3964441.js +0 -0
- static/_next/static/chunks/913-2011f1037d472.f01f3b1556f430ca +1 -0
- static/_next/static/chunks/913.f01f3b1556f430ca.js +418 -0
- static/_next/static/chunks/94-c1d96e91c5f9c3c9-ffc61cff1bd7d.js +1785 -0
- static/_next/static/chunks/94-c1d96e91c5f9c3c9.js +1785 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,19 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
static/images/cat9.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
static/images/jaivin.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
static/images/loader.gif filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
static/images/logo.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
static/images/UI1Trans.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
static/images/UI2Trans.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
static/images/UI3Trans.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
static/images/UIUC1Trans.png filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
static/videos/1.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
static/videos/2.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
static/videos/3.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
static/videos/4.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
static/videos/5.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
static/videos/6.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
temp1.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
temp2.png filter=lfs diff=lfs merge=lfs -text
|
Dockerfile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3
|
| 2 |
+
WORKDIR /usr/src/app
|
| 3 |
+
COPY requirements.txt ./
|
| 4 |
+
RUN pip install -r requirements.txt
|
| 5 |
+
COPY . .
|
| 6 |
+
EXPOSE 7860
|
| 7 |
+
CMD ["python","manage.py","runserver","0.0.0.0:7860"]
|
api/__init__.py
ADDED
|
File without changes
|
api/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (168 Bytes). View file
|
|
|
api/__pycache__/admin.cpython-311.pyc
ADDED
|
Binary file (223 Bytes). View file
|
|
|
api/__pycache__/apps.cpython-311.pyc
ADDED
|
Binary file (533 Bytes). View file
|
|
|
api/__pycache__/models.cpython-311.pyc
ADDED
|
Binary file (220 Bytes). View file
|
|
|
api/__pycache__/urls.cpython-311.pyc
ADDED
|
Binary file (1.19 kB). View file
|
|
|
api/__pycache__/views.cpython-311.pyc
ADDED
|
Binary file (22.3 kB). View file
|
|
|
api/admin.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.contrib import admin
|
| 2 |
+
|
| 3 |
+
# Register your models here.
|
api/apps.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.apps import AppConfig
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class ApiConfig(AppConfig):
|
| 5 |
+
default_auto_field = "django.db.models.BigAutoField"
|
| 6 |
+
name = "api"
|
api/migrations/__init__.py
ADDED
|
File without changes
|
api/migrations/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (179 Bytes). View file
|
|
|
api/models.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.db import models
|
| 2 |
+
|
| 3 |
+
# Create your models here.
|
api/tests.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.test import TestCase
|
| 2 |
+
|
| 3 |
+
# Create your tests here.
|
api/urls.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.urls import path
|
| 2 |
+
|
| 3 |
+
from . import views
|
| 4 |
+
|
| 5 |
+
urlpatterns = [
|
| 6 |
+
path('helloWorld/', views.helloWorld, name='helloWorld'),
|
| 7 |
+
path('backgroundRemover/', views.backgroundRemover, name='backgroundRemover'),
|
| 8 |
+
path('imageUpscaler/', views.imageUpscaler, name='imageUpscaler'),
|
| 9 |
+
path('textRemoval/', views.textRemoval, name='textRemoval'),
|
| 10 |
+
path('gtokenSet/', views.gtokenSet, name='gtokenSet'),
|
| 11 |
+
path('purifySet/', views.purifySet, name='purifySet'),
|
| 12 |
+
path('visionAI/', views.visionAI, name='visionAI'),
|
| 13 |
+
path('imageGen/', views.imageGen, name='imageGen'),
|
| 14 |
+
path('cleanUp/', views.cleanUp, name='cleanUp'),
|
| 15 |
+
path('reimagine/', views.reimagine, name='reimagine')
|
| 16 |
+
]
|
api/views.py
ADDED
|
@@ -0,0 +1,469 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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+
import requests
|
| 6 |
+
import base64
|
| 7 |
+
from datetime import datetime
|
| 8 |
+
import http.client
|
| 9 |
+
import time
|
| 10 |
+
from PIL import Image,ImageFilter
|
| 11 |
+
import io
|
| 12 |
+
|
| 13 |
+
# https://explorer.apis.google.com/embedded.js search for ac=" for api key
|
| 14 |
+
|
| 15 |
+
access_token = ""
|
| 16 |
+
refresh_token = ""
|
| 17 |
+
id_token = ""
|
| 18 |
+
gtoken = "03AKH6MRFNT6HVvCOEeeOZyehLohN3SQQGtPX-5ZuPkxCP3z1qhjhETBgPXUF1OsuYmdwZHvbHHKGV8b1I6B37WvbE0NqnncINIjUnZ9V3eBYPpBT2YXVV6I88n84L25v2PS8k3TGSj5oVFP1WhBSwR_pX7AmqJM7xq-47mjzOrRfpbEHNeQLOBGxQTVBVCP7IjNB6Yv4NmUYgqyv261dSmfh-RTgQWvA_05vs_J4R7eCPGr7xhSzd4jSXRsZDuf0zkyzeMHbEIf07Mrp0AaeB-bv14jNakWaAyDXNRg1yPzTUuQa3yVPBlx49VxrGC5tVKCN2CsWnrsd2BQD7A2BBzQPDz_rpGL3EVyl7Gh5qY8DYuGgK8pRTrbVAbDyacYoOmgYjoX7VAGx_3kKYLz6dHTF_8WeC_AIpwwP-KT6YDpT-wV7HkyxdkouYUuHdlQQKaPQ6eRDnkzqkOOCEZ1yPE_6eh2NeF41P-Z6Iy-B4tdAyHPW0AmO-pH8TsgUmlHpfaHuDuKj3XWme5dDloH2rSa1SQFyIeXUDE0uyG8KlX4MqzcBxefia1Z8"
|
| 19 |
+
imageGenrated = 0
|
| 20 |
+
startTime = datetime.now()
|
| 21 |
+
csrfToken = ""
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def tokenGenrator(request):
|
| 25 |
+
global access_token, refresh_token, id_token
|
| 26 |
+
url = "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyB6cfZFPraybh6ziyKIMO-afl11alZNlTI"
|
| 27 |
+
payload = json.dumps({
|
| 28 |
+
"returnSecureToken": True
|
| 29 |
+
})
|
| 30 |
+
headers = {
|
| 31 |
+
'authority': 'identitytoolkit.googleapis.com',
|
| 32 |
+
'accept': '*/*',
|
| 33 |
+
'content-type': 'application/json',
|
| 34 |
+
'origin': 'https://clipdrop.co',
|
| 35 |
+
'x-client-version': 'Chrome/JsCore/9.15.0/FirebaseCore-web'
|
| 36 |
+
}
|
| 37 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 38 |
+
refresh_token = response.json()['refreshToken']
|
| 39 |
+
id_token = response.json()['idToken']
|
| 40 |
+
url = "https://securetoken.googleapis.com/v1/token?key=AIzaSyB6cfZFPraybh6ziyKIMO-afl11alZNlTI"
|
| 41 |
+
payload='grant_type=refresh_token&refresh_token=' + refresh_token
|
| 42 |
+
headers = {
|
| 43 |
+
'authority': 'securetoken.googleapis.com',
|
| 44 |
+
'accept': '*/*',
|
| 45 |
+
'content-type': 'application/x-www-form-urlencoded',
|
| 46 |
+
'origin': 'https://clipdrop.co'
|
| 47 |
+
}
|
| 48 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 49 |
+
access_token = response.json()['access_token']
|
| 50 |
+
refresh_token = response.json()['refresh_token']
|
| 51 |
+
id_token = response.json()['id_token']
|
| 52 |
+
return access_token
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def helloWorld(request):
|
| 56 |
+
return HttpResponse(json.dumps({"msg":"Hello World"}), content_type="application/json")
|
| 57 |
+
|
| 58 |
+
@csrf_exempt
|
| 59 |
+
def backgroundRemover(request):
|
| 60 |
+
global access_token, imageGenrated,startTime
|
| 61 |
+
if request.method == 'POST':
|
| 62 |
+
image = request.FILES['image']
|
| 63 |
+
endTime = datetime.now()
|
| 64 |
+
imageGenrated = imageGenrated + 1
|
| 65 |
+
print((endTime - startTime).total_seconds())
|
| 66 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 67 |
+
access_token = ""
|
| 68 |
+
imageGenrated = 0
|
| 69 |
+
startTime = datetime.now()
|
| 70 |
+
if access_token == "":
|
| 71 |
+
access_token = tokenGenrator(request)
|
| 72 |
+
print(access_token)
|
| 73 |
+
url = "https://api.clipdrop.co/remove-background/v2"
|
| 74 |
+
payload={'outputs[]': 'composite','composite_format': 'webp'}
|
| 75 |
+
files=[
|
| 76 |
+
('image_file',(image.name,image))
|
| 77 |
+
]
|
| 78 |
+
headers = {
|
| 79 |
+
'authority': 'api.clipdrop.co',
|
| 80 |
+
'accept': 'application/zip',
|
| 81 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 82 |
+
'authorization': 'Bearer '+access_token,
|
| 83 |
+
'origin': 'https://clipdrop.co',
|
| 84 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 85 |
+
'sec-ch-ua-mobile': '?0',
|
| 86 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 87 |
+
'sec-fetch-dest': 'empty',
|
| 88 |
+
'sec-fetch-mode': 'cors',
|
| 89 |
+
'sec-fetch-site': 'same-site',
|
| 90 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 91 |
+
'x-clipdrop-pro-client': 'false'
|
| 92 |
+
}
|
| 93 |
+
response = requests.request("POST", url, headers=headers, data=payload, files=files)
|
| 94 |
+
try:
|
| 95 |
+
if("error" in response.json().keys()):
|
| 96 |
+
imageGenrated = 100
|
| 97 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 98 |
+
except:
|
| 99 |
+
pass
|
| 100 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 101 |
+
|
| 102 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
@csrf_exempt
|
| 106 |
+
def cleanUp(request):
|
| 107 |
+
global access_token, imageGenrated,startTime
|
| 108 |
+
if request.method == 'POST':
|
| 109 |
+
image = request.FILES['image']
|
| 110 |
+
mask = request.FILES['mask']
|
| 111 |
+
temp1 = Image.open(image)
|
| 112 |
+
temp2 = Image.open(mask)
|
| 113 |
+
temp1.save("temp1.png")
|
| 114 |
+
temp2.save("temp2.png")
|
| 115 |
+
endTime = datetime.now()
|
| 116 |
+
imageGenrated = imageGenrated + 1
|
| 117 |
+
print((endTime - startTime).total_seconds())
|
| 118 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 119 |
+
access_token = ""
|
| 120 |
+
imageGenrated = 0
|
| 121 |
+
startTime = datetime.now()
|
| 122 |
+
if access_token == "":
|
| 123 |
+
access_token = tokenGenrator(request)
|
| 124 |
+
url = "https://api.clipdrop.co/cleanup/v1"
|
| 125 |
+
files=[
|
| 126 |
+
('image_file',(image.name,image)),
|
| 127 |
+
('mask_file',(mask.name,mask))
|
| 128 |
+
]
|
| 129 |
+
headers = {
|
| 130 |
+
'authority': 'api.clipdrop.co',
|
| 131 |
+
'accept': '*/*',
|
| 132 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 133 |
+
'authorization': 'Bearer '+access_token,
|
| 134 |
+
'origin': 'https://clipdrop.co',
|
| 135 |
+
'referer': 'https://clipdrop.co/',
|
| 136 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 137 |
+
'sec-ch-ua-mobile': '?0',
|
| 138 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 139 |
+
'sec-fetch-dest': 'empty',
|
| 140 |
+
'sec-fetch-mode': 'cors',
|
| 141 |
+
'sec-fetch-site': 'same-site',
|
| 142 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 143 |
+
'x-clipdrop-pro-client': 'false'
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
response = requests.request("POST", url, headers=headers, files=files)
|
| 147 |
+
try:
|
| 148 |
+
print(response.json())
|
| 149 |
+
if("error" in response.json().keys()):
|
| 150 |
+
imageGenrated = 100
|
| 151 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 152 |
+
except:
|
| 153 |
+
pass
|
| 154 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 155 |
+
|
| 156 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 157 |
+
|
| 158 |
+
@csrf_exempt
|
| 159 |
+
def imageUpscaler(request):
|
| 160 |
+
global access_token, imageGenrated,startTime
|
| 161 |
+
if request.method == 'POST':
|
| 162 |
+
image = request.FILES['image']
|
| 163 |
+
upscale = request.POST['upscale']
|
| 164 |
+
endTime = datetime.now()
|
| 165 |
+
imageGenrated = imageGenrated + 1
|
| 166 |
+
print((endTime - startTime).total_seconds())
|
| 167 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 168 |
+
access_token = ""
|
| 169 |
+
imageGenrated = 0
|
| 170 |
+
startTime = datetime.now()
|
| 171 |
+
if access_token == "":
|
| 172 |
+
access_token = tokenGenrator(request)
|
| 173 |
+
url = "https://api.clipdrop.co/super-resolution/v1"
|
| 174 |
+
payload={'upscale': upscale,'output_format': 'png'}
|
| 175 |
+
files=[
|
| 176 |
+
('image_file',(image.name,image))
|
| 177 |
+
]
|
| 178 |
+
headers = {
|
| 179 |
+
'authority': 'api.clipdrop.co',
|
| 180 |
+
'accept': 'application/zip',
|
| 181 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 182 |
+
'authorization': 'Bearer '+access_token,
|
| 183 |
+
'origin': 'https://clipdrop.co',
|
| 184 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 185 |
+
'sec-ch-ua-mobile': '?0',
|
| 186 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 187 |
+
'sec-fetch-dest': 'empty',
|
| 188 |
+
'sec-fetch-mode': 'cors',
|
| 189 |
+
'sec-fetch-site': 'same-site',
|
| 190 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 191 |
+
'x-clipdrop-pro-client': 'false'
|
| 192 |
+
}
|
| 193 |
+
response = requests.request("POST", url, headers=headers, data=payload, files=files)
|
| 194 |
+
try:
|
| 195 |
+
if("error" in response.json().keys()):
|
| 196 |
+
imageGenrated = 100
|
| 197 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 198 |
+
except:
|
| 199 |
+
pass
|
| 200 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 201 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 202 |
+
|
| 203 |
+
@csrf_exempt
|
| 204 |
+
def textRemoval(request):
|
| 205 |
+
global access_token, imageGenrated,startTime
|
| 206 |
+
if request.method == 'POST':
|
| 207 |
+
image = request.FILES['image']
|
| 208 |
+
endTime = datetime.now()
|
| 209 |
+
imageGenrated = imageGenrated + 1
|
| 210 |
+
print((endTime - startTime).total_seconds())
|
| 211 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 212 |
+
access_token = ""
|
| 213 |
+
imageGenrated = 0
|
| 214 |
+
startTime = datetime.now()
|
| 215 |
+
if access_token == "":
|
| 216 |
+
access_token = tokenGenrator(request)
|
| 217 |
+
url = "https://api.clipdrop.co/remove-text/v1"
|
| 218 |
+
files=[
|
| 219 |
+
('image_file',(image.name,image))
|
| 220 |
+
]
|
| 221 |
+
headers = {
|
| 222 |
+
'authority': 'api.clipdrop.co',
|
| 223 |
+
'accept': 'application/zip',
|
| 224 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 225 |
+
'authorization': 'Bearer '+access_token,
|
| 226 |
+
'origin': 'https://clipdrop.co',
|
| 227 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 228 |
+
'sec-ch-ua-mobile': '?0',
|
| 229 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 230 |
+
'sec-fetch-dest': 'empty',
|
| 231 |
+
'sec-fetch-mode': 'cors',
|
| 232 |
+
'sec-fetch-site': 'same-site',
|
| 233 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 234 |
+
'x-clipdrop-pro-client': 'false'
|
| 235 |
+
}
|
| 236 |
+
response = requests.request("POST", url, headers=headers, files=files)
|
| 237 |
+
try:
|
| 238 |
+
if("error" in response.json().keys()):
|
| 239 |
+
imageGenrated = 100
|
| 240 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 241 |
+
except:
|
| 242 |
+
pass
|
| 243 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 244 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 245 |
+
|
| 246 |
+
@csrf_exempt
|
| 247 |
+
def gtokenSet(request):
|
| 248 |
+
global gtoken
|
| 249 |
+
if request.method == 'GET':
|
| 250 |
+
gtoken = request.GET.get('gtoken')
|
| 251 |
+
return HttpResponse(json.dumps({"msg":"Token Set"}), content_type="application/json")
|
| 252 |
+
return HttpResponse(json.dumps({"msg":"Token Not Set"}), content_type="application/json")
|
| 253 |
+
|
| 254 |
+
@csrf_exempt
|
| 255 |
+
def purifySet(request):
|
| 256 |
+
global purifyAPI
|
| 257 |
+
if request.method == 'GET':
|
| 258 |
+
purifyAPI = request.GET.get('purifyAPI')
|
| 259 |
+
return HttpResponse(json.dumps({"msg":"Token Set"}), content_type="application/json")
|
| 260 |
+
return HttpResponse(json.dumps({"msg":"Token Not Set"}), content_type="application/json")
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
@csrf_exempt
|
| 264 |
+
def visionAI(request):
|
| 265 |
+
global gtoken,purifyAPI
|
| 266 |
+
if request.method == 'POST':
|
| 267 |
+
image = request.FILES['image']
|
| 268 |
+
encoded_string = base64.b64encode(image.read()).decode('utf-8')
|
| 269 |
+
url = "https://content-vision.googleapis.com/v1/images:annotate?alt=json&key=AIzaSyAa8yy0GdcGPHdtD083HiGGx_S0vMPScDM"
|
| 270 |
+
payload = {"requests":[{"image":{"content":encoded_string},"features": [{"type": "LANDMARK_DETECTION","maxResults": 50},{"type": "FACE_DETECTION","maxResults": 50},{"type": "OBJECT_LOCALIZATION","maxResults": 50},{"type": "LOGO_DETECTION","maxResults": 50},{"type": "LABEL_DETECTION","maxResults": 50},{"type": "DOCUMENT_TEXT_DETECTION","maxResults": 50,"model": "builtin/latest"},{"type": "SAFE_SEARCH_DETECTION","maxResults": 100}]}]}
|
| 271 |
+
headers = {
|
| 272 |
+
'authority': 'content-vision.googleapis.com',
|
| 273 |
+
'accept': '*/*',
|
| 274 |
+
'accept-language': 'en-US,en;q=0.9,gu;q=0.8',
|
| 275 |
+
'content-type': 'application/json',
|
| 276 |
+
'origin': 'https://content-vision.googleapis.com',
|
| 277 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 278 |
+
'x-origin': 'https://explorer.apis.google.com',
|
| 279 |
+
'x-requested-with': 'XMLHttpRequest'
|
| 280 |
+
}
|
| 281 |
+
print(gtoken)
|
| 282 |
+
try:
|
| 283 |
+
response = requests.request("POST", url, headers=headers, data=json.dumps(payload))
|
| 284 |
+
print(response.json()["responses"][0].keys())
|
| 285 |
+
data = {}
|
| 286 |
+
try:
|
| 287 |
+
data["Label"] = response.json()["responses"][0]["labelAnnotations"]
|
| 288 |
+
except:
|
| 289 |
+
pass
|
| 290 |
+
try:
|
| 291 |
+
data["Logo"] = response.json()["responses"][0]["logoAnnotations"]
|
| 292 |
+
except:
|
| 293 |
+
pass
|
| 294 |
+
try:
|
| 295 |
+
data["Text"] = response.json()["responses"][0]["fullTextAnnotation"]["text"]
|
| 296 |
+
except:
|
| 297 |
+
pass
|
| 298 |
+
try:
|
| 299 |
+
data["Safe Search"] = response.json()["responses"][0]["safeSearchAnnotation"]
|
| 300 |
+
except:
|
| 301 |
+
pass
|
| 302 |
+
try:
|
| 303 |
+
data["Object"] = response.json()["responses"][0]["localizedObjectAnnotations"]
|
| 304 |
+
except:
|
| 305 |
+
pass
|
| 306 |
+
try:
|
| 307 |
+
data["Face"] = response.json()["responses"][0]["faceAnnotations"]
|
| 308 |
+
except:
|
| 309 |
+
pass
|
| 310 |
+
# try:
|
| 311 |
+
# imgUrl = imgUrlGen(image)
|
| 312 |
+
# url = "https://im-api1.webpurify.com/services/rest/?api_key="+purifyAPI+"&cats=nudity,wad,offensive,gore,text,faces,celebrities,ocr,scam&method=webpurify.hybrid.imgcheck&threshold_nudity_lt=50&imgurl="+imgUrl
|
| 313 |
+
# response = requests.request("GET", url)
|
| 314 |
+
# purifyData = xmltodict.parse(response.text)
|
| 315 |
+
# data["Summary"] = purifyData["rsp"]
|
| 316 |
+
# except:
|
| 317 |
+
# print("Purify API Error")
|
| 318 |
+
# pass
|
| 319 |
+
return HttpResponse(json.dumps({"data":data}), content_type="application/json")
|
| 320 |
+
except:
|
| 321 |
+
print("Gtoken API Error")
|
| 322 |
+
return HttpResponse(json.dumps({"error":"Gtoken API Error"}), content_type="application/json")
|
| 323 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
def genrator(prompt,style):
|
| 327 |
+
global token
|
| 328 |
+
url = "https://paint.api.wombo.ai/api/tasks"
|
| 329 |
+
|
| 330 |
+
payload = "{\"premium\":false}"
|
| 331 |
+
headers = {
|
| 332 |
+
'sec-ch-ua':
|
| 333 |
+
'"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',
|
| 334 |
+
'Authorization': token,
|
| 335 |
+
'x-app-version': 'WEB-1.90.1',
|
| 336 |
+
'sec-ch-ua-mobile': '?0',
|
| 337 |
+
'Content-Type': 'text/plain;charset=UTF-8',
|
| 338 |
+
'User-Agent':
|
| 339 |
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
|
| 340 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 341 |
+
'Accept': '*/*',
|
| 342 |
+
'host': 'paint.api.wombo.ai'
|
| 343 |
+
}
|
| 344 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 345 |
+
id = str(response.json()['id'])
|
| 346 |
+
url = "https://paint.api.wombo.ai/api/tasks/" + id
|
| 347 |
+
|
| 348 |
+
payload = "{\"input_spec\":{\"prompt\":\"" + prompt + "\",\"style\":"+str(style)+",\"display_freq\":10}}"
|
| 349 |
+
headers = {
|
| 350 |
+
'sec-ch-ua':
|
| 351 |
+
'"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',
|
| 352 |
+
'Authorization': token,
|
| 353 |
+
'x-app-version': 'WEB-1.90.1',
|
| 354 |
+
'sec-ch-ua-mobile': '?0',
|
| 355 |
+
'Content-Type': 'text/plain;charset=UTF-8',
|
| 356 |
+
'User-Agent':
|
| 357 |
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
|
| 358 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 359 |
+
'Accept': '*/*',
|
| 360 |
+
'host': 'paint.api.wombo.ai'
|
| 361 |
+
}
|
| 362 |
+
|
| 363 |
+
response = requests.request("PUT", url, headers=headers, data=payload)
|
| 364 |
+
url = "https://paint.api.wombo.ai/api/tasks/" + id
|
| 365 |
+
|
| 366 |
+
payload = {}
|
| 367 |
+
headers = {
|
| 368 |
+
'sec-ch-ua':
|
| 369 |
+
'"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',
|
| 370 |
+
'Authorization': token,
|
| 371 |
+
'x-app-version': 'WEB-1.90.1',
|
| 372 |
+
'sec-ch-ua-mobile': '?0',
|
| 373 |
+
'User-Agent':
|
| 374 |
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
|
| 375 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 376 |
+
'Accept': '*/*',
|
| 377 |
+
'host': 'paint.api.wombo.ai'
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
response = requests.request("GET", url, headers=headers, data=payload)
|
| 381 |
+
count = 1
|
| 382 |
+
while response.json()["result"] == None and count < 30:
|
| 383 |
+
time.sleep(1)
|
| 384 |
+
response = requests.request("GET", url, headers=headers, data=payload)
|
| 385 |
+
count = count + 1
|
| 386 |
+
try:
|
| 387 |
+
returnData = "https://images.wombo.art/generated/" + response.json()['photo_url_list'][-1].split("generated/")[1]
|
| 388 |
+
return returnData
|
| 389 |
+
except:
|
| 390 |
+
return "Error try again"
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
@csrf_exempt
|
| 394 |
+
def imageGen(request):
|
| 395 |
+
global token
|
| 396 |
+
if request.method == 'POST':
|
| 397 |
+
prompt = request.POST.get('prompt')
|
| 398 |
+
style = request.POST.get('style')
|
| 399 |
+
try:
|
| 400 |
+
link = genrator(prompt,style)
|
| 401 |
+
return HttpResponse(json.dumps({"data":link}), content_type="application/json")
|
| 402 |
+
except:
|
| 403 |
+
url = "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw"
|
| 404 |
+
payload = "{returnSecureToken: true}"
|
| 405 |
+
headers = {'Content-Type': 'application/javascript'}
|
| 406 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 407 |
+
token = "bearer " + str(response.json()['idToken'])
|
| 408 |
+
link = genrator(prompt,style)
|
| 409 |
+
return HttpResponse(json.dumps({"data":link}), content_type="application/json")
|
| 410 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
@csrf_exempt
|
| 414 |
+
def reimagine(request):
|
| 415 |
+
global access_token, imageGenrated,startTime
|
| 416 |
+
if request.method == 'POST':
|
| 417 |
+
image = request.FILES['image']
|
| 418 |
+
# resize image to max 768x768
|
| 419 |
+
image = Image.open(image)
|
| 420 |
+
if image.size[0] > 768 or image.size[1] > 768:
|
| 421 |
+
if image.size[0] > image.size[1]:
|
| 422 |
+
image = image.resize((768, int(image.size[1]*768/image.size[0])))
|
| 423 |
+
else:
|
| 424 |
+
image = image.resize((int(image.size[0]*768/image.size[1]), 768))
|
| 425 |
+
image = image.convert('RGB')
|
| 426 |
+
# convert image to bytes
|
| 427 |
+
imageByteArr = io.BytesIO()
|
| 428 |
+
image.save(imageByteArr, format='PNG')
|
| 429 |
+
image = imageByteArr.getvalue()
|
| 430 |
+
|
| 431 |
+
endTime = datetime.now()
|
| 432 |
+
imageGenrated = imageGenrated + 1
|
| 433 |
+
print((endTime - startTime).total_seconds())
|
| 434 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 435 |
+
access_token = ""
|
| 436 |
+
imageGenrated = 0
|
| 437 |
+
startTime = datetime.now()
|
| 438 |
+
if access_token == "":
|
| 439 |
+
access_token = tokenGenrator(request)
|
| 440 |
+
url = "https://api.clipdrop.co/diffusion/v1/image-variations"
|
| 441 |
+
files=[
|
| 442 |
+
('image_file',('image.png',image,'image/png'))
|
| 443 |
+
]
|
| 444 |
+
headers = {
|
| 445 |
+
'authority': 'api.clipdrop.co',
|
| 446 |
+
'accept': 'application/zip',
|
| 447 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 448 |
+
'authorization': 'Bearer '+access_token,
|
| 449 |
+
'origin': 'https://clipdrop.co',
|
| 450 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 451 |
+
'sec-ch-ua-mobile': '?0',
|
| 452 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 453 |
+
'sec-fetch-dest': 'empty',
|
| 454 |
+
'sec-fetch-mode': 'cors',
|
| 455 |
+
'sec-fetch-site': 'same-site',
|
| 456 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 457 |
+
'x-clipdrop-pro-client': 'false'
|
| 458 |
+
}
|
| 459 |
+
payload={"amount_to_generate":4}
|
| 460 |
+
response = requests.request("POST", url, headers=headers, data=payload, files=files)
|
| 461 |
+
try:
|
| 462 |
+
if("error" in response.json().keys()):
|
| 463 |
+
imageGenrated = 100
|
| 464 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 465 |
+
except:
|
| 466 |
+
pass
|
| 467 |
+
return HttpResponse(response.content, content_type="application/zip")
|
| 468 |
+
|
| 469 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
api/views.py.dacc480a95df4e91cf44e8b780e4c741.tmp
ADDED
|
@@ -0,0 +1,469 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.shortcuts import render
|
| 2 |
+
from django.http import HttpResponse
|
| 3 |
+
import json
|
| 4 |
+
from django.views.decorators.csrf import csrf_exempt
|
| 5 |
+
import requests
|
| 6 |
+
import base64
|
| 7 |
+
from datetime import datetime
|
| 8 |
+
import http.client
|
| 9 |
+
import time
|
| 10 |
+
from PIL import Image,ImageFilter
|
| 11 |
+
import io
|
| 12 |
+
|
| 13 |
+
# https://explorer.apis.google.com/embedded.js search for ac=" for api key
|
| 14 |
+
|
| 15 |
+
access_token = ""
|
| 16 |
+
refresh_token = ""
|
| 17 |
+
id_token = ""
|
| 18 |
+
gtoken = "03AKH6MRFNT6HVvCOEeeOZyehLohN3SQQGtPX-5ZuPkxCP3z1qhjhETBgPXUF1OsuYmdwZHvbHHKGV8b1I6B37WvbE0NqnncINIjUnZ9V3eBYPpBT2YXVV6I88n84L25v2PS8k3TGSj5oVFP1WhBSwR_pX7AmqJM7xq-47mjzOrRfpbEHNeQLOBGxQTVBVCP7IjNB6Yv4NmUYgqyv261dSmfh-RTgQWvA_05vs_J4R7eCPGr7xhSzd4jSXRsZDuf0zkyzeMHbEIf07Mrp0AaeB-bv14jNakWaAyDXNRg1yPzTUuQa3yVPBlx49VxrGC5tVKCN2CsWnrsd2BQD7A2BBzQPDz_rpGL3EVyl7Gh5qY8DYuGgK8pRTrbVAbDyacYoOmgYjoX7VAGx_3kKYLz6dHTF_8WeC_AIpwwP-KT6YDpT-wV7HkyxdkouYUuHdlQQKaPQ6eRDnkzqkOOCEZ1yPE_6eh2NeF41P-Z6Iy-B4tdAyHPW0AmO-pH8TsgUmlHpfaHuDuKj3XWme5dDloH2rSa1SQFyIeXUDE0uyG8KlX4MqzcBxefia1Z8"
|
| 19 |
+
imageGenrated = 0
|
| 20 |
+
startTime = datetime.now()
|
| 21 |
+
csrfToken = ""
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def tokenGenrator(request):
|
| 25 |
+
global access_token, refresh_token, id_token
|
| 26 |
+
url = "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyB6cfZFPraybh6ziyKIMO-afl11alZNlTI"
|
| 27 |
+
payload = json.dumps({
|
| 28 |
+
"returnSecureToken": True
|
| 29 |
+
})
|
| 30 |
+
headers = {
|
| 31 |
+
'authority': 'identitytoolkit.googleapis.com',
|
| 32 |
+
'accept': '*/*',
|
| 33 |
+
'content-type': 'application/json',
|
| 34 |
+
'origin': 'https://clipdrop.co',
|
| 35 |
+
'x-client-version': 'Chrome/JsCore/9.15.0/FirebaseCore-web'
|
| 36 |
+
}
|
| 37 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 38 |
+
refresh_token = response.json()['refreshToken']
|
| 39 |
+
id_token = response.json()['idToken']
|
| 40 |
+
url = "https://securetoken.googleapis.com/v1/token?key=AIzaSyB6cfZFPraybh6ziyKIMO-afl11alZNlTI"
|
| 41 |
+
payload='grant_type=refresh_token&refresh_token=' + refresh_token
|
| 42 |
+
headers = {
|
| 43 |
+
'authority': 'securetoken.googleapis.com',
|
| 44 |
+
'accept': '*/*',
|
| 45 |
+
'content-type': 'application/x-www-form-urlencoded',
|
| 46 |
+
'origin': 'https://clipdrop.co'
|
| 47 |
+
}
|
| 48 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 49 |
+
access_token = response.json()['access_token']
|
| 50 |
+
refresh_token = response.json()['refresh_token']
|
| 51 |
+
id_token = response.json()['id_token']
|
| 52 |
+
return access_token
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def helloWorld(request):
|
| 56 |
+
return HttpResponse(json.dumps({"msg":"Hello World"}), content_type="application/json")
|
| 57 |
+
|
| 58 |
+
@csrf_exempt
|
| 59 |
+
def backgroundRemover(request):
|
| 60 |
+
global access_token, imageGenrated,startTime
|
| 61 |
+
if request.method == 'POST':
|
| 62 |
+
image = request.FILES['image']
|
| 63 |
+
endTime = datetime.now()
|
| 64 |
+
imageGenrated = imageGenrated + 1
|
| 65 |
+
print((endTime - startTime).total_seconds())
|
| 66 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 67 |
+
access_token = ""
|
| 68 |
+
imageGenrated = 0
|
| 69 |
+
startTime = datetime.now()
|
| 70 |
+
if access_token == "":
|
| 71 |
+
access_token = tokenGenrator(request)
|
| 72 |
+
print(access_token)
|
| 73 |
+
url = "https://api.clipdrop.co/remove-background/v2"
|
| 74 |
+
payload={'outputs[]': 'composite','composite_format': 'webp'}
|
| 75 |
+
files=[
|
| 76 |
+
('image_file',(image.name,image))
|
| 77 |
+
]
|
| 78 |
+
headers = {
|
| 79 |
+
'authority': 'api.clipdrop.co',
|
| 80 |
+
'accept': 'application/zip',
|
| 81 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 82 |
+
'authorization': 'Bearer '+access_token,
|
| 83 |
+
'origin': 'https://clipdrop.co',
|
| 84 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 85 |
+
'sec-ch-ua-mobile': '?0',
|
| 86 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 87 |
+
'sec-fetch-dest': 'empty',
|
| 88 |
+
'sec-fetch-mode': 'cors',
|
| 89 |
+
'sec-fetch-site': 'same-site',
|
| 90 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 91 |
+
'x-clipdrop-pro-client': 'false'
|
| 92 |
+
}
|
| 93 |
+
response = requests.request("POST", url, headers=headers, data=payload, files=files)
|
| 94 |
+
try:
|
| 95 |
+
if("error" in response.json().keys()):
|
| 96 |
+
imageGenrated = 100
|
| 97 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 98 |
+
except:
|
| 99 |
+
pass
|
| 100 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 101 |
+
|
| 102 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
@csrf_exempt
|
| 106 |
+
def cleanUp(request):
|
| 107 |
+
global access_token, imageGenrated,startTime
|
| 108 |
+
if request.method == 'POST':
|
| 109 |
+
image = request.FILES['image']
|
| 110 |
+
mask = request.FILES['mask']
|
| 111 |
+
temp1 = Image.open(image)
|
| 112 |
+
temp2 = Image.open(mask)
|
| 113 |
+
temp1.save("temp1.png")
|
| 114 |
+
temp2.save("temp2.png")
|
| 115 |
+
endTime = datetime.now()
|
| 116 |
+
imageGenrated = imageGenrated + 1
|
| 117 |
+
print((endTime - startTime).total_seconds())
|
| 118 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 119 |
+
access_token = ""
|
| 120 |
+
imageGenrated = 0
|
| 121 |
+
startTime = datetime.now()
|
| 122 |
+
if access_token == "":
|
| 123 |
+
access_token = tokenGenrator(request)
|
| 124 |
+
url = "https://api.clipdrop.co/cleanup/v1"
|
| 125 |
+
files=[
|
| 126 |
+
('image_file',(image.name,image)),
|
| 127 |
+
('mask_file',(mask.name,mask))
|
| 128 |
+
]
|
| 129 |
+
headers = {
|
| 130 |
+
'authority': 'api.clipdrop.co',
|
| 131 |
+
'accept': '*/*',
|
| 132 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 133 |
+
'authorization': 'Bearer '+access_token,
|
| 134 |
+
'origin': 'https://clipdrop.co',
|
| 135 |
+
'referer': 'https://clipdrop.co/',
|
| 136 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 137 |
+
'sec-ch-ua-mobile': '?0',
|
| 138 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 139 |
+
'sec-fetch-dest': 'empty',
|
| 140 |
+
'sec-fetch-mode': 'cors',
|
| 141 |
+
'sec-fetch-site': 'same-site',
|
| 142 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 143 |
+
'x-clipdrop-pro-client': 'false'
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
response = requests.request("POST", url, headers=headers, files=files)
|
| 147 |
+
try:
|
| 148 |
+
print(response.json())
|
| 149 |
+
if("error" in response.json().keys()):
|
| 150 |
+
imageGenrated = 100
|
| 151 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 152 |
+
except:
|
| 153 |
+
pass
|
| 154 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 155 |
+
|
| 156 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 157 |
+
|
| 158 |
+
@csrf_exempt
|
| 159 |
+
def imageUpscaler(request):
|
| 160 |
+
global access_token, imageGenrated,startTime
|
| 161 |
+
if request.method == 'POST':
|
| 162 |
+
image = request.FILES['image']
|
| 163 |
+
upscale = request.POST['upscale']
|
| 164 |
+
endTime = datetime.now()
|
| 165 |
+
imageGenrated = imageGenrated + 1
|
| 166 |
+
print((endTime - startTime).total_seconds())
|
| 167 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 168 |
+
access_token = ""
|
| 169 |
+
imageGenrated = 0
|
| 170 |
+
startTime = datetime.now()
|
| 171 |
+
if access_token == "":
|
| 172 |
+
access_token = tokenGenrator(request)
|
| 173 |
+
url = "https://api.clipdrop.co/super-resolution/v1"
|
| 174 |
+
payload={'upscale': upscale,'output_format': 'png'}
|
| 175 |
+
files=[
|
| 176 |
+
('image_file',(image.name,image))
|
| 177 |
+
]
|
| 178 |
+
headers = {
|
| 179 |
+
'authority': 'api.clipdrop.co',
|
| 180 |
+
'accept': 'application/zip',
|
| 181 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 182 |
+
'authorization': 'Bearer '+access_token,
|
| 183 |
+
'origin': 'https://clipdrop.co',
|
| 184 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 185 |
+
'sec-ch-ua-mobile': '?0',
|
| 186 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 187 |
+
'sec-fetch-dest': 'empty',
|
| 188 |
+
'sec-fetch-mode': 'cors',
|
| 189 |
+
'sec-fetch-site': 'same-site',
|
| 190 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 191 |
+
'x-clipdrop-pro-client': 'false'
|
| 192 |
+
}
|
| 193 |
+
response = requests.request("POST", url, headers=headers, data=payload, files=files)
|
| 194 |
+
try:
|
| 195 |
+
if("error" in response.json().keys()):
|
| 196 |
+
imageGenrated = 100
|
| 197 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 198 |
+
except:
|
| 199 |
+
pass
|
| 200 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 201 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 202 |
+
|
| 203 |
+
@csrf_exempt
|
| 204 |
+
def textRemoval(request):
|
| 205 |
+
global access_token, imageGenrated,startTime
|
| 206 |
+
if request.method == 'POST':
|
| 207 |
+
image = request.FILES['image']
|
| 208 |
+
endTime = datetime.now()
|
| 209 |
+
imageGenrated = imageGenrated + 1
|
| 210 |
+
print((endTime - startTime).total_seconds())
|
| 211 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 212 |
+
access_token = ""
|
| 213 |
+
imageGenrated = 0
|
| 214 |
+
startTime = datetime.now()
|
| 215 |
+
if access_token == "":
|
| 216 |
+
access_token = tokenGenrator(request)
|
| 217 |
+
url = "https://api.clipdrop.co/remove-text/v1"
|
| 218 |
+
files=[
|
| 219 |
+
('image_file',(image.name,image))
|
| 220 |
+
]
|
| 221 |
+
headers = {
|
| 222 |
+
'authority': 'api.clipdrop.co',
|
| 223 |
+
'accept': 'application/zip',
|
| 224 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 225 |
+
'authorization': 'Bearer '+access_token,
|
| 226 |
+
'origin': 'https://clipdrop.co',
|
| 227 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 228 |
+
'sec-ch-ua-mobile': '?0',
|
| 229 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 230 |
+
'sec-fetch-dest': 'empty',
|
| 231 |
+
'sec-fetch-mode': 'cors',
|
| 232 |
+
'sec-fetch-site': 'same-site',
|
| 233 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 234 |
+
'x-clipdrop-pro-client': 'false'
|
| 235 |
+
}
|
| 236 |
+
response = requests.request("POST", url, headers=headers, files=files)
|
| 237 |
+
try:
|
| 238 |
+
if("error" in response.json().keys()):
|
| 239 |
+
imageGenrated = 100
|
| 240 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 241 |
+
except:
|
| 242 |
+
pass
|
| 243 |
+
return HttpResponse(response.content, content_type="image/png")
|
| 244 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 245 |
+
|
| 246 |
+
@csrf_exempt
|
| 247 |
+
def gtokenSet(request):
|
| 248 |
+
global gtoken
|
| 249 |
+
if request.method == 'GET':
|
| 250 |
+
gtoken = request.GET.get('gtoken')
|
| 251 |
+
return HttpResponse(json.dumps({"msg":"Token Set"}), content_type="application/json")
|
| 252 |
+
return HttpResponse(json.dumps({"msg":"Token Not Set"}), content_type="application/json")
|
| 253 |
+
|
| 254 |
+
@csrf_exempt
|
| 255 |
+
def purifySet(request):
|
| 256 |
+
global purifyAPI
|
| 257 |
+
if request.method == 'GET':
|
| 258 |
+
purifyAPI = request.GET.get('purifyAPI')
|
| 259 |
+
return HttpResponse(json.dumps({"msg":"Token Set"}), content_type="application/json")
|
| 260 |
+
return HttpResponse(json.dumps({"msg":"Token Not Set"}), content_type="application/json")
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
@csrf_exempt
|
| 264 |
+
def visionAI(request):
|
| 265 |
+
global gtoken,purifyAPI
|
| 266 |
+
if request.method == 'POST':
|
| 267 |
+
image = request.FILES['image']
|
| 268 |
+
encoded_string = base64.b64encode(image.read()).decode('utf-8')
|
| 269 |
+
url = "https://content-vision.googleapis.com/v1/images:annotate?alt=json&key=AIzaSyAa8yy0GdcGPHdtD083HiGGx_S0vMPScDM"
|
| 270 |
+
payload = {"requests":[{"image":{"content":encoded_string},"features": [{"type": "LANDMARK_DETECTION","maxResults": 50},{"type": "FACE_DETECTION","maxResults": 50},{"type": "OBJECT_LOCALIZATION","maxResults": 50},{"type": "LOGO_DETECTION","maxResults": 50},{"type": "LABEL_DETECTION","maxResults": 50},{"type": "DOCUMENT_TEXT_DETECTION","maxResults": 50,"model": "builtin/latest"},{"type": "SAFE_SEARCH_DETECTION","maxResults": 100}]}]}
|
| 271 |
+
headers = {
|
| 272 |
+
'authority': 'content-vision.googleapis.com',
|
| 273 |
+
'accept': '*/*',
|
| 274 |
+
'accept-language': 'en-US,en;q=0.9,gu;q=0.8',
|
| 275 |
+
'content-type': 'application/json',
|
| 276 |
+
'origin': 'https://content-vision.googleapis.com',
|
| 277 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 278 |
+
'x-origin': 'https://explorer.apis.google.com',
|
| 279 |
+
'x-requested-with': 'XMLHttpRequest'
|
| 280 |
+
}
|
| 281 |
+
print(gtoken)
|
| 282 |
+
try:
|
| 283 |
+
response = requests.request("POST", url, headers=headers, data=json.dumps(payload))
|
| 284 |
+
print(response.json()["responses"][0].keys())
|
| 285 |
+
data = {}
|
| 286 |
+
try:
|
| 287 |
+
data["Label"] = response.json()["responses"][0]["labelAnnotations"]
|
| 288 |
+
except:
|
| 289 |
+
pass
|
| 290 |
+
try:
|
| 291 |
+
data["Logo"] = response.json()["responses"][0]["logoAnnotations"]
|
| 292 |
+
except:
|
| 293 |
+
pass
|
| 294 |
+
try:
|
| 295 |
+
data["Text"] = response.json()["responses"][0]["fullTextAnnotation"]["text"]
|
| 296 |
+
except:
|
| 297 |
+
pass
|
| 298 |
+
try:
|
| 299 |
+
data["Safe Search"] = response.json()["responses"][0]["safeSearchAnnotation"]
|
| 300 |
+
except:
|
| 301 |
+
pass
|
| 302 |
+
try:
|
| 303 |
+
data["Object"] = response.json()["responses"][0]["localizedObjectAnnotations"]
|
| 304 |
+
except:
|
| 305 |
+
pass
|
| 306 |
+
try:
|
| 307 |
+
data["Face"] = response.json()["responses"][0]["faceAnnotations"]
|
| 308 |
+
except:
|
| 309 |
+
pass
|
| 310 |
+
# try:
|
| 311 |
+
# imgUrl = imgUrlGen(image)
|
| 312 |
+
# url = "https://im-api1.webpurify.com/services/rest/?api_key="+purifyAPI+"&cats=nudity,wad,offensive,gore,text,faces,celebrities,ocr,scam&method=webpurify.hybrid.imgcheck&threshold_nudity_lt=50&imgurl="+imgUrl
|
| 313 |
+
# response = requests.request("GET", url)
|
| 314 |
+
# purifyData = xmltodict.parse(response.text)
|
| 315 |
+
# data["Summary"] = purifyData["rsp"]
|
| 316 |
+
# except:
|
| 317 |
+
# print("Purify API Error")
|
| 318 |
+
# pass
|
| 319 |
+
return HttpResponse(json.dumps({"data":data}), content_type="application/json")
|
| 320 |
+
except:
|
| 321 |
+
print("Gtoken API Error")
|
| 322 |
+
return HttpResponse(json.dumps({"error":"Gtoken API Error"}), content_type="application/json")
|
| 323 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
def genrator(prompt,style):
|
| 327 |
+
global token
|
| 328 |
+
url = "https://paint.api.wombo.ai/api/tasks"
|
| 329 |
+
|
| 330 |
+
payload = "{\"premium\":false}"
|
| 331 |
+
headers = {
|
| 332 |
+
'sec-ch-ua':
|
| 333 |
+
'"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',
|
| 334 |
+
'Authorization': token,
|
| 335 |
+
'x-app-version': 'WEB-1.90.1',
|
| 336 |
+
'sec-ch-ua-mobile': '?0',
|
| 337 |
+
'Content-Type': 'text/plain;charset=UTF-8',
|
| 338 |
+
'User-Agent':
|
| 339 |
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
|
| 340 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 341 |
+
'Accept': '*/*',
|
| 342 |
+
'host': 'paint.api.wombo.ai'
|
| 343 |
+
}
|
| 344 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 345 |
+
id = str(response.json()['id'])
|
| 346 |
+
url = "https://paint.api.wombo.ai/api/tasks/" + id
|
| 347 |
+
|
| 348 |
+
payload = "{\"input_spec\":{\"prompt\":\"" + prompt + "\",\"style\":"+str(style)+",\"display_freq\":10}}"
|
| 349 |
+
headers = {
|
| 350 |
+
'sec-ch-ua':
|
| 351 |
+
'"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',
|
| 352 |
+
'Authorization': token,
|
| 353 |
+
'x-app-version': 'WEB-1.90.1',
|
| 354 |
+
'sec-ch-ua-mobile': '?0',
|
| 355 |
+
'Content-Type': 'text/plain;charset=UTF-8',
|
| 356 |
+
'User-Agent':
|
| 357 |
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
|
| 358 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 359 |
+
'Accept': '*/*',
|
| 360 |
+
'host': 'paint.api.wombo.ai'
|
| 361 |
+
}
|
| 362 |
+
|
| 363 |
+
response = requests.request("PUT", url, headers=headers, data=payload)
|
| 364 |
+
url = "https://paint.api.wombo.ai/api/tasks/" + id
|
| 365 |
+
|
| 366 |
+
payload = {}
|
| 367 |
+
headers = {
|
| 368 |
+
'sec-ch-ua':
|
| 369 |
+
'"Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"',
|
| 370 |
+
'Authorization': token,
|
| 371 |
+
'x-app-version': 'WEB-1.90.1',
|
| 372 |
+
'sec-ch-ua-mobile': '?0',
|
| 373 |
+
'User-Agent':
|
| 374 |
+
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36',
|
| 375 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 376 |
+
'Accept': '*/*',
|
| 377 |
+
'host': 'paint.api.wombo.ai'
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
response = requests.request("GET", url, headers=headers, data=payload)
|
| 381 |
+
count = 1
|
| 382 |
+
while response.json()["result"] == None and count < 30:
|
| 383 |
+
time.sleep(1)
|
| 384 |
+
response = requests.request("GET", url, headers=headers, data=payload)
|
| 385 |
+
count = count + 1
|
| 386 |
+
try:
|
| 387 |
+
returnData = "https://images.wombo.art/generated/" + response.json()['photo_url_list'][-1].split("generated/")[1]
|
| 388 |
+
return returnData
|
| 389 |
+
except:
|
| 390 |
+
return "Error try again"
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
@csrf_exempt
|
| 394 |
+
def imageGen(request):
|
| 395 |
+
global token
|
| 396 |
+
if request.method == 'POST':
|
| 397 |
+
prompt = request.POST.get('prompt')
|
| 398 |
+
style = request.POST.get('style')
|
| 399 |
+
try:
|
| 400 |
+
link = genrator(prompt,style)
|
| 401 |
+
return HttpResponse(json.dumps({"data":link}), content_type="application/json")
|
| 402 |
+
except:
|
| 403 |
+
url = "https://identitytoolkit.googleapis.com/v1/accounts:signUp?key=AIzaSyDCvp5MTJLUdtBYEKYWXJrlLzu1zuKM6Xw"
|
| 404 |
+
payload = "{returnSecureToken: true}"
|
| 405 |
+
headers = {'Content-Type': 'application/javascript'}
|
| 406 |
+
response = requests.request("POST", url, headers=headers, data=payload)
|
| 407 |
+
token = "bearer " + str(response.json()['idToken'])
|
| 408 |
+
link = genrator(prompt,style)
|
| 409 |
+
return HttpResponse(json.dumps({"data":link}), content_type="application/json")
|
| 410 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
@csrf_exempt
|
| 414 |
+
def reimagine(request):
|
| 415 |
+
global access_token, imageGenrated,startTime
|
| 416 |
+
if request.method == 'POST':
|
| 417 |
+
image = request.FILES['image']
|
| 418 |
+
# resize image to max 768x768
|
| 419 |
+
image = Image.open(image)
|
| 420 |
+
if image.size[0] > 768 or image.size[1] > 768:
|
| 421 |
+
if image.size[0] > image.size[1]:
|
| 422 |
+
image = image.resize((768, int(image.size[1]*768/image.size[0])))
|
| 423 |
+
else:
|
| 424 |
+
image = image.resize((int(image.size[0]*768/image.size[1]), 768))
|
| 425 |
+
image = image.convert('RGB')
|
| 426 |
+
# convert image to bytes
|
| 427 |
+
imageByteArr = io.BytesIO()
|
| 428 |
+
image.save(imageByteArr, format='PNG')
|
| 429 |
+
image = imageByteArr.getvalue()
|
| 430 |
+
|
| 431 |
+
endTime = datetime.now()
|
| 432 |
+
imageGenrated = imageGenrated + 1
|
| 433 |
+
print((endTime - startTime).total_seconds())
|
| 434 |
+
if (endTime - startTime).total_seconds() > 360 or imageGenrated > 10:
|
| 435 |
+
access_token = ""
|
| 436 |
+
imageGenrated = 0
|
| 437 |
+
startTime = datetime.now()
|
| 438 |
+
if access_token == "":
|
| 439 |
+
access_token = tokenGenrator(request)
|
| 440 |
+
url = "https://api.clipdrop.co/diffusion/v1/image-variations"
|
| 441 |
+
files=[
|
| 442 |
+
('image_file',('image.png',image,'image/png'))
|
| 443 |
+
]
|
| 444 |
+
headers = {
|
| 445 |
+
'authority': 'api.clipdrop.co',
|
| 446 |
+
'accept': 'application/zip',
|
| 447 |
+
'accept-language': 'en-US,en;q=0.9',
|
| 448 |
+
'authorization': 'Bearer '+access_token,
|
| 449 |
+
'origin': 'https://clipdrop.co',
|
| 450 |
+
'sec-ch-ua': '"Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"',
|
| 451 |
+
'sec-ch-ua-mobile': '?0',
|
| 452 |
+
'sec-ch-ua-platform': '"Windows"',
|
| 453 |
+
'sec-fetch-dest': 'empty',
|
| 454 |
+
'sec-fetch-mode': 'cors',
|
| 455 |
+
'sec-fetch-site': 'same-site',
|
| 456 |
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36',
|
| 457 |
+
'x-clipdrop-pro-client': 'false'
|
| 458 |
+
}
|
| 459 |
+
payload={"amount_to_generate":4}
|
| 460 |
+
response = requests.request("POST", url, headers=headers, data=payload, files=files)
|
| 461 |
+
try:
|
| 462 |
+
if("error" in response.json().keys()):
|
| 463 |
+
imageGenrated = 100
|
| 464 |
+
return HttpResponse(json.dumps(response.json()),content_type="application/json")
|
| 465 |
+
except:
|
| 466 |
+
pass
|
| 467 |
+
return HttpResponse(response.content, content_type="application/zip")
|
| 468 |
+
|
| 469 |
+
return HttpResponse(json.dumps({"error":"You were not supposed to be here."}), content_type="application/json")
|
db.sqlite3
ADDED
|
Binary file (131 kB). View file
|
|
|
manage.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
"""Django's command-line utility for administrative tasks."""
|
| 3 |
+
import os
|
| 4 |
+
import sys
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
def main():
|
| 8 |
+
"""Run administrative tasks."""
|
| 9 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'purityai.settings')
|
| 10 |
+
try:
|
| 11 |
+
from django.core.management import execute_from_command_line
|
| 12 |
+
except ImportError as exc:
|
| 13 |
+
raise ImportError(
|
| 14 |
+
"Couldn't import Django. Are you sure it's installed and "
|
| 15 |
+
"available on your PYTHONPATH environment variable? Did you "
|
| 16 |
+
"forget to activate a virtual environment?"
|
| 17 |
+
) from exc
|
| 18 |
+
execute_from_command_line(sys.argv)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
if __name__ == '__main__':
|
| 22 |
+
main()
|
purityai/__init__.py
ADDED
|
File without changes
|
purityai/__pycache__/__init__.cpython-311.pyc
ADDED
|
Binary file (173 Bytes). View file
|
|
|
purityai/__pycache__/settings.cpython-311.pyc
ADDED
|
Binary file (2.85 kB). View file
|
|
|
purityai/__pycache__/urls.cpython-311.pyc
ADDED
|
Binary file (1.66 kB). View file
|
|
|
purityai/__pycache__/wsgi.cpython-311.pyc
ADDED
|
Binary file (697 Bytes). View file
|
|
|
purityai/asgi.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
ASGI config for purityai project.
|
| 3 |
+
|
| 4 |
+
It exposes the ASGI callable as a module-level variable named ``application``.
|
| 5 |
+
|
| 6 |
+
For more information on this file, see
|
| 7 |
+
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import os
|
| 11 |
+
|
| 12 |
+
from django.core.asgi import get_asgi_application
|
| 13 |
+
|
| 14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'purityai.settings')
|
| 15 |
+
|
| 16 |
+
application = get_asgi_application()
|
purityai/settings.py
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Django settings for purityai project.
|
| 3 |
+
|
| 4 |
+
Generated by 'django-admin startproject' using Django 3.1.12.
|
| 5 |
+
|
| 6 |
+
For more information on this file, see
|
| 7 |
+
https://docs.djangoproject.com/en/3.1/topics/settings/
|
| 8 |
+
|
| 9 |
+
For the full list of settings and their values, see
|
| 10 |
+
https://docs.djangoproject.com/en/3.1/ref/settings/
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
import os
|
| 15 |
+
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
| 16 |
+
BASE_DIR = Path(__file__).resolve().parent.parent
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
# Quick-start development settings - unsuitable for production
|
| 20 |
+
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
|
| 21 |
+
|
| 22 |
+
# SECURITY WARNING: keep the secret key used in production secret!
|
| 23 |
+
SECRET_KEY = '56_4vwsezlbxn+3mcwv^yh@sw)cca6w!76_0$^y%gn8$-^ex2e'
|
| 24 |
+
|
| 25 |
+
# SECURITY WARNING: don't run with debug turned on in production!
|
| 26 |
+
DEBUG = True
|
| 27 |
+
|
| 28 |
+
ALLOWED_HOSTS = ["*","127.0.0.1"]
|
| 29 |
+
CORS_ORIGIN_ALLOW_ALL = True
|
| 30 |
+
CORS_ALLOW_CREDENTIALS = False
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
# Application definition
|
| 34 |
+
|
| 35 |
+
INSTALLED_APPS = [
|
| 36 |
+
'django.contrib.admin',
|
| 37 |
+
'django.contrib.auth',
|
| 38 |
+
'django.contrib.contenttypes',
|
| 39 |
+
'django.contrib.sessions',
|
| 40 |
+
'django.contrib.messages',
|
| 41 |
+
'django.contrib.staticfiles',
|
| 42 |
+
"corsheaders",
|
| 43 |
+
"api"
|
| 44 |
+
]
|
| 45 |
+
|
| 46 |
+
MIDDLEWARE = [
|
| 47 |
+
'django.middleware.security.SecurityMiddleware',
|
| 48 |
+
'django.contrib.sessions.middleware.SessionMiddleware',
|
| 49 |
+
'corsheaders.middleware.CorsMiddleware',
|
| 50 |
+
'django.middleware.common.CommonMiddleware',
|
| 51 |
+
'django.middleware.csrf.CsrfViewMiddleware',
|
| 52 |
+
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
| 53 |
+
'django.contrib.messages.middleware.MessageMiddleware',
|
| 54 |
+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
| 55 |
+
]
|
| 56 |
+
|
| 57 |
+
ROOT_URLCONF = 'purityai.urls'
|
| 58 |
+
|
| 59 |
+
TEMPLATES = [
|
| 60 |
+
{
|
| 61 |
+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
| 62 |
+
'DIRS': ["templates"],
|
| 63 |
+
'APP_DIRS': True,
|
| 64 |
+
'OPTIONS': {
|
| 65 |
+
'context_processors': [
|
| 66 |
+
'django.template.context_processors.debug',
|
| 67 |
+
'django.template.context_processors.request',
|
| 68 |
+
'django.contrib.auth.context_processors.auth',
|
| 69 |
+
'django.contrib.messages.context_processors.messages',
|
| 70 |
+
],
|
| 71 |
+
},
|
| 72 |
+
},
|
| 73 |
+
]
|
| 74 |
+
|
| 75 |
+
WSGI_APPLICATION = 'purityai.wsgi.application'
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
# Database
|
| 79 |
+
# https://docs.djangoproject.com/en/3.1/ref/settings/#databases
|
| 80 |
+
|
| 81 |
+
DATABASES = {
|
| 82 |
+
'default': {
|
| 83 |
+
'ENGINE': 'django.db.backends.sqlite3',
|
| 84 |
+
'NAME': BASE_DIR / 'db.sqlite3',
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
# Password validation
|
| 90 |
+
# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators
|
| 91 |
+
|
| 92 |
+
AUTH_PASSWORD_VALIDATORS = [
|
| 93 |
+
{
|
| 94 |
+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
| 104 |
+
},
|
| 105 |
+
]
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
# Internationalization
|
| 109 |
+
# https://docs.djangoproject.com/en/3.1/topics/i18n/
|
| 110 |
+
|
| 111 |
+
LANGUAGE_CODE = 'en-us'
|
| 112 |
+
|
| 113 |
+
TIME_ZONE = 'UTC'
|
| 114 |
+
|
| 115 |
+
USE_I18N = True
|
| 116 |
+
|
| 117 |
+
USE_L10N = True
|
| 118 |
+
|
| 119 |
+
USE_TZ = True
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
# Static files (CSS, JavaScript, Images)
|
| 123 |
+
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
| 124 |
+
STATIC_URL = '/static/'
|
| 125 |
+
STATICFILES_DIRS = [
|
| 126 |
+
os.path.join(BASE_DIR, "static")
|
| 127 |
+
]
|
purityai/urls.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.contrib import admin
|
| 2 |
+
from django.urls import include, path
|
| 3 |
+
from django.views.generic import TemplateView
|
| 4 |
+
|
| 5 |
+
urlpatterns = [
|
| 6 |
+
path('api/', include('api.urls')),
|
| 7 |
+
path('admin/', admin.site.urls),
|
| 8 |
+
path("",TemplateView.as_view(template_name='index.html')),
|
| 9 |
+
path("api-doc/",TemplateView.as_view(template_name='index.html')),
|
| 10 |
+
path("remove-background/",TemplateView.as_view(template_name='index.html')),
|
| 11 |
+
path("cleanup/",TemplateView.as_view(template_name='index.html')),
|
| 12 |
+
path("text-remover/",TemplateView.as_view(template_name='index.html')),
|
| 13 |
+
path("reimagine/",TemplateView.as_view(template_name='index.html')),
|
| 14 |
+
path("image-upscaler/",TemplateView.as_view(template_name='index.html')),
|
| 15 |
+
path("video2/",TemplateView.as_view(template_name='index.html')),
|
| 16 |
+
path("faq/",TemplateView.as_view(template_name='index.html')),
|
| 17 |
+
path("about-us/",TemplateView.as_view(template_name='index.html')),
|
| 18 |
+
path("text-to-image/",TemplateView.as_view(template_name='index.html')),
|
| 19 |
+
]
|
| 20 |
+
|
purityai/wsgi.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
WSGI config for purityai project.
|
| 3 |
+
|
| 4 |
+
It exposes the WSGI callable as a module-level variable named ``application``.
|
| 5 |
+
|
| 6 |
+
For more information on this file, see
|
| 7 |
+
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import os
|
| 11 |
+
|
| 12 |
+
from django.core.wsgi import get_wsgi_application
|
| 13 |
+
|
| 14 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'purityai.settings')
|
| 15 |
+
|
| 16 |
+
application = get_wsgi_application()
|
requirements.txt
ADDED
|
Binary file (680 Bytes). View file
|
|
|
static/_next/static/5AMzUELPXC7eY2oJtbjtp/_buildManifest-abd07886baeaa.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
self.__BUILD_MANIFEST = function(s, a, c, e, t, i, d, n, f, u, b, k, h) {
|
| 2 |
+
return {
|
| 3 |
+
__rewrites: {
|
| 4 |
+
beforeFiles: [],
|
| 5 |
+
afterFiles: [{
|
| 6 |
+
source: "/api/image",
|
| 7 |
+
destination: "/api/image/index"
|
| 8 |
+
}],
|
| 9 |
+
fallback: []
|
| 10 |
+
},
|
| 11 |
+
"/": [s, t, a, e, i, d, u, b, c, n, f, k, "static/chunks/pages/index-c90a382cf9aaca1e.js"],
|
| 12 |
+
"/_error": ["static/chunks/pages/_error-3d9ac92a218225f5.js"],
|
| 13 |
+
"/about": [s, a, d, c, f, "static/chunks/pages/about-758a2a5a8feeddc3.js"],
|
| 14 |
+
"/account": [s, a, e, d, c, f, "static/chunks/pages/account-60fac6b924916634.js"],
|
| 15 |
+
"/embed": [s, t, a, e, i, c, n, h, "static/chunks/pages/embed-a6edd40fc1fb98c4.js"],
|
| 16 |
+
"/embed/[id]": [s, t, a, e, i, c, n, h, "static/chunks/pages/embed/[id]-8154db841bf0d7fa.js"],
|
| 17 |
+
"/snippets": [s, t, a, e, i, d, "static/chunks/879-21b99adc8b76a16d.js", c, n, f, "static/chunks/pages/snippets-f82f191b3312699e.js"],
|
| 18 |
+
"/[id]": [s, t, a, e, i, d, u, b, c, n, f, k, "static/chunks/pages/[id]-73632945ecb22acb.js"],
|
| 19 |
+
sortedPages: ["/", "/_app", "/_error", "/about", "/account", "/embed", "/embed/[id]", "/snippets", "/[id]"]
|
| 20 |
+
}
|
| 21 |
+
}("static/chunks/ff239f9d-ca8347500655c670.js", "static/chunks/369-e8f2ba2cc85c0dd6.js", "static/chunks/94-c1d96e91c5f9c3c9.js", "static/chunks/152-b45757b9176f674c.js", "static/chunks/f65a48b9-067decfb353bc5de.js", "static/chunks/524-05696a2671cf01d2.js", "static/chunks/845-311654b20e238d40.js", "static/chunks/2-70c32d541379fb99.js", "static/chunks/129-8e32a84ec1e8703b.js", "static/chunks/758-79b4f1b284e17a18.js", "static/chunks/572-c6c8346762a6606d.js", "static/chunks/827-fed880df020d5b81.js", "static/chunks/867-624f974e1910ffb8.js"), self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB();
|
static/_next/static/5AMzUELPXC7eY2oJtbjtp/_buildManifest.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
self.__BUILD_MANIFEST = function(s, a, c, e, t, i, d, n, f, u, b, k, h) {
|
| 2 |
+
return {
|
| 3 |
+
__rewrites: {
|
| 4 |
+
beforeFiles: [],
|
| 5 |
+
afterFiles: [{
|
| 6 |
+
source: "/api/image",
|
| 7 |
+
destination: "/api/image/index"
|
| 8 |
+
}],
|
| 9 |
+
fallback: []
|
| 10 |
+
},
|
| 11 |
+
"/": [s, t, a, e, i, d, u, b, c, n, f, k, "static/chunks/pages/index-c90a382cf9aaca1e.js"],
|
| 12 |
+
"/_error": ["static/chunks/pages/_error-3d9ac92a218225f5.js"],
|
| 13 |
+
"/about": [s, a, d, c, f, "static/chunks/pages/about-758a2a5a8feeddc3.js"],
|
| 14 |
+
"/account": [s, a, e, d, c, f, "static/chunks/pages/account-60fac6b924916634.js"],
|
| 15 |
+
"/embed": [s, t, a, e, i, c, n, h, "static/chunks/pages/embed-a6edd40fc1fb98c4.js"],
|
| 16 |
+
"/embed/[id]": [s, t, a, e, i, c, n, h, "static/chunks/pages/embed/[id]-8154db841bf0d7fa.js"],
|
| 17 |
+
"/snippets": [s, t, a, e, i, d, "static/chunks/879-21b99adc8b76a16d.js", c, n, f, "static/chunks/pages/snippets-f82f191b3312699e.js"],
|
| 18 |
+
"/[id]": [s, t, a, e, i, d, u, b, c, n, f, k, "static/chunks/pages/[id]-73632945ecb22acb.js"],
|
| 19 |
+
sortedPages: ["/", "/_app", "/_error", "/about", "/account", "/embed", "/embed/[id]", "/snippets", "/[id]"]
|
| 20 |
+
}
|
| 21 |
+
}("static/chunks/ff239f9d-ca8347500655c670.js", "static/chunks/369-e8f2ba2cc85c0dd6.js", "static/chunks/94-c1d96e91c5f9c3c9.js", "static/chunks/152-b45757b9176f674c.js", "static/chunks/f65a48b9-067decfb353bc5de.js", "static/chunks/524-05696a2671cf01d2.js", "static/chunks/845-311654b20e238d40.js", "static/chunks/2-70c32d541379fb99.js", "static/chunks/129-8e32a84ec1e8703b.js", "static/chunks/758-79b4f1b284e17a18.js", "static/chunks/572-c6c8346762a6606d.js", "static/chunks/827-fed880df020d5b81.js", "static/chunks/867-624f974e1910ffb8.js"), self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB();
|
static/_next/static/5AMzUELPXC7eY2oJtbjtp/_middlewareManifest.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
self.__MIDDLEWARE_MANIFEST = [];
|
| 2 |
+
self.__MIDDLEWARE_MANIFEST_CB && self.__MIDDLEWARE_MANIFEST_CB()
|
static/_next/static/5AMzUELPXC7eY2oJtbjtp/_ssgManifest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
self.__SSG_MANIFEST = new Set, self.__SSG_MANIFEST_CB && self.__SSG_MANIFEST_CB();
|
static/_next/static/chunks/152-b45757b9176f674c-92b8a4c43fc81.js
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
| 2 |
+
[152], {
|
| 3 |
+
37645: function(e, t, r) {
|
| 4 |
+
"use strict";
|
| 5 |
+
|
| 6 |
+
function n(e, t, r) {
|
| 7 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 8 |
+
value: r,
|
| 9 |
+
enumerable: !0,
|
| 10 |
+
configurable: !0,
|
| 11 |
+
writable: !0
|
| 12 |
+
}) : e[t] = r, e
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
function u(e) {
|
| 16 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 17 |
+
var r = null != arguments[t] ? arguments[t] : {},
|
| 18 |
+
u = Object.keys(r);
|
| 19 |
+
"function" === typeof Object.getOwnPropertySymbols && (u = u.concat(Object.getOwnPropertySymbols(r).filter((function(e) {
|
| 20 |
+
return Object.getOwnPropertyDescriptor(r, e).enumerable
|
| 21 |
+
})))), u.forEach((function(t) {
|
| 22 |
+
n(e, t, r[t])
|
| 23 |
+
}))
|
| 24 |
+
}
|
| 25 |
+
return e
|
| 26 |
+
}
|
| 27 |
+
Object.defineProperty(t, "__esModule", {
|
| 28 |
+
value: !0
|
| 29 |
+
}), t.default = function(e, t) {
|
| 30 |
+
var r = o.default,
|
| 31 |
+
n = {
|
| 32 |
+
loading: function(e) {
|
| 33 |
+
e.error, e.isLoading;
|
| 34 |
+
return e.pastDelay, null
|
| 35 |
+
}
|
| 36 |
+
};
|
| 37 |
+
a = e, l = Promise, (null != l && "undefined" !== typeof Symbol && l[Symbol.hasInstance] ? l[Symbol.hasInstance](a) : a instanceof l) ? n.loader = function() {
|
| 38 |
+
return e
|
| 39 |
+
} : "function" === typeof e ? n.loader = e : "object" === typeof e && (n = u({}, n, e));
|
| 40 |
+
var a, l;
|
| 41 |
+
var s = n = u({}, n, t);
|
| 42 |
+
if (s.suspense) throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");
|
| 43 |
+
if (s.suspense) return r(s);
|
| 44 |
+
n.loadableGenerated && delete(n = u({}, n, n.loadableGenerated)).loadableGenerated;
|
| 45 |
+
if ("boolean" === typeof n.ssr) {
|
| 46 |
+
if (!n.ssr) return delete n.ssr, i(r, n);
|
| 47 |
+
delete n.ssr
|
| 48 |
+
}
|
| 49 |
+
return r(n)
|
| 50 |
+
}, t.noSSR = i;
|
| 51 |
+
a(r(67294));
|
| 52 |
+
var o = a(r(14588));
|
| 53 |
+
|
| 54 |
+
function a(e) {
|
| 55 |
+
return e && e.__esModule ? e : {
|
| 56 |
+
default: e
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
function i(e, t) {
|
| 61 |
+
return delete t.webpack, delete t.modules, e(t)
|
| 62 |
+
}("function" === typeof t.default || "object" === typeof t.default && null !== t.default) && (Object.assign(t.default, t), e.exports = t.default)
|
| 63 |
+
},
|
| 64 |
+
33644: function(e, t, r) {
|
| 65 |
+
"use strict";
|
| 66 |
+
var n;
|
| 67 |
+
Object.defineProperty(t, "__esModule", {
|
| 68 |
+
value: !0
|
| 69 |
+
}), t.LoadableContext = void 0;
|
| 70 |
+
var u = ((n = r(67294)) && n.__esModule ? n : {
|
| 71 |
+
default: n
|
| 72 |
+
}).default.createContext(null);
|
| 73 |
+
t.LoadableContext = u
|
| 74 |
+
},
|
| 75 |
+
14588: function(e, t, r) {
|
| 76 |
+
"use strict";
|
| 77 |
+
|
| 78 |
+
function n(e, t) {
|
| 79 |
+
for (var r = 0; r < t.length; r++) {
|
| 80 |
+
var n = t[r];
|
| 81 |
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n)
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
function u(e, t, r) {
|
| 86 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 87 |
+
value: r,
|
| 88 |
+
enumerable: !0,
|
| 89 |
+
configurable: !0,
|
| 90 |
+
writable: !0
|
| 91 |
+
}) : e[t] = r, e
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
function o(e) {
|
| 95 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 96 |
+
var r = null != arguments[t] ? arguments[t] : {},
|
| 97 |
+
n = Object.keys(r);
|
| 98 |
+
"function" === typeof Object.getOwnPropertySymbols && (n = n.concat(Object.getOwnPropertySymbols(r).filter((function(e) {
|
| 99 |
+
return Object.getOwnPropertyDescriptor(r, e).enumerable
|
| 100 |
+
})))), n.forEach((function(t) {
|
| 101 |
+
u(e, t, r[t])
|
| 102 |
+
}))
|
| 103 |
+
}
|
| 104 |
+
return e
|
| 105 |
+
}
|
| 106 |
+
Object.defineProperty(t, "__esModule", {
|
| 107 |
+
value: !0
|
| 108 |
+
}), t.default = void 0;
|
| 109 |
+
var a, i = (a = r(67294)) && a.__esModule ? a : {
|
| 110 |
+
default: a
|
| 111 |
+
},
|
| 112 |
+
l = r(82021),
|
| 113 |
+
s = r(33644);
|
| 114 |
+
var c = [],
|
| 115 |
+
f = [],
|
| 116 |
+
d = !1;
|
| 117 |
+
|
| 118 |
+
function p(e) {
|
| 119 |
+
var t = e(),
|
| 120 |
+
r = {
|
| 121 |
+
loading: !0,
|
| 122 |
+
loaded: null,
|
| 123 |
+
error: null
|
| 124 |
+
};
|
| 125 |
+
return r.promise = t.then((function(e) {
|
| 126 |
+
return r.loading = !1, r.loaded = e, e
|
| 127 |
+
})).catch((function(e) {
|
| 128 |
+
throw r.loading = !1, r.error = e, e
|
| 129 |
+
})), r
|
| 130 |
+
}
|
| 131 |
+
var b = function() {
|
| 132 |
+
function e(t, r) {
|
| 133 |
+
! function(e, t) {
|
| 134 |
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
|
| 135 |
+
}(this, e), this._loadFn = t, this._opts = r, this._callbacks = new Set, this._delay = null, this._timeout = null, this.retry()
|
| 136 |
+
}
|
| 137 |
+
var t, r, u;
|
| 138 |
+
return t = e, (r = [{
|
| 139 |
+
key: "promise",
|
| 140 |
+
value: function() {
|
| 141 |
+
return this._res.promise
|
| 142 |
+
}
|
| 143 |
+
}, {
|
| 144 |
+
key: "retry",
|
| 145 |
+
value: function() {
|
| 146 |
+
var e = this;
|
| 147 |
+
this._clearTimeouts(), this._res = this._loadFn(this._opts.loader), this._state = {
|
| 148 |
+
pastDelay: !1,
|
| 149 |
+
timedOut: !1
|
| 150 |
+
};
|
| 151 |
+
var t = this._res,
|
| 152 |
+
r = this._opts;
|
| 153 |
+
if (t.loading) {
|
| 154 |
+
if ("number" === typeof r.delay)
|
| 155 |
+
if (0 === r.delay) this._state.pastDelay = !0;
|
| 156 |
+
else {
|
| 157 |
+
var n = this;
|
| 158 |
+
this._delay = setTimeout((function() {
|
| 159 |
+
n._update({
|
| 160 |
+
pastDelay: !0
|
| 161 |
+
})
|
| 162 |
+
}), r.delay)
|
| 163 |
+
}
|
| 164 |
+
if ("number" === typeof r.timeout) {
|
| 165 |
+
var u = this;
|
| 166 |
+
this._timeout = setTimeout((function() {
|
| 167 |
+
u._update({
|
| 168 |
+
timedOut: !0
|
| 169 |
+
})
|
| 170 |
+
}), r.timeout)
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
this._res.promise.then((function() {
|
| 174 |
+
e._update({}), e._clearTimeouts()
|
| 175 |
+
})).catch((function(t) {
|
| 176 |
+
e._update({}), e._clearTimeouts()
|
| 177 |
+
})), this._update({})
|
| 178 |
+
}
|
| 179 |
+
}, {
|
| 180 |
+
key: "_update",
|
| 181 |
+
value: function(e) {
|
| 182 |
+
this._state = o({}, this._state, {
|
| 183 |
+
error: this._res.error,
|
| 184 |
+
loaded: this._res.loaded,
|
| 185 |
+
loading: this._res.loading
|
| 186 |
+
}, e), this._callbacks.forEach((function(e) {
|
| 187 |
+
return e()
|
| 188 |
+
}))
|
| 189 |
+
}
|
| 190 |
+
}, {
|
| 191 |
+
key: "_clearTimeouts",
|
| 192 |
+
value: function() {
|
| 193 |
+
clearTimeout(this._delay), clearTimeout(this._timeout)
|
| 194 |
+
}
|
| 195 |
+
}, {
|
| 196 |
+
key: "getCurrentValue",
|
| 197 |
+
value: function() {
|
| 198 |
+
return this._state
|
| 199 |
+
}
|
| 200 |
+
}, {
|
| 201 |
+
key: "subscribe",
|
| 202 |
+
value: function(e) {
|
| 203 |
+
var t = this;
|
| 204 |
+
return this._callbacks.add(e),
|
| 205 |
+
function() {
|
| 206 |
+
t._callbacks.delete(e)
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
}]) && n(t.prototype, r), u && n(t, u), e
|
| 210 |
+
}();
|
| 211 |
+
|
| 212 |
+
function y(e) {
|
| 213 |
+
return function(e, t) {
|
| 214 |
+
var r = function() {
|
| 215 |
+
if (!u) {
|
| 216 |
+
var t = new b(e, n);
|
| 217 |
+
u = {
|
| 218 |
+
getCurrentValue: t.getCurrentValue.bind(t),
|
| 219 |
+
subscribe: t.subscribe.bind(t),
|
| 220 |
+
retry: t.retry.bind(t),
|
| 221 |
+
promise: t.promise.bind(t)
|
| 222 |
+
}
|
| 223 |
+
}
|
| 224 |
+
return u.promise()
|
| 225 |
+
},
|
| 226 |
+
n = Object.assign({
|
| 227 |
+
loader: null,
|
| 228 |
+
loading: null,
|
| 229 |
+
delay: 200,
|
| 230 |
+
timeout: null,
|
| 231 |
+
webpack: null,
|
| 232 |
+
modules: null,
|
| 233 |
+
suspense: !1
|
| 234 |
+
}, t);
|
| 235 |
+
n.suspense && (n.lazy = i.default.lazy(n.loader));
|
| 236 |
+
var u = null;
|
| 237 |
+
if (!d && !n.suspense) {
|
| 238 |
+
var a = n.webpack ? n.webpack() : n.modules;
|
| 239 |
+
a && f.push((function(e) {
|
| 240 |
+
var t = !0,
|
| 241 |
+
n = !1,
|
| 242 |
+
u = void 0;
|
| 243 |
+
try {
|
| 244 |
+
for (var o, i = a[Symbol.iterator](); !(t = (o = i.next()).done); t = !0) {
|
| 245 |
+
var l = o.value;
|
| 246 |
+
if (-1 !== e.indexOf(l)) return r()
|
| 247 |
+
}
|
| 248 |
+
} catch (s) {
|
| 249 |
+
n = !0, u = s
|
| 250 |
+
} finally {
|
| 251 |
+
try {
|
| 252 |
+
t || null == i.return || i.return()
|
| 253 |
+
} finally {
|
| 254 |
+
if (n) throw u
|
| 255 |
+
}
|
| 256 |
+
}
|
| 257 |
+
}))
|
| 258 |
+
}
|
| 259 |
+
var c = n.suspense ? function(e, t) {
|
| 260 |
+
return i.default.createElement(n.lazy, o({}, e, {
|
| 261 |
+
ref: t
|
| 262 |
+
}))
|
| 263 |
+
} : function(e, t) {
|
| 264 |
+
r();
|
| 265 |
+
var o = i.default.useContext(s.LoadableContext),
|
| 266 |
+
a = l.useSubscription(u);
|
| 267 |
+
return i.default.useImperativeHandle(t, (function() {
|
| 268 |
+
return {
|
| 269 |
+
retry: u.retry
|
| 270 |
+
}
|
| 271 |
+
}), []), o && Array.isArray(n.modules) && n.modules.forEach((function(e) {
|
| 272 |
+
o(e)
|
| 273 |
+
})), i.default.useMemo((function() {
|
| 274 |
+
return a.loading || a.error ? i.default.createElement(n.loading, {
|
| 275 |
+
isLoading: a.loading,
|
| 276 |
+
pastDelay: a.pastDelay,
|
| 277 |
+
timedOut: a.timedOut,
|
| 278 |
+
error: a.error,
|
| 279 |
+
retry: u.retry
|
| 280 |
+
}) : a.loaded ? i.default.createElement(function(e) {
|
| 281 |
+
return e && e.__esModule ? e.default : e
|
| 282 |
+
}(a.loaded), e) : null
|
| 283 |
+
}), [e, a])
|
| 284 |
+
};
|
| 285 |
+
return c.preload = function() {
|
| 286 |
+
return !n.suspense && r()
|
| 287 |
+
}, c.displayName = "LoadableComponent", i.default.forwardRef(c)
|
| 288 |
+
}(p, e)
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
function v(e, t) {
|
| 292 |
+
for (var r = []; e.length;) {
|
| 293 |
+
var n = e.pop();
|
| 294 |
+
r.push(n(t))
|
| 295 |
+
}
|
| 296 |
+
return Promise.all(r).then((function() {
|
| 297 |
+
if (e.length) return v(e, t)
|
| 298 |
+
}))
|
| 299 |
+
}
|
| 300 |
+
y.preloadAll = function() {
|
| 301 |
+
return new Promise((function(e, t) {
|
| 302 |
+
v(c).then(e, t)
|
| 303 |
+
}))
|
| 304 |
+
}, y.preloadReady = function() {
|
| 305 |
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
|
| 306 |
+
return new Promise((function(t) {
|
| 307 |
+
var r = function() {
|
| 308 |
+
return d = !0, t()
|
| 309 |
+
};
|
| 310 |
+
v(f, e).then(r, r)
|
| 311 |
+
}))
|
| 312 |
+
}, window.__NEXT_PRELOADREADY = y.preloadReady;
|
| 313 |
+
var h = y;
|
| 314 |
+
t.default = h
|
| 315 |
+
},
|
| 316 |
+
82021: function(e, t, r) {
|
| 317 |
+
! function() {
|
| 318 |
+
"use strict";
|
| 319 |
+
var t = {
|
| 320 |
+
800: function(e) {
|
| 321 |
+
var t = Object.getOwnPropertySymbols,
|
| 322 |
+
r = Object.prototype.hasOwnProperty,
|
| 323 |
+
n = Object.prototype.propertyIsEnumerable;
|
| 324 |
+
|
| 325 |
+
function u(e) {
|
| 326 |
+
if (null === e || void 0 === e) throw new TypeError("Object.assign cannot be called with null or undefined");
|
| 327 |
+
return Object(e)
|
| 328 |
+
}
|
| 329 |
+
e.exports = function() {
|
| 330 |
+
try {
|
| 331 |
+
if (!Object.assign) return !1;
|
| 332 |
+
var e = new String("abc");
|
| 333 |
+
if (e[5] = "de", "5" === Object.getOwnPropertyNames(e)[0]) return !1;
|
| 334 |
+
for (var t = {}, r = 0; r < 10; r++) t["_" + String.fromCharCode(r)] = r;
|
| 335 |
+
var n = Object.getOwnPropertyNames(t).map((function(e) {
|
| 336 |
+
return t[e]
|
| 337 |
+
}));
|
| 338 |
+
if ("0123456789" !== n.join("")) return !1;
|
| 339 |
+
var u = {};
|
| 340 |
+
return "abcdefghijklmnopqrst".split("").forEach((function(e) {
|
| 341 |
+
u[e] = e
|
| 342 |
+
})), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, u)).join("")
|
| 343 |
+
} catch (e) {
|
| 344 |
+
return !1
|
| 345 |
+
}
|
| 346 |
+
}() ? Object.assign : function(e, o) {
|
| 347 |
+
for (var a, i, l = u(e), s = 1; s < arguments.length; s++) {
|
| 348 |
+
for (var c in a = Object(arguments[s])) r.call(a, c) && (l[c] = a[c]);
|
| 349 |
+
if (t) {
|
| 350 |
+
i = t(a);
|
| 351 |
+
for (var f = 0; f < i.length; f++) n.call(a, i[f]) && (l[i[f]] = a[i[f]])
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
return l
|
| 355 |
+
}
|
| 356 |
+
},
|
| 357 |
+
569: function(e, t, r) {
|
| 358 |
+
0
|
| 359 |
+
},
|
| 360 |
+
403: function(e, t, r) {
|
| 361 |
+
var n = r(800),
|
| 362 |
+
u = r(522);
|
| 363 |
+
t.useSubscription = function(e) {
|
| 364 |
+
var t = e.getCurrentValue,
|
| 365 |
+
r = e.subscribe,
|
| 366 |
+
o = u.useState((function() {
|
| 367 |
+
return {
|
| 368 |
+
getCurrentValue: t,
|
| 369 |
+
subscribe: r,
|
| 370 |
+
value: t()
|
| 371 |
+
}
|
| 372 |
+
}));
|
| 373 |
+
e = o[0];
|
| 374 |
+
var a = o[1];
|
| 375 |
+
return o = e.value, e.getCurrentValue === t && e.subscribe === r || (o = t(), a({
|
| 376 |
+
getCurrentValue: t,
|
| 377 |
+
subscribe: r,
|
| 378 |
+
value: o
|
| 379 |
+
})), u.useDebugValue(o), u.useEffect((function() {
|
| 380 |
+
function e() {
|
| 381 |
+
if (!u) {
|
| 382 |
+
var e = t();
|
| 383 |
+
a((function(u) {
|
| 384 |
+
return u.getCurrentValue !== t || u.subscribe !== r || u.value === e ? u : n({}, u, {
|
| 385 |
+
value: e
|
| 386 |
+
})
|
| 387 |
+
}))
|
| 388 |
+
}
|
| 389 |
+
}
|
| 390 |
+
var u = !1,
|
| 391 |
+
o = r(e);
|
| 392 |
+
return e(),
|
| 393 |
+
function() {
|
| 394 |
+
u = !0, o()
|
| 395 |
+
}
|
| 396 |
+
}), [t, r]), o
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
138: function(e, t, r) {
|
| 400 |
+
e.exports = r(403)
|
| 401 |
+
},
|
| 402 |
+
522: function(e) {
|
| 403 |
+
e.exports = r(67294)
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
n = {};
|
| 407 |
+
|
| 408 |
+
function u(e) {
|
| 409 |
+
var r = n[e];
|
| 410 |
+
if (void 0 !== r) return r.exports;
|
| 411 |
+
var o = n[e] = {
|
| 412 |
+
exports: {}
|
| 413 |
+
},
|
| 414 |
+
a = !0;
|
| 415 |
+
try {
|
| 416 |
+
t[e](o, o.exports, u), a = !1
|
| 417 |
+
} finally {
|
| 418 |
+
a && delete n[e]
|
| 419 |
+
}
|
| 420 |
+
return o.exports
|
| 421 |
+
}
|
| 422 |
+
u.ab = "//";
|
| 423 |
+
var o = u(138);
|
| 424 |
+
e.exports = o
|
| 425 |
+
}()
|
| 426 |
+
},
|
| 427 |
+
5152: function(e, t, r) {
|
| 428 |
+
e.exports = r(37645)
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
]);
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
| 2 |
+
[152], {
|
| 3 |
+
37645: function(e, t, r) {
|
| 4 |
+
"use strict";
|
| 5 |
+
|
| 6 |
+
function n(e, t, r) {
|
| 7 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 8 |
+
value: r,
|
| 9 |
+
enumerable: !0,
|
| 10 |
+
configurable: !0,
|
| 11 |
+
writable: !0
|
| 12 |
+
}) : e[t] = r, e
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
function u(e) {
|
| 16 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 17 |
+
var r = null != arguments[t] ? arguments[t] : {},
|
| 18 |
+
u = Object.keys(r);
|
| 19 |
+
"function" === typeof Object.getOwnPropertySymbols && (u = u.concat(Object.getOwnPropertySymbols(r).filter((function(e) {
|
| 20 |
+
return Object.getOwnPropertyDescriptor(r, e).enumerable
|
| 21 |
+
})))), u.forEach((function(t) {
|
| 22 |
+
n(e, t, r[t])
|
| 23 |
+
}))
|
| 24 |
+
}
|
| 25 |
+
return e
|
| 26 |
+
}
|
| 27 |
+
Object.defineProperty(t, "__esModule", {
|
| 28 |
+
value: !0
|
| 29 |
+
}), t.default = function(e, t) {
|
| 30 |
+
var r = o.default,
|
| 31 |
+
n = {
|
| 32 |
+
loading: function(e) {
|
| 33 |
+
e.error, e.isLoading;
|
| 34 |
+
return e.pastDelay, null
|
| 35 |
+
}
|
| 36 |
+
};
|
| 37 |
+
a = e, l = Promise, (null != l && "undefined" !== typeof Symbol && l[Symbol.hasInstance] ? l[Symbol.hasInstance](a) : a instanceof l) ? n.loader = function() {
|
| 38 |
+
return e
|
| 39 |
+
} : "function" === typeof e ? n.loader = e : "object" === typeof e && (n = u({}, n, e));
|
| 40 |
+
var a, l;
|
| 41 |
+
var s = n = u({}, n, t);
|
| 42 |
+
if (s.suspense) throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");
|
| 43 |
+
if (s.suspense) return r(s);
|
| 44 |
+
n.loadableGenerated && delete(n = u({}, n, n.loadableGenerated)).loadableGenerated;
|
| 45 |
+
if ("boolean" === typeof n.ssr) {
|
| 46 |
+
if (!n.ssr) return delete n.ssr, i(r, n);
|
| 47 |
+
delete n.ssr
|
| 48 |
+
}
|
| 49 |
+
return r(n)
|
| 50 |
+
}, t.noSSR = i;
|
| 51 |
+
a(r(67294));
|
| 52 |
+
var o = a(r(14588));
|
| 53 |
+
|
| 54 |
+
function a(e) {
|
| 55 |
+
return e && e.__esModule ? e : {
|
| 56 |
+
default: e
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
function i(e, t) {
|
| 61 |
+
return delete t.webpack, delete t.modules, e(t)
|
| 62 |
+
}("function" === typeof t.default || "object" === typeof t.default && null !== t.default) && (Object.assign(t.default, t), e.exports = t.default)
|
| 63 |
+
},
|
| 64 |
+
33644: function(e, t, r) {
|
| 65 |
+
"use strict";
|
| 66 |
+
var n;
|
| 67 |
+
Object.defineProperty(t, "__esModule", {
|
| 68 |
+
value: !0
|
| 69 |
+
}), t.LoadableContext = void 0;
|
| 70 |
+
var u = ((n = r(67294)) && n.__esModule ? n : {
|
| 71 |
+
default: n
|
| 72 |
+
}).default.createContext(null);
|
| 73 |
+
t.LoadableContext = u
|
| 74 |
+
},
|
| 75 |
+
14588: function(e, t, r) {
|
| 76 |
+
"use strict";
|
| 77 |
+
|
| 78 |
+
function n(e, t) {
|
| 79 |
+
for (var r = 0; r < t.length; r++) {
|
| 80 |
+
var n = t[r];
|
| 81 |
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n)
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
function u(e, t, r) {
|
| 86 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 87 |
+
value: r,
|
| 88 |
+
enumerable: !0,
|
| 89 |
+
configurable: !0,
|
| 90 |
+
writable: !0
|
| 91 |
+
}) : e[t] = r, e
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
function o(e) {
|
| 95 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 96 |
+
var r = null != arguments[t] ? arguments[t] : {},
|
| 97 |
+
n = Object.keys(r);
|
| 98 |
+
"function" === typeof Object.getOwnPropertySymbols && (n = n.concat(Object.getOwnPropertySymbols(r).filter((function(e) {
|
| 99 |
+
return Object.getOwnPropertyDescriptor(r, e).enumerable
|
| 100 |
+
})))), n.forEach((function(t) {
|
| 101 |
+
u(e, t, r[t])
|
| 102 |
+
}))
|
| 103 |
+
}
|
| 104 |
+
return e
|
| 105 |
+
}
|
| 106 |
+
Object.defineProperty(t, "__esModule", {
|
| 107 |
+
value: !0
|
| 108 |
+
}), t.default = void 0;
|
| 109 |
+
var a, i = (a = r(67294)) && a.__esModule ? a : {
|
| 110 |
+
default: a
|
| 111 |
+
},
|
| 112 |
+
l = r(82021),
|
| 113 |
+
s = r(33644);
|
| 114 |
+
var c = [],
|
| 115 |
+
f = [],
|
| 116 |
+
d = !1;
|
| 117 |
+
|
| 118 |
+
function p(e) {
|
| 119 |
+
var t = e(),
|
| 120 |
+
r = {
|
| 121 |
+
loading: !0,
|
| 122 |
+
loaded: null,
|
| 123 |
+
error: null
|
| 124 |
+
};
|
| 125 |
+
return r.promise = t.then((function(e) {
|
| 126 |
+
return r.loading = !1, r.loaded = e, e
|
| 127 |
+
})).catch((function(e) {
|
| 128 |
+
throw r.loading = !1, r.error = e, e
|
| 129 |
+
})), r
|
| 130 |
+
}
|
| 131 |
+
var b = function() {
|
| 132 |
+
function e(t, r) {
|
| 133 |
+
! function(e, t) {
|
| 134 |
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
|
| 135 |
+
}(this, e), this._loadFn = t, this._opts = r, this._callbacks = new Set, this._delay = null, this._timeout = null, this.retry()
|
| 136 |
+
}
|
| 137 |
+
var t, r, u;
|
| 138 |
+
return t = e, (r = [{
|
| 139 |
+
key: "promise",
|
| 140 |
+
value: function() {
|
| 141 |
+
return this._res.promise
|
| 142 |
+
}
|
| 143 |
+
}, {
|
| 144 |
+
key: "retry",
|
| 145 |
+
value: function() {
|
| 146 |
+
var e = this;
|
| 147 |
+
this._clearTimeouts(), this._res = this._loadFn(this._opts.loader), this._state = {
|
| 148 |
+
pastDelay: !1,
|
| 149 |
+
timedOut: !1
|
| 150 |
+
};
|
| 151 |
+
var t = this._res,
|
| 152 |
+
r = this._opts;
|
| 153 |
+
if (t.loading) {
|
| 154 |
+
if ("number" === typeof r.delay)
|
| 155 |
+
if (0 === r.delay) this._state.pastDelay = !0;
|
| 156 |
+
else {
|
| 157 |
+
var n = this;
|
| 158 |
+
this._delay = setTimeout((function() {
|
| 159 |
+
n._update({
|
| 160 |
+
pastDelay: !0
|
| 161 |
+
})
|
| 162 |
+
}), r.delay)
|
| 163 |
+
}
|
| 164 |
+
if ("number" === typeof r.timeout) {
|
| 165 |
+
var u = this;
|
| 166 |
+
this._timeout = setTimeout((function() {
|
| 167 |
+
u._update({
|
| 168 |
+
timedOut: !0
|
| 169 |
+
})
|
| 170 |
+
}), r.timeout)
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
this._res.promise.then((function() {
|
| 174 |
+
e._update({}), e._clearTimeouts()
|
| 175 |
+
})).catch((function(t) {
|
| 176 |
+
e._update({}), e._clearTimeouts()
|
| 177 |
+
})), this._update({})
|
| 178 |
+
}
|
| 179 |
+
}, {
|
| 180 |
+
key: "_update",
|
| 181 |
+
value: function(e) {
|
| 182 |
+
this._state = o({}, this._state, {
|
| 183 |
+
error: this._res.error,
|
| 184 |
+
loaded: this._res.loaded,
|
| 185 |
+
loading: this._res.loading
|
| 186 |
+
}, e), this._callbacks.forEach((function(e) {
|
| 187 |
+
return e()
|
| 188 |
+
}))
|
| 189 |
+
}
|
| 190 |
+
}, {
|
| 191 |
+
key: "_clearTimeouts",
|
| 192 |
+
value: function() {
|
| 193 |
+
clearTimeout(this._delay), clearTimeout(this._timeout)
|
| 194 |
+
}
|
| 195 |
+
}, {
|
| 196 |
+
key: "getCurrentValue",
|
| 197 |
+
value: function() {
|
| 198 |
+
return this._state
|
| 199 |
+
}
|
| 200 |
+
}, {
|
| 201 |
+
key: "subscribe",
|
| 202 |
+
value: function(e) {
|
| 203 |
+
var t = this;
|
| 204 |
+
return this._callbacks.add(e),
|
| 205 |
+
function() {
|
| 206 |
+
t._callbacks.delete(e)
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
}]) && n(t.prototype, r), u && n(t, u), e
|
| 210 |
+
}();
|
| 211 |
+
|
| 212 |
+
function y(e) {
|
| 213 |
+
return function(e, t) {
|
| 214 |
+
var r = function() {
|
| 215 |
+
if (!u) {
|
| 216 |
+
var t = new b(e, n);
|
| 217 |
+
u = {
|
| 218 |
+
getCurrentValue: t.getCurrentValue.bind(t),
|
| 219 |
+
subscribe: t.subscribe.bind(t),
|
| 220 |
+
retry: t.retry.bind(t),
|
| 221 |
+
promise: t.promise.bind(t)
|
| 222 |
+
}
|
| 223 |
+
}
|
| 224 |
+
return u.promise()
|
| 225 |
+
},
|
| 226 |
+
n = Object.assign({
|
| 227 |
+
loader: null,
|
| 228 |
+
loading: null,
|
| 229 |
+
delay: 200,
|
| 230 |
+
timeout: null,
|
| 231 |
+
webpack: null,
|
| 232 |
+
modules: null,
|
| 233 |
+
suspense: !1
|
| 234 |
+
}, t);
|
| 235 |
+
n.suspense && (n.lazy = i.default.lazy(n.loader));
|
| 236 |
+
var u = null;
|
| 237 |
+
if (!d && !n.suspense) {
|
| 238 |
+
var a = n.webpack ? n.webpack() : n.modules;
|
| 239 |
+
a && f.push((function(e) {
|
| 240 |
+
var t = !0,
|
| 241 |
+
n = !1,
|
| 242 |
+
u = void 0;
|
| 243 |
+
try {
|
| 244 |
+
for (var o, i = a[Symbol.iterator](); !(t = (o = i.next()).done); t = !0) {
|
| 245 |
+
var l = o.value;
|
| 246 |
+
if (-1 !== e.indexOf(l)) return r()
|
| 247 |
+
}
|
| 248 |
+
} catch (s) {
|
| 249 |
+
n = !0, u = s
|
| 250 |
+
} finally {
|
| 251 |
+
try {
|
| 252 |
+
t || null == i.return || i.return()
|
| 253 |
+
} finally {
|
| 254 |
+
if (n) throw u
|
| 255 |
+
}
|
| 256 |
+
}
|
| 257 |
+
}))
|
| 258 |
+
}
|
| 259 |
+
var c = n.suspense ? function(e, t) {
|
| 260 |
+
return i.default.createElement(n.lazy, o({}, e, {
|
| 261 |
+
ref: t
|
| 262 |
+
}))
|
| 263 |
+
} : function(e, t) {
|
| 264 |
+
r();
|
| 265 |
+
var o = i.default.useContext(s.LoadableContext),
|
| 266 |
+
a = l.useSubscription(u);
|
| 267 |
+
return i.default.useImperativeHandle(t, (function() {
|
| 268 |
+
return {
|
| 269 |
+
retry: u.retry
|
| 270 |
+
}
|
| 271 |
+
}), []), o && Array.isArray(n.modules) && n.modules.forEach((function(e) {
|
| 272 |
+
o(e)
|
| 273 |
+
})), i.default.useMemo((function() {
|
| 274 |
+
return a.loading || a.error ? i.default.createElement(n.loading, {
|
| 275 |
+
isLoading: a.loading,
|
| 276 |
+
pastDelay: a.pastDelay,
|
| 277 |
+
timedOut: a.timedOut,
|
| 278 |
+
error: a.error,
|
| 279 |
+
retry: u.retry
|
| 280 |
+
}) : a.loaded ? i.default.createElement(function(e) {
|
| 281 |
+
return e && e.__esModule ? e.default : e
|
| 282 |
+
}(a.loaded), e) : null
|
| 283 |
+
}), [e, a])
|
| 284 |
+
};
|
| 285 |
+
return c.preload = function() {
|
| 286 |
+
return !n.suspense && r()
|
| 287 |
+
}, c.displayName = "LoadableComponent", i.default.forwardRef(c)
|
| 288 |
+
}(p, e)
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
function v(e, t) {
|
| 292 |
+
for (var r = []; e.length;) {
|
| 293 |
+
var n = e.pop();
|
| 294 |
+
r.push(n(t))
|
| 295 |
+
}
|
| 296 |
+
return Promise.all(r).then((function() {
|
| 297 |
+
if (e.length) return v(e, t)
|
| 298 |
+
}))
|
| 299 |
+
}
|
| 300 |
+
y.preloadAll = function() {
|
| 301 |
+
return new Promise((function(e, t) {
|
| 302 |
+
v(c).then(e, t)
|
| 303 |
+
}))
|
| 304 |
+
}, y.preloadReady = function() {
|
| 305 |
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [];
|
| 306 |
+
return new Promise((function(t) {
|
| 307 |
+
var r = function() {
|
| 308 |
+
return d = !0, t()
|
| 309 |
+
};
|
| 310 |
+
v(f, e).then(r, r)
|
| 311 |
+
}))
|
| 312 |
+
}, window.__NEXT_PRELOADREADY = y.preloadReady;
|
| 313 |
+
var h = y;
|
| 314 |
+
t.default = h
|
| 315 |
+
},
|
| 316 |
+
82021: function(e, t, r) {
|
| 317 |
+
! function() {
|
| 318 |
+
"use strict";
|
| 319 |
+
var t = {
|
| 320 |
+
800: function(e) {
|
| 321 |
+
var t = Object.getOwnPropertySymbols,
|
| 322 |
+
r = Object.prototype.hasOwnProperty,
|
| 323 |
+
n = Object.prototype.propertyIsEnumerable;
|
| 324 |
+
|
| 325 |
+
function u(e) {
|
| 326 |
+
if (null === e || void 0 === e) throw new TypeError("Object.assign cannot be called with null or undefined");
|
| 327 |
+
return Object(e)
|
| 328 |
+
}
|
| 329 |
+
e.exports = function() {
|
| 330 |
+
try {
|
| 331 |
+
if (!Object.assign) return !1;
|
| 332 |
+
var e = new String("abc");
|
| 333 |
+
if (e[5] = "de", "5" === Object.getOwnPropertyNames(e)[0]) return !1;
|
| 334 |
+
for (var t = {}, r = 0; r < 10; r++) t["_" + String.fromCharCode(r)] = r;
|
| 335 |
+
var n = Object.getOwnPropertyNames(t).map((function(e) {
|
| 336 |
+
return t[e]
|
| 337 |
+
}));
|
| 338 |
+
if ("0123456789" !== n.join("")) return !1;
|
| 339 |
+
var u = {};
|
| 340 |
+
return "abcdefghijklmnopqrst".split("").forEach((function(e) {
|
| 341 |
+
u[e] = e
|
| 342 |
+
})), "abcdefghijklmnopqrst" === Object.keys(Object.assign({}, u)).join("")
|
| 343 |
+
} catch (e) {
|
| 344 |
+
return !1
|
| 345 |
+
}
|
| 346 |
+
}() ? Object.assign : function(e, o) {
|
| 347 |
+
for (var a, i, l = u(e), s = 1; s < arguments.length; s++) {
|
| 348 |
+
for (var c in a = Object(arguments[s])) r.call(a, c) && (l[c] = a[c]);
|
| 349 |
+
if (t) {
|
| 350 |
+
i = t(a);
|
| 351 |
+
for (var f = 0; f < i.length; f++) n.call(a, i[f]) && (l[i[f]] = a[i[f]])
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
return l
|
| 355 |
+
}
|
| 356 |
+
},
|
| 357 |
+
569: function(e, t, r) {
|
| 358 |
+
0
|
| 359 |
+
},
|
| 360 |
+
403: function(e, t, r) {
|
| 361 |
+
var n = r(800),
|
| 362 |
+
u = r(522);
|
| 363 |
+
t.useSubscription = function(e) {
|
| 364 |
+
var t = e.getCurrentValue,
|
| 365 |
+
r = e.subscribe,
|
| 366 |
+
o = u.useState((function() {
|
| 367 |
+
return {
|
| 368 |
+
getCurrentValue: t,
|
| 369 |
+
subscribe: r,
|
| 370 |
+
value: t()
|
| 371 |
+
}
|
| 372 |
+
}));
|
| 373 |
+
e = o[0];
|
| 374 |
+
var a = o[1];
|
| 375 |
+
return o = e.value, e.getCurrentValue === t && e.subscribe === r || (o = t(), a({
|
| 376 |
+
getCurrentValue: t,
|
| 377 |
+
subscribe: r,
|
| 378 |
+
value: o
|
| 379 |
+
})), u.useDebugValue(o), u.useEffect((function() {
|
| 380 |
+
function e() {
|
| 381 |
+
if (!u) {
|
| 382 |
+
var e = t();
|
| 383 |
+
a((function(u) {
|
| 384 |
+
return u.getCurrentValue !== t || u.subscribe !== r || u.value === e ? u : n({}, u, {
|
| 385 |
+
value: e
|
| 386 |
+
})
|
| 387 |
+
}))
|
| 388 |
+
}
|
| 389 |
+
}
|
| 390 |
+
var u = !1,
|
| 391 |
+
o = r(e);
|
| 392 |
+
return e(),
|
| 393 |
+
function() {
|
| 394 |
+
u = !0, o()
|
| 395 |
+
}
|
| 396 |
+
}), [t, r]), o
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
138: function(e, t, r) {
|
| 400 |
+
e.exports = r(403)
|
| 401 |
+
},
|
| 402 |
+
522: function(e) {
|
| 403 |
+
e.exports = r(67294)
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
n = {};
|
| 407 |
+
|
| 408 |
+
function u(e) {
|
| 409 |
+
var r = n[e];
|
| 410 |
+
if (void 0 !== r) return r.exports;
|
| 411 |
+
var o = n[e] = {
|
| 412 |
+
exports: {}
|
| 413 |
+
},
|
| 414 |
+
a = !0;
|
| 415 |
+
try {
|
| 416 |
+
t[e](o, o.exports, u), a = !1
|
| 417 |
+
} finally {
|
| 418 |
+
a && delete n[e]
|
| 419 |
+
}
|
| 420 |
+
return o.exports
|
| 421 |
+
}
|
| 422 |
+
u.ab = "//";
|
| 423 |
+
var o = u(138);
|
| 424 |
+
e.exports = o
|
| 425 |
+
}()
|
| 426 |
+
},
|
| 427 |
+
5152: function(e, t, r) {
|
| 428 |
+
e.exports = r(37645)
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
]);
|
static/_next/static/chunks/2-70c32d541379fb99-291053884a544.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/2-70c32d541379fb99.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/369-e8f2ba2cc85c0dd6-7b1aeaad877df.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/369-e8f2ba2cc85c0dd6.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/524-05696a2671cf01d2-12f313f6a252d.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/524-05696a2671cf01d2.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/867-624f974e1910ffb8-c19d2a2e961c7.js
ADDED
|
@@ -0,0 +1,667 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
| 2 |
+
[867], {
|
| 3 |
+
82329: function(e, t, r) {
|
| 4 |
+
"use strict";
|
| 5 |
+
r.d(t, {
|
| 6 |
+
Z: function() {
|
| 7 |
+
return i
|
| 8 |
+
}
|
| 9 |
+
});
|
| 10 |
+
var o = r(85893),
|
| 11 |
+
n = r(79547),
|
| 12 |
+
a = r.n(n);
|
| 13 |
+
r(67294);
|
| 14 |
+
|
| 15 |
+
function i(e) {
|
| 16 |
+
var t = e.highlights;
|
| 17 |
+
return (0, o.jsx)(a(), {
|
| 18 |
+
id: "13734f156f215e2f",
|
| 19 |
+
dynamic: [t.text, t.background, t.string, t.comment, t.variable, t.variable2 || t.variable, t.variable3 || t.variable, t.number, t.keyword, t.property, t.definition, t.meta, t.operator, t.attribute, t.tag, t.builtin],
|
| 20 |
+
children: ".CodeMirror__container .CodeMirror{color:".concat(t.text, "!important;background-color:").concat(t.background, "!important}.cm-string,.cm-string-2{color:").concat(t.string, "!important}.cm-comment{color:").concat(t.comment, "!important}.cm-variable{color:").concat(t.variable, "!important}.cm-variable-2{color:").concat(t.variable2 || t.variable, "!important}.cm-variable-3{color:").concat(t.variable3 || t.variable, "!important}.cm-number{color:").concat(t.number, "!important}.cm-keyword{color:").concat(t.keyword, "!important}.cm-property{color:").concat(t.property, "!important}.cm-def{color:").concat(t.definition, "!important}.cm-meta{color:").concat(t.meta, "!important}.cm-operator{color:").concat(t.operator, "!important}.cm-attribute{color:").concat(t.attribute, "!important}.cm-tag{color:").concat(t.tag, "!important}.cm-builtin{color:").concat(t.builtin, "!important}.cm-s-dracula .CodeMirror-cursor{border-left:solid 2px#159588!important}.cm-s-vscode .CodeMirror-cursor{border-left:solid 2px#bebebe!important}.cm-s-solarized{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.cm-s-solarized.cm-s-light{text-shadow:#eee8d5 0 1px!important}.cm-s-solarized.cm-s-light .CodeMirror-linenumber,.cm-s-solarized.cm-s-light .CodeMirror-linenumbers{background-color:#fdf6e3!important}.cm-s-solarized.cm-s-dark .CodeMirror-linenumber,.cm-s-solarized.cm-s-dark .CodeMirror-linenumbers{background-color:#002b36!important}")
|
| 21 |
+
})
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
96262: function(e, t, r) {
|
| 25 |
+
"use strict";
|
| 26 |
+
r.d(t, {
|
| 27 |
+
aA: function() {
|
| 28 |
+
return d
|
| 29 |
+
},
|
| 30 |
+
wy: function() {
|
| 31 |
+
return f
|
| 32 |
+
}
|
| 33 |
+
});
|
| 34 |
+
var o = r(19613),
|
| 35 |
+
n = r.n(o),
|
| 36 |
+
a = r(11987),
|
| 37 |
+
i = r.n(a),
|
| 38 |
+
c = r(94959),
|
| 39 |
+
s = new(n())({
|
| 40 |
+
types: {
|
| 41 |
+
bool: function(e) {
|
| 42 |
+
if (null != e) return "false" !== e && Boolean(e)
|
| 43 |
+
},
|
| 44 |
+
int: function(e) {
|
| 45 |
+
var t = parseInt(e);
|
| 46 |
+
if (!isNaN(t)) return t
|
| 47 |
+
},
|
| 48 |
+
intArray: function(e) {
|
| 49 |
+
if (null != e) return e.split(",").filter((function(e) {
|
| 50 |
+
return !isNaN(e)
|
| 51 |
+
})).map((function(e) {
|
| 52 |
+
return parseInt(e)
|
| 53 |
+
}))
|
| 54 |
+
},
|
| 55 |
+
parse: function(e) {
|
| 56 |
+
try {
|
| 57 |
+
return JSON.parse(e)
|
| 58 |
+
} catch (t) {
|
| 59 |
+
return e
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
decode: function(e) {
|
| 63 |
+
if (null != e) try {
|
| 64 |
+
return decodeURIComponent(e)
|
| 65 |
+
} catch (t) {
|
| 66 |
+
return e
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
encode: function(e) {
|
| 70 |
+
if (null != e) try {
|
| 71 |
+
var t = encodeURIComponent(e);
|
| 72 |
+
return t.length > 4e3 ? encodeURIComponent(e.slice(0, 2e3)) : t
|
| 73 |
+
} catch (r) {
|
| 74 |
+
return e
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
}),
|
| 79 |
+
l = [{
|
| 80 |
+
field: "bg:backgroundColor"
|
| 81 |
+
}, {
|
| 82 |
+
field: "t:theme"
|
| 83 |
+
}, {
|
| 84 |
+
field: "wt:windowTheme"
|
| 85 |
+
}, {
|
| 86 |
+
field: "l:language"
|
| 87 |
+
}, {
|
| 88 |
+
field: "width"
|
| 89 |
+
}, {
|
| 90 |
+
field: "ds:dropShadow",
|
| 91 |
+
type: "bool"
|
| 92 |
+
}, {
|
| 93 |
+
field: "dsyoff:dropShadowOffsetY"
|
| 94 |
+
}, {
|
| 95 |
+
field: "dsblur:dropShadowBlurRadius"
|
| 96 |
+
}, {
|
| 97 |
+
field: "wc:windowControls",
|
| 98 |
+
type: "bool"
|
| 99 |
+
}, {
|
| 100 |
+
field: "wa:widthAdjustment",
|
| 101 |
+
type: "bool"
|
| 102 |
+
}, {
|
| 103 |
+
field: "pv:paddingVertical"
|
| 104 |
+
}, {
|
| 105 |
+
field: "ph:paddingHorizontal"
|
| 106 |
+
}, {
|
| 107 |
+
field: "ln:lineNumbers",
|
| 108 |
+
type: "bool"
|
| 109 |
+
}, {
|
| 110 |
+
field: "fl:firstLineNumber",
|
| 111 |
+
type: "int"
|
| 112 |
+
}, {
|
| 113 |
+
field: "fm:fontFamily"
|
| 114 |
+
}, {
|
| 115 |
+
field: "fs:fontSize"
|
| 116 |
+
}, {
|
| 117 |
+
field: "lh:lineHeight"
|
| 118 |
+
}, {
|
| 119 |
+
field: "si:squaredImage",
|
| 120 |
+
type: "bool"
|
| 121 |
+
}, {
|
| 122 |
+
field: "es:exportSize"
|
| 123 |
+
}, {
|
| 124 |
+
field: "wm:watermark",
|
| 125 |
+
type: "bool"
|
| 126 |
+
}, {
|
| 127 |
+
field: "sl:selectedLines",
|
| 128 |
+
type: "intArray"
|
| 129 |
+
}, {
|
| 130 |
+
field: "copy",
|
| 131 |
+
type: "bool"
|
| 132 |
+
}, {
|
| 133 |
+
field: "readonly",
|
| 134 |
+
type: "bool"
|
| 135 |
+
}, {
|
| 136 |
+
field: "id"
|
| 137 |
+
}, {
|
| 138 |
+
field: "highlights",
|
| 139 |
+
type: "parse"
|
| 140 |
+
}, {
|
| 141 |
+
field: "code",
|
| 142 |
+
type: "decode"
|
| 143 |
+
}, {
|
| 144 |
+
field: "tb:titleBar",
|
| 145 |
+
type: "decode"
|
| 146 |
+
}, {
|
| 147 |
+
field: "state"
|
| 148 |
+
}],
|
| 149 |
+
p = [{
|
| 150 |
+
field: "backgroundColor:bg"
|
| 151 |
+
}, {
|
| 152 |
+
field: "theme:t"
|
| 153 |
+
}, {
|
| 154 |
+
field: "windowTheme:wt"
|
| 155 |
+
}, {
|
| 156 |
+
field: "language:l"
|
| 157 |
+
}, {
|
| 158 |
+
field: "width"
|
| 159 |
+
}, {
|
| 160 |
+
field: "dropShadow:ds",
|
| 161 |
+
type: "bool"
|
| 162 |
+
}, {
|
| 163 |
+
field: "dropShadowOffsetY:dsyoff"
|
| 164 |
+
}, {
|
| 165 |
+
field: "dropShadowBlurRadius:dsblur"
|
| 166 |
+
}, {
|
| 167 |
+
field: "windowControls:wc",
|
| 168 |
+
type: "bool"
|
| 169 |
+
}, {
|
| 170 |
+
field: "widthAdjustment:wa",
|
| 171 |
+
type: "bool"
|
| 172 |
+
}, {
|
| 173 |
+
field: "paddingVertical:pv"
|
| 174 |
+
}, {
|
| 175 |
+
field: "paddingHorizontal:ph"
|
| 176 |
+
}, {
|
| 177 |
+
field: "lineNumbers:ln",
|
| 178 |
+
type: "bool"
|
| 179 |
+
}, {
|
| 180 |
+
field: "firstLineNumber:fl",
|
| 181 |
+
type: "int"
|
| 182 |
+
}, {
|
| 183 |
+
field: "fontFamily:fm"
|
| 184 |
+
}, {
|
| 185 |
+
field: "fontSize:fs"
|
| 186 |
+
}, {
|
| 187 |
+
field: "lineHeight:lh"
|
| 188 |
+
}, {
|
| 189 |
+
field: "squaredImage:si",
|
| 190 |
+
type: "bool"
|
| 191 |
+
}, {
|
| 192 |
+
field: "exportSize:es"
|
| 193 |
+
}, {
|
| 194 |
+
field: "watermark:wm",
|
| 195 |
+
type: "bool"
|
| 196 |
+
}, {
|
| 197 |
+
field: "code",
|
| 198 |
+
type: "encode"
|
| 199 |
+
}, {
|
| 200 |
+
field: "titleBar:tb",
|
| 201 |
+
type: "encode"
|
| 202 |
+
}, {
|
| 203 |
+
field: "state"
|
| 204 |
+
}],
|
| 205 |
+
u = function(e) {
|
| 206 |
+
if (e.state) return function(e) {
|
| 207 |
+
var t;
|
| 208 |
+
return t = atob(e), JSON.parse(decodeURIComponent(t))
|
| 209 |
+
}(e.state);
|
| 210 |
+
var t = s.map(l, e);
|
| 211 |
+
return Object.keys(t).forEach((function(e) {
|
| 212 |
+
"" === t[e] && (t[e] = void 0)
|
| 213 |
+
})), t
|
| 214 |
+
};
|
| 215 |
+
var f = function(e) {
|
| 216 |
+
var t = e.asPath,
|
| 217 |
+
r = function(e) {
|
| 218 |
+
try {
|
| 219 |
+
return i().parse(e, !0)
|
| 220 |
+
} catch (t) {
|
| 221 |
+
return i().parse(encodeURI(e), !0)
|
| 222 |
+
}
|
| 223 |
+
}(void 0 === t ? "" : t),
|
| 224 |
+
o = r.query,
|
| 225 |
+
n = r.pathname,
|
| 226 |
+
a = function(e) {
|
| 227 |
+
var t = u(e);
|
| 228 |
+
return Object.keys(t).length ? t : {}
|
| 229 |
+
}(o),
|
| 230 |
+
s = (0, c.Xv)(n.replace(/\/$/, "").split("/").pop());
|
| 231 |
+
return {
|
| 232 |
+
parameter: s.length >= 19 && s.indexOf(".") < 0 ? s : null,
|
| 233 |
+
queryState: a
|
| 234 |
+
}
|
| 235 |
+
},
|
| 236 |
+
d = function(e, t) {
|
| 237 |
+
var r = s.map(p, t);
|
| 238 |
+
e.replace({
|
| 239 |
+
pathname: e.pathname
|
| 240 |
+
}, {
|
| 241 |
+
pathname: e.pathname,
|
| 242 |
+
query: r
|
| 243 |
+
}, {
|
| 244 |
+
shallow: !0,
|
| 245 |
+
scroll: !1
|
| 246 |
+
})
|
| 247 |
+
}
|
| 248 |
+
},
|
| 249 |
+
83867: function(e, t, r) {
|
| 250 |
+
"use strict";
|
| 251 |
+
r.r(t);
|
| 252 |
+
var o = r(34051),
|
| 253 |
+
n = r.n(o),
|
| 254 |
+
a = r(85893),
|
| 255 |
+
i = r(79547),
|
| 256 |
+
c = r.n(i),
|
| 257 |
+
s = r(67294),
|
| 258 |
+
l = r(9008),
|
| 259 |
+
p = r.n(l),
|
| 260 |
+
u = r(11163),
|
| 261 |
+
f = r(17896),
|
| 262 |
+
d = r(7533),
|
| 263 |
+
h = r(25026),
|
| 264 |
+
m = r(91802),
|
| 265 |
+
b = r(82329),
|
| 266 |
+
y = r(58299),
|
| 267 |
+
v = r(96262);
|
| 268 |
+
|
| 269 |
+
function g(e) {
|
| 270 |
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
| 271 |
+
return e
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
function w(e, t, r, o, n, a, i) {
|
| 275 |
+
try {
|
| 276 |
+
var c = e[a](i),
|
| 277 |
+
s = c.value
|
| 278 |
+
} catch (l) {
|
| 279 |
+
return void r(l)
|
| 280 |
+
}
|
| 281 |
+
c.done ? t(s) : Promise.resolve(s).then(o, n)
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
function x(e, t) {
|
| 285 |
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
function j(e, t) {
|
| 289 |
+
for (var r = 0; r < t.length; r++) {
|
| 290 |
+
var o = t[r];
|
| 291 |
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o)
|
| 292 |
+
}
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
function O(e, t, r) {
|
| 296 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 297 |
+
value: r,
|
| 298 |
+
enumerable: !0,
|
| 299 |
+
configurable: !0,
|
| 300 |
+
writable: !0
|
| 301 |
+
}) : e[t] = r, e
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
function C(e) {
|
| 305 |
+
return (C = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
| 306 |
+
return e.__proto__ || Object.getPrototypeOf(e)
|
| 307 |
+
})(e)
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
function R(e) {
|
| 311 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 312 |
+
var r = null != arguments[t] ? arguments[t] : {},
|
| 313 |
+
o = Object.keys(r);
|
| 314 |
+
"function" === typeof Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(r).filter((function(e) {
|
| 315 |
+
return Object.getOwnPropertyDescriptor(r, e).enumerable
|
| 316 |
+
})))), o.forEach((function(t) {
|
| 317 |
+
O(e, t, r[t])
|
| 318 |
+
}))
|
| 319 |
+
}
|
| 320 |
+
return e
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
function k(e, t) {
|
| 324 |
+
return !t || "object" !== U(t) && "function" !== typeof t ? g(e) : t
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
function S(e, t) {
|
| 328 |
+
return (S = Object.setPrototypeOf || function(e, t) {
|
| 329 |
+
return e.__proto__ = t, e
|
| 330 |
+
})(e, t)
|
| 331 |
+
}
|
| 332 |
+
var U = function(e) {
|
| 333 |
+
return e && "undefined" !== typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e
|
| 334 |
+
};
|
| 335 |
+
|
| 336 |
+
function z(e) {
|
| 337 |
+
var t = function() {
|
| 338 |
+
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
|
| 339 |
+
if (Reflect.construct.sham) return !1;
|
| 340 |
+
if ("function" === typeof Proxy) return !0;
|
| 341 |
+
try {
|
| 342 |
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0
|
| 343 |
+
} catch (e) {
|
| 344 |
+
return !1
|
| 345 |
+
}
|
| 346 |
+
}();
|
| 347 |
+
return function() {
|
| 348 |
+
var r, o = C(e);
|
| 349 |
+
if (t) {
|
| 350 |
+
var n = C(this).constructor;
|
| 351 |
+
r = Reflect.construct(o, arguments, n)
|
| 352 |
+
} else r = o.apply(this, arguments);
|
| 353 |
+
return k(this, r)
|
| 354 |
+
}
|
| 355 |
+
}
|
| 356 |
+
var I = function(e) {
|
| 357 |
+
return (0, a.jsxs)(s.Fragment, {
|
| 358 |
+
children: [(0, a.jsx)(p(), {
|
| 359 |
+
children: (0, a.jsx)("title", {
|
| 360 |
+
className: "jsx-665d1a0250546110",
|
| 361 |
+
children: "Carbon Embeds"
|
| 362 |
+
})
|
| 363 |
+
}), (0, a.jsx)(d.NR, {}), (0, a.jsx)(d.wH, {
|
| 364 |
+
theme: e.theme
|
| 365 |
+
}), (0, a.jsx)(d.ap, {}), (0, a.jsx)(h.Z, {}), e.children, d.tO.includes(e.theme) && (0, a.jsx)(b.Z, {
|
| 366 |
+
highlights: y.a5[e.theme].highlights
|
| 367 |
+
}), (0, a.jsx)(c(), {
|
| 368 |
+
id: "665d1a0250546110",
|
| 369 |
+
children: "html,body{margin:0;background:transparent;min-height:0}"
|
| 370 |
+
})]
|
| 371 |
+
})
|
| 372 |
+
};
|
| 373 |
+
|
| 374 |
+
function _() {
|
| 375 |
+
window.dataLayer.push(arguments)
|
| 376 |
+
}
|
| 377 |
+
var N = function(e) {
|
| 378 |
+
! function(e, t) {
|
| 379 |
+
if ("function" !== typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
| 380 |
+
e.prototype = Object.create(t && t.prototype, {
|
| 381 |
+
constructor: {
|
| 382 |
+
value: e,
|
| 383 |
+
writable: !0,
|
| 384 |
+
configurable: !0
|
| 385 |
+
}
|
| 386 |
+
}), t && S(e, t)
|
| 387 |
+
}(l, e);
|
| 388 |
+
var t, r, o, i = z(l);
|
| 389 |
+
|
| 390 |
+
function l() {
|
| 391 |
+
var e;
|
| 392 |
+
return x(this, l), O(g(e = i.apply(this, arguments)), "state", R({}, y.Z, {
|
| 393 |
+
code: y.Zm,
|
| 394 |
+
mounted: !1,
|
| 395 |
+
readOnly: !0
|
| 396 |
+
})), O(g(e), "snippet", {}), O(g(e), "ref", s.createRef()), O(g(e), "postMessage", (function() {
|
| 397 |
+
setTimeout((function() {
|
| 398 |
+
return window.top.postMessage(JSON.stringify({
|
| 399 |
+
src: window.location.toString(),
|
| 400 |
+
context: "iframe.resize",
|
| 401 |
+
height: e.ref.current.offsetHeight
|
| 402 |
+
}), "*")
|
| 403 |
+
}), 0)
|
| 404 |
+
})), O(g(e), "updateCode", (function(t) {
|
| 405 |
+
e.setState({
|
| 406 |
+
code: t
|
| 407 |
+
}, e.postMessage), window.top.postMessage({
|
| 408 |
+
id: e.state.id ? "carbon:".concat(e.state.id) : "carbon",
|
| 409 |
+
code: t
|
| 410 |
+
}, "*")
|
| 411 |
+
})), e
|
| 412 |
+
}
|
| 413 |
+
return t = l, r = [{
|
| 414 |
+
key: "componentDidMount",
|
| 415 |
+
value: function() {
|
| 416 |
+
var e, t = this;
|
| 417 |
+
return (e = n().mark((function e() {
|
| 418 |
+
var r;
|
| 419 |
+
return n().wrap((function(e) {
|
| 420 |
+
for (;;) switch (e.prev = e.next) {
|
| 421 |
+
case 0:
|
| 422 |
+
r = (0, v.wy)(t.props.router).queryState, t.setState(R({}, t.props.snippet, r, {
|
| 423 |
+
copyable: !1 !== r.copy,
|
| 424 |
+
readOnly: !1 !== r.readonly,
|
| 425 |
+
mounted: !0
|
| 426 |
+
}), t.postMessage);
|
| 427 |
+
try {
|
| 428 |
+
window.dataLayer = window.dataLayer || [], _("js", new Date), _("config", y.vt), _("event", "iframe:mount", {
|
| 429 |
+
event_category: "Embed",
|
| 430 |
+
event_label: document.referrer,
|
| 431 |
+
non_interaction: !0
|
| 432 |
+
})
|
| 433 |
+
} catch (o) {
|
| 434 |
+
console.error(o)
|
| 435 |
+
}
|
| 436 |
+
case 3:
|
| 437 |
+
case "end":
|
| 438 |
+
return e.stop()
|
| 439 |
+
}
|
| 440 |
+
}), e)
|
| 441 |
+
})), function() {
|
| 442 |
+
var t = this,
|
| 443 |
+
r = arguments;
|
| 444 |
+
return new Promise((function(o, n) {
|
| 445 |
+
var a = e.apply(t, r);
|
| 446 |
+
|
| 447 |
+
function i(e) {
|
| 448 |
+
w(a, o, n, i, c, "next", e)
|
| 449 |
+
}
|
| 450 |
+
|
| 451 |
+
function c(e) {
|
| 452 |
+
w(a, o, n, i, c, "throw", e)
|
| 453 |
+
}
|
| 454 |
+
i(void 0)
|
| 455 |
+
}))
|
| 456 |
+
})()
|
| 457 |
+
}
|
| 458 |
+
}, {
|
| 459 |
+
key: "render",
|
| 460 |
+
value: function() {
|
| 461 |
+
return (0, a.jsxs)(I, {
|
| 462 |
+
theme: this.state.theme,
|
| 463 |
+
children: [(0, a.jsx)("div", {
|
| 464 |
+
hidden: !this.state.mounted,
|
| 465 |
+
className: "jsx-db172f055ec7c404",
|
| 466 |
+
children: (0, a.jsx)(m.Z, {
|
| 467 |
+
ref: this.ref,
|
| 468 |
+
config: this.state,
|
| 469 |
+
readOnly: this.state.readOnly,
|
| 470 |
+
copyable: this.state.copyable,
|
| 471 |
+
onChange: this.updateCode,
|
| 472 |
+
children: this.state.code
|
| 473 |
+
}, this.state.mounted)
|
| 474 |
+
}), (0, a.jsx)(c(), {
|
| 475 |
+
id: "db172f055ec7c404",
|
| 476 |
+
children: ".eliminateOnRender{display:none}"
|
| 477 |
+
})]
|
| 478 |
+
})
|
| 479 |
+
}
|
| 480 |
+
}], r && j(t.prototype, r), o && j(t, o), l
|
| 481 |
+
}(s.Component);
|
| 482 |
+
O(N, "contextType", f.Z), t.default = (0, u.withRouter)(N)
|
| 483 |
+
},
|
| 484 |
+
11987: function(e, t, r) {
|
| 485 |
+
! function() {
|
| 486 |
+
var t = {
|
| 487 |
+
477: function(e) {
|
| 488 |
+
"use strict";
|
| 489 |
+
e.exports = r(17673)
|
| 490 |
+
}
|
| 491 |
+
},
|
| 492 |
+
o = {};
|
| 493 |
+
|
| 494 |
+
function n(e) {
|
| 495 |
+
var r = o[e];
|
| 496 |
+
if (void 0 !== r) return r.exports;
|
| 497 |
+
var a = o[e] = {
|
| 498 |
+
exports: {}
|
| 499 |
+
},
|
| 500 |
+
i = !0;
|
| 501 |
+
try {
|
| 502 |
+
t[e](a, a.exports, n), i = !1
|
| 503 |
+
} finally {
|
| 504 |
+
i && delete o[e]
|
| 505 |
+
}
|
| 506 |
+
return a.exports
|
| 507 |
+
}
|
| 508 |
+
n.ab = "//";
|
| 509 |
+
var a = {};
|
| 510 |
+
! function() {
|
| 511 |
+
var e, t = a,
|
| 512 |
+
r = (e = n(477)) && "object" == typeof e && "default" in e ? e.default : e,
|
| 513 |
+
o = /https?|ftp|gopher|file/;
|
| 514 |
+
|
| 515 |
+
function i(e) {
|
| 516 |
+
"string" == typeof e && (e = g(e));
|
| 517 |
+
var t = function(e, t, r) {
|
| 518 |
+
var o = e.auth,
|
| 519 |
+
n = e.hostname,
|
| 520 |
+
a = e.protocol || "",
|
| 521 |
+
i = e.pathname || "",
|
| 522 |
+
c = e.hash || "",
|
| 523 |
+
s = e.query || "",
|
| 524 |
+
l = !1;
|
| 525 |
+
o = o ? encodeURIComponent(o).replace(/%3A/i, ":") + "@" : "", e.host ? l = o + e.host : n && (l = o + (~n.indexOf(":") ? "[" + n + "]" : n), e.port && (l += ":" + e.port)), s && "object" == typeof s && (s = t.encode(s));
|
| 526 |
+
var p = e.search || s && "?" + s || "";
|
| 527 |
+
return a && ":" !== a.substr(-1) && (a += ":"), e.slashes || (!a || r.test(a)) && !1 !== l ? (l = "//" + (l || ""), i && "/" !== i[0] && (i = "/" + i)) : l || (l = ""), c && "#" !== c[0] && (c = "#" + c), p && "?" !== p[0] && (p = "?" + p), {
|
| 528 |
+
protocol: a,
|
| 529 |
+
host: l,
|
| 530 |
+
pathname: i = i.replace(/[?#]/g, encodeURIComponent),
|
| 531 |
+
search: p = p.replace("#", "%23"),
|
| 532 |
+
hash: c
|
| 533 |
+
}
|
| 534 |
+
}(e, r, o);
|
| 535 |
+
return "" + t.protocol + t.host + t.pathname + t.search + t.hash
|
| 536 |
+
}
|
| 537 |
+
var c = "http://",
|
| 538 |
+
s = "w.w",
|
| 539 |
+
l = c + s,
|
| 540 |
+
p = /^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,
|
| 541 |
+
u = /https?|ftp|gopher|file/;
|
| 542 |
+
|
| 543 |
+
function f(e, t) {
|
| 544 |
+
var r = "string" == typeof e ? g(e) : e;
|
| 545 |
+
e = "object" == typeof e ? i(e) : e;
|
| 546 |
+
var o = g(t),
|
| 547 |
+
n = "";
|
| 548 |
+
r.protocol && !r.slashes && (n = r.protocol, e = e.replace(r.protocol, ""), n += "/" === t[0] || "/" === e[0] ? "/" : ""), n && o.protocol && (n = "", o.slashes || (n = o.protocol, t = t.replace(o.protocol, "")));
|
| 549 |
+
var a = e.match(p);
|
| 550 |
+
a && !o.protocol && (e = e.substr((n = a[1] + (a[2] || "")).length), /^\/\/[^/]/.test(t) && (n = n.slice(0, -1)));
|
| 551 |
+
var s = new URL(e, l + "/"),
|
| 552 |
+
f = new URL(t, s).toString().replace(l, ""),
|
| 553 |
+
d = o.protocol || r.protocol;
|
| 554 |
+
return d += r.slashes || o.slashes ? "//" : "", !n && d ? f = f.replace(c, d) : n && (f = f.replace(c, "")), u.test(f) || ~t.indexOf(".") || "/" === e.slice(-1) || "/" === t.slice(-1) || "/" !== f.slice(-1) || (f = f.slice(0, -1)), n && (f = n + ("/" === f[0] ? f.substr(1) : f)), f
|
| 555 |
+
}
|
| 556 |
+
|
| 557 |
+
function d() {}
|
| 558 |
+
d.prototype.parse = g, d.prototype.format = i, d.prototype.resolve = f, d.prototype.resolveObject = f;
|
| 559 |
+
var h = /^https?|ftp|gopher|file/,
|
| 560 |
+
m = /^(.*?)([#?].*)/,
|
| 561 |
+
b = /^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,
|
| 562 |
+
y = /^([a-z0-9.+-]*:)?\/\/\/*/i,
|
| 563 |
+
v = /^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;
|
| 564 |
+
|
| 565 |
+
function g(e, t, o) {
|
| 566 |
+
if (void 0 === t && (t = !1), void 0 === o && (o = !1), e && "object" == typeof e && e instanceof d) return e;
|
| 567 |
+
var n = (e = e.trim()).match(m);
|
| 568 |
+
e = n ? n[1].replace(/\\/g, "/") + n[2] : e.replace(/\\/g, "/"), v.test(e) && "/" !== e.slice(-1) && (e += "/");
|
| 569 |
+
var a = !/(^javascript)/.test(e) && e.match(b),
|
| 570 |
+
c = y.test(e),
|
| 571 |
+
p = "";
|
| 572 |
+
a && (h.test(a[1]) || (p = a[1].toLowerCase(), e = "" + a[2] + a[3]), a[2] || (c = !1, h.test(a[1]) ? (p = a[1], e = "" + a[3]) : e = "//" + a[3]), 3 !== a[2].length && 1 !== a[2].length || (p = a[1], e = "/" + a[3]));
|
| 573 |
+
var u, f = (n ? n[1] : e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),
|
| 574 |
+
g = f && f[1],
|
| 575 |
+
w = new d,
|
| 576 |
+
x = "",
|
| 577 |
+
j = "";
|
| 578 |
+
try {
|
| 579 |
+
u = new URL(e)
|
| 580 |
+
} catch (t) {
|
| 581 |
+
x = t, p || o || !/^\/\//.test(e) || /^\/\/.+[@.]/.test(e) || (j = "/", e = e.substr(1));
|
| 582 |
+
try {
|
| 583 |
+
u = new URL(e, l)
|
| 584 |
+
} catch (e) {
|
| 585 |
+
return w.protocol = p, w.href = p, w
|
| 586 |
+
}
|
| 587 |
+
}
|
| 588 |
+
w.slashes = c && !j, w.host = u.host === s ? "" : u.host, w.hostname = u.hostname === s ? "" : u.hostname.replace(/(\[|\])/g, ""), w.protocol = x ? p || null : u.protocol, w.search = u.search.replace(/\\/g, "%5C"), w.hash = u.hash.replace(/\\/g, "%5C");
|
| 589 |
+
var O = e.split("#");
|
| 590 |
+
!w.search && ~O[0].indexOf("?") && (w.search = "?"), w.hash || "" !== O[1] || (w.hash = "#"), w.query = t ? r.decode(u.search.substr(1)) : w.search.substr(1), w.pathname = j + (a ? function(e) {
|
| 591 |
+
return e.replace(/['^|`]/g, (function(e) {
|
| 592 |
+
return "%" + e.charCodeAt().toString(16).toUpperCase()
|
| 593 |
+
})).replace(/((?:%[0-9A-F]{2})+)/g, (function(e, t) {
|
| 594 |
+
try {
|
| 595 |
+
return decodeURIComponent(t).split("").map((function(e) {
|
| 596 |
+
var t = e.charCodeAt();
|
| 597 |
+
return t > 256 || /^[a-z0-9]$/i.test(e) ? e : "%" + t.toString(16).toUpperCase()
|
| 598 |
+
})).join("")
|
| 599 |
+
} catch (e) {
|
| 600 |
+
return t
|
| 601 |
+
}
|
| 602 |
+
}))
|
| 603 |
+
}(u.pathname) : u.pathname), "about:" === w.protocol && "blank" === w.pathname && (w.protocol = "", w.pathname = ""), x && "/" !== e[0] && (w.pathname = w.pathname.substr(1)), p && !h.test(p) && "/" !== e.slice(-1) && "/" === w.pathname && (w.pathname = ""), w.path = w.pathname + w.search, w.auth = [u.username, u.password].map(decodeURIComponent).filter(Boolean).join(":"), w.port = u.port, g && !w.host.endsWith(g) && (w.host += g, w.port = g.slice(1)), w.href = j ? "" + w.pathname + w.search + w.hash : i(w);
|
| 604 |
+
var C = /^(file)/.test(w.href) ? ["host", "hostname"] : [];
|
| 605 |
+
return Object.keys(w).forEach((function(e) {
|
| 606 |
+
~C.indexOf(e) || (w[e] = w[e] || null)
|
| 607 |
+
})), w
|
| 608 |
+
}
|
| 609 |
+
t.parse = g, t.format = i, t.resolve = f, t.resolveObject = function(e, t) {
|
| 610 |
+
return g(f(e, t))
|
| 611 |
+
}, t.Url = d
|
| 612 |
+
}(), e.exports = a
|
| 613 |
+
}()
|
| 614 |
+
},
|
| 615 |
+
62587: function(e) {
|
| 616 |
+
"use strict";
|
| 617 |
+
|
| 618 |
+
function t(e, t) {
|
| 619 |
+
return Object.prototype.hasOwnProperty.call(e, t)
|
| 620 |
+
}
|
| 621 |
+
e.exports = function(e, r, o, n) {
|
| 622 |
+
r = r || "&", o = o || "=";
|
| 623 |
+
var a = {};
|
| 624 |
+
if ("string" !== typeof e || 0 === e.length) return a;
|
| 625 |
+
var i = /\+/g;
|
| 626 |
+
e = e.split(r);
|
| 627 |
+
var c = 1e3;
|
| 628 |
+
n && "number" === typeof n.maxKeys && (c = n.maxKeys);
|
| 629 |
+
var s = e.length;
|
| 630 |
+
c > 0 && s > c && (s = c);
|
| 631 |
+
for (var l = 0; l < s; ++l) {
|
| 632 |
+
var p, u, f, d, h = e[l].replace(i, "%20"),
|
| 633 |
+
m = h.indexOf(o);
|
| 634 |
+
m >= 0 ? (p = h.substr(0, m), u = h.substr(m + 1)) : (p = h, u = ""), f = decodeURIComponent(p), d = decodeURIComponent(u), t(a, f) ? Array.isArray(a[f]) ? a[f].push(d) : a[f] = [a[f], d] : a[f] = d
|
| 635 |
+
}
|
| 636 |
+
return a
|
| 637 |
+
}
|
| 638 |
+
},
|
| 639 |
+
12361: function(e) {
|
| 640 |
+
"use strict";
|
| 641 |
+
var t = function(e) {
|
| 642 |
+
switch (typeof e) {
|
| 643 |
+
case "string":
|
| 644 |
+
return e;
|
| 645 |
+
case "boolean":
|
| 646 |
+
return e ? "true" : "false";
|
| 647 |
+
case "number":
|
| 648 |
+
return isFinite(e) ? e : "";
|
| 649 |
+
default:
|
| 650 |
+
return ""
|
| 651 |
+
}
|
| 652 |
+
};
|
| 653 |
+
e.exports = function(e, r, o, n) {
|
| 654 |
+
return r = r || "&", o = o || "=", null === e && (e = void 0), "object" === typeof e ? Object.keys(e).map((function(n) {
|
| 655 |
+
var a = encodeURIComponent(t(n)) + o;
|
| 656 |
+
return Array.isArray(e[n]) ? e[n].map((function(e) {
|
| 657 |
+
return a + encodeURIComponent(t(e))
|
| 658 |
+
})).join(r) : a + encodeURIComponent(t(e[n]))
|
| 659 |
+
})).join(r) : n ? encodeURIComponent(t(n)) + o + encodeURIComponent(t(e)) : ""
|
| 660 |
+
}
|
| 661 |
+
},
|
| 662 |
+
17673: function(e, t, r) {
|
| 663 |
+
"use strict";
|
| 664 |
+
t.decode = t.parse = r(62587), t.encode = t.stringify = r(12361)
|
| 665 |
+
}
|
| 666 |
+
}
|
| 667 |
+
]);
|
static/_next/static/chunks/867-624f974e1910ffb8.js
ADDED
|
@@ -0,0 +1,667 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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r(67294);
|
| 14 |
+
|
| 15 |
+
function i(e) {
|
| 16 |
+
var t = e.highlights;
|
| 17 |
+
return (0, o.jsx)(a(), {
|
| 18 |
+
id: "13734f156f215e2f",
|
| 19 |
+
dynamic: [t.text, t.background, t.string, t.comment, t.variable, t.variable2 || t.variable, t.variable3 || t.variable, t.number, t.keyword, t.property, t.definition, t.meta, t.operator, t.attribute, t.tag, t.builtin],
|
| 20 |
+
children: ".CodeMirror__container .CodeMirror{color:".concat(t.text, "!important;background-color:").concat(t.background, "!important}.cm-string,.cm-string-2{color:").concat(t.string, "!important}.cm-comment{color:").concat(t.comment, "!important}.cm-variable{color:").concat(t.variable, "!important}.cm-variable-2{color:").concat(t.variable2 || t.variable, "!important}.cm-variable-3{color:").concat(t.variable3 || t.variable, "!important}.cm-number{color:").concat(t.number, "!important}.cm-keyword{color:").concat(t.keyword, "!important}.cm-property{color:").concat(t.property, "!important}.cm-def{color:").concat(t.definition, "!important}.cm-meta{color:").concat(t.meta, "!important}.cm-operator{color:").concat(t.operator, "!important}.cm-attribute{color:").concat(t.attribute, "!important}.cm-tag{color:").concat(t.tag, "!important}.cm-builtin{color:").concat(t.builtin, "!important}.cm-s-dracula .CodeMirror-cursor{border-left:solid 2px#159588!important}.cm-s-vscode .CodeMirror-cursor{border-left:solid 2px#bebebe!important}.cm-s-solarized{-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.cm-s-solarized.cm-s-light{text-shadow:#eee8d5 0 1px!important}.cm-s-solarized.cm-s-light .CodeMirror-linenumber,.cm-s-solarized.cm-s-light .CodeMirror-linenumbers{background-color:#fdf6e3!important}.cm-s-solarized.cm-s-dark .CodeMirror-linenumber,.cm-s-solarized.cm-s-dark .CodeMirror-linenumbers{background-color:#002b36!important}")
|
| 21 |
+
})
|
| 22 |
+
}
|
| 23 |
+
},
|
| 24 |
+
96262: function(e, t, r) {
|
| 25 |
+
"use strict";
|
| 26 |
+
r.d(t, {
|
| 27 |
+
aA: function() {
|
| 28 |
+
return d
|
| 29 |
+
},
|
| 30 |
+
wy: function() {
|
| 31 |
+
return f
|
| 32 |
+
}
|
| 33 |
+
});
|
| 34 |
+
var o = r(19613),
|
| 35 |
+
n = r.n(o),
|
| 36 |
+
a = r(11987),
|
| 37 |
+
i = r.n(a),
|
| 38 |
+
c = r(94959),
|
| 39 |
+
s = new(n())({
|
| 40 |
+
types: {
|
| 41 |
+
bool: function(e) {
|
| 42 |
+
if (null != e) return "false" !== e && Boolean(e)
|
| 43 |
+
},
|
| 44 |
+
int: function(e) {
|
| 45 |
+
var t = parseInt(e);
|
| 46 |
+
if (!isNaN(t)) return t
|
| 47 |
+
},
|
| 48 |
+
intArray: function(e) {
|
| 49 |
+
if (null != e) return e.split(",").filter((function(e) {
|
| 50 |
+
return !isNaN(e)
|
| 51 |
+
})).map((function(e) {
|
| 52 |
+
return parseInt(e)
|
| 53 |
+
}))
|
| 54 |
+
},
|
| 55 |
+
parse: function(e) {
|
| 56 |
+
try {
|
| 57 |
+
return JSON.parse(e)
|
| 58 |
+
} catch (t) {
|
| 59 |
+
return e
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
decode: function(e) {
|
| 63 |
+
if (null != e) try {
|
| 64 |
+
return decodeURIComponent(e)
|
| 65 |
+
} catch (t) {
|
| 66 |
+
return e
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
encode: function(e) {
|
| 70 |
+
if (null != e) try {
|
| 71 |
+
var t = encodeURIComponent(e);
|
| 72 |
+
return t.length > 4e3 ? encodeURIComponent(e.slice(0, 2e3)) : t
|
| 73 |
+
} catch (r) {
|
| 74 |
+
return e
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
}),
|
| 79 |
+
l = [{
|
| 80 |
+
field: "bg:backgroundColor"
|
| 81 |
+
}, {
|
| 82 |
+
field: "t:theme"
|
| 83 |
+
}, {
|
| 84 |
+
field: "wt:windowTheme"
|
| 85 |
+
}, {
|
| 86 |
+
field: "l:language"
|
| 87 |
+
}, {
|
| 88 |
+
field: "width"
|
| 89 |
+
}, {
|
| 90 |
+
field: "ds:dropShadow",
|
| 91 |
+
type: "bool"
|
| 92 |
+
}, {
|
| 93 |
+
field: "dsyoff:dropShadowOffsetY"
|
| 94 |
+
}, {
|
| 95 |
+
field: "dsblur:dropShadowBlurRadius"
|
| 96 |
+
}, {
|
| 97 |
+
field: "wc:windowControls",
|
| 98 |
+
type: "bool"
|
| 99 |
+
}, {
|
| 100 |
+
field: "wa:widthAdjustment",
|
| 101 |
+
type: "bool"
|
| 102 |
+
}, {
|
| 103 |
+
field: "pv:paddingVertical"
|
| 104 |
+
}, {
|
| 105 |
+
field: "ph:paddingHorizontal"
|
| 106 |
+
}, {
|
| 107 |
+
field: "ln:lineNumbers",
|
| 108 |
+
type: "bool"
|
| 109 |
+
}, {
|
| 110 |
+
field: "fl:firstLineNumber",
|
| 111 |
+
type: "int"
|
| 112 |
+
}, {
|
| 113 |
+
field: "fm:fontFamily"
|
| 114 |
+
}, {
|
| 115 |
+
field: "fs:fontSize"
|
| 116 |
+
}, {
|
| 117 |
+
field: "lh:lineHeight"
|
| 118 |
+
}, {
|
| 119 |
+
field: "si:squaredImage",
|
| 120 |
+
type: "bool"
|
| 121 |
+
}, {
|
| 122 |
+
field: "es:exportSize"
|
| 123 |
+
}, {
|
| 124 |
+
field: "wm:watermark",
|
| 125 |
+
type: "bool"
|
| 126 |
+
}, {
|
| 127 |
+
field: "sl:selectedLines",
|
| 128 |
+
type: "intArray"
|
| 129 |
+
}, {
|
| 130 |
+
field: "copy",
|
| 131 |
+
type: "bool"
|
| 132 |
+
}, {
|
| 133 |
+
field: "readonly",
|
| 134 |
+
type: "bool"
|
| 135 |
+
}, {
|
| 136 |
+
field: "id"
|
| 137 |
+
}, {
|
| 138 |
+
field: "highlights",
|
| 139 |
+
type: "parse"
|
| 140 |
+
}, {
|
| 141 |
+
field: "code",
|
| 142 |
+
type: "decode"
|
| 143 |
+
}, {
|
| 144 |
+
field: "tb:titleBar",
|
| 145 |
+
type: "decode"
|
| 146 |
+
}, {
|
| 147 |
+
field: "state"
|
| 148 |
+
}],
|
| 149 |
+
p = [{
|
| 150 |
+
field: "backgroundColor:bg"
|
| 151 |
+
}, {
|
| 152 |
+
field: "theme:t"
|
| 153 |
+
}, {
|
| 154 |
+
field: "windowTheme:wt"
|
| 155 |
+
}, {
|
| 156 |
+
field: "language:l"
|
| 157 |
+
}, {
|
| 158 |
+
field: "width"
|
| 159 |
+
}, {
|
| 160 |
+
field: "dropShadow:ds",
|
| 161 |
+
type: "bool"
|
| 162 |
+
}, {
|
| 163 |
+
field: "dropShadowOffsetY:dsyoff"
|
| 164 |
+
}, {
|
| 165 |
+
field: "dropShadowBlurRadius:dsblur"
|
| 166 |
+
}, {
|
| 167 |
+
field: "windowControls:wc",
|
| 168 |
+
type: "bool"
|
| 169 |
+
}, {
|
| 170 |
+
field: "widthAdjustment:wa",
|
| 171 |
+
type: "bool"
|
| 172 |
+
}, {
|
| 173 |
+
field: "paddingVertical:pv"
|
| 174 |
+
}, {
|
| 175 |
+
field: "paddingHorizontal:ph"
|
| 176 |
+
}, {
|
| 177 |
+
field: "lineNumbers:ln",
|
| 178 |
+
type: "bool"
|
| 179 |
+
}, {
|
| 180 |
+
field: "firstLineNumber:fl",
|
| 181 |
+
type: "int"
|
| 182 |
+
}, {
|
| 183 |
+
field: "fontFamily:fm"
|
| 184 |
+
}, {
|
| 185 |
+
field: "fontSize:fs"
|
| 186 |
+
}, {
|
| 187 |
+
field: "lineHeight:lh"
|
| 188 |
+
}, {
|
| 189 |
+
field: "squaredImage:si",
|
| 190 |
+
type: "bool"
|
| 191 |
+
}, {
|
| 192 |
+
field: "exportSize:es"
|
| 193 |
+
}, {
|
| 194 |
+
field: "watermark:wm",
|
| 195 |
+
type: "bool"
|
| 196 |
+
}, {
|
| 197 |
+
field: "code",
|
| 198 |
+
type: "encode"
|
| 199 |
+
}, {
|
| 200 |
+
field: "titleBar:tb",
|
| 201 |
+
type: "encode"
|
| 202 |
+
}, {
|
| 203 |
+
field: "state"
|
| 204 |
+
}],
|
| 205 |
+
u = function(e) {
|
| 206 |
+
if (e.state) return function(e) {
|
| 207 |
+
var t;
|
| 208 |
+
return t = atob(e), JSON.parse(decodeURIComponent(t))
|
| 209 |
+
}(e.state);
|
| 210 |
+
var t = s.map(l, e);
|
| 211 |
+
return Object.keys(t).forEach((function(e) {
|
| 212 |
+
"" === t[e] && (t[e] = void 0)
|
| 213 |
+
})), t
|
| 214 |
+
};
|
| 215 |
+
var f = function(e) {
|
| 216 |
+
var t = e.asPath,
|
| 217 |
+
r = function(e) {
|
| 218 |
+
try {
|
| 219 |
+
return i().parse(e, !0)
|
| 220 |
+
} catch (t) {
|
| 221 |
+
return i().parse(encodeURI(e), !0)
|
| 222 |
+
}
|
| 223 |
+
}(void 0 === t ? "" : t),
|
| 224 |
+
o = r.query,
|
| 225 |
+
n = r.pathname,
|
| 226 |
+
a = function(e) {
|
| 227 |
+
var t = u(e);
|
| 228 |
+
return Object.keys(t).length ? t : {}
|
| 229 |
+
}(o),
|
| 230 |
+
s = (0, c.Xv)(n.replace(/\/$/, "").split("/").pop());
|
| 231 |
+
return {
|
| 232 |
+
parameter: s.length >= 19 && s.indexOf(".") < 0 ? s : null,
|
| 233 |
+
queryState: a
|
| 234 |
+
}
|
| 235 |
+
},
|
| 236 |
+
d = function(e, t) {
|
| 237 |
+
var r = s.map(p, t);
|
| 238 |
+
e.replace({
|
| 239 |
+
pathname: e.pathname
|
| 240 |
+
}, {
|
| 241 |
+
pathname: e.pathname,
|
| 242 |
+
query: r
|
| 243 |
+
}, {
|
| 244 |
+
shallow: !0,
|
| 245 |
+
scroll: !1
|
| 246 |
+
})
|
| 247 |
+
}
|
| 248 |
+
},
|
| 249 |
+
83867: function(e, t, r) {
|
| 250 |
+
"use strict";
|
| 251 |
+
r.r(t);
|
| 252 |
+
var o = r(34051),
|
| 253 |
+
n = r.n(o),
|
| 254 |
+
a = r(85893),
|
| 255 |
+
i = r(79547),
|
| 256 |
+
c = r.n(i),
|
| 257 |
+
s = r(67294),
|
| 258 |
+
l = r(9008),
|
| 259 |
+
p = r.n(l),
|
| 260 |
+
u = r(11163),
|
| 261 |
+
f = r(17896),
|
| 262 |
+
d = r(7533),
|
| 263 |
+
h = r(25026),
|
| 264 |
+
m = r(91802),
|
| 265 |
+
b = r(82329),
|
| 266 |
+
y = r(58299),
|
| 267 |
+
v = r(96262);
|
| 268 |
+
|
| 269 |
+
function g(e) {
|
| 270 |
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
| 271 |
+
return e
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
function w(e, t, r, o, n, a, i) {
|
| 275 |
+
try {
|
| 276 |
+
var c = e[a](i),
|
| 277 |
+
s = c.value
|
| 278 |
+
} catch (l) {
|
| 279 |
+
return void r(l)
|
| 280 |
+
}
|
| 281 |
+
c.done ? t(s) : Promise.resolve(s).then(o, n)
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
function x(e, t) {
|
| 285 |
+
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
function j(e, t) {
|
| 289 |
+
for (var r = 0; r < t.length; r++) {
|
| 290 |
+
var o = t[r];
|
| 291 |
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o)
|
| 292 |
+
}
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
function O(e, t, r) {
|
| 296 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 297 |
+
value: r,
|
| 298 |
+
enumerable: !0,
|
| 299 |
+
configurable: !0,
|
| 300 |
+
writable: !0
|
| 301 |
+
}) : e[t] = r, e
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
function C(e) {
|
| 305 |
+
return (C = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
|
| 306 |
+
return e.__proto__ || Object.getPrototypeOf(e)
|
| 307 |
+
})(e)
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
function R(e) {
|
| 311 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 312 |
+
var r = null != arguments[t] ? arguments[t] : {},
|
| 313 |
+
o = Object.keys(r);
|
| 314 |
+
"function" === typeof Object.getOwnPropertySymbols && (o = o.concat(Object.getOwnPropertySymbols(r).filter((function(e) {
|
| 315 |
+
return Object.getOwnPropertyDescriptor(r, e).enumerable
|
| 316 |
+
})))), o.forEach((function(t) {
|
| 317 |
+
O(e, t, r[t])
|
| 318 |
+
}))
|
| 319 |
+
}
|
| 320 |
+
return e
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
function k(e, t) {
|
| 324 |
+
return !t || "object" !== U(t) && "function" !== typeof t ? g(e) : t
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
function S(e, t) {
|
| 328 |
+
return (S = Object.setPrototypeOf || function(e, t) {
|
| 329 |
+
return e.__proto__ = t, e
|
| 330 |
+
})(e, t)
|
| 331 |
+
}
|
| 332 |
+
var U = function(e) {
|
| 333 |
+
return e && "undefined" !== typeof Symbol && e.constructor === Symbol ? "symbol" : typeof e
|
| 334 |
+
};
|
| 335 |
+
|
| 336 |
+
function z(e) {
|
| 337 |
+
var t = function() {
|
| 338 |
+
if ("undefined" === typeof Reflect || !Reflect.construct) return !1;
|
| 339 |
+
if (Reflect.construct.sham) return !1;
|
| 340 |
+
if ("function" === typeof Proxy) return !0;
|
| 341 |
+
try {
|
| 342 |
+
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))), !0
|
| 343 |
+
} catch (e) {
|
| 344 |
+
return !1
|
| 345 |
+
}
|
| 346 |
+
}();
|
| 347 |
+
return function() {
|
| 348 |
+
var r, o = C(e);
|
| 349 |
+
if (t) {
|
| 350 |
+
var n = C(this).constructor;
|
| 351 |
+
r = Reflect.construct(o, arguments, n)
|
| 352 |
+
} else r = o.apply(this, arguments);
|
| 353 |
+
return k(this, r)
|
| 354 |
+
}
|
| 355 |
+
}
|
| 356 |
+
var I = function(e) {
|
| 357 |
+
return (0, a.jsxs)(s.Fragment, {
|
| 358 |
+
children: [(0, a.jsx)(p(), {
|
| 359 |
+
children: (0, a.jsx)("title", {
|
| 360 |
+
className: "jsx-665d1a0250546110",
|
| 361 |
+
children: "Carbon Embeds"
|
| 362 |
+
})
|
| 363 |
+
}), (0, a.jsx)(d.NR, {}), (0, a.jsx)(d.wH, {
|
| 364 |
+
theme: e.theme
|
| 365 |
+
}), (0, a.jsx)(d.ap, {}), (0, a.jsx)(h.Z, {}), e.children, d.tO.includes(e.theme) && (0, a.jsx)(b.Z, {
|
| 366 |
+
highlights: y.a5[e.theme].highlights
|
| 367 |
+
}), (0, a.jsx)(c(), {
|
| 368 |
+
id: "665d1a0250546110",
|
| 369 |
+
children: "html,body{margin:0;background:transparent;min-height:0}"
|
| 370 |
+
})]
|
| 371 |
+
})
|
| 372 |
+
};
|
| 373 |
+
|
| 374 |
+
function _() {
|
| 375 |
+
window.dataLayer.push(arguments)
|
| 376 |
+
}
|
| 377 |
+
var N = function(e) {
|
| 378 |
+
! function(e, t) {
|
| 379 |
+
if ("function" !== typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
| 380 |
+
e.prototype = Object.create(t && t.prototype, {
|
| 381 |
+
constructor: {
|
| 382 |
+
value: e,
|
| 383 |
+
writable: !0,
|
| 384 |
+
configurable: !0
|
| 385 |
+
}
|
| 386 |
+
}), t && S(e, t)
|
| 387 |
+
}(l, e);
|
| 388 |
+
var t, r, o, i = z(l);
|
| 389 |
+
|
| 390 |
+
function l() {
|
| 391 |
+
var e;
|
| 392 |
+
return x(this, l), O(g(e = i.apply(this, arguments)), "state", R({}, y.Z, {
|
| 393 |
+
code: y.Zm,
|
| 394 |
+
mounted: !1,
|
| 395 |
+
readOnly: !0
|
| 396 |
+
})), O(g(e), "snippet", {}), O(g(e), "ref", s.createRef()), O(g(e), "postMessage", (function() {
|
| 397 |
+
setTimeout((function() {
|
| 398 |
+
return window.top.postMessage(JSON.stringify({
|
| 399 |
+
src: window.location.toString(),
|
| 400 |
+
context: "iframe.resize",
|
| 401 |
+
height: e.ref.current.offsetHeight
|
| 402 |
+
}), "*")
|
| 403 |
+
}), 0)
|
| 404 |
+
})), O(g(e), "updateCode", (function(t) {
|
| 405 |
+
e.setState({
|
| 406 |
+
code: t
|
| 407 |
+
}, e.postMessage), window.top.postMessage({
|
| 408 |
+
id: e.state.id ? "carbon:".concat(e.state.id) : "carbon",
|
| 409 |
+
code: t
|
| 410 |
+
}, "*")
|
| 411 |
+
})), e
|
| 412 |
+
}
|
| 413 |
+
return t = l, r = [{
|
| 414 |
+
key: "componentDidMount",
|
| 415 |
+
value: function() {
|
| 416 |
+
var e, t = this;
|
| 417 |
+
return (e = n().mark((function e() {
|
| 418 |
+
var r;
|
| 419 |
+
return n().wrap((function(e) {
|
| 420 |
+
for (;;) switch (e.prev = e.next) {
|
| 421 |
+
case 0:
|
| 422 |
+
r = (0, v.wy)(t.props.router).queryState, t.setState(R({}, t.props.snippet, r, {
|
| 423 |
+
copyable: !1 !== r.copy,
|
| 424 |
+
readOnly: !1 !== r.readonly,
|
| 425 |
+
mounted: !0
|
| 426 |
+
}), t.postMessage);
|
| 427 |
+
try {
|
| 428 |
+
window.dataLayer = window.dataLayer || [], _("js", new Date), _("config", y.vt), _("event", "iframe:mount", {
|
| 429 |
+
event_category: "Embed",
|
| 430 |
+
event_label: document.referrer,
|
| 431 |
+
non_interaction: !0
|
| 432 |
+
})
|
| 433 |
+
} catch (o) {
|
| 434 |
+
console.error(o)
|
| 435 |
+
}
|
| 436 |
+
case 3:
|
| 437 |
+
case "end":
|
| 438 |
+
return e.stop()
|
| 439 |
+
}
|
| 440 |
+
}), e)
|
| 441 |
+
})), function() {
|
| 442 |
+
var t = this,
|
| 443 |
+
r = arguments;
|
| 444 |
+
return new Promise((function(o, n) {
|
| 445 |
+
var a = e.apply(t, r);
|
| 446 |
+
|
| 447 |
+
function i(e) {
|
| 448 |
+
w(a, o, n, i, c, "next", e)
|
| 449 |
+
}
|
| 450 |
+
|
| 451 |
+
function c(e) {
|
| 452 |
+
w(a, o, n, i, c, "throw", e)
|
| 453 |
+
}
|
| 454 |
+
i(void 0)
|
| 455 |
+
}))
|
| 456 |
+
})()
|
| 457 |
+
}
|
| 458 |
+
}, {
|
| 459 |
+
key: "render",
|
| 460 |
+
value: function() {
|
| 461 |
+
return (0, a.jsxs)(I, {
|
| 462 |
+
theme: this.state.theme,
|
| 463 |
+
children: [(0, a.jsx)("div", {
|
| 464 |
+
hidden: !this.state.mounted,
|
| 465 |
+
className: "jsx-db172f055ec7c404",
|
| 466 |
+
children: (0, a.jsx)(m.Z, {
|
| 467 |
+
ref: this.ref,
|
| 468 |
+
config: this.state,
|
| 469 |
+
readOnly: this.state.readOnly,
|
| 470 |
+
copyable: this.state.copyable,
|
| 471 |
+
onChange: this.updateCode,
|
| 472 |
+
children: this.state.code
|
| 473 |
+
}, this.state.mounted)
|
| 474 |
+
}), (0, a.jsx)(c(), {
|
| 475 |
+
id: "db172f055ec7c404",
|
| 476 |
+
children: ".eliminateOnRender{display:none}"
|
| 477 |
+
})]
|
| 478 |
+
})
|
| 479 |
+
}
|
| 480 |
+
}], r && j(t.prototype, r), o && j(t, o), l
|
| 481 |
+
}(s.Component);
|
| 482 |
+
O(N, "contextType", f.Z), t.default = (0, u.withRouter)(N)
|
| 483 |
+
},
|
| 484 |
+
11987: function(e, t, r) {
|
| 485 |
+
! function() {
|
| 486 |
+
var t = {
|
| 487 |
+
477: function(e) {
|
| 488 |
+
"use strict";
|
| 489 |
+
e.exports = r(17673)
|
| 490 |
+
}
|
| 491 |
+
},
|
| 492 |
+
o = {};
|
| 493 |
+
|
| 494 |
+
function n(e) {
|
| 495 |
+
var r = o[e];
|
| 496 |
+
if (void 0 !== r) return r.exports;
|
| 497 |
+
var a = o[e] = {
|
| 498 |
+
exports: {}
|
| 499 |
+
},
|
| 500 |
+
i = !0;
|
| 501 |
+
try {
|
| 502 |
+
t[e](a, a.exports, n), i = !1
|
| 503 |
+
} finally {
|
| 504 |
+
i && delete o[e]
|
| 505 |
+
}
|
| 506 |
+
return a.exports
|
| 507 |
+
}
|
| 508 |
+
n.ab = "//";
|
| 509 |
+
var a = {};
|
| 510 |
+
! function() {
|
| 511 |
+
var e, t = a,
|
| 512 |
+
r = (e = n(477)) && "object" == typeof e && "default" in e ? e.default : e,
|
| 513 |
+
o = /https?|ftp|gopher|file/;
|
| 514 |
+
|
| 515 |
+
function i(e) {
|
| 516 |
+
"string" == typeof e && (e = g(e));
|
| 517 |
+
var t = function(e, t, r) {
|
| 518 |
+
var o = e.auth,
|
| 519 |
+
n = e.hostname,
|
| 520 |
+
a = e.protocol || "",
|
| 521 |
+
i = e.pathname || "",
|
| 522 |
+
c = e.hash || "",
|
| 523 |
+
s = e.query || "",
|
| 524 |
+
l = !1;
|
| 525 |
+
o = o ? encodeURIComponent(o).replace(/%3A/i, ":") + "@" : "", e.host ? l = o + e.host : n && (l = o + (~n.indexOf(":") ? "[" + n + "]" : n), e.port && (l += ":" + e.port)), s && "object" == typeof s && (s = t.encode(s));
|
| 526 |
+
var p = e.search || s && "?" + s || "";
|
| 527 |
+
return a && ":" !== a.substr(-1) && (a += ":"), e.slashes || (!a || r.test(a)) && !1 !== l ? (l = "//" + (l || ""), i && "/" !== i[0] && (i = "/" + i)) : l || (l = ""), c && "#" !== c[0] && (c = "#" + c), p && "?" !== p[0] && (p = "?" + p), {
|
| 528 |
+
protocol: a,
|
| 529 |
+
host: l,
|
| 530 |
+
pathname: i = i.replace(/[?#]/g, encodeURIComponent),
|
| 531 |
+
search: p = p.replace("#", "%23"),
|
| 532 |
+
hash: c
|
| 533 |
+
}
|
| 534 |
+
}(e, r, o);
|
| 535 |
+
return "" + t.protocol + t.host + t.pathname + t.search + t.hash
|
| 536 |
+
}
|
| 537 |
+
var c = "http://",
|
| 538 |
+
s = "w.w",
|
| 539 |
+
l = c + s,
|
| 540 |
+
p = /^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,
|
| 541 |
+
u = /https?|ftp|gopher|file/;
|
| 542 |
+
|
| 543 |
+
function f(e, t) {
|
| 544 |
+
var r = "string" == typeof e ? g(e) : e;
|
| 545 |
+
e = "object" == typeof e ? i(e) : e;
|
| 546 |
+
var o = g(t),
|
| 547 |
+
n = "";
|
| 548 |
+
r.protocol && !r.slashes && (n = r.protocol, e = e.replace(r.protocol, ""), n += "/" === t[0] || "/" === e[0] ? "/" : ""), n && o.protocol && (n = "", o.slashes || (n = o.protocol, t = t.replace(o.protocol, "")));
|
| 549 |
+
var a = e.match(p);
|
| 550 |
+
a && !o.protocol && (e = e.substr((n = a[1] + (a[2] || "")).length), /^\/\/[^/]/.test(t) && (n = n.slice(0, -1)));
|
| 551 |
+
var s = new URL(e, l + "/"),
|
| 552 |
+
f = new URL(t, s).toString().replace(l, ""),
|
| 553 |
+
d = o.protocol || r.protocol;
|
| 554 |
+
return d += r.slashes || o.slashes ? "//" : "", !n && d ? f = f.replace(c, d) : n && (f = f.replace(c, "")), u.test(f) || ~t.indexOf(".") || "/" === e.slice(-1) || "/" === t.slice(-1) || "/" !== f.slice(-1) || (f = f.slice(0, -1)), n && (f = n + ("/" === f[0] ? f.substr(1) : f)), f
|
| 555 |
+
}
|
| 556 |
+
|
| 557 |
+
function d() {}
|
| 558 |
+
d.prototype.parse = g, d.prototype.format = i, d.prototype.resolve = f, d.prototype.resolveObject = f;
|
| 559 |
+
var h = /^https?|ftp|gopher|file/,
|
| 560 |
+
m = /^(.*?)([#?].*)/,
|
| 561 |
+
b = /^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,
|
| 562 |
+
y = /^([a-z0-9.+-]*:)?\/\/\/*/i,
|
| 563 |
+
v = /^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;
|
| 564 |
+
|
| 565 |
+
function g(e, t, o) {
|
| 566 |
+
if (void 0 === t && (t = !1), void 0 === o && (o = !1), e && "object" == typeof e && e instanceof d) return e;
|
| 567 |
+
var n = (e = e.trim()).match(m);
|
| 568 |
+
e = n ? n[1].replace(/\\/g, "/") + n[2] : e.replace(/\\/g, "/"), v.test(e) && "/" !== e.slice(-1) && (e += "/");
|
| 569 |
+
var a = !/(^javascript)/.test(e) && e.match(b),
|
| 570 |
+
c = y.test(e),
|
| 571 |
+
p = "";
|
| 572 |
+
a && (h.test(a[1]) || (p = a[1].toLowerCase(), e = "" + a[2] + a[3]), a[2] || (c = !1, h.test(a[1]) ? (p = a[1], e = "" + a[3]) : e = "//" + a[3]), 3 !== a[2].length && 1 !== a[2].length || (p = a[1], e = "/" + a[3]));
|
| 573 |
+
var u, f = (n ? n[1] : e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),
|
| 574 |
+
g = f && f[1],
|
| 575 |
+
w = new d,
|
| 576 |
+
x = "",
|
| 577 |
+
j = "";
|
| 578 |
+
try {
|
| 579 |
+
u = new URL(e)
|
| 580 |
+
} catch (t) {
|
| 581 |
+
x = t, p || o || !/^\/\//.test(e) || /^\/\/.+[@.]/.test(e) || (j = "/", e = e.substr(1));
|
| 582 |
+
try {
|
| 583 |
+
u = new URL(e, l)
|
| 584 |
+
} catch (e) {
|
| 585 |
+
return w.protocol = p, w.href = p, w
|
| 586 |
+
}
|
| 587 |
+
}
|
| 588 |
+
w.slashes = c && !j, w.host = u.host === s ? "" : u.host, w.hostname = u.hostname === s ? "" : u.hostname.replace(/(\[|\])/g, ""), w.protocol = x ? p || null : u.protocol, w.search = u.search.replace(/\\/g, "%5C"), w.hash = u.hash.replace(/\\/g, "%5C");
|
| 589 |
+
var O = e.split("#");
|
| 590 |
+
!w.search && ~O[0].indexOf("?") && (w.search = "?"), w.hash || "" !== O[1] || (w.hash = "#"), w.query = t ? r.decode(u.search.substr(1)) : w.search.substr(1), w.pathname = j + (a ? function(e) {
|
| 591 |
+
return e.replace(/['^|`]/g, (function(e) {
|
| 592 |
+
return "%" + e.charCodeAt().toString(16).toUpperCase()
|
| 593 |
+
})).replace(/((?:%[0-9A-F]{2})+)/g, (function(e, t) {
|
| 594 |
+
try {
|
| 595 |
+
return decodeURIComponent(t).split("").map((function(e) {
|
| 596 |
+
var t = e.charCodeAt();
|
| 597 |
+
return t > 256 || /^[a-z0-9]$/i.test(e) ? e : "%" + t.toString(16).toUpperCase()
|
| 598 |
+
})).join("")
|
| 599 |
+
} catch (e) {
|
| 600 |
+
return t
|
| 601 |
+
}
|
| 602 |
+
}))
|
| 603 |
+
}(u.pathname) : u.pathname), "about:" === w.protocol && "blank" === w.pathname && (w.protocol = "", w.pathname = ""), x && "/" !== e[0] && (w.pathname = w.pathname.substr(1)), p && !h.test(p) && "/" !== e.slice(-1) && "/" === w.pathname && (w.pathname = ""), w.path = w.pathname + w.search, w.auth = [u.username, u.password].map(decodeURIComponent).filter(Boolean).join(":"), w.port = u.port, g && !w.host.endsWith(g) && (w.host += g, w.port = g.slice(1)), w.href = j ? "" + w.pathname + w.search + w.hash : i(w);
|
| 604 |
+
var C = /^(file)/.test(w.href) ? ["host", "hostname"] : [];
|
| 605 |
+
return Object.keys(w).forEach((function(e) {
|
| 606 |
+
~C.indexOf(e) || (w[e] = w[e] || null)
|
| 607 |
+
})), w
|
| 608 |
+
}
|
| 609 |
+
t.parse = g, t.format = i, t.resolve = f, t.resolveObject = function(e, t) {
|
| 610 |
+
return g(f(e, t))
|
| 611 |
+
}, t.Url = d
|
| 612 |
+
}(), e.exports = a
|
| 613 |
+
}()
|
| 614 |
+
},
|
| 615 |
+
62587: function(e) {
|
| 616 |
+
"use strict";
|
| 617 |
+
|
| 618 |
+
function t(e, t) {
|
| 619 |
+
return Object.prototype.hasOwnProperty.call(e, t)
|
| 620 |
+
}
|
| 621 |
+
e.exports = function(e, r, o, n) {
|
| 622 |
+
r = r || "&", o = o || "=";
|
| 623 |
+
var a = {};
|
| 624 |
+
if ("string" !== typeof e || 0 === e.length) return a;
|
| 625 |
+
var i = /\+/g;
|
| 626 |
+
e = e.split(r);
|
| 627 |
+
var c = 1e3;
|
| 628 |
+
n && "number" === typeof n.maxKeys && (c = n.maxKeys);
|
| 629 |
+
var s = e.length;
|
| 630 |
+
c > 0 && s > c && (s = c);
|
| 631 |
+
for (var l = 0; l < s; ++l) {
|
| 632 |
+
var p, u, f, d, h = e[l].replace(i, "%20"),
|
| 633 |
+
m = h.indexOf(o);
|
| 634 |
+
m >= 0 ? (p = h.substr(0, m), u = h.substr(m + 1)) : (p = h, u = ""), f = decodeURIComponent(p), d = decodeURIComponent(u), t(a, f) ? Array.isArray(a[f]) ? a[f].push(d) : a[f] = [a[f], d] : a[f] = d
|
| 635 |
+
}
|
| 636 |
+
return a
|
| 637 |
+
}
|
| 638 |
+
},
|
| 639 |
+
12361: function(e) {
|
| 640 |
+
"use strict";
|
| 641 |
+
var t = function(e) {
|
| 642 |
+
switch (typeof e) {
|
| 643 |
+
case "string":
|
| 644 |
+
return e;
|
| 645 |
+
case "boolean":
|
| 646 |
+
return e ? "true" : "false";
|
| 647 |
+
case "number":
|
| 648 |
+
return isFinite(e) ? e : "";
|
| 649 |
+
default:
|
| 650 |
+
return ""
|
| 651 |
+
}
|
| 652 |
+
};
|
| 653 |
+
e.exports = function(e, r, o, n) {
|
| 654 |
+
return r = r || "&", o = o || "=", null === e && (e = void 0), "object" === typeof e ? Object.keys(e).map((function(n) {
|
| 655 |
+
var a = encodeURIComponent(t(n)) + o;
|
| 656 |
+
return Array.isArray(e[n]) ? e[n].map((function(e) {
|
| 657 |
+
return a + encodeURIComponent(t(e))
|
| 658 |
+
})).join(r) : a + encodeURIComponent(t(e[n]))
|
| 659 |
+
})).join(r) : n ? encodeURIComponent(t(n)) + o + encodeURIComponent(t(e)) : ""
|
| 660 |
+
}
|
| 661 |
+
},
|
| 662 |
+
17673: function(e, t, r) {
|
| 663 |
+
"use strict";
|
| 664 |
+
t.decode = t.parse = r(62587), t.encode = t.stringify = r(12361)
|
| 665 |
+
}
|
| 666 |
+
}
|
| 667 |
+
]);
|
static/_next/static/chunks/910-0a7f7ac0643ac.598c19d8e3964441
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/910.598c19d8e3964441.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
static/_next/static/chunks/913-2011f1037d472.f01f3b1556f430ca
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[913],{11844:function(s,j,a){var e={"./1c":73870,"./1c.js":73870,"./abnf":1122,"./abnf.js":1122,"./accesslog":63074,"./accesslog.js":63074,"./actionscript":39696,"./actionscript.js":39696,"./ada":19389,"./ada.js":19389,"./angelscript":46147,"./angelscript.js":46147,"./apache":96936,"./apache.js":96936,"./applescript":5460,"./applescript.js":5460,"./arcade":43178,"./arcade.js":43178,"./arduino":1232,"./arduino.js":1232,"./armasm":71196,"./armasm.js":71196,"./asciidoc":90630,"./asciidoc.js":90630,"./aspectj":25044,"./aspectj.js":25044,"./autohotkey":67130,"./autohotkey.js":67130,"./autoit":75039,"./autoit.js":75039,"./avrasm":18324,"./avrasm.js":18324,"./awk":40070,"./awk.js":40070,"./axapta":80149,"./axapta.js":80149,"./bash":61519,"./bash.js":61519,"./basic":56827,"./basic.js":56827,"./bnf":78349,"./bnf.js":78349,"./brainfuck":44536,"./brainfuck.js":44536,"./c":25745,"./c-like":58212,"./c-like.js":58212,"./c.js":25745,"./cal":45041,"./cal.js":45041,"./capnproto":51446,"./capnproto.js":51446,"./ceylon":1795,"./ceylon.js":1795,"./clean":82280,"./clean.js":82280,"./clojure":36134,"./clojure-repl":36746,"./clojure-repl.js":36746,"./clojure.js":36134,"./cmake":71422,"./cmake.js":71422,"./coffeescript":6691,"./coffeescript.js":6691,"./coq":73621,"./coq.js":73621,"./cos":69586,"./cos.js":69586,"./cpp":74006,"./cpp.js":74006,"./crmsh":37641,"./crmsh.js":37641,"./crystal":91139,"./crystal.js":91139,"./csharp":681,"./csharp.js":681,"./csp":60530,"./csp.js":60530,"./css":68914,"./css.js":68914,"./d":89968,"./d.js":89968,"./dart":65778,"./dart.js":65778,"./delphi":48008,"./delphi.js":48008,"./diff":91833,"./diff.js":91833,"./django":45253,"./django.js":45253,"./dns":65594,"./dns.js":65594,"./dockerfile":27055,"./dockerfile.js":27055,"./dos":85215,"./dos.js":85215,"./dsconfig":71524,"./dsconfig.js":71524,"./dts":29702,"./dts.js":29702,"./dust":27115,"./dust.js":27115,"./ebnf":26254,"./ebnf.js":26254,"./elixir":27204,"./elixir.js":27204,"./elm":58259,"./elm.js":58259,"./erb":328,"./erb.js":328,"./erlang":87489,"./erlang-repl":27670,"./erlang-repl.js":27670,"./erlang.js":87489,"./excel":94369,"./excel.js":94369,"./fix":51377,"./fix.js":51377,"./flix":72041,"./flix.js":72041,"./fortran":28362,"./fortran.js":28362,"./fsharp":34639,"./fsharp.js":34639,"./gams":9392,"./gams.js":9392,"./gauss":44859,"./gauss.js":44859,"./gcode":38036,"./gcode.js":38036,"./gherkin":65962,"./gherkin.js":65962,"./glsl":85243,"./glsl.js":85243,"./gml":94807,"./gml.js":94807,"./go":33048,"./go.js":33048,"./golo":87140,"./golo.js":87140,"./gradle":88267,"./gradle.js":88267,"./groovy":12175,"./groovy.js":12175,"./haml":25268,"./haml.js":25268,"./handlebars":83512,"./handlebars.js":83512,"./haskell":56703,"./haskell.js":56703,"./haxe":429,"./haxe.js":429,"./hsp":90793,"./hsp.js":90793,"./htmlbars":93202,"./htmlbars.js":93202,"./http":30786,"./http.js":30786,"./hy":35359,"./hy.js":35359,"./inform7":68968,"./inform7.js":68968,"./ini":29560,"./ini.js":29560,"./irpf90":10811,"./irpf90.js":10811,"./isbl":15044,"./isbl.js":15044,"./java":37721,"./java.js":37721,"./javascript":96344,"./javascript.js":96344,"./jboss-cli":40412,"./jboss-cli.js":40412,"./json":82026,"./json.js":82026,"./julia":47337,"./julia-repl":79989,"./julia-repl.js":79989,"./julia.js":47337,"./kotlin":48099,"./kotlin.js":48099,"./lasso":54082,"./lasso.js":54082,"./latex":850,"./latex.js":850,"./ldif":33310,"./ldif.js":33310,"./leaf":2774,"./leaf.js":2774,"./less":23874,"./less.js":23874,"./lisp":17169,"./lisp.js":17169,"./livecodeserver":63909,"./livecodeserver.js":63909,"./livescript":39563,"./livescript.js":39563,"./llvm":40119,"./llvm.js":40119,"./lsl":12130,"./lsl.js":12130,"./lua":31067,"./lua.js":31067,"./makefile":30465,"./makefile.js":30465,"./markdown":93839,"./markdown.js":93839,"./mathematica":61083,"./mathematica.js":61083,"./matlab":41304,"./matlab.js":41304,"./maxima":46747,"./maxima.js":46747,"./mel":70483,"./mel.js":70483,"./mercury":53038,"./mercury.js":53038,"./mipsasm":45802,"./mipsasm.js":45802,"./mizar":90918,"./mizar.js":90918,"./mojolicious":92210,"./mojolicious.js":92210,"./monkey":97350,"./monkey.js":97350,"./moonscript":27239,"./moonscript.js":27239,"./n1ql":77669,"./n1ql.js":77669,"./nginx":42387,"./nginx.js":42387,"./nim":35587,"./nim.js":35587,"./nix":88170,"./nix.js":88170,"./node-repl":93668,"./node-repl.js":93668,"./nsis":29269,"./nsis.js":29269,"./objectivec":61896,"./objectivec.js":61896,"./ocaml":78550,"./ocaml.js":78550,"./openscad":41078,"./openscad.js":41078,"./oxygene":89015,"./oxygene.js":89015,"./parser3":6247,"./parser3.js":6247,"./perl":78529,"./perl.js":78529,"./pf":15994,"./pf.js":15994,"./pgsql":86509,"./pgsql.js":86509,"./php":73306,"./php-template":75377,"./php-template.js":75377,"./php.js":73306,"./plaintext":76572,"./plaintext.js":76572,"./pony":28422,"./pony.js":28422,"./powershell":66336,"./powershell.js":66336,"./processing":44148,"./processing.js":44148,"./profile":9129,"./profile.js":9129,"./prolog":58074,"./prolog.js":58074,"./properties":81245,"./properties.js":81245,"./protobuf":3306,"./protobuf.js":3306,"./puppet":73736,"./puppet.js":73736,"./purebasic":34055,"./purebasic.js":34055,"./python":30308,"./python-repl":93725,"./python-repl.js":93725,"./python.js":30308,"./q":76891,"./q.js":76891,"./qml":63259,"./qml.js":63259,"./r":30806,"./r.js":30806,"./reasonml":82050,"./reasonml.js":82050,"./rib":44613,"./rib.js":44613,"./roboconf":33176,"./roboconf.js":33176,"./routeros":25096,"./routeros.js":25096,"./rsl":61025,"./rsl.js":61025,"./ruby":58473,"./ruby.js":58473,"./ruleslanguage":65506,"./ruleslanguage.js":65506,"./rust":11374,"./rust.js":11374,"./sas":35457,"./sas.js":35457,"./scala":5818,"./scala.js":5818,"./scheme":10336,"./scheme.js":10336,"./scilab":47691,"./scilab.js":47691,"./scss":36632,"./scss.js":36632,"./shell":19514,"./shell.js":19514,"./smali":60522,"./smali.js":60522,"./smalltalk":75030,"./smalltalk.js":75030,"./sml":79664,"./sml.js":79664,"./sqf":85168,"./sqf.js":85168,"./sql":97181,"./sql.js":97181,"./sql_more":83224,"./sql_more.js":83224,"./stan":53413,"./stan.js":53413,"./stata":92417,"./stata.js":92417,"./step21":52706,"./step21.js":52706,"./stylus":82054,"./stylus.js":82054,"./subunit":36886,"./subunit.js":36886,"./swift":26306,"./swift.js":26306,"./taggerscript":54858,"./taggerscript.js":54858,"./tap":49113,"./tap.js":49113,"./tcl":74562,"./tcl.js":74562,"./thrift":55063,"./thrift.js":55063,"./tp":27092,"./tp.js":27092,"./twig":35488,"./twig.js":35488,"./typescript":91533,"./typescript.js":91533,"./vala":65431,"./vala.js":65431,"./vbnet":86479,"./vbnet.js":86479,"./vbscript":80824,"./vbscript-html":3316,"./vbscript-html.js":3316,"./vbscript.js":80824,"./verilog":49115,"./verilog.js":49115,"./vhdl":53260,"./vhdl.js":53260,"./vim":5298,"./vim.js":5298,"./x86asm":43377,"./x86asm.js":43377,"./xl":731,"./xl.js":731,"./xml":42157,"./xml.js":42157,"./xquery":46629,"./xquery.js":46629,"./yaml":54587,"./yaml.js":54587,"./zephir":58737,"./zephir.js":58737};function l(s){var j=r(s);return a(j)}function r(s){if(!a.o(e,s)){var j=new Error("Cannot find module '"+s+"'");throw j.code="MODULE_NOT_FOUND",j}return e[s]}l.keys=function(){return Object.keys(e)},l.resolve=r,s.exports=l,l.id=11844},87913:function(s,j,a){"use strict";a.r(j);var e=a(58299);j.default=e.a2.filter((function(s){return s.highlight})).map((function(s){return s.short||s.mode})).map((function(s){return[s,a(11844)("./".concat(s))]}))}}]);
|
static/_next/static/chunks/913.f01f3b1556f430ca.js
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
| 2 |
+
[913], {
|
| 3 |
+
11844: function(s, j, a) {
|
| 4 |
+
var e = {
|
| 5 |
+
"./1c": 73870,
|
| 6 |
+
"./1c.js": 73870,
|
| 7 |
+
"./abnf": 1122,
|
| 8 |
+
"./abnf.js": 1122,
|
| 9 |
+
"./accesslog": 63074,
|
| 10 |
+
"./accesslog.js": 63074,
|
| 11 |
+
"./actionscript": 39696,
|
| 12 |
+
"./actionscript.js": 39696,
|
| 13 |
+
"./ada": 19389,
|
| 14 |
+
"./ada.js": 19389,
|
| 15 |
+
"./angelscript": 46147,
|
| 16 |
+
"./angelscript.js": 46147,
|
| 17 |
+
"./apache": 96936,
|
| 18 |
+
"./apache.js": 96936,
|
| 19 |
+
"./applescript": 5460,
|
| 20 |
+
"./applescript.js": 5460,
|
| 21 |
+
"./arcade": 43178,
|
| 22 |
+
"./arcade.js": 43178,
|
| 23 |
+
"./arduino": 1232,
|
| 24 |
+
"./arduino.js": 1232,
|
| 25 |
+
"./armasm": 71196,
|
| 26 |
+
"./armasm.js": 71196,
|
| 27 |
+
"./asciidoc": 90630,
|
| 28 |
+
"./asciidoc.js": 90630,
|
| 29 |
+
"./aspectj": 25044,
|
| 30 |
+
"./aspectj.js": 25044,
|
| 31 |
+
"./autohotkey": 67130,
|
| 32 |
+
"./autohotkey.js": 67130,
|
| 33 |
+
"./autoit": 75039,
|
| 34 |
+
"./autoit.js": 75039,
|
| 35 |
+
"./avrasm": 18324,
|
| 36 |
+
"./avrasm.js": 18324,
|
| 37 |
+
"./awk": 40070,
|
| 38 |
+
"./awk.js": 40070,
|
| 39 |
+
"./axapta": 80149,
|
| 40 |
+
"./axapta.js": 80149,
|
| 41 |
+
"./bash": 61519,
|
| 42 |
+
"./bash.js": 61519,
|
| 43 |
+
"./basic": 56827,
|
| 44 |
+
"./basic.js": 56827,
|
| 45 |
+
"./bnf": 78349,
|
| 46 |
+
"./bnf.js": 78349,
|
| 47 |
+
"./brainfuck": 44536,
|
| 48 |
+
"./brainfuck.js": 44536,
|
| 49 |
+
"./c": 25745,
|
| 50 |
+
"./c-like": 58212,
|
| 51 |
+
"./c-like.js": 58212,
|
| 52 |
+
"./c.js": 25745,
|
| 53 |
+
"./cal": 45041,
|
| 54 |
+
"./cal.js": 45041,
|
| 55 |
+
"./capnproto": 51446,
|
| 56 |
+
"./capnproto.js": 51446,
|
| 57 |
+
"./ceylon": 1795,
|
| 58 |
+
"./ceylon.js": 1795,
|
| 59 |
+
"./clean": 82280,
|
| 60 |
+
"./clean.js": 82280,
|
| 61 |
+
"./clojure": 36134,
|
| 62 |
+
"./clojure-repl": 36746,
|
| 63 |
+
"./clojure-repl.js": 36746,
|
| 64 |
+
"./clojure.js": 36134,
|
| 65 |
+
"./cmake": 71422,
|
| 66 |
+
"./cmake.js": 71422,
|
| 67 |
+
"./coffeescript": 6691,
|
| 68 |
+
"./coffeescript.js": 6691,
|
| 69 |
+
"./coq": 73621,
|
| 70 |
+
"./coq.js": 73621,
|
| 71 |
+
"./cos": 69586,
|
| 72 |
+
"./cos.js": 69586,
|
| 73 |
+
"./cpp": 74006,
|
| 74 |
+
"./cpp.js": 74006,
|
| 75 |
+
"./crmsh": 37641,
|
| 76 |
+
"./crmsh.js": 37641,
|
| 77 |
+
"./crystal": 91139,
|
| 78 |
+
"./crystal.js": 91139,
|
| 79 |
+
"./csharp": 681,
|
| 80 |
+
"./csharp.js": 681,
|
| 81 |
+
"./csp": 60530,
|
| 82 |
+
"./csp.js": 60530,
|
| 83 |
+
"./css": 68914,
|
| 84 |
+
"./css.js": 68914,
|
| 85 |
+
"./d": 89968,
|
| 86 |
+
"./d.js": 89968,
|
| 87 |
+
"./dart": 65778,
|
| 88 |
+
"./dart.js": 65778,
|
| 89 |
+
"./delphi": 48008,
|
| 90 |
+
"./delphi.js": 48008,
|
| 91 |
+
"./diff": 91833,
|
| 92 |
+
"./diff.js": 91833,
|
| 93 |
+
"./django": 45253,
|
| 94 |
+
"./django.js": 45253,
|
| 95 |
+
"./dns": 65594,
|
| 96 |
+
"./dns.js": 65594,
|
| 97 |
+
"./dockerfile": 27055,
|
| 98 |
+
"./dockerfile.js": 27055,
|
| 99 |
+
"./dos": 85215,
|
| 100 |
+
"./dos.js": 85215,
|
| 101 |
+
"./dsconfig": 71524,
|
| 102 |
+
"./dsconfig.js": 71524,
|
| 103 |
+
"./dts": 29702,
|
| 104 |
+
"./dts.js": 29702,
|
| 105 |
+
"./dust": 27115,
|
| 106 |
+
"./dust.js": 27115,
|
| 107 |
+
"./ebnf": 26254,
|
| 108 |
+
"./ebnf.js": 26254,
|
| 109 |
+
"./elixir": 27204,
|
| 110 |
+
"./elixir.js": 27204,
|
| 111 |
+
"./elm": 58259,
|
| 112 |
+
"./elm.js": 58259,
|
| 113 |
+
"./erb": 328,
|
| 114 |
+
"./erb.js": 328,
|
| 115 |
+
"./erlang": 87489,
|
| 116 |
+
"./erlang-repl": 27670,
|
| 117 |
+
"./erlang-repl.js": 27670,
|
| 118 |
+
"./erlang.js": 87489,
|
| 119 |
+
"./excel": 94369,
|
| 120 |
+
"./excel.js": 94369,
|
| 121 |
+
"./fix": 51377,
|
| 122 |
+
"./fix.js": 51377,
|
| 123 |
+
"./flix": 72041,
|
| 124 |
+
"./flix.js": 72041,
|
| 125 |
+
"./fortran": 28362,
|
| 126 |
+
"./fortran.js": 28362,
|
| 127 |
+
"./fsharp": 34639,
|
| 128 |
+
"./fsharp.js": 34639,
|
| 129 |
+
"./gams": 9392,
|
| 130 |
+
"./gams.js": 9392,
|
| 131 |
+
"./gauss": 44859,
|
| 132 |
+
"./gauss.js": 44859,
|
| 133 |
+
"./gcode": 38036,
|
| 134 |
+
"./gcode.js": 38036,
|
| 135 |
+
"./gherkin": 65962,
|
| 136 |
+
"./gherkin.js": 65962,
|
| 137 |
+
"./glsl": 85243,
|
| 138 |
+
"./glsl.js": 85243,
|
| 139 |
+
"./gml": 94807,
|
| 140 |
+
"./gml.js": 94807,
|
| 141 |
+
"./go": 33048,
|
| 142 |
+
"./go.js": 33048,
|
| 143 |
+
"./golo": 87140,
|
| 144 |
+
"./golo.js": 87140,
|
| 145 |
+
"./gradle": 88267,
|
| 146 |
+
"./gradle.js": 88267,
|
| 147 |
+
"./groovy": 12175,
|
| 148 |
+
"./groovy.js": 12175,
|
| 149 |
+
"./haml": 25268,
|
| 150 |
+
"./haml.js": 25268,
|
| 151 |
+
"./handlebars": 83512,
|
| 152 |
+
"./handlebars.js": 83512,
|
| 153 |
+
"./haskell": 56703,
|
| 154 |
+
"./haskell.js": 56703,
|
| 155 |
+
"./haxe": 429,
|
| 156 |
+
"./haxe.js": 429,
|
| 157 |
+
"./hsp": 90793,
|
| 158 |
+
"./hsp.js": 90793,
|
| 159 |
+
"./htmlbars": 93202,
|
| 160 |
+
"./htmlbars.js": 93202,
|
| 161 |
+
"./http": 30786,
|
| 162 |
+
"./http.js": 30786,
|
| 163 |
+
"./hy": 35359,
|
| 164 |
+
"./hy.js": 35359,
|
| 165 |
+
"./inform7": 68968,
|
| 166 |
+
"./inform7.js": 68968,
|
| 167 |
+
"./ini": 29560,
|
| 168 |
+
"./ini.js": 29560,
|
| 169 |
+
"./irpf90": 10811,
|
| 170 |
+
"./irpf90.js": 10811,
|
| 171 |
+
"./isbl": 15044,
|
| 172 |
+
"./isbl.js": 15044,
|
| 173 |
+
"./java": 37721,
|
| 174 |
+
"./java.js": 37721,
|
| 175 |
+
"./javascript": 96344,
|
| 176 |
+
"./javascript.js": 96344,
|
| 177 |
+
"./jboss-cli": 40412,
|
| 178 |
+
"./jboss-cli.js": 40412,
|
| 179 |
+
"./json": 82026,
|
| 180 |
+
"./json.js": 82026,
|
| 181 |
+
"./julia": 47337,
|
| 182 |
+
"./julia-repl": 79989,
|
| 183 |
+
"./julia-repl.js": 79989,
|
| 184 |
+
"./julia.js": 47337,
|
| 185 |
+
"./kotlin": 48099,
|
| 186 |
+
"./kotlin.js": 48099,
|
| 187 |
+
"./lasso": 54082,
|
| 188 |
+
"./lasso.js": 54082,
|
| 189 |
+
"./latex": 850,
|
| 190 |
+
"./latex.js": 850,
|
| 191 |
+
"./ldif": 33310,
|
| 192 |
+
"./ldif.js": 33310,
|
| 193 |
+
"./leaf": 2774,
|
| 194 |
+
"./leaf.js": 2774,
|
| 195 |
+
"./less": 23874,
|
| 196 |
+
"./less.js": 23874,
|
| 197 |
+
"./lisp": 17169,
|
| 198 |
+
"./lisp.js": 17169,
|
| 199 |
+
"./livecodeserver": 63909,
|
| 200 |
+
"./livecodeserver.js": 63909,
|
| 201 |
+
"./livescript": 39563,
|
| 202 |
+
"./livescript.js": 39563,
|
| 203 |
+
"./llvm": 40119,
|
| 204 |
+
"./llvm.js": 40119,
|
| 205 |
+
"./lsl": 12130,
|
| 206 |
+
"./lsl.js": 12130,
|
| 207 |
+
"./lua": 31067,
|
| 208 |
+
"./lua.js": 31067,
|
| 209 |
+
"./makefile": 30465,
|
| 210 |
+
"./makefile.js": 30465,
|
| 211 |
+
"./markdown": 93839,
|
| 212 |
+
"./markdown.js": 93839,
|
| 213 |
+
"./mathematica": 61083,
|
| 214 |
+
"./mathematica.js": 61083,
|
| 215 |
+
"./matlab": 41304,
|
| 216 |
+
"./matlab.js": 41304,
|
| 217 |
+
"./maxima": 46747,
|
| 218 |
+
"./maxima.js": 46747,
|
| 219 |
+
"./mel": 70483,
|
| 220 |
+
"./mel.js": 70483,
|
| 221 |
+
"./mercury": 53038,
|
| 222 |
+
"./mercury.js": 53038,
|
| 223 |
+
"./mipsasm": 45802,
|
| 224 |
+
"./mipsasm.js": 45802,
|
| 225 |
+
"./mizar": 90918,
|
| 226 |
+
"./mizar.js": 90918,
|
| 227 |
+
"./mojolicious": 92210,
|
| 228 |
+
"./mojolicious.js": 92210,
|
| 229 |
+
"./monkey": 97350,
|
| 230 |
+
"./monkey.js": 97350,
|
| 231 |
+
"./moonscript": 27239,
|
| 232 |
+
"./moonscript.js": 27239,
|
| 233 |
+
"./n1ql": 77669,
|
| 234 |
+
"./n1ql.js": 77669,
|
| 235 |
+
"./nginx": 42387,
|
| 236 |
+
"./nginx.js": 42387,
|
| 237 |
+
"./nim": 35587,
|
| 238 |
+
"./nim.js": 35587,
|
| 239 |
+
"./nix": 88170,
|
| 240 |
+
"./nix.js": 88170,
|
| 241 |
+
"./node-repl": 93668,
|
| 242 |
+
"./node-repl.js": 93668,
|
| 243 |
+
"./nsis": 29269,
|
| 244 |
+
"./nsis.js": 29269,
|
| 245 |
+
"./objectivec": 61896,
|
| 246 |
+
"./objectivec.js": 61896,
|
| 247 |
+
"./ocaml": 78550,
|
| 248 |
+
"./ocaml.js": 78550,
|
| 249 |
+
"./openscad": 41078,
|
| 250 |
+
"./openscad.js": 41078,
|
| 251 |
+
"./oxygene": 89015,
|
| 252 |
+
"./oxygene.js": 89015,
|
| 253 |
+
"./parser3": 6247,
|
| 254 |
+
"./parser3.js": 6247,
|
| 255 |
+
"./perl": 78529,
|
| 256 |
+
"./perl.js": 78529,
|
| 257 |
+
"./pf": 15994,
|
| 258 |
+
"./pf.js": 15994,
|
| 259 |
+
"./pgsql": 86509,
|
| 260 |
+
"./pgsql.js": 86509,
|
| 261 |
+
"./php": 73306,
|
| 262 |
+
"./php-template": 75377,
|
| 263 |
+
"./php-template.js": 75377,
|
| 264 |
+
"./php.js": 73306,
|
| 265 |
+
"./plaintext": 76572,
|
| 266 |
+
"./plaintext.js": 76572,
|
| 267 |
+
"./pony": 28422,
|
| 268 |
+
"./pony.js": 28422,
|
| 269 |
+
"./powershell": 66336,
|
| 270 |
+
"./powershell.js": 66336,
|
| 271 |
+
"./processing": 44148,
|
| 272 |
+
"./processing.js": 44148,
|
| 273 |
+
"./profile": 9129,
|
| 274 |
+
"./profile.js": 9129,
|
| 275 |
+
"./prolog": 58074,
|
| 276 |
+
"./prolog.js": 58074,
|
| 277 |
+
"./properties": 81245,
|
| 278 |
+
"./properties.js": 81245,
|
| 279 |
+
"./protobuf": 3306,
|
| 280 |
+
"./protobuf.js": 3306,
|
| 281 |
+
"./puppet": 73736,
|
| 282 |
+
"./puppet.js": 73736,
|
| 283 |
+
"./purebasic": 34055,
|
| 284 |
+
"./purebasic.js": 34055,
|
| 285 |
+
"./python": 30308,
|
| 286 |
+
"./python-repl": 93725,
|
| 287 |
+
"./python-repl.js": 93725,
|
| 288 |
+
"./python.js": 30308,
|
| 289 |
+
"./q": 76891,
|
| 290 |
+
"./q.js": 76891,
|
| 291 |
+
"./qml": 63259,
|
| 292 |
+
"./qml.js": 63259,
|
| 293 |
+
"./r": 30806,
|
| 294 |
+
"./r.js": 30806,
|
| 295 |
+
"./reasonml": 82050,
|
| 296 |
+
"./reasonml.js": 82050,
|
| 297 |
+
"./rib": 44613,
|
| 298 |
+
"./rib.js": 44613,
|
| 299 |
+
"./roboconf": 33176,
|
| 300 |
+
"./roboconf.js": 33176,
|
| 301 |
+
"./routeros": 25096,
|
| 302 |
+
"./routeros.js": 25096,
|
| 303 |
+
"./rsl": 61025,
|
| 304 |
+
"./rsl.js": 61025,
|
| 305 |
+
"./ruby": 58473,
|
| 306 |
+
"./ruby.js": 58473,
|
| 307 |
+
"./ruleslanguage": 65506,
|
| 308 |
+
"./ruleslanguage.js": 65506,
|
| 309 |
+
"./rust": 11374,
|
| 310 |
+
"./rust.js": 11374,
|
| 311 |
+
"./sas": 35457,
|
| 312 |
+
"./sas.js": 35457,
|
| 313 |
+
"./scala": 5818,
|
| 314 |
+
"./scala.js": 5818,
|
| 315 |
+
"./scheme": 10336,
|
| 316 |
+
"./scheme.js": 10336,
|
| 317 |
+
"./scilab": 47691,
|
| 318 |
+
"./scilab.js": 47691,
|
| 319 |
+
"./scss": 36632,
|
| 320 |
+
"./scss.js": 36632,
|
| 321 |
+
"./shell": 19514,
|
| 322 |
+
"./shell.js": 19514,
|
| 323 |
+
"./smali": 60522,
|
| 324 |
+
"./smali.js": 60522,
|
| 325 |
+
"./smalltalk": 75030,
|
| 326 |
+
"./smalltalk.js": 75030,
|
| 327 |
+
"./sml": 79664,
|
| 328 |
+
"./sml.js": 79664,
|
| 329 |
+
"./sqf": 85168,
|
| 330 |
+
"./sqf.js": 85168,
|
| 331 |
+
"./sql": 97181,
|
| 332 |
+
"./sql.js": 97181,
|
| 333 |
+
"./sql_more": 83224,
|
| 334 |
+
"./sql_more.js": 83224,
|
| 335 |
+
"./stan": 53413,
|
| 336 |
+
"./stan.js": 53413,
|
| 337 |
+
"./stata": 92417,
|
| 338 |
+
"./stata.js": 92417,
|
| 339 |
+
"./step21": 52706,
|
| 340 |
+
"./step21.js": 52706,
|
| 341 |
+
"./stylus": 82054,
|
| 342 |
+
"./stylus.js": 82054,
|
| 343 |
+
"./subunit": 36886,
|
| 344 |
+
"./subunit.js": 36886,
|
| 345 |
+
"./swift": 26306,
|
| 346 |
+
"./swift.js": 26306,
|
| 347 |
+
"./taggerscript": 54858,
|
| 348 |
+
"./taggerscript.js": 54858,
|
| 349 |
+
"./tap": 49113,
|
| 350 |
+
"./tap.js": 49113,
|
| 351 |
+
"./tcl": 74562,
|
| 352 |
+
"./tcl.js": 74562,
|
| 353 |
+
"./thrift": 55063,
|
| 354 |
+
"./thrift.js": 55063,
|
| 355 |
+
"./tp": 27092,
|
| 356 |
+
"./tp.js": 27092,
|
| 357 |
+
"./twig": 35488,
|
| 358 |
+
"./twig.js": 35488,
|
| 359 |
+
"./typescript": 91533,
|
| 360 |
+
"./typescript.js": 91533,
|
| 361 |
+
"./vala": 65431,
|
| 362 |
+
"./vala.js": 65431,
|
| 363 |
+
"./vbnet": 86479,
|
| 364 |
+
"./vbnet.js": 86479,
|
| 365 |
+
"./vbscript": 80824,
|
| 366 |
+
"./vbscript-html": 3316,
|
| 367 |
+
"./vbscript-html.js": 3316,
|
| 368 |
+
"./vbscript.js": 80824,
|
| 369 |
+
"./verilog": 49115,
|
| 370 |
+
"./verilog.js": 49115,
|
| 371 |
+
"./vhdl": 53260,
|
| 372 |
+
"./vhdl.js": 53260,
|
| 373 |
+
"./vim": 5298,
|
| 374 |
+
"./vim.js": 5298,
|
| 375 |
+
"./x86asm": 43377,
|
| 376 |
+
"./x86asm.js": 43377,
|
| 377 |
+
"./xl": 731,
|
| 378 |
+
"./xl.js": 731,
|
| 379 |
+
"./xml": 42157,
|
| 380 |
+
"./xml.js": 42157,
|
| 381 |
+
"./xquery": 46629,
|
| 382 |
+
"./xquery.js": 46629,
|
| 383 |
+
"./yaml": 54587,
|
| 384 |
+
"./yaml.js": 54587,
|
| 385 |
+
"./zephir": 58737,
|
| 386 |
+
"./zephir.js": 58737
|
| 387 |
+
};
|
| 388 |
+
|
| 389 |
+
function l(s) {
|
| 390 |
+
var j = r(s);
|
| 391 |
+
return a(j)
|
| 392 |
+
}
|
| 393 |
+
|
| 394 |
+
function r(s) {
|
| 395 |
+
if (!a.o(e, s)) {
|
| 396 |
+
var j = new Error("Cannot find module '" + s + "'");
|
| 397 |
+
throw j.code = "MODULE_NOT_FOUND", j
|
| 398 |
+
}
|
| 399 |
+
return e[s]
|
| 400 |
+
}
|
| 401 |
+
l.keys = function() {
|
| 402 |
+
return Object.keys(e)
|
| 403 |
+
}, l.resolve = r, s.exports = l, l.id = 11844
|
| 404 |
+
},
|
| 405 |
+
87913: function(s, j, a) {
|
| 406 |
+
"use strict";
|
| 407 |
+
a.r(j);
|
| 408 |
+
var e = a(58299);
|
| 409 |
+
j.default = e.a2.filter((function(s) {
|
| 410 |
+
return s.highlight
|
| 411 |
+
})).map((function(s) {
|
| 412 |
+
return s.short || s.mode
|
| 413 |
+
})).map((function(s) {
|
| 414 |
+
return [s, a(11844)("./".concat(s))]
|
| 415 |
+
}))
|
| 416 |
+
}
|
| 417 |
+
}
|
| 418 |
+
]);
|
static/_next/static/chunks/94-c1d96e91c5f9c3c9-ffc61cff1bd7d.js
ADDED
|
@@ -0,0 +1,1785 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
| 3 |
+
[94], {
|
| 4 |
+
7533: function(e, t, o) {
|
| 5 |
+
o.d(t, {
|
| 6 |
+
ap: function() {
|
| 7 |
+
return x
|
| 8 |
+
},
|
| 9 |
+
tO: function() {
|
| 10 |
+
return h
|
| 11 |
+
},
|
| 12 |
+
rU: function() {
|
| 13 |
+
return p
|
| 14 |
+
},
|
| 15 |
+
$O: function() {
|
| 16 |
+
return F
|
| 17 |
+
},
|
| 18 |
+
NR: function() {
|
| 19 |
+
return k
|
| 20 |
+
},
|
| 21 |
+
wH: function() {
|
| 22 |
+
return w
|
| 23 |
+
},
|
| 24 |
+
ZP: function() {
|
| 25 |
+
return C
|
| 26 |
+
}
|
| 27 |
+
});
|
| 28 |
+
var n = o(85893),
|
| 29 |
+
a = o(67294),
|
| 30 |
+
r = o(9008),
|
| 31 |
+
i = o.n(r),
|
| 32 |
+
c = o(58299),
|
| 33 |
+
f = o(79547),
|
| 34 |
+
l = o.n(f);
|
| 35 |
+
|
| 36 |
+
function s() {
|
| 37 |
+
return (0, n.jsx)(l(), {
|
| 38 |
+
id: "36a08fc93f55e9da",
|
| 39 |
+
dynamic: [c.DM.BLACK, c.DM.BLACK, c.DM.DARK_GRAY, c.DM.SECONDARY, c.DM.PRIMARY],
|
| 40 |
+
children: 'html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-weight:inherit;font-family:inherit;font-style:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}html,body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;background:'.concat(c.DM.BLACK, ';color:white;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;font-weight:400;font-style:normal;text-transform:initial;letter-spacing:initial;min-height:704px}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}h1,h2,h3,h4,h5,h6{font-weight:500}a{color:inherit;text-decoration:none;cursor:pointer}*::-moz-selection{background:rgba(255,255,255,.99);color:').concat(c.DM.BLACK, "}*::selection{background:rgba(255,255,255,.99);color:").concat(c.DM.BLACK, "}kbd{display:inline-block;padding:3px 5px;font-size:9px;font-weight:700;line-height:1.2;color:").concat(c.DM.DARK_GRAY, ";vertical-align:middle;background-color:#fafbfc;border:1px solid#c6cbd1;border-bottom-color:#959da5;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0#959da5;-moz-box-shadow:inset 0 -1px 0#959da5;box-shadow:inset 0 -1px 0#959da5;white-space:nowrap}.link{color:#fff;text-decoration:none;padding-bottom:3px;background:-webkit-linear-gradient(left,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);background:-moz-linear-gradient(left,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);background:-o-linear-gradient(left,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);background:linear-gradient(to right,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);-webkit-background-size:1px 1px;-moz-background-size:1px 1px;-o-background-size:1px 1px;background-size:1px 1px;background-position:0 100%;background-repeat:repeat-x}.link:hover{color:").concat(c.DM.PRIMARY, ';background:none}.row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.flex{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:100%}.capitalize{text-transform:capitalize}[role="button"]:focus{outline:none}')
|
| 41 |
+
})
|
| 42 |
+
}
|
| 43 |
+
var d = o(25026);
|
| 44 |
+
|
| 45 |
+
function m() {
|
| 46 |
+
return (0, n.jsx)(l(), {
|
| 47 |
+
id: "d7f31a896676ac6a",
|
| 48 |
+
children: ":root{--h0:4.5rem;--h1:3rem;--h2:2.25rem;--h3:1.5rem;--h4:1.125rem;--h5:0.75rem;--lh:calc(4 / 3);--m1:calc(2 / 3 * 1em);--m2:calc(4 / 3 * 1em);--m3:calc(8 / 3 * 1em);--m4:calc(16 / 3 * 1em);--x1:0.5rem;--x2:1rem;--x3:2rem;--x4:4rem;--x5:8rem;--x6:16rem}body{font-size:var(--h4);line-height:var(--lh)}h1,h2,h3{margin-top:var(--m1);margin-bottom:0}h4,h5,h6,p,dl,ol,ul,blockquote{margin-top:var(--m2);margin-bottom:var(--m2)}h1{font-size:var(--h2)}h2,h3{font-size:var(--h3)}h4{font-size:var(--h4)}h5,h6{font-size:var(--h5)}.mt0{margin-top:0}.mb0{margin-bottom:0}.mt1{margin-top:var(--x1)}.mb1{margin-bottom:var(--x1)}.mt2{margin-top:var(--x2)}.mb2{margin-bottom:var(--x2)}.mt3{margin-top:var(--x3)}.mb3{margin-bottom:var(--x3)}.mt4{margin-top:var(--x4)}.mb4{margin-bottom:var(--x4)}.mt5{margin-top:var(--x5)}.mb5{margin-bottom:var(--x5)}.mt6{margin-top:var(--x6)}.mb6{margin-bottom:var(--x6)}"
|
| 49 |
+
})
|
| 50 |
+
}
|
| 51 |
+
var u = "5.65.5",
|
| 52 |
+
h = ["shades-of-purple", "vscode", "a11y-dark"],
|
| 53 |
+
g = ["one-light", "one-dark", "verminal", "night-owl", "nord", "synthwave-84"],
|
| 54 |
+
b = c.yU.filter((function(e) {
|
| 55 |
+
return g.indexOf(e.id) < 0 && h.indexOf(e.id) < 0
|
| 56 |
+
}));
|
| 57 |
+
|
| 58 |
+
function p(e) {
|
| 59 |
+
var t = e.href;
|
| 60 |
+
return (0, n.jsxs)(i(), {
|
| 61 |
+
children: [(0, n.jsx)("link", {
|
| 62 |
+
rel: "preload",
|
| 63 |
+
as: "style",
|
| 64 |
+
href: t
|
| 65 |
+
}), (0, n.jsx)("link", {
|
| 66 |
+
rel: "stylesheet",
|
| 67 |
+
href: t
|
| 68 |
+
})]
|
| 69 |
+
})
|
| 70 |
+
}
|
| 71 |
+
var w = function(e) {
|
| 72 |
+
var t, o = e.theme;
|
| 73 |
+
if (g.indexOf(o) > -1) t = "/static/themes/".concat(o, ".min.css");
|
| 74 |
+
else {
|
| 75 |
+
var a = c.a5[o];
|
| 76 |
+
t = "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/theme/").concat(a && (a.link || a.id), ".min.css")
|
| 77 |
+
}
|
| 78 |
+
return (0, n.jsx)(p, {
|
| 79 |
+
href: t
|
| 80 |
+
})
|
| 81 |
+
},
|
| 82 |
+
x = function() {
|
| 83 |
+
return (0, n.jsx)(p, {
|
| 84 |
+
href: "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/codemirror.min.css")
|
| 85 |
+
})
|
| 86 |
+
},
|
| 87 |
+
v = "Carbon",
|
| 88 |
+
y = "Carbon is the easiest way to create and share beautiful images of your source code.",
|
| 89 |
+
k = a.memo((function() {
|
| 90 |
+
return (0, n.jsxs)(i(), {
|
| 91 |
+
children: [(0, n.jsx)("meta", {
|
| 92 |
+
charSet: "utf-8"
|
| 93 |
+
}), (0, n.jsx)("meta", {
|
| 94 |
+
httpEquiv: "X-UA-Compatible",
|
| 95 |
+
content: "IE=edge"
|
| 96 |
+
}), (0, n.jsx)("meta", {
|
| 97 |
+
name: "description",
|
| 98 |
+
content: y
|
| 99 |
+
}), (0, n.jsx)("meta", {
|
| 100 |
+
name: "application-name",
|
| 101 |
+
content: v
|
| 102 |
+
}), (0, n.jsx)("meta", {
|
| 103 |
+
name: "twitter:card",
|
| 104 |
+
content: "summary"
|
| 105 |
+
}), (0, n.jsx)("meta", {
|
| 106 |
+
name: "twitter:site",
|
| 107 |
+
content: "@carbon_app"
|
| 108 |
+
}), (0, n.jsx)("meta", {
|
| 109 |
+
name: "twitter:title",
|
| 110 |
+
content: v
|
| 111 |
+
}), (0, n.jsx)("meta", {
|
| 112 |
+
name: "twitter:description",
|
| 113 |
+
content: y
|
| 114 |
+
}), (0, n.jsx)("meta", {
|
| 115 |
+
name: "twitter:image",
|
| 116 |
+
content: "https://carbon.now.sh/static/brand/banner.png"
|
| 117 |
+
}), (0, n.jsx)("meta", {
|
| 118 |
+
name: "og:title",
|
| 119 |
+
content: v
|
| 120 |
+
}), (0, n.jsx)("meta", {
|
| 121 |
+
name: "og:description",
|
| 122 |
+
content: y
|
| 123 |
+
}), (0, n.jsx)("meta", {
|
| 124 |
+
name: "og:image",
|
| 125 |
+
content: "/static/brand/banner.png"
|
| 126 |
+
}), (0, n.jsx)("meta", {
|
| 127 |
+
name: "theme-color",
|
| 128 |
+
content: c.DM.BLACK
|
| 129 |
+
}), (0, n.jsx)("meta", {
|
| 130 |
+
name: "apple-mobile-web-app-status-bar-style",
|
| 131 |
+
content: c.DM.BLACK
|
| 132 |
+
}), (0, n.jsxs)("title", {
|
| 133 |
+
children: [v, " | Create and share beautiful images of your source code"]
|
| 134 |
+
}), (0, n.jsx)("link", {
|
| 135 |
+
rel: "shortcut icon",
|
| 136 |
+
href: "/favicon.ico"
|
| 137 |
+
}), (0, n.jsx)("link", {
|
| 138 |
+
rel: "manifest",
|
| 139 |
+
href: "/manifest.json"
|
| 140 |
+
}), (0, n.jsx)("link", {
|
| 141 |
+
rel: "apple-touch-icon",
|
| 142 |
+
href: "/static/brand/apple-touch-icon.png"
|
| 143 |
+
})]
|
| 144 |
+
})
|
| 145 |
+
})),
|
| 146 |
+
F = a.memo((function() {
|
| 147 |
+
return (0, n.jsxs)(a.Fragment, {
|
| 148 |
+
children: [(0, n.jsx)(p, {
|
| 149 |
+
href: "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/theme/seti.min.css")
|
| 150 |
+
}), (0, n.jsx)(x, {}), g.map((function(e) {
|
| 151 |
+
return (0, n.jsx)(p, {
|
| 152 |
+
href: "/static/themes/".concat(e, ".min.css")
|
| 153 |
+
}, e)
|
| 154 |
+
})), b.map((function(e) {
|
| 155 |
+
var t = "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/theme/").concat(e && (e.link || e.id), ".min.css");
|
| 156 |
+
return (0, n.jsx)(p, {
|
| 157 |
+
href: t
|
| 158 |
+
}, e.id)
|
| 159 |
+
})), (0, n.jsx)(p, {
|
| 160 |
+
href: "/static/fonts/monolisa.css"
|
| 161 |
+
})]
|
| 162 |
+
})
|
| 163 |
+
})),
|
| 164 |
+
C = a.memo((function() {
|
| 165 |
+
return (0, n.jsxs)(a.Fragment, {
|
| 166 |
+
children: [(0, n.jsx)(k, {}), (0, n.jsx)(s, {}), (0, n.jsx)(d.Z, {}), (0, n.jsx)(m, {})]
|
| 167 |
+
})
|
| 168 |
+
}))
|
| 169 |
+
},
|
| 170 |
+
25026: function(e, t, o) {
|
| 171 |
+
o.d(t, {
|
| 172 |
+
Z: function() {
|
| 173 |
+
return i
|
| 174 |
+
}
|
| 175 |
+
});
|
| 176 |
+
var n = o(85893),
|
| 177 |
+
a = o(79547),
|
| 178 |
+
r = o.n(a);
|
| 179 |
+
o(67294);
|
| 180 |
+
|
| 181 |
+
function i() {
|
| 182 |
+
return (0, n.jsx)(r(), {
|
| 183 |
+
id: "6bd698647d4b7bc1",
|
| 184 |
+
children: '@font-face{font-family:"Monoid";font-display:swap;src:url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format(url("woff2")),url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format(url("woff"));src:url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format("woff2"),url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format("woff")}@font-face{font-family:"Fantasque Sans Mono";font-display:swap;src:url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format(url("woff2")),url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format(url("woff"));src:url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format("woff2"),url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format("woff")}@font-face{font-family:"Hack";font-display:swap;src:url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff2/hack-regular-webfont.woff2?v=2.020")format(url("woff2")),url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff/hack-regular-webfont.woff?v=2.020")format(url("woff"));src:url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff2/hack-regular-webfont.woff2?v=2.020")format("woff2"),url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff/hack-regular-webfont.woff?v=2.020")format("woff")}@font-face{font-family:"Fira Code";font-display:swap;src:url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff2/FiraCode-Regular.woff2")format(url("woff2")),url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff/FiraCode-Regular.woff")format(url("woff"));src:url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff2/FiraCode-Regular.woff2")format("woff2"),url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff/FiraCode-Regular.woff")format("woff")}@font-face{font-family:"JetBrains Mono";font-display:swap;src:url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2")format(url("woff2")),url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff")format(url("woff2"));src:url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2")format("woff2"),url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff")format("woff2")}@font-face{font-family:"Cascadia Code";font-display:swap;font-style:normal;font-weight:400;src:local(url("Cascadia Code")),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff2")format(url("woff2")),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff")format(url("woff"));src:local("Cascadia Code"),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff2")format("woff2"),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff")format("woff")}@font-face{font-family:"IBM Plex Mono";font-display:swap;font-weight:500;src:local(url("IBM Plex Mono Regular")),local(url("IBMPlexMono-Regular")),url(//cdn.jsdelivr.net/gh/ibm/plex@latest/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2)format(url("woff2"));src:local("IBM Plex Mono Regular"),local("IBMPlexMono-Regular"),url(//cdn.jsdelivr.net/gh/ibm/plex@latest/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2)format("woff2")}@font-face{font-family:"Anonymous Pro";font-display:swap;src:local(url("Anonymous Pro Regular")),local(url("AnonymousPro-Regular")),url(//fonts.gstatic.com/s/anonymouspro/v11/Zhfjj_gat3waL4JSju74E3n3cbdKJftHIk87C9ihfO8.woff2)format(url("woff2"));src:local("Anonymous Pro Regular"),local("AnonymousPro-Regular"),url(//fonts.gstatic.com/s/anonymouspro/v11/Zhfjj_gat3waL4JSju74E3n3cbdKJftHIk87C9ihfO8.woff2)format("woff2")}@font-face{font-family:"Droid Sans Mono";font-display:swap;src:local(url("Droid Sans Mono Regular")),local(url("DroidSansMono-Regular")),url(//fonts.gstatic.com/s/droidsansmono/v9/ns-m2xQYezAtqh7ai59hJVlgUn8GogvcKKzoM9Dh-4E.woff2)format(url("woff2"));src:local("Droid Sans Mono Regular"),local("DroidSansMono-Regular"),url(//fonts.gstatic.com/s/droidsansmono/v9/ns-m2xQYezAtqh7ai59hJVlgUn8GogvcKKzoM9Dh-4E.woff2)format("woff2")}@font-face{font-family:"Inconsolata";font-display:swap;src:local(url("Inconsolata Regular")),local(url("Inconsolata-Regular")),url(//fonts.gstatic.com/s/inconsolata/v16/BjAYBlHtW3CJxDcjzrnZCIgp9Q8gbYrhqGlRav_IXfk.woff2)format(url("woff2"));src:local("Inconsolata Regular"),local("Inconsolata-Regular"),url(//fonts.gstatic.com/s/inconsolata/v16/BjAYBlHtW3CJxDcjzrnZCIgp9Q8gbYrhqGlRav_IXfk.woff2)format("woff2")}@font-face{font-family:"Source Code Pro";font-display:swap;src:local(url("Source Code Pro")),local(url("SourceCodePro-Regular")),url(//fonts.gstatic.com/s/sourcecodepro/v7/mrl8jkM18OlOQN8JLgasD5bPFduIYtoLzwST68uhz_Y.woff2)format(url("woff2"));src:local("Source Code Pro"),local("SourceCodePro-Regular"),url(//fonts.gstatic.com/s/sourcecodepro/v7/mrl8jkM18OlOQN8JLgasD5bPFduIYtoLzwST68uhz_Y.woff2)format("woff2")}@font-face{font-family:"Ubuntu Mono";font-display:swap;src:local(url("Ubuntu Mono")),local(url("UbuntuMono-Regular")),url(//fonts.gstatic.com/s/ubuntumono/v7/ViZhet7Ak-LRXZMXzuAfkYgp9Q8gbYrhqGlRav_IXfk.woff2)format(url("woff2"));src:local("Ubuntu Mono"),local("UbuntuMono-Regular"),url(//fonts.gstatic.com/s/ubuntumono/v7/ViZhet7Ak-LRXZMXzuAfkYgp9Q8gbYrhqGlRav_IXfk.woff2)format("woff2")}@font-face{font-family:"Space Mono";font-display:swap;src:local(url("Space Mono")),local(url("SpaceMono-Regular")),url(https://fonts.gstatic.com/s/spacemono/v2/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2)format(url("woff2"));src:local("Space Mono"),local("SpaceMono-Regular"),url(https://fonts.gstatic.com/s/spacemono/v2/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2)format("woff2")}'
|
| 185 |
+
})
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
7851: function(e, t, o) {
|
| 189 |
+
o.d(t, {
|
| 190 |
+
L: function() {
|
| 191 |
+
return p
|
| 192 |
+
}
|
| 193 |
+
});
|
| 194 |
+
var n = o(34051),
|
| 195 |
+
a = o.n(n),
|
| 196 |
+
r = o(9669),
|
| 197 |
+
i = o.n(r),
|
| 198 |
+
c = o(91296),
|
| 199 |
+
f = o.n(c),
|
| 200 |
+
l = o(57824),
|
| 201 |
+
s = o.n(l),
|
| 202 |
+
d = o(94959),
|
| 203 |
+
m = o(65018),
|
| 204 |
+
u = o(58299),
|
| 205 |
+
h = o(83454);
|
| 206 |
+
|
| 207 |
+
function g(e, t, o, n, a, r, i) {
|
| 208 |
+
try {
|
| 209 |
+
var c = e[r](i),
|
| 210 |
+
f = c.value
|
| 211 |
+
} catch (l) {
|
| 212 |
+
return void o(l)
|
| 213 |
+
}
|
| 214 |
+
c.done ? t(f) : Promise.resolve(f).then(n, a)
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
function b(e, t, o) {
|
| 218 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 219 |
+
value: o,
|
| 220 |
+
enumerable: !0,
|
| 221 |
+
configurable: !0,
|
| 222 |
+
writable: !0
|
| 223 |
+
}) : e[t] = o, e
|
| 224 |
+
}
|
| 225 |
+
var p = i().create({
|
| 226 |
+
baseURL: "".concat(h.env.NEXT_PUBLIC_API_URL || "", "/api"),
|
| 227 |
+
headers: {
|
| 228 |
+
Accept: "application/json"
|
| 229 |
+
}
|
| 230 |
+
});
|
| 231 |
+
|
| 232 |
+
function w(e) {
|
| 233 |
+
if (420 !== e.response.status) throw e;
|
| 234 |
+
alert("Oh no! Looks like too many people are trying to tweet right now and we've been rate limited. Try again soon or save and upload manually!")
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
function x(e) {
|
| 238 |
+
var t = (window.outerWidth - 575) / 2,
|
| 239 |
+
o = (window.outerHeight - 400) / 2,
|
| 240 |
+
n = "status=1,width=".concat(575, ",height=").concat(400, ",top=").concat(o, ",left=").concat(t);
|
| 241 |
+
window.open(e, "_blank", n)
|
| 242 |
+
}
|
| 243 |
+
var v = function(e) {
|
| 244 |
+
return p.get(e.url.replace("http://", "https://"), {
|
| 245 |
+
responseType: "blob"
|
| 246 |
+
}).then((function(e) {
|
| 247 |
+
return e.data
|
| 248 |
+
})).then(d.Ph).then((function(t) {
|
| 249 |
+
return Object.assign(e, {
|
| 250 |
+
dataURL: t
|
| 251 |
+
})
|
| 252 |
+
}))
|
| 253 |
+
},
|
| 254 |
+
y = {
|
| 255 |
+
download: function(e) {
|
| 256 |
+
return p.get("/unsplash/download/".concat(e)).then((function(e) {
|
| 257 |
+
return e.data
|
| 258 |
+
}))
|
| 259 |
+
},
|
| 260 |
+
random: function() {
|
| 261 |
+
return (e = a().mark((function e() {
|
| 262 |
+
var t;
|
| 263 |
+
return a().wrap((function(e) {
|
| 264 |
+
for (;;) switch (e.prev = e.next) {
|
| 265 |
+
case 0:
|
| 266 |
+
return e.next = 2, p.get("/unsplash/random");
|
| 267 |
+
case 2:
|
| 268 |
+
return t = e.sent, e.abrupt("return", Promise.all(t.data.map(v)));
|
| 269 |
+
case 4:
|
| 270 |
+
case "end":
|
| 271 |
+
return e.stop()
|
| 272 |
+
}
|
| 273 |
+
}), e)
|
| 274 |
+
})), function() {
|
| 275 |
+
var t = this,
|
| 276 |
+
o = arguments;
|
| 277 |
+
return new Promise((function(n, a) {
|
| 278 |
+
var r = e.apply(t, o);
|
| 279 |
+
|
| 280 |
+
function i(e) {
|
| 281 |
+
g(r, n, a, i, c, "next", e)
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
function c(e) {
|
| 285 |
+
g(r, n, a, i, c, "throw", e)
|
| 286 |
+
}
|
| 287 |
+
i(void 0)
|
| 288 |
+
}))
|
| 289 |
+
})();
|
| 290 |
+
var e
|
| 291 |
+
}
|
| 292 |
+
};
|
| 293 |
+
|
| 294 |
+
function k(e, t) {
|
| 295 |
+
var o = function(e) {
|
| 296 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 297 |
+
var o = null != arguments[t] ? arguments[t] : {},
|
| 298 |
+
n = Object.keys(o);
|
| 299 |
+
"function" === typeof Object.getOwnPropertySymbols && (n = n.concat(Object.getOwnPropertySymbols(o).filter((function(e) {
|
| 300 |
+
return Object.getOwnPropertyDescriptor(o, e).enumerable
|
| 301 |
+
})))), n.forEach((function(t) {
|
| 302 |
+
b(e, t, o[t])
|
| 303 |
+
}))
|
| 304 |
+
}
|
| 305 |
+
return e
|
| 306 |
+
}({}, t, {
|
| 307 |
+
code: null != t.code ? t.code : u.Zm
|
| 308 |
+
});
|
| 309 |
+
return e ? p.patch("/snippets/".concat(e), o).then((function(e) {
|
| 310 |
+
return e.data
|
| 311 |
+
})).catch((function(e) {
|
| 312 |
+
return console.error(e), null
|
| 313 |
+
})) : p.post("/snippets", o).then((function(e) {
|
| 314 |
+
return e.data
|
| 315 |
+
})).catch((function(e) {
|
| 316 |
+
return console.error(e), null
|
| 317 |
+
}))
|
| 318 |
+
}
|
| 319 |
+
var F = f()((function(e) {
|
| 320 |
+
return k(null, e)
|
| 321 |
+
}), s()("5s"), {
|
| 322 |
+
leading: !0,
|
| 323 |
+
trailing: !1
|
| 324 |
+
}),
|
| 325 |
+
C = {
|
| 326 |
+
snippet: {
|
| 327 |
+
get: function() {
|
| 328 |
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
|
| 329 |
+
t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
|
| 330 |
+
o = t.host,
|
| 331 |
+
n = t.filename;
|
| 332 |
+
return p.get("/snippets/".concat(e), {
|
| 333 |
+
baseURL: o ? "https://".concat(o, "/api") : void 0,
|
| 334 |
+
params: {
|
| 335 |
+
filename: n
|
| 336 |
+
}
|
| 337 |
+
}).then((function(e) {
|
| 338 |
+
return e.data
|
| 339 |
+
})).catch((function(e) {
|
| 340 |
+
return console.error(e), null
|
| 341 |
+
}))
|
| 342 |
+
},
|
| 343 |
+
list: function(e) {
|
| 344 |
+
return m.ZP.auth().currentUser.getIdToken().then((function(t) {
|
| 345 |
+
return p.get("/snippets", {
|
| 346 |
+
params: {
|
| 347 |
+
page: e
|
| 348 |
+
},
|
| 349 |
+
headers: {
|
| 350 |
+
authorization: t
|
| 351 |
+
}
|
| 352 |
+
}).then((function(e) {
|
| 353 |
+
return e.data
|
| 354 |
+
})).catch((function(e) {
|
| 355 |
+
throw console.error(e), e
|
| 356 |
+
}))
|
| 357 |
+
}))
|
| 358 |
+
},
|
| 359 |
+
update: f()(k, s()("1s"), {
|
| 360 |
+
leading: !0,
|
| 361 |
+
trailing: !0
|
| 362 |
+
}),
|
| 363 |
+
create: F,
|
| 364 |
+
delete: function(e) {
|
| 365 |
+
return t = e, p.delete("/snippets/".concat(t)).then((function(e) {
|
| 366 |
+
return e.data
|
| 367 |
+
})).catch((function(e) {
|
| 368 |
+
return console.error(e), null
|
| 369 |
+
}));
|
| 370 |
+
var t
|
| 371 |
+
}
|
| 372 |
+
},
|
| 373 |
+
tweet: f()((function(e, t) {
|
| 374 |
+
var o = t.split(",")[1];
|
| 375 |
+
return p.post("/twitter", {
|
| 376 |
+
imageData: o,
|
| 377 |
+
altText: e
|
| 378 |
+
}).then((function(e) {
|
| 379 |
+
return e.data.url
|
| 380 |
+
})).then((function(e) {
|
| 381 |
+
return encodeURIComponent("Created with @carbon_app ".concat(e))
|
| 382 |
+
})).then((function(e) {
|
| 383 |
+
return "https://twitter.com/intent/tweet?text=".concat(e)
|
| 384 |
+
})).then(x).catch(w)
|
| 385 |
+
}), s()("5s"), {
|
| 386 |
+
leading: !0,
|
| 387 |
+
trailing: !1
|
| 388 |
+
}),
|
| 389 |
+
unsplash: y,
|
| 390 |
+
imgur: function(e, t) {
|
| 391 |
+
var o = e.split(",")[1];
|
| 392 |
+
return i().post("https://api.imgur.com/3/image", {
|
| 393 |
+
image: o,
|
| 394 |
+
title: t
|
| 395 |
+
}, {
|
| 396 |
+
headers: {
|
| 397 |
+
Authorization: "Client-ID ".concat("a90f408b863a47e")
|
| 398 |
+
}
|
| 399 |
+
}).then((function(e) {
|
| 400 |
+
return e.data.data.link
|
| 401 |
+
})).then((function(e) {
|
| 402 |
+
return window.open(e, "_blank")
|
| 403 |
+
})).catch((function(e) {
|
| 404 |
+
return console.error(e), null
|
| 405 |
+
}))
|
| 406 |
+
},
|
| 407 |
+
downloadThumbnailImage: v
|
| 408 |
+
};
|
| 409 |
+
t.Z = C
|
| 410 |
+
},
|
| 411 |
+
65018: function(e, t, o) {
|
| 412 |
+
o.d(t, {
|
| 413 |
+
kS: function() {
|
| 414 |
+
return a
|
| 415 |
+
},
|
| 416 |
+
zj: function() {
|
| 417 |
+
return r
|
| 418 |
+
}
|
| 419 |
+
});
|
| 420 |
+
var n = o(15503);
|
| 421 |
+
o(16690);
|
| 422 |
+
|
| 423 |
+
function a() {
|
| 424 |
+
return n.Z.auth().signOut().catch(console.error)
|
| 425 |
+
}
|
| 426 |
+
|
| 427 |
+
function r() {
|
| 428 |
+
var e = new n.Z.auth.GithubAuthProvider;
|
| 429 |
+
return e.setCustomParameters({
|
| 430 |
+
allow_signup: "true"
|
| 431 |
+
}),
|
| 432 |
+
function(e) {
|
| 433 |
+
return n.Z.auth().setPersistence(n.Z.auth.Auth.Persistence.LOCAL).then((function() {
|
| 434 |
+
return n.Z.auth().signInWithPopup(e)
|
| 435 |
+
})).catch(console.error)
|
| 436 |
+
}(e)
|
| 437 |
+
}
|
| 438 |
+
0 === n.Z.apps.length && n.Z.initializeApp({
|
| 439 |
+
apiKey: "AIzaSyCxJVODEZTX_dJ5-T3qtMxWBhGYY1Quwys",
|
| 440 |
+
authDomain: "".concat("carbon-147d2", ".firebaseapp.com"),
|
| 441 |
+
databaseURL: "https://".concat("carbon-147d2", ".firebaseio.com"),
|
| 442 |
+
projectId: "carbon-147d2",
|
| 443 |
+
storageBucket: "".concat("carbon-147d2", ".appspot.com"),
|
| 444 |
+
messagingSenderId: "1027516657505",
|
| 445 |
+
appId: "1:1027516657505:web:a41a5ace3a82e885"
|
| 446 |
+
}), t.ZP = n.Z.apps.length ? n.Z : null
|
| 447 |
+
},
|
| 448 |
+
58299: function(e, t, o) {
|
| 449 |
+
o.d(t, {
|
| 450 |
+
$g: function() {
|
| 451 |
+
return u
|
| 452 |
+
},
|
| 453 |
+
B1: function() {
|
| 454 |
+
return l
|
| 455 |
+
},
|
| 456 |
+
DM: function() {
|
| 457 |
+
return k
|
| 458 |
+
},
|
| 459 |
+
Dl: function() {
|
| 460 |
+
return g
|
| 461 |
+
},
|
| 462 |
+
H8: function() {
|
| 463 |
+
return j
|
| 464 |
+
},
|
| 465 |
+
Hq: function() {
|
| 466 |
+
return y
|
| 467 |
+
},
|
| 468 |
+
UL: function() {
|
| 469 |
+
return h
|
| 470 |
+
},
|
| 471 |
+
Z: function() {
|
| 472 |
+
return C
|
| 473 |
+
},
|
| 474 |
+
Zm: function() {
|
| 475 |
+
return F
|
| 476 |
+
},
|
| 477 |
+
a2: function() {
|
| 478 |
+
return m
|
| 479 |
+
},
|
| 480 |
+
a5: function() {
|
| 481 |
+
return d
|
| 482 |
+
},
|
| 483 |
+
aP: function() {
|
| 484 |
+
return p
|
| 485 |
+
},
|
| 486 |
+
g5: function() {
|
| 487 |
+
return f
|
| 488 |
+
},
|
| 489 |
+
k$: function() {
|
| 490 |
+
return w
|
| 491 |
+
},
|
| 492 |
+
mF: function() {
|
| 493 |
+
return b
|
| 494 |
+
},
|
| 495 |
+
pP: function() {
|
| 496 |
+
return M
|
| 497 |
+
},
|
| 498 |
+
qh: function() {
|
| 499 |
+
return v
|
| 500 |
+
},
|
| 501 |
+
t0: function() {
|
| 502 |
+
return x
|
| 503 |
+
},
|
| 504 |
+
vt: function() {
|
| 505 |
+
return c
|
| 506 |
+
},
|
| 507 |
+
yU: function() {
|
| 508 |
+
return s
|
| 509 |
+
}
|
| 510 |
+
});
|
| 511 |
+
var n = o(3616),
|
| 512 |
+
a = o.n(n);
|
| 513 |
+
|
| 514 |
+
function r(e, t, o) {
|
| 515 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 516 |
+
value: o,
|
| 517 |
+
enumerable: !0,
|
| 518 |
+
configurable: !0,
|
| 519 |
+
writable: !0
|
| 520 |
+
}) : e[t] = o, e
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
function i(e) {
|
| 524 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 525 |
+
var o = null != arguments[t] ? arguments[t] : {},
|
| 526 |
+
n = Object.keys(o);
|
| 527 |
+
"function" === typeof Object.getOwnPropertySymbols && (n = n.concat(Object.getOwnPropertySymbols(o).filter((function(e) {
|
| 528 |
+
return Object.getOwnPropertyDescriptor(o, e).enumerable
|
| 529 |
+
})))), n.forEach((function(t) {
|
| 530 |
+
r(e, t, o[t])
|
| 531 |
+
}))
|
| 532 |
+
}
|
| 533 |
+
return e
|
| 534 |
+
}
|
| 535 |
+
var c = "G-27CQ8LVS7D",
|
| 536 |
+
f = [{
|
| 537 |
+
id: "MonoLisa",
|
| 538 |
+
name: "MonoLisa",
|
| 539 |
+
link: "https://a.paddle.com/v2/click/105822/114551?link=2447"
|
| 540 |
+
}, {
|
| 541 |
+
id: "Anonymous Pro",
|
| 542 |
+
name: "Anonymous Pro"
|
| 543 |
+
}, {
|
| 544 |
+
id: "Cascadia Code",
|
| 545 |
+
name: "Cascadia Code"
|
| 546 |
+
}, {
|
| 547 |
+
id: "Droid Sans Mono",
|
| 548 |
+
name: "Droid Sans Mono"
|
| 549 |
+
}, {
|
| 550 |
+
id: "Fantasque Sans Mono",
|
| 551 |
+
name: "Fantasque Sans Mono"
|
| 552 |
+
}, {
|
| 553 |
+
id: "Fira Code",
|
| 554 |
+
name: "Fira Code"
|
| 555 |
+
}, {
|
| 556 |
+
id: "Hack",
|
| 557 |
+
name: "Hack"
|
| 558 |
+
}, {
|
| 559 |
+
id: "IBM Plex Mono",
|
| 560 |
+
name: "IBM Plex Mono"
|
| 561 |
+
}, {
|
| 562 |
+
id: "Inconsolata",
|
| 563 |
+
name: "Inconsolata"
|
| 564 |
+
}, {
|
| 565 |
+
id: "JetBrains Mono",
|
| 566 |
+
name: "JetBrains Mono"
|
| 567 |
+
}, {
|
| 568 |
+
id: "Monoid",
|
| 569 |
+
name: "Monoid"
|
| 570 |
+
}, {
|
| 571 |
+
id: "Source Code Pro",
|
| 572 |
+
name: "Source Code Pro"
|
| 573 |
+
}, {
|
| 574 |
+
id: "Space Mono",
|
| 575 |
+
name: "Space Mono"
|
| 576 |
+
}, {
|
| 577 |
+
id: "Ubuntu Mono",
|
| 578 |
+
name: "Ubuntu Mono"
|
| 579 |
+
}],
|
| 580 |
+
l = ["background", "text", "variable", "attribute", "definition", "keyword", "operator", "property", "number", "string", "comment", "meta"],
|
| 581 |
+
s = [{
|
| 582 |
+
id: "3024-night",
|
| 583 |
+
name: "3024 Night",
|
| 584 |
+
highlights: {
|
| 585 |
+
background: "#090300",
|
| 586 |
+
text: "#d6d5d4",
|
| 587 |
+
variable: "#01a252",
|
| 588 |
+
variable2: "#01a0e4",
|
| 589 |
+
attribute: "#00c",
|
| 590 |
+
definition: "#e8bbd0",
|
| 591 |
+
keyword: "#db2d20",
|
| 592 |
+
operator: "#fff",
|
| 593 |
+
property: "#01a252",
|
| 594 |
+
number: "#a16a94",
|
| 595 |
+
string: "#fded02",
|
| 596 |
+
comment: "#cdab53",
|
| 597 |
+
meta: "#555"
|
| 598 |
+
}
|
| 599 |
+
}, {
|
| 600 |
+
id: "a11y-dark",
|
| 601 |
+
name: "A11y Dark",
|
| 602 |
+
highlights: {
|
| 603 |
+
background: "#2b2b2b",
|
| 604 |
+
text: "#f8f8f2",
|
| 605 |
+
variable: "#00e0e0",
|
| 606 |
+
attribute: "#abe338",
|
| 607 |
+
definition: "#ffd700",
|
| 608 |
+
keyword: "#ffa07a",
|
| 609 |
+
operator: "#f8f8f2",
|
| 610 |
+
property: "#abe338",
|
| 611 |
+
number: "#dcc6e0",
|
| 612 |
+
string: "#ffd700",
|
| 613 |
+
comment: "#d4d0ab",
|
| 614 |
+
meta: "#d4d0ab",
|
| 615 |
+
tag: "#dcc6e0"
|
| 616 |
+
}
|
| 617 |
+
}, {
|
| 618 |
+
id: "blackboard",
|
| 619 |
+
name: "Blackboard",
|
| 620 |
+
highlights: {
|
| 621 |
+
background: "#0C1021",
|
| 622 |
+
text: "#F8F8F8",
|
| 623 |
+
variable: "#FF6400",
|
| 624 |
+
attribute: "#8DA6CE",
|
| 625 |
+
definition: "#8DA6CE",
|
| 626 |
+
keyword: "#FBDE2D",
|
| 627 |
+
operator: "#fff",
|
| 628 |
+
property: "#fff",
|
| 629 |
+
number: "#D8FA3C",
|
| 630 |
+
string: "#61CE3C",
|
| 631 |
+
comment: "#AEAEAE",
|
| 632 |
+
meta: "#D8FA3C",
|
| 633 |
+
tag: "#8DA6CE"
|
| 634 |
+
}
|
| 635 |
+
}, {
|
| 636 |
+
id: "base16-dark",
|
| 637 |
+
name: "Base 16 (Dark)",
|
| 638 |
+
highlights: {
|
| 639 |
+
background: "#151515",
|
| 640 |
+
text: "#e0e0e0",
|
| 641 |
+
variable: "#90a959",
|
| 642 |
+
variable2: "#6a9fb5",
|
| 643 |
+
attribute: "#00c",
|
| 644 |
+
definition: "#d28445",
|
| 645 |
+
keyword: "#ac4142",
|
| 646 |
+
operator: "#fff",
|
| 647 |
+
property: "#90a959",
|
| 648 |
+
number: "#aa759f",
|
| 649 |
+
string: "#f4bf75",
|
| 650 |
+
comment: "#8f5536",
|
| 651 |
+
meta: "#555",
|
| 652 |
+
tag: "#ac4142"
|
| 653 |
+
}
|
| 654 |
+
}, {
|
| 655 |
+
id: "base16-light",
|
| 656 |
+
name: "Base 16 (Light)",
|
| 657 |
+
light: !0,
|
| 658 |
+
highlights: {
|
| 659 |
+
background: "#f5f5f5",
|
| 660 |
+
text: "#202020",
|
| 661 |
+
variable: "#90a959",
|
| 662 |
+
variable2: "#6a9fb5",
|
| 663 |
+
attribute: "#90a959",
|
| 664 |
+
definition: "#d28445",
|
| 665 |
+
keyword: "#ac4142",
|
| 666 |
+
operator: "#000",
|
| 667 |
+
property: "#90a959",
|
| 668 |
+
number: "#aa759f",
|
| 669 |
+
string: "#f4bf75",
|
| 670 |
+
comment: "#8f5536",
|
| 671 |
+
meta: "#555",
|
| 672 |
+
tag: "#ac4142"
|
| 673 |
+
}
|
| 674 |
+
}, {
|
| 675 |
+
id: "cobalt",
|
| 676 |
+
name: "Cobalt",
|
| 677 |
+
highlights: {
|
| 678 |
+
background: "#002240",
|
| 679 |
+
text: "#fff",
|
| 680 |
+
variable: "#9effff",
|
| 681 |
+
variable3: "white",
|
| 682 |
+
attribute: "#ff80e1",
|
| 683 |
+
definition: "#fff",
|
| 684 |
+
keyword: "#ffee80",
|
| 685 |
+
operator: "#fff",
|
| 686 |
+
property: "#fff",
|
| 687 |
+
number: "#ff80e1",
|
| 688 |
+
string: "#3ad900",
|
| 689 |
+
comment: "#08f",
|
| 690 |
+
meta: "#ff9d00",
|
| 691 |
+
tag: "#9effff"
|
| 692 |
+
}
|
| 693 |
+
}, {
|
| 694 |
+
id: "dracula-pro",
|
| 695 |
+
name: "Dracula Pro",
|
| 696 |
+
referral: "https://gumroad.com/a/396719219",
|
| 697 |
+
highlights: {
|
| 698 |
+
background: "#22212C",
|
| 699 |
+
text: "#F8F8F2",
|
| 700 |
+
variable: "#8AFF80",
|
| 701 |
+
variable2: "white",
|
| 702 |
+
variable3: "#FFCA80",
|
| 703 |
+
attribute: "#8AFF80",
|
| 704 |
+
definition: "#8AFF80",
|
| 705 |
+
keyword: "#FF80BF",
|
| 706 |
+
operator: "#FF80BF",
|
| 707 |
+
property: "#80FFEA",
|
| 708 |
+
number: "#9580FF",
|
| 709 |
+
string: "#FFFF80",
|
| 710 |
+
comment: "#7970A9",
|
| 711 |
+
meta: "#F8F8F2",
|
| 712 |
+
tag: "#FF80BF"
|
| 713 |
+
}
|
| 714 |
+
}, {
|
| 715 |
+
id: "duotone-dark",
|
| 716 |
+
name: "Duotone",
|
| 717 |
+
highlights: {
|
| 718 |
+
background: "#2a2734",
|
| 719 |
+
text: "#6c6783",
|
| 720 |
+
variable: "#ffcc99",
|
| 721 |
+
variable2: "#7a63ee",
|
| 722 |
+
variable3: "#7a63ee",
|
| 723 |
+
attribute: "#ffcc99",
|
| 724 |
+
definition: "#eeebff",
|
| 725 |
+
keyword: "#ffcc99",
|
| 726 |
+
operator: "#ffad5c",
|
| 727 |
+
property: "#9a86fd",
|
| 728 |
+
number: "#ffcc99",
|
| 729 |
+
string: "#ffb870",
|
| 730 |
+
comment: "#6c6783",
|
| 731 |
+
meta: "#555",
|
| 732 |
+
tag: "#eeebff"
|
| 733 |
+
}
|
| 734 |
+
}, {
|
| 735 |
+
id: "hopscotch",
|
| 736 |
+
name: "Hopscotch",
|
| 737 |
+
highlights: {
|
| 738 |
+
background: "#322931",
|
| 739 |
+
text: "#d5d3d5",
|
| 740 |
+
variable: "#8fc13e",
|
| 741 |
+
variable2: "#1290bf",
|
| 742 |
+
attribute: "#8fc13e",
|
| 743 |
+
definition: "#fd8b19",
|
| 744 |
+
keyword: "#dd464c",
|
| 745 |
+
operator: "#fff",
|
| 746 |
+
property: "#8fc13e",
|
| 747 |
+
number: "#c85e7c",
|
| 748 |
+
string: "#fdcc59",
|
| 749 |
+
comment: "#b33508",
|
| 750 |
+
meta: "#555",
|
| 751 |
+
tag: "#dd464c"
|
| 752 |
+
}
|
| 753 |
+
}, {
|
| 754 |
+
id: "lucario",
|
| 755 |
+
name: "Lucario",
|
| 756 |
+
highlights: {
|
| 757 |
+
background: "#2b3e50",
|
| 758 |
+
text: "#f8f8f2",
|
| 759 |
+
variable: "#f8f8f2",
|
| 760 |
+
variable3: "#ffb86c",
|
| 761 |
+
attribute: "#66D9EF",
|
| 762 |
+
definition: "#72C05D",
|
| 763 |
+
keyword: "#ff6541",
|
| 764 |
+
operator: "#66D9EF",
|
| 765 |
+
property: "#f8f8f2",
|
| 766 |
+
number: "#ca94ff",
|
| 767 |
+
string: "#E6DB74",
|
| 768 |
+
comment: "#5c98cd",
|
| 769 |
+
meta: "#f8f8f2",
|
| 770 |
+
tag: "#ff6541"
|
| 771 |
+
}
|
| 772 |
+
}, {
|
| 773 |
+
id: "material",
|
| 774 |
+
name: "Material",
|
| 775 |
+
highlights: {
|
| 776 |
+
background: "#263238",
|
| 777 |
+
text: "rgba(233, 237, 237, 1)",
|
| 778 |
+
variable: "#82B1FF",
|
| 779 |
+
variable2: "#80CBC4",
|
| 780 |
+
variable3: "#DECB6B",
|
| 781 |
+
attribute: "#FFCB6B",
|
| 782 |
+
definition: "rgba(233, 237, 237, 1)",
|
| 783 |
+
keyword: "rgba(199, 146, 234, 1)",
|
| 784 |
+
operator: "rgba(233, 237, 237, 1)",
|
| 785 |
+
property: "#80CBAE",
|
| 786 |
+
number: "#F77669",
|
| 787 |
+
string: "#C3E88D",
|
| 788 |
+
comment: "#546E7A",
|
| 789 |
+
meta: "#80CBC4",
|
| 790 |
+
tag: "rgba(255, 83, 112, 1)"
|
| 791 |
+
}
|
| 792 |
+
}, {
|
| 793 |
+
id: "monokai",
|
| 794 |
+
name: "Monokai",
|
| 795 |
+
highlights: {
|
| 796 |
+
background: "#272822",
|
| 797 |
+
text: "#f8f8f2",
|
| 798 |
+
variable: "#f8f8f2",
|
| 799 |
+
variable2: "#9effff",
|
| 800 |
+
variable3: "#66d9ef",
|
| 801 |
+
attribute: "#a6e22e",
|
| 802 |
+
definition: "#fd971f",
|
| 803 |
+
keyword: "#f92672",
|
| 804 |
+
operator: "#fff",
|
| 805 |
+
property: "#a6e22e",
|
| 806 |
+
number: "#ae81ff",
|
| 807 |
+
string: "#e6db74",
|
| 808 |
+
comment: "#75715e",
|
| 809 |
+
meta: "#555",
|
| 810 |
+
tag: "#bc6283"
|
| 811 |
+
}
|
| 812 |
+
}, {
|
| 813 |
+
id: "night-owl",
|
| 814 |
+
name: "Night Owl",
|
| 815 |
+
highlights: {
|
| 816 |
+
background: "#011627",
|
| 817 |
+
text: "#abb2bf",
|
| 818 |
+
variable: "#82AAFF",
|
| 819 |
+
attribute: "#F78C6C",
|
| 820 |
+
definition: "#82AAFF",
|
| 821 |
+
keyword: "#c792ea",
|
| 822 |
+
operator: "#c792ea",
|
| 823 |
+
property: "#fff",
|
| 824 |
+
number: "#F78C6C",
|
| 825 |
+
string: "#ecc48d",
|
| 826 |
+
comment: "#5c6370",
|
| 827 |
+
meta: "#7fdbca",
|
| 828 |
+
tag: "#7fdbca"
|
| 829 |
+
}
|
| 830 |
+
}, {
|
| 831 |
+
id: "nord",
|
| 832 |
+
name: "Nord",
|
| 833 |
+
highlights: {
|
| 834 |
+
background: "#2e3440",
|
| 835 |
+
text: "#d8dee9",
|
| 836 |
+
variable: "#88C0D0",
|
| 837 |
+
variable3: "#d8dee9",
|
| 838 |
+
attribute: "#8FBCBB",
|
| 839 |
+
definition: "#D8DEE9",
|
| 840 |
+
keyword: "#81A1C1",
|
| 841 |
+
operator: "#81A1C1",
|
| 842 |
+
property: "#D8DEE9",
|
| 843 |
+
number: "#B48EAD",
|
| 844 |
+
string: "#A3BE8C",
|
| 845 |
+
comment: "#4C566A",
|
| 846 |
+
meta: "#81A1C1",
|
| 847 |
+
tag: "#81A1C1"
|
| 848 |
+
}
|
| 849 |
+
}, {
|
| 850 |
+
id: "oceanic-next",
|
| 851 |
+
name: "Oceanic Next",
|
| 852 |
+
highlights: {
|
| 853 |
+
background: "#304148",
|
| 854 |
+
text: "#f8f8f2",
|
| 855 |
+
variable: "#f8f8f2",
|
| 856 |
+
attribute: "#C594C5",
|
| 857 |
+
definition: "#6699CC",
|
| 858 |
+
keyword: "#C594C5",
|
| 859 |
+
operator: "#fff",
|
| 860 |
+
property: "#99C794",
|
| 861 |
+
number: "#F99157",
|
| 862 |
+
string: "#99C794",
|
| 863 |
+
comment: "#65737E",
|
| 864 |
+
meta: "#555",
|
| 865 |
+
tag: "#C594C5"
|
| 866 |
+
}
|
| 867 |
+
}, {
|
| 868 |
+
id: "one-light",
|
| 869 |
+
name: "One Light",
|
| 870 |
+
light: !0,
|
| 871 |
+
highlights: {
|
| 872 |
+
background: "#fafafa",
|
| 873 |
+
text: "#383a42",
|
| 874 |
+
variable: "#e06c75",
|
| 875 |
+
variable2: "#e45649",
|
| 876 |
+
attribute: "#d19a66",
|
| 877 |
+
definition: "#4078f2",
|
| 878 |
+
keyword: "#a626a4",
|
| 879 |
+
operator: "#0184bc",
|
| 880 |
+
property: "#4078f2",
|
| 881 |
+
number: "#986801",
|
| 882 |
+
string: "#50a14f",
|
| 883 |
+
comment: "#a0a1a7",
|
| 884 |
+
meta: "#383a42",
|
| 885 |
+
tag: "#e45649"
|
| 886 |
+
}
|
| 887 |
+
}, {
|
| 888 |
+
id: "one-dark",
|
| 889 |
+
name: "One Dark",
|
| 890 |
+
highlights: {
|
| 891 |
+
background: "#282c34",
|
| 892 |
+
text: "#abb2bf",
|
| 893 |
+
variable: "#e06c75",
|
| 894 |
+
attribute: "#d19a66",
|
| 895 |
+
definition: "#e5c07b",
|
| 896 |
+
keyword: "#c678dd",
|
| 897 |
+
operator: "#56b6c2",
|
| 898 |
+
property: "#56b6c2",
|
| 899 |
+
number: "#d19a66",
|
| 900 |
+
string: "#98c379",
|
| 901 |
+
comment: "#5c6370",
|
| 902 |
+
meta: "#abb2bf",
|
| 903 |
+
tag: "#e06c75"
|
| 904 |
+
}
|
| 905 |
+
}, {
|
| 906 |
+
id: "panda-syntax",
|
| 907 |
+
name: "Panda",
|
| 908 |
+
highlights: {
|
| 909 |
+
background: "#292A2B",
|
| 910 |
+
text: "#E6E6E6",
|
| 911 |
+
variable: "#ffb86c",
|
| 912 |
+
variable2: "#ff9ac1",
|
| 913 |
+
variable3: "#ff9ac1",
|
| 914 |
+
attribute: "#ffb86c",
|
| 915 |
+
definition: "#e6e6e6",
|
| 916 |
+
keyword: "#FF75B5",
|
| 917 |
+
operator: "#f3f3f3",
|
| 918 |
+
property: "#f3f3f3",
|
| 919 |
+
number: "#FFB86C",
|
| 920 |
+
string: "#19F9D8",
|
| 921 |
+
comment: "#676B79",
|
| 922 |
+
meta: "#b084eb",
|
| 923 |
+
tag: "#ff2c6d"
|
| 924 |
+
}
|
| 925 |
+
}, {
|
| 926 |
+
id: "paraiso-dark",
|
| 927 |
+
name: "Paraiso",
|
| 928 |
+
highlights: {
|
| 929 |
+
background: "#2f1e2e",
|
| 930 |
+
text: "#b9b6b0",
|
| 931 |
+
variable: "#48b685",
|
| 932 |
+
variable2: "#06b6ef",
|
| 933 |
+
attribute: "#48b685",
|
| 934 |
+
definition: "#f99b15",
|
| 935 |
+
keyword: "#ef6155;",
|
| 936 |
+
operator: "#fff",
|
| 937 |
+
property: "#48b685",
|
| 938 |
+
number: "#815ba4",
|
| 939 |
+
string: "#fec418",
|
| 940 |
+
comment: "#e96ba8",
|
| 941 |
+
meta: "#555",
|
| 942 |
+
tag: "#ef6155"
|
| 943 |
+
}
|
| 944 |
+
}, {
|
| 945 |
+
id: "seti",
|
| 946 |
+
name: "Seti",
|
| 947 |
+
highlights: {
|
| 948 |
+
background: "#151718",
|
| 949 |
+
text: "#CFD2D1",
|
| 950 |
+
variable: "#55b5db",
|
| 951 |
+
variable2: "#a074c4",
|
| 952 |
+
variable3: "#9fca56",
|
| 953 |
+
attribute: "#9fca56",
|
| 954 |
+
definition: "#55b5db",
|
| 955 |
+
keyword: "#e6cd69",
|
| 956 |
+
operator: "#9fca56",
|
| 957 |
+
property: "#a074c4",
|
| 958 |
+
number: "#cd3f45",
|
| 959 |
+
string: "#55b5db",
|
| 960 |
+
comment: "#41535b",
|
| 961 |
+
meta: "#55b5db",
|
| 962 |
+
tag: "#55b5db"
|
| 963 |
+
}
|
| 964 |
+
}, {
|
| 965 |
+
id: "shades-of-purple",
|
| 966 |
+
name: "Shades of Purple ",
|
| 967 |
+
highlights: {
|
| 968 |
+
background: "#2D2B55",
|
| 969 |
+
text: "#FFFFFF",
|
| 970 |
+
variable: "#9EFFFF",
|
| 971 |
+
attribute: "#9EFFFF",
|
| 972 |
+
definition: "#9EFFFF",
|
| 973 |
+
keyword: "#FF9D00",
|
| 974 |
+
operator: "#FF9D00",
|
| 975 |
+
property: "#FAD000",
|
| 976 |
+
number: "#FF628C",
|
| 977 |
+
string: "#A5FF90",
|
| 978 |
+
comment: "#B362FF",
|
| 979 |
+
meta: "#FF9D00",
|
| 980 |
+
tag: "#9EFFFF"
|
| 981 |
+
}
|
| 982 |
+
}, {
|
| 983 |
+
id: "solarized dark",
|
| 984 |
+
name: "Solarized (Dark)",
|
| 985 |
+
link: "solarized",
|
| 986 |
+
highlights: {
|
| 987 |
+
background: "#002b36",
|
| 988 |
+
text: "#839496",
|
| 989 |
+
variable: "#839496",
|
| 990 |
+
variable2: "#b58900",
|
| 991 |
+
variable3: "#6c71c4",
|
| 992 |
+
attribute: "#2aa198",
|
| 993 |
+
definition: "#2aa198",
|
| 994 |
+
keyword: "#cb4b16",
|
| 995 |
+
operator: "#6c71c4",
|
| 996 |
+
property: "#2aa198",
|
| 997 |
+
number: "#d33682",
|
| 998 |
+
string: "#859900",
|
| 999 |
+
comment: "#586e75",
|
| 1000 |
+
meta: "#859900",
|
| 1001 |
+
tag: "#93a1a1"
|
| 1002 |
+
}
|
| 1003 |
+
}, {
|
| 1004 |
+
id: "solarized light",
|
| 1005 |
+
name: "Solarized (Light)",
|
| 1006 |
+
link: "solarized",
|
| 1007 |
+
light: !0,
|
| 1008 |
+
highlights: {
|
| 1009 |
+
background: "#fdf6e3",
|
| 1010 |
+
text: "#657b83",
|
| 1011 |
+
variable: "#839496",
|
| 1012 |
+
variable2: "#b58900",
|
| 1013 |
+
variable3: "#6c71c4",
|
| 1014 |
+
attribute: "#2aa198",
|
| 1015 |
+
definition: "#2aa198",
|
| 1016 |
+
keyword: "#cb4b16",
|
| 1017 |
+
operator: "#6c71c4",
|
| 1018 |
+
property: "#2aa198",
|
| 1019 |
+
number: "#d33682",
|
| 1020 |
+
string: "#859900",
|
| 1021 |
+
comment: "#586e75",
|
| 1022 |
+
meta: "#859900",
|
| 1023 |
+
tag: "#93a1a1"
|
| 1024 |
+
}
|
| 1025 |
+
}, {
|
| 1026 |
+
id: "synthwave-84",
|
| 1027 |
+
name: "SynthWave '84",
|
| 1028 |
+
highlights: {
|
| 1029 |
+
background: "#2b213a",
|
| 1030 |
+
text: "#b6b1b1",
|
| 1031 |
+
variable: "#f92aad",
|
| 1032 |
+
attribute: "#fff5f6",
|
| 1033 |
+
definition: "#fdfdfd",
|
| 1034 |
+
keyword: "#f4eee4",
|
| 1035 |
+
operator: "#f4eee4",
|
| 1036 |
+
property: "#fdfdfd",
|
| 1037 |
+
number: "#f97e72",
|
| 1038 |
+
string: "#ff8b39",
|
| 1039 |
+
comment: "#6d77b3",
|
| 1040 |
+
meta: "#ff8b39",
|
| 1041 |
+
tag: "#f92aad"
|
| 1042 |
+
}
|
| 1043 |
+
}, {
|
| 1044 |
+
id: "twilight",
|
| 1045 |
+
name: "Twilight",
|
| 1046 |
+
highlights: {
|
| 1047 |
+
background: "#141414",
|
| 1048 |
+
text: "#f7f7f7",
|
| 1049 |
+
variable: "#607392",
|
| 1050 |
+
attribute: "#d6bb6d",
|
| 1051 |
+
definition: "#607392",
|
| 1052 |
+
keyword: "#f9ee98",
|
| 1053 |
+
operator: "#cda869",
|
| 1054 |
+
property: "#fff",
|
| 1055 |
+
number: "#ca7841",
|
| 1056 |
+
string: "#8f9d6a",
|
| 1057 |
+
comment: "#777",
|
| 1058 |
+
meta: "#f7f7f7",
|
| 1059 |
+
tag: "#997643"
|
| 1060 |
+
}
|
| 1061 |
+
}, {
|
| 1062 |
+
id: "verminal",
|
| 1063 |
+
name: "Verminal",
|
| 1064 |
+
highlights: {
|
| 1065 |
+
background: "rgba(0, 0, 0, 0.85)",
|
| 1066 |
+
text: "#fff",
|
| 1067 |
+
variable: "#ff9ba3",
|
| 1068 |
+
variable2: "#fff",
|
| 1069 |
+
attribute: "#d19a66",
|
| 1070 |
+
definition: "#34B7FF",
|
| 1071 |
+
keyword: "#9AE1FF",
|
| 1072 |
+
operator: "#FA78C3",
|
| 1073 |
+
property: "#0af",
|
| 1074 |
+
number: "#d19a66",
|
| 1075 |
+
string: "#98c379",
|
| 1076 |
+
comment: "#5c6370",
|
| 1077 |
+
meta: "#abb2bf",
|
| 1078 |
+
tag: "#e06c75"
|
| 1079 |
+
}
|
| 1080 |
+
}, {
|
| 1081 |
+
id: "vscode",
|
| 1082 |
+
name: "VSCode",
|
| 1083 |
+
highlights: {
|
| 1084 |
+
background: "#1E1E1E",
|
| 1085 |
+
text: "#D4D4D4",
|
| 1086 |
+
variable: "#9CDCFE",
|
| 1087 |
+
attribute: "#d19a66",
|
| 1088 |
+
definition: "#DCDCAA",
|
| 1089 |
+
keyword: "#C586C0",
|
| 1090 |
+
operator: "#D4D4D4",
|
| 1091 |
+
property: "#DCDCAA",
|
| 1092 |
+
number: "#B5CEA8",
|
| 1093 |
+
string: "#CE9178",
|
| 1094 |
+
comment: "#6A9955",
|
| 1095 |
+
meta: "#D4D4D4",
|
| 1096 |
+
tag: "#569cd6"
|
| 1097 |
+
}
|
| 1098 |
+
}, {
|
| 1099 |
+
id: "yeti",
|
| 1100 |
+
name: "Yeti",
|
| 1101 |
+
light: !0,
|
| 1102 |
+
highlights: {
|
| 1103 |
+
background: "#ECEAE8",
|
| 1104 |
+
text: "#d1c9c0",
|
| 1105 |
+
variable: "#55b5db",
|
| 1106 |
+
variable2: "#a074c4",
|
| 1107 |
+
variable3: "#96c0d8",
|
| 1108 |
+
attribute: "#9fb96e",
|
| 1109 |
+
definition: "#55b5db",
|
| 1110 |
+
keyword: "#9fb96e",
|
| 1111 |
+
operator: "#9fb96e",
|
| 1112 |
+
property: "#a074c4",
|
| 1113 |
+
number: "#a074c4",
|
| 1114 |
+
string: "#96c0d8",
|
| 1115 |
+
comment: "#d4c8be",
|
| 1116 |
+
meta: "#96c0d8",
|
| 1117 |
+
tag: "#96c0d8"
|
| 1118 |
+
}
|
| 1119 |
+
}, {
|
| 1120 |
+
id: "zenburn",
|
| 1121 |
+
name: "Zenburn",
|
| 1122 |
+
highlights: {
|
| 1123 |
+
background: "#3f3f3f",
|
| 1124 |
+
text: "#dcdccc",
|
| 1125 |
+
variable: "#dfaf8f",
|
| 1126 |
+
variable3: "#dcdccc",
|
| 1127 |
+
attribute: "#dfaf8f",
|
| 1128 |
+
definition: "#dcdccc",
|
| 1129 |
+
keyword: "#f0dfaf",
|
| 1130 |
+
operator: "#f0efd0",
|
| 1131 |
+
property: "#dfaf8f",
|
| 1132 |
+
number: "#dcdccc",
|
| 1133 |
+
string: "#cc9393",
|
| 1134 |
+
comment: "#7f9f7f",
|
| 1135 |
+
meta: "#f0dfaf",
|
| 1136 |
+
tag: "#93e0e3"
|
| 1137 |
+
}
|
| 1138 |
+
}],
|
| 1139 |
+
d = a()(s),
|
| 1140 |
+
m = [{
|
| 1141 |
+
name: "Auto",
|
| 1142 |
+
mode: "auto"
|
| 1143 |
+
}, {
|
| 1144 |
+
name: "Apache",
|
| 1145 |
+
mode: "apache",
|
| 1146 |
+
mime: "text/apache",
|
| 1147 |
+
custom: !0,
|
| 1148 |
+
highlight: !0
|
| 1149 |
+
}, {
|
| 1150 |
+
name: "Bash",
|
| 1151 |
+
mode: "shell",
|
| 1152 |
+
mime: "application/x-sh",
|
| 1153 |
+
highlight: !0
|
| 1154 |
+
}, {
|
| 1155 |
+
name: "Plain Text",
|
| 1156 |
+
mode: "text"
|
| 1157 |
+
}, {
|
| 1158 |
+
name: "C",
|
| 1159 |
+
mode: "clike",
|
| 1160 |
+
mime: "text/x-csrc",
|
| 1161 |
+
short: "c"
|
| 1162 |
+
}, {
|
| 1163 |
+
name: "C++",
|
| 1164 |
+
mode: "clike",
|
| 1165 |
+
mime: "text/x-c++src",
|
| 1166 |
+
short: "c-like",
|
| 1167 |
+
highlight: !0
|
| 1168 |
+
}, {
|
| 1169 |
+
name: "C#",
|
| 1170 |
+
mode: "clike",
|
| 1171 |
+
mime: "text/x-csharp",
|
| 1172 |
+
short: "csharp",
|
| 1173 |
+
highlight: !0
|
| 1174 |
+
}, {
|
| 1175 |
+
name: "Clojure",
|
| 1176 |
+
mode: "clojure",
|
| 1177 |
+
highlight: !0
|
| 1178 |
+
}, {
|
| 1179 |
+
name: "COBOL",
|
| 1180 |
+
mode: "cobol"
|
| 1181 |
+
}, {
|
| 1182 |
+
name: "CoffeeScript",
|
| 1183 |
+
mode: "coffeescript",
|
| 1184 |
+
highlight: !0
|
| 1185 |
+
}, {
|
| 1186 |
+
name: "Crystal",
|
| 1187 |
+
mode: "crystal",
|
| 1188 |
+
highlight: !0
|
| 1189 |
+
}, {
|
| 1190 |
+
name: "CSS",
|
| 1191 |
+
mode: "css",
|
| 1192 |
+
highlight: !0
|
| 1193 |
+
}, {
|
| 1194 |
+
name: "D",
|
| 1195 |
+
mode: "d",
|
| 1196 |
+
highlight: !0
|
| 1197 |
+
}, {
|
| 1198 |
+
name: "Dart",
|
| 1199 |
+
mode: "dart",
|
| 1200 |
+
highlight: !0
|
| 1201 |
+
}, {
|
| 1202 |
+
name: "Diff",
|
| 1203 |
+
mode: "diff",
|
| 1204 |
+
mime: "text/x-diff",
|
| 1205 |
+
highlight: !0
|
| 1206 |
+
}, {
|
| 1207 |
+
name: "Django",
|
| 1208 |
+
mode: "django",
|
| 1209 |
+
highlight: !0
|
| 1210 |
+
}, {
|
| 1211 |
+
name: "Docker",
|
| 1212 |
+
mode: "dockerfile",
|
| 1213 |
+
highlight: !0
|
| 1214 |
+
}, {
|
| 1215 |
+
name: "Elixir",
|
| 1216 |
+
mode: "elixir",
|
| 1217 |
+
custom: !0,
|
| 1218 |
+
highlight: !0
|
| 1219 |
+
}, {
|
| 1220 |
+
name: "Elm",
|
| 1221 |
+
mode: "elm",
|
| 1222 |
+
highlight: !0
|
| 1223 |
+
}, {
|
| 1224 |
+
name: "Erlang",
|
| 1225 |
+
mode: "erlang",
|
| 1226 |
+
highlight: !0
|
| 1227 |
+
}, {
|
| 1228 |
+
name: "F#",
|
| 1229 |
+
mime: "text/x-fsharp",
|
| 1230 |
+
mode: "mllike",
|
| 1231 |
+
short: "fsharp",
|
| 1232 |
+
highlight: !0
|
| 1233 |
+
}, {
|
| 1234 |
+
name: "Fortran",
|
| 1235 |
+
mode: "fortran",
|
| 1236 |
+
highlight: !0
|
| 1237 |
+
}, {
|
| 1238 |
+
name: "Gherkin",
|
| 1239 |
+
mode: "gherkin",
|
| 1240 |
+
highlight: !0
|
| 1241 |
+
}, {
|
| 1242 |
+
name: "GraphQL",
|
| 1243 |
+
mode: "graphql",
|
| 1244 |
+
custom: !0
|
| 1245 |
+
}, {
|
| 1246 |
+
name: "Go",
|
| 1247 |
+
mode: "go",
|
| 1248 |
+
mime: "text/x-go",
|
| 1249 |
+
highlight: !0
|
| 1250 |
+
}, {
|
| 1251 |
+
name: "Groovy",
|
| 1252 |
+
mode: "groovy",
|
| 1253 |
+
highlight: !0
|
| 1254 |
+
}, {
|
| 1255 |
+
name: "Handlebars",
|
| 1256 |
+
mode: "handlebars",
|
| 1257 |
+
highlight: !0
|
| 1258 |
+
}, {
|
| 1259 |
+
name: "Haskell",
|
| 1260 |
+
mode: "haskell",
|
| 1261 |
+
highlight: !0
|
| 1262 |
+
}, {
|
| 1263 |
+
name: "HTML/XML",
|
| 1264 |
+
mode: "htmlmixed"
|
| 1265 |
+
}, {
|
| 1266 |
+
name: "Java",
|
| 1267 |
+
mode: "clike",
|
| 1268 |
+
mime: "text/x-java",
|
| 1269 |
+
short: "java",
|
| 1270 |
+
highlight: !0
|
| 1271 |
+
}, {
|
| 1272 |
+
name: "JavaScript",
|
| 1273 |
+
mode: "javascript",
|
| 1274 |
+
short: "javascript",
|
| 1275 |
+
highlight: !0
|
| 1276 |
+
}, {
|
| 1277 |
+
name: "JSON",
|
| 1278 |
+
mode: "javascript",
|
| 1279 |
+
mime: "application/json",
|
| 1280 |
+
short: "json",
|
| 1281 |
+
highlight: !0
|
| 1282 |
+
}, {
|
| 1283 |
+
name: "JSX",
|
| 1284 |
+
mode: "jsx",
|
| 1285 |
+
short: "jsx"
|
| 1286 |
+
}, {
|
| 1287 |
+
name: "Julia",
|
| 1288 |
+
mode: "julia",
|
| 1289 |
+
highlight: !0
|
| 1290 |
+
}, {
|
| 1291 |
+
name: "Kotlin",
|
| 1292 |
+
mode: "clike",
|
| 1293 |
+
mime: "text/x-kotlin",
|
| 1294 |
+
short: "kotlin",
|
| 1295 |
+
highlight: !0
|
| 1296 |
+
}, {
|
| 1297 |
+
name: "LaTeX",
|
| 1298 |
+
mode: "stex",
|
| 1299 |
+
short: "latex",
|
| 1300 |
+
highlight: !0
|
| 1301 |
+
}, {
|
| 1302 |
+
name: "Lisp",
|
| 1303 |
+
mode: "commonlisp",
|
| 1304 |
+
short: "lisp",
|
| 1305 |
+
highlight: !0
|
| 1306 |
+
}, {
|
| 1307 |
+
name: "Lua",
|
| 1308 |
+
mode: "lua",
|
| 1309 |
+
highlight: !0
|
| 1310 |
+
}, {
|
| 1311 |
+
name: "Markdown",
|
| 1312 |
+
mode: "markdown",
|
| 1313 |
+
highlight: !0
|
| 1314 |
+
}, {
|
| 1315 |
+
name: "Mathematica",
|
| 1316 |
+
mode: "mathematica",
|
| 1317 |
+
highlight: !0
|
| 1318 |
+
}, {
|
| 1319 |
+
name: "MATLAB/Octave",
|
| 1320 |
+
mode: "octave",
|
| 1321 |
+
mime: "text/x-octave",
|
| 1322 |
+
short: "matlab",
|
| 1323 |
+
highlight: !0
|
| 1324 |
+
}, {
|
| 1325 |
+
name: "MySQL",
|
| 1326 |
+
mode: "sql",
|
| 1327 |
+
mime: "text/x-mysql",
|
| 1328 |
+
short: "mysql"
|
| 1329 |
+
}, {
|
| 1330 |
+
name: "N-Triples",
|
| 1331 |
+
mode: "ntriples",
|
| 1332 |
+
mime: "application/n-triples"
|
| 1333 |
+
}, {
|
| 1334 |
+
name: "NGINX",
|
| 1335 |
+
mode: "nginx",
|
| 1336 |
+
highlight: !0
|
| 1337 |
+
}, {
|
| 1338 |
+
name: "Nim",
|
| 1339 |
+
mode: "nim",
|
| 1340 |
+
custom: !0,
|
| 1341 |
+
highlight: !0
|
| 1342 |
+
}, {
|
| 1343 |
+
name: "Objective C",
|
| 1344 |
+
mode: "clike",
|
| 1345 |
+
mime: "text/x-objectivec",
|
| 1346 |
+
short: "objectivec",
|
| 1347 |
+
highlight: !0
|
| 1348 |
+
}, {
|
| 1349 |
+
name: "OCaml",
|
| 1350 |
+
mode: "mllike",
|
| 1351 |
+
short: "ocaml",
|
| 1352 |
+
highlight: !0
|
| 1353 |
+
}, {
|
| 1354 |
+
name: "Pascal",
|
| 1355 |
+
mode: "pascal"
|
| 1356 |
+
}, {
|
| 1357 |
+
name: "Perl",
|
| 1358 |
+
mode: "perl",
|
| 1359 |
+
highlight: !0
|
| 1360 |
+
}, {
|
| 1361 |
+
name: "PHP",
|
| 1362 |
+
mode: "php",
|
| 1363 |
+
mime: "text/x-php",
|
| 1364 |
+
short: "php",
|
| 1365 |
+
highlight: !0
|
| 1366 |
+
}, {
|
| 1367 |
+
name: "PowerShell",
|
| 1368 |
+
mode: "powershell",
|
| 1369 |
+
highlight: !0
|
| 1370 |
+
}, {
|
| 1371 |
+
name: "Protocol Buffer",
|
| 1372 |
+
mode: "protobuf"
|
| 1373 |
+
}, {
|
| 1374 |
+
name: "Python",
|
| 1375 |
+
mode: "python",
|
| 1376 |
+
highlight: !0
|
| 1377 |
+
}, {
|
| 1378 |
+
name: "R",
|
| 1379 |
+
mode: "r",
|
| 1380 |
+
highlight: !0
|
| 1381 |
+
}, {
|
| 1382 |
+
name: "RISC-V",
|
| 1383 |
+
mode: "riscv",
|
| 1384 |
+
custom: !0
|
| 1385 |
+
}, {
|
| 1386 |
+
name: "Ruby",
|
| 1387 |
+
mode: "ruby",
|
| 1388 |
+
highlight: !0
|
| 1389 |
+
}, {
|
| 1390 |
+
name: "Rust",
|
| 1391 |
+
mode: "rust",
|
| 1392 |
+
highlight: !0
|
| 1393 |
+
}, {
|
| 1394 |
+
name: "Sass",
|
| 1395 |
+
mode: "sass"
|
| 1396 |
+
}, {
|
| 1397 |
+
name: "Scala",
|
| 1398 |
+
mode: "clike",
|
| 1399 |
+
mime: "text/x-scala",
|
| 1400 |
+
short: "scala",
|
| 1401 |
+
highlight: !0
|
| 1402 |
+
}, {
|
| 1403 |
+
name: "Smalltalk",
|
| 1404 |
+
mode: "smalltalk",
|
| 1405 |
+
highlight: !0
|
| 1406 |
+
}, {
|
| 1407 |
+
name: "Solidity",
|
| 1408 |
+
mode: "solidity",
|
| 1409 |
+
custom: !0
|
| 1410 |
+
}, {
|
| 1411 |
+
name: "SPARQL",
|
| 1412 |
+
mode: "sparql",
|
| 1413 |
+
mime: "application/sparql-query"
|
| 1414 |
+
}, {
|
| 1415 |
+
name: "SQL",
|
| 1416 |
+
mode: "sql",
|
| 1417 |
+
highlight: !0
|
| 1418 |
+
}, {
|
| 1419 |
+
name: "Stylus",
|
| 1420 |
+
mode: "stylus",
|
| 1421 |
+
mime: "stylus",
|
| 1422 |
+
highlight: !0
|
| 1423 |
+
}, {
|
| 1424 |
+
name: "Swift",
|
| 1425 |
+
mode: "swift",
|
| 1426 |
+
highlight: !0
|
| 1427 |
+
}, {
|
| 1428 |
+
name: "TCL",
|
| 1429 |
+
mode: "tcl",
|
| 1430 |
+
highlight: !0
|
| 1431 |
+
}, {
|
| 1432 |
+
name: "TOML",
|
| 1433 |
+
mode: "toml"
|
| 1434 |
+
}, {
|
| 1435 |
+
name: "Turtle",
|
| 1436 |
+
mode: "turtle",
|
| 1437 |
+
mime: "text/turtle"
|
| 1438 |
+
}, {
|
| 1439 |
+
name: "TypeScript",
|
| 1440 |
+
mode: "javascript",
|
| 1441 |
+
mime: "application/typescript",
|
| 1442 |
+
short: "typescript",
|
| 1443 |
+
highlight: !0
|
| 1444 |
+
}, {
|
| 1445 |
+
name: "TSX",
|
| 1446 |
+
mode: "jsx",
|
| 1447 |
+
mime: "text/typescript-jsx",
|
| 1448 |
+
short: "tsx"
|
| 1449 |
+
}, {
|
| 1450 |
+
name: "Twig",
|
| 1451 |
+
mode: "twig",
|
| 1452 |
+
mime: "text/x-twig",
|
| 1453 |
+
highlight: !0
|
| 1454 |
+
}, {
|
| 1455 |
+
name: "VB.NET",
|
| 1456 |
+
mode: "vb"
|
| 1457 |
+
}, {
|
| 1458 |
+
name: "Verilog",
|
| 1459 |
+
mode: "verilog",
|
| 1460 |
+
highlight: !0
|
| 1461 |
+
}, {
|
| 1462 |
+
name: "VHDL",
|
| 1463 |
+
mode: "vhdl",
|
| 1464 |
+
highlight: !0
|
| 1465 |
+
}, {
|
| 1466 |
+
name: "Vue",
|
| 1467 |
+
mode: "vue"
|
| 1468 |
+
}, {
|
| 1469 |
+
name: "XQuery",
|
| 1470 |
+
mode: "xquery",
|
| 1471 |
+
highlight: !0
|
| 1472 |
+
}, {
|
| 1473 |
+
name: "YAML",
|
| 1474 |
+
mode: "yaml",
|
| 1475 |
+
highlight: !0
|
| 1476 |
+
}],
|
| 1477 |
+
u = [{
|
| 1478 |
+
id: "1x",
|
| 1479 |
+
name: "1x",
|
| 1480 |
+
value: 1
|
| 1481 |
+
}, {
|
| 1482 |
+
id: "2x",
|
| 1483 |
+
name: "2x",
|
| 1484 |
+
value: 2
|
| 1485 |
+
}, {
|
| 1486 |
+
id: "4x",
|
| 1487 |
+
name: "4x",
|
| 1488 |
+
value: 4
|
| 1489 |
+
}],
|
| 1490 |
+
h = a()(u),
|
| 1491 |
+
g = a()(m, "mime"),
|
| 1492 |
+
b = a()(m, "mode"),
|
| 1493 |
+
p = a()(m, "short"),
|
| 1494 |
+
w = "auto",
|
| 1495 |
+
x = d.seti,
|
| 1496 |
+
v = "rgba(171, 184, 195, 1)",
|
| 1497 |
+
y = h["2x"],
|
| 1498 |
+
k = {
|
| 1499 |
+
BLACK: "#121212",
|
| 1500 |
+
PRIMARY: "#F8E81C",
|
| 1501 |
+
SECONDARY: "#fff",
|
| 1502 |
+
GRAY: "#858585",
|
| 1503 |
+
DARK_GRAY: "#393939",
|
| 1504 |
+
HOVER: "#1F1F1F",
|
| 1505 |
+
PURPLE: "#C198FB",
|
| 1506 |
+
DARK_PURPLE: "#55436F",
|
| 1507 |
+
RED: "#ff5f56",
|
| 1508 |
+
BLUE: "#57b5f9",
|
| 1509 |
+
GREEN: "#37b589"
|
| 1510 |
+
},
|
| 1511 |
+
F = "const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj)\n\nconst compose = (...fns) => res => fns.reduce((accum, next) => next(accum), res)\n\nconst unfold = (f, seed) => {\n const go = (f, seed, acc) => {\n const res = f(seed)\n return res ? go(f, res[1], acc.concat([res[0]])) : acc\n }\n return go(f, seed, [])\n}",
|
| 1512 |
+
C = {
|
| 1513 |
+
paddingVertical: "56px",
|
| 1514 |
+
paddingHorizontal: "56px",
|
| 1515 |
+
backgroundImage: null,
|
| 1516 |
+
backgroundImageSelection: null,
|
| 1517 |
+
backgroundMode: "color",
|
| 1518 |
+
backgroundColor: v,
|
| 1519 |
+
dropShadow: !0,
|
| 1520 |
+
dropShadowOffsetY: "20px",
|
| 1521 |
+
dropShadowBlurRadius: "68px",
|
| 1522 |
+
theme: x.id,
|
| 1523 |
+
windowTheme: "none",
|
| 1524 |
+
language: w,
|
| 1525 |
+
fontFamily: "Hack",
|
| 1526 |
+
fontSize: "14px",
|
| 1527 |
+
lineHeight: "133%",
|
| 1528 |
+
windowControls: !0,
|
| 1529 |
+
widthAdjustment: !0,
|
| 1530 |
+
lineNumbers: !1,
|
| 1531 |
+
firstLineNumber: 1,
|
| 1532 |
+
exportSize: "2x",
|
| 1533 |
+
watermark: !1,
|
| 1534 |
+
squaredImage: !1,
|
| 1535 |
+
hiddenCharacters: !1,
|
| 1536 |
+
name: "",
|
| 1537 |
+
width: 680
|
| 1538 |
+
},
|
| 1539 |
+
j = {
|
| 1540 |
+
minWidth: 320,
|
| 1541 |
+
maxWidth: 1280
|
| 1542 |
+
},
|
| 1543 |
+
M = [i({}, C, {
|
| 1544 |
+
icon: "/static/presets/4.png",
|
| 1545 |
+
id: "preset:4"
|
| 1546 |
+
}), i({}, C, {
|
| 1547 |
+
backgroundColor: "rgba(74,144,226,1)",
|
| 1548 |
+
dropShadow: !1,
|
| 1549 |
+
theme: "material",
|
| 1550 |
+
fontFamily: "Fira Code",
|
| 1551 |
+
lineHeight: "152%",
|
| 1552 |
+
icon: "/static/presets/7.png",
|
| 1553 |
+
id: "preset:7"
|
| 1554 |
+
}), i({}, C, {
|
| 1555 |
+
backgroundColor: "rgba(248,231,28,1)",
|
| 1556 |
+
dropShadow: !1,
|
| 1557 |
+
theme: "blackboard",
|
| 1558 |
+
fontFamily: "Fira Code",
|
| 1559 |
+
lineHeight: "152%",
|
| 1560 |
+
icon: "/static/presets/8.png",
|
| 1561 |
+
id: "preset:8"
|
| 1562 |
+
}), i({}, C, {
|
| 1563 |
+
backgroundColor: "rgba(182,162,145,1)",
|
| 1564 |
+
dropShadow: !1,
|
| 1565 |
+
theme: "zenburn",
|
| 1566 |
+
windowTheme: "bw",
|
| 1567 |
+
lineHeight: "152%",
|
| 1568 |
+
icon: "/static/presets/9.png",
|
| 1569 |
+
id: "preset:9"
|
| 1570 |
+
}), i({}, C, {
|
| 1571 |
+
backgroundColor: "rgba(121,72,185,1)",
|
| 1572 |
+
dropShadow: !1,
|
| 1573 |
+
theme: "verminal",
|
| 1574 |
+
windowTheme: "bw",
|
| 1575 |
+
fontFamily: "Fira Code",
|
| 1576 |
+
fontSize: "14px",
|
| 1577 |
+
lineHeight: "143%",
|
| 1578 |
+
icon: "/static/presets/0.png",
|
| 1579 |
+
id: "preset:0"
|
| 1580 |
+
}), i({}, C, {
|
| 1581 |
+
backgroundColor: "rgba(239,40,44,1)",
|
| 1582 |
+
theme: "one-light",
|
| 1583 |
+
lineHeight: "143%",
|
| 1584 |
+
icon: "/static/presets/1.png",
|
| 1585 |
+
id: "preset:1"
|
| 1586 |
+
}), i({}, C, {
|
| 1587 |
+
backgroundColor: "rgba(31,129,109,1)",
|
| 1588 |
+
dropShadow: !1,
|
| 1589 |
+
theme: "night-owl",
|
| 1590 |
+
lineHeight: "143%",
|
| 1591 |
+
windowControls: !1,
|
| 1592 |
+
icon: "/static/presets/2.png",
|
| 1593 |
+
id: "preset:2"
|
| 1594 |
+
}), i({}, C, {
|
| 1595 |
+
backgroundColor: "rgba(222,171,99,1)",
|
| 1596 |
+
theme: "duotone-dark",
|
| 1597 |
+
icon: "/static/presets/5.png",
|
| 1598 |
+
id: "preset:5"
|
| 1599 |
+
})]
|
| 1600 |
+
},
|
| 1601 |
+
94959: function(e, t, o) {
|
| 1602 |
+
o.d(t, {
|
| 1603 |
+
AK: function() {
|
| 1604 |
+
return w
|
| 1605 |
+
},
|
| 1606 |
+
CE: function() {
|
| 1607 |
+
return b
|
| 1608 |
+
},
|
| 1609 |
+
Gw: function() {
|
| 1610 |
+
return C
|
| 1611 |
+
},
|
| 1612 |
+
Ox: function() {
|
| 1613 |
+
return B
|
| 1614 |
+
},
|
| 1615 |
+
Ph: function() {
|
| 1616 |
+
return R
|
| 1617 |
+
},
|
| 1618 |
+
RC: function() {
|
| 1619 |
+
return M
|
| 1620 |
+
},
|
| 1621 |
+
Ss: function() {
|
| 1622 |
+
return D
|
| 1623 |
+
},
|
| 1624 |
+
Tz: function() {
|
| 1625 |
+
return F
|
| 1626 |
+
},
|
| 1627 |
+
UJ: function() {
|
| 1628 |
+
return x
|
| 1629 |
+
},
|
| 1630 |
+
XQ: function() {
|
| 1631 |
+
return S
|
| 1632 |
+
},
|
| 1633 |
+
Xv: function() {
|
| 1634 |
+
return k
|
| 1635 |
+
},
|
| 1636 |
+
Yz: function() {
|
| 1637 |
+
return j
|
| 1638 |
+
},
|
| 1639 |
+
ZN: function() {
|
| 1640 |
+
return y
|
| 1641 |
+
},
|
| 1642 |
+
iS: function() {
|
| 1643 |
+
return P
|
| 1644 |
+
},
|
| 1645 |
+
rL: function() {
|
| 1646 |
+
return A
|
| 1647 |
+
},
|
| 1648 |
+
zQ: function() {
|
| 1649 |
+
return p
|
| 1650 |
+
}
|
| 1651 |
+
});
|
| 1652 |
+
var n = o(34051),
|
| 1653 |
+
a = o.n(n),
|
| 1654 |
+
r = o(19613),
|
| 1655 |
+
i = o.n(r),
|
| 1656 |
+
c = o(99503),
|
| 1657 |
+
f = o.n(c),
|
| 1658 |
+
l = o(46779);
|
| 1659 |
+
|
| 1660 |
+
function s(e, t, o, n, a, r, i) {
|
| 1661 |
+
try {
|
| 1662 |
+
var c = e[r](i),
|
| 1663 |
+
f = c.value
|
| 1664 |
+
} catch (l) {
|
| 1665 |
+
return void o(l)
|
| 1666 |
+
}
|
| 1667 |
+
c.done ? t(f) : Promise.resolve(f).then(n, a)
|
| 1668 |
+
}
|
| 1669 |
+
var d, m = "CARBON_STATE",
|
| 1670 |
+
u = "CARBON_PRESETS",
|
| 1671 |
+
h = "CARBON_THEMES",
|
| 1672 |
+
g = function(e) {
|
| 1673 |
+
var t = i().assign(e);
|
| 1674 |
+
return function(e) {
|
| 1675 |
+
return t(localStorage, JSON.stringify(e))
|
| 1676 |
+
}
|
| 1677 |
+
},
|
| 1678 |
+
b = function(e) {
|
| 1679 |
+
return function(t) {
|
| 1680 |
+
return f()(t, (function(t, o) {
|
| 1681 |
+
return e.indexOf(o) > -1
|
| 1682 |
+
}))
|
| 1683 |
+
}
|
| 1684 |
+
},
|
| 1685 |
+
p = i().compose(g(m), b(["code", "backgroundImage", "backgroundImageSelection", "themes", "highlights", "fontUrl", "selectedLines", "name"])),
|
| 1686 |
+
w = i().compose(g(u), (d = b(["backgroundImageSelection"]), function(e) {
|
| 1687 |
+
return e.map(d)
|
| 1688 |
+
})),
|
| 1689 |
+
x = g(h),
|
| 1690 |
+
v = function(e) {
|
| 1691 |
+
try {
|
| 1692 |
+
return JSON.parse(e)
|
| 1693 |
+
} catch (t) {}
|
| 1694 |
+
},
|
| 1695 |
+
y = function(e) {
|
| 1696 |
+
return function(t) {
|
| 1697 |
+
return o = {}, n = e, a = !t[e], n in o ? Object.defineProperty(o, n, {
|
| 1698 |
+
value: a,
|
| 1699 |
+
enumerable: !0,
|
| 1700 |
+
configurable: !0,
|
| 1701 |
+
writable: !0
|
| 1702 |
+
}) : o[n] = a, o;
|
| 1703 |
+
var o, n, a
|
| 1704 |
+
}
|
| 1705 |
+
},
|
| 1706 |
+
k = function(e) {
|
| 1707 |
+
if ("string" === typeof e) return e.replace(/</g, "<").replace(/>/g, ">").replace(/\//g, "/")
|
| 1708 |
+
},
|
| 1709 |
+
F = function(e) {
|
| 1710 |
+
if ("string" === typeof e) return (0, l.U)(e).replace(///g, "/")
|
| 1711 |
+
},
|
| 1712 |
+
C = i().compose(v, k, i().get(m)),
|
| 1713 |
+
j = i().compose(v, i().get(u)),
|
| 1714 |
+
M = i().compose(v, i().get(h)),
|
| 1715 |
+
A = function() {
|
| 1716 |
+
return localStorage.removeItem(m)
|
| 1717 |
+
},
|
| 1718 |
+
R = function(e) {
|
| 1719 |
+
return new Promise((function(t) {
|
| 1720 |
+
var o = new FileReader;
|
| 1721 |
+
o.onload = function(e) {
|
| 1722 |
+
return t(e.target.result)
|
| 1723 |
+
}, o.readAsDataURL(e)
|
| 1724 |
+
}))
|
| 1725 |
+
},
|
| 1726 |
+
D = function(e) {
|
| 1727 |
+
return new Promise((function(t) {
|
| 1728 |
+
var o = new FileReader;
|
| 1729 |
+
o.onload = function(e) {
|
| 1730 |
+
return t(v(e.target.result))
|
| 1731 |
+
}, o.readAsText(e)
|
| 1732 |
+
}))
|
| 1733 |
+
},
|
| 1734 |
+
S = function() {
|
| 1735 |
+
var e = function(e) {
|
| 1736 |
+
return function() {
|
| 1737 |
+
var t = this,
|
| 1738 |
+
o = arguments;
|
| 1739 |
+
return new Promise((function(n, a) {
|
| 1740 |
+
var r = e.apply(t, o);
|
| 1741 |
+
|
| 1742 |
+
function i(e) {
|
| 1743 |
+
s(r, n, a, i, c, "next", e)
|
| 1744 |
+
}
|
| 1745 |
+
|
| 1746 |
+
function c(e) {
|
| 1747 |
+
s(r, n, a, i, c, "throw", e)
|
| 1748 |
+
}
|
| 1749 |
+
i(void 0)
|
| 1750 |
+
}))
|
| 1751 |
+
}
|
| 1752 |
+
}(a().mark((function e(t) {
|
| 1753 |
+
var n, r;
|
| 1754 |
+
return a().wrap((function(e) {
|
| 1755 |
+
for (;;) switch (e.prev = e.next) {
|
| 1756 |
+
case 0:
|
| 1757 |
+
return e.next = 2, o.e(54).then(o.t.bind(o, 73945, 23));
|
| 1758 |
+
case 2:
|
| 1759 |
+
return n = e.sent, e.next = 5, o.e(993).then(o.t.bind(o, 28182, 23));
|
| 1760 |
+
case 5:
|
| 1761 |
+
return r = e.sent, e.abrupt("return", n.format(t, {
|
| 1762 |
+
parser: "babel",
|
| 1763 |
+
plugins: [r],
|
| 1764 |
+
semi: !1,
|
| 1765 |
+
singleQuote: !0
|
| 1766 |
+
}));
|
| 1767 |
+
case 7:
|
| 1768 |
+
case "end":
|
| 1769 |
+
return e.stop()
|
| 1770 |
+
}
|
| 1771 |
+
}), e)
|
| 1772 |
+
})));
|
| 1773 |
+
return function(t) {
|
| 1774 |
+
return e.apply(this, arguments)
|
| 1775 |
+
}
|
| 1776 |
+
}(),
|
| 1777 |
+
P = function(e) {
|
| 1778 |
+
return "rgba(".concat(e.rgb.r, ",").concat(e.rgb.g, ",").concat(e.rgb.b, ",").concat(e.rgb.a, ")")
|
| 1779 |
+
},
|
| 1780 |
+
B =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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
| 3 |
+
[94], {
|
| 4 |
+
7533: function(e, t, o) {
|
| 5 |
+
o.d(t, {
|
| 6 |
+
ap: function() {
|
| 7 |
+
return x
|
| 8 |
+
},
|
| 9 |
+
tO: function() {
|
| 10 |
+
return h
|
| 11 |
+
},
|
| 12 |
+
rU: function() {
|
| 13 |
+
return p
|
| 14 |
+
},
|
| 15 |
+
$O: function() {
|
| 16 |
+
return F
|
| 17 |
+
},
|
| 18 |
+
NR: function() {
|
| 19 |
+
return k
|
| 20 |
+
},
|
| 21 |
+
wH: function() {
|
| 22 |
+
return w
|
| 23 |
+
},
|
| 24 |
+
ZP: function() {
|
| 25 |
+
return C
|
| 26 |
+
}
|
| 27 |
+
});
|
| 28 |
+
var n = o(85893),
|
| 29 |
+
a = o(67294),
|
| 30 |
+
r = o(9008),
|
| 31 |
+
i = o.n(r),
|
| 32 |
+
c = o(58299),
|
| 33 |
+
f = o(79547),
|
| 34 |
+
l = o.n(f);
|
| 35 |
+
|
| 36 |
+
function s() {
|
| 37 |
+
return (0, n.jsx)(l(), {
|
| 38 |
+
id: "36a08fc93f55e9da",
|
| 39 |
+
dynamic: [c.DM.BLACK, c.DM.BLACK, c.DM.DARK_GRAY, c.DM.SECONDARY, c.DM.PRIMARY],
|
| 40 |
+
children: 'html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-weight:inherit;font-family:inherit;font-style:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}html,body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;background:'.concat(c.DM.BLACK, ';color:white;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",sans-serif;font-weight:400;font-style:normal;text-transform:initial;letter-spacing:initial;min-height:704px}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}h1,h2,h3,h4,h5,h6{font-weight:500}a{color:inherit;text-decoration:none;cursor:pointer}*::-moz-selection{background:rgba(255,255,255,.99);color:').concat(c.DM.BLACK, "}*::selection{background:rgba(255,255,255,.99);color:").concat(c.DM.BLACK, "}kbd{display:inline-block;padding:3px 5px;font-size:9px;font-weight:700;line-height:1.2;color:").concat(c.DM.DARK_GRAY, ";vertical-align:middle;background-color:#fafbfc;border:1px solid#c6cbd1;border-bottom-color:#959da5;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0#959da5;-moz-box-shadow:inset 0 -1px 0#959da5;box-shadow:inset 0 -1px 0#959da5;white-space:nowrap}.link{color:#fff;text-decoration:none;padding-bottom:3px;background:-webkit-linear-gradient(left,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);background:-moz-linear-gradient(left,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);background:-o-linear-gradient(left,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);background:linear-gradient(to right,rgba(255,255,255,.7)0%,rgba(255,255,255,.7)100%);-webkit-background-size:1px 1px;-moz-background-size:1px 1px;-o-background-size:1px 1px;background-size:1px 1px;background-position:0 100%;background-repeat:repeat-x}.link:hover{color:").concat(c.DM.PRIMARY, ';background:none}.row{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.flex{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:100%}.capitalize{text-transform:capitalize}[role="button"]:focus{outline:none}')
|
| 41 |
+
})
|
| 42 |
+
}
|
| 43 |
+
var d = o(25026);
|
| 44 |
+
|
| 45 |
+
function m() {
|
| 46 |
+
return (0, n.jsx)(l(), {
|
| 47 |
+
id: "d7f31a896676ac6a",
|
| 48 |
+
children: ":root{--h0:4.5rem;--h1:3rem;--h2:2.25rem;--h3:1.5rem;--h4:1.125rem;--h5:0.75rem;--lh:calc(4 / 3);--m1:calc(2 / 3 * 1em);--m2:calc(4 / 3 * 1em);--m3:calc(8 / 3 * 1em);--m4:calc(16 / 3 * 1em);--x1:0.5rem;--x2:1rem;--x3:2rem;--x4:4rem;--x5:8rem;--x6:16rem}body{font-size:var(--h4);line-height:var(--lh)}h1,h2,h3{margin-top:var(--m1);margin-bottom:0}h4,h5,h6,p,dl,ol,ul,blockquote{margin-top:var(--m2);margin-bottom:var(--m2)}h1{font-size:var(--h2)}h2,h3{font-size:var(--h3)}h4{font-size:var(--h4)}h5,h6{font-size:var(--h5)}.mt0{margin-top:0}.mb0{margin-bottom:0}.mt1{margin-top:var(--x1)}.mb1{margin-bottom:var(--x1)}.mt2{margin-top:var(--x2)}.mb2{margin-bottom:var(--x2)}.mt3{margin-top:var(--x3)}.mb3{margin-bottom:var(--x3)}.mt4{margin-top:var(--x4)}.mb4{margin-bottom:var(--x4)}.mt5{margin-top:var(--x5)}.mb5{margin-bottom:var(--x5)}.mt6{margin-top:var(--x6)}.mb6{margin-bottom:var(--x6)}"
|
| 49 |
+
})
|
| 50 |
+
}
|
| 51 |
+
var u = "5.65.5",
|
| 52 |
+
h = ["shades-of-purple", "vscode", "a11y-dark"],
|
| 53 |
+
g = ["one-light", "one-dark", "verminal", "night-owl", "nord", "synthwave-84"],
|
| 54 |
+
b = c.yU.filter((function(e) {
|
| 55 |
+
return g.indexOf(e.id) < 0 && h.indexOf(e.id) < 0
|
| 56 |
+
}));
|
| 57 |
+
|
| 58 |
+
function p(e) {
|
| 59 |
+
var t = e.href;
|
| 60 |
+
return (0, n.jsxs)(i(), {
|
| 61 |
+
children: [(0, n.jsx)("link", {
|
| 62 |
+
rel: "preload",
|
| 63 |
+
as: "style",
|
| 64 |
+
href: t
|
| 65 |
+
}), (0, n.jsx)("link", {
|
| 66 |
+
rel: "stylesheet",
|
| 67 |
+
href: t
|
| 68 |
+
})]
|
| 69 |
+
})
|
| 70 |
+
}
|
| 71 |
+
var w = function(e) {
|
| 72 |
+
var t, o = e.theme;
|
| 73 |
+
if (g.indexOf(o) > -1) t = "/static/themes/".concat(o, ".min.css");
|
| 74 |
+
else {
|
| 75 |
+
var a = c.a5[o];
|
| 76 |
+
t = "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/theme/").concat(a && (a.link || a.id), ".min.css")
|
| 77 |
+
}
|
| 78 |
+
return (0, n.jsx)(p, {
|
| 79 |
+
href: t
|
| 80 |
+
})
|
| 81 |
+
},
|
| 82 |
+
x = function() {
|
| 83 |
+
return (0, n.jsx)(p, {
|
| 84 |
+
href: "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/codemirror.min.css")
|
| 85 |
+
})
|
| 86 |
+
},
|
| 87 |
+
v = "Carbon",
|
| 88 |
+
y = "Carbon is the easiest way to create and share beautiful images of your source code.",
|
| 89 |
+
k = a.memo((function() {
|
| 90 |
+
return (0, n.jsxs)(i(), {
|
| 91 |
+
children: [(0, n.jsx)("meta", {
|
| 92 |
+
charSet: "utf-8"
|
| 93 |
+
}), (0, n.jsx)("meta", {
|
| 94 |
+
httpEquiv: "X-UA-Compatible",
|
| 95 |
+
content: "IE=edge"
|
| 96 |
+
}), (0, n.jsx)("meta", {
|
| 97 |
+
name: "description",
|
| 98 |
+
content: y
|
| 99 |
+
}), (0, n.jsx)("meta", {
|
| 100 |
+
name: "application-name",
|
| 101 |
+
content: v
|
| 102 |
+
}), (0, n.jsx)("meta", {
|
| 103 |
+
name: "twitter:card",
|
| 104 |
+
content: "summary"
|
| 105 |
+
}), (0, n.jsx)("meta", {
|
| 106 |
+
name: "twitter:site",
|
| 107 |
+
content: "@carbon_app"
|
| 108 |
+
}), (0, n.jsx)("meta", {
|
| 109 |
+
name: "twitter:title",
|
| 110 |
+
content: v
|
| 111 |
+
}), (0, n.jsx)("meta", {
|
| 112 |
+
name: "twitter:description",
|
| 113 |
+
content: y
|
| 114 |
+
}), (0, n.jsx)("meta", {
|
| 115 |
+
name: "twitter:image",
|
| 116 |
+
content: "https://carbon.now.sh/static/brand/banner.png"
|
| 117 |
+
}), (0, n.jsx)("meta", {
|
| 118 |
+
name: "og:title",
|
| 119 |
+
content: v
|
| 120 |
+
}), (0, n.jsx)("meta", {
|
| 121 |
+
name: "og:description",
|
| 122 |
+
content: y
|
| 123 |
+
}), (0, n.jsx)("meta", {
|
| 124 |
+
name: "og:image",
|
| 125 |
+
content: "/static/brand/banner.png"
|
| 126 |
+
}), (0, n.jsx)("meta", {
|
| 127 |
+
name: "theme-color",
|
| 128 |
+
content: c.DM.BLACK
|
| 129 |
+
}), (0, n.jsx)("meta", {
|
| 130 |
+
name: "apple-mobile-web-app-status-bar-style",
|
| 131 |
+
content: c.DM.BLACK
|
| 132 |
+
}), (0, n.jsxs)("title", {
|
| 133 |
+
children: [v, " | Create and share beautiful images of your source code"]
|
| 134 |
+
}), (0, n.jsx)("link", {
|
| 135 |
+
rel: "shortcut icon",
|
| 136 |
+
href: "/favicon.ico"
|
| 137 |
+
}), (0, n.jsx)("link", {
|
| 138 |
+
rel: "manifest",
|
| 139 |
+
href: "/manifest.json"
|
| 140 |
+
}), (0, n.jsx)("link", {
|
| 141 |
+
rel: "apple-touch-icon",
|
| 142 |
+
href: "/static/brand/apple-touch-icon.png"
|
| 143 |
+
})]
|
| 144 |
+
})
|
| 145 |
+
})),
|
| 146 |
+
F = a.memo((function() {
|
| 147 |
+
return (0, n.jsxs)(a.Fragment, {
|
| 148 |
+
children: [(0, n.jsx)(p, {
|
| 149 |
+
href: "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/theme/seti.min.css")
|
| 150 |
+
}), (0, n.jsx)(x, {}), g.map((function(e) {
|
| 151 |
+
return (0, n.jsx)(p, {
|
| 152 |
+
href: "/static/themes/".concat(e, ".min.css")
|
| 153 |
+
}, e)
|
| 154 |
+
})), b.map((function(e) {
|
| 155 |
+
var t = "//cdnjs.cloudflare.com/ajax/libs/codemirror/".concat(u, "/theme/").concat(e && (e.link || e.id), ".min.css");
|
| 156 |
+
return (0, n.jsx)(p, {
|
| 157 |
+
href: t
|
| 158 |
+
}, e.id)
|
| 159 |
+
})), (0, n.jsx)(p, {
|
| 160 |
+
href: "/static/fonts/monolisa.css"
|
| 161 |
+
})]
|
| 162 |
+
})
|
| 163 |
+
})),
|
| 164 |
+
C = a.memo((function() {
|
| 165 |
+
return (0, n.jsxs)(a.Fragment, {
|
| 166 |
+
children: [(0, n.jsx)(k, {}), (0, n.jsx)(s, {}), (0, n.jsx)(d.Z, {}), (0, n.jsx)(m, {})]
|
| 167 |
+
})
|
| 168 |
+
}))
|
| 169 |
+
},
|
| 170 |
+
25026: function(e, t, o) {
|
| 171 |
+
o.d(t, {
|
| 172 |
+
Z: function() {
|
| 173 |
+
return i
|
| 174 |
+
}
|
| 175 |
+
});
|
| 176 |
+
var n = o(85893),
|
| 177 |
+
a = o(79547),
|
| 178 |
+
r = o.n(a);
|
| 179 |
+
o(67294);
|
| 180 |
+
|
| 181 |
+
function i() {
|
| 182 |
+
return (0, n.jsx)(r(), {
|
| 183 |
+
id: "6bd698647d4b7bc1",
|
| 184 |
+
children: '@font-face{font-family:"Monoid";font-display:swap;src:url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format(url("woff2")),url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format(url("woff"));src:url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format("woff2"),url("//cdn.jsdelivr.net/npm/@typopro/web-monoid@3.7.5/TypoPRO-Monoid-Regular.woff")format("woff")}@font-face{font-family:"Fantasque Sans Mono";font-display:swap;src:url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format(url("woff2")),url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format(url("woff"));src:url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format("woff2"),url("//cdn.jsdelivr.net/npm/@typopro/web-fantasque-sans-mono@3.7.5/TypoPRO-FantasqueSansMono-Regular.woff")format("woff")}@font-face{font-family:"Hack";font-display:swap;src:url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff2/hack-regular-webfont.woff2?v=2.020")format(url("woff2")),url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff/hack-regular-webfont.woff?v=2.020")format(url("woff"));src:url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff2/hack-regular-webfont.woff2?v=2.020")format("woff2"),url("//cdn.jsdelivr.net/font-hack/2.020/fonts/woff/hack-regular-webfont.woff?v=2.020")format("woff")}@font-face{font-family:"Fira Code";font-display:swap;src:url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff2/FiraCode-Regular.woff2")format(url("woff2")),url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff/FiraCode-Regular.woff")format(url("woff"));src:url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff2/FiraCode-Regular.woff2")format("woff2"),url("//cdn.jsdelivr.net/npm/firacode@latest/distr/woff/FiraCode-Regular.woff")format("woff")}@font-face{font-family:"JetBrains Mono";font-display:swap;src:url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2")format(url("woff2")),url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff")format(url("woff2"));src:url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2")format("woff2"),url("//cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff")format("woff2")}@font-face{font-family:"Cascadia Code";font-display:swap;font-style:normal;font-weight:400;src:local(url("Cascadia Code")),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff2")format(url("woff2")),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff")format(url("woff"));src:local("Cascadia Code"),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff2")format("woff2"),url("//cdn.jsdelivr.net/npm/@fontsource/cascadia-code@latest/files/cascadia-code-latin-ext-400-normal.woff")format("woff")}@font-face{font-family:"IBM Plex Mono";font-display:swap;font-weight:500;src:local(url("IBM Plex Mono Regular")),local(url("IBMPlexMono-Regular")),url(//cdn.jsdelivr.net/gh/ibm/plex@latest/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2)format(url("woff2"));src:local("IBM Plex Mono Regular"),local("IBMPlexMono-Regular"),url(//cdn.jsdelivr.net/gh/ibm/plex@latest/IBM-Plex-Mono/fonts/complete/woff2/IBMPlexMono-Regular.woff2)format("woff2")}@font-face{font-family:"Anonymous Pro";font-display:swap;src:local(url("Anonymous Pro Regular")),local(url("AnonymousPro-Regular")),url(//fonts.gstatic.com/s/anonymouspro/v11/Zhfjj_gat3waL4JSju74E3n3cbdKJftHIk87C9ihfO8.woff2)format(url("woff2"));src:local("Anonymous Pro Regular"),local("AnonymousPro-Regular"),url(//fonts.gstatic.com/s/anonymouspro/v11/Zhfjj_gat3waL4JSju74E3n3cbdKJftHIk87C9ihfO8.woff2)format("woff2")}@font-face{font-family:"Droid Sans Mono";font-display:swap;src:local(url("Droid Sans Mono Regular")),local(url("DroidSansMono-Regular")),url(//fonts.gstatic.com/s/droidsansmono/v9/ns-m2xQYezAtqh7ai59hJVlgUn8GogvcKKzoM9Dh-4E.woff2)format(url("woff2"));src:local("Droid Sans Mono Regular"),local("DroidSansMono-Regular"),url(//fonts.gstatic.com/s/droidsansmono/v9/ns-m2xQYezAtqh7ai59hJVlgUn8GogvcKKzoM9Dh-4E.woff2)format("woff2")}@font-face{font-family:"Inconsolata";font-display:swap;src:local(url("Inconsolata Regular")),local(url("Inconsolata-Regular")),url(//fonts.gstatic.com/s/inconsolata/v16/BjAYBlHtW3CJxDcjzrnZCIgp9Q8gbYrhqGlRav_IXfk.woff2)format(url("woff2"));src:local("Inconsolata Regular"),local("Inconsolata-Regular"),url(//fonts.gstatic.com/s/inconsolata/v16/BjAYBlHtW3CJxDcjzrnZCIgp9Q8gbYrhqGlRav_IXfk.woff2)format("woff2")}@font-face{font-family:"Source Code Pro";font-display:swap;src:local(url("Source Code Pro")),local(url("SourceCodePro-Regular")),url(//fonts.gstatic.com/s/sourcecodepro/v7/mrl8jkM18OlOQN8JLgasD5bPFduIYtoLzwST68uhz_Y.woff2)format(url("woff2"));src:local("Source Code Pro"),local("SourceCodePro-Regular"),url(//fonts.gstatic.com/s/sourcecodepro/v7/mrl8jkM18OlOQN8JLgasD5bPFduIYtoLzwST68uhz_Y.woff2)format("woff2")}@font-face{font-family:"Ubuntu Mono";font-display:swap;src:local(url("Ubuntu Mono")),local(url("UbuntuMono-Regular")),url(//fonts.gstatic.com/s/ubuntumono/v7/ViZhet7Ak-LRXZMXzuAfkYgp9Q8gbYrhqGlRav_IXfk.woff2)format(url("woff2"));src:local("Ubuntu Mono"),local("UbuntuMono-Regular"),url(//fonts.gstatic.com/s/ubuntumono/v7/ViZhet7Ak-LRXZMXzuAfkYgp9Q8gbYrhqGlRav_IXfk.woff2)format("woff2")}@font-face{font-family:"Space Mono";font-display:swap;src:local(url("Space Mono")),local(url("SpaceMono-Regular")),url(https://fonts.gstatic.com/s/spacemono/v2/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2)format(url("woff2"));src:local("Space Mono"),local("SpaceMono-Regular"),url(https://fonts.gstatic.com/s/spacemono/v2/i7dPIFZifjKcF5UAWdDRYEF8RQ.woff2)format("woff2")}'
|
| 185 |
+
})
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
7851: function(e, t, o) {
|
| 189 |
+
o.d(t, {
|
| 190 |
+
L: function() {
|
| 191 |
+
return p
|
| 192 |
+
}
|
| 193 |
+
});
|
| 194 |
+
var n = o(34051),
|
| 195 |
+
a = o.n(n),
|
| 196 |
+
r = o(9669),
|
| 197 |
+
i = o.n(r),
|
| 198 |
+
c = o(91296),
|
| 199 |
+
f = o.n(c),
|
| 200 |
+
l = o(57824),
|
| 201 |
+
s = o.n(l),
|
| 202 |
+
d = o(94959),
|
| 203 |
+
m = o(65018),
|
| 204 |
+
u = o(58299),
|
| 205 |
+
h = o(83454);
|
| 206 |
+
|
| 207 |
+
function g(e, t, o, n, a, r, i) {
|
| 208 |
+
try {
|
| 209 |
+
var c = e[r](i),
|
| 210 |
+
f = c.value
|
| 211 |
+
} catch (l) {
|
| 212 |
+
return void o(l)
|
| 213 |
+
}
|
| 214 |
+
c.done ? t(f) : Promise.resolve(f).then(n, a)
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
function b(e, t, o) {
|
| 218 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 219 |
+
value: o,
|
| 220 |
+
enumerable: !0,
|
| 221 |
+
configurable: !0,
|
| 222 |
+
writable: !0
|
| 223 |
+
}) : e[t] = o, e
|
| 224 |
+
}
|
| 225 |
+
var p = i().create({
|
| 226 |
+
baseURL: "".concat(h.env.NEXT_PUBLIC_API_URL || "", "/api"),
|
| 227 |
+
headers: {
|
| 228 |
+
Accept: "application/json"
|
| 229 |
+
}
|
| 230 |
+
});
|
| 231 |
+
|
| 232 |
+
function w(e) {
|
| 233 |
+
if (420 !== e.response.status) throw e;
|
| 234 |
+
alert("Oh no! Looks like too many people are trying to tweet right now and we've been rate limited. Try again soon or save and upload manually!")
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
function x(e) {
|
| 238 |
+
var t = (window.outerWidth - 575) / 2,
|
| 239 |
+
o = (window.outerHeight - 400) / 2,
|
| 240 |
+
n = "status=1,width=".concat(575, ",height=").concat(400, ",top=").concat(o, ",left=").concat(t);
|
| 241 |
+
window.open(e, "_blank", n)
|
| 242 |
+
}
|
| 243 |
+
var v = function(e) {
|
| 244 |
+
return p.get(e.url.replace("http://", "https://"), {
|
| 245 |
+
responseType: "blob"
|
| 246 |
+
}).then((function(e) {
|
| 247 |
+
return e.data
|
| 248 |
+
})).then(d.Ph).then((function(t) {
|
| 249 |
+
return Object.assign(e, {
|
| 250 |
+
dataURL: t
|
| 251 |
+
})
|
| 252 |
+
}))
|
| 253 |
+
},
|
| 254 |
+
y = {
|
| 255 |
+
download: function(e) {
|
| 256 |
+
return p.get("/unsplash/download/".concat(e)).then((function(e) {
|
| 257 |
+
return e.data
|
| 258 |
+
}))
|
| 259 |
+
},
|
| 260 |
+
random: function() {
|
| 261 |
+
return (e = a().mark((function e() {
|
| 262 |
+
var t;
|
| 263 |
+
return a().wrap((function(e) {
|
| 264 |
+
for (;;) switch (e.prev = e.next) {
|
| 265 |
+
case 0:
|
| 266 |
+
return e.next = 2, p.get("/unsplash/random");
|
| 267 |
+
case 2:
|
| 268 |
+
return t = e.sent, e.abrupt("return", Promise.all(t.data.map(v)));
|
| 269 |
+
case 4:
|
| 270 |
+
case "end":
|
| 271 |
+
return e.stop()
|
| 272 |
+
}
|
| 273 |
+
}), e)
|
| 274 |
+
})), function() {
|
| 275 |
+
var t = this,
|
| 276 |
+
o = arguments;
|
| 277 |
+
return new Promise((function(n, a) {
|
| 278 |
+
var r = e.apply(t, o);
|
| 279 |
+
|
| 280 |
+
function i(e) {
|
| 281 |
+
g(r, n, a, i, c, "next", e)
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
function c(e) {
|
| 285 |
+
g(r, n, a, i, c, "throw", e)
|
| 286 |
+
}
|
| 287 |
+
i(void 0)
|
| 288 |
+
}))
|
| 289 |
+
})();
|
| 290 |
+
var e
|
| 291 |
+
}
|
| 292 |
+
};
|
| 293 |
+
|
| 294 |
+
function k(e, t) {
|
| 295 |
+
var o = function(e) {
|
| 296 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 297 |
+
var o = null != arguments[t] ? arguments[t] : {},
|
| 298 |
+
n = Object.keys(o);
|
| 299 |
+
"function" === typeof Object.getOwnPropertySymbols && (n = n.concat(Object.getOwnPropertySymbols(o).filter((function(e) {
|
| 300 |
+
return Object.getOwnPropertyDescriptor(o, e).enumerable
|
| 301 |
+
})))), n.forEach((function(t) {
|
| 302 |
+
b(e, t, o[t])
|
| 303 |
+
}))
|
| 304 |
+
}
|
| 305 |
+
return e
|
| 306 |
+
}({}, t, {
|
| 307 |
+
code: null != t.code ? t.code : u.Zm
|
| 308 |
+
});
|
| 309 |
+
return e ? p.patch("/snippets/".concat(e), o).then((function(e) {
|
| 310 |
+
return e.data
|
| 311 |
+
})).catch((function(e) {
|
| 312 |
+
return console.error(e), null
|
| 313 |
+
})) : p.post("/snippets", o).then((function(e) {
|
| 314 |
+
return e.data
|
| 315 |
+
})).catch((function(e) {
|
| 316 |
+
return console.error(e), null
|
| 317 |
+
}))
|
| 318 |
+
}
|
| 319 |
+
var F = f()((function(e) {
|
| 320 |
+
return k(null, e)
|
| 321 |
+
}), s()("5s"), {
|
| 322 |
+
leading: !0,
|
| 323 |
+
trailing: !1
|
| 324 |
+
}),
|
| 325 |
+
C = {
|
| 326 |
+
snippet: {
|
| 327 |
+
get: function() {
|
| 328 |
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
|
| 329 |
+
t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
|
| 330 |
+
o = t.host,
|
| 331 |
+
n = t.filename;
|
| 332 |
+
return p.get("/snippets/".concat(e), {
|
| 333 |
+
baseURL: o ? "https://".concat(o, "/api") : void 0,
|
| 334 |
+
params: {
|
| 335 |
+
filename: n
|
| 336 |
+
}
|
| 337 |
+
}).then((function(e) {
|
| 338 |
+
return e.data
|
| 339 |
+
})).catch((function(e) {
|
| 340 |
+
return console.error(e), null
|
| 341 |
+
}))
|
| 342 |
+
},
|
| 343 |
+
list: function(e) {
|
| 344 |
+
return m.ZP.auth().currentUser.getIdToken().then((function(t) {
|
| 345 |
+
return p.get("/snippets", {
|
| 346 |
+
params: {
|
| 347 |
+
page: e
|
| 348 |
+
},
|
| 349 |
+
headers: {
|
| 350 |
+
authorization: t
|
| 351 |
+
}
|
| 352 |
+
}).then((function(e) {
|
| 353 |
+
return e.data
|
| 354 |
+
})).catch((function(e) {
|
| 355 |
+
throw console.error(e), e
|
| 356 |
+
}))
|
| 357 |
+
}))
|
| 358 |
+
},
|
| 359 |
+
update: f()(k, s()("1s"), {
|
| 360 |
+
leading: !0,
|
| 361 |
+
trailing: !0
|
| 362 |
+
}),
|
| 363 |
+
create: F,
|
| 364 |
+
delete: function(e) {
|
| 365 |
+
return t = e, p.delete("/snippets/".concat(t)).then((function(e) {
|
| 366 |
+
return e.data
|
| 367 |
+
})).catch((function(e) {
|
| 368 |
+
return console.error(e), null
|
| 369 |
+
}));
|
| 370 |
+
var t
|
| 371 |
+
}
|
| 372 |
+
},
|
| 373 |
+
tweet: f()((function(e, t) {
|
| 374 |
+
var o = t.split(",")[1];
|
| 375 |
+
return p.post("/twitter", {
|
| 376 |
+
imageData: o,
|
| 377 |
+
altText: e
|
| 378 |
+
}).then((function(e) {
|
| 379 |
+
return e.data.url
|
| 380 |
+
})).then((function(e) {
|
| 381 |
+
return encodeURIComponent("Created with @carbon_app ".concat(e))
|
| 382 |
+
})).then((function(e) {
|
| 383 |
+
return "https://twitter.com/intent/tweet?text=".concat(e)
|
| 384 |
+
})).then(x).catch(w)
|
| 385 |
+
}), s()("5s"), {
|
| 386 |
+
leading: !0,
|
| 387 |
+
trailing: !1
|
| 388 |
+
}),
|
| 389 |
+
unsplash: y,
|
| 390 |
+
imgur: function(e, t) {
|
| 391 |
+
var o = e.split(",")[1];
|
| 392 |
+
return i().post("https://api.imgur.com/3/image", {
|
| 393 |
+
image: o,
|
| 394 |
+
title: t
|
| 395 |
+
}, {
|
| 396 |
+
headers: {
|
| 397 |
+
Authorization: "Client-ID ".concat("a90f408b863a47e")
|
| 398 |
+
}
|
| 399 |
+
}).then((function(e) {
|
| 400 |
+
return e.data.data.link
|
| 401 |
+
})).then((function(e) {
|
| 402 |
+
return window.open(e, "_blank")
|
| 403 |
+
})).catch((function(e) {
|
| 404 |
+
return console.error(e), null
|
| 405 |
+
}))
|
| 406 |
+
},
|
| 407 |
+
downloadThumbnailImage: v
|
| 408 |
+
};
|
| 409 |
+
t.Z = C
|
| 410 |
+
},
|
| 411 |
+
65018: function(e, t, o) {
|
| 412 |
+
o.d(t, {
|
| 413 |
+
kS: function() {
|
| 414 |
+
return a
|
| 415 |
+
},
|
| 416 |
+
zj: function() {
|
| 417 |
+
return r
|
| 418 |
+
}
|
| 419 |
+
});
|
| 420 |
+
var n = o(15503);
|
| 421 |
+
o(16690);
|
| 422 |
+
|
| 423 |
+
function a() {
|
| 424 |
+
return n.Z.auth().signOut().catch(console.error)
|
| 425 |
+
}
|
| 426 |
+
|
| 427 |
+
function r() {
|
| 428 |
+
var e = new n.Z.auth.GithubAuthProvider;
|
| 429 |
+
return e.setCustomParameters({
|
| 430 |
+
allow_signup: "true"
|
| 431 |
+
}),
|
| 432 |
+
function(e) {
|
| 433 |
+
return n.Z.auth().setPersistence(n.Z.auth.Auth.Persistence.LOCAL).then((function() {
|
| 434 |
+
return n.Z.auth().signInWithPopup(e)
|
| 435 |
+
})).catch(console.error)
|
| 436 |
+
}(e)
|
| 437 |
+
}
|
| 438 |
+
0 === n.Z.apps.length && n.Z.initializeApp({
|
| 439 |
+
apiKey: "AIzaSyCxJVODEZTX_dJ5-T3qtMxWBhGYY1Quwys",
|
| 440 |
+
authDomain: "".concat("carbon-147d2", ".firebaseapp.com"),
|
| 441 |
+
databaseURL: "https://".concat("carbon-147d2", ".firebaseio.com"),
|
| 442 |
+
projectId: "carbon-147d2",
|
| 443 |
+
storageBucket: "".concat("carbon-147d2", ".appspot.com"),
|
| 444 |
+
messagingSenderId: "1027516657505",
|
| 445 |
+
appId: "1:1027516657505:web:a41a5ace3a82e885"
|
| 446 |
+
}), t.ZP = n.Z.apps.length ? n.Z : null
|
| 447 |
+
},
|
| 448 |
+
58299: function(e, t, o) {
|
| 449 |
+
o.d(t, {
|
| 450 |
+
$g: function() {
|
| 451 |
+
return u
|
| 452 |
+
},
|
| 453 |
+
B1: function() {
|
| 454 |
+
return l
|
| 455 |
+
},
|
| 456 |
+
DM: function() {
|
| 457 |
+
return k
|
| 458 |
+
},
|
| 459 |
+
Dl: function() {
|
| 460 |
+
return g
|
| 461 |
+
},
|
| 462 |
+
H8: function() {
|
| 463 |
+
return j
|
| 464 |
+
},
|
| 465 |
+
Hq: function() {
|
| 466 |
+
return y
|
| 467 |
+
},
|
| 468 |
+
UL: function() {
|
| 469 |
+
return h
|
| 470 |
+
},
|
| 471 |
+
Z: function() {
|
| 472 |
+
return C
|
| 473 |
+
},
|
| 474 |
+
Zm: function() {
|
| 475 |
+
return F
|
| 476 |
+
},
|
| 477 |
+
a2: function() {
|
| 478 |
+
return m
|
| 479 |
+
},
|
| 480 |
+
a5: function() {
|
| 481 |
+
return d
|
| 482 |
+
},
|
| 483 |
+
aP: function() {
|
| 484 |
+
return p
|
| 485 |
+
},
|
| 486 |
+
g5: function() {
|
| 487 |
+
return f
|
| 488 |
+
},
|
| 489 |
+
k$: function() {
|
| 490 |
+
return w
|
| 491 |
+
},
|
| 492 |
+
mF: function() {
|
| 493 |
+
return b
|
| 494 |
+
},
|
| 495 |
+
pP: function() {
|
| 496 |
+
return M
|
| 497 |
+
},
|
| 498 |
+
qh: function() {
|
| 499 |
+
return v
|
| 500 |
+
},
|
| 501 |
+
t0: function() {
|
| 502 |
+
return x
|
| 503 |
+
},
|
| 504 |
+
vt: function() {
|
| 505 |
+
return c
|
| 506 |
+
},
|
| 507 |
+
yU: function() {
|
| 508 |
+
return s
|
| 509 |
+
}
|
| 510 |
+
});
|
| 511 |
+
var n = o(3616),
|
| 512 |
+
a = o.n(n);
|
| 513 |
+
|
| 514 |
+
function r(e, t, o) {
|
| 515 |
+
return t in e ? Object.defineProperty(e, t, {
|
| 516 |
+
value: o,
|
| 517 |
+
enumerable: !0,
|
| 518 |
+
configurable: !0,
|
| 519 |
+
writable: !0
|
| 520 |
+
}) : e[t] = o, e
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
function i(e) {
|
| 524 |
+
for (var t = 1; t < arguments.length; t++) {
|
| 525 |
+
var o = null != arguments[t] ? arguments[t] : {},
|
| 526 |
+
n = Object.keys(o);
|
| 527 |
+
"function" === typeof Object.getOwnPropertySymbols && (n = n.concat(Object.getOwnPropertySymbols(o).filter((function(e) {
|
| 528 |
+
return Object.getOwnPropertyDescriptor(o, e).enumerable
|
| 529 |
+
})))), n.forEach((function(t) {
|
| 530 |
+
r(e, t, o[t])
|
| 531 |
+
}))
|
| 532 |
+
}
|
| 533 |
+
return e
|
| 534 |
+
}
|
| 535 |
+
var c = "G-27CQ8LVS7D",
|
| 536 |
+
f = [{
|
| 537 |
+
id: "MonoLisa",
|
| 538 |
+
name: "MonoLisa",
|
| 539 |
+
link: "https://a.paddle.com/v2/click/105822/114551?link=2447"
|
| 540 |
+
}, {
|
| 541 |
+
id: "Anonymous Pro",
|
| 542 |
+
name: "Anonymous Pro"
|
| 543 |
+
}, {
|
| 544 |
+
id: "Cascadia Code",
|
| 545 |
+
name: "Cascadia Code"
|
| 546 |
+
}, {
|
| 547 |
+
id: "Droid Sans Mono",
|
| 548 |
+
name: "Droid Sans Mono"
|
| 549 |
+
}, {
|
| 550 |
+
id: "Fantasque Sans Mono",
|
| 551 |
+
name: "Fantasque Sans Mono"
|
| 552 |
+
}, {
|
| 553 |
+
id: "Fira Code",
|
| 554 |
+
name: "Fira Code"
|
| 555 |
+
}, {
|
| 556 |
+
id: "Hack",
|
| 557 |
+
name: "Hack"
|
| 558 |
+
}, {
|
| 559 |
+
id: "IBM Plex Mono",
|
| 560 |
+
name: "IBM Plex Mono"
|
| 561 |
+
}, {
|
| 562 |
+
id: "Inconsolata",
|
| 563 |
+
name: "Inconsolata"
|
| 564 |
+
}, {
|
| 565 |
+
id: "JetBrains Mono",
|
| 566 |
+
name: "JetBrains Mono"
|
| 567 |
+
}, {
|
| 568 |
+
id: "Monoid",
|
| 569 |
+
name: "Monoid"
|
| 570 |
+
}, {
|
| 571 |
+
id: "Source Code Pro",
|
| 572 |
+
name: "Source Code Pro"
|
| 573 |
+
}, {
|
| 574 |
+
id: "Space Mono",
|
| 575 |
+
name: "Space Mono"
|
| 576 |
+
}, {
|
| 577 |
+
id: "Ubuntu Mono",
|
| 578 |
+
name: "Ubuntu Mono"
|
| 579 |
+
}],
|
| 580 |
+
l = ["background", "text", "variable", "attribute", "definition", "keyword", "operator", "property", "number", "string", "comment", "meta"],
|
| 581 |
+
s = [{
|
| 582 |
+
id: "3024-night",
|
| 583 |
+
name: "3024 Night",
|
| 584 |
+
highlights: {
|
| 585 |
+
background: "#090300",
|
| 586 |
+
text: "#d6d5d4",
|
| 587 |
+
variable: "#01a252",
|
| 588 |
+
variable2: "#01a0e4",
|
| 589 |
+
attribute: "#00c",
|
| 590 |
+
definition: "#e8bbd0",
|
| 591 |
+
keyword: "#db2d20",
|
| 592 |
+
operator: "#fff",
|
| 593 |
+
property: "#01a252",
|
| 594 |
+
number: "#a16a94",
|
| 595 |
+
string: "#fded02",
|
| 596 |
+
comment: "#cdab53",
|
| 597 |
+
meta: "#555"
|
| 598 |
+
}
|
| 599 |
+
}, {
|
| 600 |
+
id: "a11y-dark",
|
| 601 |
+
name: "A11y Dark",
|
| 602 |
+
highlights: {
|
| 603 |
+
background: "#2b2b2b",
|
| 604 |
+
text: "#f8f8f2",
|
| 605 |
+
variable: "#00e0e0",
|
| 606 |
+
attribute: "#abe338",
|
| 607 |
+
definition: "#ffd700",
|
| 608 |
+
keyword: "#ffa07a",
|
| 609 |
+
operator: "#f8f8f2",
|
| 610 |
+
property: "#abe338",
|
| 611 |
+
number: "#dcc6e0",
|
| 612 |
+
string: "#ffd700",
|
| 613 |
+
comment: "#d4d0ab",
|
| 614 |
+
meta: "#d4d0ab",
|
| 615 |
+
tag: "#dcc6e0"
|
| 616 |
+
}
|
| 617 |
+
}, {
|
| 618 |
+
id: "blackboard",
|
| 619 |
+
name: "Blackboard",
|
| 620 |
+
highlights: {
|
| 621 |
+
background: "#0C1021",
|
| 622 |
+
text: "#F8F8F8",
|
| 623 |
+
variable: "#FF6400",
|
| 624 |
+
attribute: "#8DA6CE",
|
| 625 |
+
definition: "#8DA6CE",
|
| 626 |
+
keyword: "#FBDE2D",
|
| 627 |
+
operator: "#fff",
|
| 628 |
+
property: "#fff",
|
| 629 |
+
number: "#D8FA3C",
|
| 630 |
+
string: "#61CE3C",
|
| 631 |
+
comment: "#AEAEAE",
|
| 632 |
+
meta: "#D8FA3C",
|
| 633 |
+
tag: "#8DA6CE"
|
| 634 |
+
}
|
| 635 |
+
}, {
|
| 636 |
+
id: "base16-dark",
|
| 637 |
+
name: "Base 16 (Dark)",
|
| 638 |
+
highlights: {
|
| 639 |
+
background: "#151515",
|
| 640 |
+
text: "#e0e0e0",
|
| 641 |
+
variable: "#90a959",
|
| 642 |
+
variable2: "#6a9fb5",
|
| 643 |
+
attribute: "#00c",
|
| 644 |
+
definition: "#d28445",
|
| 645 |
+
keyword: "#ac4142",
|
| 646 |
+
operator: "#fff",
|
| 647 |
+
property: "#90a959",
|
| 648 |
+
number: "#aa759f",
|
| 649 |
+
string: "#f4bf75",
|
| 650 |
+
comment: "#8f5536",
|
| 651 |
+
meta: "#555",
|
| 652 |
+
tag: "#ac4142"
|
| 653 |
+
}
|
| 654 |
+
}, {
|
| 655 |
+
id: "base16-light",
|
| 656 |
+
name: "Base 16 (Light)",
|
| 657 |
+
light: !0,
|
| 658 |
+
highlights: {
|
| 659 |
+
background: "#f5f5f5",
|
| 660 |
+
text: "#202020",
|
| 661 |
+
variable: "#90a959",
|
| 662 |
+
variable2: "#6a9fb5",
|
| 663 |
+
attribute: "#90a959",
|
| 664 |
+
definition: "#d28445",
|
| 665 |
+
keyword: "#ac4142",
|
| 666 |
+
operator: "#000",
|
| 667 |
+
property: "#90a959",
|
| 668 |
+
number: "#aa759f",
|
| 669 |
+
string: "#f4bf75",
|
| 670 |
+
comment: "#8f5536",
|
| 671 |
+
meta: "#555",
|
| 672 |
+
tag: "#ac4142"
|
| 673 |
+
}
|
| 674 |
+
}, {
|
| 675 |
+
id: "cobalt",
|
| 676 |
+
name: "Cobalt",
|
| 677 |
+
highlights: {
|
| 678 |
+
background: "#002240",
|
| 679 |
+
text: "#fff",
|
| 680 |
+
variable: "#9effff",
|
| 681 |
+
variable3: "white",
|
| 682 |
+
attribute: "#ff80e1",
|
| 683 |
+
definition: "#fff",
|
| 684 |
+
keyword: "#ffee80",
|
| 685 |
+
operator: "#fff",
|
| 686 |
+
property: "#fff",
|
| 687 |
+
number: "#ff80e1",
|
| 688 |
+
string: "#3ad900",
|
| 689 |
+
comment: "#08f",
|
| 690 |
+
meta: "#ff9d00",
|
| 691 |
+
tag: "#9effff"
|
| 692 |
+
}
|
| 693 |
+
}, {
|
| 694 |
+
id: "dracula-pro",
|
| 695 |
+
name: "Dracula Pro",
|
| 696 |
+
referral: "https://gumroad.com/a/396719219",
|
| 697 |
+
highlights: {
|
| 698 |
+
background: "#22212C",
|
| 699 |
+
text: "#F8F8F2",
|
| 700 |
+
variable: "#8AFF80",
|
| 701 |
+
variable2: "white",
|
| 702 |
+
variable3: "#FFCA80",
|
| 703 |
+
attribute: "#8AFF80",
|
| 704 |
+
definition: "#8AFF80",
|
| 705 |
+
keyword: "#FF80BF",
|
| 706 |
+
operator: "#FF80BF",
|
| 707 |
+
property: "#80FFEA",
|
| 708 |
+
number: "#9580FF",
|
| 709 |
+
string: "#FFFF80",
|
| 710 |
+
comment: "#7970A9",
|
| 711 |
+
meta: "#F8F8F2",
|
| 712 |
+
tag: "#FF80BF"
|
| 713 |
+
}
|
| 714 |
+
}, {
|
| 715 |
+
id: "duotone-dark",
|
| 716 |
+
name: "Duotone",
|
| 717 |
+
highlights: {
|
| 718 |
+
background: "#2a2734",
|
| 719 |
+
text: "#6c6783",
|
| 720 |
+
variable: "#ffcc99",
|
| 721 |
+
variable2: "#7a63ee",
|
| 722 |
+
variable3: "#7a63ee",
|
| 723 |
+
attribute: "#ffcc99",
|
| 724 |
+
definition: "#eeebff",
|
| 725 |
+
keyword: "#ffcc99",
|
| 726 |
+
operator: "#ffad5c",
|
| 727 |
+
property: "#9a86fd",
|
| 728 |
+
number: "#ffcc99",
|
| 729 |
+
string: "#ffb870",
|
| 730 |
+
comment: "#6c6783",
|
| 731 |
+
meta: "#555",
|
| 732 |
+
tag: "#eeebff"
|
| 733 |
+
}
|
| 734 |
+
}, {
|
| 735 |
+
id: "hopscotch",
|
| 736 |
+
name: "Hopscotch",
|
| 737 |
+
highlights: {
|
| 738 |
+
background: "#322931",
|
| 739 |
+
text: "#d5d3d5",
|
| 740 |
+
variable: "#8fc13e",
|
| 741 |
+
variable2: "#1290bf",
|
| 742 |
+
attribute: "#8fc13e",
|
| 743 |
+
definition: "#fd8b19",
|
| 744 |
+
keyword: "#dd464c",
|
| 745 |
+
operator: "#fff",
|
| 746 |
+
property: "#8fc13e",
|
| 747 |
+
number: "#c85e7c",
|
| 748 |
+
string: "#fdcc59",
|
| 749 |
+
comment: "#b33508",
|
| 750 |
+
meta: "#555",
|
| 751 |
+
tag: "#dd464c"
|
| 752 |
+
}
|
| 753 |
+
}, {
|
| 754 |
+
id: "lucario",
|
| 755 |
+
name: "Lucario",
|
| 756 |
+
highlights: {
|
| 757 |
+
background: "#2b3e50",
|
| 758 |
+
text: "#f8f8f2",
|
| 759 |
+
variable: "#f8f8f2",
|
| 760 |
+
variable3: "#ffb86c",
|
| 761 |
+
attribute: "#66D9EF",
|
| 762 |
+
definition: "#72C05D",
|
| 763 |
+
keyword: "#ff6541",
|
| 764 |
+
operator: "#66D9EF",
|
| 765 |
+
property: "#f8f8f2",
|
| 766 |
+
number: "#ca94ff",
|
| 767 |
+
string: "#E6DB74",
|
| 768 |
+
comment: "#5c98cd",
|
| 769 |
+
meta: "#f8f8f2",
|
| 770 |
+
tag: "#ff6541"
|
| 771 |
+
}
|
| 772 |
+
}, {
|
| 773 |
+
id: "material",
|
| 774 |
+
name: "Material",
|
| 775 |
+
highlights: {
|
| 776 |
+
background: "#263238",
|
| 777 |
+
text: "rgba(233, 237, 237, 1)",
|
| 778 |
+
variable: "#82B1FF",
|
| 779 |
+
variable2: "#80CBC4",
|
| 780 |
+
variable3: "#DECB6B",
|
| 781 |
+
attribute: "#FFCB6B",
|
| 782 |
+
definition: "rgba(233, 237, 237, 1)",
|
| 783 |
+
keyword: "rgba(199, 146, 234, 1)",
|
| 784 |
+
operator: "rgba(233, 237, 237, 1)",
|
| 785 |
+
property: "#80CBAE",
|
| 786 |
+
number: "#F77669",
|
| 787 |
+
string: "#C3E88D",
|
| 788 |
+
comment: "#546E7A",
|
| 789 |
+
meta: "#80CBC4",
|
| 790 |
+
tag: "rgba(255, 83, 112, 1)"
|
| 791 |
+
}
|
| 792 |
+
}, {
|
| 793 |
+
id: "monokai",
|
| 794 |
+
name: "Monokai",
|
| 795 |
+
highlights: {
|
| 796 |
+
background: "#272822",
|
| 797 |
+
text: "#f8f8f2",
|
| 798 |
+
variable: "#f8f8f2",
|
| 799 |
+
variable2: "#9effff",
|
| 800 |
+
variable3: "#66d9ef",
|
| 801 |
+
attribute: "#a6e22e",
|
| 802 |
+
definition: "#fd971f",
|
| 803 |
+
keyword: "#f92672",
|
| 804 |
+
operator: "#fff",
|
| 805 |
+
property: "#a6e22e",
|
| 806 |
+
number: "#ae81ff",
|
| 807 |
+
string: "#e6db74",
|
| 808 |
+
comment: "#75715e",
|
| 809 |
+
meta: "#555",
|
| 810 |
+
tag: "#bc6283"
|
| 811 |
+
}
|
| 812 |
+
}, {
|
| 813 |
+
id: "night-owl",
|
| 814 |
+
name: "Night Owl",
|
| 815 |
+
highlights: {
|
| 816 |
+
background: "#011627",
|
| 817 |
+
text: "#abb2bf",
|
| 818 |
+
variable: "#82AAFF",
|
| 819 |
+
attribute: "#F78C6C",
|
| 820 |
+
definition: "#82AAFF",
|
| 821 |
+
keyword: "#c792ea",
|
| 822 |
+
operator: "#c792ea",
|
| 823 |
+
property: "#fff",
|
| 824 |
+
number: "#F78C6C",
|
| 825 |
+
string: "#ecc48d",
|
| 826 |
+
comment: "#5c6370",
|
| 827 |
+
meta: "#7fdbca",
|
| 828 |
+
tag: "#7fdbca"
|
| 829 |
+
}
|
| 830 |
+
}, {
|
| 831 |
+
id: "nord",
|
| 832 |
+
name: "Nord",
|
| 833 |
+
highlights: {
|
| 834 |
+
background: "#2e3440",
|
| 835 |
+
text: "#d8dee9",
|
| 836 |
+
variable: "#88C0D0",
|
| 837 |
+
variable3: "#d8dee9",
|
| 838 |
+
attribute: "#8FBCBB",
|
| 839 |
+
definition: "#D8DEE9",
|
| 840 |
+
keyword: "#81A1C1",
|
| 841 |
+
operator: "#81A1C1",
|
| 842 |
+
property: "#D8DEE9",
|
| 843 |
+
number: "#B48EAD",
|
| 844 |
+
string: "#A3BE8C",
|
| 845 |
+
comment: "#4C566A",
|
| 846 |
+
meta: "#81A1C1",
|
| 847 |
+
tag: "#81A1C1"
|
| 848 |
+
}
|
| 849 |
+
}, {
|
| 850 |
+
id: "oceanic-next",
|
| 851 |
+
name: "Oceanic Next",
|
| 852 |
+
highlights: {
|
| 853 |
+
background: "#304148",
|
| 854 |
+
text: "#f8f8f2",
|
| 855 |
+
variable: "#f8f8f2",
|
| 856 |
+
attribute: "#C594C5",
|
| 857 |
+
definition: "#6699CC",
|
| 858 |
+
keyword: "#C594C5",
|
| 859 |
+
operator: "#fff",
|
| 860 |
+
property: "#99C794",
|
| 861 |
+
number: "#F99157",
|
| 862 |
+
string: "#99C794",
|
| 863 |
+
comment: "#65737E",
|
| 864 |
+
meta: "#555",
|
| 865 |
+
tag: "#C594C5"
|
| 866 |
+
}
|
| 867 |
+
}, {
|
| 868 |
+
id: "one-light",
|
| 869 |
+
name: "One Light",
|
| 870 |
+
light: !0,
|
| 871 |
+
highlights: {
|
| 872 |
+
background: "#fafafa",
|
| 873 |
+
text: "#383a42",
|
| 874 |
+
variable: "#e06c75",
|
| 875 |
+
variable2: "#e45649",
|
| 876 |
+
attribute: "#d19a66",
|
| 877 |
+
definition: "#4078f2",
|
| 878 |
+
keyword: "#a626a4",
|
| 879 |
+
operator: "#0184bc",
|
| 880 |
+
property: "#4078f2",
|
| 881 |
+
number: "#986801",
|
| 882 |
+
string: "#50a14f",
|
| 883 |
+
comment: "#a0a1a7",
|
| 884 |
+
meta: "#383a42",
|
| 885 |
+
tag: "#e45649"
|
| 886 |
+
}
|
| 887 |
+
}, {
|
| 888 |
+
id: "one-dark",
|
| 889 |
+
name: "One Dark",
|
| 890 |
+
highlights: {
|
| 891 |
+
background: "#282c34",
|
| 892 |
+
text: "#abb2bf",
|
| 893 |
+
variable: "#e06c75",
|
| 894 |
+
attribute: "#d19a66",
|
| 895 |
+
definition: "#e5c07b",
|
| 896 |
+
keyword: "#c678dd",
|
| 897 |
+
operator: "#56b6c2",
|
| 898 |
+
property: "#56b6c2",
|
| 899 |
+
number: "#d19a66",
|
| 900 |
+
string: "#98c379",
|
| 901 |
+
comment: "#5c6370",
|
| 902 |
+
meta: "#abb2bf",
|
| 903 |
+
tag: "#e06c75"
|
| 904 |
+
}
|
| 905 |
+
}, {
|
| 906 |
+
id: "panda-syntax",
|
| 907 |
+
name: "Panda",
|
| 908 |
+
highlights: {
|
| 909 |
+
background: "#292A2B",
|
| 910 |
+
text: "#E6E6E6",
|
| 911 |
+
variable: "#ffb86c",
|
| 912 |
+
variable2: "#ff9ac1",
|
| 913 |
+
variable3: "#ff9ac1",
|
| 914 |
+
attribute: "#ffb86c",
|
| 915 |
+
definition: "#e6e6e6",
|
| 916 |
+
keyword: "#FF75B5",
|
| 917 |
+
operator: "#f3f3f3",
|
| 918 |
+
property: "#f3f3f3",
|
| 919 |
+
number: "#FFB86C",
|
| 920 |
+
string: "#19F9D8",
|
| 921 |
+
comment: "#676B79",
|
| 922 |
+
meta: "#b084eb",
|
| 923 |
+
tag: "#ff2c6d"
|
| 924 |
+
}
|
| 925 |
+
}, {
|
| 926 |
+
id: "paraiso-dark",
|
| 927 |
+
name: "Paraiso",
|
| 928 |
+
highlights: {
|
| 929 |
+
background: "#2f1e2e",
|
| 930 |
+
text: "#b9b6b0",
|
| 931 |
+
variable: "#48b685",
|
| 932 |
+
variable2: "#06b6ef",
|
| 933 |
+
attribute: "#48b685",
|
| 934 |
+
definition: "#f99b15",
|
| 935 |
+
keyword: "#ef6155;",
|
| 936 |
+
operator: "#fff",
|
| 937 |
+
property: "#48b685",
|
| 938 |
+
number: "#815ba4",
|
| 939 |
+
string: "#fec418",
|
| 940 |
+
comment: "#e96ba8",
|
| 941 |
+
meta: "#555",
|
| 942 |
+
tag: "#ef6155"
|
| 943 |
+
}
|
| 944 |
+
}, {
|
| 945 |
+
id: "seti",
|
| 946 |
+
name: "Seti",
|
| 947 |
+
highlights: {
|
| 948 |
+
background: "#151718",
|
| 949 |
+
text: "#CFD2D1",
|
| 950 |
+
variable: "#55b5db",
|
| 951 |
+
variable2: "#a074c4",
|
| 952 |
+
variable3: "#9fca56",
|
| 953 |
+
attribute: "#9fca56",
|
| 954 |
+
definition: "#55b5db",
|
| 955 |
+
keyword: "#e6cd69",
|
| 956 |
+
operator: "#9fca56",
|
| 957 |
+
property: "#a074c4",
|
| 958 |
+
number: "#cd3f45",
|
| 959 |
+
string: "#55b5db",
|
| 960 |
+
comment: "#41535b",
|
| 961 |
+
meta: "#55b5db",
|
| 962 |
+
tag: "#55b5db"
|
| 963 |
+
}
|
| 964 |
+
}, {
|
| 965 |
+
id: "shades-of-purple",
|
| 966 |
+
name: "Shades of Purple ",
|
| 967 |
+
highlights: {
|
| 968 |
+
background: "#2D2B55",
|
| 969 |
+
text: "#FFFFFF",
|
| 970 |
+
variable: "#9EFFFF",
|
| 971 |
+
attribute: "#9EFFFF",
|
| 972 |
+
definition: "#9EFFFF",
|
| 973 |
+
keyword: "#FF9D00",
|
| 974 |
+
operator: "#FF9D00",
|
| 975 |
+
property: "#FAD000",
|
| 976 |
+
number: "#FF628C",
|
| 977 |
+
string: "#A5FF90",
|
| 978 |
+
comment: "#B362FF",
|
| 979 |
+
meta: "#FF9D00",
|
| 980 |
+
tag: "#9EFFFF"
|
| 981 |
+
}
|
| 982 |
+
}, {
|
| 983 |
+
id: "solarized dark",
|
| 984 |
+
name: "Solarized (Dark)",
|
| 985 |
+
link: "solarized",
|
| 986 |
+
highlights: {
|
| 987 |
+
background: "#002b36",
|
| 988 |
+
text: "#839496",
|
| 989 |
+
variable: "#839496",
|
| 990 |
+
variable2: "#b58900",
|
| 991 |
+
variable3: "#6c71c4",
|
| 992 |
+
attribute: "#2aa198",
|
| 993 |
+
definition: "#2aa198",
|
| 994 |
+
keyword: "#cb4b16",
|
| 995 |
+
operator: "#6c71c4",
|
| 996 |
+
property: "#2aa198",
|
| 997 |
+
number: "#d33682",
|
| 998 |
+
string: "#859900",
|
| 999 |
+
comment: "#586e75",
|
| 1000 |
+
meta: "#859900",
|
| 1001 |
+
tag: "#93a1a1"
|
| 1002 |
+
}
|
| 1003 |
+
}, {
|
| 1004 |
+
id: "solarized light",
|
| 1005 |
+
name: "Solarized (Light)",
|
| 1006 |
+
link: "solarized",
|
| 1007 |
+
light: !0,
|
| 1008 |
+
highlights: {
|
| 1009 |
+
background: "#fdf6e3",
|
| 1010 |
+
text: "#657b83",
|
| 1011 |
+
variable: "#839496",
|
| 1012 |
+
variable2: "#b58900",
|
| 1013 |
+
variable3: "#6c71c4",
|
| 1014 |
+
attribute: "#2aa198",
|
| 1015 |
+
definition: "#2aa198",
|
| 1016 |
+
keyword: "#cb4b16",
|
| 1017 |
+
operator: "#6c71c4",
|
| 1018 |
+
property: "#2aa198",
|
| 1019 |
+
number: "#d33682",
|
| 1020 |
+
string: "#859900",
|
| 1021 |
+
comment: "#586e75",
|
| 1022 |
+
meta: "#859900",
|
| 1023 |
+
tag: "#93a1a1"
|
| 1024 |
+
}
|
| 1025 |
+
}, {
|
| 1026 |
+
id: "synthwave-84",
|
| 1027 |
+
name: "SynthWave '84",
|
| 1028 |
+
highlights: {
|
| 1029 |
+
background: "#2b213a",
|
| 1030 |
+
text: "#b6b1b1",
|
| 1031 |
+
variable: "#f92aad",
|
| 1032 |
+
attribute: "#fff5f6",
|
| 1033 |
+
definition: "#fdfdfd",
|
| 1034 |
+
keyword: "#f4eee4",
|
| 1035 |
+
operator: "#f4eee4",
|
| 1036 |
+
property: "#fdfdfd",
|
| 1037 |
+
number: "#f97e72",
|
| 1038 |
+
string: "#ff8b39",
|
| 1039 |
+
comment: "#6d77b3",
|
| 1040 |
+
meta: "#ff8b39",
|
| 1041 |
+
tag: "#f92aad"
|
| 1042 |
+
}
|
| 1043 |
+
}, {
|
| 1044 |
+
id: "twilight",
|
| 1045 |
+
name: "Twilight",
|
| 1046 |
+
highlights: {
|
| 1047 |
+
background: "#141414",
|
| 1048 |
+
text: "#f7f7f7",
|
| 1049 |
+
variable: "#607392",
|
| 1050 |
+
attribute: "#d6bb6d",
|
| 1051 |
+
definition: "#607392",
|
| 1052 |
+
keyword: "#f9ee98",
|
| 1053 |
+
operator: "#cda869",
|
| 1054 |
+
property: "#fff",
|
| 1055 |
+
number: "#ca7841",
|
| 1056 |
+
string: "#8f9d6a",
|
| 1057 |
+
comment: "#777",
|
| 1058 |
+
meta: "#f7f7f7",
|
| 1059 |
+
tag: "#997643"
|
| 1060 |
+
}
|
| 1061 |
+
}, {
|
| 1062 |
+
id: "verminal",
|
| 1063 |
+
name: "Verminal",
|
| 1064 |
+
highlights: {
|
| 1065 |
+
background: "rgba(0, 0, 0, 0.85)",
|
| 1066 |
+
text: "#fff",
|
| 1067 |
+
variable: "#ff9ba3",
|
| 1068 |
+
variable2: "#fff",
|
| 1069 |
+
attribute: "#d19a66",
|
| 1070 |
+
definition: "#34B7FF",
|
| 1071 |
+
keyword: "#9AE1FF",
|
| 1072 |
+
operator: "#FA78C3",
|
| 1073 |
+
property: "#0af",
|
| 1074 |
+
number: "#d19a66",
|
| 1075 |
+
string: "#98c379",
|
| 1076 |
+
comment: "#5c6370",
|
| 1077 |
+
meta: "#abb2bf",
|
| 1078 |
+
tag: "#e06c75"
|
| 1079 |
+
}
|
| 1080 |
+
}, {
|
| 1081 |
+
id: "vscode",
|
| 1082 |
+
name: "VSCode",
|
| 1083 |
+
highlights: {
|
| 1084 |
+
background: "#1E1E1E",
|
| 1085 |
+
text: "#D4D4D4",
|
| 1086 |
+
variable: "#9CDCFE",
|
| 1087 |
+
attribute: "#d19a66",
|
| 1088 |
+
definition: "#DCDCAA",
|
| 1089 |
+
keyword: "#C586C0",
|
| 1090 |
+
operator: "#D4D4D4",
|
| 1091 |
+
property: "#DCDCAA",
|
| 1092 |
+
number: "#B5CEA8",
|
| 1093 |
+
string: "#CE9178",
|
| 1094 |
+
comment: "#6A9955",
|
| 1095 |
+
meta: "#D4D4D4",
|
| 1096 |
+
tag: "#569cd6"
|
| 1097 |
+
}
|
| 1098 |
+
}, {
|
| 1099 |
+
id: "yeti",
|
| 1100 |
+
name: "Yeti",
|
| 1101 |
+
light: !0,
|
| 1102 |
+
highlights: {
|
| 1103 |
+
background: "#ECEAE8",
|
| 1104 |
+
text: "#d1c9c0",
|
| 1105 |
+
variable: "#55b5db",
|
| 1106 |
+
variable2: "#a074c4",
|
| 1107 |
+
variable3: "#96c0d8",
|
| 1108 |
+
attribute: "#9fb96e",
|
| 1109 |
+
definition: "#55b5db",
|
| 1110 |
+
keyword: "#9fb96e",
|
| 1111 |
+
operator: "#9fb96e",
|
| 1112 |
+
property: "#a074c4",
|
| 1113 |
+
number: "#a074c4",
|
| 1114 |
+
string: "#96c0d8",
|
| 1115 |
+
comment: "#d4c8be",
|
| 1116 |
+
meta: "#96c0d8",
|
| 1117 |
+
tag: "#96c0d8"
|
| 1118 |
+
}
|
| 1119 |
+
}, {
|
| 1120 |
+
id: "zenburn",
|
| 1121 |
+
name: "Zenburn",
|
| 1122 |
+
highlights: {
|
| 1123 |
+
background: "#3f3f3f",
|
| 1124 |
+
text: "#dcdccc",
|
| 1125 |
+
variable: "#dfaf8f",
|
| 1126 |
+
variable3: "#dcdccc",
|
| 1127 |
+
attribute: "#dfaf8f",
|
| 1128 |
+
definition: "#dcdccc",
|
| 1129 |
+
keyword: "#f0dfaf",
|
| 1130 |
+
operator: "#f0efd0",
|
| 1131 |
+
property: "#dfaf8f",
|
| 1132 |
+
number: "#dcdccc",
|
| 1133 |
+
string: "#cc9393",
|
| 1134 |
+
comment: "#7f9f7f",
|
| 1135 |
+
meta: "#f0dfaf",
|
| 1136 |
+
tag: "#93e0e3"
|
| 1137 |
+
}
|
| 1138 |
+
}],
|
| 1139 |
+
d = a()(s),
|
| 1140 |
+
m = [{
|
| 1141 |
+
name: "Auto",
|
| 1142 |
+
mode: "auto"
|
| 1143 |
+
}, {
|
| 1144 |
+
name: "Apache",
|
| 1145 |
+
mode: "apache",
|
| 1146 |
+
mime: "text/apache",
|
| 1147 |
+
custom: !0,
|
| 1148 |
+
highlight: !0
|
| 1149 |
+
}, {
|
| 1150 |
+
name: "Bash",
|
| 1151 |
+
mode: "shell",
|
| 1152 |
+
mime: "application/x-sh",
|
| 1153 |
+
highlight: !0
|
| 1154 |
+
}, {
|
| 1155 |
+
name: "Plain Text",
|
| 1156 |
+
mode: "text"
|
| 1157 |
+
}, {
|
| 1158 |
+
name: "C",
|
| 1159 |
+
mode: "clike",
|
| 1160 |
+
mime: "text/x-csrc",
|
| 1161 |
+
short: "c"
|
| 1162 |
+
}, {
|
| 1163 |
+
name: "C++",
|
| 1164 |
+
mode: "clike",
|
| 1165 |
+
mime: "text/x-c++src",
|
| 1166 |
+
short: "c-like",
|
| 1167 |
+
highlight: !0
|
| 1168 |
+
}, {
|
| 1169 |
+
name: "C#",
|
| 1170 |
+
mode: "clike",
|
| 1171 |
+
mime: "text/x-csharp",
|
| 1172 |
+
short: "csharp",
|
| 1173 |
+
highlight: !0
|
| 1174 |
+
}, {
|
| 1175 |
+
name: "Clojure",
|
| 1176 |
+
mode: "clojure",
|
| 1177 |
+
highlight: !0
|
| 1178 |
+
}, {
|
| 1179 |
+
name: "COBOL",
|
| 1180 |
+
mode: "cobol"
|
| 1181 |
+
}, {
|
| 1182 |
+
name: "CoffeeScript",
|
| 1183 |
+
mode: "coffeescript",
|
| 1184 |
+
highlight: !0
|
| 1185 |
+
}, {
|
| 1186 |
+
name: "Crystal",
|
| 1187 |
+
mode: "crystal",
|
| 1188 |
+
highlight: !0
|
| 1189 |
+
}, {
|
| 1190 |
+
name: "CSS",
|
| 1191 |
+
mode: "css",
|
| 1192 |
+
highlight: !0
|
| 1193 |
+
}, {
|
| 1194 |
+
name: "D",
|
| 1195 |
+
mode: "d",
|
| 1196 |
+
highlight: !0
|
| 1197 |
+
}, {
|
| 1198 |
+
name: "Dart",
|
| 1199 |
+
mode: "dart",
|
| 1200 |
+
highlight: !0
|
| 1201 |
+
}, {
|
| 1202 |
+
name: "Diff",
|
| 1203 |
+
mode: "diff",
|
| 1204 |
+
mime: "text/x-diff",
|
| 1205 |
+
highlight: !0
|
| 1206 |
+
}, {
|
| 1207 |
+
name: "Django",
|
| 1208 |
+
mode: "django",
|
| 1209 |
+
highlight: !0
|
| 1210 |
+
}, {
|
| 1211 |
+
name: "Docker",
|
| 1212 |
+
mode: "dockerfile",
|
| 1213 |
+
highlight: !0
|
| 1214 |
+
}, {
|
| 1215 |
+
name: "Elixir",
|
| 1216 |
+
mode: "elixir",
|
| 1217 |
+
custom: !0,
|
| 1218 |
+
highlight: !0
|
| 1219 |
+
}, {
|
| 1220 |
+
name: "Elm",
|
| 1221 |
+
mode: "elm",
|
| 1222 |
+
highlight: !0
|
| 1223 |
+
}, {
|
| 1224 |
+
name: "Erlang",
|
| 1225 |
+
mode: "erlang",
|
| 1226 |
+
highlight: !0
|
| 1227 |
+
}, {
|
| 1228 |
+
name: "F#",
|
| 1229 |
+
mime: "text/x-fsharp",
|
| 1230 |
+
mode: "mllike",
|
| 1231 |
+
short: "fsharp",
|
| 1232 |
+
highlight: !0
|
| 1233 |
+
}, {
|
| 1234 |
+
name: "Fortran",
|
| 1235 |
+
mode: "fortran",
|
| 1236 |
+
highlight: !0
|
| 1237 |
+
}, {
|
| 1238 |
+
name: "Gherkin",
|
| 1239 |
+
mode: "gherkin",
|
| 1240 |
+
highlight: !0
|
| 1241 |
+
}, {
|
| 1242 |
+
name: "GraphQL",
|
| 1243 |
+
mode: "graphql",
|
| 1244 |
+
custom: !0
|
| 1245 |
+
}, {
|
| 1246 |
+
name: "Go",
|
| 1247 |
+
mode: "go",
|
| 1248 |
+
mime: "text/x-go",
|
| 1249 |
+
highlight: !0
|
| 1250 |
+
}, {
|
| 1251 |
+
name: "Groovy",
|
| 1252 |
+
mode: "groovy",
|
| 1253 |
+
highlight: !0
|
| 1254 |
+
}, {
|
| 1255 |
+
name: "Handlebars",
|
| 1256 |
+
mode: "handlebars",
|
| 1257 |
+
highlight: !0
|
| 1258 |
+
}, {
|
| 1259 |
+
name: "Haskell",
|
| 1260 |
+
mode: "haskell",
|
| 1261 |
+
highlight: !0
|
| 1262 |
+
}, {
|
| 1263 |
+
name: "HTML/XML",
|
| 1264 |
+
mode: "htmlmixed"
|
| 1265 |
+
}, {
|
| 1266 |
+
name: "Java",
|
| 1267 |
+
mode: "clike",
|
| 1268 |
+
mime: "text/x-java",
|
| 1269 |
+
short: "java",
|
| 1270 |
+
highlight: !0
|
| 1271 |
+
}, {
|
| 1272 |
+
name: "JavaScript",
|
| 1273 |
+
mode: "javascript",
|
| 1274 |
+
short: "javascript",
|
| 1275 |
+
highlight: !0
|
| 1276 |
+
}, {
|
| 1277 |
+
name: "JSON",
|
| 1278 |
+
mode: "javascript",
|
| 1279 |
+
mime: "application/json",
|
| 1280 |
+
short: "json",
|
| 1281 |
+
highlight: !0
|
| 1282 |
+
}, {
|
| 1283 |
+
name: "JSX",
|
| 1284 |
+
mode: "jsx",
|
| 1285 |
+
short: "jsx"
|
| 1286 |
+
}, {
|
| 1287 |
+
name: "Julia",
|
| 1288 |
+
mode: "julia",
|
| 1289 |
+
highlight: !0
|
| 1290 |
+
}, {
|
| 1291 |
+
name: "Kotlin",
|
| 1292 |
+
mode: "clike",
|
| 1293 |
+
mime: "text/x-kotlin",
|
| 1294 |
+
short: "kotlin",
|
| 1295 |
+
highlight: !0
|
| 1296 |
+
}, {
|
| 1297 |
+
name: "LaTeX",
|
| 1298 |
+
mode: "stex",
|
| 1299 |
+
short: "latex",
|
| 1300 |
+
highlight: !0
|
| 1301 |
+
}, {
|
| 1302 |
+
name: "Lisp",
|
| 1303 |
+
mode: "commonlisp",
|
| 1304 |
+
short: "lisp",
|
| 1305 |
+
highlight: !0
|
| 1306 |
+
}, {
|
| 1307 |
+
name: "Lua",
|
| 1308 |
+
mode: "lua",
|
| 1309 |
+
highlight: !0
|
| 1310 |
+
}, {
|
| 1311 |
+
name: "Markdown",
|
| 1312 |
+
mode: "markdown",
|
| 1313 |
+
highlight: !0
|
| 1314 |
+
}, {
|
| 1315 |
+
name: "Mathematica",
|
| 1316 |
+
mode: "mathematica",
|
| 1317 |
+
highlight: !0
|
| 1318 |
+
}, {
|
| 1319 |
+
name: "MATLAB/Octave",
|
| 1320 |
+
mode: "octave",
|
| 1321 |
+
mime: "text/x-octave",
|
| 1322 |
+
short: "matlab",
|
| 1323 |
+
highlight: !0
|
| 1324 |
+
}, {
|
| 1325 |
+
name: "MySQL",
|
| 1326 |
+
mode: "sql",
|
| 1327 |
+
mime: "text/x-mysql",
|
| 1328 |
+
short: "mysql"
|
| 1329 |
+
}, {
|
| 1330 |
+
name: "N-Triples",
|
| 1331 |
+
mode: "ntriples",
|
| 1332 |
+
mime: "application/n-triples"
|
| 1333 |
+
}, {
|
| 1334 |
+
name: "NGINX",
|
| 1335 |
+
mode: "nginx",
|
| 1336 |
+
highlight: !0
|
| 1337 |
+
}, {
|
| 1338 |
+
name: "Nim",
|
| 1339 |
+
mode: "nim",
|
| 1340 |
+
custom: !0,
|
| 1341 |
+
highlight: !0
|
| 1342 |
+
}, {
|
| 1343 |
+
name: "Objective C",
|
| 1344 |
+
mode: "clike",
|
| 1345 |
+
mime: "text/x-objectivec",
|
| 1346 |
+
short: "objectivec",
|
| 1347 |
+
highlight: !0
|
| 1348 |
+
}, {
|
| 1349 |
+
name: "OCaml",
|
| 1350 |
+
mode: "mllike",
|
| 1351 |
+
short: "ocaml",
|
| 1352 |
+
highlight: !0
|
| 1353 |
+
}, {
|
| 1354 |
+
name: "Pascal",
|
| 1355 |
+
mode: "pascal"
|
| 1356 |
+
}, {
|
| 1357 |
+
name: "Perl",
|
| 1358 |
+
mode: "perl",
|
| 1359 |
+
highlight: !0
|
| 1360 |
+
}, {
|
| 1361 |
+
name: "PHP",
|
| 1362 |
+
mode: "php",
|
| 1363 |
+
mime: "text/x-php",
|
| 1364 |
+
short: "php",
|
| 1365 |
+
highlight: !0
|
| 1366 |
+
}, {
|
| 1367 |
+
name: "PowerShell",
|
| 1368 |
+
mode: "powershell",
|
| 1369 |
+
highlight: !0
|
| 1370 |
+
}, {
|
| 1371 |
+
name: "Protocol Buffer",
|
| 1372 |
+
mode: "protobuf"
|
| 1373 |
+
}, {
|
| 1374 |
+
name: "Python",
|
| 1375 |
+
mode: "python",
|
| 1376 |
+
highlight: !0
|
| 1377 |
+
}, {
|
| 1378 |
+
name: "R",
|
| 1379 |
+
mode: "r",
|
| 1380 |
+
highlight: !0
|
| 1381 |
+
}, {
|
| 1382 |
+
name: "RISC-V",
|
| 1383 |
+
mode: "riscv",
|
| 1384 |
+
custom: !0
|
| 1385 |
+
}, {
|
| 1386 |
+
name: "Ruby",
|
| 1387 |
+
mode: "ruby",
|
| 1388 |
+
highlight: !0
|
| 1389 |
+
}, {
|
| 1390 |
+
name: "Rust",
|
| 1391 |
+
mode: "rust",
|
| 1392 |
+
highlight: !0
|
| 1393 |
+
}, {
|
| 1394 |
+
name: "Sass",
|
| 1395 |
+
mode: "sass"
|
| 1396 |
+
}, {
|
| 1397 |
+
name: "Scala",
|
| 1398 |
+
mode: "clike",
|
| 1399 |
+
mime: "text/x-scala",
|
| 1400 |
+
short: "scala",
|
| 1401 |
+
highlight: !0
|
| 1402 |
+
}, {
|
| 1403 |
+
name: "Smalltalk",
|
| 1404 |
+
mode: "smalltalk",
|
| 1405 |
+
highlight: !0
|
| 1406 |
+
}, {
|
| 1407 |
+
name: "Solidity",
|
| 1408 |
+
mode: "solidity",
|
| 1409 |
+
custom: !0
|
| 1410 |
+
}, {
|
| 1411 |
+
name: "SPARQL",
|
| 1412 |
+
mode: "sparql",
|
| 1413 |
+
mime: "application/sparql-query"
|
| 1414 |
+
}, {
|
| 1415 |
+
name: "SQL",
|
| 1416 |
+
mode: "sql",
|
| 1417 |
+
highlight: !0
|
| 1418 |
+
}, {
|
| 1419 |
+
name: "Stylus",
|
| 1420 |
+
mode: "stylus",
|
| 1421 |
+
mime: "stylus",
|
| 1422 |
+
highlight: !0
|
| 1423 |
+
}, {
|
| 1424 |
+
name: "Swift",
|
| 1425 |
+
mode: "swift",
|
| 1426 |
+
highlight: !0
|
| 1427 |
+
}, {
|
| 1428 |
+
name: "TCL",
|
| 1429 |
+
mode: "tcl",
|
| 1430 |
+
highlight: !0
|
| 1431 |
+
}, {
|
| 1432 |
+
name: "TOML",
|
| 1433 |
+
mode: "toml"
|
| 1434 |
+
}, {
|
| 1435 |
+
name: "Turtle",
|
| 1436 |
+
mode: "turtle",
|
| 1437 |
+
mime: "text/turtle"
|
| 1438 |
+
}, {
|
| 1439 |
+
name: "TypeScript",
|
| 1440 |
+
mode: "javascript",
|
| 1441 |
+
mime: "application/typescript",
|
| 1442 |
+
short: "typescript",
|
| 1443 |
+
highlight: !0
|
| 1444 |
+
}, {
|
| 1445 |
+
name: "TSX",
|
| 1446 |
+
mode: "jsx",
|
| 1447 |
+
mime: "text/typescript-jsx",
|
| 1448 |
+
short: "tsx"
|
| 1449 |
+
}, {
|
| 1450 |
+
name: "Twig",
|
| 1451 |
+
mode: "twig",
|
| 1452 |
+
mime: "text/x-twig",
|
| 1453 |
+
highlight: !0
|
| 1454 |
+
}, {
|
| 1455 |
+
name: "VB.NET",
|
| 1456 |
+
mode: "vb"
|
| 1457 |
+
}, {
|
| 1458 |
+
name: "Verilog",
|
| 1459 |
+
mode: "verilog",
|
| 1460 |
+
highlight: !0
|
| 1461 |
+
}, {
|
| 1462 |
+
name: "VHDL",
|
| 1463 |
+
mode: "vhdl",
|
| 1464 |
+
highlight: !0
|
| 1465 |
+
}, {
|
| 1466 |
+
name: "Vue",
|
| 1467 |
+
mode: "vue"
|
| 1468 |
+
}, {
|
| 1469 |
+
name: "XQuery",
|
| 1470 |
+
mode: "xquery",
|
| 1471 |
+
highlight: !0
|
| 1472 |
+
}, {
|
| 1473 |
+
name: "YAML",
|
| 1474 |
+
mode: "yaml",
|
| 1475 |
+
highlight: !0
|
| 1476 |
+
}],
|
| 1477 |
+
u = [{
|
| 1478 |
+
id: "1x",
|
| 1479 |
+
name: "1x",
|
| 1480 |
+
value: 1
|
| 1481 |
+
}, {
|
| 1482 |
+
id: "2x",
|
| 1483 |
+
name: "2x",
|
| 1484 |
+
value: 2
|
| 1485 |
+
}, {
|
| 1486 |
+
id: "4x",
|
| 1487 |
+
name: "4x",
|
| 1488 |
+
value: 4
|
| 1489 |
+
}],
|
| 1490 |
+
h = a()(u),
|
| 1491 |
+
g = a()(m, "mime"),
|
| 1492 |
+
b = a()(m, "mode"),
|
| 1493 |
+
p = a()(m, "short"),
|
| 1494 |
+
w = "auto",
|
| 1495 |
+
x = d.seti,
|
| 1496 |
+
v = "rgba(171, 184, 195, 1)",
|
| 1497 |
+
y = h["2x"],
|
| 1498 |
+
k = {
|
| 1499 |
+
BLACK: "#121212",
|
| 1500 |
+
PRIMARY: "#F8E81C",
|
| 1501 |
+
SECONDARY: "#fff",
|
| 1502 |
+
GRAY: "#858585",
|
| 1503 |
+
DARK_GRAY: "#393939",
|
| 1504 |
+
HOVER: "#1F1F1F",
|
| 1505 |
+
PURPLE: "#C198FB",
|
| 1506 |
+
DARK_PURPLE: "#55436F",
|
| 1507 |
+
RED: "#ff5f56",
|
| 1508 |
+
BLUE: "#57b5f9",
|
| 1509 |
+
GREEN: "#37b589"
|
| 1510 |
+
},
|
| 1511 |
+
F = "const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj)\n\nconst compose = (...fns) => res => fns.reduce((accum, next) => next(accum), res)\n\nconst unfold = (f, seed) => {\n const go = (f, seed, acc) => {\n const res = f(seed)\n return res ? go(f, res[1], acc.concat([res[0]])) : acc\n }\n return go(f, seed, [])\n}",
|
| 1512 |
+
C = {
|
| 1513 |
+
paddingVertical: "56px",
|
| 1514 |
+
paddingHorizontal: "56px",
|
| 1515 |
+
backgroundImage: null,
|
| 1516 |
+
backgroundImageSelection: null,
|
| 1517 |
+
backgroundMode: "color",
|
| 1518 |
+
backgroundColor: v,
|
| 1519 |
+
dropShadow: !0,
|
| 1520 |
+
dropShadowOffsetY: "20px",
|
| 1521 |
+
dropShadowBlurRadius: "68px",
|
| 1522 |
+
theme: x.id,
|
| 1523 |
+
windowTheme: "none",
|
| 1524 |
+
language: w,
|
| 1525 |
+
fontFamily: "Hack",
|
| 1526 |
+
fontSize: "14px",
|
| 1527 |
+
lineHeight: "133%",
|
| 1528 |
+
windowControls: !0,
|
| 1529 |
+
widthAdjustment: !0,
|
| 1530 |
+
lineNumbers: !1,
|
| 1531 |
+
firstLineNumber: 1,
|
| 1532 |
+
exportSize: "2x",
|
| 1533 |
+
watermark: !1,
|
| 1534 |
+
squaredImage: !1,
|
| 1535 |
+
hiddenCharacters: !1,
|
| 1536 |
+
name: "",
|
| 1537 |
+
width: 680
|
| 1538 |
+
},
|
| 1539 |
+
j = {
|
| 1540 |
+
minWidth: 320,
|
| 1541 |
+
maxWidth: 1280
|
| 1542 |
+
},
|
| 1543 |
+
M = [i({}, C, {
|
| 1544 |
+
icon: "/static/presets/4.png",
|
| 1545 |
+
id: "preset:4"
|
| 1546 |
+
}), i({}, C, {
|
| 1547 |
+
backgroundColor: "rgba(74,144,226,1)",
|
| 1548 |
+
dropShadow: !1,
|
| 1549 |
+
theme: "material",
|
| 1550 |
+
fontFamily: "Fira Code",
|
| 1551 |
+
lineHeight: "152%",
|
| 1552 |
+
icon: "/static/presets/7.png",
|
| 1553 |
+
id: "preset:7"
|
| 1554 |
+
}), i({}, C, {
|
| 1555 |
+
backgroundColor: "rgba(248,231,28,1)",
|
| 1556 |
+
dropShadow: !1,
|
| 1557 |
+
theme: "blackboard",
|
| 1558 |
+
fontFamily: "Fira Code",
|
| 1559 |
+
lineHeight: "152%",
|
| 1560 |
+
icon: "/static/presets/8.png",
|
| 1561 |
+
id: "preset:8"
|
| 1562 |
+
}), i({}, C, {
|
| 1563 |
+
backgroundColor: "rgba(182,162,145,1)",
|
| 1564 |
+
dropShadow: !1,
|
| 1565 |
+
theme: "zenburn",
|
| 1566 |
+
windowTheme: "bw",
|
| 1567 |
+
lineHeight: "152%",
|
| 1568 |
+
icon: "/static/presets/9.png",
|
| 1569 |
+
id: "preset:9"
|
| 1570 |
+
}), i({}, C, {
|
| 1571 |
+
backgroundColor: "rgba(121,72,185,1)",
|
| 1572 |
+
dropShadow: !1,
|
| 1573 |
+
theme: "verminal",
|
| 1574 |
+
windowTheme: "bw",
|
| 1575 |
+
fontFamily: "Fira Code",
|
| 1576 |
+
fontSize: "14px",
|
| 1577 |
+
lineHeight: "143%",
|
| 1578 |
+
icon: "/static/presets/0.png",
|
| 1579 |
+
id: "preset:0"
|
| 1580 |
+
}), i({}, C, {
|
| 1581 |
+
backgroundColor: "rgba(239,40,44,1)",
|
| 1582 |
+
theme: "one-light",
|
| 1583 |
+
lineHeight: "143%",
|
| 1584 |
+
icon: "/static/presets/1.png",
|
| 1585 |
+
id: "preset:1"
|
| 1586 |
+
}), i({}, C, {
|
| 1587 |
+
backgroundColor: "rgba(31,129,109,1)",
|
| 1588 |
+
dropShadow: !1,
|
| 1589 |
+
theme: "night-owl",
|
| 1590 |
+
lineHeight: "143%",
|
| 1591 |
+
windowControls: !1,
|
| 1592 |
+
icon: "/static/presets/2.png",
|
| 1593 |
+
id: "preset:2"
|
| 1594 |
+
}), i({}, C, {
|
| 1595 |
+
backgroundColor: "rgba(222,171,99,1)",
|
| 1596 |
+
theme: "duotone-dark",
|
| 1597 |
+
icon: "/static/presets/5.png",
|
| 1598 |
+
id: "preset:5"
|
| 1599 |
+
})]
|
| 1600 |
+
},
|
| 1601 |
+
94959: function(e, t, o) {
|
| 1602 |
+
o.d(t, {
|
| 1603 |
+
AK: function() {
|
| 1604 |
+
return w
|
| 1605 |
+
},
|
| 1606 |
+
CE: function() {
|
| 1607 |
+
return b
|
| 1608 |
+
},
|
| 1609 |
+
Gw: function() {
|
| 1610 |
+
return C
|
| 1611 |
+
},
|
| 1612 |
+
Ox: function() {
|
| 1613 |
+
return B
|
| 1614 |
+
},
|
| 1615 |
+
Ph: function() {
|
| 1616 |
+
return R
|
| 1617 |
+
},
|
| 1618 |
+
RC: function() {
|
| 1619 |
+
return M
|
| 1620 |
+
},
|
| 1621 |
+
Ss: function() {
|
| 1622 |
+
return D
|
| 1623 |
+
},
|
| 1624 |
+
Tz: function() {
|
| 1625 |
+
return F
|
| 1626 |
+
},
|
| 1627 |
+
UJ: function() {
|
| 1628 |
+
return x
|
| 1629 |
+
},
|
| 1630 |
+
XQ: function() {
|
| 1631 |
+
return S
|
| 1632 |
+
},
|
| 1633 |
+
Xv: function() {
|
| 1634 |
+
return k
|
| 1635 |
+
},
|
| 1636 |
+
Yz: function() {
|
| 1637 |
+
return j
|
| 1638 |
+
},
|
| 1639 |
+
ZN: function() {
|
| 1640 |
+
return y
|
| 1641 |
+
},
|
| 1642 |
+
iS: function() {
|
| 1643 |
+
return P
|
| 1644 |
+
},
|
| 1645 |
+
rL: function() {
|
| 1646 |
+
return A
|
| 1647 |
+
},
|
| 1648 |
+
zQ: function() {
|
| 1649 |
+
return p
|
| 1650 |
+
}
|
| 1651 |
+
});
|
| 1652 |
+
var n = o(34051),
|
| 1653 |
+
a = o.n(n),
|
| 1654 |
+
r = o(19613),
|
| 1655 |
+
i = o.n(r),
|
| 1656 |
+
c = o(99503),
|
| 1657 |
+
f = o.n(c),
|
| 1658 |
+
l = o(46779);
|
| 1659 |
+
|
| 1660 |
+
function s(e, t, o, n, a, r, i) {
|
| 1661 |
+
try {
|
| 1662 |
+
var c = e[r](i),
|
| 1663 |
+
f = c.value
|
| 1664 |
+
} catch (l) {
|
| 1665 |
+
return void o(l)
|
| 1666 |
+
}
|
| 1667 |
+
c.done ? t(f) : Promise.resolve(f).then(n, a)
|
| 1668 |
+
}
|
| 1669 |
+
var d, m = "CARBON_STATE",
|
| 1670 |
+
u = "CARBON_PRESETS",
|
| 1671 |
+
h = "CARBON_THEMES",
|
| 1672 |
+
g = function(e) {
|
| 1673 |
+
var t = i().assign(e);
|
| 1674 |
+
return function(e) {
|
| 1675 |
+
return t(localStorage, JSON.stringify(e))
|
| 1676 |
+
}
|
| 1677 |
+
},
|
| 1678 |
+
b = function(e) {
|
| 1679 |
+
return function(t) {
|
| 1680 |
+
return f()(t, (function(t, o) {
|
| 1681 |
+
return e.indexOf(o) > -1
|
| 1682 |
+
}))
|
| 1683 |
+
}
|
| 1684 |
+
},
|
| 1685 |
+
p = i().compose(g(m), b(["code", "backgroundImage", "backgroundImageSelection", "themes", "highlights", "fontUrl", "selectedLines", "name"])),
|
| 1686 |
+
w = i().compose(g(u), (d = b(["backgroundImageSelection"]), function(e) {
|
| 1687 |
+
return e.map(d)
|
| 1688 |
+
})),
|
| 1689 |
+
x = g(h),
|
| 1690 |
+
v = function(e) {
|
| 1691 |
+
try {
|
| 1692 |
+
return JSON.parse(e)
|
| 1693 |
+
} catch (t) {}
|
| 1694 |
+
},
|
| 1695 |
+
y = function(e) {
|
| 1696 |
+
return function(t) {
|
| 1697 |
+
return o = {}, n = e, a = !t[e], n in o ? Object.defineProperty(o, n, {
|
| 1698 |
+
value: a,
|
| 1699 |
+
enumerable: !0,
|
| 1700 |
+
configurable: !0,
|
| 1701 |
+
writable: !0
|
| 1702 |
+
}) : o[n] = a, o;
|
| 1703 |
+
var o, n, a
|
| 1704 |
+
}
|
| 1705 |
+
},
|
| 1706 |
+
k = function(e) {
|
| 1707 |
+
if ("string" === typeof e) return e.replace(/</g, "<").replace(/>/g, ">").replace(/\//g, "/")
|
| 1708 |
+
},
|
| 1709 |
+
F = function(e) {
|
| 1710 |
+
if ("string" === typeof e) return (0, l.U)(e).replace(///g, "/")
|
| 1711 |
+
},
|
| 1712 |
+
C = i().compose(v, k, i().get(m)),
|
| 1713 |
+
j = i().compose(v, i().get(u)),
|
| 1714 |
+
M = i().compose(v, i().get(h)),
|
| 1715 |
+
A = function() {
|
| 1716 |
+
return localStorage.removeItem(m)
|
| 1717 |
+
},
|
| 1718 |
+
R = function(e) {
|
| 1719 |
+
return new Promise((function(t) {
|
| 1720 |
+
var o = new FileReader;
|
| 1721 |
+
o.onload = function(e) {
|
| 1722 |
+
return t(e.target.result)
|
| 1723 |
+
}, o.readAsDataURL(e)
|
| 1724 |
+
}))
|
| 1725 |
+
},
|
| 1726 |
+
D = function(e) {
|
| 1727 |
+
return new Promise((function(t) {
|
| 1728 |
+
var o = new FileReader;
|
| 1729 |
+
o.onload = function(e) {
|
| 1730 |
+
return t(v(e.target.result))
|
| 1731 |
+
}, o.readAsText(e)
|
| 1732 |
+
}))
|
| 1733 |
+
},
|
| 1734 |
+
S = function() {
|
| 1735 |
+
var e = function(e) {
|
| 1736 |
+
return function() {
|
| 1737 |
+
var t = this,
|
| 1738 |
+
o = arguments;
|
| 1739 |
+
return new Promise((function(n, a) {
|
| 1740 |
+
var r = e.apply(t, o);
|
| 1741 |
+
|
| 1742 |
+
function i(e) {
|
| 1743 |
+
s(r, n, a, i, c, "next", e)
|
| 1744 |
+
}
|
| 1745 |
+
|
| 1746 |
+
function c(e) {
|
| 1747 |
+
s(r, n, a, i, c, "throw", e)
|
| 1748 |
+
}
|
| 1749 |
+
i(void 0)
|
| 1750 |
+
}))
|
| 1751 |
+
}
|
| 1752 |
+
}(a().mark((function e(t) {
|
| 1753 |
+
var n, r;
|
| 1754 |
+
return a().wrap((function(e) {
|
| 1755 |
+
for (;;) switch (e.prev = e.next) {
|
| 1756 |
+
case 0:
|
| 1757 |
+
return e.next = 2, o.e(54).then(o.t.bind(o, 73945, 23));
|
| 1758 |
+
case 2:
|
| 1759 |
+
return n = e.sent, e.next = 5, o.e(993).then(o.t.bind(o, 28182, 23));
|
| 1760 |
+
case 5:
|
| 1761 |
+
return r = e.sent, e.abrupt("return", n.format(t, {
|
| 1762 |
+
parser: "babel",
|
| 1763 |
+
plugins: [r],
|
| 1764 |
+
semi: !1,
|
| 1765 |
+
singleQuote: !0
|
| 1766 |
+
}));
|
| 1767 |
+
case 7:
|
| 1768 |
+
case "end":
|
| 1769 |
+
return e.stop()
|
| 1770 |
+
}
|
| 1771 |
+
}), e)
|
| 1772 |
+
})));
|
| 1773 |
+
return function(t) {
|
| 1774 |
+
return e.apply(this, arguments)
|
| 1775 |
+
}
|
| 1776 |
+
}(),
|
| 1777 |
+
P = function(e) {
|
| 1778 |
+
return "rgba(".concat(e.rgb.r, ",").concat(e.rgb.g, ",").concat(e.rgb.b, ",").concat(e.rgb.a, ")")
|
| 1779 |
+
},
|
| 1780 |
+
B = function() {
|
| 1781 |
+
return Math.random().toString(36).slice(2)
|
| 1782 |
+
}
|
| 1783 |
+
}
|
| 1784 |
+
}
|
| 1785 |
+
]);
|