├── lib
├── __init__.py
└── link_test.py
├── tests
├── __init__.py
└── test_link_test.py
├── .dockerignore
├── .gitattributes
├── .gitignore
├── static
├── img
│ ├── link.png
│ └── forkMe.png
├── js
│ ├── loader.js
│ ├── searchExpand.js
│ ├── noty
│ │ ├── noty.css.map
│ │ ├── noty.css
│ │ └── noty.min.js
│ ├── submit.js
│ ├── validateUrl.js
│ └── jquery
│ │ └── jquery.min.js
└── css
│ ├── styles.css
│ └── animate.min.css
├── requirements.txt
├── Dockerfile
├── Dockerfile-arm64v8.rpi
├── Dockerfile-arm32v7.rpi
├── circa10a-web-link-tester.yaml
├── deploy.sh
├── main.py
├── templates
├── index.html
└── error.html
└── README.md
/lib/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tests/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.dockerignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | lib/*.pyc
3 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.css linguist-language=Python
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | lib/*.pyc
3 | .cache
4 | __pycache__/
5 | .coverage
6 |
--------------------------------------------------------------------------------
/static/img/link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/circa10a/web-link-tester/HEAD/static/img/link.png
--------------------------------------------------------------------------------
/static/img/forkMe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/circa10a/web-link-tester/HEAD/static/img/forkMe.png
--------------------------------------------------------------------------------
/static/js/loader.js:
--------------------------------------------------------------------------------
1 | function loader(){
2 | $('.overlay').show();
3 | $('.loader').show();
4 | }
5 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | bs4
2 | requests
3 | requests-futures
4 | flask
5 | pytest
6 | pytest-cov
7 | gunicorn
8 |
--------------------------------------------------------------------------------
/static/js/searchExpand.js:
--------------------------------------------------------------------------------
1 | $(document).ready(function() {
2 | $('.search').toggleClass('open');
3 | });
4 |
--------------------------------------------------------------------------------
/static/js/noty/noty.css.map:
--------------------------------------------------------------------------------
1 | {"version":3,"sources":[],"names":[],"mappings":"","file":"noty.css","sourceRoot":""}
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:alpine
2 | COPY . /app
3 | WORKDIR /app
4 | RUN pip install -r requirements.txt
5 | CMD gunicorn -w $(nproc --all) -b :8080 main:app
--------------------------------------------------------------------------------
/Dockerfile-arm64v8.rpi:
--------------------------------------------------------------------------------
1 | FROM balenalib/aarch64-alpine-python:3.7
2 | WORKDIR /usr/src/app
3 | COPY . .
4 | RUN pip install --no-cache-dir -r ./requirements.txt
5 | CMD gunicorn -w $(nproc --all) -b :80 main:app
--------------------------------------------------------------------------------
/Dockerfile-arm32v7.rpi:
--------------------------------------------------------------------------------
1 | FROM balenalib/raspberry-pi-alpine-python:3.7
2 | WORKDIR /usr/src/app
3 | COPY . .
4 | RUN pip install --no-cache-dir -r ./requirements.txt
5 | CMD gunicorn -w $(nproc --all) -b :80 main:app
--------------------------------------------------------------------------------
/circa10a-web-link-tester.yaml:
--------------------------------------------------------------------------------
1 | image: circa10a/web-link-tester:latest
2 | manifests:
3 | - image: circa10a/web-link-tester:latest-amd64
4 | platform:
5 | architecture: amd64
6 | os: linux
7 | - image: circa10a/web-link-tester:latest-arm32v7-rpi
8 | platform:
9 | architecture: arm
10 | variant: v7
11 | os: linux
12 | - image: circa10a/web-link-tester:latest-arm64v8-rpi
13 | platform:
14 | architecture: arm64
15 | variant: v8
16 | os: linux
--------------------------------------------------------------------------------
/static/js/submit.js:
--------------------------------------------------------------------------------
1 | function submit() {
2 | formVal = $('#textbox').val().length;
3 | if (formVal < 1) {
4 | new Noty({text: 'No Data Supplied!',
5 | type: 'error',
6 | theme: 'mint',
7 | layout: 'topCenter',
8 | closeWith : ['click'],
9 | progressBar : true,
10 | timeout : 10000,
11 | animation : {
12 | open : 'animated bounceInDown',
13 | close : 'animated bounceOutUp',
14 | easing: 'swing',
15 | }
16 | }).show();
17 | console.log(`Form data length is ${formVal}`);
18 | return false
19 | } else {
20 | $('#url').submit();
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/static/js/validateUrl.js:
--------------------------------------------------------------------------------
1 | function validateURL() {
2 | if (/^(http|https|ftp):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i.test($("#textbox").val())) {
3 | loader();
4 | } else {
5 | new Noty({
6 | text: 'Invalid URL!',
7 | type: 'error',
8 | theme: 'mint',
9 | layout: 'topCenter',
10 | closeWith: ['click'],
11 | progressBar: true,
12 | timeout: 10000,
13 | animation: {
14 | open: 'animated bounceInDown',
15 | close: 'animated bounceOutUp',
16 | easing: 'swing',
17 | }
18 | }).show();
19 | return false
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tests/test_link_test.py:
--------------------------------------------------------------------------------
1 | import json
2 | import pytest
3 | from lib.link_test import *
4 |
5 |
6 | def test_valid_protocol():
7 | assert valid_protocol("github.com") == False
8 | assert valid_protocol("http:/github.com") == False
9 | assert valid_protocol("https://github.com") == True
10 | assert valid_protocol("https:/github.com") == False
11 |
12 |
13 | def test_link_check():
14 | assert link_check("https://www.github.com")
15 |
16 |
17 | def test_linkCheck_fail():
18 | with pytest.raises(Exception):
19 | assert link_check("ThisDoesNotExist")
20 | assert link_check("http://ThisDoesNotExist.com")
21 | assert link_check("https://ThisDoesNotExist.com")
22 | assert link_check("http://www.ThisDoesNotExist.com")
23 | assert link_check("https://www.ThisDoesNotExist.com")
24 | assert link_check("https:/www.github.com")
25 |
26 |
27 | def test_validate_json():
28 | url = "https://github.com"
29 | test_pass_dict = {
30 | "url": url
31 | }
32 | test_pass_json = json.dumps(test_pass_dict)
33 | get_url_from_json = validate_json(json.loads(test_pass_json))
34 | assert get_url_from_json == url
35 |
36 |
37 | def test_validate_json_fail():
38 | with pytest.raises(Exception):
39 | url = "https://github.com"
40 | test_fail_dict = {
41 | "urlbad": url
42 | }
43 | test_fail_json = json.dumps(test_fail_dict)
44 | get_url_from_json = validate_json(json.loads(test_fail_json))
45 |
--------------------------------------------------------------------------------
/lib/link_test.py:
--------------------------------------------------------------------------------
1 | from bs4 import BeautifulSoup
2 | from flask import jsonify
3 | from requests_futures.sessions import FuturesSession
4 | import requests
5 | import sys
6 | import os
7 |
8 | num_workers = os.cpu_count() * 2
9 | session = FuturesSession(max_workers=num_workers)
10 |
11 |
12 | def valid_protocol(url):
13 | # Validate argument starts with http or https
14 | return url.startswith('http://') or url.startswith('https://')
15 |
16 |
17 | def link_check(url):
18 | try:
19 | r = requests.get(url)
20 | soup = BeautifulSoup(r.text, 'html.parser')
21 | jsonData = []
22 | urls = []
23 | futures = []
24 | for link in soup.find_all('a'):
25 | link = str(link.get('href'))
26 | link = link.replace("'", '"')
27 | if valid_protocol(link):
28 | urls.append(link)
29 | futures.append(session.get(urls.pop(0)))
30 | for future in futures:
31 | # Wait for results
32 | response = future.result()
33 | # Append keypairs
34 | jsonData.append(
35 | {'code': response.status_code, 'url': response.url})
36 | return jsonData
37 | except requests.ConnectionError:
38 | return jsonify({'error': 'unable to connect'})
39 | except requests.exceptions.MissingSchema:
40 | return jsonify({'error': 'missing http://'})
41 | except(Exception) as e:
42 | print(e)
43 | return jsonify({'error': 'unknown'})
44 |
45 |
46 | def validate_json(request_json):
47 | try:
48 | if request_json["url"]:
49 | return request_json["url"]
50 | except(Exception) as e:
51 | raise KeyError('url key not in json')
52 |
--------------------------------------------------------------------------------
/deploy.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | VERSION="1.0.0"
3 |
4 | # Docker
5 | USER='circa10a'
6 | PROJECT='web-link-tester'
7 | NAMESPACE="${USER}/${PROJECT}"
8 |
9 | # Docker experimental config
10 | echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
11 | [ -d ~/.docker ] || mkdir ~/.docker
12 | [ -f ~/.docker/config.json ] || touch ~/.docker/config.json
13 | echo '{"experimental":"enabled"}' | sudo tee ~/.docker/config.json
14 | sudo service docker restart
15 |
16 | # Auth
17 | echo $docker_password | docker login -u="$USER" --password-stdin
18 |
19 | # Latest x64
20 | docker build -t "${NAMESPACE}:latest" . && \
21 | docker push "${NAMESPACE}:latest" && \
22 | # Versioned x64
23 | docker tag "${NAMESPACE}:latest" "${NAMESPACE}:${VERSION}" && \
24 | docker push "${NAMESPACE}:${VERSION}" && \
25 | # x64 Arch
26 | docker tag "${NAMESPACE}:latest" "${NAMESPACE}:latest-amd64" && \
27 | docker push "${NAMESPACE}:latest-amd64"
28 |
29 | # prepare qemu for ARM builds
30 | docker run --rm --privileged multiarch/qemu-user-static:register --reset
31 |
32 | # ARM images
33 | for i in $(ls *.rpi); do
34 | arch="$(echo ${i} | cut -d- -f2 | cut -d. -f1)"
35 | # Latest
36 | docker build -f "./Dockerfile-${arch}.rpi" -t "${NAMESPACE}:latest-${arch}-rpi" . && \
37 | docker push "${NAMESPACE}:latest-${arch}-rpi" && \
38 | # Versioned
39 | docker tag "${NAMESPACE}:latest-${arch}-rpi" "${NAMESPACE}:${VERSION}-${arch}-rpi" && \
40 | docker push "${NAMESPACE}:${VERSION}-${arch}-rpi"
41 | done
42 |
43 | wget -O manifest-tool https://github.com/estesp/manifest-tool/releases/download/v0.9.0/manifest-tool-linux-amd64 && \
44 | chmod +x manifest-tool && \
45 | ./manifest-tool --username "$USER" --password "$docker_password" push from-spec "${USER}-${PROJECT}.yaml"
--------------------------------------------------------------------------------
/main.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 | from flask import Flask, request, render_template, jsonify
3 | from os import environ
4 | import lib.link_test as validate
5 | import sys
6 |
7 | app = Flask(__name__)
8 |
9 |
10 | @app.route('/')
11 | def index():
12 | return render_template('index.html')
13 |
14 |
15 | @app.route('/', methods=['POST'])
16 | def index_post():
17 | url = request.form['search']
18 | data = validate.link_check(url)
19 | if isinstance(data, list):
20 | keys = ['Code', 'URL']
21 | return render_template('index.html', data=data, keys=keys)
22 | else:
23 | return render_template('index.html', invalid_data=data)
24 |
25 |
26 | @app.route('/api', methods=['GET', 'POST'])
27 | def api():
28 | if request.method != 'POST':
29 | return jsonify({ "error": "Only POST allowed" })
30 |
31 | # json from body
32 | json = request.get_json()
33 |
34 | try:
35 | validate.validate_json(json)
36 | except:
37 | return jsonify({ "error": "Data is not in url key" })
38 |
39 | # check all links
40 | data = validate.linkCheck(json['url'])
41 | if isinstance(data, list):
42 | return jsonify({ 'links': data })
43 | else:
44 | return data
45 |
46 |
47 | @app.errorhandler(404)
48 | def page_not_found(e):
49 | code = '404'
50 | return render_template('error.html', code=code), 404
51 |
52 |
53 | @app.errorhandler(500)
54 | def internal_server_error(e):
55 | code = '500'
56 | return render_template('error.html', code=code), 500
57 |
58 |
59 | @app.errorhandler(503)
60 | def service_unavailable(e):
61 | code = '503'
62 | return render_template('error.html', code=code), 503
63 |
64 |
65 | if __name__ == '__main__':
66 | PORT = environ.get('PORT') or 8080
67 | if sys.version_info[0] < 3 and sys.version_info[1] < 2:
68 | print('Requires minimum Python 3.2')
69 | quit()
70 | app.run(host='0.0.0.0', port=PORT)
71 |
--------------------------------------------------------------------------------
/templates/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Link Tester
8 |
9 |
10 |
11 |
12 |
13 | Enter a URL to scrape & validate links:
14 |
15 |
16 |
17 |
18 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | {% if data %}
30 |
31 |
32 |
33 | {% for key in keys %}
34 | {{ key }} |
35 | {% endfor %}
36 |
37 |
38 |
39 | {% for dict_item in data %}
40 |
41 | {% for url in dict_item.values() %}
42 | |
43 | {{url}}
44 | |
45 | {% endfor %}
46 |
47 | {% endfor %}
48 |
49 |
50 | {% endif %}
51 |
52 | {% if invalid_data %}
53 |
68 | {% endif %}
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # web-link-tester
2 |
3 | 
4 | [](https://microbadger.com/images/circa10a/web-link-tester "Get your own image badge on microbadger.com")
5 | [](https://microbadger.com/images/circa10a/web-link-tester "Get your own version badge on microbadger.com")
6 |
7 | Asynchronous Flask App to scrape and validate links via GUI or REST API
8 |
9 | ## Usage
10 | Why use the web-link-tester?
11 |
12 | 1) Test your production site via GUI or programmatically to ensure no bad page routes or forgotten references.
13 | 2) It's free.
14 |
15 | ## To deploy the Web App/API
16 | ---
17 |
18 | ### Docker
19 |
20 | ```bash
21 | docker run -d --name link-tester -p 8080:8080 circa10a/web-link-tester
22 | ```
23 |
24 | Access via http://localhost:8080
25 |
26 | ### Python
27 |
28 | ```bash
29 | python main.py
30 | ```
31 |
32 | Access via http://localhost:8080
33 |
34 | > Set environment variable `PORT` locally to change listening port from `8080`
35 |
36 | ### API Usage
37 |
38 | ```bash
39 | curl -X POST -H "content-type: application/json" --data '{"url": "https://www.github.com"}' http://localhost:8080/api
40 | ```
41 |
42 | ### Example JSON Output
43 |
44 | ```bash
45 | $ curl -s -X POST -H "content-type: application/json" --data '{"url": "https://caleblemoine.dev"}' http://localhost:8080/api
46 |
47 | {
48 | "links": [
49 | {
50 | "code": 999,
51 | "url": "https://www.linkedin.com/in/caleblemoine/"
52 | },
53 | {
54 | "code": 200,
55 | "url": "https://github.com/circa10a"
56 | },
57 | {
58 | "code": 200,
59 | "url": "https://github.com/circa10a/express-jwt"
60 | },
61 | {
62 | "code": 200,
63 | "url": "https://github.com/pyouroboros/ouroboros"
64 | },
65 | {
66 | "code": 200,
67 | "url": "https://github.com/circa10a/filter-object-array"
68 | },
69 | {
70 | "code": 200,
71 | "url": "https://github.com/circa10a/easy-soap-request"
72 | },
73 | {
74 | "code": 200,
75 | "url": "https://medium.com/better-programming/how-to-perform-soap-requests-with-node-js-4a9627070eb6"
76 | },
77 | {
78 | "code": 200,
79 | "url": "https://github.com/circa10a/web-link-tester"
80 | },
81 | {
82 | "code": 200,
83 | "url": "https://github.com/circa10a/Device-Monitor-Dashboard"
84 | },
85 | {
86 | "code": 200,
87 | "url": "https://caleblemoine.dev/monitor/"
88 | },
89 | {
90 | "code": 200,
91 | "url": "https://hub.docker.com/u/circa10a"
92 | },
93 | {
94 | "code": 200,
95 | "url": "https://caleblemoine.dev/gitfolio/"
96 | },
97 | {
98 | "code": 999,
99 | "url": "https://www.linkedin.com/in/caleblemoine/"
100 | },
101 | ]
102 | }
103 | ```
104 |
105 | ### Stack
106 | - Utilizes gunicorn for multiple workers/threading.
107 | - Python 3
108 | - BeautifulSoup4
109 | - Jquery
110 |
111 | ## Screenshots
112 |
113 | 
114 | 
115 |
--------------------------------------------------------------------------------
/static/css/styles.css:
--------------------------------------------------------------------------------
1 | * {
2 | box-sizing: border-box;
3 | }
4 | h1 {
5 | color: #00FFDD;
6 | text-align: center;
7 | font-weight: lighter;
8 | font-size: 3em;
9 | font-family: sans-serif;
10 | }
11 | body {
12 | background: #2A2E37;
13 | font-weight: lighter;
14 | }
15 | ul {
16 | color: #00FFDD;
17 | text-align: center;
18 | font-weight: lighter;
19 | font-family: sans-serif;
20 | }
21 | a:link {
22 | color: #000;
23 | font-weight: lighter;
24 | font-family: sans-serif;
25 | }
26 | .loader,
27 | .loader:before,
28 | .loader:after {
29 | background: #ffffff;
30 | -webkit-animation: load1 1s infinite ease-in-out;
31 | animation: load1 1s infinite ease-in-out;
32 | width: 1em;
33 | height: 4em;
34 | z-index: 105;
35 | }
36 | .loader {
37 | display: none;
38 | color: #ffffff;
39 | text-indent: -9999em;
40 | margin: 88px auto;
41 | position: relative;
42 | font-size: 11px;
43 | -webkit-transform: translateZ(0);
44 | -ms-transform: translateZ(0);
45 | transform: translateZ(0);
46 | -webkit-animation-delay: -0.16s;
47 | animation-delay: -0.16s;
48 | s
49 | }
50 | .loader:before,
51 | .loader:after {
52 | position: absolute;
53 | top: 0;
54 | content: '';
55 | }
56 | .loader:before {
57 | left: -1.5em;
58 | -webkit-animation-delay: -0.32s;
59 | animation-delay: -0.32s;
60 | }
61 | .loader:after {
62 | left: 1.5em;
63 | }
64 | @-webkit-keyframes load1 {
65 | 0%, 80%, 100% {
66 | box-shadow: 0 0;
67 | height: 4em;
68 | }
69 | 40% {
70 | box-shadow: 0 -2em;
71 | height: 5em;
72 | }
73 | }
74 | @keyframes load1 {
75 | 0%, 80%, 100% {
76 | box-shadow: 0 0;
77 | height: 4em;
78 | }
79 | 40% {
80 | box-shadow: 0 -2em;
81 | height: 5em;
82 | }
83 | }
84 | .search {
85 | width: 100px;
86 | height: 100px;
87 | margin: 40px auto 0;
88 | background-color: #242628;
89 | position: relative;
90 | overflow: hidden;
91 | transition: all 0.5s ease;
92 | }
93 | .search:before {
94 | content: '';
95 | display: block;
96 | width: 3px;
97 | height: 100%;
98 | position: relative;
99 | background-color: #00FEDE;
100 | transition: all 0.5s ease;
101 | }
102 | .search.open {
103 | width: 420px;
104 | }
105 | .search.open:before {
106 | height: 60px;
107 | margin: 20px 0 20px 30px;
108 | position: absolute;
109 | }
110 | .search-box {
111 | width: 100%;
112 | height: 100%;
113 | box-shadow: none;
114 | border: none;
115 | background: transparent;
116 | color: #fff;
117 | padding: 20px 100px 20px 45px;
118 | font-size: 40px;
119 | }
120 | .search-box:focus {
121 | outline: none;
122 | }
123 | .search-button {
124 | width: 100px;
125 | height: 100px;
126 | display: block;
127 | position: absolute;
128 | right: 0;
129 | top: 0;
130 | padding: 20px;
131 | cursor: pointer;
132 | }
133 | .search-icon {
134 | width: 40px;
135 | height: 40px;
136 | border-radius: 40px;
137 | border: 3px solid #00FEDE;
138 | display: block;
139 | position: relative;
140 | margin-left: 5px;
141 | transition: all 0.5s ease;
142 | }
143 | .search-icon:before {
144 | content: '';
145 | width: 3px;
146 | height: 15px;
147 | position: absolute;
148 | right: -2px;
149 | top: 30px;
150 | display: block;
151 | background-color: #00FEDE;
152 | transform: rotate(-45deg);
153 | transition: all 0.5s ease;
154 | }
155 | .search-icon:after {
156 | content: '';
157 | width: 3px;
158 | height: 15px;
159 | position: absolute;
160 | right: -12px;
161 | top: 40px;
162 | display: block;
163 | background-color: #00FEDE;
164 | transform: rotate(-45deg);
165 | transition: all 0.5s ease;
166 | }
167 | .open .search-icon {
168 | margin: 0;
169 | width: 60px;
170 | height: 60px;
171 | border-radius: 60px;
172 | }
173 | .open .search-icon:before {
174 | transform: rotate(52deg);
175 | right: 22px;
176 | top: 23px;
177 | height: 18px;
178 | }
179 | .open .search-icon:after {
180 | transform: rotate(-230deg);
181 | right: 22px;
182 | top: 13px;
183 | height: 18px;
184 | }
185 | .overlay {
186 | background-color: #000;
187 | bottom: 0;
188 | display: none;
189 | left: 0;
190 | opacity: 0.5;
191 | filter: alpha(opacity 50);
192 | /* IE7 & 8 */
193 |
194 | position: fixed;
195 | right: 0;
196 | top: 0;
197 | z-index: 99;
198 | }
199 | .container th h1 {
200 | font-weight: lighter;
201 | font-size: 1em;
202 | text-align: left;
203 | color: #00FFDC;
204 | font-family: sans-serif;
205 | }
206 | .container td {
207 | font-weight: normal;
208 | font-size: 1em;
209 | -webkit-box-shadow: 0 2px 2px -2px #0E1119;
210 | -moz-box-shadow: 0 2px 2px -2px #0E1119;
211 | box-shadow: 0 2px 2px -2px #0E1119;
212 | }
213 | .container {
214 | text-align: left;
215 | overflow: hidden;
216 | width: 80%;
217 | margin: 0 auto;
218 | display: table;
219 | padding: 0 0 8em 0;
220 | }
221 | .container td,
222 | .container th {
223 | padding-bottom: 2%;
224 | padding-top: 2%;
225 | padding-left: 2%;
226 | }
227 | .container tr:nth-child(odd) {
228 | background-color: #dddddd;
229 | color: #000;
230 | font-family: sans-serif;
231 | font-weight: lighter;
232 | }
233 | .container tr:nth-child(even) {
234 | background-color: #fff;
235 | color: #fff;
236 | font-family: sans-serif;
237 | font-weight: lighter;
238 | }
239 | .container th {
240 | background-color: #1B1F22;
241 | color: #fff;
242 | font-family: sans-serif;
243 | font-weight: lighter;
244 | }
245 | .container td:first-child {
246 | color: #dddddd;
247 | font-family: sans-serif;
248 | font-weight: lighter;
249 | }
250 | @media (max-width: 800px) {
251 | .container td:nth-child(4),
252 | .container th:nth-child(4) {
253 | display: none;
254 | }
255 | }
256 |
--------------------------------------------------------------------------------
/templates/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
74 |
187 |
188 |
217 |
218 |
219 |
220 |
221 |
222 | {{ code }}
223 |
224 |
228 |
229 |
230 |
231 |
232 |
233 | You may want to head back to the homepage.
234 | If you think something is broken, report a problem.
235 |
236 |
237 |
241 |
242 |
243 |
244 |
357 |
358 |
359 |
360 |
361 |
--------------------------------------------------------------------------------
/static/js/noty/noty.css:
--------------------------------------------------------------------------------
1 | .noty_layout_mixin, #noty_layout__top, #noty_layout__topLeft, #noty_layout__topCenter, #noty_layout__topRight, #noty_layout__bottom, #noty_layout__bottomLeft, #noty_layout__bottomCenter, #noty_layout__bottomRight, #noty_layout__center, #noty_layout__centerLeft, #noty_layout__centerRight {
2 | position: fixed;
3 | margin: 0;
4 | padding: 0;
5 | z-index: 9999999;
6 | -webkit-transform: translateZ(0) scale(1, 1);
7 | transform: translateZ(0) scale(1, 1);
8 | -webkit-backface-visibility: hidden;
9 | backface-visibility: hidden;
10 | -webkit-font-smoothing: subpixel-antialiased;
11 | filter: blur(0);
12 | -webkit-filter: blur(0);
13 | max-width: 90%; }
14 |
15 | #noty_layout__top {
16 | top: 0;
17 | left: 5%;
18 | width: 90%; }
19 |
20 | #noty_layout__topLeft {
21 | top: 20px;
22 | left: 20px;
23 | width: 325px; }
24 |
25 | #noty_layout__topCenter {
26 | top: 5%;
27 | left: 50%;
28 | width: 325px;
29 | -webkit-transform: translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);
30 | transform: translate(calc(-50% - .5px)) translateZ(0) scale(1, 1); }
31 |
32 | #noty_layout__topRight {
33 | top: 20px;
34 | right: 20px;
35 | width: 325px; }
36 |
37 | #noty_layout__bottom {
38 | bottom: 0;
39 | left: 5%;
40 | width: 90%; }
41 |
42 | #noty_layout__bottomLeft {
43 | bottom: 20px;
44 | left: 20px;
45 | width: 325px; }
46 |
47 | #noty_layout__bottomCenter {
48 | bottom: 5%;
49 | left: 50%;
50 | width: 325px;
51 | -webkit-transform: translate(-webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);
52 | transform: translate(calc(-50% - .5px)) translateZ(0) scale(1, 1); }
53 |
54 | #noty_layout__bottomRight {
55 | bottom: 20px;
56 | right: 20px;
57 | width: 325px; }
58 |
59 | #noty_layout__center {
60 | top: 50%;
61 | left: 50%;
62 | width: 325px;
63 | -webkit-transform: translate(-webkit-calc(-50% - .5px), -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);
64 | transform: translate(calc(-50% - .5px), calc(-50% - .5px)) translateZ(0) scale(1, 1); }
65 |
66 | #noty_layout__centerLeft {
67 | top: 50%;
68 | left: 20px;
69 | width: 325px;
70 | -webkit-transform: translate(0, -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);
71 | transform: translate(0, calc(-50% - .5px)) translateZ(0) scale(1, 1); }
72 |
73 | #noty_layout__centerRight {
74 | top: 50%;
75 | right: 20px;
76 | width: 325px;
77 | -webkit-transform: translate(0, -webkit-calc(-50% - .5px)) translateZ(0) scale(1, 1);
78 | transform: translate(0, calc(-50% - .5px)) translateZ(0) scale(1, 1); }
79 |
80 | .noty_progressbar {
81 | display: none; }
82 |
83 | .noty_has_timeout.noty_has_progressbar .noty_progressbar {
84 | display: block;
85 | position: absolute;
86 | left: 0;
87 | bottom: 0;
88 | height: 3px;
89 | width: 100%;
90 | background-color: #646464;
91 | opacity: 0.2;
92 | filter: alpha(opacity=10); }
93 |
94 | .noty_bar {
95 | -webkit-backface-visibility: hidden;
96 | -webkit-transform: translate(0, 0) translateZ(0) scale(1, 1);
97 | -ms-transform: translate(0, 0) scale(1, 1);
98 | transform: translate(0, 0) scale(1, 1);
99 | -webkit-font-smoothing: subpixel-antialiased;
100 | overflow: hidden; }
101 |
102 | .noty_effects_open {
103 | opacity: 0;
104 | -webkit-transform: translate(50%);
105 | -ms-transform: translate(50%);
106 | transform: translate(50%);
107 | -webkit-animation: noty_anim_in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
108 | animation: noty_anim_in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
109 | -webkit-animation-fill-mode: forwards;
110 | animation-fill-mode: forwards; }
111 |
112 | .noty_effects_close {
113 | -webkit-animation: noty_anim_out 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
114 | animation: noty_anim_out 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
115 | -webkit-animation-fill-mode: forwards;
116 | animation-fill-mode: forwards; }
117 |
118 | .noty_fix_effects_height {
119 | -webkit-animation: noty_anim_height 75ms ease-out;
120 | animation: noty_anim_height 75ms ease-out; }
121 |
122 | .noty_close_with_click {
123 | cursor: pointer; }
124 |
125 | .noty_close_button {
126 | position: absolute;
127 | top: 2px;
128 | right: 2px;
129 | font-weight: bold;
130 | width: 20px;
131 | height: 20px;
132 | text-align: center;
133 | line-height: 20px;
134 | background-color: rgba(0, 0, 0, 0.05);
135 | border-radius: 2px;
136 | cursor: pointer;
137 | -webkit-transition: all .2s ease-out;
138 | transition: all .2s ease-out; }
139 |
140 | .noty_close_button:hover {
141 | background-color: rgba(0, 0, 0, 0.1); }
142 |
143 | .noty_modal {
144 | position: fixed;
145 | width: 100%;
146 | height: 100%;
147 | background-color: #000;
148 | z-index: 10000;
149 | opacity: .3;
150 | left: 0;
151 | top: 0; }
152 |
153 | .noty_modal.noty_modal_open {
154 | opacity: 0;
155 | -webkit-animation: noty_modal_in .3s ease-out;
156 | animation: noty_modal_in .3s ease-out; }
157 |
158 | .noty_modal.noty_modal_close {
159 | -webkit-animation: noty_modal_out .3s ease-out;
160 | animation: noty_modal_out .3s ease-out;
161 | -webkit-animation-fill-mode: forwards;
162 | animation-fill-mode: forwards; }
163 |
164 | @-webkit-keyframes noty_modal_in {
165 | 100% {
166 | opacity: .3; } }
167 |
168 | @keyframes noty_modal_in {
169 | 100% {
170 | opacity: .3; } }
171 |
172 | @-webkit-keyframes noty_modal_out {
173 | 100% {
174 | opacity: 0; } }
175 |
176 | @keyframes noty_modal_out {
177 | 100% {
178 | opacity: 0; } }
179 |
180 | @keyframes noty_modal_out {
181 | 100% {
182 | opacity: 0; } }
183 |
184 | @-webkit-keyframes noty_anim_in {
185 | 100% {
186 | -webkit-transform: translate(0);
187 | transform: translate(0);
188 | opacity: 1; } }
189 |
190 | @keyframes noty_anim_in {
191 | 100% {
192 | -webkit-transform: translate(0);
193 | transform: translate(0);
194 | opacity: 1; } }
195 |
196 | @-webkit-keyframes noty_anim_out {
197 | 100% {
198 | -webkit-transform: translate(50%);
199 | transform: translate(50%);
200 | opacity: 0; } }
201 |
202 | @keyframes noty_anim_out {
203 | 100% {
204 | -webkit-transform: translate(50%);
205 | transform: translate(50%);
206 | opacity: 0; } }
207 |
208 | @-webkit-keyframes noty_anim_height {
209 | 100% {
210 | height: 0; } }
211 |
212 | @keyframes noty_anim_height {
213 | 100% {
214 | height: 0; } }
215 |
216 | .noty_theme__relax.noty_bar {
217 | margin: 4px 0;
218 | overflow: hidden;
219 | border-radius: 2px;
220 | position: relative; }
221 | .noty_theme__relax.noty_bar .noty_body {
222 | padding: 10px; }
223 | .noty_theme__relax.noty_bar .noty_buttons {
224 | border-top: 1px solid #e7e7e7;
225 | padding: 5px 10px; }
226 |
227 | .noty_theme__relax.noty_type__alert,
228 | .noty_theme__relax.noty_type__notification {
229 | background-color: #fff;
230 | border: 1px solid #dedede;
231 | color: #444; }
232 |
233 | .noty_theme__relax.noty_type__warning {
234 | background-color: #FFEAA8;
235 | border: 1px solid #FFC237;
236 | color: #826200; }
237 | .noty_theme__relax.noty_type__warning .noty_buttons {
238 | border-color: #dfaa30; }
239 |
240 | .noty_theme__relax.noty_type__error {
241 | background-color: #FF8181;
242 | border: 1px solid #e25353;
243 | color: #FFF; }
244 | .noty_theme__relax.noty_type__error .noty_buttons {
245 | border-color: darkred; }
246 |
247 | .noty_theme__relax.noty_type__info,
248 | .noty_theme__relax.noty_type__information {
249 | background-color: #78C5E7;
250 | border: 1px solid #3badd6;
251 | color: #FFF; }
252 | .noty_theme__relax.noty_type__info .noty_buttons,
253 | .noty_theme__relax.noty_type__information .noty_buttons {
254 | border-color: #0B90C4; }
255 |
256 | .noty_theme__relax.noty_type__success {
257 | background-color: #BCF5BC;
258 | border: 1px solid #7cdd77;
259 | color: darkgreen; }
260 | .noty_theme__relax.noty_type__success .noty_buttons {
261 | border-color: #50C24E; }
262 |
263 | .noty_theme__metroui.noty_bar {
264 | margin: 4px 0;
265 | overflow: hidden;
266 | position: relative;
267 | box-shadow: rgba(0, 0, 0, 0.298039) 0 0 5px 0; }
268 | .noty_theme__metroui.noty_bar .noty_progressbar {
269 | position: absolute;
270 | left: 0;
271 | bottom: 0;
272 | height: 3px;
273 | width: 100%;
274 | background-color: #000;
275 | opacity: 0.2;
276 | filter: alpha(opacity=20); }
277 | .noty_theme__metroui.noty_bar .noty_body {
278 | padding: 1.25em;
279 | font-size: 14px; }
280 | .noty_theme__metroui.noty_bar .noty_buttons {
281 | padding: 0 10px .5em 10px; }
282 |
283 | .noty_theme__metroui.noty_type__alert,
284 | .noty_theme__metroui.noty_type__notification {
285 | background-color: #fff;
286 | color: #1d1d1d; }
287 |
288 | .noty_theme__metroui.noty_type__warning {
289 | background-color: #FA6800;
290 | color: #fff; }
291 |
292 | .noty_theme__metroui.noty_type__error {
293 | background-color: #CE352C;
294 | color: #FFF; }
295 |
296 | .noty_theme__metroui.noty_type__info,
297 | .noty_theme__metroui.noty_type__information {
298 | background-color: #1BA1E2;
299 | color: #FFF; }
300 |
301 | .noty_theme__metroui.noty_type__success {
302 | background-color: #60A917;
303 | color: #fff; }
304 |
305 | .noty_theme__mint.noty_bar {
306 | margin: 4px 0;
307 | overflow: hidden;
308 | border-radius: 2px;
309 | position: relative; }
310 | .noty_theme__mint.noty_bar .noty_body {
311 | padding: 10px;
312 | font-size: 14px; }
313 | .noty_theme__mint.noty_bar .noty_buttons {
314 | padding: 10px; }
315 |
316 | .noty_theme__mint.noty_type__alert,
317 | .noty_theme__mint.noty_type__notification {
318 | background-color: #fff;
319 | border-bottom: 1px solid #D1D1D1;
320 | color: #2F2F2F; }
321 |
322 | .noty_theme__mint.noty_type__warning {
323 | background-color: #FFAE42;
324 | border-bottom: 1px solid #E89F3C;
325 | color: #fff; }
326 |
327 | .noty_theme__mint.noty_type__error {
328 | background-color: #DE636F;
329 | border-bottom: 1px solid #CA5A65;
330 | color: #fff; }
331 |
332 | .noty_theme__mint.noty_type__info,
333 | .noty_theme__mint.noty_type__information {
334 | background-color: #7F7EFF;
335 | border-bottom: 1px solid #7473E8;
336 | color: #fff; }
337 |
338 | .noty_theme__mint.noty_type__success {
339 | background-color: #AFC765;
340 | border-bottom: 1px solid #A0B55C;
341 | color: #fff; }
342 |
343 | .noty_theme__sunset.noty_bar {
344 | margin: 4px 0;
345 | overflow: hidden;
346 | border-radius: 2px;
347 | position: relative; }
348 | .noty_theme__sunset.noty_bar .noty_body {
349 | padding: 10px;
350 | font-size: 14px;
351 | text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1); }
352 | .noty_theme__sunset.noty_bar .noty_buttons {
353 | padding: 10px; }
354 |
355 | .noty_theme__sunset.noty_type__alert,
356 | .noty_theme__sunset.noty_type__notification {
357 | background-color: #073B4C;
358 | color: #fff; }
359 | .noty_theme__sunset.noty_type__alert .noty_progressbar,
360 | .noty_theme__sunset.noty_type__notification .noty_progressbar {
361 | background-color: #fff; }
362 |
363 | .noty_theme__sunset.noty_type__warning {
364 | background-color: #FFD166;
365 | color: #fff; }
366 |
367 | .noty_theme__sunset.noty_type__error {
368 | background-color: #EF476F;
369 | color: #fff; }
370 | .noty_theme__sunset.noty_type__error .noty_progressbar {
371 | opacity: .4; }
372 |
373 | .noty_theme__sunset.noty_type__info,
374 | .noty_theme__sunset.noty_type__information {
375 | background-color: #118AB2;
376 | color: #fff; }
377 | .noty_theme__sunset.noty_type__info .noty_progressbar,
378 | .noty_theme__sunset.noty_type__information .noty_progressbar {
379 | opacity: .6; }
380 |
381 | .noty_theme__sunset.noty_type__success {
382 | background-color: #06D6A0;
383 | color: #fff; }
384 |
385 | .noty_theme__bootstrap-v3.noty_bar {
386 | margin: 4px 0;
387 | overflow: hidden;
388 | position: relative;
389 | border: 1px solid transparent;
390 | border-radius: 4px; }
391 | .noty_theme__bootstrap-v3.noty_bar .noty_body {
392 | padding: 15px; }
393 | .noty_theme__bootstrap-v3.noty_bar .noty_buttons {
394 | padding: 10px; }
395 | .noty_theme__bootstrap-v3.noty_bar .noty_close_button {
396 | font-size: 21px;
397 | font-weight: 700;
398 | line-height: 1;
399 | color: #000;
400 | text-shadow: 0 1px 0 #fff;
401 | filter: alpha(opacity=20);
402 | opacity: .2;
403 | background: transparent; }
404 | .noty_theme__bootstrap-v3.noty_bar .noty_close_button:hover {
405 | background: transparent;
406 | text-decoration: none;
407 | cursor: pointer;
408 | filter: alpha(opacity=50);
409 | opacity: .5; }
410 |
411 | .noty_theme__bootstrap-v3.noty_type__alert,
412 | .noty_theme__bootstrap-v3.noty_type__notification {
413 | background-color: #fff;
414 | color: inherit; }
415 |
416 | .noty_theme__bootstrap-v3.noty_type__warning {
417 | background-color: #fcf8e3;
418 | color: #8a6d3b;
419 | border-color: #faebcc; }
420 |
421 | .noty_theme__bootstrap-v3.noty_type__error {
422 | background-color: #f2dede;
423 | color: #a94442;
424 | border-color: #ebccd1; }
425 |
426 | .noty_theme__bootstrap-v3.noty_type__info,
427 | .noty_theme__bootstrap-v3.noty_type__information {
428 | background-color: #d9edf7;
429 | color: #31708f;
430 | border-color: #bce8f1; }
431 |
432 | .noty_theme__bootstrap-v3.noty_type__success {
433 | background-color: #dff0d8;
434 | color: #3c763d;
435 | border-color: #d6e9c6; }
436 |
437 | .noty_theme__bootstrap-v4.noty_bar {
438 | margin: 4px 0;
439 | overflow: hidden;
440 | position: relative;
441 | border: 1px solid transparent;
442 | border-radius: .25rem; }
443 | .noty_theme__bootstrap-v4.noty_bar .noty_body {
444 | padding: .75rem 1.25rem; }
445 | .noty_theme__bootstrap-v4.noty_bar .noty_buttons {
446 | padding: 10px; }
447 | .noty_theme__bootstrap-v4.noty_bar .noty_close_button {
448 | font-size: 1.5rem;
449 | font-weight: 700;
450 | line-height: 1;
451 | color: #000;
452 | text-shadow: 0 1px 0 #fff;
453 | filter: alpha(opacity=20);
454 | opacity: .5;
455 | background: transparent; }
456 | .noty_theme__bootstrap-v4.noty_bar .noty_close_button:hover {
457 | background: transparent;
458 | text-decoration: none;
459 | cursor: pointer;
460 | filter: alpha(opacity=50);
461 | opacity: .75; }
462 |
463 | .noty_theme__bootstrap-v4.noty_type__alert,
464 | .noty_theme__bootstrap-v4.noty_type__notification {
465 | background-color: #fff;
466 | color: inherit; }
467 |
468 | .noty_theme__bootstrap-v4.noty_type__warning {
469 | background-color: #fcf8e3;
470 | color: #8a6d3b;
471 | border-color: #faebcc; }
472 |
473 | .noty_theme__bootstrap-v4.noty_type__error {
474 | background-color: #f2dede;
475 | color: #a94442;
476 | border-color: #ebccd1; }
477 |
478 | .noty_theme__bootstrap-v4.noty_type__info,
479 | .noty_theme__bootstrap-v4.noty_type__information {
480 | background-color: #d9edf7;
481 | color: #31708f;
482 | border-color: #bce8f1; }
483 |
484 | .noty_theme__bootstrap-v4.noty_type__success {
485 | background-color: #dff0d8;
486 | color: #3c763d;
487 | border-color: #d6e9c6; }
488 |
489 | .noty_theme__semanticui.noty_bar {
490 | margin: 4px 0;
491 | overflow: hidden;
492 | position: relative;
493 | border: 1px solid transparent;
494 | font-size: 1em;
495 | border-radius: .28571429rem;
496 | box-shadow: 0 0 0 1px rgba(34, 36, 38, 0.22) inset, 0 0 0 0 transparent; }
497 | .noty_theme__semanticui.noty_bar .noty_body {
498 | padding: 1em 1.5em;
499 | line-height: 1.4285em; }
500 | .noty_theme__semanticui.noty_bar .noty_buttons {
501 | padding: 10px; }
502 |
503 | .noty_theme__semanticui.noty_type__alert,
504 | .noty_theme__semanticui.noty_type__notification {
505 | background-color: #f8f8f9;
506 | color: rgba(0, 0, 0, 0.87); }
507 |
508 | .noty_theme__semanticui.noty_type__warning {
509 | background-color: #fffaf3;
510 | color: #573a08;
511 | box-shadow: 0 0 0 1px #c9ba9b inset, 0 0 0 0 transparent; }
512 |
513 | .noty_theme__semanticui.noty_type__error {
514 | background-color: #fff6f6;
515 | color: #9f3a38;
516 | box-shadow: 0 0 0 1px #e0b4b4 inset, 0 0 0 0 transparent; }
517 |
518 | .noty_theme__semanticui.noty_type__info,
519 | .noty_theme__semanticui.noty_type__information {
520 | background-color: #f8ffff;
521 | color: #276f86;
522 | box-shadow: 0 0 0 1px #a9d5de inset, 0 0 0 0 transparent; }
523 |
524 | .noty_theme__semanticui.noty_type__success {
525 | background-color: #fcfff5;
526 | color: #2c662d;
527 | box-shadow: 0 0 0 1px #a3c293 inset, 0 0 0 0 transparent; }
528 |
529 | .noty_theme__nest.noty_bar {
530 | margin: 0 0 15px 0;
531 | overflow: hidden;
532 | border-radius: 2px;
533 | position: relative;
534 | box-shadow: rgba(0, 0, 0, 0.098039) 5px 4px 10px 0; }
535 | .noty_theme__nest.noty_bar .noty_body {
536 | padding: 10px;
537 | font-size: 14px;
538 | text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1); }
539 | .noty_theme__nest.noty_bar .noty_buttons {
540 | padding: 10px; }
541 |
542 | .noty_layout .noty_theme__nest.noty_bar {
543 | z-index: 5; }
544 |
545 | .noty_layout .noty_theme__nest.noty_bar:nth-child(2) {
546 | position: absolute;
547 | top: 0;
548 | margin-top: 4px;
549 | margin-right: -4px;
550 | margin-left: 4px;
551 | z-index: 4;
552 | width: 100%; }
553 |
554 | .noty_layout .noty_theme__nest.noty_bar:nth-child(3) {
555 | position: absolute;
556 | top: 0;
557 | margin-top: 8px;
558 | margin-right: -8px;
559 | margin-left: 8px;
560 | z-index: 3;
561 | width: 100%; }
562 |
563 | .noty_layout .noty_theme__nest.noty_bar:nth-child(4) {
564 | position: absolute;
565 | top: 0;
566 | margin-top: 12px;
567 | margin-right: -12px;
568 | margin-left: 12px;
569 | z-index: 2;
570 | width: 100%; }
571 |
572 | .noty_layout .noty_theme__nest.noty_bar:nth-child(5) {
573 | position: absolute;
574 | top: 0;
575 | margin-top: 16px;
576 | margin-right: -16px;
577 | margin-left: 16px;
578 | z-index: 1;
579 | width: 100%; }
580 |
581 | .noty_layout .noty_theme__nest.noty_bar:nth-child(n+6) {
582 | position: absolute;
583 | top: 0;
584 | margin-top: 20px;
585 | margin-right: -20px;
586 | margin-left: 20px;
587 | z-index: -1;
588 | width: 100%; }
589 |
590 | #noty_layout__bottomLeft .noty_theme__nest.noty_bar:nth-child(2),
591 | #noty_layout__topLeft .noty_theme__nest.noty_bar:nth-child(2) {
592 | margin-top: 4px;
593 | margin-left: -4px;
594 | margin-right: 4px; }
595 |
596 | #noty_layout__bottomLeft .noty_theme__nest.noty_bar:nth-child(3),
597 | #noty_layout__topLeft .noty_theme__nest.noty_bar:nth-child(3) {
598 | margin-top: 8px;
599 | margin-left: -8px;
600 | margin-right: 8px; }
601 |
602 | #noty_layout__bottomLeft .noty_theme__nest.noty_bar:nth-child(4),
603 | #noty_layout__topLeft .noty_theme__nest.noty_bar:nth-child(4) {
604 | margin-top: 12px;
605 | margin-left: -12px;
606 | margin-right: 12px; }
607 |
608 | #noty_layout__bottomLeft .noty_theme__nest.noty_bar:nth-child(5),
609 | #noty_layout__topLeft .noty_theme__nest.noty_bar:nth-child(5) {
610 | margin-top: 16px;
611 | margin-left: -16px;
612 | margin-right: 16px; }
613 |
614 | #noty_layout__bottomLeft .noty_theme__nest.noty_bar:nth-child(n+6),
615 | #noty_layout__topLeft .noty_theme__nest.noty_bar:nth-child(n+6) {
616 | margin-top: 20px;
617 | margin-left: -20px;
618 | margin-right: 20px; }
619 |
620 | .noty_theme__nest.noty_type__alert,
621 | .noty_theme__nest.noty_type__notification {
622 | background-color: #073B4C;
623 | color: #fff; }
624 | .noty_theme__nest.noty_type__alert .noty_progressbar,
625 | .noty_theme__nest.noty_type__notification .noty_progressbar {
626 | background-color: #fff; }
627 |
628 | .noty_theme__nest.noty_type__warning {
629 | background-color: #FFD166;
630 | color: #fff; }
631 |
632 | .noty_theme__nest.noty_type__error {
633 | background-color: #EF476F;
634 | color: #fff; }
635 | .noty_theme__nest.noty_type__error .noty_progressbar {
636 | opacity: .4; }
637 |
638 | .noty_theme__nest.noty_type__info,
639 | .noty_theme__nest.noty_type__information {
640 | background-color: #118AB2;
641 | color: #fff; }
642 | .noty_theme__nest.noty_type__info .noty_progressbar,
643 | .noty_theme__nest.noty_type__information .noty_progressbar {
644 | opacity: .6; }
645 |
646 | .noty_theme__nest.noty_type__success {
647 | background-color: #06D6A0;
648 | color: #fff; }
649 |
650 | /*# sourceMappingURL=noty.css.map*/
--------------------------------------------------------------------------------
/static/js/noty/noty.min.js:
--------------------------------------------------------------------------------
1 | /*
2 | @package NOTY - Dependency-free notification library
3 | @version version: 3.1.3
4 | @contributors https://github.com/needim/noty/graphs/contributors
5 | @documentation Examples and Documentation - http://needim.github.com/noty
6 | @license Licensed under the MIT licenses: http://www.opensource.org/licenses/mit-license.php
7 | */
8 |
9 | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Noty",[],e):"object"==typeof exports?exports.Noty=e():t.Noty=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([function(t,e,n){"use strict";function o(t,e,n){var o=void 0;if(!n){for(o in e)if(e.hasOwnProperty(o)&&e[o]===t)return!0}else for(o in e)if(e.hasOwnProperty(o)&&e[o]===t)return!0;return!1}function i(t){t=t||window.event,void 0!==t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="noty_"+t+"_";return e+="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function s(t){var e=t.offsetHeight,n=window.getComputedStyle(t);return e+=parseInt(n.marginTop)+parseInt(n.marginBottom)}function u(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e=e.split(" ");for(var i=0;i=0}function c(t,e){var n=f(t),o=n+e;a(n,e)||(t.className=o.substring(1))}function l(t,e){var n=f(t),o=void 0;a(t,e)&&(o=n.replace(" "+e+" "," "),t.className=o.substring(1,o.length-1))}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t){return(" "+(t&&t.className||"")+" ").replace(/\s+/gi," ")}function h(){function t(){b.PageHidden=document[s],o()}function e(){b.PageHidden=!0,o()}function n(){b.PageHidden=!1,o()}function o(){b.PageHidden?i():r()}function i(){setTimeout(function(){Object.keys(b.Store).forEach(function(t){b.Store.hasOwnProperty(t)&&b.Store[t].options.visibilityControl&&b.Store[t].stop()})},100)}function r(){setTimeout(function(){Object.keys(b.Store).forEach(function(t){b.Store.hasOwnProperty(t)&&b.Store[t].options.visibilityControl&&b.Store[t].resume()}),b.queueRenderAll()},100)}var s=void 0,a=void 0;void 0!==document.hidden?(s="hidden",a="visibilitychange"):void 0!==document.msHidden?(s="msHidden",a="msvisibilitychange"):void 0!==document.webkitHidden&&(s="webkitHidden",a="webkitvisibilitychange"),u(document,a,t),u(window,"blur",e),u(window,"focus",n)}function p(t){if(t.hasSound){var e=document.createElement("audio");t.options.sounds.sources.forEach(function(t){var n=document.createElement("source");n.src=t,n.type="audio/"+m(t),e.appendChild(n)}),t.barDom?t.barDom.appendChild(e):document.querySelector("body").appendChild(e),e.volume=t.options.sounds.volume,t.soundPlayed||(e.play(),t.soundPlayed=!0),e.onended=function(){d(e)}}}function m(t){return t.match(/\.([^.]+)$/)[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.css=e.deepExtend=e.animationEndEvents=void 0;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.inArray=o,e.stopPropagation=i,e.generateID=r,e.outerHeight=s,e.addListener=u,e.hasClass=a,e.addClass=c,e.removeClass=l,e.remove=d,e.classList=f,e.visibilityChangeFlow=h,e.createAudioElements=p;var y=n(1),b=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(y);e.animationEndEvents="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e.deepExtend=function t(e){e=e||{};for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:"global",e=0,n=x;return E.hasOwnProperty(t)&&(n=E[t].maxVisible,Object.keys(P).forEach(function(n){P[n].options.queue!==t||P[n].closed||e++})),{current:e,maxVisible:n}}function i(t){E.hasOwnProperty(t.options.queue)||(E[t.options.queue]={maxVisible:x,queue:[]}),E[t.options.queue].queue.push(t)}function r(t){if(E.hasOwnProperty(t.options.queue)){var e=[];Object.keys(E[t.options.queue].queue).forEach(function(n){E[t.options.queue].queue[n].id!==t.id&&e.push(E[t.options.queue].queue[n])}),E[t.options.queue].queue=e}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global";if(E.hasOwnProperty(t)){var e=E[t].queue.shift();e&&e.show()}}function u(){Object.keys(E).forEach(function(t){s(t)})}function a(t){var e=k.generateID("ghost"),n=document.createElement("div");n.setAttribute("id",e),k.css(n,{height:k.outerHeight(t.barDom)+"px"}),t.barDom.insertAdjacentHTML("afterend",n.outerHTML),k.remove(t.barDom),n=document.getElementById(e),k.addClass(n,"noty_fix_effects_height"),k.addListener(n,k.animationEndEvents,function(){k.remove(n)})}function c(t){m(t);var e=''+t.options.text+"
"+d(t)+'';t.barDom=document.createElement("div"),t.barDom.setAttribute("id",t.id),k.addClass(t.barDom,"noty_bar noty_type__"+t.options.type+" noty_theme__"+t.options.theme),t.barDom.innerHTML=e,b(t,"onTemplate")}function l(t){return!(!t.options.buttons||!Object.keys(t.options.buttons).length)}function d(t){if(l(t)){var e=document.createElement("div");return k.addClass(e,"noty_buttons"),Object.keys(t.options.buttons).forEach(function(n){e.appendChild(t.options.buttons[n].dom)}),t.options.buttons.forEach(function(t){e.appendChild(t.dom)}),e.outerHTML}return""}function f(t){t.options.modal&&(0===C&&p(),e.DocModalCount=C+=1)}function h(t){if(t.options.modal&&C>0&&(e.DocModalCount=C-=1,C<=0)){var n=document.querySelector(".noty_modal");n&&(k.removeClass(n,"noty_modal_open"),k.addClass(n,"noty_modal_close"),k.addListener(n,k.animationEndEvents,function(){k.remove(n)}))}}function p(){var t=document.querySelector("body"),e=document.createElement("div");k.addClass(e,"noty_modal"),t.insertBefore(e,t.firstChild),k.addClass(e,"noty_modal_open"),k.addListener(e,k.animationEndEvents,function(){k.removeClass(e,"noty_modal_open")})}function m(t){if(t.options.container)return void(t.layoutDom=document.querySelector(t.options.container));var e="noty_layout__"+t.options.layout;t.layoutDom=document.querySelector("div#"+e),t.layoutDom||(t.layoutDom=document.createElement("div"),t.layoutDom.setAttribute("id",e),k.addClass(t.layoutDom,"noty_layout"),document.querySelector("body").appendChild(t.layoutDom))}function v(t){t.options.timeout&&(t.options.progressBar&&t.progressDom&&k.css(t.progressDom,{transition:"width "+t.options.timeout+"ms linear",width:"0%"}),clearTimeout(t.closeTimer),t.closeTimer=setTimeout(function(){t.close()},t.options.timeout))}function y(t){t.options.timeout&&t.closeTimer&&(clearTimeout(t.closeTimer),t.closeTimer=-1,t.options.progressBar&&t.progressDom&&k.css(t.progressDom,{transition:"width 0ms linear",width:"100%"}))}function b(t,e){t.listeners.hasOwnProperty(e)&&t.listeners[e].forEach(function(e){"function"==typeof e&&e.apply(t)})}function w(t){b(t,"afterShow"),v(t),k.addListener(t.barDom,"mouseenter",function(){y(t)}),k.addListener(t.barDom,"mouseleave",function(){v(t)})}function g(t){delete P[t.id],t.closing=!1,b(t,"afterClose"),k.remove(t.barDom),0!==t.layoutDom.querySelectorAll(".noty_bar").length||t.options.container||k.remove(t.layoutDom),(k.inArray("docVisible",t.options.titleCount.conditions)||k.inArray("docHidden",t.options.titleCount.conditions))&&D.decrement(),s(t.options.queue)}Object.defineProperty(e,"__esModule",{value:!0}),e.Defaults=e.Store=e.Queues=e.DefaultMaxVisible=e.docTitle=e.DocModalCount=e.PageHidden=void 0,e.getQueueCounts=o,e.addToQueue=i,e.removeFromQueue=r,e.queueRender=s,e.queueRenderAll=u,e.ghostFix=a,e.build=c,e.hasButtons=l,e.handleModal=f,e.handleModalClose=h,e.queueClose=v,e.dequeueClose=y,e.fire=b,e.openFlow=w,e.closeFlow=g;var _=n(0),k=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(_),C=(e.PageHidden=!1,e.DocModalCount=0),S={originalTitle:null,count:0,changed:!1,timer:-1},D=e.docTitle={increment:function(){S.count++,D._update()},decrement:function(){if(--S.count<=0)return void D._clear();D._update()},_update:function(){var t=document.title;S.changed?document.title="("+S.count+") "+S.originalTitle:(S.originalTitle=t,document.title="("+S.count+") "+t,S.changed=!0)},_clear:function(){S.changed&&(S.count=0,document.title=S.originalTitle,S.changed=!1)}},x=e.DefaultMaxVisible=5,E=e.Queues={global:{maxVisible:x,queue:[]}},P=e.Store={};e.Defaults={type:"alert",layout:"topRight",theme:"mint",text:"",timeout:!1,progressBar:!0,closeWith:["click"],animation:{open:"noty_effects_open",close:"noty_effects_close"},id:!1,force:!1,killer:!1,queue:"global",container:!1,buttons:[],callbacks:{beforeShow:null,onShow:null,afterShow:null,onClose:null,afterClose:null,onClick:null,onHover:null,onTemplate:null},sounds:{sources:[],volume:1,conditions:[]},titleCount:{conditions:[]},modal:!1,visibilityControl:!1}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.NotyButton=void 0;var i=n(0),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(i);e.NotyButton=function t(e,n,i){var s=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o(this,t),this.dom=document.createElement("button"),this.dom.innerHTML=e,this.id=u.id=u.id||r.generateID("button"),this.cb=i,Object.keys(u).forEach(function(t){s.dom.setAttribute(t,u[t])}),r.addClass(this.dom,n||"noty_btn"),this}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"/service-worker.js";return o(this,t),this.subData={},this.workerPath=e,this.listeners={onPermissionGranted:[],onPermissionDenied:[],onSubscriptionSuccess:[],onSubscriptionCancel:[],onWorkerError:[],onWorkerSuccess:[],onWorkerNotSupported:[]},this}return i(t,[{key:"on",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"fire",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.listeners.hasOwnProperty(t)&&this.listeners[t].forEach(function(t){"function"==typeof t&&t.apply(e,n)})}},{key:"create",value:function(){console.log("NOT IMPLEMENTED YET")}},{key:"isSupported",value:function(){var t=!1;try{t=window.Notification||window.webkitNotifications||navigator.mozNotification||window.external&&void 0!==window.external.msIsSiteMode()}catch(t){}return t}},{key:"getPermissionStatus",value:function(){var t="default";if(window.Notification&&window.Notification.permissionLevel)t=window.Notification.permissionLevel;else if(window.webkitNotifications&&window.webkitNotifications.checkPermission)switch(window.webkitNotifications.checkPermission()){case 1:t="default";break;case 0:t="granted";break;default:t="denied"}else window.Notification&&window.Notification.permission?t=window.Notification.permission:navigator.mozNotification?t="granted":window.external&&void 0!==window.external.msIsSiteMode()&&(t=window.external.msIsSiteMode()?"granted":"default");return t.toString().toLowerCase()}},{key:"getEndpoint",value:function(t){var e=t.endpoint,n=t.subscriptionId;return n&&-1===e.indexOf(n)&&(e+="/"+n),e}},{key:"isSWRegistered",value:function(){try{return"activated"===navigator.serviceWorker.controller.state}catch(t){return!1}}},{key:"unregisterWorker",value:function(){var t=this;"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(function(e){var n=!0,o=!1,i=void 0;try{for(var r,s=e[Symbol.iterator]();!(n=(r=s.next()).done);n=!0){r.value.unregister(),t.fire("onSubscriptionCancel")}}catch(t){o=!0,i=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}})}},{key:"requestSubscription",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this,o=this.getPermissionStatus(),i=function(o){"granted"===o?(t.fire("onPermissionGranted"),"serviceWorker"in navigator?navigator.serviceWorker.register(t.workerPath).then(function(){navigator.serviceWorker.ready.then(function(t){n.fire("onWorkerSuccess"),t.pushManager.subscribe({userVisibleOnly:e}).then(function(t){var e=t.getKey("p256dh"),o=t.getKey("auth");n.subData={endpoint:n.getEndpoint(t),p256dh:e?window.btoa(String.fromCharCode.apply(null,new Uint8Array(e))):null,auth:o?window.btoa(String.fromCharCode.apply(null,new Uint8Array(o))):null},n.fire("onSubscriptionSuccess",[n.subData])}).catch(function(t){n.fire("onWorkerError",[t])})})}):n.fire("onWorkerNotSupported")):"denied"===o&&(t.fire("onPermissionDenied"),t.unregisterWorker())};"default"===o?window.Notification&&window.Notification.requestPermission?window.Notification.requestPermission(i):window.webkitNotifications&&window.webkitNotifications.checkPermission&&window.webkitNotifications.requestPermission(i):i(o)}}]),t}()},function(t,e,n){(function(e,o){/*!
10 | * @overview es6-promise - a tiny implementation of Promises/A+.
11 | * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
12 | * @license Licensed under MIT license
13 | * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
14 | * @version 4.1.0
15 | */
16 | !function(e,n){t.exports=n()}(0,function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function i(t){return"function"==typeof t}function r(t){z=t}function s(t){U=t}function u(){return void 0!==R?function(){R(c)}:a()}function a(){var t=setTimeout;return function(){return t(c,1)}}function c(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return i(this,t),this.options=c.deepExtend({},d.Defaults,e),this.id=this.options.id||c.generateID("bar"),this.closeTimer=-1,this.barDom=null,this.layoutDom=null,this.progressDom=null,this.showing=!1,this.shown=!1,this.closed=!1,this.closing=!1,this.killable=this.options.timeout||this.options.closeWith.length>0,this.hasSound=this.options.sounds.sources.length>0,this.soundPlayed=!1,this.listeners={beforeShow:[],onShow:[],afterShow:[],onClose:[],afterClose:[],onClick:[],onHover:[],onTemplate:[]},this.promises={show:null,close:null},this.on("beforeShow",this.options.callbacks.beforeShow),this.on("onShow",this.options.callbacks.onShow),this.on("afterShow",this.options.callbacks.afterShow),this.on("onClose",this.options.callbacks.onClose),this.on("afterClose",this.options.callbacks.afterClose),this.on("onClick",this.options.callbacks.onClick),this.on("onHover",this.options.callbacks.onHover),this.on("onTemplate",this.options.callbacks.onTemplate),this}return r(t,[{key:"on",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"show",value:function(){var e=this;!0===this.options.killer?t.closeAll():"string"==typeof this.options.killer&&t.closeAll(this.options.killer);var n=d.getQueueCounts(this.options.queue);if(n.current>=n.maxVisible||d.PageHidden&&this.options.visibilityControl)return d.addToQueue(this),d.PageHidden&&this.hasSound&&c.inArray("docHidden",this.options.sounds.conditions)&&c.createAudioElements(this),d.PageHidden&&c.inArray("docHidden",this.options.titleCount.conditions)&&d.docTitle.increment(),this;if(d.Store[this.id]=this,d.fire(this,"beforeShow"),this.showing=!0,this.closing)return this.showing=!1,this;if(d.build(this),d.handleModal(this),this.options.force?this.layoutDom.insertBefore(this.barDom,this.layoutDom.firstChild):this.layoutDom.appendChild(this.barDom),this.hasSound&&!this.soundPlayed&&c.inArray("docVisible",this.options.sounds.conditions)&&c.createAudioElements(this),c.inArray("docVisible",this.options.titleCount.conditions)&&d.docTitle.increment(),this.shown=!0,this.closed=!1,d.hasButtons(this)&&Object.keys(this.options.buttons).forEach(function(t){var n=e.barDom.querySelector("#"+e.options.buttons[t].id);c.addListener(n,"click",function(n){c.stopPropagation(n),e.options.buttons[t].cb()})}),this.progressDom=this.barDom.querySelector(".noty_progressbar"),c.inArray("click",this.options.closeWith)&&(c.addClass(this.barDom,"noty_close_with_click"),c.addListener(this.barDom,"click",function(t){c.stopPropagation(t),d.fire(e,"onClick"),e.close()},!1)),c.addListener(this.barDom,"mouseenter",function(){d.fire(e,"onHover")},!1),this.options.timeout&&c.addClass(this.barDom,"noty_has_timeout"),this.options.progressBar&&c.addClass(this.barDom,"noty_has_progressbar"),c.inArray("button",this.options.closeWith)){c.addClass(this.barDom,"noty_close_with_button");var o=document.createElement("div");c.addClass(o,"noty_close_button"),o.innerHTML="×",this.barDom.appendChild(o),c.addListener(o,"click",function(t){c.stopPropagation(t),e.close()},!1)}return d.fire(this,"onShow"),null===this.options.animation.open?this.promises.show=new u.default(function(t){t()}):"function"==typeof this.options.animation.open?this.promises.show=new u.default(this.options.animation.open.bind(this)):(c.addClass(this.barDom,this.options.animation.open),this.promises.show=new u.default(function(t){c.addListener(e.barDom,c.animationEndEvents,function(){c.removeClass(e.barDom,e.options.animation.open),t()})})),this.promises.show.then(function(){var t=e;setTimeout(function(){d.openFlow(t)},100)}),this}},{key:"stop",value:function(){return d.dequeueClose(this),this}},{key:"resume",value:function(){return d.queueClose(this),this}},{key:"setTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){if(this.stop(),this.options.timeout=t,this.barDom){this.options.timeout?c.addClass(this.barDom,"noty_has_timeout"):c.removeClass(this.barDom,"noty_has_timeout");var e=this;setTimeout(function(){e.resume()},100)}return this})},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(this.barDom.querySelector(".noty_body").innerHTML=t),e&&(this.options.text=t),this}},{key:"setType",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.barDom){c.classList(this.barDom).split(" ").forEach(function(t){"noty_type__"===t.substring(0,11)&&c.removeClass(e.barDom,t)}),c.addClass(this.barDom,"noty_type__"+t)}return n&&(this.options.type=t),this}},{key:"setTheme",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.barDom){c.classList(this.barDom).split(" ").forEach(function(t){"noty_theme__"===t.substring(0,12)&&c.removeClass(e.barDom,t)}),c.addClass(this.barDom,"noty_theme__"+t)}return n&&(this.options.theme=t),this}},{key:"close",value:function(){var t=this;return this.closed?this:this.shown?(d.fire(this,"onClose"),this.closing=!0,null===this.options.animation.close?this.promises.close=new u.default(function(t){t()}):"function"==typeof this.options.animation.close?this.promises.close=new u.default(this.options.animation.close.bind(this)):(c.addClass(this.barDom,this.options.animation.close),this.promises.close=new u.default(function(e){c.addListener(t.barDom,c.animationEndEvents,function(){t.options.force?c.remove(t.barDom):d.ghostFix(t),e()})})),this.promises.close.then(function(){d.closeFlow(t),d.handleModalClose(t)}),this.closed=!0,this):(d.removeFromQueue(this),this)}}],[{key:"closeAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.keys(d.Store).forEach(function(e){t?d.Store[e].options.queue===t&&d.Store[e].killable&&d.Store[e].close():d.Store[e].killable&&d.Store[e].close()}),this}},{key:"overrideDefaults",value:function(t){return d.Defaults=c.deepExtend({},d.Defaults,t),this}},{key:"setMaxVisible",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.DefaultMaxVisible,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return d.Queues.hasOwnProperty(e)||(d.Queues[e]={maxVisible:t,queue:[]}),d.Queues[e].maxVisible=t,this}},{key:"button",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new f.NotyButton(t,e,n,o)}},{key:"version",value:function(){return"3.1.3"}},{key:"Push",value:function(t){return new h.Push(t)}}]),t}();e.default=p,c.visibilityChangeFlow(),t.exports=e.default},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function r(t){if(d===clearTimeout)return clearTimeout(t);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function s(){m&&h&&(m=!1,h.length?p=h.concat(p):v=-1,p.length&&u())}function u(){if(!m){var t=i(s);m=!0;for(var e=p.length;e;){for(h=p,p=[];++v1)for(var n=1;n=0&&c0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S),
3 | a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};ma.optgroup=ma.option,ma.tbody=ma.tfoot=ma.colgroup=ma.caption=ma.thead,ma.th=ma.td;function na(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&B(a,b)?r.merge([a],c):c}function oa(a,b){for(var c=0,d=a.length;c-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=na(l.appendChild(f),"script"),j&&oa(g),c){k=0;while(f=g[k++])la.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var ra=d.documentElement,sa=/^key/,ta=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ua=/^([^.]*)(?:\.(.+)|)/;function va(){return!0}function wa(){return!1}function xa(){try{return d.activeElement}catch(a){}}function ya(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ya(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=wa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(ra,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(L)||[""],j=b.length;while(j--)h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.hasData(a)&&W.get(a);if(q&&(i=q.events)){b=(b||"").match(L)||[""],j=b.length;while(j--)if(h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&W.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(W.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i\x20\t\r\n\f]*)[^>]*)\/>/gi,Aa=/