From e913f4ed748baa649c69a8a653c1c47358ab8fab Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 17:10:31 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/main.yaml | 1 - README.md | 2 +- datacube-ows-tools/app.py | 59 +- datacube-ows-tools/static/css/custom.css | 14 +- datacube-ows-tools/static/js/wms.js | 2 +- .../static/vendor/bootstrap/css/bootstrap.css | 81 +- .../vendor/bootstrap/css/bootstrap.min.css | 81 +- .../vendor/bootstrap/js/bootstrap.bundle.js | 464 ++-- .../bootstrap/js/bootstrap.bundle.min.js | 160 +- .../static/vendor/bootstrap/js/bootstrap.js | 367 +-- .../vendor/bootstrap/js/bootstrap.min.js | 102 +- .../static/vendor/jquery/jquery.js | 429 ++-- .../static/vendor/jquery/jquery.min.js | 2055 +++++++++-------- .../static/vendor/jquery/jquery.slim.js | 363 +-- .../static/vendor/jquery/jquery.slim.min.js | 1948 ++++++++-------- datacube-ows-tools/templates/base.html | 157 +- .../templates/catalog-comparison.html | 339 ++- .../templates/getmap-comparison.html | 82 +- .../templates/legend-comparison.html | 6 +- datacube-ows-tools/util.py | 24 +- 20 files changed, 3536 insertions(+), 3200 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 37e8ac0..18f36ae 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -9,7 +9,6 @@ on: release: types: [created, edited, published] - env: ORG: opendatacube IMAGE: dea-web-tools diff --git a/README.md b/README.md index 6c5a8c4..9e2a82f 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,4 @@ To run it locally docker-compose up ``` -To use a deployed version access from: http://datacube-ows-tools.dev.dea.ga.gov.au/ \ No newline at end of file +To use a deployed version access from: http://datacube-ows-tools.dev.dea.ga.gov.au/ diff --git a/datacube-ows-tools/app.py b/datacube-ows-tools/app.py index 188ec8c..8446ecf 100644 --- a/datacube-ows-tools/app.py +++ b/datacube-ows-tools/app.py @@ -7,12 +7,20 @@ from flask import render_template, jsonify, json as flask_json from flask_s3 import FlaskS3 from owslib.wms import WebMapService -from .util import disjoint_bbox, enclosed_bbox, fixed_bbox, v7_catalog_list, wms_endpoint_layers_list, v8_catalog_list +from .util import ( + disjoint_bbox, + enclosed_bbox, + fixed_bbox, + v7_catalog_list, + wms_endpoint_layers_list, + v8_catalog_list, +) app = Flask(__name__, static_url_path=os.getenv("STATIC_PATH", None)) app.config["FLASKS3_BUCKET_NAME"] = "dea-web-webtools-static" s3 = FlaskS3(app) + # for terria catalog generator @app.route("/") def terria_au(): @@ -35,6 +43,7 @@ def terria_wps(): def comp_legend(): return render_template("legend-comparison.html") + @app.route("/getmap_comp") def comp_getmap(): @@ -51,9 +60,9 @@ def comp_getfeatureinfo(): def getmap_url_generator(): getmap_urls = [] paramsJson = request.get_json() - stable_url = paramsJson['stable_url'] - bbox = paramsJson['bbox'] - crs = paramsJson['crs'] + stable_url = paramsJson["stable_url"] + bbox = paramsJson["bbox"] + crs = paramsJson["crs"] # print(f"request.get_json(): {request.get_json()}") @@ -85,13 +94,14 @@ def getmap_url_generator(): layers_url_list = [] for style in layer.styles: # print(time, file=sys.stdout) - + url = f"{stable_url}wms?service=WMS&version=1.3.0&request=GetMap&layers={layer_name}&styles={style}&width=250&height=250&crs={crs}&bbox={bbox}&format=image%2Fpng&transparent=TRUE&bgcolor=0xFFFFFF&exceptions=XML&time={time}" layers_url_list.append({"style": style, "url": url}) getmap_urls.append({"name": layer_name, "layersList": layers_url_list}) return json.dumps(getmap_urls) + # Utility functions @app.route("/catalog-match") def catalog_match_checker(): @@ -105,35 +115,40 @@ def catalog_match_checker(): terria_catalog_json = urllib.request.urlopen(terria_url) # TODO: optimise this # this is to by pass JSONDecodeError: Invalid \escape: line 626 column 79 (char 68035) - a = terria_catalog_json.read().decode(terria_catalog_json.headers.get_content_charset()) + a = terria_catalog_json.read().decode( + terria_catalog_json.headers.get_content_charset() + ) b = a.replace("\\n", "iampin").replace("\\\n", "iamnotpin") terria_data = json.loads(b) - dea_map_url = "https://raw.githubusercontent.com/GeoscienceAustralia/dea-config/master/dev/terria/dea-maps-v8.json" dea_catalog_json = urllib.request.urlopen(dea_map_url) dea_map_data = json.loads(dea_catalog_json.read()) terria_prod_catalog_list = v8_catalog_list(terria_data, prod_wms_url) - terria_prod_non_released = list(set(prod_wms_layers)-set(terria_prod_catalog_list)) + terria_prod_non_released = list( + set(prod_wms_layers) - set(terria_prod_catalog_list) + ) terria_dev_catalog_list = v8_catalog_list(terria_data, dev_wms_url) - terria_dev_non_released = list(set(dev_wms_layers)-set(terria_dev_catalog_list)) - + terria_dev_non_released = list(set(dev_wms_layers) - set(terria_dev_catalog_list)) dea_map_catalog_list = v8_catalog_list(dea_map_data, prod_wms_url) - dea_map_non_released = list(set(prod_wms_layers)-set(dea_map_catalog_list)) - - return render_template("catalog-comparison.html", data={ - "dev_non_released": terria_dev_non_released, - "dev_wms_layers": dev_wms_layers, - "dev_catalog_list": terria_dev_catalog_list, - "prod_non_released": terria_prod_non_released, - "prod_wms_layers": prod_wms_layers, - "prod_catalog_list": terria_prod_catalog_list, - "dea_map_non_released": dea_map_non_released, - "dea_map_catalog_list": dea_map_catalog_list, - }) + dea_map_non_released = list(set(prod_wms_layers) - set(dea_map_catalog_list)) + + return render_template( + "catalog-comparison.html", + data={ + "dev_non_released": terria_dev_non_released, + "dev_wms_layers": dev_wms_layers, + "dev_catalog_list": terria_dev_catalog_list, + "prod_non_released": terria_prod_non_released, + "prod_wms_layers": prod_wms_layers, + "prod_catalog_list": terria_prod_catalog_list, + "dea_map_non_released": dea_map_non_released, + "dea_map_catalog_list": dea_map_catalog_list, + }, + ) @app.route("/jsongenerator", methods=["POST"]) diff --git a/datacube-ows-tools/static/css/custom.css b/datacube-ows-tools/static/css/custom.css index 1e462d0..f43f6de 100644 --- a/datacube-ows-tools/static/css/custom.css +++ b/datacube-ows-tools/static/css/custom.css @@ -24,15 +24,15 @@ padding-left: 45px; } ul.no-bullets { - list-style-type: none; /* Remove bullets */ - padding: 0; /* Remove padding */ - margin: 0; /* Remove margins */ + list-style-type: none; /* Remove bullets */ + padding: 0; /* Remove padding */ + margin: 0; /* Remove margins */ } ul.no-bullets li { - color: green; + color: green; } ul.no-bullets li.missing { - color: red; - font-weight: bold; -} \ No newline at end of file + color: red; + font-weight: bold; +} diff --git a/datacube-ows-tools/static/js/wms.js b/datacube-ows-tools/static/js/wms.js index 88e8a70..7fb0db9 100644 --- a/datacube-ows-tools/static/js/wms.js +++ b/datacube-ows-tools/static/js/wms.js @@ -55,6 +55,6 @@ function createCatalog() { // } // ); // end of get - } + }, ); } diff --git a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css index fbaaa30..9570783 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css +++ b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.css @@ -1968,7 +1968,9 @@ pre code { background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -2215,7 +2217,8 @@ textarea.form-control.is-valid { .custom-select.is-valid { border-color: #28a745; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") + background: + url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2369,7 +2372,8 @@ textarea.form-control.is-invalid { .custom-select.is-invalid { border-color: #dc3545; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") + background: + url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2557,8 +2561,11 @@ textarea.form-control.is-invalid { font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -3993,12 +4000,21 @@ input[type="button"].btn-block { height: calc(1rem - 4px); background-color: #adb5bd; border-radius: 0.5rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, - box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, + -webkit-transform 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; } @@ -4165,15 +4181,21 @@ input[type="button"].btn-block { } .custom-range:focus::-webkit-slider-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-moz-range-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-ms-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range::-moz-focus-outer { @@ -4187,7 +4209,9 @@ input[type="button"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -webkit-appearance: none; appearance: none; @@ -4219,7 +4243,9 @@ input[type="button"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -moz-appearance: none; appearance: none; @@ -4254,7 +4280,9 @@ input[type="button"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; } @@ -4313,7 +4341,9 @@ input[type="button"].btn-block { .custom-control-label::before, .custom-file-label, .custom-select { - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @@ -5220,8 +5250,11 @@ input[type="button"].btn-block { white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -6070,7 +6103,9 @@ a.close.disabled { .modal.fade .modal-dialog { transition: -webkit-transform 0.3s ease-out; transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; + transition: + transform 0.3s ease-out, + -webkit-transform 0.3s ease-out; -webkit-transform: translate(0, -50px); transform: translate(0, -50px); } @@ -6601,7 +6636,9 @@ a.close.disabled { backface-visibility: hidden; transition: -webkit-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; - transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out; + transition: + transform 0.6s ease-in-out, + -webkit-transform 0.6s ease-in-out; } @media (prefers-reduced-motion: reduce) { diff --git a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css index 7449ab8..7f83c1e 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css +++ b/datacube-ows-tools/static/vendor/bootstrap/css/bootstrap.min.css @@ -1762,7 +1762,9 @@ pre code { background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .form-control { @@ -1972,7 +1974,8 @@ textarea.form-control.is-valid { .was-validated .custom-select:valid { border-color: #28a745; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") + background: + url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2105,7 +2108,8 @@ textarea.form-control.is-invalid { .was-validated .custom-select:invalid { border-color: #dc3545; padding-right: calc((1em + 0.75rem) * 3 / 4 + 1.75rem); - background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") + background: + url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E") #fff no-repeat center right 1.75rem / calc(0.75em + 0.375rem) @@ -2275,8 +2279,11 @@ textarea.form-control.is-invalid { font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .btn { @@ -3492,12 +3499,21 @@ input[type="submit"].btn-block { height: calc(1rem - 4px); background-color: #adb5bd; border-radius: 0.5rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, - box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; - transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, + -webkit-transform 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; + transition: + transform 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -3642,13 +3658,19 @@ input[type="submit"].btn-block { outline: 0; } .custom-range:focus::-webkit-slider-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-moz-range-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range:focus::-ms-thumb { - box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 123, 255, 0.25); + box-shadow: + 0 0 0 1px #fff, + 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } .custom-range::-moz-focus-outer { border: 0; @@ -3660,7 +3682,9 @@ input[type="submit"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -webkit-appearance: none; appearance: none; @@ -3688,7 +3712,9 @@ input[type="submit"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -moz-appearance: none; appearance: none; @@ -3719,7 +3745,9 @@ input[type="submit"].btn-block { background-color: #007bff; border: 0; border-radius: 1rem; - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; appearance: none; } @@ -3767,7 +3795,9 @@ input[type="submit"].btn-block { .custom-control-label::before, .custom-file-label, .custom-select { - transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, + transition: + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { @@ -4550,8 +4580,11 @@ input[type="submit"].btn-block { white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, - border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; + transition: + color 0.15s ease-in-out, + background-color 0.15s ease-in-out, + border-color 0.15s ease-in-out, + box-shadow 0.15s ease-in-out; } @media (prefers-reduced-motion: reduce) { .badge { @@ -5267,7 +5300,9 @@ a.close.disabled { .modal.fade .modal-dialog { transition: -webkit-transform 0.3s ease-out; transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; + transition: + transform 0.3s ease-out, + -webkit-transform 0.3s ease-out; -webkit-transform: translate(0, -50px); transform: translate(0, -50px); } @@ -5727,7 +5762,9 @@ a.close.disabled { backface-visibility: hidden; transition: -webkit-transform 0.6s ease-in-out; transition: transform 0.6s ease-in-out; - transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out; + transition: + transform 0.6s ease-in-out, + -webkit-transform 0.6s ease-in-out; } @media (prefers-reduced-motion: reduce) { .carousel-item { diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js index bace251..043f3cd 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.js @@ -7,9 +7,9 @@ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("jquery")) : typeof define === "function" && define.amd - ? define(["exports", "jquery"], factory) - : ((global = global || self), - factory((global.bootstrap = {}), global.jQuery)); + ? define(["exports", "jquery"], factory) + : ((global = global || self), + factory((global.bootstrap = {}), global.jQuery)); })(this, function (exports, $) { "use strict"; @@ -55,7 +55,7 @@ ownKeys = ownKeys.concat( Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; - }) + }), ); } @@ -160,7 +160,7 @@ } }, getTransitionDurationFromElement: function getTransitionDurationFromElement( - element + element, ) { if (!element) { return 0; @@ -198,7 +198,7 @@ typeCheckConfig: function typeCheckConfig( componentName, config, - configTypes + configTypes, ) { for (var property in configTypes) { if (Object.prototype.hasOwnProperty.call(configTypes, property)) { @@ -216,7 +216,7 @@ '" provided type "' + valueType + '" ') + - ('but expected type "' + expectedTypes + '".') + ('but expected type "' + expectedTypes + '".'), ); } } @@ -397,7 +397,7 @@ $(document).on( Event.CLICK_DATA_API, Selector.DISMISS, - Alert._handleDismiss(new Alert()) + Alert._handleDismiss(new Alert()), ); /** * ------------------------------------------------------------------------ @@ -479,7 +479,7 @@ triggerChangeEvent = false; } else { var activeElement = rootElement.querySelector( - Selector$1.ACTIVE + Selector$1.ACTIVE, ); if (activeElement) { @@ -499,7 +499,7 @@ } input.checked = !this._element.classList.contains( - ClassName$1.ACTIVE + ClassName$1.ACTIVE, ); $(input).trigger("change"); } @@ -512,7 +512,7 @@ if (addAriaPressed) { this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(ClassName$1.ACTIVE) + !this._element.classList.contains(ClassName$1.ACTIVE), ); } @@ -559,24 +559,31 @@ */ $(document) - .on(Event$1.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - event.preventDefault(); - var button = event.target; + .on( + Event$1.CLICK_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + event.preventDefault(); + var button = event.target; - if (!$(button).hasClass(ClassName$1.BUTTON)) { - button = $(button).closest(Selector$1.BUTTON); - } + if (!$(button).hasClass(ClassName$1.BUTTON)) { + button = $(button).closest(Selector$1.BUTTON); + } - Button._jQueryInterface.call($(button), "toggle"); - }) - .on(Event$1.FOCUS_BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - var button = $(event.target).closest(Selector$1.BUTTON)[0]; - $(button).toggleClass(ClassName$1.FOCUS, /^focus(in)?$/.test(event.type)); - }); + Button._jQueryInterface.call($(button), "toggle"); + }, + ) + .on( + Event$1.FOCUS_BLUR_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + var button = $(event.target).closest(Selector$1.BUTTON)[0]; + $(button).toggleClass( + ClassName$1.FOCUS, + /^focus(in)?$/.test(event.type), + ); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -693,13 +700,13 @@ this._config = this._getConfig(config); this._element = element; this._indicatorsElement = this._element.querySelector( - Selector$2.INDICATORS + Selector$2.INDICATORS, ); this._touchSupported = "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0; this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, ); this._addEventListeners(); @@ -759,9 +766,9 @@ if (this._config.interval && !this._isPaused) { this._interval = setInterval( (document.visibilityState ? this.nextWhenVisible : this.next).bind( - this + this, ), - this._config.interval + this._config.interval, ); } }; @@ -770,7 +777,7 @@ var _this = this; this._activeElement = this._element.querySelector( - Selector$2.ACTIVE_ITEM + Selector$2.ACTIVE_ITEM, ); var activeIndex = this._getItemIndex(this._activeElement); @@ -924,7 +931,7 @@ Event$2.DRAG_START, function (e) { return e.preventDefault(); - } + }, ); if (this._pointerEvent) { @@ -973,7 +980,7 @@ this._items = element && element.parentNode ? [].slice.call( - element.parentNode.querySelectorAll(Selector$2.ITEM) + element.parentNode.querySelectorAll(Selector$2.ITEM), ) : []; return this._items.indexOf(element); @@ -981,7 +988,7 @@ _proto._getItemByDirection = function _getItemByDirection( direction, - activeElement + activeElement, ) { var isNextDirection = direction === Direction.NEXT; var isPrevDirection = direction === Direction.PREV; @@ -1006,12 +1013,12 @@ _proto._triggerSlideEvent = function _triggerSlideEvent( relatedTarget, - eventDirectionName + eventDirectionName, ) { var targetIndex = this._getItemIndex(relatedTarget); var fromIndex = this._getItemIndex( - this._element.querySelector(Selector$2.ACTIVE_ITEM) + this._element.querySelector(Selector$2.ACTIVE_ITEM), ); var slideEvent = $.Event(Event$2.SLIDE, { @@ -1025,17 +1032,16 @@ }; _proto._setActiveIndicatorElement = function _setActiveIndicatorElement( - element + element, ) { if (this._indicatorsElement) { var indicators = [].slice.call( - this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE) + this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE), ); $(indicators).removeClass(ClassName$2.ACTIVE); - var nextIndicator = this._indicatorsElement.children[ - this._getItemIndex(element) - ]; + var nextIndicator = + this._indicatorsElement.children[this._getItemIndex(element)]; if (nextIndicator) { $(nextIndicator).addClass(ClassName$2.ACTIVE); @@ -1078,7 +1084,7 @@ var slideEvent = this._triggerSlideEvent( nextElement, - eventDirectionName + eventDirectionName, ); if (slideEvent.isDefaultPrevented()) { @@ -1112,7 +1118,7 @@ $(nextElement).addClass(directionalClassName); var nextElementInterval = parseInt( nextElement.getAttribute("data-interval"), - 10 + 10, ); if (nextElementInterval) { @@ -1124,9 +1130,8 @@ this._config.defaultInterval || this._config.interval; } - var transitionDuration = Util.getTransitionDurationFromElement( - activeElement - ); + var transitionDuration = + Util.getTransitionDurationFromElement(activeElement); $(activeElement) .one(Util.TRANSITION_END, function () { $(nextElement) @@ -1137,7 +1142,7 @@ " " + orderClassName + " " + - directionalClassName + directionalClassName, ); _this4._isSliding = false; setTimeout(function () { @@ -1245,11 +1250,11 @@ $(document).on( Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, - Carousel._dataApiClickHandler + Carousel._dataApiClickHandler, ); $(window).on(Event$2.LOAD_DATA_API, function () { var carousels = [].slice.call( - document.querySelectorAll(Selector$2.DATA_RIDE) + document.querySelectorAll(Selector$2.DATA_RIDE), ); for (var i = 0, len = carousels.length; i < len; i++) { @@ -1331,11 +1336,11 @@ '[data-toggle="collapse"][href="#' + element.id + '"],' + - ('[data-toggle="collapse"][data-target="#' + element.id + '"]') - ) + ('[data-toggle="collapse"][data-target="#' + element.id + '"]'), + ), ); var toggleList = [].slice.call( - document.querySelectorAll(Selector$3.DATA_TOGGLE) + document.querySelectorAll(Selector$3.DATA_TOGGLE), ); for (var i = 0, len = toggleList.length; i < len; i++) { @@ -1425,7 +1430,7 @@ if (actives) { Collapse._jQueryInterface.call( $(actives).not(this._selector), - "hide" + "hide", ); if (!activesData) { @@ -1464,7 +1469,7 @@ dimension[0].toUpperCase() + dimension.slice(1); var scrollSize = "scroll" + capitalizedDimension; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1530,7 +1535,7 @@ this._element.style[dimension] = ""; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1584,7 +1589,7 @@ $(children).each(function (i, element) { _this3._addAriaAndCollapsedClass( Collapse._getTargetFromElement(element), - [element] + [element], ); }); return parent; @@ -1592,7 +1597,7 @@ _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass( element, - triggerArray + triggerArray, ) { var isOpen = $(element).hasClass(ClassName$3.SHOW); @@ -1617,7 +1622,7 @@ {}, Default$1, $this.data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data && _config.toggle && /show|hide/.test(config)) { @@ -1662,25 +1667,27 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function ( - event - ) { - // preventDefault only for elements (which change the URL) not inside the collapsible element - if (event.currentTarget.tagName === "A") { - event.preventDefault(); - } + $(document).on( + Event$3.CLICK_DATA_API, + Selector$3.DATA_TOGGLE, + function (event) { + // preventDefault only for elements (which change the URL) not inside the collapsible element + if (event.currentTarget.tagName === "A") { + event.preventDefault(); + } - var $trigger = $(this); - var selector = Util.getSelectorFromElement(this); - var selectors = [].slice.call(document.querySelectorAll(selector)); - $(selectors).each(function () { - var $target = $(this); - var data = $target.data(DATA_KEY$3); - var config = data ? "toggle" : $trigger.data(); + var $trigger = $(this); + var selector = Util.getSelectorFromElement(this); + var selectors = [].slice.call(document.querySelectorAll(selector)); + $(selectors).each(function () { + var $target = $(this); + var data = $target.data(DATA_KEY$3); + var config = data ? "toggle" : $trigger.data(); - Collapse._jQueryInterface.call($target, config); - }); - }); + Collapse._jQueryInterface.call($target, config); + }); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -2071,12 +2078,14 @@ isIE(10) ? parseInt(html["offset" + axis]) + parseInt( - computedStyle["margin" + (axis === "Height" ? "Top" : "Left")] + computedStyle["margin" + (axis === "Height" ? "Top" : "Left")], ) + parseInt( - computedStyle["margin" + (axis === "Height" ? "Bottom" : "Right")] + computedStyle[ + "margin" + (axis === "Height" ? "Bottom" : "Right") + ], ) - : 0 + : 0, ); } @@ -2367,7 +2376,7 @@ if (boundariesElement === "viewport") { boundaries = getViewportOffsetRectRelativeToArtbitraryNode( offsetParent, - fixedPosition + fixedPosition, ); } else { // Handle other cases based on DOM element used as boundaries @@ -2386,7 +2395,7 @@ var offsets = getOffsetRectRelativeToArbitraryNode( boundariesNode, offsetParent, - fixedPosition + fixedPosition, ); // In case of HTML, we need a different computation @@ -2437,7 +2446,7 @@ refRect, popper, reference, - boundariesElement + boundariesElement, ) { var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; @@ -2450,7 +2459,7 @@ popper, reference, padding, - boundariesElement + boundariesElement, ); var rects = { @@ -2481,7 +2490,7 @@ rects[key], { area: getArea(rects[key]), - } + }, ); }) .sort(function (a, b) { @@ -2522,7 +2531,7 @@ return getOffsetRectRelativeToArbitraryNode( reference, commonOffsetParent, - fixedPosition + fixedPosition, ); } @@ -2711,7 +2720,7 @@ this.state, this.popper, this.reference, - this.options.positionFixed + this.options.positionFixed, ); // compute auto placement, store placement inside the data object, @@ -2723,7 +2732,7 @@ this.popper, this.reference, this.options.modifiers.flip.boundariesElement, - this.options.modifiers.flip.padding + this.options.modifiers.flip.padding, ); // store the computed placement inside `originalPlacement` @@ -2735,7 +2744,7 @@ data.offsets.popper = getPopperOffsets( this.popper, data.offsets.reference, - data.placement + data.placement, ); data.offsets.popper.position = this.options.positionFixed @@ -2840,7 +2849,7 @@ getScrollParent(target.parentNode), event, callback, - scrollParents + scrollParents, ); } scrollParents.push(target); @@ -2865,7 +2874,7 @@ scrollElement, "scroll", state.updateBound, - state.scrollParents + state.scrollParents, ); state.scrollElement = scrollElement; state.eventsEnabled = true; @@ -2885,7 +2894,7 @@ this.reference, this.options, this.state, - this.scheduleUpdate + this.scheduleUpdate, ); } } @@ -3023,14 +3032,14 @@ popper, options, modifierOptions, - state + state, ) { // compute reference element offsets var referenceOffsets = getReferenceOffsets( state, popper, reference, - options.positionFixed + options.positionFixed, ); // compute auto placement, store placement inside the data object, @@ -3042,7 +3051,7 @@ popper, reference, options.modifiers.flip.boundariesElement, - options.modifiers.flip.padding + options.modifiers.flip.padding, ); popper.setAttribute("x-placement", placement); @@ -3097,15 +3106,15 @@ var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity - ? round - : floor; + ? round + : floor; var verticalToInteger = !shouldRound ? noRound : round; return { left: horizontalToInteger( bothOddWidth && !isVariation && shouldRound ? popper.left - 1 - : popper.left + : popper.left, ), top: verticalToInteger(popper.top), bottom: verticalToInteger(popper.bottom), @@ -3129,14 +3138,15 @@ // Remove this legacy support in Popper.js v2 - var legacyGpuAccelerationOption = find(data.instance.modifiers, function ( - modifier - ) { - return modifier.name === "applyStyle"; - }).gpuAcceleration; + var legacyGpuAccelerationOption = find( + data.instance.modifiers, + function (modifier) { + return modifier.name === "applyStyle"; + }, + ).gpuAcceleration; if (legacyGpuAccelerationOption !== undefined) { console.warn( - "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!" + "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!", ); } var gpuAcceleration = @@ -3154,7 +3164,7 @@ var offsets = getRoundedOffsets( data, - window.devicePixelRatio < 2 || !isFirefox + window.devicePixelRatio < 2 || !isFirefox, ); var sideA = x === "bottom" ? "top" : "bottom"; @@ -3259,7 +3269,7 @@ _requesting + " modifier in order to work, be sure to include it before " + _requesting + - "!" + "!", ); } return isRequired; @@ -3295,7 +3305,7 @@ // provided DOM node is child of its popper node if (!data.instance.popper.contains(arrowElement)) { console.warn( - "WARNING: `arrow.element` must be child of its popper element!" + "WARNING: `arrow.element` must be child of its popper element!", ); return data; } @@ -3341,7 +3351,7 @@ var popperMarginSide = parseFloat(css["margin" + sideCapitalized], 10); var popperBorderSide = parseFloat( css["border" + sideCapitalized + "Width"], - 10 + 10, ); var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; @@ -3349,7 +3359,7 @@ // prevent arrowElement from being placed not contiguously to its popper sideValue = Math.max( Math.min(popper[len] - arrowElementSize, sideValue), - 0 + 0, ); data.arrowElement = arrowElement; @@ -3480,7 +3490,7 @@ data.instance.reference, options.padding, options.boundariesElement, - data.positionFixed + data.positionFixed, ); var placement = data.placement.split("-")[0]; @@ -3569,8 +3579,8 @@ getPopperOffsets( data.instance.popper, data.offsets.reference, - data.placement - ) + data.placement, + ), ); data = runModifiers(data.instance.modifiers, data, "flip"); @@ -3652,12 +3662,12 @@ if (unit === "vh") { size = Math.max( document.documentElement.clientHeight, - window.innerHeight || 0 + window.innerHeight || 0, ); } else { size = Math.max( document.documentElement.clientWidth, - window.innerWidth || 0 + window.innerWidth || 0, ); } return (size / 100) * value; @@ -3698,12 +3708,12 @@ var divider = fragments.indexOf( find(fragments, function (frag) { return frag.search(/,|\s/) !== -1; - }) + }), ); if (fragments[divider] && fragments[divider].indexOf(",") === -1) { console.warn( - "Offsets separated by white space(s) are deprecated, use a comma (,) instead." + "Offsets separated by white space(s) are deprecated, use a comma (,) instead.", ); } @@ -3717,7 +3727,7 @@ .slice(0, divider) .concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat( - fragments.slice(divider + 1) + fragments.slice(divider + 1), ), ] : [fragments]; @@ -3843,7 +3853,7 @@ data.instance.reference, options.padding, boundariesElement, - data.positionFixed + data.positionFixed, ); // NOTE: DOM access here @@ -3878,7 +3888,7 @@ value = Math.min( popper[mainSide], boundaries[placement] - - (placement === "right" ? popper.width : popper.height) + (placement === "right" ? popper.width : popper.height), ); } return defineProperty({}, mainSide, value); @@ -3923,7 +3933,7 @@ end: defineProperty( {}, side, - reference[side] + reference[measurement] - popper[measurement] + reference[side] + reference[measurement] - popper[measurement], ), }; @@ -4469,12 +4479,12 @@ // Deep merge modifiers options this.options.modifiers = {}; Object.keys( - _extends({}, Popper.Defaults.modifiers, options.modifiers) + _extends({}, Popper.Defaults.modifiers, options.modifiers), ).forEach(function (name) { _this.options.modifiers[name] = _extends( {}, Popper.Defaults.modifiers[name] || {}, - options.modifiers ? options.modifiers[name] : {} + options.modifiers ? options.modifiers[name] : {}, ); }); @@ -4485,7 +4495,7 @@ { name: name, }, - _this.options.modifiers[name] + _this.options.modifiers[name], ); }) // sort the modifiers by order @@ -4504,7 +4514,7 @@ _this.popper, _this.options, modifierOptions, - _this.state + _this.state, ); } }); @@ -4625,7 +4635,7 @@ var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) var REGEXP_KEYDOWN = new RegExp( - ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE + ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE, ); var Event$4 = { HIDE: "hide" + EVENT_KEY$4, @@ -4736,7 +4746,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); } @@ -4761,7 +4771,7 @@ this._popper = new Popper( referenceElement, this._menu, - this._getPopperConfig() + this._getPopperConfig(), ); } // If this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; @@ -4878,7 +4888,7 @@ {}, this.constructor.Default, $(this._element).data(), - config + config, ); Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); return config; @@ -4931,7 +4941,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this2._config.offset(data.offsets, _this2._element) || {} + _this2._config.offset(data.offsets, _this2._element) || {}, ); return data; }; @@ -4996,7 +5006,7 @@ } var toggles = [].slice.call( - document.querySelectorAll(Selector$4.DATA_TOGGLE) + document.querySelectorAll(Selector$4.DATA_TOGGLE), ); for (var i = 0, len = toggles.length; i < len; i++) { @@ -5108,7 +5118,7 @@ } var items = [].slice.call( - parent.querySelectorAll(Selector$4.VISIBLE_ITEMS) + parent.querySelectorAll(Selector$4.VISIBLE_ITEMS), ); if (items.length === 0) { @@ -5167,16 +5177,16 @@ .on( Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.KEYDOWN_DATA_API, Selector$4.MENU, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, - Dropdown._clearMenus + Dropdown._clearMenus, ) .on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) { event.preventDefault(); @@ -5321,7 +5331,7 @@ Selector$5.DATA_DISMISS, function (event) { return _this.hide(event); - } + }, ); $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () { $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) { @@ -5372,7 +5382,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, function (event) { @@ -5467,7 +5477,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._dialog + this._dialog, ); $(this._dialog) .one(Util.TRANSITION_END, transitionComplete) @@ -5598,9 +5608,8 @@ return; } - var backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callback) .emulateTransitionEnd(backdropTransitionDuration); @@ -5616,9 +5625,8 @@ }; if ($(this._element).hasClass(ClassName$5.FADE)) { - var _backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var _backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callbackRemove) @@ -5665,10 +5673,10 @@ // Note: DOMNode.style.paddingRight returns the actual value or '' if not set // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); var stickyContent = [].slice.call( - document.querySelectorAll(Selector$5.STICKY_CONTENT) + document.querySelectorAll(Selector$5.STICKY_CONTENT), ); // Adjust fixed content padding $(fixedContent).each(function (index, element) { @@ -5678,7 +5686,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px" + parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px", ); }); // Adjust sticky content margin @@ -5689,7 +5697,7 @@ .data("margin-right", actualMargin) .css( "margin-right", - parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px" + parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px", ); }); // Adjust body padding @@ -5699,7 +5707,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + this._scrollbarWidth + "px" + parseFloat(calculatedPadding) + this._scrollbarWidth + "px", ); } @@ -5709,7 +5717,7 @@ _proto._resetScrollbar = function _resetScrollbar() { // Restore fixed content padding var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); $(fixedContent).each(function (index, element) { var padding = $(element).data("padding-right"); @@ -5718,7 +5726,7 @@ }); // Restore sticky content var elements = [].slice.call( - document.querySelectorAll("" + Selector$5.STICKY_CONTENT) + document.querySelectorAll("" + Selector$5.STICKY_CONTENT), ); $(elements).each(function (index, element) { var margin = $(element).data("margin-right"); @@ -5746,7 +5754,7 @@ Modal._jQueryInterface = function _jQueryInterface( config, - relatedTarget + relatedTarget, ) { return this.each(function () { var data = $(this).data(DATA_KEY$5); @@ -5755,7 +5763,7 @@ {}, Default$3, $(this).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data) { @@ -5798,41 +5806,43 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function ( - event - ) { - var _this10 = this; + $(document).on( + Event$5.CLICK_DATA_API, + Selector$5.DATA_TOGGLE, + function (event) { + var _this10 = this; - var target; - var selector = Util.getSelectorFromElement(this); + var target; + var selector = Util.getSelectorFromElement(this); - if (selector) { - target = document.querySelector(selector); - } - - var config = $(target).data(DATA_KEY$5) - ? "toggle" - : _objectSpread({}, $(target).data(), $(this).data()); + if (selector) { + target = document.querySelector(selector); + } - if (this.tagName === "A" || this.tagName === "AREA") { - event.preventDefault(); - } + var config = $(target).data(DATA_KEY$5) + ? "toggle" + : _objectSpread({}, $(target).data(), $(this).data()); - var $target = $(target).one(Event$5.SHOW, function (showEvent) { - if (showEvent.isDefaultPrevented()) { - // Only register focus restorer if modal will actually get shown - return; + if (this.tagName === "A" || this.tagName === "AREA") { + event.preventDefault(); } - $target.one(Event$5.HIDDEN, function () { - if ($(_this10).is(":visible")) { - _this10.focus(); + var $target = $(target).one(Event$5.SHOW, function (showEvent) { + if (showEvent.isDefaultPrevented()) { + // Only register focus restorer if modal will actually get shown + return; } + + $target.one(Event$5.HIDDEN, function () { + if ($(_this10).is(":visible")) { + _this10.focus(); + } + }); }); - }); - Modal._jQueryInterface.call($(target), config, this); - }); + Modal._jQueryInterface.call($(target), config, this); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -5902,14 +5912,16 @@ * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ }; - var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + var SAFE_URL_PATTERN = + /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; /** * A pattern that matches safe data URLs. Only matches image, video and audio types. * * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ - var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + var DATA_URL_PATTERN = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function allowedAttribute(attr, allowedAttributeList) { var attrName = attr.nodeName.toLowerCase(); @@ -5918,7 +5930,7 @@ if (uriAttrs.indexOf(attrName) !== -1) { return Boolean( attr.nodeValue.match(SAFE_URL_PATTERN) || - attr.nodeValue.match(DATA_URL_PATTERN) + attr.nodeValue.match(DATA_URL_PATTERN), ); } @@ -5964,7 +5976,7 @@ var attributeList = [].slice.call(el.attributes); var whitelistedAttributes = [].concat( whiteList["*"] || [], - whiteList[elName] || [] + whiteList[elName] || [], ); attributeList.forEach(function (attr) { if (!allowedAttribute(attr, whitelistedAttributes)) { @@ -6087,7 +6099,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); } // private @@ -6131,7 +6143,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -6195,7 +6207,7 @@ shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (showEvent.isDefaultPrevented() || !isInTheDom) { @@ -6280,7 +6292,7 @@ if ($(this.tip).hasClass(ClassName$6.FADE)) { var transitionDuration = Util.getTransitionDurationFromElement( - this.tip + this.tip, ); $(this.tip) .one(Util.TRANSITION_END, complete) @@ -6369,7 +6381,7 @@ var tip = this.getTipElement(); this.setElementContent( $(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), - this.getTitle() + this.getTitle(), ); $(tip).removeClass(ClassName$6.FADE + " " + ClassName$6.SHOW); }; @@ -6396,7 +6408,7 @@ content = sanitizeHtml( content, this.config.whiteList, - this.config.sanitizeFn + this.config.sanitizeFn, ); } @@ -6429,7 +6441,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this3.config.offset(data.offsets, _this3.element) || {} + _this3.config.offset(data.offsets, _this3.element) || {}, ); return data; }; @@ -6467,7 +6479,7 @@ _this4.config.selector, function (event) { return _this4.toggle(event); - } + }, ); } else if (trigger !== Trigger.MANUAL) { var eventIn = @@ -6511,7 +6523,7 @@ if (this.element.getAttribute("title") || titleType !== "string") { this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ); this.element.setAttribute("title", ""); } @@ -6524,7 +6536,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -6565,7 +6577,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -6616,7 +6628,7 @@ {}, this.constructor.Default, dataAttributes, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.delay === "number") { @@ -6640,7 +6652,7 @@ config.template = sanitizeHtml( config.template, config.whiteList, - config.sanitizeFn + config.sanitizeFn, ); } @@ -6670,16 +6682,15 @@ } }; - _proto._handlePopperPlacementChange = function _handlePopperPlacementChange( - popperData - ) { - var popperInstance = popperData.instance; - this.tip = popperInstance.popper; + _proto._handlePopperPlacementChange = + function _handlePopperPlacementChange(popperData) { + var popperInstance = popperData.instance; + this.tip = popperInstance.popper; - this._cleanTipClass(); + this._cleanTipClass(); - this.addAttachmentClass(this._getAttachment(popperData.placement)); - }; + this.addAttachmentClass(this._getAttachment(popperData.placement)); + }; _proto._fixTransition = function _fixTransition() { var tip = this.getTipElement(); @@ -6796,7 +6807,7 @@ var CLASS_PREFIX$1 = "bs-popover"; var BSCLS_PREFIX_REGEX$1 = new RegExp( "(^|\\s)" + CLASS_PREFIX$1 + "\\S+", - "g" + "g", ); var Default$5 = _objectSpread({}, Tooltip.Default, { @@ -7132,7 +7143,7 @@ config = _objectSpread( {}, Default$6, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.target !== "string") { @@ -7161,7 +7172,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }; @@ -7240,7 +7251,7 @@ }); var $link = $( - [].slice.call(document.querySelectorAll(queries.join(","))) + [].slice.call(document.querySelectorAll(queries.join(","))), ); if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) { @@ -7328,7 +7339,7 @@ $(window).on(Event$8.LOAD_DATA_API, function () { var scrollSpys = [].slice.call( - document.querySelectorAll(Selector$8.DATA_SPY) + document.querySelectorAll(Selector$8.DATA_SPY), ); var scrollSpysLength = scrollSpys.length; @@ -7419,7 +7430,7 @@ var target; var previous; var listElement = $(this._element).closest( - Selector$9.NAV_LIST_GROUP + Selector$9.NAV_LIST_GROUP, )[0]; var selector = Util.getSelectorFromElement(this._element); @@ -7495,9 +7506,8 @@ }; if (active && isTransitioning) { - var transitionDuration = Util.getTransitionDurationFromElement( - active - ); + var transitionDuration = + Util.getTransitionDurationFromElement(active); $(active) .removeClass(ClassName$9.SHOW) .one(Util.TRANSITION_END, complete) @@ -7510,12 +7520,12 @@ _proto._transitionComplete = function _transitionComplete( element, active, - callback + callback, ) { if (active) { $(active).removeClass(ClassName$9.ACTIVE); var dropdownChild = $(active.parentNode).find( - Selector$9.DROPDOWN_ACTIVE_CHILD + Selector$9.DROPDOWN_ACTIVE_CHILD, )[0]; if (dropdownChild) { @@ -7547,7 +7557,7 @@ if (dropdownElement) { var dropdownToggleList = [].slice.call( - dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE) + dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE), ); $(dropdownToggleList).addClass(ClassName$9.ACTIVE); } @@ -7597,13 +7607,15 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$9.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function ( - event - ) { - event.preventDefault(); + $(document).on( + Event$9.CLICK_DATA_API, + Selector$9.DATA_TOGGLE, + function (event) { + event.preventDefault(); - Tab._jQueryInterface.call($(this), "show"); - }); + Tab._jQueryInterface.call($(this), "show"); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -7702,7 +7714,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -7749,7 +7761,7 @@ {}, Default$7, $(this._element).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType); return config; @@ -7763,7 +7775,7 @@ Selector$a.DATA_DISMISS, function () { return _this3.hide(true); - } + }, ); }; @@ -7780,7 +7792,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -7859,7 +7871,7 @@ (function () { if (typeof $ === "undefined") { throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); } @@ -7878,7 +7890,7 @@ version[0] >= maxMajor ) { throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); } })(); diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js index 2ff82a6..df9f1d3 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.bundle.min.js @@ -7,8 +7,8 @@ "object" == typeof exports && "undefined" != typeof module ? e(exports, require("jquery")) : "function" == typeof define && define.amd - ? define(["exports", "jquery"], e) - : e(((t = t || self).bootstrap = {}), t.jQuery); + ? define(["exports", "jquery"], e) + : e(((t = t || self).bootstrap = {}), t.jQuery); })(this, function (t, p) { "use strict"; function i(t, e) { @@ -31,7 +31,7 @@ (e = e.concat( Object.getOwnPropertySymbols(r).filter(function (t) { return Object.getOwnPropertyDescriptor(r, t).enumerable; - }) + }), )), e.forEach(function (t) { var e, n, i; @@ -128,7 +128,7 @@ s + '" but expected type "' + o + - '".' + '".', ); } var a; @@ -139,8 +139,8 @@ return t instanceof ShadowRoot ? t : t.parentNode - ? m.findShadowRoot(t.parentNode) - : null; + ? m.findShadowRoot(t.parentNode) + : null; var e = t.getRootNode(); return e instanceof ShadowRoot ? e : null; }, @@ -234,7 +234,7 @@ p(document).on( h.CLICK_DATA_API, '[data-dismiss="alert"]', - g._handleDismiss(new g()) + g._handleDismiss(new g()), ), (p.fn[o] = g._jQueryInterface), (p.fn[o].Constructor = g), @@ -294,7 +294,7 @@ e && this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(w) + !this._element.classList.contains(w), ), t && p(this._element).toggleClass(w); }), @@ -409,7 +409,7 @@ "ontouchstart" in document.documentElement || 0 < navigator.maxTouchPoints), (this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, )), this._addEventListeners(); } @@ -445,7 +445,7 @@ ? this.nextWhenVisible : this.next ).bind(this), - this._config.interval + this._config.interval, )); }), (t.to = function (t) { @@ -522,11 +522,12 @@ return n.cycle(t); }, 500 + n._config.interval))); }; - p(this._element.querySelectorAll(et)).on(q.DRAG_START, function ( - t - ) { - return t.preventDefault(); - }), + p(this._element.querySelectorAll(et)).on( + q.DRAG_START, + function (t) { + return t.preventDefault(); + }, + ), this._pointerEvent ? (p(this._element).on(q.POINTERDOWN, function (t) { return e(t); @@ -758,8 +759,8 @@ e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + - '"]' - ) + '"]', + ), )); for ( var n = [].slice.call(document.querySelectorAll(wt)), @@ -856,7 +857,7 @@ s = m.getSelectorFromElement(r); if (null !== s) p([].slice.call(document.querySelectorAll(s))).hasClass( - mt + mt, ) || p(r).addClass(vt).attr("aria-expanded", !1); } this.setTransitioning(!0); @@ -1052,8 +1053,8 @@ ? jt(n) : n : t - ? t.ownerDocument.documentElement - : document.documentElement; + ? t.ownerDocument.documentElement + : document.documentElement; } function Rt(t) { return null !== t.parentNode ? Rt(t.parentNode) : t; @@ -1106,7 +1107,7 @@ ? parseInt(n["offset" + t]) + parseInt(i["margin" + ("Height" === t ? "Top" : "Left")]) + parseInt(i["margin" + ("Height" === t ? "Bottom" : "Right")]) - : 0 + : 0, ); } function Bt(t) { @@ -1370,7 +1371,7 @@ return t[e] === n; }); return t.indexOf(i); - })(t, "name", e) + })(t, "name", e), ) ).forEach(function (t) { t.function && @@ -1474,7 +1475,7 @@ r + " modifier in order to work, be sure to include it before " + r + - "!" + "!", ); } return o; @@ -1515,12 +1516,12 @@ i = n.indexOf( ne(n, function (t) { return -1 !== t.search(/,|\s/); - }) + }), ); n[i] && -1 === n[i].indexOf(",") && console.warn( - "Offsets separated by white space(s) are deprecated, use a comma (,) instead." + "Offsets separated by white space(s) are deprecated, use a comma (,) instead.", ); var l = /\s*,\s*|\s+/, c = @@ -1539,8 +1540,8 @@ return "" === t[t.length - 1] && -1 !== ["+", "-"].indexOf(e) ? ((t[t.length - 1] = e), (i = !0), t) : i - ? ((t[t.length - 1] += e), (i = !1), t) - : t.concat(e); + ? ((t[t.length - 1] += e), (i = !1), t) + : t.concat(e); }, []) .map(function (t) { return (function (t, e, n, i) { @@ -1554,11 +1555,11 @@ : (("vh" === s ? Math.max( document.documentElement.clientHeight, - window.innerHeight || 0 + window.innerHeight || 0, ) : Math.max( document.documentElement.clientWidth, - window.innerWidth || 0 + window.innerWidth || 0, )) / 100) * r; @@ -1630,10 +1631,10 @@ "left" === a ? ((r.top += l[0]), (r.left -= l[1])) : "right" === a - ? ((r.top += l[0]), (r.left += l[1])) - : "top" === a - ? ((r.left += l[0]), (r.top -= l[1])) - : "bottom" === a && ((r.left += l[0]), (r.top += l[1])), + ? ((r.top += l[0]), (r.left += l[1])) + : "top" === a + ? ((r.left += l[0]), (r.top -= l[1])) + : "bottom" === a && ((r.left += l[0]), (r.top += l[1])), (t.popper = r), t ); @@ -1657,7 +1658,7 @@ t.instance.reference, i.padding, e, - t.positionFixed + t.positionFixed, ); (o.top = r), (o.left = s), (o[n] = a), (i.boundaries = l); var c = i.priority, @@ -1680,7 +1681,7 @@ !i.escapeWithReference && (n = Math.min( h[e], - l[t] - ("right" === t ? h.width : h.height) + l[t] - ("right" === t ? h.width : h.height), )), Kt({}, e, n) ); @@ -1732,7 +1733,7 @@ } else if (!t.instance.popper.contains(i)) return ( console.warn( - "WARNING: `arrow.element` must be child of its popper element!" + "WARNING: `arrow.element` must be child of its popper element!", ), t ); @@ -1776,7 +1777,7 @@ p.instance.reference, m.padding, m.boundariesElement, - p.positionFixed + p.positionFixed, ), _ = p.placement.split("-")[0], v = te(_), @@ -1834,7 +1835,7 @@ (p.offsets.popper = Qt( {}, p.offsets.popper, - ee(p.instance.popper, p.offsets.reference, p.placement) + ee(p.instance.popper, p.offsets.reference, p.placement), )), (p = ie(p.instance.modifiers, p, "flip"))); }), @@ -1901,7 +1902,7 @@ }).gpuAcceleration; void 0 !== r && console.warn( - "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!" + "WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!", ); var s, a, @@ -1939,7 +1940,7 @@ (y = a ? u : d), { left: (v = a ? (g || _ || p % 2 == m % 2 ? u : f) : d)( - p % 2 == 1 && m % 2 == 1 && !_ && a ? c.left - 1 : c.left + p % 2 == 1 && m % 2 == 1 && !_ && a ? c.left - 1 : c.left, ), top: y(c.top), bottom: y(c.bottom), @@ -2012,7 +2013,7 @@ e, t, n.modifiers.flip.boundariesElement, - n.modifiers.flip.padding + n.modifiers.flip.padding, ); return ( e.setAttribute("x-placement", s), @@ -2047,9 +2048,9 @@ n.options.modifiers[t] = Qt( {}, r.Defaults.modifiers[t] || {}, - i.modifiers ? i.modifiers[t] : {} + i.modifiers ? i.modifiers[t] : {}, ); - } + }, ), (this.modifiers = Object.keys(this.options.modifiers) .map(function (t) { @@ -2086,7 +2087,7 @@ this.state, this.popper, this.reference, - this.options.positionFixed + this.options.positionFixed, )), (t.placement = $t( this.options.placement, @@ -2094,14 +2095,14 @@ this.popper, this.reference, this.options.modifiers.flip.boundariesElement, - this.options.modifiers.flip.padding + this.options.modifiers.flip.padding, )), (t.originalPlacement = t.placement), (t.positionFixed = this.options.positionFixed), (t.offsets.popper = ee( this.popper, t.offsets.reference, - t.placement + t.placement, )), (t.offsets.popper.position = this.options.positionFixed ? "fixed" @@ -2146,7 +2147,7 @@ this.reference, this.options, this.state, - this.scheduleUpdate + this.scheduleUpdate, )); }.call(this); }, @@ -2234,7 +2235,7 @@ if (!this._inNavbar) { if ("undefined" == typeof be) throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); var o = this._element; "parent" === this._config.reference @@ -2248,7 +2249,7 @@ (this._popper = new be( o, this._menu, - this._getPopperConfig() + this._getPopperConfig(), )); } "ontouchstart" in document.documentElement && @@ -2332,10 +2333,10 @@ t.hasClass(ke) ? ((e = Ue), p(this._menu).hasClass(Pe) && (e = Be)) : t.hasClass(Le) - ? (e = Qe) - : t.hasClass(xe) - ? (e = Ve) - : p(this._menu).hasClass(Pe) && (e = Ke), + ? (e = Qe) + : t.hasClass(xe) + ? (e = Ve) + : p(this._menu).hasClass(Pe) && (e = Ke), e ); }), @@ -2352,7 +2353,7 @@ (t.offsets = l( {}, t.offsets, - e._config.offset(t.offsets, e._element) || {} + e._config.offset(t.offsets, e._element) || {}, )), t ); @@ -2788,7 +2789,7 @@ .data("margin-right", n) .css( "margin-right", - parseFloat(i) - o._scrollbarWidth + "px" + parseFloat(i) - o._scrollbarWidth + "px", ); }); var n = document.body.style.paddingRight, @@ -2797,7 +2798,7 @@ .data("padding-right", n) .css( "padding-right", - parseFloat(i) + this._scrollbarWidth + "px" + parseFloat(i) + this._scrollbarWidth + "px", ); } p(document.body).addClass(an); @@ -2918,7 +2919,8 @@ ul: [], }, yn = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi, - En = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + En = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function bn(t, s, e) { if (0 === t.length) return t; if (e && "function" == typeof e) return e(t); @@ -3038,7 +3040,7 @@ function i(t, e) { if ("undefined" == typeof be) throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); (this._isEnabled = !0), (this._timeout = 0), @@ -3069,7 +3071,7 @@ n || ((n = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), p(t.currentTarget).data(e, n)), (n._activeTrigger.click = !n._activeTrigger.click), @@ -3108,7 +3110,7 @@ var n = m.findShadowRoot(this.element), i = p.contains( null !== n ? n : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (t.isDefaultPrevented() || !i) return; var o = this.getTipElement(), @@ -3127,7 +3129,7 @@ p(o).data(this.constructor.DATA_KEY, this), p.contains( this.element.ownerDocument.documentElement, - this.tip + this.tip, ) || p(o).appendTo(l), p(this.element).trigger(this.constructor.Event.INSERTED), (this._popper = new be(this.element, o, { @@ -3217,8 +3219,8 @@ t.html(e)) : t.text(e) : this.config.html - ? p(e).parent().is(t) || t.empty().append(e) - : t.text(p(e).text()); + ? p(e).parent().is(t) || t.empty().append(e) + : t.text(p(e).text()); }), (t.getTitle = function () { var t = this.element.getAttribute("data-original-title"); @@ -3241,7 +3243,7 @@ (t.offsets = l( {}, t.offsets, - e.config.offset(t.offsets, e.element) || {} + e.config.offset(t.offsets, e.element) || {}, )), t ); @@ -3254,8 +3256,8 @@ return !1 === this.config.container ? document.body : m.isElement(this.config.container) - ? p(this.config.container) - : p(document).find(this.config.container); + ? p(this.config.container) + : p(document).find(this.config.container); }), (t._getAttachment = function (t) { return Nn[t.toUpperCase()]; @@ -3269,7 +3271,7 @@ i.config.selector, function (t) { return i.toggle(t); - } + }, ); else if (t !== Bn) { var e = @@ -3306,7 +3308,7 @@ (this.element.getAttribute("title") || "string" !== t) && (this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ), this.element.setAttribute("title", "")); }), @@ -3315,7 +3317,7 @@ (e = e || p(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), p(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusin" === t.type ? Wn : Mn] = !0), @@ -3334,7 +3336,7 @@ (e = e || p(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), p(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusout" === t.type ? Wn : Mn] = !1), @@ -3363,7 +3365,7 @@ {}, this.constructor.Default, e, - "object" == typeof t && t ? t : {} + "object" == typeof t && t ? t : {}, )).delay && (t.delay = { show: t.delay, hide: t.delay }), "number" == typeof t.title && (t.title = t.title.toString()), "number" == typeof t.content && (t.content = t.content.toString()), @@ -3718,7 +3720,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }), @@ -3894,9 +3896,11 @@ }), (t._activate = function (t, e, n) { var i = this, - o = (!e || ("UL" !== e.nodeName && "OL" !== e.nodeName) - ? p(e).children(Hi) - : p(e).find(ji))[0], + o = ( + !e || ("UL" !== e.nodeName && "OL" !== e.nodeName) + ? p(e).children(Hi) + : p(e).find(ji) + )[0], r = n && o && p(o).hasClass(ki), s = function () { return i._transitionComplete(t, o, n); @@ -4038,7 +4042,7 @@ {}, $i, p(this._element).data(), - "object" == typeof t && t ? t : {} + "object" == typeof t && t ? t : {}, )), m.typeCheckConfig(Ui, t, this.constructor.DefaultType), t @@ -4106,7 +4110,7 @@ (function () { if ("undefined" == typeof p) throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); var t = p.fn.jquery.split(" ")[0].split("."); if ( @@ -4115,7 +4119,7 @@ 4 <= t[0] ) throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); })(), (t.Util = m), diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js index 49cb0db..c246c64 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.js @@ -7,9 +7,9 @@ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("jquery"), require("popper.js")) : typeof define === "function" && define.amd - ? define(["exports", "jquery", "popper.js"], factory) - : ((global = global || self), - factory((global.bootstrap = {}), global.jQuery, global.Popper)); + ? define(["exports", "jquery", "popper.js"], factory) + : ((global = global || self), + factory((global.bootstrap = {}), global.jQuery, global.Popper)); })(this, function (exports, $, Popper) { "use strict"; @@ -57,7 +57,7 @@ ownKeys = ownKeys.concat( Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; - }) + }), ); } @@ -162,7 +162,7 @@ } }, getTransitionDurationFromElement: function getTransitionDurationFromElement( - element + element, ) { if (!element) { return 0; @@ -200,7 +200,7 @@ typeCheckConfig: function typeCheckConfig( componentName, config, - configTypes + configTypes, ) { for (var property in configTypes) { if (Object.prototype.hasOwnProperty.call(configTypes, property)) { @@ -218,7 +218,7 @@ '" provided type "' + valueType + '" ') + - ('but expected type "' + expectedTypes + '".') + ('but expected type "' + expectedTypes + '".'), ); } } @@ -399,7 +399,7 @@ $(document).on( Event.CLICK_DATA_API, Selector.DISMISS, - Alert._handleDismiss(new Alert()) + Alert._handleDismiss(new Alert()), ); /** * ------------------------------------------------------------------------ @@ -481,7 +481,7 @@ triggerChangeEvent = false; } else { var activeElement = rootElement.querySelector( - Selector$1.ACTIVE + Selector$1.ACTIVE, ); if (activeElement) { @@ -501,7 +501,7 @@ } input.checked = !this._element.classList.contains( - ClassName$1.ACTIVE + ClassName$1.ACTIVE, ); $(input).trigger("change"); } @@ -514,7 +514,7 @@ if (addAriaPressed) { this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(ClassName$1.ACTIVE) + !this._element.classList.contains(ClassName$1.ACTIVE), ); } @@ -561,24 +561,31 @@ */ $(document) - .on(Event$1.CLICK_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - event.preventDefault(); - var button = event.target; + .on( + Event$1.CLICK_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + event.preventDefault(); + var button = event.target; - if (!$(button).hasClass(ClassName$1.BUTTON)) { - button = $(button).closest(Selector$1.BUTTON); - } + if (!$(button).hasClass(ClassName$1.BUTTON)) { + button = $(button).closest(Selector$1.BUTTON); + } - Button._jQueryInterface.call($(button), "toggle"); - }) - .on(Event$1.FOCUS_BLUR_DATA_API, Selector$1.DATA_TOGGLE_CARROT, function ( - event - ) { - var button = $(event.target).closest(Selector$1.BUTTON)[0]; - $(button).toggleClass(ClassName$1.FOCUS, /^focus(in)?$/.test(event.type)); - }); + Button._jQueryInterface.call($(button), "toggle"); + }, + ) + .on( + Event$1.FOCUS_BLUR_DATA_API, + Selector$1.DATA_TOGGLE_CARROT, + function (event) { + var button = $(event.target).closest(Selector$1.BUTTON)[0]; + $(button).toggleClass( + ClassName$1.FOCUS, + /^focus(in)?$/.test(event.type), + ); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -695,13 +702,13 @@ this._config = this._getConfig(config); this._element = element; this._indicatorsElement = this._element.querySelector( - Selector$2.INDICATORS + Selector$2.INDICATORS, ); this._touchSupported = "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0; this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, ); this._addEventListeners(); @@ -761,9 +768,9 @@ if (this._config.interval && !this._isPaused) { this._interval = setInterval( (document.visibilityState ? this.nextWhenVisible : this.next).bind( - this + this, ), - this._config.interval + this._config.interval, ); } }; @@ -772,7 +779,7 @@ var _this = this; this._activeElement = this._element.querySelector( - Selector$2.ACTIVE_ITEM + Selector$2.ACTIVE_ITEM, ); var activeIndex = this._getItemIndex(this._activeElement); @@ -926,7 +933,7 @@ Event$2.DRAG_START, function (e) { return e.preventDefault(); - } + }, ); if (this._pointerEvent) { @@ -975,7 +982,7 @@ this._items = element && element.parentNode ? [].slice.call( - element.parentNode.querySelectorAll(Selector$2.ITEM) + element.parentNode.querySelectorAll(Selector$2.ITEM), ) : []; return this._items.indexOf(element); @@ -983,7 +990,7 @@ _proto._getItemByDirection = function _getItemByDirection( direction, - activeElement + activeElement, ) { var isNextDirection = direction === Direction.NEXT; var isPrevDirection = direction === Direction.PREV; @@ -1008,12 +1015,12 @@ _proto._triggerSlideEvent = function _triggerSlideEvent( relatedTarget, - eventDirectionName + eventDirectionName, ) { var targetIndex = this._getItemIndex(relatedTarget); var fromIndex = this._getItemIndex( - this._element.querySelector(Selector$2.ACTIVE_ITEM) + this._element.querySelector(Selector$2.ACTIVE_ITEM), ); var slideEvent = $.Event(Event$2.SLIDE, { @@ -1027,17 +1034,16 @@ }; _proto._setActiveIndicatorElement = function _setActiveIndicatorElement( - element + element, ) { if (this._indicatorsElement) { var indicators = [].slice.call( - this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE) + this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE), ); $(indicators).removeClass(ClassName$2.ACTIVE); - var nextIndicator = this._indicatorsElement.children[ - this._getItemIndex(element) - ]; + var nextIndicator = + this._indicatorsElement.children[this._getItemIndex(element)]; if (nextIndicator) { $(nextIndicator).addClass(ClassName$2.ACTIVE); @@ -1080,7 +1086,7 @@ var slideEvent = this._triggerSlideEvent( nextElement, - eventDirectionName + eventDirectionName, ); if (slideEvent.isDefaultPrevented()) { @@ -1114,7 +1120,7 @@ $(nextElement).addClass(directionalClassName); var nextElementInterval = parseInt( nextElement.getAttribute("data-interval"), - 10 + 10, ); if (nextElementInterval) { @@ -1126,9 +1132,8 @@ this._config.defaultInterval || this._config.interval; } - var transitionDuration = Util.getTransitionDurationFromElement( - activeElement - ); + var transitionDuration = + Util.getTransitionDurationFromElement(activeElement); $(activeElement) .one(Util.TRANSITION_END, function () { $(nextElement) @@ -1139,7 +1144,7 @@ " " + orderClassName + " " + - directionalClassName + directionalClassName, ); _this4._isSliding = false; setTimeout(function () { @@ -1247,11 +1252,11 @@ $(document).on( Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, - Carousel._dataApiClickHandler + Carousel._dataApiClickHandler, ); $(window).on(Event$2.LOAD_DATA_API, function () { var carousels = [].slice.call( - document.querySelectorAll(Selector$2.DATA_RIDE) + document.querySelectorAll(Selector$2.DATA_RIDE), ); for (var i = 0, len = carousels.length; i < len; i++) { @@ -1333,11 +1338,11 @@ '[data-toggle="collapse"][href="#' + element.id + '"],' + - ('[data-toggle="collapse"][data-target="#' + element.id + '"]') - ) + ('[data-toggle="collapse"][data-target="#' + element.id + '"]'), + ), ); var toggleList = [].slice.call( - document.querySelectorAll(Selector$3.DATA_TOGGLE) + document.querySelectorAll(Selector$3.DATA_TOGGLE), ); for (var i = 0, len = toggleList.length; i < len; i++) { @@ -1427,7 +1432,7 @@ if (actives) { Collapse._jQueryInterface.call( $(actives).not(this._selector), - "hide" + "hide", ); if (!activesData) { @@ -1466,7 +1471,7 @@ dimension[0].toUpperCase() + dimension.slice(1); var scrollSize = "scroll" + capitalizedDimension; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1532,7 +1537,7 @@ this._element.style[dimension] = ""; var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -1586,7 +1591,7 @@ $(children).each(function (i, element) { _this3._addAriaAndCollapsedClass( Collapse._getTargetFromElement(element), - [element] + [element], ); }); return parent; @@ -1594,7 +1599,7 @@ _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass( element, - triggerArray + triggerArray, ) { var isOpen = $(element).hasClass(ClassName$3.SHOW); @@ -1619,7 +1624,7 @@ {}, Default$1, $this.data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data && _config.toggle && /show|hide/.test(config)) { @@ -1664,25 +1669,27 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function ( - event - ) { - // preventDefault only for elements (which change the URL) not inside the collapsible element - if (event.currentTarget.tagName === "A") { - event.preventDefault(); - } + $(document).on( + Event$3.CLICK_DATA_API, + Selector$3.DATA_TOGGLE, + function (event) { + // preventDefault only for elements (which change the URL) not inside the collapsible element + if (event.currentTarget.tagName === "A") { + event.preventDefault(); + } - var $trigger = $(this); - var selector = Util.getSelectorFromElement(this); - var selectors = [].slice.call(document.querySelectorAll(selector)); - $(selectors).each(function () { - var $target = $(this); - var data = $target.data(DATA_KEY$3); - var config = data ? "toggle" : $trigger.data(); + var $trigger = $(this); + var selector = Util.getSelectorFromElement(this); + var selectors = [].slice.call(document.querySelectorAll(selector)); + $(selectors).each(function () { + var $target = $(this); + var data = $target.data(DATA_KEY$3); + var config = data ? "toggle" : $trigger.data(); - Collapse._jQueryInterface.call($target, config); - }); - }); + Collapse._jQueryInterface.call($target, config); + }); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -1722,7 +1729,7 @@ var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) var REGEXP_KEYDOWN = new RegExp( - ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE + ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE, ); var Event$4 = { HIDE: "hide" + EVENT_KEY$4, @@ -1833,7 +1840,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); } @@ -1858,7 +1865,7 @@ this._popper = new Popper( referenceElement, this._menu, - this._getPopperConfig() + this._getPopperConfig(), ); } // If this is a touch-enabled device we add extra // empty mouseover listeners to the body's immediate children; @@ -1975,7 +1982,7 @@ {}, this.constructor.Default, $(this._element).data(), - config + config, ); Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); return config; @@ -2028,7 +2035,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this2._config.offset(data.offsets, _this2._element) || {} + _this2._config.offset(data.offsets, _this2._element) || {}, ); return data; }; @@ -2093,7 +2100,7 @@ } var toggles = [].slice.call( - document.querySelectorAll(Selector$4.DATA_TOGGLE) + document.querySelectorAll(Selector$4.DATA_TOGGLE), ); for (var i = 0, len = toggles.length; i < len; i++) { @@ -2205,7 +2212,7 @@ } var items = [].slice.call( - parent.querySelectorAll(Selector$4.VISIBLE_ITEMS) + parent.querySelectorAll(Selector$4.VISIBLE_ITEMS), ); if (items.length === 0) { @@ -2264,16 +2271,16 @@ .on( Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.KEYDOWN_DATA_API, Selector$4.MENU, - Dropdown._dataApiKeydownHandler + Dropdown._dataApiKeydownHandler, ) .on( Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, - Dropdown._clearMenus + Dropdown._clearMenus, ) .on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) { event.preventDefault(); @@ -2418,7 +2425,7 @@ Selector$5.DATA_DISMISS, function (event) { return _this.hide(event); - } + }, ); $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () { $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) { @@ -2469,7 +2476,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, function (event) { @@ -2564,7 +2571,7 @@ if (transition) { var transitionDuration = Util.getTransitionDurationFromElement( - this._dialog + this._dialog, ); $(this._dialog) .one(Util.TRANSITION_END, transitionComplete) @@ -2695,9 +2702,8 @@ return; } - var backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callback) .emulateTransitionEnd(backdropTransitionDuration); @@ -2713,9 +2719,8 @@ }; if ($(this._element).hasClass(ClassName$5.FADE)) { - var _backdropTransitionDuration = Util.getTransitionDurationFromElement( - this._backdrop - ); + var _backdropTransitionDuration = + Util.getTransitionDurationFromElement(this._backdrop); $(this._backdrop) .one(Util.TRANSITION_END, callbackRemove) @@ -2762,10 +2767,10 @@ // Note: DOMNode.style.paddingRight returns the actual value or '' if not set // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); var stickyContent = [].slice.call( - document.querySelectorAll(Selector$5.STICKY_CONTENT) + document.querySelectorAll(Selector$5.STICKY_CONTENT), ); // Adjust fixed content padding $(fixedContent).each(function (index, element) { @@ -2775,7 +2780,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px" + parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px", ); }); // Adjust sticky content margin @@ -2786,7 +2791,7 @@ .data("margin-right", actualMargin) .css( "margin-right", - parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px" + parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px", ); }); // Adjust body padding @@ -2796,7 +2801,7 @@ .data("padding-right", actualPadding) .css( "padding-right", - parseFloat(calculatedPadding) + this._scrollbarWidth + "px" + parseFloat(calculatedPadding) + this._scrollbarWidth + "px", ); } @@ -2806,7 +2811,7 @@ _proto._resetScrollbar = function _resetScrollbar() { // Restore fixed content padding var fixedContent = [].slice.call( - document.querySelectorAll(Selector$5.FIXED_CONTENT) + document.querySelectorAll(Selector$5.FIXED_CONTENT), ); $(fixedContent).each(function (index, element) { var padding = $(element).data("padding-right"); @@ -2815,7 +2820,7 @@ }); // Restore sticky content var elements = [].slice.call( - document.querySelectorAll("" + Selector$5.STICKY_CONTENT) + document.querySelectorAll("" + Selector$5.STICKY_CONTENT), ); $(elements).each(function (index, element) { var margin = $(element).data("margin-right"); @@ -2843,7 +2848,7 @@ Modal._jQueryInterface = function _jQueryInterface( config, - relatedTarget + relatedTarget, ) { return this.each(function () { var data = $(this).data(DATA_KEY$5); @@ -2852,7 +2857,7 @@ {}, Default$3, $(this).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (!data) { @@ -2895,41 +2900,43 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function ( - event - ) { - var _this10 = this; + $(document).on( + Event$5.CLICK_DATA_API, + Selector$5.DATA_TOGGLE, + function (event) { + var _this10 = this; - var target; - var selector = Util.getSelectorFromElement(this); + var target; + var selector = Util.getSelectorFromElement(this); - if (selector) { - target = document.querySelector(selector); - } - - var config = $(target).data(DATA_KEY$5) - ? "toggle" - : _objectSpread({}, $(target).data(), $(this).data()); + if (selector) { + target = document.querySelector(selector); + } - if (this.tagName === "A" || this.tagName === "AREA") { - event.preventDefault(); - } + var config = $(target).data(DATA_KEY$5) + ? "toggle" + : _objectSpread({}, $(target).data(), $(this).data()); - var $target = $(target).one(Event$5.SHOW, function (showEvent) { - if (showEvent.isDefaultPrevented()) { - // Only register focus restorer if modal will actually get shown - return; + if (this.tagName === "A" || this.tagName === "AREA") { + event.preventDefault(); } - $target.one(Event$5.HIDDEN, function () { - if ($(_this10).is(":visible")) { - _this10.focus(); + var $target = $(target).one(Event$5.SHOW, function (showEvent) { + if (showEvent.isDefaultPrevented()) { + // Only register focus restorer if modal will actually get shown + return; } + + $target.one(Event$5.HIDDEN, function () { + if ($(_this10).is(":visible")) { + _this10.focus(); + } + }); }); - }); - Modal._jQueryInterface.call($(target), config, this); - }); + Modal._jQueryInterface.call($(target), config, this); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -2999,14 +3006,16 @@ * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ }; - var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + var SAFE_URL_PATTERN = + /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; /** * A pattern that matches safe data URLs. Only matches image, video and audio types. * * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts */ - var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + var DATA_URL_PATTERN = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function allowedAttribute(attr, allowedAttributeList) { var attrName = attr.nodeName.toLowerCase(); @@ -3015,7 +3024,7 @@ if (uriAttrs.indexOf(attrName) !== -1) { return Boolean( attr.nodeValue.match(SAFE_URL_PATTERN) || - attr.nodeValue.match(DATA_URL_PATTERN) + attr.nodeValue.match(DATA_URL_PATTERN), ); } @@ -3061,7 +3070,7 @@ var attributeList = [].slice.call(el.attributes); var whitelistedAttributes = [].concat( whiteList["*"] || [], - whiteList[elName] || [] + whiteList[elName] || [], ); attributeList.forEach(function (attr) { if (!allowedAttribute(attr, whitelistedAttributes)) { @@ -3184,7 +3193,7 @@ */ if (typeof Popper === "undefined") { throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); } // private @@ -3228,7 +3237,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -3292,7 +3301,7 @@ shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (showEvent.isDefaultPrevented() || !isInTheDom) { @@ -3377,7 +3386,7 @@ if ($(this.tip).hasClass(ClassName$6.FADE)) { var transitionDuration = Util.getTransitionDurationFromElement( - this.tip + this.tip, ); $(this.tip) .one(Util.TRANSITION_END, complete) @@ -3466,7 +3475,7 @@ var tip = this.getTipElement(); this.setElementContent( $(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), - this.getTitle() + this.getTitle(), ); $(tip).removeClass(ClassName$6.FADE + " " + ClassName$6.SHOW); }; @@ -3493,7 +3502,7 @@ content = sanitizeHtml( content, this.config.whiteList, - this.config.sanitizeFn + this.config.sanitizeFn, ); } @@ -3526,7 +3535,7 @@ data.offsets = _objectSpread( {}, data.offsets, - _this3.config.offset(data.offsets, _this3.element) || {} + _this3.config.offset(data.offsets, _this3.element) || {}, ); return data; }; @@ -3564,7 +3573,7 @@ _this4.config.selector, function (event) { return _this4.toggle(event); - } + }, ); } else if (trigger !== Trigger.MANUAL) { var eventIn = @@ -3608,7 +3617,7 @@ if (this.element.getAttribute("title") || titleType !== "string") { this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ); this.element.setAttribute("title", ""); } @@ -3621,7 +3630,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -3662,7 +3671,7 @@ if (!context) { context = new this.constructor( event.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), ); $(event.currentTarget).data(dataKey, context); } @@ -3713,7 +3722,7 @@ {}, this.constructor.Default, dataAttributes, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.delay === "number") { @@ -3737,7 +3746,7 @@ config.template = sanitizeHtml( config.template, config.whiteList, - config.sanitizeFn + config.sanitizeFn, ); } @@ -3767,16 +3776,15 @@ } }; - _proto._handlePopperPlacementChange = function _handlePopperPlacementChange( - popperData - ) { - var popperInstance = popperData.instance; - this.tip = popperInstance.popper; + _proto._handlePopperPlacementChange = + function _handlePopperPlacementChange(popperData) { + var popperInstance = popperData.instance; + this.tip = popperInstance.popper; - this._cleanTipClass(); + this._cleanTipClass(); - this.addAttachmentClass(this._getAttachment(popperData.placement)); - }; + this.addAttachmentClass(this._getAttachment(popperData.placement)); + }; _proto._fixTransition = function _fixTransition() { var tip = this.getTipElement(); @@ -3893,7 +3901,7 @@ var CLASS_PREFIX$1 = "bs-popover"; var BSCLS_PREFIX_REGEX$1 = new RegExp( "(^|\\s)" + CLASS_PREFIX$1 + "\\S+", - "g" + "g", ); var Default$5 = _objectSpread({}, Tooltip.Default, { @@ -4229,7 +4237,7 @@ config = _objectSpread( {}, Default$6, - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); if (typeof config.target !== "string") { @@ -4258,7 +4266,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }; @@ -4337,7 +4345,7 @@ }); var $link = $( - [].slice.call(document.querySelectorAll(queries.join(","))) + [].slice.call(document.querySelectorAll(queries.join(","))), ); if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) { @@ -4425,7 +4433,7 @@ $(window).on(Event$8.LOAD_DATA_API, function () { var scrollSpys = [].slice.call( - document.querySelectorAll(Selector$8.DATA_SPY) + document.querySelectorAll(Selector$8.DATA_SPY), ); var scrollSpysLength = scrollSpys.length; @@ -4516,7 +4524,7 @@ var target; var previous; var listElement = $(this._element).closest( - Selector$9.NAV_LIST_GROUP + Selector$9.NAV_LIST_GROUP, )[0]; var selector = Util.getSelectorFromElement(this._element); @@ -4592,9 +4600,8 @@ }; if (active && isTransitioning) { - var transitionDuration = Util.getTransitionDurationFromElement( - active - ); + var transitionDuration = + Util.getTransitionDurationFromElement(active); $(active) .removeClass(ClassName$9.SHOW) .one(Util.TRANSITION_END, complete) @@ -4607,12 +4614,12 @@ _proto._transitionComplete = function _transitionComplete( element, active, - callback + callback, ) { if (active) { $(active).removeClass(ClassName$9.ACTIVE); var dropdownChild = $(active.parentNode).find( - Selector$9.DROPDOWN_ACTIVE_CHILD + Selector$9.DROPDOWN_ACTIVE_CHILD, )[0]; if (dropdownChild) { @@ -4644,7 +4651,7 @@ if (dropdownElement) { var dropdownToggleList = [].slice.call( - dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE) + dropdownElement.querySelectorAll(Selector$9.DROPDOWN_TOGGLE), ); $(dropdownToggleList).addClass(ClassName$9.ACTIVE); } @@ -4694,13 +4701,15 @@ * ------------------------------------------------------------------------ */ - $(document).on(Event$9.CLICK_DATA_API, Selector$9.DATA_TOGGLE, function ( - event - ) { - event.preventDefault(); + $(document).on( + Event$9.CLICK_DATA_API, + Selector$9.DATA_TOGGLE, + function (event) { + event.preventDefault(); - Tab._jQueryInterface.call($(this), "show"); - }); + Tab._jQueryInterface.call($(this), "show"); + }, + ); /** * ------------------------------------------------------------------------ * jQuery @@ -4799,7 +4808,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -4846,7 +4855,7 @@ {}, Default$7, $(this._element).data(), - typeof config === "object" && config ? config : {} + typeof config === "object" && config ? config : {}, ); Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType); return config; @@ -4860,7 +4869,7 @@ Selector$a.DATA_DISMISS, function () { return _this3.hide(true); - } + }, ); }; @@ -4877,7 +4886,7 @@ if (this._config.animation) { var transitionDuration = Util.getTransitionDurationFromElement( - this._element + this._element, ); $(this._element) .one(Util.TRANSITION_END, complete) @@ -4956,7 +4965,7 @@ (function () { if (typeof $ === "undefined") { throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); } @@ -4975,7 +4984,7 @@ version[0] >= maxMajor ) { throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); } })(); diff --git a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js index a451d21..0571005 100644 --- a/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js +++ b/datacube-ows-tools/static/vendor/bootstrap/js/bootstrap.min.js @@ -7,8 +7,8 @@ "object" == typeof exports && "undefined" != typeof module ? e(exports, require("jquery"), require("popper.js")) : "function" == typeof define && define.amd - ? define(["exports", "jquery", "popper.js"], e) - : e(((t = t || self).bootstrap = {}), t.jQuery, t.Popper); + ? define(["exports", "jquery", "popper.js"], e) + : e(((t = t || self).bootstrap = {}), t.jQuery, t.Popper); })(this, function (t, g, u) { "use strict"; function i(t, e) { @@ -31,7 +31,7 @@ (e = e.concat( Object.getOwnPropertySymbols(r).filter(function (t) { return Object.getOwnPropertyDescriptor(r, t).enumerable; - }) + }), )), e.forEach(function (t) { var e, n, i; @@ -129,7 +129,7 @@ s + '" but expected type "' + o + - '".' + '".', ); } var a; @@ -140,8 +140,8 @@ return t instanceof ShadowRoot ? t : t.parentNode - ? _.findShadowRoot(t.parentNode) - : null; + ? _.findShadowRoot(t.parentNode) + : null; var e = t.getRootNode(); return e instanceof ShadowRoot ? e : null; }, @@ -235,7 +235,7 @@ g(document).on( h.CLICK_DATA_API, '[data-dismiss="alert"]', - p._handleDismiss(new p()) + p._handleDismiss(new p()), ), (g.fn[o] = p._jQueryInterface), (g.fn[o].Constructor = p), @@ -295,7 +295,7 @@ e && this._element.setAttribute( "aria-pressed", - !this._element.classList.contains(S) + !this._element.classList.contains(S), ), t && g(this._element).toggleClass(S); }), @@ -410,7 +410,7 @@ "ontouchstart" in document.documentElement || 0 < navigator.maxTouchPoints), (this._pointerEvent = Boolean( - window.PointerEvent || window.MSPointerEvent + window.PointerEvent || window.MSPointerEvent, )), this._addEventListeners(); } @@ -446,7 +446,7 @@ ? this.nextWhenVisible : this.next ).bind(this), - this._config.interval + this._config.interval, )); }), (t.to = function (t) { @@ -523,11 +523,12 @@ return n.cycle(t); }, 500 + n._config.interval))); }; - g(this._element.querySelectorAll(nt)).on(Q.DRAG_START, function ( - t - ) { - return t.preventDefault(); - }), + g(this._element.querySelectorAll(nt)).on( + Q.DRAG_START, + function (t) { + return t.preventDefault(); + }, + ), this._pointerEvent ? (g(this._element).on(Q.POINTERDOWN, function (t) { return e(t); @@ -759,8 +760,8 @@ e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + - '"]' - ) + '"]', + ), )); for ( var n = [].slice.call(document.querySelectorAll(St)), @@ -857,7 +858,7 @@ s = _.getSelectorFromElement(r); if (null !== s) g([].slice.call(document.querySelectorAll(s))).hasClass( - mt + mt, ) || g(r).addClass(yt).attr("aria-expanded", !1); } this.setTransitioning(!0); @@ -1043,7 +1044,7 @@ if (!this._inNavbar) { if ("undefined" == typeof u) throw new TypeError( - "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)" + "Bootstrap's dropdowns require Popper.js (https://popper.js.org/)", ); var o = this._element; "parent" === this._config.reference @@ -1057,7 +1058,7 @@ (this._popper = new u( o, this._menu, - this._getPopperConfig() + this._getPopperConfig(), )); } "ontouchstart" in document.documentElement && @@ -1141,10 +1142,10 @@ t.hasClass(jt) ? ((e = Qt), g(this._menu).hasClass(xt) && (e = Bt)) : t.hasClass(Ht) - ? (e = zt) - : t.hasClass(Rt) - ? (e = Xt) - : g(this._menu).hasClass(xt) && (e = Yt), + ? (e = zt) + : t.hasClass(Rt) + ? (e = Xt) + : g(this._menu).hasClass(xt) && (e = Yt), e ); }), @@ -1161,7 +1162,7 @@ (t.offsets = l( {}, t.offsets, - e._config.offset(t.offsets, e._element) || {} + e._config.offset(t.offsets, e._element) || {}, )), t ); @@ -1597,7 +1598,7 @@ .data("margin-right", n) .css( "margin-right", - parseFloat(i) - o._scrollbarWidth + "px" + parseFloat(i) - o._scrollbarWidth + "px", ); }); var n = document.body.style.paddingRight, @@ -1606,7 +1607,7 @@ .data("padding-right", n) .css( "padding-right", - parseFloat(i) + this._scrollbarWidth + "px" + parseFloat(i) + this._scrollbarWidth + "px", ); } g(document.body).addClass(ce); @@ -1727,7 +1728,8 @@ ul: [], }, Ce = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi, - Te = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + Te = + /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function Se(t, s, e) { if (0 === t.length) return t; if (e && "function" == typeof e) return e(t); @@ -1847,7 +1849,7 @@ function i(t, e) { if ("undefined" == typeof u) throw new TypeError( - "Bootstrap's tooltips require Popper.js (https://popper.js.org/)" + "Bootstrap's tooltips require Popper.js (https://popper.js.org/)", ); (this._isEnabled = !0), (this._timeout = 0), @@ -1878,7 +1880,7 @@ n || ((n = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), g(t.currentTarget).data(e, n)), (n._activeTrigger.click = !n._activeTrigger.click), @@ -1917,7 +1919,7 @@ var n = _.findShadowRoot(this.element), i = g.contains( null !== n ? n : this.element.ownerDocument.documentElement, - this.element + this.element, ); if (t.isDefaultPrevented() || !i) return; var o = this.getTipElement(), @@ -1936,7 +1938,7 @@ g(o).data(this.constructor.DATA_KEY, this), g.contains( this.element.ownerDocument.documentElement, - this.tip + this.tip, ) || g(o).appendTo(l), g(this.element).trigger(this.constructor.Event.INSERTED), (this._popper = new u(this.element, o, { @@ -2026,8 +2028,8 @@ t.html(e)) : t.text(e) : this.config.html - ? g(e).parent().is(t) || t.empty().append(e) - : t.text(g(e).text()); + ? g(e).parent().is(t) || t.empty().append(e) + : t.text(g(e).text()); }), (t.getTitle = function () { var t = this.element.getAttribute("data-original-title"); @@ -2050,7 +2052,7 @@ (t.offsets = l( {}, t.offsets, - e.config.offset(t.offsets, e.element) || {} + e.config.offset(t.offsets, e.element) || {}, )), t ); @@ -2063,8 +2065,8 @@ return !1 === this.config.container ? document.body : _.isElement(this.config.container) - ? g(this.config.container) - : g(document).find(this.config.container); + ? g(this.config.container) + : g(document).find(this.config.container); }), (t._getAttachment = function (t) { return Pe[t.toUpperCase()]; @@ -2078,7 +2080,7 @@ i.config.selector, function (t) { return i.toggle(t); - } + }, ); else if (t !== Qe) { var e = @@ -2115,7 +2117,7 @@ (this.element.getAttribute("title") || "string" !== t) && (this.element.setAttribute( "data-original-title", - this.element.getAttribute("title") || "" + this.element.getAttribute("title") || "", ), this.element.setAttribute("title", "")); }), @@ -2124,7 +2126,7 @@ (e = e || g(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), g(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusin" === t.type ? Me : qe] = !0), @@ -2143,7 +2145,7 @@ (e = e || g(t.currentTarget).data(n)) || ((e = new this.constructor( t.currentTarget, - this._getDelegateConfig() + this._getDelegateConfig(), )), g(t.currentTarget).data(n, e)), t && (e._activeTrigger["focusout" === t.type ? Me : qe] = !1), @@ -2172,7 +2174,7 @@ {}, this.constructor.Default, e, - "object" == typeof t && t ? t : {} + "object" == typeof t && t ? t : {}, )).delay && (t.delay = { show: t.delay, hide: t.delay }), "number" == typeof t.title && (t.title = t.title.toString()), "number" == typeof t.content && (t.content = t.content.toString()), @@ -2527,7 +2529,7 @@ this._scrollElement.scrollHeight || Math.max( document.body.scrollHeight, - document.documentElement.scrollHeight + document.documentElement.scrollHeight, ) ); }), @@ -2703,9 +2705,11 @@ }), (t._activate = function (t, e, n) { var i = this, - o = (!e || ("UL" !== e.nodeName && "OL" !== e.nodeName) - ? g(e).children(Fn) - : g(e).find(Un))[0], + o = ( + !e || ("UL" !== e.nodeName && "OL" !== e.nodeName) + ? g(e).children(Fn) + : g(e).find(Un) + )[0], r = n && o && g(o).hasClass(jn), s = function () { return i._transitionComplete(t, o, n); @@ -2847,7 +2851,7 @@ {}, ti, g(this._element).data(), - "object" == typeof t && t ? t : {} + "object" == typeof t && t ? t : {}, )), _.typeCheckConfig(Qn, t, this.constructor.DefaultType), t @@ -2915,7 +2919,7 @@ (function () { if ("undefined" == typeof g) throw new TypeError( - "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript." + "Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.", ); var t = g.fn.jquery.split(" ")[0].split("."); if ( @@ -2924,7 +2928,7 @@ 4 <= t[0] ) throw new Error( - "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0" + "Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0", ); })(), (t.Util = _), diff --git a/datacube-ows-tools/static/vendor/jquery/jquery.js b/datacube-ows-tools/static/vendor/jquery/jquery.js index cc71d3f..e76c1f9 100644 --- a/datacube-ows-tools/static/vendor/jquery/jquery.js +++ b/datacube-ows-tools/static/vendor/jquery/jquery.js @@ -188,7 +188,7 @@ return this.pushStack( jQuery.map(this, function (elem, i) { return callback.call(elem, i, elem); - }) + }), ); }, @@ -479,11 +479,11 @@ // Populate the class2type map jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( - " " + " ", ), function (i, name) { class2type["[object " + name + "]"] = name.toLowerCase(); - } + }, ); function isArrayLike(obj) { @@ -613,11 +613,11 @@ rwhitespace = new RegExp(whitespace + "+", "g"), rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", - "g" + "g", ), rcomma = new RegExp("^" + whitespace + "*," + whitespace + "*"), rcombinators = new RegExp( - "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" + "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*", ), rdescend = new RegExp(whitespace + "|>"), rpseudo = new RegExp(pseudos), @@ -638,7 +638,7 @@ "*(\\d+)|))" + whitespace + "*\\)|)", - "i" + "i", ), bool: new RegExp("^(?:" + booleans + ")$", "i"), // For use in libraries implementing .is() @@ -651,7 +651,7 @@ "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", - "i" + "i", ), }, rhtml = /HTML$/i, @@ -665,7 +665,7 @@ // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", - "ig" + "ig", ), funescape = function (_, escaped, escapedWhitespace) { var high = "0x" + escaped - 0x10000; @@ -675,13 +675,13 @@ return high !== high || escapedWhitespace ? escaped : high < 0 - ? // BMP codepoint - String.fromCharCode(high + 0x10000) - : // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( - (high >> 10) | 0xd800, - (high & 0x3ff) | 0xdc00 - ); + ? // BMP codepoint + String.fromCharCode(high + 0x10000) + : // Supplemental Plane codepoint (surrogate pair) + String.fromCharCode( + (high >> 10) | 0xd800, + (high & 0x3ff) | 0xdc00, + ); }, // CSS string/identifier serialization // https://drafts.csswg.org/cssom/#common-serializing-idioms @@ -719,14 +719,14 @@ elem.nodeName.toLowerCase() === "fieldset" ); }, - { dir: "parentNode", next: "legend" } + { dir: "parentNode", next: "legend" }, ); // Optimize for push.apply( _, NodeList ) try { push.apply( (arr = slice.call(preferredDoc.childNodes)), - preferredDoc.childNodes + preferredDoc.childNodes, ); // Support: Android<4.0 // Detect silently failing push.apply @@ -1114,7 +1114,7 @@ // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes // https://bugs.jquery.com/ticket/4833 return !rhtml.test( - namespace || (docElem && docElem.nodeName) || "HTML" + namespace || (docElem && docElem.nodeName) || "HTML", ); }; @@ -1177,7 +1177,7 @@ // Support: IE<9 support.getElementsByClassName = rnative.test( - document.getElementsByClassName + document.getElementsByClassName, ); // Support: IE<10 @@ -1343,7 +1343,7 @@ // Boolean attributes and "value" are not treated correctly if (!el.querySelectorAll("[selected]").length) { rbuggyQSA.push( - "\\[" + whitespace + "*(?:value|" + booleans + ")" + "\\[" + whitespace + "*(?:value|" + booleans + ")", ); } @@ -1410,7 +1410,7 @@ docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || - docElem.msMatchesSelector) + docElem.msMatchesSelector), )) ) { assert(function (el) { @@ -1539,14 +1539,14 @@ return a === document ? -1 : b === document - ? 1 - : aup - ? -1 - : bup - ? 1 - : sortInput - ? indexOf(sortInput, a) - indexOf(sortInput, b) - : 0; + ? 1 + : aup + ? -1 + : bup + ? 1 + : sortInput + ? indexOf(sortInput, a) - indexOf(sortInput, b) + : 0; // If the nodes are siblings, we can do a quick check } else if (aup === bup) { @@ -1572,11 +1572,11 @@ ? // Do a sibling check if the nodes have a common ancestor siblingCheck(ap[i], bp[i]) : // Otherwise nodes in our document sort first - ap[i] === preferredDoc - ? -1 - : bp[i] === preferredDoc - ? 1 - : 0; + ap[i] === preferredDoc + ? -1 + : bp[i] === preferredDoc + ? 1 + : 0; }; return document; @@ -1644,10 +1644,10 @@ return val !== undefined ? val : support.attributes || !documentIsHTML - ? elem.getAttribute(name) - : (val = elem.getAttributeNode(name)) && val.specified - ? val.value - : null; + ? elem.getAttribute(name) + : (val = elem.getAttributeNode(name)) && val.specified + ? val.value + : null; }; Sizzle.escape = function (sel) { @@ -1752,7 +1752,7 @@ // Move the given value to match[3] whether quoted or unquoted match[3] = (match[3] || match[4] || match[5] || "").replace( runescape, - funescape + funescape, ); if (match[2] === "~=") { @@ -1851,14 +1851,14 @@ return ( pattern || ((pattern = new RegExp( - "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" + "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)", )) && classCache(className, function (elem) { return pattern.test( (typeof elem.className === "string" && elem.className) || (typeof elem.getAttribute !== "undefined" && elem.getAttribute("class")) || - "" + "", ); })) ); @@ -1880,21 +1880,23 @@ return operator === "=" ? result === check : operator === "!=" - ? result !== check - : operator === "^=" - ? check && result.indexOf(check) === 0 - : operator === "*=" - ? check && result.indexOf(check) > -1 - : operator === "$=" - ? check && result.slice(-check.length) === check - : operator === "~=" - ? (" " + result.replace(rwhitespace, " ") + " ").indexOf( - check - ) > -1 - : operator === "|=" - ? result === check || - result.slice(0, check.length + 1) === check + "-" - : false; + ? result !== check + : operator === "^=" + ? check && result.indexOf(check) === 0 + : operator === "*=" + ? check && result.indexOf(check) > -1 + : operator === "$=" + ? check && result.slice(-check.length) === check + : operator === "~=" + ? ( + " " + + result.replace(rwhitespace, " ") + + " " + ).indexOf(check) > -1 + : operator === "|=" + ? result === check || + result.slice(0, check.length + 1) === check + "-" + : false; }; }, @@ -2282,8 +2284,8 @@ argument < 0 ? argument + length : argument > length - ? length - : argument; + ? length + : argument; for (; --i >= 0; ) { matchIndexes.push(i); } @@ -2389,9 +2391,9 @@ return parseOnly ? soFar.length : soFar - ? Sizzle.error(selector) - : // Cache the tokens - tokenCache(selector, groups).slice(0); + ? Sizzle.error(selector) + : // Cache the tokens + tokenCache(selector, groups).slice(0); }; function toSelector(tokens) { @@ -2523,7 +2525,7 @@ matcher, postFilter, postFinder, - postSelector + postSelector, ) { if (postFilter && !postFilter[expando]) { postFilter = setMatcher(postFilter); @@ -2544,7 +2546,7 @@ multipleContexts( selector || "*", context.nodeType ? [context] : context, - [] + [], ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = @@ -2611,7 +2613,7 @@ matcherOut = condense( matcherOut === results ? matcherOut.splice(preexisting, matcherOut.length) - : matcherOut + : matcherOut, ); if (postFinder) { postFinder(null, results, matcherOut, xml); @@ -2636,14 +2638,14 @@ return elem === checkContext; }, implicitRelative, - true + true, ), matchAnyContext = addCombinator( function (elem) { return indexOf(checkContext, elem) > -1; }, implicitRelative, - true + true, ), matchers = [ function (elem, context, xml) { @@ -2664,7 +2666,7 @@ } else { matcher = Expr.filter[tokens[i].type].apply( null, - tokens[i].matches + tokens[i].matches, ); // Return special upon seeing a positional matcher @@ -2683,12 +2685,12 @@ // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens .slice(0, i - 1) - .concat({ value: tokens[i - 2].type === " " ? "*" : "" }) + .concat({ value: tokens[i - 2].type === " " ? "*" : "" }), ).replace(rtrim, "$1"), matcher, i < j && matcherFromTokens(tokens.slice(i, j)), j < len && matcherFromTokens((tokens = tokens.slice(j))), - j < len && toSelector(tokens) + j < len && toSelector(tokens), ); } matchers.push(matcher); @@ -2815,7 +2817,7 @@ compile = Sizzle.compile = function ( selector, - match /* Internal Use Only */ + match /* Internal Use Only */, ) { var i, setMatchers = [], @@ -2840,7 +2842,7 @@ // Cache the compiled function cached = compilerCache( selector, - matcherFromGroupMatchers(elementMatchers, setMatchers) + matcherFromGroupMatchers(elementMatchers, setMatchers), ); // Save selector and tokenization @@ -2883,7 +2885,7 @@ ) { context = (Expr.find["ID"]( token.matches[0].replace(runescape, funescape), - context + context, ) || [])[0]; if (!context) { return results; @@ -2912,7 +2914,7 @@ token.matches[0].replace(runescape, funescape), (rsibling.test(tokens[0].type) && testContext(context.parentNode)) || - context + context, )) ) { // If seed is empty or no tokens remain, we can return early @@ -2938,7 +2940,7 @@ results, !context || (rsibling.test(selector) && testContext(context.parentNode)) || - context + context, ); return results; }; @@ -2978,7 +2980,7 @@ if (!isXML) { return elem.getAttribute( name, - name.toLowerCase() === "type" ? 1 : 2 + name.toLowerCase() === "type" ? 1 : 2, ); } }); @@ -3014,8 +3016,8 @@ return elem[name] === true ? name.toLowerCase() : (val = elem.getAttributeNode(name)) && val.specified - ? val.value - : null; + ? val.value + : null; } }); } @@ -3066,7 +3068,8 @@ function nodeName(elem, name) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); } - var rsingleTag = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; + var rsingleTag = + /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; // Implement the identical functionality for filter and not function winnow(elements, qualifier, not) { @@ -3109,7 +3112,7 @@ expr, jQuery.grep(elems, function (elem) { return elem.nodeType === 1; - }) + }), ); }; @@ -3128,7 +3131,7 @@ return true; } } - }) + }), ); } @@ -3155,7 +3158,7 @@ typeof selector === "string" && rneedsContext.test(selector) ? jQuery(selector) : selector || [], - false + false, ).length; }, }); @@ -3209,8 +3212,8 @@ context && context.nodeType ? context.ownerDocument || context : document, - true - ) + true, + ), ); // HANDLE: $(html, props) @@ -3327,7 +3330,7 @@ } return this.pushStack( - matched.length > 1 ? jQuery.uniqueSort(matched) : matched + matched.length > 1 ? jQuery.uniqueSort(matched) : matched, ); }, @@ -3350,19 +3353,19 @@ this, // If it receives a jQuery object, the first element is used - elem.jquery ? elem[0] : elem + elem.jquery ? elem[0] : elem, ); }, add: function (selector, context) { return this.pushStack( - jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))) + jQuery.uniqueSort(jQuery.merge(this.get(), jQuery(selector, context))), ); }, addBack: function (selector) { return this.add( - selector == null ? this.prevObject : this.prevObject.filter(selector) + selector == null ? this.prevObject : this.prevObject.filter(selector), ); }, }); @@ -3449,7 +3452,7 @@ return this.pushStack(matched); }; - } + }, ); var rnothtmlwhite = /[^\x20\t\r\n\f]+/g; @@ -3766,7 +3769,7 @@ } else { newDefer[tuple[0] + "With"]( this, - fn ? [returned] : arguments + fn ? [returned] : arguments, ); } }); @@ -3819,7 +3822,7 @@ then.call( returned, resolve(maxDepth, deferred, Identity, special), - resolve(maxDepth, deferred, Thrower, special) + resolve(maxDepth, deferred, Thrower, special), ); // Normal processors (resolve) also hook into progress @@ -3835,8 +3838,8 @@ maxDepth, deferred, Identity, - deferred.notifyWith - ) + deferred.notifyWith, + ), ); } @@ -3864,7 +3867,7 @@ if (jQuery.Deferred.exceptionHook) { jQuery.Deferred.exceptionHook( e, - process.stackTrace + process.stackTrace, ); } @@ -3909,8 +3912,8 @@ 0, newDefer, isFunction(onProgress) ? onProgress : Identity, - newDefer.notifyWith - ) + newDefer.notifyWith, + ), ); // fulfilled_handlers.add( ... ) @@ -3918,8 +3921,8 @@ resolve( 0, newDefer, - isFunction(onFulfilled) ? onFulfilled : Identity - ) + isFunction(onFulfilled) ? onFulfilled : Identity, + ), ); // rejected_handlers.add( ... ) @@ -3927,8 +3930,8 @@ resolve( 0, newDefer, - isFunction(onRejected) ? onRejected : Thrower - ) + isFunction(onRejected) ? onRejected : Thrower, + ), ); }) .promise(); @@ -3973,7 +3976,7 @@ tuples[0][2].lock, // progress_handlers.lock - tuples[0][3].lock + tuples[0][3].lock, ); } @@ -3988,7 +3991,7 @@ deferred[tuple[0]] = function () { deferred[tuple[0] + "With"]( this === deferred ? undefined : this, - arguments + arguments, ); return this; }; @@ -4040,7 +4043,7 @@ singleValue, master.done(updateFunc(i)).resolve, master.reject, - !remaining + !remaining, ); // Use .then() to unwrap secondary thenables (cf. gh-3000) @@ -4077,7 +4080,7 @@ window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, - stack + stack, ); } }; @@ -4202,7 +4205,7 @@ fn( elems[i], key, - raw ? value : value.call(elems[i], i, fn(elems[i], key)) + raw ? value : value.call(elems[i], i, fn(elems[i], key)), ); } } @@ -4553,7 +4556,7 @@ value, arguments.length > 1, null, - true + true, ); }, @@ -4950,8 +4953,11 @@ // Support: IE <=9 only wrapMap.optgroup = wrapMap.option; - wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = - wrapMap.thead; + wrapMap.tbody = + wrapMap.tfoot = + wrapMap.colgroup = + wrapMap.caption = + wrapMap.thead; wrapMap.th = wrapMap.td; function getAll(context, tag) { @@ -4983,7 +4989,7 @@ dataPriv.set( elems[i], "globalEval", - !refElements || dataPriv.get(refElements[i], "globalEval") + !refElements || dataPriv.get(refElements[i], "globalEval"), ); } } @@ -5286,7 +5292,7 @@ selector && jQuery.expr.match.needsContext.test(selector), namespace: namespaces.join("."), }, - handleObjIn + handleObjIn, ); // Init the event handler queue if we're the first @@ -5728,7 +5734,7 @@ // Extend with the prototype to reset the above stopImmediatePropagation() jQuery.extend(saved[0], jQuery.Event.prototype), saved.slice(1), - this + this, ), }); @@ -5901,35 +5907,35 @@ return event.which; }, }, - jQuery.event.addProp + jQuery.event.addProp, ); - jQuery.each({ focus: "focusin", blur: "focusout" }, function ( - type, - delegateType - ) { - jQuery.event.special[type] = { - // Utilize native event if possible so blur/focus sequence is correct - setup: function () { - // Claim the first handler - // dataPriv.set( this, "focus", ... ) - // dataPriv.set( this, "blur", ... ) - leverageNative(this, type, expectSync); - - // Return false to allow normal processing in the caller - return false; - }, - trigger: function () { - // Force setup before trigger - leverageNative(this, type); + jQuery.each( + { focus: "focusin", blur: "focusout" }, + function (type, delegateType) { + jQuery.event.special[type] = { + // Utilize native event if possible so blur/focus sequence is correct + setup: function () { + // Claim the first handler + // dataPriv.set( this, "focus", ... ) + // dataPriv.set( this, "blur", ... ) + leverageNative(this, type, expectSync); - // Return non-false to allow normal event-path propagation - return true; - }, + // Return false to allow normal processing in the caller + return false; + }, + trigger: function () { + // Force setup before trigger + leverageNative(this, type); - delegateType: delegateType, - }; - }); + // Return non-false to allow normal event-path propagation + return true; + }, + + delegateType: delegateType, + }; + }, + ); // Create mouseenter/leave events using mouseover/out and event-time checks // so that event delegation works in jQuery. @@ -5970,7 +5976,7 @@ return ret; }, }; - } + }, ); jQuery.fn.extend({ @@ -5990,7 +5996,7 @@ ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, - handleObj.handler + handleObj.handler, ); return this; } @@ -6018,7 +6024,8 @@ var /* eslint-disable max-len */ // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + rxhtmlTag = + /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, /* eslint-enable */ // Support: IE <=10 - 11, Edge 12 - 13 only @@ -6143,7 +6150,7 @@ collection[0].ownerDocument, false, collection, - ignored + ignored, ); first = fragment.firstChild; @@ -6345,7 +6352,7 @@ }, null, value, - arguments.length + arguments.length, ); }, @@ -6461,7 +6468,7 @@ }, null, value, - arguments.length + arguments.length, ); }, @@ -6484,7 +6491,7 @@ // Force callback invocation }, - ignored + ignored, ); }, }); @@ -6516,7 +6523,7 @@ return this.pushStack(ret); }; - } + }, ); var rnumnonpx = new RegExp("^(" + pnum + ")(?!px)[a-z%]+$", "i"); @@ -6760,7 +6767,7 @@ box, isBorderBox, styles, - computedVal + computedVal, ) { var i = dimension === "width" ? 1 : 0, extra = 0, @@ -6788,7 +6795,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); // But still keep track of it otherwise @@ -6797,7 +6804,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); } @@ -6815,7 +6822,7 @@ elem, "border" + cssExpand[i] + "Width", true, - styles + styles, ); } } @@ -6833,11 +6840,11 @@ computedVal - delta - extra - - 0.5 + 0.5, // If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter // Use an explicit zero to avoid NaN (gh-3964) - ) + ), ) || 0; } @@ -6907,7 +6914,7 @@ styles, // Provide the current computed size to request scroll gutter calculation (gh-3589) - val + val, ) + "px" ); @@ -7128,7 +7135,7 @@ elem["offset" + dimension[0].toUpperCase() + dimension.slice(1)] - parseFloat(styles[dimension]) - boxModelAdjustment(elem, dimension, "border", false, styles) - - 0.5 + 0.5, ); } @@ -7159,7 +7166,7 @@ })) + "px" ); } - } + }, ); // These hooks are used by animate to expand properties @@ -7189,7 +7196,7 @@ if (prefix !== "margin") { jQuery.cssHooks[prefix + suffix].set = setPositiveNumber; } - } + }, ); jQuery.fn.extend({ @@ -7219,7 +7226,7 @@ }, name, value, - arguments.length > 1 + arguments.length > 1, ); }, }); @@ -7257,7 +7264,7 @@ this.options.duration * percent, 0, 1, - this.options.duration + this.options.duration, ); } else { this.pos = eased = percent; @@ -7396,7 +7403,7 @@ function createTween(value, prop, animation) { var tween, collection = (Animation.tweeners[prop] || []).concat( - Animation.tweeners["*"] + Animation.tweeners["*"], ), index = 0, length = collection.length; @@ -7638,7 +7645,7 @@ var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, - animation.startTime + animation.duration - currentTime + animation.startTime + animation.duration - currentTime, ), // Support: Android 2.3 only // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) @@ -7676,7 +7683,7 @@ specialEasing: {}, easing: jQuery.easing._default, }, - options + options, ), originalProperties: properties, originalOptions: options, @@ -7689,7 +7696,7 @@ animation.opts, prop, end, - animation.opts.specialEasing[prop] || animation.opts.easing + animation.opts.specialEasing[prop] || animation.opts.easing, ); animation.tweens.push(tween); return tween; @@ -7726,14 +7733,12 @@ animation, elem, props, - animation.opts + animation.opts, ); if (result) { if (isFunction(result.stop)) { - jQuery._queueHooks( - animation.elem, - animation.opts.queue - ).stop = result.stop.bind(result); + jQuery._queueHooks(animation.elem, animation.opts.queue).stop = + result.stop.bind(result); } return result; } @@ -7757,7 +7762,7 @@ elem: elem, anim: animation, queue: animation.opts.queue, - }) + }), ); return animation; @@ -7998,7 +8003,7 @@ jQuery.fn[name] = function (speed, easing, callback) { return this.animate(props, speed, easing, callback); }; - } + }, ); jQuery.timers = []; @@ -8353,7 +8358,7 @@ ], function () { jQuery.propFix[this.toLowerCase()] = this; - } + }, ); // Strip and collapse whitespace according to HTML spec @@ -8483,7 +8488,7 @@ return this.each(function (i) { jQuery(this).toggleClass( value.call(this, i, getClass(this), stateVal), - stateVal + stateVal, ); }); } @@ -8523,7 +8528,7 @@ "class", className || value === false ? "" - : dataPriv.get(this, "__className__") || "" + : dataPriv.get(this, "__className__") || "", ); } } @@ -9010,7 +9015,7 @@ prefix + "[" + (typeof v === "object" && v != null ? i : "") + "]", v, traditional, - add + add, ); } }); @@ -9110,7 +9115,8 @@ rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/gm, // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, + rlocalProtocol = + /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, /* Prefilters @@ -9170,7 +9176,7 @@ structure, options, originalOptions, - jqXHR + jqXHR, ) { var inspected = {}, seekingTransport = structure === transports; @@ -9182,7 +9188,7 @@ var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, - jqXHR + jqXHR, ); if ( typeof dataTypeOrTransport === "string" && @@ -9595,7 +9601,7 @@ // We also use the url parameter if available s.url = ((url || s.url || location.href) + "").replace( rprotocol, - location.protocol + "//" + location.protocol + "//", ); // Alias method option to type as per ticket #12004 @@ -9699,7 +9705,7 @@ if (jQuery.lastModified[cacheURL]) { jqXHR.setRequestHeader( "If-Modified-Since", - jQuery.lastModified[cacheURL] + jQuery.lastModified[cacheURL], ); } if (jQuery.etag[cacheURL]) { @@ -9721,7 +9727,7 @@ s.dataTypes[0] && s.accepts[s.dataTypes[0]] ? s.accepts[s.dataTypes[0]] + (s.dataTypes[0] !== "*" ? ", " + allTypes + "; q=0.01" : "") - : s.accepts["*"] + : s.accepts["*"], ); // Check for headers option @@ -9935,8 +9941,8 @@ data: data, success: callback, }, - jQuery.isPlainObject(url) && url - ) + jQuery.isPlainObject(url) && url, + ), ); }; }); @@ -10078,7 +10084,7 @@ options.url, options.async, options.username, - options.password + options.password, ); // Apply custom fields if provided @@ -10111,7 +10117,14 @@ callback = function (type) { return function () { if (callback) { - callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.ontimeout = xhr.onreadystatechange = null; + callback = + errorCallback = + xhr.onload = + xhr.onerror = + xhr.onabort = + xhr.ontimeout = + xhr.onreadystatechange = + null; if (type === "abort") { xhr.abort(); @@ -10125,7 +10138,7 @@ complete( // File: protocol always yields status 0; see #8605, #14207 xhr.status, - xhr.statusText + xhr.statusText, ); } } else { @@ -10140,7 +10153,7 @@ typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText }, - xhr.getAllResponseHeaders() + xhr.getAllResponseHeaders(), ); } } @@ -10249,7 +10262,7 @@ if (evt) { complete(evt.type === "error" ? 404 : 200, evt.type); } - }) + }), ); // Use native DOM manipulation to avoid our domManip AJAX trickery @@ -10288,7 +10301,7 @@ ? "url" : typeof s.data === "string" && (s.contentType || "").indexOf( - "application/x-www-form-urlencoded" + "application/x-www-form-urlencoded", ) === 0 && rjsonp.test(s.data) && "data"); @@ -10469,7 +10482,7 @@ .append(jQuery.parseHTML(responseText)) .find(selector) : // Otherwise use the full result - responseText + responseText, ); // If the request succeeds, this function gets "data", "status", "jqXHR" @@ -10482,10 +10495,10 @@ self.each(function () { callback.apply( this, - response || [jqXHR.responseText, status, jqXHR] + response || [jqXHR.responseText, status, jqXHR], ); }); - } + }, ); } @@ -10506,7 +10519,7 @@ jQuery.fn[type] = function (fn) { return this.on(type, fn); }; - } + }, ); jQuery.expr.pseudos.animated = function (elem) { @@ -10650,7 +10663,7 @@ parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", - true + true, ); } } @@ -10717,7 +10730,7 @@ if (win) { win.scrollTo( !top ? val : win.pageXOffset, - top ? val : win.pageYOffset + top ? val : win.pageYOffset, ); } else { elem[method] = val; @@ -10725,10 +10738,10 @@ }, method, val, - arguments.length + arguments.length, ); }; - } + }, ); // Support: Safari <=7 - 9.1, Chrome <=37 - 49 @@ -10738,19 +10751,19 @@ // getComputedStyle returns percent when specified for top/left/bottom/right; // rather than make the css module depend on the offset module, just check for it here jQuery.each(["top", "left"], function (i, prop) { - jQuery.cssHooks[prop] = addGetHookIf(support.pixelPosition, function ( - elem, - computed - ) { - if (computed) { - computed = curCSS(elem, prop); + jQuery.cssHooks[prop] = addGetHookIf( + support.pixelPosition, + function (elem, computed) { + if (computed) { + computed = curCSS(elem, prop); - // If curCSS returns percentage, fallback to offset - return rnumnonpx.test(computed) - ? jQuery(elem).position()[prop] + "px" - : computed; - } - }); + // If curCSS returns percentage, fallback to offset + return rnumnonpx.test(computed) + ? jQuery(elem).position()[prop] + "px" + : computed; + } + }, + ); }); // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods @@ -10789,7 +10802,7 @@ doc["scroll" + name], elem.body["offset" + name], doc["offset" + name], - doc["client" + name] + doc["client" + name], ); } @@ -10801,10 +10814,10 @@ }, type, chainable ? margin : undefined, - chainable + chainable, ); }; - } + }, ); }); @@ -10821,7 +10834,7 @@ ? this.on(name, null, data, fn) : this.trigger(name); }; - } + }, ); jQuery.fn.extend({ diff --git a/datacube-ows-tools/static/vendor/jquery/jquery.min.js b/datacube-ows-tools/static/vendor/jquery/jquery.min.js index f55b4f1..d833202 100644 --- a/datacube-ows-tools/static/vendor/jquery/jquery.min.js +++ b/datacube-ows-tools/static/vendor/jquery/jquery.min.js @@ -46,8 +46,8 @@ return null == e ? e + "" : "object" == typeof e || "function" == typeof e - ? n[o.call(e)] || "object" - : typeof e; + ? n[o.call(e)] || "object" + : typeof e; } var f = "3.4.1", k = function (e, t) { @@ -65,87 +65,93 @@ ("number" == typeof t && 0 < t && t - 1 in e)) ); } - (k.fn = k.prototype = { - jquery: f, - constructor: k, - length: 0, - toArray: function () { - return s.call(this); - }, - get: function (e) { - return null == e ? s.call(this) : e < 0 ? this[e + this.length] : this[e]; - }, - pushStack: function (e) { - var t = k.merge(this.constructor(), e); - return (t.prevObject = this), t; - }, - each: function (e) { - return k.each(this, e); - }, - map: function (n) { - return this.pushStack( - k.map(this, function (e, t) { - return n.call(e, t, e); - }) - ); - }, - slice: function () { - return this.pushStack(s.apply(this, arguments)); - }, - first: function () { - return this.eq(0); - }, - last: function () { - return this.eq(-1); - }, - eq: function (e) { - var t = this.length, - n = +e + (e < 0 ? t : 0); - return this.pushStack(0 <= n && n < t ? [this[n]] : []); - }, - end: function () { - return this.prevObject || this.constructor(); - }, - push: u, - sort: t.sort, - splice: t.splice, - }), - (k.extend = k.fn.extend = function () { - var e, - t, - n, - r, - i, - o, - a = arguments[0] || {}, - s = 1, - u = arguments.length, - l = !1; - for ( - "boolean" == typeof a && ((l = a), (a = arguments[s] || {}), s++), - "object" == typeof a || m(a) || (a = {}), - s === u && ((a = this), s--); - s < u; - s++ - ) - if (null != (e = arguments[s])) - for (t in e) - (r = e[t]), - "__proto__" !== t && - a !== r && - (l && r && (k.isPlainObject(r) || (i = Array.isArray(r))) - ? ((n = a[t]), - (o = - i && !Array.isArray(n) - ? [] - : i || k.isPlainObject(n) - ? n - : {}), - (i = !1), - (a[t] = k.extend(l, o, r))) - : void 0 !== r && (a[t] = r)); - return a; + (k.fn = k.prototype = + { + jquery: f, + constructor: k, + length: 0, + toArray: function () { + return s.call(this); + }, + get: function (e) { + return null == e + ? s.call(this) + : e < 0 + ? this[e + this.length] + : this[e]; + }, + pushStack: function (e) { + var t = k.merge(this.constructor(), e); + return (t.prevObject = this), t; + }, + each: function (e) { + return k.each(this, e); + }, + map: function (n) { + return this.pushStack( + k.map(this, function (e, t) { + return n.call(e, t, e); + }), + ); + }, + slice: function () { + return this.pushStack(s.apply(this, arguments)); + }, + first: function () { + return this.eq(0); + }, + last: function () { + return this.eq(-1); + }, + eq: function (e) { + var t = this.length, + n = +e + (e < 0 ? t : 0); + return this.pushStack(0 <= n && n < t ? [this[n]] : []); + }, + end: function () { + return this.prevObject || this.constructor(); + }, + push: u, + sort: t.sort, + splice: t.splice, }), + (k.extend = k.fn.extend = + function () { + var e, + t, + n, + r, + i, + o, + a = arguments[0] || {}, + s = 1, + u = arguments.length, + l = !1; + for ( + "boolean" == typeof a && ((l = a), (a = arguments[s] || {}), s++), + "object" == typeof a || m(a) || (a = {}), + s === u && ((a = this), s--); + s < u; + s++ + ) + if (null != (e = arguments[s])) + for (t in e) + (r = e[t]), + "__proto__" !== t && + a !== r && + (l && r && (k.isPlainObject(r) || (i = Array.isArray(r))) + ? ((n = a[t]), + (o = + i && !Array.isArray(n) + ? [] + : i || k.isPlainObject(n) + ? n + : {}), + (i = !1), + (a[t] = k.extend(l, o, r))) + : void 0 !== r && (a[t] = r)); + return a; + }), k.extend({ expando: "jQuery" + (f + Math.random()).replace(/\D/g, ""), isReady: !0, @@ -222,11 +228,11 @@ "function" == typeof Symbol && (k.fn[Symbol.iterator] = t[Symbol.iterator]), k.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( - " " + " ", ), function (e, t) { n["[object " + t + "]"] = t.toLowerCase(); - } + }, ); var h = (function (n) { var e, @@ -316,7 +322,7 @@ "*(\\d+)|))" + M + "*\\)|)", - "i" + "i", ), bool: new RegExp("^(?:" + R + ")$", "i"), needsContext: new RegExp( @@ -327,7 +333,7 @@ "*((?:-\\d)?\\d*)" + M + "*\\)|)(?=[^-]|$)", - "i" + "i", ), }, Y = /HTML$/i, @@ -342,8 +348,8 @@ return r != r || n ? t : r < 0 - ? String.fromCharCode(r + 65536) - : String.fromCharCode((r >> 10) | 55296, (1023 & r) | 56320); + ? String.fromCharCode(r + 65536) + : String.fromCharCode((r >> 10) | 55296, (1023 & r) | 56320); }, re = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, ie = function (e, t) { @@ -363,7 +369,7 @@ function (e) { return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase(); }, - { dir: "parentNode", next: "legend" } + { dir: "parentNode", next: "legend" }, ); try { H.apply((t = O.call(m.childNodes)), m.childNodes), @@ -521,240 +527,243 @@ return e && "undefined" != typeof e.getElementsByTagName && e; } for (e in ((d = se.support = {}), - (i = se.isXML = function (e) { - var t = e.namespaceURI, - n = (e.ownerDocument || e).documentElement; - return !Y.test(t || (n && n.nodeName) || "HTML"); - }), - (T = se.setDocument = function (e) { - var t, - n, - r = e ? e.ownerDocument || e : m; - return ( - r !== C && - 9 === r.nodeType && - r.documentElement && - ((a = (C = r).documentElement), - (E = !i(C)), - m !== C && - (n = C.defaultView) && - n.top !== n && - (n.addEventListener - ? n.addEventListener("unload", oe, !1) - : n.attachEvent && n.attachEvent("onunload", oe)), - (d.attributes = ce(function (e) { - return (e.className = "i"), !e.getAttribute("className"); - })), - (d.getElementsByTagName = ce(function (e) { - return ( - e.appendChild(C.createComment("")), - !e.getElementsByTagName("*").length - ); - })), - (d.getElementsByClassName = K.test(C.getElementsByClassName)), - (d.getById = ce(function (e) { - return ( - (a.appendChild(e).id = k), - !C.getElementsByName || !C.getElementsByName(k).length - ); - })), - d.getById - ? ((b.filter.ID = function (e) { - var t = e.replace(te, ne); - return function (e) { - return e.getAttribute("id") === t; - }; - }), - (b.find.ID = function (e, t) { - if ("undefined" != typeof t.getElementById && E) { - var n = t.getElementById(e); - return n ? [n] : []; - } - })) - : ((b.filter.ID = function (e) { - var n = e.replace(te, ne); - return function (e) { - var t = - "undefined" != typeof e.getAttributeNode && - e.getAttributeNode("id"); - return t && t.value === n; - }; - }), - (b.find.ID = function (e, t) { - if ("undefined" != typeof t.getElementById && E) { - var n, - r, - i, - o = t.getElementById(e); - if (o) { - if ((n = o.getAttributeNode("id")) && n.value === e) - return [o]; - (i = t.getElementsByName(e)), (r = 0); - while ((o = i[r++])) + (i = se.isXML = + function (e) { + var t = e.namespaceURI, + n = (e.ownerDocument || e).documentElement; + return !Y.test(t || (n && n.nodeName) || "HTML"); + }), + (T = se.setDocument = + function (e) { + var t, + n, + r = e ? e.ownerDocument || e : m; + return ( + r !== C && + 9 === r.nodeType && + r.documentElement && + ((a = (C = r).documentElement), + (E = !i(C)), + m !== C && + (n = C.defaultView) && + n.top !== n && + (n.addEventListener + ? n.addEventListener("unload", oe, !1) + : n.attachEvent && n.attachEvent("onunload", oe)), + (d.attributes = ce(function (e) { + return (e.className = "i"), !e.getAttribute("className"); + })), + (d.getElementsByTagName = ce(function (e) { + return ( + e.appendChild(C.createComment("")), + !e.getElementsByTagName("*").length + ); + })), + (d.getElementsByClassName = K.test(C.getElementsByClassName)), + (d.getById = ce(function (e) { + return ( + (a.appendChild(e).id = k), + !C.getElementsByName || !C.getElementsByName(k).length + ); + })), + d.getById + ? ((b.filter.ID = function (e) { + var t = e.replace(te, ne); + return function (e) { + return e.getAttribute("id") === t; + }; + }), + (b.find.ID = function (e, t) { + if ("undefined" != typeof t.getElementById && E) { + var n = t.getElementById(e); + return n ? [n] : []; + } + })) + : ((b.filter.ID = function (e) { + var n = e.replace(te, ne); + return function (e) { + var t = + "undefined" != typeof e.getAttributeNode && + e.getAttributeNode("id"); + return t && t.value === n; + }; + }), + (b.find.ID = function (e, t) { + if ("undefined" != typeof t.getElementById && E) { + var n, + r, + i, + o = t.getElementById(e); + if (o) { if ((n = o.getAttributeNode("id")) && n.value === e) return [o]; + (i = t.getElementsByName(e)), (r = 0); + while ((o = i[r++])) + if ((n = o.getAttributeNode("id")) && n.value === e) + return [o]; + } + return []; } - return []; + })), + (b.find.TAG = d.getElementsByTagName + ? function (e, t) { + return "undefined" != typeof t.getElementsByTagName + ? t.getElementsByTagName(e) + : d.qsa + ? t.querySelectorAll(e) + : void 0; } + : function (e, t) { + var n, + r = [], + i = 0, + o = t.getElementsByTagName(e); + if ("*" === e) { + while ((n = o[i++])) 1 === n.nodeType && r.push(n); + return r; + } + return o; + }), + (b.find.CLASS = + d.getElementsByClassName && + function (e, t) { + if ("undefined" != typeof t.getElementsByClassName && E) + return t.getElementsByClassName(e); + }), + (s = []), + (v = []), + (d.qsa = K.test(C.querySelectorAll)) && + (ce(function (e) { + (a.appendChild(e).innerHTML = + ""), + e.querySelectorAll("[msallowcapture^='']").length && + v.push("[*^$]=" + M + "*(?:''|\"\")"), + e.querySelectorAll("[selected]").length || + v.push("\\[" + M + "*(?:value|" + R + ")"), + e.querySelectorAll("[id~=" + k + "-]").length || v.push("~="), + e.querySelectorAll(":checked").length || v.push(":checked"), + e.querySelectorAll("a#" + k + "+*").length || + v.push(".#.+[+~]"); + }), + ce(function (e) { + e.innerHTML = + ""; + var t = C.createElement("input"); + t.setAttribute("type", "hidden"), + e.appendChild(t).setAttribute("name", "D"), + e.querySelectorAll("[name=d]").length && + v.push("name" + M + "*[*^$|!~]?="), + 2 !== e.querySelectorAll(":enabled").length && + v.push(":enabled", ":disabled"), + (a.appendChild(e).disabled = !0), + 2 !== e.querySelectorAll(":disabled").length && + v.push(":enabled", ":disabled"), + e.querySelectorAll("*,:x"), + v.push(",.*:"); })), - (b.find.TAG = d.getElementsByTagName - ? function (e, t) { - return "undefined" != typeof t.getElementsByTagName - ? t.getElementsByTagName(e) - : d.qsa - ? t.querySelectorAll(e) - : void 0; - } - : function (e, t) { - var n, - r = [], - i = 0, - o = t.getElementsByTagName(e); - if ("*" === e) { - while ((n = o[i++])) 1 === n.nodeType && r.push(n); - return r; - } - return o; + (d.matchesSelector = K.test( + (c = + a.matches || + a.webkitMatchesSelector || + a.mozMatchesSelector || + a.oMatchesSelector || + a.msMatchesSelector), + )) && + ce(function (e) { + (d.disconnectedMatch = c.call(e, "*")), + c.call(e, "[s!='']:x"), + s.push("!=", $); }), - (b.find.CLASS = - d.getElementsByClassName && - function (e, t) { - if ("undefined" != typeof t.getElementsByClassName && E) - return t.getElementsByClassName(e); - }), - (s = []), - (v = []), - (d.qsa = K.test(C.querySelectorAll)) && - (ce(function (e) { - (a.appendChild(e).innerHTML = - ""), - e.querySelectorAll("[msallowcapture^='']").length && - v.push("[*^$]=" + M + "*(?:''|\"\")"), - e.querySelectorAll("[selected]").length || - v.push("\\[" + M + "*(?:value|" + R + ")"), - e.querySelectorAll("[id~=" + k + "-]").length || v.push("~="), - e.querySelectorAll(":checked").length || v.push(":checked"), - e.querySelectorAll("a#" + k + "+*").length || - v.push(".#.+[+~]"); - }), - ce(function (e) { - e.innerHTML = - ""; - var t = C.createElement("input"); - t.setAttribute("type", "hidden"), - e.appendChild(t).setAttribute("name", "D"), - e.querySelectorAll("[name=d]").length && - v.push("name" + M + "*[*^$|!~]?="), - 2 !== e.querySelectorAll(":enabled").length && - v.push(":enabled", ":disabled"), - (a.appendChild(e).disabled = !0), - 2 !== e.querySelectorAll(":disabled").length && - v.push(":enabled", ":disabled"), - e.querySelectorAll("*,:x"), - v.push(",.*:"); - })), - (d.matchesSelector = K.test( - (c = - a.matches || - a.webkitMatchesSelector || - a.mozMatchesSelector || - a.oMatchesSelector || - a.msMatchesSelector) - )) && - ce(function (e) { - (d.disconnectedMatch = c.call(e, "*")), - c.call(e, "[s!='']:x"), - s.push("!=", $); - }), - (v = v.length && new RegExp(v.join("|"))), - (s = s.length && new RegExp(s.join("|"))), - (t = K.test(a.compareDocumentPosition)), - (y = - t || K.test(a.contains) + (v = v.length && new RegExp(v.join("|"))), + (s = s.length && new RegExp(s.join("|"))), + (t = K.test(a.compareDocumentPosition)), + (y = + t || K.test(a.contains) + ? function (e, t) { + var n = 9 === e.nodeType ? e.documentElement : e, + r = t && t.parentNode; + return ( + e === r || + !( + !r || + 1 !== r.nodeType || + !(n.contains + ? n.contains(r) + : e.compareDocumentPosition && + 16 & e.compareDocumentPosition(r)) + ) + ); + } + : function (e, t) { + if (t) while ((t = t.parentNode)) if (t === e) return !0; + return !1; + }), + (D = t ? function (e, t) { - var n = 9 === e.nodeType ? e.documentElement : e, - r = t && t.parentNode; + if (e === t) return (l = !0), 0; + var n = + !e.compareDocumentPosition - !t.compareDocumentPosition; return ( - e === r || - !( - !r || - 1 !== r.nodeType || - !(n.contains - ? n.contains(r) - : e.compareDocumentPosition && - 16 & e.compareDocumentPosition(r)) - ) + n || + (1 & + (n = + (e.ownerDocument || e) === (t.ownerDocument || t) + ? e.compareDocumentPosition(t) + : 1) || + (!d.sortDetached && t.compareDocumentPosition(e) === n) + ? e === C || (e.ownerDocument === m && y(m, e)) + ? -1 + : t === C || (t.ownerDocument === m && y(m, t)) + ? 1 + : u + ? P(u, e) - P(u, t) + : 0 + : 4 & n + ? -1 + : 1) ); } : function (e, t) { - if (t) while ((t = t.parentNode)) if (t === e) return !0; - return !1; - }), - (D = t - ? function (e, t) { - if (e === t) return (l = !0), 0; - var n = !e.compareDocumentPosition - !t.compareDocumentPosition; - return ( - n || - (1 & - (n = - (e.ownerDocument || e) === (t.ownerDocument || t) - ? e.compareDocumentPosition(t) - : 1) || - (!d.sortDetached && t.compareDocumentPosition(e) === n) - ? e === C || (e.ownerDocument === m && y(m, e)) + if (e === t) return (l = !0), 0; + var n, + r = 0, + i = e.parentNode, + o = t.parentNode, + a = [e], + s = [t]; + if (!i || !o) + return e === C ? -1 - : t === C || (t.ownerDocument === m && y(m, t)) - ? 1 - : u - ? P(u, e) - P(u, t) - : 0 - : 4 & n - ? -1 - : 1) - ); - } - : function (e, t) { - if (e === t) return (l = !0), 0; - var n, - r = 0, - i = e.parentNode, - o = t.parentNode, - a = [e], - s = [t]; - if (!i || !o) - return e === C - ? -1 - : t === C - ? 1 - : i - ? -1 - : o - ? 1 - : u - ? P(u, e) - P(u, t) - : 0; - if (i === o) return pe(e, t); - n = e; - while ((n = n.parentNode)) a.unshift(n); - n = t; - while ((n = n.parentNode)) s.unshift(n); - while (a[r] === s[r]) r++; - return r - ? pe(a[r], s[r]) - : a[r] === m - ? -1 - : s[r] === m - ? 1 - : 0; - })), - C - ); - }), + : t === C + ? 1 + : i + ? -1 + : o + ? 1 + : u + ? P(u, e) - P(u, t) + : 0; + if (i === o) return pe(e, t); + n = e; + while ((n = n.parentNode)) a.unshift(n); + n = t; + while ((n = n.parentNode)) s.unshift(n); + while (a[r] === s[r]) r++; + return r + ? pe(a[r], s[r]) + : a[r] === m + ? -1 + : s[r] === m + ? 1 + : 0; + })), + C + ); + }), (se.matches = function (e, t) { return se(e, null, null, t); }), @@ -790,10 +799,10 @@ return void 0 !== r ? r : d.attributes || !E - ? e.getAttribute(t) - : (r = e.getAttributeNode(t)) && r.specified - ? r.value - : null; + ? e.getAttribute(t) + : (r = e.getAttributeNode(t)) && r.specified + ? r.value + : null; }), (se.escape = function (e) { return (e + "").replace(re, ie); @@ -817,340 +826,349 @@ } return (u = null), e; }), - (o = se.getText = function (e) { - var t, - n = "", - r = 0, - i = e.nodeType; - if (i) { - if (1 === i || 9 === i || 11 === i) { - if ("string" == typeof e.textContent) return e.textContent; - for (e = e.firstChild; e; e = e.nextSibling) n += o(e); - } else if (3 === i || 4 === i) return e.nodeValue; - } else while ((t = e[r++])) n += o(t); - return n; - }), - ((b = se.selectors = { - cacheLength: 50, - createPseudo: le, - match: G, - attrHandle: {}, - find: {}, - relative: { - ">": { dir: "parentNode", first: !0 }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: !0 }, - "~": { dir: "previousSibling" }, - }, - preFilter: { - ATTR: function (e) { - return ( - (e[1] = e[1].replace(te, ne)), - (e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne)), - "~=" === e[2] && (e[3] = " " + e[3] + " "), - e.slice(0, 4) - ); - }, - CHILD: function (e) { - return ( - (e[1] = e[1].toLowerCase()), - "nth" === e[1].slice(0, 3) - ? (e[3] || se.error(e[0]), - (e[4] = +(e[4] - ? e[5] + (e[6] || 1) - : 2 * ("even" === e[3] || "odd" === e[3]))), - (e[5] = +(e[7] + e[8] || "odd" === e[3]))) - : e[3] && se.error(e[0]), - e - ); - }, - PSEUDO: function (e) { - var t, - n = !e[6] && e[2]; - return G.CHILD.test(e[0]) - ? null - : (e[3] - ? (e[2] = e[4] || e[5] || "") - : n && - X.test(n) && - (t = h(n, !0)) && - (t = n.indexOf(")", n.length - t) - n.length) && - ((e[0] = e[0].slice(0, t)), (e[2] = n.slice(0, t))), - e.slice(0, 3)); - }, - }, - filter: { - TAG: function (e) { - var t = e.replace(te, ne).toLowerCase(); - return "*" === e - ? function () { - return !0; - } - : function (e) { - return e.nodeName && e.nodeName.toLowerCase() === t; - }; - }, - CLASS: function (e) { - var t = p[e + " "]; - return ( - t || - ((t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && - p(e, function (e) { - return t.test( - ("string" == typeof e.className && e.className) || - ("undefined" != typeof e.getAttribute && - e.getAttribute("class")) || - "" - ); - })) - ); + (o = se.getText = + function (e) { + var t, + n = "", + r = 0, + i = e.nodeType; + if (i) { + if (1 === i || 9 === i || 11 === i) { + if ("string" == typeof e.textContent) return e.textContent; + for (e = e.firstChild; e; e = e.nextSibling) n += o(e); + } else if (3 === i || 4 === i) return e.nodeValue; + } else while ((t = e[r++])) n += o(t); + return n; + }), + ((b = se.selectors = + { + cacheLength: 50, + createPseudo: le, + match: G, + attrHandle: {}, + find: {}, + relative: { + ">": { dir: "parentNode", first: !0 }, + " ": { dir: "parentNode" }, + "+": { dir: "previousSibling", first: !0 }, + "~": { dir: "previousSibling" }, }, - ATTR: function (n, r, i) { - return function (e) { - var t = se.attr(e, n); - return null == t - ? "!=" === r - : !r || - ((t += ""), - "=" === r - ? t === i - : "!=" === r - ? t !== i - : "^=" === r - ? i && 0 === t.indexOf(i) - : "*=" === r - ? i && -1 < t.indexOf(i) - : "$=" === r - ? i && t.slice(-i.length) === i - : "~=" === r - ? -1 < (" " + t.replace(F, " ") + " ").indexOf(i) - : "|=" === r && - (t === i || t.slice(0, i.length + 1) === i + "-")); - }; + preFilter: { + ATTR: function (e) { + return ( + (e[1] = e[1].replace(te, ne)), + (e[3] = (e[3] || e[4] || e[5] || "").replace(te, ne)), + "~=" === e[2] && (e[3] = " " + e[3] + " "), + e.slice(0, 4) + ); + }, + CHILD: function (e) { + return ( + (e[1] = e[1].toLowerCase()), + "nth" === e[1].slice(0, 3) + ? (e[3] || se.error(e[0]), + (e[4] = +(e[4] + ? e[5] + (e[6] || 1) + : 2 * ("even" === e[3] || "odd" === e[3]))), + (e[5] = +(e[7] + e[8] || "odd" === e[3]))) + : e[3] && se.error(e[0]), + e + ); + }, + PSEUDO: function (e) { + var t, + n = !e[6] && e[2]; + return G.CHILD.test(e[0]) + ? null + : (e[3] + ? (e[2] = e[4] || e[5] || "") + : n && + X.test(n) && + (t = h(n, !0)) && + (t = n.indexOf(")", n.length - t) - n.length) && + ((e[0] = e[0].slice(0, t)), (e[2] = n.slice(0, t))), + e.slice(0, 3)); + }, }, - CHILD: function (h, e, t, g, v) { - var y = "nth" !== h.slice(0, 3), - m = "last" !== h.slice(-4), - x = "of-type" === e; - return 1 === g && 0 === v - ? function (e) { - return !!e.parentNode; - } - : function (e, t, n) { - var r, - i, - o, - a, - s, - u, - l = y !== m ? "nextSibling" : "previousSibling", - c = e.parentNode, - f = x && e.nodeName.toLowerCase(), - p = !n && !x, - d = !1; - if (c) { - if (y) { - while (l) { - a = e; - while ((a = a[l])) + filter: { + TAG: function (e) { + var t = e.replace(te, ne).toLowerCase(); + return "*" === e + ? function () { + return !0; + } + : function (e) { + return e.nodeName && e.nodeName.toLowerCase() === t; + }; + }, + CLASS: function (e) { + var t = p[e + " "]; + return ( + t || + ((t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && + p(e, function (e) { + return t.test( + ("string" == typeof e.className && e.className) || + ("undefined" != typeof e.getAttribute && + e.getAttribute("class")) || + "", + ); + })) + ); + }, + ATTR: function (n, r, i) { + return function (e) { + var t = se.attr(e, n); + return null == t + ? "!=" === r + : !r || + ((t += ""), + "=" === r + ? t === i + : "!=" === r + ? t !== i + : "^=" === r + ? i && 0 === t.indexOf(i) + : "*=" === r + ? i && -1 < t.indexOf(i) + : "$=" === r + ? i && t.slice(-i.length) === i + : "~=" === r + ? -1 < + (" " + t.replace(F, " ") + " ").indexOf(i) + : "|=" === r && + (t === i || + t.slice(0, i.length + 1) === i + "-")); + }; + }, + CHILD: function (h, e, t, g, v) { + var y = "nth" !== h.slice(0, 3), + m = "last" !== h.slice(-4), + x = "of-type" === e; + return 1 === g && 0 === v + ? function (e) { + return !!e.parentNode; + } + : function (e, t, n) { + var r, + i, + o, + a, + s, + u, + l = y !== m ? "nextSibling" : "previousSibling", + c = e.parentNode, + f = x && e.nodeName.toLowerCase(), + p = !n && !x, + d = !1; + if (c) { + if (y) { + while (l) { + a = e; + while ((a = a[l])) + if ( + x + ? a.nodeName.toLowerCase() === f + : 1 === a.nodeType + ) + return !1; + u = l = "only" === h && !u && "nextSibling"; + } + return !0; + } + if (((u = [m ? c.firstChild : c.lastChild]), m && p)) { + (d = + (s = + (r = + (i = + (o = (a = c)[k] || (a[k] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] || [])[0] === S && + r[1]) && r[2]), + (a = s && c.childNodes[s]); + while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) + if (1 === a.nodeType && ++d && a === e) { + i[h] = [S, s, d]; + break; + } + } else if ( + (p && + (d = s = + (r = + (i = + (o = (a = e)[k] || (a[k] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] || [])[0] === S && r[1]), + !1 === d) + ) + while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) if ( - x ? a.nodeName.toLowerCase() === f : 1 === a.nodeType + (x + ? a.nodeName.toLowerCase() === f + : 1 === a.nodeType) && + ++d && + (p && + ((i = + (o = a[k] || (a[k] = {}))[a.uniqueID] || + (o[a.uniqueID] = {}))[h] = [S, d]), + a === e) ) - return !1; - u = l = "only" === h && !u && "nextSibling"; - } - return !0; + break; + return (d -= v) === g || (d % g == 0 && 0 <= d / g); } - if (((u = [m ? c.firstChild : c.lastChild]), m && p)) { - (d = - (s = - (r = - (i = - (o = (a = c)[k] || (a[k] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] || [])[0] === S && r[1]) && - r[2]), - (a = s && c.childNodes[s]); - while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) - if (1 === a.nodeType && ++d && a === e) { - i[h] = [S, s, d]; - break; - } - } else if ( - (p && - (d = s = - (r = - (i = - (o = (a = e)[k] || (a[k] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] || [])[0] === S && r[1]), - !1 === d) - ) - while ((a = (++s && a && a[l]) || (d = s = 0) || u.pop())) - if ( - (x - ? a.nodeName.toLowerCase() === f - : 1 === a.nodeType) && - ++d && - (p && - ((i = - (o = a[k] || (a[k] = {}))[a.uniqueID] || - (o[a.uniqueID] = {}))[h] = [S, d]), - a === e) - ) - break; - return (d -= v) === g || (d % g == 0 && 0 <= d / g); - } - }; - }, - PSEUDO: function (e, o) { - var t, - a = - b.pseudos[e] || - b.setFilters[e.toLowerCase()] || - se.error("unsupported pseudo: " + e); - return a[k] - ? a(o) - : 1 < a.length - ? ((t = [e, e, "", o]), - b.setFilters.hasOwnProperty(e.toLowerCase()) - ? le(function (e, t) { - var n, - r = a(e, o), - i = r.length; - while (i--) e[(n = P(e, r[i]))] = !(t[n] = r[i]); - }) - : function (e) { - return a(e, 0, t); - }) - : a; - }, - }, - pseudos: { - not: le(function (e) { - var r = [], - i = [], - s = f(e.replace(B, "$1")); - return s[k] - ? le(function (e, t, n, r) { - var i, - o = s(e, null, r, []), - a = e.length; - while (a--) (i = o[a]) && (e[a] = !(t[a] = i)); - }) - : function (e, t, n) { - return (r[0] = e), s(r, null, n, i), (r[0] = null), !i.pop(); - }; - }), - has: le(function (t) { - return function (e) { - return 0 < se(t, e).length; - }; - }), - contains: le(function (t) { - return ( - (t = t.replace(te, ne)), - function (e) { - return -1 < (e.textContent || o(e)).indexOf(t); - } - ); - }), - lang: le(function (n) { - return ( - V.test(n || "") || se.error("unsupported lang: " + n), - (n = n.replace(te, ne).toLowerCase()), - function (e) { - var t; - do { - if ( - (t = E - ? e.lang - : e.getAttribute("xml:lang") || e.getAttribute("lang")) - ) - return ( - (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-") - ); - } while ((e = e.parentNode) && 1 === e.nodeType); - return !1; - } - ); - }), - target: function (e) { - var t = n.location && n.location.hash; - return t && t.slice(1) === e.id; - }, - root: function (e) { - return e === a; - }, - focus: function (e) { - return ( - e === C.activeElement && - (!C.hasFocus || C.hasFocus()) && - !!(e.type || e.href || ~e.tabIndex) - ); - }, - enabled: ge(!1), - disabled: ge(!0), - checked: function (e) { - var t = e.nodeName.toLowerCase(); - return ( - ("input" === t && !!e.checked) || ("option" === t && !!e.selected) - ); - }, - selected: function (e) { - return e.parentNode && e.parentNode.selectedIndex, !0 === e.selected; - }, - empty: function (e) { - for (e = e.firstChild; e; e = e.nextSibling) - if (e.nodeType < 6) return !1; - return !0; - }, - parent: function (e) { - return !b.pseudos.empty(e); - }, - header: function (e) { - return J.test(e.nodeName); - }, - input: function (e) { - return Q.test(e.nodeName); - }, - button: function (e) { - var t = e.nodeName.toLowerCase(); - return ("input" === t && "button" === e.type) || "button" === t; + }; + }, + PSEUDO: function (e, o) { + var t, + a = + b.pseudos[e] || + b.setFilters[e.toLowerCase()] || + se.error("unsupported pseudo: " + e); + return a[k] + ? a(o) + : 1 < a.length + ? ((t = [e, e, "", o]), + b.setFilters.hasOwnProperty(e.toLowerCase()) + ? le(function (e, t) { + var n, + r = a(e, o), + i = r.length; + while (i--) e[(n = P(e, r[i]))] = !(t[n] = r[i]); + }) + : function (e) { + return a(e, 0, t); + }) + : a; + }, }, - text: function (e) { - var t; - return ( - "input" === e.nodeName.toLowerCase() && - "text" === e.type && - (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase()) - ); + pseudos: { + not: le(function (e) { + var r = [], + i = [], + s = f(e.replace(B, "$1")); + return s[k] + ? le(function (e, t, n, r) { + var i, + o = s(e, null, r, []), + a = e.length; + while (a--) (i = o[a]) && (e[a] = !(t[a] = i)); + }) + : function (e, t, n) { + return (r[0] = e), s(r, null, n, i), (r[0] = null), !i.pop(); + }; + }), + has: le(function (t) { + return function (e) { + return 0 < se(t, e).length; + }; + }), + contains: le(function (t) { + return ( + (t = t.replace(te, ne)), + function (e) { + return -1 < (e.textContent || o(e)).indexOf(t); + } + ); + }), + lang: le(function (n) { + return ( + V.test(n || "") || se.error("unsupported lang: " + n), + (n = n.replace(te, ne).toLowerCase()), + function (e) { + var t; + do { + if ( + (t = E + ? e.lang + : e.getAttribute("xml:lang") || e.getAttribute("lang")) + ) + return ( + (t = t.toLowerCase()) === n || 0 === t.indexOf(n + "-") + ); + } while ((e = e.parentNode) && 1 === e.nodeType); + return !1; + } + ); + }), + target: function (e) { + var t = n.location && n.location.hash; + return t && t.slice(1) === e.id; + }, + root: function (e) { + return e === a; + }, + focus: function (e) { + return ( + e === C.activeElement && + (!C.hasFocus || C.hasFocus()) && + !!(e.type || e.href || ~e.tabIndex) + ); + }, + enabled: ge(!1), + disabled: ge(!0), + checked: function (e) { + var t = e.nodeName.toLowerCase(); + return ( + ("input" === t && !!e.checked) || ("option" === t && !!e.selected) + ); + }, + selected: function (e) { + return ( + e.parentNode && e.parentNode.selectedIndex, !0 === e.selected + ); + }, + empty: function (e) { + for (e = e.firstChild; e; e = e.nextSibling) + if (e.nodeType < 6) return !1; + return !0; + }, + parent: function (e) { + return !b.pseudos.empty(e); + }, + header: function (e) { + return J.test(e.nodeName); + }, + input: function (e) { + return Q.test(e.nodeName); + }, + button: function (e) { + var t = e.nodeName.toLowerCase(); + return ("input" === t && "button" === e.type) || "button" === t; + }, + text: function (e) { + var t; + return ( + "input" === e.nodeName.toLowerCase() && + "text" === e.type && + (null == (t = e.getAttribute("type")) || + "text" === t.toLowerCase()) + ); + }, + first: ve(function () { + return [0]; + }), + last: ve(function (e, t) { + return [t - 1]; + }), + eq: ve(function (e, t, n) { + return [n < 0 ? n + t : n]; + }), + even: ve(function (e, t) { + for (var n = 0; n < t; n += 2) e.push(n); + return e; + }), + odd: ve(function (e, t) { + for (var n = 1; n < t; n += 2) e.push(n); + return e; + }), + lt: ve(function (e, t, n) { + for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r); + return e; + }), + gt: ve(function (e, t, n) { + for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r); + return e; + }), }, - first: ve(function () { - return [0]; - }), - last: ve(function (e, t) { - return [t - 1]; - }), - eq: ve(function (e, t, n) { - return [n < 0 ? n + t : n]; - }), - even: ve(function (e, t) { - for (var n = 0; n < t; n += 2) e.push(n); - return e; - }), - odd: ve(function (e, t) { - for (var n = 1; n < t; n += 2) e.push(n); - return e; - }), - lt: ve(function (e, t, n) { - for (var r = n < 0 ? n + t : t < n ? t : n; 0 <= --r; ) e.push(r); - return e; - }), - gt: ve(function (e, t, n) { - for (var r = n < 0 ? n + t : n; ++r < t; ) e.push(r); - return e; - }), - }, - }).pseudos.nth = b.pseudos.eq), + }).pseudos.nth = b.pseudos.eq), { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })) b.pseudos[e] = de(e); for (e in { submit: !0, reset: !0 }) b.pseudos[e] = he(e); @@ -1246,7 +1264,9 @@ -1 < (i = y ? P(e, a) : s[o]) && (e[i] = !(t[i] = a)); } - } else (p = Te(p === t ? p.splice(l, p.length) : p)), y ? y(null, t, p, r) : H.apply(t, p); + } else + (p = Te(p === t ? p.splice(l, p.length) : p)), + y ? y(null, t, p, r) : H.apply(t, p); }) ); } @@ -1264,14 +1284,14 @@ return e === i; }, a, - !0 + !0, ), l = be( function (e) { return -1 < P(i, e); }, a, - !0 + !0, ), c = [ function (e, t, n) { @@ -1294,12 +1314,12 @@ xe( e .slice(0, s - 1) - .concat({ value: " " === e[s - 2].type ? "*" : "" }) + .concat({ value: " " === e[s - 2].type ? "*" : "" }), ).replace(B, "$1"), t, s < n && Ee(e.slice(s, n)), n < r && Ee((e = e.slice(n))), - n < r && xe(e) + n < r && xe(e), ); } c.push(t); @@ -1309,149 +1329,152 @@ return ( (me.prototype = b.filters = b.pseudos), (b.setFilters = new me()), - (h = se.tokenize = function (e, t) { - var n, - r, - i, - o, - a, - s, - u, - l = x[e + " "]; - if (l) return t ? 0 : l.slice(0); - (a = e), (s = []), (u = b.preFilter); - while (a) { - for (o in ((n && !(r = _.exec(a))) || - (r && (a = a.slice(r[0].length) || a), s.push((i = []))), - (n = !1), - (r = z.exec(a)) && - ((n = r.shift()), - i.push({ value: n, type: r[0].replace(B, " ") }), - (a = a.slice(n.length))), - b.filter)) - !(r = G[o].exec(a)) || - (u[o] && !(r = u[o](r))) || + (h = se.tokenize = + function (e, t) { + var n, + r, + i, + o, + a, + s, + u, + l = x[e + " "]; + if (l) return t ? 0 : l.slice(0); + (a = e), (s = []), (u = b.preFilter); + while (a) { + for (o in ((n && !(r = _.exec(a))) || + (r && (a = a.slice(r[0].length) || a), s.push((i = []))), + (n = !1), + (r = z.exec(a)) && ((n = r.shift()), - i.push({ value: n, type: o, matches: r }), - (a = a.slice(n.length))); - if (!n) break; - } - return t ? a.length : a ? se.error(e) : x(e, s).slice(0); - }), - (f = se.compile = function (e, t) { - var n, - v, - y, - m, - x, - r, - i = [], - o = [], - a = N[e + " "]; - if (!a) { - t || (t = h(e)), (n = t.length); - while (n--) (a = Ee(t[n]))[k] ? i.push(a) : o.push(a); - (a = N( - e, - ((v = o), - (m = 0 < (y = i).length), - (x = 0 < v.length), - (r = function (e, t, n, r, i) { - var o, - a, - s, - u = 0, - l = "0", - c = e && [], - f = [], - p = w, - d = e || (x && b.find.TAG("*", i)), - h = (S += null == p ? 1 : Math.random() || 0.1), - g = d.length; - for ( - i && (w = t === C || t || i); - l !== g && null != (o = d[l]); - l++ - ) { - if (x && o) { - (a = 0), t || o.ownerDocument === C || (T(o), (n = !E)); - while ((s = v[a++])) - if (s(o, t || C, n)) { - r.push(o); - break; - } - i && (S = h); + i.push({ value: n, type: r[0].replace(B, " ") }), + (a = a.slice(n.length))), + b.filter)) + !(r = G[o].exec(a)) || + (u[o] && !(r = u[o](r))) || + ((n = r.shift()), + i.push({ value: n, type: o, matches: r }), + (a = a.slice(n.length))); + if (!n) break; + } + return t ? a.length : a ? se.error(e) : x(e, s).slice(0); + }), + (f = se.compile = + function (e, t) { + var n, + v, + y, + m, + x, + r, + i = [], + o = [], + a = N[e + " "]; + if (!a) { + t || (t = h(e)), (n = t.length); + while (n--) (a = Ee(t[n]))[k] ? i.push(a) : o.push(a); + (a = N( + e, + ((v = o), + (m = 0 < (y = i).length), + (x = 0 < v.length), + (r = function (e, t, n, r, i) { + var o, + a, + s, + u = 0, + l = "0", + c = e && [], + f = [], + p = w, + d = e || (x && b.find.TAG("*", i)), + h = (S += null == p ? 1 : Math.random() || 0.1), + g = d.length; + for ( + i && (w = t === C || t || i); + l !== g && null != (o = d[l]); + l++ + ) { + if (x && o) { + (a = 0), t || o.ownerDocument === C || (T(o), (n = !E)); + while ((s = v[a++])) + if (s(o, t || C, n)) { + r.push(o); + break; + } + i && (S = h); + } + m && ((o = !s && o) && u--, e && c.push(o)); } - m && ((o = !s && o) && u--, e && c.push(o)); - } - if (((u += l), m && l !== u)) { - a = 0; - while ((s = y[a++])) s(c, f, t, n); - if (e) { - if (0 < u) while (l--) c[l] || f[l] || (f[l] = q.call(r)); - f = Te(f); + if (((u += l), m && l !== u)) { + a = 0; + while ((s = y[a++])) s(c, f, t, n); + if (e) { + if (0 < u) while (l--) c[l] || f[l] || (f[l] = q.call(r)); + f = Te(f); + } + H.apply(r, f), + i && + !e && + 0 < f.length && + 1 < u + y.length && + se.uniqueSort(r); } - H.apply(r, f), - i && - !e && - 0 < f.length && - 1 < u + y.length && - se.uniqueSort(r); - } - return i && ((S = h), (w = p)), c; - }), - m ? le(r) : r) - )).selector = e; - } - return a; - }), - (g = se.select = function (e, t, n, r) { - var i, - o, - a, - s, - u, - l = "function" == typeof e && e, - c = !r && h((e = l.selector || e)); - if (((n = n || []), 1 === c.length)) { - if ( - 2 < (o = c[0] = c[0].slice(0)).length && - "ID" === (a = o[0]).type && - 9 === t.nodeType && - E && - b.relative[o[1].type] - ) { - if (!(t = (b.find.ID(a.matches[0].replace(te, ne), t) || [])[0])) - return n; - l && (t = t.parentNode), (e = e.slice(o.shift().value.length)); + return i && ((S = h), (w = p)), c; + }), + m ? le(r) : r), + )).selector = e; } - i = G.needsContext.test(e) ? 0 : o.length; - while (i--) { - if (((a = o[i]), b.relative[(s = a.type)])) break; + return a; + }), + (g = se.select = + function (e, t, n, r) { + var i, + o, + a, + s, + u, + l = "function" == typeof e && e, + c = !r && h((e = l.selector || e)); + if (((n = n || []), 1 === c.length)) { if ( - (u = b.find[s]) && - (r = u( - a.matches[0].replace(te, ne), - (ee.test(o[0].type) && ye(t.parentNode)) || t - )) + 2 < (o = c[0] = c[0].slice(0)).length && + "ID" === (a = o[0]).type && + 9 === t.nodeType && + E && + b.relative[o[1].type] ) { - if ((o.splice(i, 1), !(e = r.length && xe(o)))) - return H.apply(n, r), n; - break; + if (!(t = (b.find.ID(a.matches[0].replace(te, ne), t) || [])[0])) + return n; + l && (t = t.parentNode), (e = e.slice(o.shift().value.length)); + } + i = G.needsContext.test(e) ? 0 : o.length; + while (i--) { + if (((a = o[i]), b.relative[(s = a.type)])) break; + if ( + (u = b.find[s]) && + (r = u( + a.matches[0].replace(te, ne), + (ee.test(o[0].type) && ye(t.parentNode)) || t, + )) + ) { + if ((o.splice(i, 1), !(e = r.length && xe(o)))) + return H.apply(n, r), n; + break; + } } } - } - return ( - (l || f(e, c))( - r, - t, - !E, - n, - !t || (ee.test(e) && ye(t.parentNode)) || t - ), - n - ); - }), + return ( + (l || f(e, c))( + r, + t, + !E, + n, + !t || (ee.test(e) && ye(t.parentNode)) || t, + ), + n + ); + }), (d.sortStable = k.split("").sort(D).join("") === k), (d.detectDuplicates = !!l), T(), @@ -1487,8 +1510,8 @@ return !0 === e[t] ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified - ? r.value - : null; + ? r.value + : null; }), se ); @@ -1527,14 +1550,14 @@ return !!n.call(e, t, e) !== r; }) : n.nodeType - ? k.grep(e, function (e) { - return (e === n) !== r; - }) - : "string" != typeof n - ? k.grep(e, function (e) { - return -1 < i.call(n, e) !== r; - }) - : k.filter(n, e, r); + ? k.grep(e, function (e) { + return (e === n) !== r; + }) + : "string" != typeof n + ? k.grep(e, function (e) { + return -1 < i.call(n, e) !== r; + }) + : k.filter(n, e, r); } (k.filter = function (e, t, n) { var r = t[0]; @@ -1548,7 +1571,7 @@ e, k.grep(t, function (e) { return 1 === e.nodeType; - }) + }), ) ); }), @@ -1562,7 +1585,7 @@ return this.pushStack( k(e).filter(function () { for (t = 0; t < r; t++) if (k.contains(i[t], this)) return !0; - }) + }), ); for (n = this.pushStack([]), t = 0; t < r; t++) k.find(e, i[t], n); return 1 < r ? k.uniqueSort(n) : n; @@ -1597,7 +1620,7 @@ ((t = t instanceof k ? t[0] : t), k.merge( this, - k.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : E, !0) + k.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : E, !0), ), D.test(r[1]) && k.isPlainObject(t)) ) @@ -1611,10 +1634,10 @@ return e.nodeType ? ((this[0] = e), (this.length = 1), this) : m(e) - ? void 0 !== n.ready - ? n.ready(e) - : e(k) - : k.makeArray(e, this); + ? void 0 !== n.ready + ? n.ready(e) + : e(k) + : k.makeArray(e, this); }).prototype = k.fn), (q = k(E)); var H = /^(?:parents|prev(?:Until|All))/, @@ -1657,8 +1680,8 @@ ? i.call(k(e), this[0]) : i.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode - ? this.first().prevAll().length - : -1; + ? this.first().prevAll().length + : -1; }, add: function (e, t) { return this.pushStack(k.uniqueSort(k.merge(this.get(), k(e, t)))); @@ -1721,7 +1744,7 @@ this.pushStack(n) ); }; - } + }, ); var R = /[^\x20\t\r\n\f]+/g; function M(e) { @@ -1736,8 +1759,8 @@ e && m((i = e.promise)) ? i.call(e).done(t).fail(n) : e && m((i = e.then)) - ? i.call(e, t, n) - : t.apply(void 0, [e].slice(r)); + ? i.call(e, t, n) + : t.apply(void 0, [e].slice(r)); } catch (e) { n.apply(void 0, [e]); } @@ -1914,7 +1937,7 @@ e, l(u, o, M, s), l(u, o, I, s), - l(u, o, M, o.notifyWith) + l(u, o, M, o.notifyWith), )) : (a !== M && ((n = void 0), (r = [e])), (s || o.resolveWith)(n, r)); @@ -1966,7 +1989,7 @@ o[3 - e][2].disable, o[3 - e][3].disable, o[0][2].lock, - o[0][3].lock + o[0][3].lock, ), n.add(t[3].fire), (s[t[0]] = function () { @@ -2124,8 +2147,8 @@ n = (t = Array.isArray(t) ? t.map(V) : (t = V(t)) in r - ? [t] - : t.match(R) || []).length; + ? [t] + : t.match(R) || []).length; while (n--) delete r[t[n]]; } (void 0 === t || k.isEmptyObject(r)) && @@ -2155,10 +2178,10 @@ ("null" === i ? null : i === +i + "" - ? +i - : K.test(i) - ? JSON.parse(i) - : i)); + ? +i + : K.test(i) + ? JSON.parse(i) + : i)); } catch (e) {} J.set(e, t, n); } else n = void 0; @@ -2214,8 +2237,8 @@ return void 0 !== (t = J.get(o, n)) ? t : void 0 !== (t = ee(o, n)) - ? t - : void 0; + ? t + : void 0; this.each(function () { J.set(this, n, e); }); @@ -2224,7 +2247,7 @@ e, 1 < arguments.length, null, - !0 + !0, ); }, removeData: function (e) { @@ -2262,7 +2285,7 @@ function () { k.dequeue(e, t); }, - o + o, )), !r && o && o.empty.fire(); }, @@ -2286,12 +2309,12 @@ arguments.length < e ? k.queue(this[0], t) : void 0 === n - ? this - : this.each(function () { - var e = k.queue(this, t, n); - k._queueHooks(this, t), - "fx" === t && "inprogress" !== e[0] && k.dequeue(this, t); - }) + ? this + : this.each(function () { + var e = k.queue(this, t, n); + k._queueHooks(this, t), + "fx" === t && "inprogress" !== e[0] && k.dequeue(this, t); + }) ); }, dequeue: function (e) { @@ -2440,8 +2463,8 @@ "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll - ? e.querySelectorAll(t || "*") - : []), + ? e.querySelectorAll(t || "*") + : []), void 0 === t || (t && A(e, t)) ? k.merge([e], n) : n ); } @@ -2578,7 +2601,7 @@ value: k.event.trigger( k.extend(r[0], k.Event.prototype), r.slice(1), - this + this, ), }), e.stopImmediatePropagation()); @@ -2607,11 +2630,12 @@ n.guid || (n.guid = k.guid++), (u = v.events) || (u = v.events = {}), (a = v.handle) || - (a = v.handle = function (e) { - return "undefined" != typeof k && k.event.triggered !== e.type - ? k.event.dispatch.apply(t, arguments) - : void 0; - }), + (a = v.handle = + function (e) { + return "undefined" != typeof k && k.event.triggered !== e.type + ? k.event.dispatch.apply(t, arguments) + : void 0; + }), (l = (e = (e || "").match(R) || [""]).length); while (l--) (d = g = (s = Ee.exec(e[l]) || [])[1]), @@ -2631,7 +2655,7 @@ needsContext: i && k.expr.match.needsContext.test(i), namespace: h.join("."), }, - o + o, )), (p = u[d]) || (((p = u[d] = []).delegateCount = 0), @@ -2893,17 +2917,17 @@ ? e.charCode : e.keyCode : !e.which && void 0 !== t && Ce.test(e.type) - ? 1 & t - ? 1 - : 2 & t - ? 3 - : 4 & t - ? 2 - : 0 - : e.which; + ? 1 & t + ? 1 + : 2 & t + ? 3 + : 4 & t + ? 2 + : 0 + : e.which; }, }, - k.event.addProp + k.event.addProp, ), k.each({ focus: "focusin", blur: "focusout" }, function (e, t) { k.event.special[e] = { @@ -2940,7 +2964,7 @@ ); }, }; - } + }, ), k.fn.extend({ on: function (e, t, n, r) { @@ -2957,7 +2981,7 @@ k(e.delegateTarget).off( r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, - r.handler + r.handler, ), this ); @@ -2974,7 +2998,8 @@ ); }, }); - var je = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, + var je = + /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, qe = / diff --git a/datacube-ows-tools/templates/catalog-comparison.html b/datacube-ows-tools/templates/catalog-comparison.html index 9d2818b..3500222 100644 --- a/datacube-ows-tools/templates/catalog-comparison.html +++ b/datacube-ows-tools/templates/catalog-comparison.html @@ -1,122 +1,233 @@ {% extends "base.html" %} {% block page %}
product name showing green indicates products that is listed in the corresponding terria catalog, products showing red is products available in ows instance but not listed in corresponding terria catalog.
-catalog items count {{ data.dea_map_catalog_list|length}}
-WMS layers count {{ data.prod_wms_layers|length}}
-+ product name showing green indicates products that is listed in the + corresponding terria catalog, products showing red is products available in + ows instance but not listed in corresponding terria catalog. +
+catalog items count {{ data.dea_map_catalog_list|length}}
+WMS layers count {{ data.prod_wms_layers|length}}
+catalog items count {{ data.prod_catalog_list|length}}
-WMS layers count {{ data.prod_wms_layers|length}}
-catalog items count {{ data.prod_catalog_list|length}}
+WMS layers count {{ data.prod_wms_layers|length}}
+catalog items count {{ data.dev_catalog_list|length}}
-WMS layers count {{ data.dev_wms_layers|length}}
-catalog items count {{ data.dev_catalog_list|length}}
+WMS layers count {{ data.dev_wms_layers|length}}
+